re PR middle-end/37338 (gcc.dg/array-init-1.c)
[platform/upstream/gcc.git] / gcc / ChangeLog
1 2008-09-10  Jakub Jelinek  <jakub@redhat.com>
2
3         PR middle-end/37338
4         * gimplify.c (gimplify_body): Call default_rtl_profile.
5
6         PR target/36904
7         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): Return NULL
8         instead of tok->val.node if not expanding to something else.  Handle
9         intervening CPP_PADDING tokens.
10         (altivec_categorize_keyword): Remove unneeded comparisons.
11
12 2008-09-10  Richard Guenther  <rguenther@suse.de>
13
14         * tree-ssa-pre.c (phi_translate_1): Fix memory leak.
15
16 2008-09-10  Richard Guenther  <rguenther@suse.de>
17
18         PR middle-end/37432
19         * tree-inline.c (insert_init_stmt): Make sure to not
20         insert invalid gimple stores.
21
22 2008-09-10  Sebastian Pop  <sebastian.pop@amd.com>
23
24         PR tree-optimization/37388
25         * toplev.c (process_options): Fail and warn when graphite
26         flags are used, but the compiler has not been configured
27         with graphite libraries.
28         * graphite.c (graphite_transform_loops): Remove printfs
29         to dump_file for the case when graphite is not available.
30
31 2008-09-10  H.J. Lu  <hongjiu.lu@intel.com>
32
33         PR target/37434:
34         * config/i386/i386.c (ix86_expand_vector_init_interleave): Force
35         the even element into register.
36         (ix86_expand_vector_init_general): Don't use
37         ix86_expand_vector_init_interleave on V16QImode and V8HImode
38         if we can't move from GPR to SSE register directly.
39
40 2008-09-10  Bernd Schmidt  <bernd.schmidt@analog.com>
41
42         * config/bfin/bfin.c (workaround_speculation): Correct algorithm to
43         not lose track of the number of NOPs needed.  Number of NOPs needed
44         for sync vs. loads workaround was switched; corrected.  Run second
45         pass for all workarounds.  No NOPs needed after call insns.  Change
46         second pass to use find_next_insn_start and find_load helpers in order
47         to properly detect parallel insns.
48         * config/bfin/bfin.md (cbranch_with_nops): Increase length.
49
50 2008-09-10  Jan Hubicka  <jh@suse.cz>
51
52         * value-prof.c (gimple_ic): Fix tuplification bug.
53         * sched-deps.c (sched_insns_conditions_mutex_p): Silence unitialized var
54         warning.
55
56 2008-09-10  Jakub Jelinek  <jakub@redhat.com>
57
58         PR tree-optimization/37353
59         * tree-call-cdce.c (cond_dead_built_in_calls): Remove.
60         (shrink_wrap_conditional_dead_built_in_calls): Add calls argument, use
61         calls instead of cond_dead_built_in_calls.
62         (tree_call_cdce): Add cond_dead_built_in_calls automatic variable,
63         initalize the vector only before adding first entry.  Use VEC_safe_push
64         instead of VEC_quick_push.  Pass cond_dead_built_in_calls to
65         shrink_wrap_conditional_dead_built_in_calls call.
66
67 2008-09-10  Ira Rosen  <irar@il.ibm.com>
68
69         PR tree-optimization/37385
70         * tree-vect-transform.c (vect_create_data_ref_ptr): Add a new argument,
71         and use it as a vector type if not NULL.
72         (vectorizable_store): Call vect_create_data_ref_ptr with the type of 
73         vectorized rhs.
74         (vect_setup_realignment): Call vect_create_data_ref_ptr with additional
75         argument.
76         (vectorizable_load): Likewise.
77
78 2008-09-10  Jakub Jelinek  <jakub@redhat.com>
79
80         * config/i386/i386.md (SWI32): New mode iterator.
81         (jcc_fused_1, jcc_fused_2, jcc_fused_3, jcc_fused_4): Use it instead
82         of SWI.
83
84 2008-09-09  Vladimir Makarov  <vmakarov@redhat.com>
85
86         PR rtl-optimization/37435
87         * caller-save.c (insert_restore, insert_save): Check the mode by
88         reg_save_code.
89
90 2008-09-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
91
92         PR other/37265
93         * dwarf2asm.c (dw2_force_const_mem): Use unstripped symbol name for
94         splay tree lookup.
95         (dw2_output_indirect_constant_1): Use unstripped name in symbol
96         reference.
97
98 2008-09-09  Sandra Loosemore  <sandra@codesourcery.com>
99
100         * doc/invoke.texi (ARM Options): Correct errors in discussion 
101         of -mfloat-abi, -mhard-float, and -msoft-float.
102
103 2008-09-09  Jakub Jelinek  <jakub@redhat.com>
104             Jan Hubicka  <jh@suse.cz>
105
106         PR middle-end/37356
107         * tree-inline.c (copy_bb): Insert stmt into copy_basic_block before
108         calling gimple_regimplify_operands on it.  Iterate over all newly
109         added statements, not just the last one.
110         (insert_init_stmt): Insert stmt into seq first, then call
111         gimple_regimplify_operands on it.  Don't create new gimplification
112         context, nor find referenced vars.
113
114 2008-09-09  Jakub Jelinek  <jakub@redhat.com>
115
116         PR other/37419
117         * ipa-prop.h (ipa_propagate_indirect_call_infos): Change last argument
118         to pointer to vector pointer.
119         * ipa-prop.c (ipa_propagate_indirect_call_infos,
120         propagate_info_to_inlined_callees): Likewise.
121         (update_call_notes_after_inlining): Likewise.  Push new indirect edge
122         to *new_edges instead of new_edges.  Reread IPA_EDGE_REF after
123         ipa_check_create_edge_args.
124         * ipa-inline.c (cgraph_decide_recursive_inlining): Change last argument
125         to pointer to vector pointer.
126         (cgraph_decide_inlining_of_small_function): Adjust
127         cgraph_decide_recursive_inlining and ipa_propagate_indirect_call_infos
128         calls.
129
130         PR target/37438
131         * config/i386/i386.md (zero_extendqihi2_movzbl): Enable when optimizing
132         for size, not speed.
133
134         PR rtl-optimization/37408
135         * function.c (assign_parm_find_stack_rtl): Set correct MEM_SIZE
136         if parm is promoted.
137
138 2008-09-09  Sebastian Pop  <sebastian.pop@amd.com>
139
140         PR tree-optimization/37375
141         * tree-scalar-evolution.c (scev_info_str): Add field instantiated_below.
142         (new_scev_info_str, eq_scev_info, find_var_scev_info,
143         set_scalar_evolution, get_scalar_evolution, get_instantiated_value,
144         set_instantiated_value): Pass instantiated_below.
145         (analyze_scalar_evolution_1, analyze_scalar_evolution): Update calls to
146         above functions.
147         (instantiate_scev_1, instantiate_scev): Pass a basic block above which the
148         definitions are not instantiated.
149
150         * tree-scalar-evolution.h (instantiate_scev): Update declaration.
151         (block_before_loop): New.
152         * tree-data-ref.c (dr_analyze_indices): Update uses of instantiate_scev.
153         * graphite.c (block_before_scop): New.
154         (loop_affine_expr, stmt_simple_for_scop_p, harmful_stmt_in_bb): Pass a 
155         basic block, not a loop for determining the parameters.
156         (scopdet_edge_info, build_scops_1): Do not pass outermost loop in the
157         scop.
158         (idx_record_params, find_params_in_bb, find_scop_parameters,
159         build_loop_iteration_domains, add_conditions_to_domain): Update calls 
160         to instantiate_scev.
161
162         * Makefile.in (cfgloopmanip.o): Add missing dependency on TREE_FLOW_H.
163
164 2008-09-09  Vladimir Makarov  <vmakarov@redhat.com>
165
166         PR rtl-opt/37333
167         
168         * ira-build.c (ira_create_allocno): Setup frequency to 0.
169
170         * ira-color.c (update_conflict_hard_regno_costs): Remove assert.
171         Check zero freq and increase if necessary.
172
173 2008-09-09  Vladimir Makarov  <vmakarov@redhat.com>
174
175         * ira-conflicts.c (process_regs_for_copy): Check that the hard
176         regno is in the right range.  Add comments.
177
178 2008-09-09  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
179
180         * Makefile.in (mips-tfile.o-warn): Don't error out on mips-tfile.c
181         warnings.
182         * mips-tfile.c (copy_object): Cast alloca result to int *.
183         * mips-tdump.c (print_symbol): Cast xmalloc return values to
184         proper types.
185         Rename class to sclass.
186         (read_tfile): Cast read_seek return values to proper types.
187         Cast xcalloc return value to proper type.
188
189 2008-09-09  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
190
191         * config/sol2.h (REGISTER_TARGET_PRAGMAS): Move ...
192         * config/i386/sol2.h (REGISTER_SUBTARGET_PRAGMAS): ... here.
193         * config/sparc/sol2.h (REGISTER_TARGET_PRAGMAS): ... and here.
194
195 2008-09-09  Jan Hubicka  <jh@suse.cz>
196
197         * profile.c (is_edge_inconsistent): Add debug output; ignore negative count
198         on fake edges.
199         (is_inconsistent): Add debug output.
200
201 2008-09-09  Andrey Belevantsev  <abel@ispras.ru>
202
203         * haifa-sched.c (advance_one_cycle): Do not print '\n' before printing
204         dump message.
205         (choose_ready): When first insn is chosen from the ready list, also
206         dump it.
207
208 2008-09-09  Andrey Belevantsev  <abel@ispras.ru>
209
210         PR rtl-optimization/37360
211         * haifa-sched.c (max_issue): Do not assert that we never issue more
212         insns than issue_rate.  Add comment.
213         
214 2008-09-09  Richard Guenther  <rguenther@suse.de>
215
216         * tree-cfg.c (verify_types_in_gimple_op): Remove.
217         (verify_types_in_gimple_call): Rename to ...
218         (verify_gimple_call): ... this.  Enhance.
219         (verify_types_in_gimple_cond): Remove.
220         (verify_gimple_comparison): New function ...
221         (verify_types_in_gimple_assign): ... split out from here.
222         (verify_types_in_gimple_return): Rename to ...
223         (verify_gimple_return): ... this.  Enhance.
224         (verify_types_in_gimple_switch): Rename to ...
225         (verify_gimple_switch): ... this.  Enhance.
226         (verify_gimple_goto): New function.
227         (verify_types_in_gimple_phi): Rename to ...
228         (verify_gimple_phi): ... this.  Enhance.
229         (verify_types_in_gimple_stmt): Adjust calls to helper functions.
230         Fold in single-statement cases from verify_types_in_gimple_seq_2.
231         (verify_types_in_gimple_seq_2): Remove cases handled in
232         verify_types_in_gimple_stmt.
233
234 2008-09-09  Bernd Schmidt  <bernd.schmidt@analog.com>
235
236         * config/bfin/bfin.c (n_regs_to_save): New static variable.
237         (push_multiple_operation, pop_multiple_operation): Set it.
238         (workaround_rts_anomaly): New function.
239         (workaround_speculation): New function, broken out of bfin_reorg.
240         (bfin_reorg): Call the new functions.
241
242 2008-09-09  Richard Guenther  <rguenther@suse.de>
243
244         PR middle-end/37354
245         PR middle-end/30165
246         * gimplify.c (gimplify_conversion): Change conversions of
247         non-register type to VIEW_CONVERT_EXPRs.
248         (gimplify_addr_expr): If we need to make the operand
249         addressable make sure to use a properly initialized
250         temporary for that so it gets a valid gimple store.
251
252 2008-09-09  Aldy Hernandez  <aldyh@redhat.com>
253
254         * function.h (struct function): Add function_start_locus.
255         * cfgexpand.c (gimple_expand_cfg): Use it.
256         * c-parser.c (c_parser_declaration_or_fndef): Set it.
257
258 2008-09-09  Richard Guenther  <rguenther@suse.de>
259
260         PR tree-optimization/37433
261         * tree-ssa-ccp.c (ccp_fold): Properly guard folding of
262         function calls.
263
264 2008-09-09  Richard Guenther  <rguenther@suse.de>
265
266         PR tree-optimization/37387
267         * tree-ssa-ifcombine.c (ifcombine_iforif): Convert the name
268         and bits to a common type.
269
270 2008-09-09  Nick Clifton  <nickc@redhat.com>
271
272         * config/v850/v850.md (return): Restore frame size restriction.
273
274 2008-09-09  Paolo Bonzini  <bonzini@gnu.org>
275
276         * c-common.c (c_expand_decl): Remove.
277         * c-common.h (anon_aggr_type_p): Remove prototype.
278         (DECL_ANON_UNION_ELEMS): Remove.
279         * c-objc-common.h (LANG_HOOKS_EXPAND_DECL): Remove.
280         * c-decl.c (anon_aggr_type_p): Remove.
281         * langhooks-def.h (LANG_HOOKS_EXPAND_DECL): Remove.
282         (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_EXPAND_DECL.
283         * langhooks.h (struct lang_hooks): Remove expand_decl.
284         * langhooks.c (lhd_expand_decl): Remove.
285         * stmt.c (expand_anon_union_decl): Remove.
286         * tree.h (expand_anon_union_decl): Remove prototype.
287
288 2008-08-09  Andy Hutchinson  <hutchinsonandy@aim.com>
289
290         PR target/36609
291         * config/avr/avr.c (avr_reorg): Create RTL for reversed compare with
292         zero.
293         * config/avr/avr.md  (QISI) : Define mode iterator.
294         (negated_tst<mode>) : Redefine as split using mode macro.
295         (reversed_tstqi): Define insn as reversed compare with zero.
296         (reversed_tsthi): Ditto.
297         (reversed_tstsi): Ditto.
298
299 2008-09-08  Jakub Jelinek  <jakub@redhat.com>
300
301         PR middle-end/37393
302         * tree-inline.c (copy_bb): When replacing a gimple_call_va_arg_pack_p
303         call stmt by new_call, clear gimple_bb on stmt after gsi_replace.
304
305         PR middle-end/37414
306         * predict.c (optimize_function_for_size_p): Don't segfault if
307         FUN is NULL.
308         * fold-const.c (LOGICAL_OP_NON_SHORT_CIRCUIT, fold_truthop,
309         tree_swap_operands_p): Don't test cfun != NULL before calling
310         optimize_function_for_s*_p.
311
312 2008-09-08  Eric Botcazou  <ebotcazou@adacore.com>
313
314         * ira-color.c (ira_reuse_stack_slot): Set slot_num on success at the
315         end of the search.
316
317 2008-09-08  M R Swami Reddy <MR.Swami.Reddy@nsc.com>
318
319         * crx/crx.h (IRA_COVER_CLASSES): Define.
320
321 2008-09-08  Jakub Jelinek  <jakub@redhat.com>
322
323         PR middle-end/37337
324         * tree-ssa-dom.c (optimize_stmt): Call maybe_clean_or_replace_eh_stmt
325         even when a stmt has been gimple_modified_p, but after fold_stmt is
326         not any longer.  Remove unneeded may_have_exposed_new_symbols
327         initializations.
328
329 2008-09-08  Richard Guenther  <rguenther@suse.de>
330
331         PR tree-optimization/37421
332         * tree-ssa-sccvn.c (visit_copy): Make sure to fully
333         valueize the RHS.
334
335 2008-09-08  Jakub Jelinek  <jakub@redhat.com>
336
337         PR middle-end/37415
338         * opts.c (common_handle_option): Handle OPT_ftree_store_ccp.
339
340 2008-09-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
341
342         PR driver/37409
343         * pa-hpux.h (LINK_SPEC): Strip -fwhole-program.
344         * pa-hpux10.h (LINK_SPEC): Likewise.
345         * pa-hpux11.h (LINK_SPEC): Likewise.
346
347 2008-09-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
348
349         * pa32-regs.h (IRA_COVER_CLASSES): Define.
350         * pa64-regs.h (IRA_COVER_CLASSES): Define.
351
352 2008-09-07  Helge Deller  <deller@gmx.de>
353
354         * pa/linux-atomic.c: New file.
355         * pa/t-linux (LIB2FUNCS_STATIC_EXTRA): Define.
356         * pa/t-linux64 (LIB2FUNCS_STATIC_EXTRA): Define.
357
358 2008-09-07  Richard Guenther  <rguenther@suse.de>
359             Ira Rosen  <irar@il.ibm.com>
360
361         PR tree-optimization/36630
362         * tree-vect-transform.c (vect_update_ivs_after_vectorizer):
363         Call STRIP_NOPS before calling evolution_part_in_loop_num.
364
365 2008-09-07  Dorit Nuzman  <dorit@il.ibm.com>
366             Ira Rosen  <irar@il.ibm.com>
367
368         PR tree-optimization/35642
369         * config/rs6000/altivec.md (mulv8hi3): Implement.
370
371 2008-09-06  Jeff Law <law@redhat.com>
372
373         * h8300/h8300.h (IRA_COVER_CLASSES): Define.
374
375 2008-09-06  Jan Hubicka  <jh@suse.cz>
376
377         PR tree-optimization/14703
378         * tree-ssa-live.c (remove_unused_scope_block_p): Remove ignored declarations.
379         * passes.c (init_optimization_passes): Recompute inline parameters.
380
381 2008-09-06  Richard Sandiford  <rdsandiford@googlemail.com>
382
383         * config/mips/mips.c (mips_function_ok_for_sibcall): Check for
384         DECL being null.
385
386 2008-09-06  Richard Sandiford  <rdsandiford@goolemail.com>
387             Peter Fuerst  <post@pfrst.de>
388
389         * doc/invoke.texi: Document -mr10k-cache-barrier=.
390         * doc/extend.texi: Document __builtin_mips_cache.
391         * config/mips/mips-ftypes.def: Add a (VOID, SI, CVPOINTER) entry.
392         * config/mips/mips.opt (mr10k-cache-barrier=): New option.
393         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define
394         __GCC_HAVE_BUILTIN_MIPS_CACHE.
395         (TARGET_CACHE_BUILTIN, ISA_HAS_CACHE): New macros.
396         * config/mips/mips.c (mips_r10k_cache_barrier_setting): New enum.
397         (set_push_mips_isas): New variable.
398         (mips_r10k_cache_barrier): New variable.
399         (cache): New availability predicate.
400         (mips_builtins): Add an entry for __builtin_mips_cache.
401         (mips_build_cvpointer_type): New function.
402         (MIPS_ATYPE_CVPOINTER): New macro.
403         (mips_prepare_builtin_arg): Only use the insn's mode if the rtx's
404         mode is VOIDmode.
405         (r10k_simplified_address_p, r10k_simplify_address)
406         (r10k_uncached_address_p, r10k_safe_address_p)
407         (r10k_needs_protection_p_1, r10k_needs_protection_p_store)
408         (r10k_needs_protection_p_call, r10k_needs_protection_p)
409         (r10k_insert_cache_barriers): New functions.
410         (mips_reorg_process_insns): Delete cache barriers after a
411         branch-likely instruction.
412         (mips_reorg): Call r10k_insert_cache_barriers.
413         (mips_handle_option): Handle OPT_mr10k_cache_barrier_.
414         * config/mips/mips.md (UNSPEC_MIPS_CACHE): New constant.
415         (UNSPEC_R10K_CACHE_BARRIER): Likewise.
416         (mips_cache, r10k_cache_barrier): New define_insns.
417
418 2008-09-06  Richard Sandiford  <rdsandiford@googlemail.com>
419
420         * ira-int.h (ira_zero_hard_reg_set, ira_one_hard_reg_set): Delete.
421         * ira-color.c (setup_allocno_left_conflicts_num): Use
422         hard_reg_set_equal_p instead of a comparison with
423         ira_zero_hard_reg_set.
424         * ira.c (setup_reg_subclasses): Likewise.
425         (setup_cover_and_important_classes): Likewise.
426         (setup_class_translate): Likewise.
427         (setup_reg_class_intersect_union): Likewise.
428         (ira_zero_hard_reg_set, ira_one_hard_reg_set): Delete.
429         (ira_init_once): Don't initialize them.
430
431 2008-09-05  Vladimir Makarov  <vmakarov@redhat.com>
432
433         * doc/tm.texi (IRA_COVER_CLASSES): Fix a typo.
434
435 2008-09-05  Vladimir Makarov  <vmakarov@redhat.com>
436
437         * ira-color.c (ira_fast_allocation): Permit global allocno
438         allocation.
439         
440 2008-09-05  Trevor Smigiel <Trevor_Smigiel@playstation.sony.com>
441
442         Improved branch hints, safe hints, and scheduling.
443
444         * haifa-sched.c (sched_emit_insn) : Define.
445         * sched-int.h (sched_emit_insn) : Add prototype.
446         * doc/invoke.texi (-mdual-nops, -mhint-max-nops,
447         -mhint-max-distance -msafe-hints) : Document.
448         * config/spu/spu.c (spu_flag_var_tracking): New.
449         (TARGET_SCHED_INIT_GLOBAL, TARGET_SCHED_INIT,
450         TARGET_SCHED_REORDER, TARGET_SCHED_REORDER2,
451         TARGET_ASM_FILE_START): Define.
452         (TARGET_SCHED_ADJUST_PRIORITY): Remove.
453         (STOP_HINT_P, HINTED_P, SCHED_ON_EVEN_P): Define.
454         (spu_emit_branch_hint): Add blocks argument.
455         (insert_branch_hints, insert_nops): Remove.
456         (pad_bb, insert_hbrp_for_ilb_runout, insert_hbrp, in_spu_reorg,
457         uses_ls_unit, spu_sched_init_global, spu_sched_init,
458         spu_sched_reorder, asm_file_start): New functions.
459         (clock_var, spu_sched_length, pipe0_clock,
460         pipe1_clock, prev_clock_var, prev_priority,
461         spu_ls_first, prev_ls_clock): New static variables.
462         * config/spu/spu.h (TARGET_DEFAULT): Add MASK_SAFE_HINTS.
463         * config/spu.md (iprefetch): Add operand, make it clobber MEM.
464         (nopn_nv): Add a non-volatile version of nop.
465         * config/spu/spu.opt (-mdual-nops, -mhint-max-nops,
466         -mhint-max-distance, -msafe-hints): New options.
467
468 2008-09-05  Janis Johnson  <janis187@us.ibm.com>
469             Samuel Tardieu  <sam@rfc1149.net>
470
471         * opts.c (decode_options): Combine nested if statements.
472
473         PR target/37283
474         * opts.c (decode_options): Handle more relationships among
475         unit-at-a-time, toplevel-reorder, and section-anchors.
476
477 2008-09-05  David Daney  <ddaney@avtrex.com>
478
479         * doc/install.texi (--enable-reduced-reflection): Document new option.
480
481 2008-09-05  Bob Wilson  <bob.wilson@acm.org>
482
483         * config/xtensa/predicates.md (nonimmed_operand, mem_operand): Use
484         constantpool_mem_p.
485         (constantpool_operand): New.
486         (move_operand): Disallow sub-word modes for the constant pool.
487         * config/xtensa/xtensa.c (TARGET_SECONDARY_RELOAD): Define.
488         (xtensa_secondary_reload_class): Replace with....
489         (xtensa_secondary_reload): this function.  Remove SIGN_EXTEND check. 
490         Set icode for sub-word reloads from the constant pool.
491         * config/xtensa/xtensa.h (SECONDARY_INPUT_RELOAD_CLASS): Delete.
492         (SECONDARY_OUTPUT_RELOAD_CLASS): Delete.
493         * config/xtensa/xtensa.md (reload<mode>_literal): New.
494         * config/xtensa/xtensa-protos.h: Update prototypes.
495         
496 2008-09-05  Joseph Myers  <joseph@codesourcery.com>
497
498         * config/mips/mips.h (enum reg_class): Add FRAME_REGS.
499         (REG_CLASS_NAMES): Update.
500         (REG_CLASS_CONTENTS): Update.
501         * config/mips/mips.c (mips_regno_to_class): Use FRAME_REGS instead
502         of ALL_REGS for regs 77 and 78.
503         * function.c (instantiate_virtual_regs_in_insn): Assert that
504         return value of simplify_gen_subreg is not NULL.
505
506 2008-09-05  Paolo Bonzini  <bonzini@gnu.org>
507
508         * emit-rtl.c (gen_rtvec): Rewrite not using gen_rtvec_v.
509         (gen_rtvec_v): Fix coding standards.
510
511 2008-09-04  Jan Hubicka  <jh@suse.cz>
512
513         * i386.c (decide_alg): Be more conservative about optimizing for size.
514
515 2008-09-04  Ian Lance Taylor  <iant@google.com>
516
517         * varasm.c (narrowing_initializer_constant_valid_p): New
518         static function.
519         (initializer_constant_valid_p): Call it.
520
521 2008-09-04  Jeff Law  <law@redhat.com>
522
523         * fold-const.c (native_encode_real): Fix computation of WORDS.
524         (native_interpret_real): Likewise.
525
526 2008-09-04  Janis Johnson  <janis187@us.ibm.com>
527
528         * config/rs6000/t-rs6000: Remove target gt-rs6000.h.
529
530 2008-09-04  Vladimir Makarov  <vmakarov@redhat.com>
531
532         * ira-conflicts.c (process_regs_for_copy): Check insn to check
533         that the cost is already taken into account in ira-costs.c
534
535         * ira-int.h (ira_debug_copy, ira_debug_copies): New.
536
537         * ira-build.c (print_copy, print_copies, ira_debug_copy,
538         ira_debug_copies): New.
539         (ira_bulid): Call print_copies.
540         
541         * doc/tm.texi (IRA_COVER_CLASSES): Fix the description.
542         
543 2008-09-04  Samuel Tardieu  <sam@rfc1149.net>
544
545         PR target/32783
546         * config/rs6000/rs6000.c (optimization_options): Remove check of
547         flag_toplevel_order.
548
549 2008-09-04  Adam Nemet  <anemet@caviumnetworks.com>
550
551         * config/mips/mips.h (ISA_HAS_SEQ_SNE): New macro.
552         * config/mips/mips.c (mips_expand_scc): Also expand seq and sne if
553         second operand is a reg_imm10_operand.
554         * config/mips/mips.md (*seq_<GPR:mode><GPR2:mode>_seq,
555         *sne_<GPR:mode><GPR2:mode>_sne): New patterns.
556         (*seq_<GPR:mode><GPR2:mode>): Rename to
557         *seq_zero_<GPR:mode><GPR2:mode>.  Don't match if
558         ISA_HAS_SEQ_SNE.
559         (*seq_<GPR:mode><GPR2:mode>_mips16): Rename to
560         *seq_zero_<GPR:mode><GPR2:mode>_mip16.  Don't match if
561         ISA_HAS_SEQ_SNE.
562         (*sne_<GPR:mode><GPR2:mode>): Rename to
563         *sne_zero_<GPR:mode><GPR2:mode>.  Don't match if
564         ISA_HAS_SEQ_SNE.
565
566 2008-09-04  Adam Nemet  <anemet@caviumnetworks.com>
567
568         * config/mips/mips.h (ISA_HAS_EXTS): New macro.
569         * config/mips/mips.md (*ashr_trunc<mode>): Name the pattern
570         combining an arithmetic right shift by more than 31 and a
571         trunction.  Don't match for out-of-range shift amounts.  Set
572         attribute mode to <MODE>.
573         (*lshr32_trunc<mode>): Name the pattern combining a logical right
574         shift by 32 and and a truncation.  Set attribute mode to <MODE>.
575         (*<optab>_trunc<mode>_exts): New pattern for truncated right
576         shifts by less than 32.
577         (extv): Change predicate on first operand to accept registers.
578         Change predicate of the other operands from immediate_operand to
579         const_int_operand.  Expand exts when source is a register.
580         (extzv): Change predicate of the constant operands from
581         immediate_operand to const_int_operand.
582         (extzv<mode>): Change predicate of the constant operands from
583         immediate_operand to const_int_operand and no constraint. Also
584         remove mode.
585         (*extzv_trunc<mode>_exts): New pattern.
586
587 2008-09-04  Adam Nemet  <anemet@caviumnetworks.com>
588
589         * config/mips/mips.h (ISA_HAS_CINS): New macro.
590         * config/mips/mips-protos.h (mask_low_and_shift_p,
591         mask_low_and_shift_len): Declare.
592         * config/mips/mips.c (mask_low_and_shift_p,
593         mask_low_and_shift_len): New functions.
594         (mips_print_operand): Handle new operand prefix "m".
595         * config/mips/mips.md (*cins<mode>): New pattern.
596
597 2008-09-04  Bernd Schmidt  <bernd.schmidt@analog.com>
598
599         * config/bfin/bfin.c (gen_one_bundle): Don't create new nops when
600         optimizing for size.
601
602 2008-09-04  Richard Sandiford  <rdsandiford@googlemail.com>
603
604         * df-scan.c (df_get_entry_block_def_set): Add STACK_POINTER_REGNUM
605         regardless of epilogue_completed.
606
607 2008-09-04  Vladimir Makarov  <vmakarov@redhat.com>
608
609         PR middle-end/37359
610         * ira-lives.c (process_bb_node_lives): Check setjmp.
611
612 2008-09-04  Richard Sandiford  <rdsandiford@googlemail.com>
613
614         PR middle-end/37243
615         * ira-build.c (form_loop_tree): Reverse BB walk.
616         (create_bb_allocnos): Likewise.
617         * ira-lives.c (make_regno_born_and_dead, regs_set): Delete.
618         (mark_reg_store): Rename to...
619         (mark_ref_live): ...this and take a df_ref argument instead of
620         note_stores arguments.  Assert that we have a register.
621         (mark_reg_clobber): Delete.
622         (def_conflicts_with_inputs_p): New function.
623         (mark_reg_conflicts): Delete.
624         (mark_reg_death): Rename to...
625         (mark_ref_dead): ...this and take a df_ref argument instead of
626         a register.  Assert that we have a register.
627         (process_bb_node_lives): Hoist frequency calculation out of
628         instruction walk.  Convert from a forwards scan to a backwards scan.
629         Use DF_REF_USES and DF_REF_DEFS instead of register notes and
630         note_stores.  Remove EH_RETURN_DATA_REGNO and regs_set handling.
631         (create_allocno_live_ranges): Don't create regs_set.
632
633 2008-09-04  Ian Lance Taylor  <iant@google.com>
634
635         * rtl.h (LABEL_REF_NONLOCAL_P): Don't check for REG_LABEL_OPERAND
636         or REG_LABEL_TARGET.
637         * calls.c (emit_library_call_value_1): Use MEM_P rather than
638         comparing MODE with MEM.
639         * gimple.c (gimple_build_predict): Cast END_PREDICTORS before
640         comparing with GF_PREDICT_TAKEN.
641         (gimple_get_lhs): Change code to enum gimple_code.
642         (gimple_set_lhs): Likewise.
643         * ifcvt.c (noce_process_if_block): Correct GET_MODE to GET_CODE.
644         * omp-low.c (find_omp_clause): Change kind parameter to enum
645         omp_clause_code.
646         * tree-flow.h (find_omp_clause): Update declaration.
647         * regrename.c (clear_dead_regs): Change kind parameter to enum
648         reg_note.
649         * reload1.c (eliminate_regs_1): Use REG_NOTE_KIND rather than
650         GET_MODE.
651         * see.c (see_get_extension_data): Change return type to enum
652         entry_type.  Change UNKNOWN to NOT_RELEVANT, SIGN_EXTEND to
653         SIGNED_EXTENDED_DEF, ZERO_EXTEND to ZERO_EXTENDED_DEF.
654         (see_gen_normalized_extension): Change extension_code parameter to
655         enum entry_type.
656         (see_seek_pre_extension_expr): Change extension_code to enum
657         entry_type.
658         (see_merge_one_def_extension): Likewise.
659         (see_handle_relevant_defs): Likewise.
660         (see_handle_relevant_uses): Likewise.
661         (see_analyze_one_def): Likewise.
662         * tree-cfg.c (need_fake_edge_p): Compare gimple code with
663         GIMPLE_ASM rather than ASM_EXPR.
664         * tree-ssa-alias.c (is_escape_site): Compare gimple code with
665         GIMPLE_RETURN rather than RETURN_EXPR.
666         * tree-ssa-ccp.c (likely_value): Change code to enum gimple_code.
667         (evaluate_stmt): Likewise.
668         * tree-vect-analyze.c (vect_analyze_operations): Change relevance
669         to enum vect_relevant.
670         (vect_mark_stmts_to_be_vectorized): Change assertion to not
671         compare gimple codes with tree codes.
672
673 2008-09-04  Paul Brook  <paul@codesourcery.com>
674
675         * config/arm/arm.c (arm_size_rtx_costs): Call cost function.
676
677 2008-09-04  Bernd Schmidt  <bernd.schmidt@analog.com>
678
679         * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Restore a null
680         pointer check lost in the recent no-unit-at-a-time patch.
681         
682 2008-09-04  Jan Hubicka  <jh@suse.cz>
683
684         PR middle-end/37343
685         * tree-switch-conversion.c (check_final_bb): Accept only IP
686         invariants.
687
688 2008-09-04  Jan Hubicka  <jh@suse.cz>
689
690         * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
691         Break out from ...
692         (vrp_evaluate_conditional_warnv_with_ops): ... this one.  Add
693         using_ranges argument.
694         (vrp_evaluate_conditional): Avoid bogus warning for type range.
695         (vrp_visit_cond_stmt): Update call of
696         vrp_evaluate_conditional_warnv_with_ops
697
698 2008-09-04  Jan Hubicka  <jh@suse.cz>
699
700         PR tree-optimization/37345
701         PR tree-optimization/37358
702         PR tree-optimization/37357
703         * tree.c (build_function_type_skip_args): Build distinct type copy;
704         set TYPE_CONTEXT.
705         (build_function_decl_skip_args): Set type of new decl not orig decl;
706         clear DECL_VINDEX for methods turned into functions.
707
708 2008-09-04  Nick Clifton  <nickc@redhat.com>
709
710         * configure.ac (HAVE_GAS_LCOMM_WITH_ALIGNMENT): New assembler
711         check.
712         * configure: Regenerate.
713         * config.in: Regenerate.
714         * config/i386/bsd.h (ASM_OUTPUT_ALIGNED_LOCAL): Use .lcomm with an
715         alignment field, if it is supported.
716
717 2008-09-04  Kai Tietz  <kai.tietz@onevision.com>
718
719         * config/i386/t-mingw32 (SHLIB_LC): Change order of import
720         libraries.
721
722 2008-09-03  David Edelsohn  <edelsohn@gnu.org>
723
724         * config/rs6000/rs6000.c (processor_target_table): Do not
725         enable VMX for POWER6.
726
727 2008-09-03  Anton Blanchard  <anton@samba.org>
728
729         * config/rs6000/rs6000.c (rs6000_split_lock_test_and_set): Do not
730         emit memory barrier before operation.
731
732 2008-09-03  John David Anglin  <dave.anglin@nrc.cnrc.gc.ca>
733
734         PR testsuite/37325
735         * config/pa/pa64-hpux.h (ASM_OUTPUT_EXTERNAL_REAL): Call
736         default_elf_asm_output_external.
737
738 2008-09-03  Jeff Law  <law@redhat.com>
739
740         * h8300.c (expand_a_shift): Avoid invalid RTL sharing.
741
742 2008-09-03  Richard Henderson  <rth@redhat.com>
743
744         * config/alpha/alpha.c (alpha_split_lock_test_and_set): Move
745         memory barrier to below the test-and-set.
746         (alpha_split_lock_test_and_set_12): Likewise.
747
748 2008-09-03  Vladimir Makarov  <vmakarov@redhat.com>
749
750         PR rtl-opt/37243
751
752         * ira-int.h (ira_loop_tree_node): Rename mentioned_allocnos to
753         all_allocnos.
754
755         * ira-color.c (print_loop_title): Use all_allocnos.
756         (color_pass): Ditto.  Don't add border_allocnos.  Check that
757         subloop allocno in the correspdoning bitmap all_allocnos.
758
759         * ira-emit.c (change_loop): Use all_allocnos.
760
761         * ira-build.c (create_loop_tree_nodes, finish_loop_tree_node):
762         Ditto.
763         (ira_create_allocno): Set up all_allocnos bit for the created
764         allocno.
765         (create_cap_allocno): Remove setting mentioned_allocnos.
766         (create_insn_allocnos): Ditto.
767         (remove_unnecessary_allocnos): Use all_allocnos.
768         (check_allocno_creation): Check that allocnos are in the
769         corresponding bitmap all_allocnos.
770         
771 2008-09-03  Vladimir Makarov  <vmakarov@redhat.com>
772
773         PR rtl-opt/37243
774         
775         * ira-conflicts.c (REG_SUBREG_P, go_through_subreg): New.
776         (process_regs_for_copy): Process subregs.  Refine check when cost
777         is taken into account in ira-costs.c.
778         (process_reg_shuffles): Use REG_SUBREG_P.
779         (add_insn_allocno_copies): Ditto.  Ignore modes.
780
781         * ira-color.c (conflict_allocno_vec): New.
782         (COST_HOP_DIVISOR): New macro.
783         (update_copy_costs_1): Use it.
784         (update_conflict_hard_regno_costs): New function.
785         (assign_hard_reg): Use it.
786         (ira_color): Allocate and free conflict_allocno_vec.
787  
788 2008-09-03  Vladimir Makarov  <vmakarov@redhat.com>
789
790         PR rtl-opt/37296
791
792         * ira-int.h (ira_sort_insn_chain): Remove.
793
794         * ira.c (basic_block_order_nums, chain_insn_order,
795         chain_freq_compare, chain_bb_compare, ira_sort_insn_chain): Remove.
796         (ira): Don't call ira_sort_insn_chain.
797
798         * reload1.c (reload): Don't call ira_sort_insn_chain.
799
800 2008-09-03  Andrew Pinski  <andrew_pinski@playstation.sony.com>
801
802         PR middle-end/37293
803         * cgraphunit.c (update_call_expr): Remove eh regions from statements
804         which become non throw.
805         (cgraph_function_versioning): Also clear DECL_WEAK.  Call
806         update_call_expr after updating the flags on the decl.
807
808 2008-09-03  Jan Hubicka  <jh@suse.cz>
809
810         PR tree-optimization/37315
811         * cgraph.c (cgraph_create_edge): Use gimple_has_body_p.
812         * cgraphunit.c (verify_cgraph_node): drop gimple_body check.
813         (cgraph_analyze_functions): Use node->analyzed
814         (cgraph_mark_functions_to_output): Likewise.
815         (cgraph_expand_function): All functions can be released after
816         expanding.
817         (cgraph_optimize): Use gimple_has_body_p.
818         * ipa-inline.c (cgraph_clone_inlined_nodes): Use analyzed flag.
819         (cgraph_decide_inlining_incrementally): Likewise.
820         (inline_transform): Inline transform.
821         * tree-inline.c (initialize_cfun): Do now shallow copy structure;
822         copy fields needed.
823         (inlinable_function_p): Drop gimple_body check.
824         (expand_call_inline): Use gimple_has_body_p.
825         * gimple.c (gimple_has_body_p): New.
826         * gimple.h (gimple_has_body_p): Add prototype.
827         * tree-cfg.c (execute_build_cfg): Remove gimple_body.
828         (dump_function_to_file): Use gimple_has_body_p check.
829
830 2008-09-03  Jakub Jelinek  <jakub@redhat.com>
831
832         PR c++/37346
833         * gimple.h (gimple_has_substatements): GIMPLE_OMP_CRITICAL has
834         substatements.
835         * tree-inline.c (remap_gimple_stmt): Handle GIMPLE_OMP_CRITICAL.
836
837 2008-09-03  Bernd Schmidt  <bernd.schmidt@analog.com>
838
839         From Michael Frysinger  <michael.frysinger@analog.com>
840         * config/bfin/bfin.c (bfin_cpus[]): Add 0.1 for bf522, bf523, bf524,
841         bf525, bf526, bf527, bf542, bf544, bf547, bf548, and bf549.  Add 0.2
842         for bf538.
843
844 2008-09-03  Hari Sandanagobalane  <hariharan@picochip.com>
845
846         Add picoChip port.
847         * doc/extend.texi: Document picoChip builtin functions.
848         * doc/invoke.texi: Document picoChip options.
849         * doc/contrib.texi: Add picoChip contribution.
850         * doc/md.texi: Document picoChip constraints.
851         * config.gcc: Add picochip-*-*.
852         * config/picochip/: Add new port.
853
854 2008-09-03  Richard Guenther  <rguenther@suse.de>
855
856         PR tree-optimization/37328
857         * tree-sra.c (sra_build_assignment): Gimplify properly.
858         (generate_copy_inout): Take the correct stmt as definition,
859         remove bogus assert.
860
861 2008-09-03  Bernd Schmidt  <bernd.schmidt@analog.com>
862
863         * config/bfin/bfin.c (bfin_expand_prologue): Honour no_stack_limit
864         attributes.
865
866         From Michael Frysinger  <michael.frysinger@analog.com>
867         * config/bfin/bfin.c (bfin_handle_option): Remove BF561 warning.
868
869 2008-09-03 Danny Smith  <dannysmith@usrs.sourceforge.net>
870
871         * gthr-win32.h (CONST_CAST2): Really make sure CONST_CAST2 is
872         defined.
873         (__gthread_setspecific): Revert 2008-08-31 change to
874         __GTHREAD_HIDE_W32API case.  Apply it to !__GTHREAD_HIDE_W32API
875         case.
876
877 2008-09-02  Aldy Hernandez  <aldyh@redhat.com>
878
879         * diagnostic.c (error_at): New.
880         * toplev.h (error_at): New prototype.
881         * c-typeck.c (build_array_ref): Call error_at instead of error.
882         Pass location to pedwarn.
883
884 2008-09-02  Adam Nemet  <anemet@caviumnetworks.com>
885
886         * sel-sched.c (sel_hard_regno_rename_ok): Mark arguments unused.
887
888 2008-09-02  Jakub Jelinek  <jakub@redhat.com>
889
890         * dwarf2out.c (tree_add_const_value_attribute): Only handle
891         VAR_DECL and CONST_DECL.
892
893 2008-09-02  H.J. Lu  <hongjiu.lu@intel.com>
894             Jakub Jelinek  <jakub@redhat.com>
895
896         * config/i386/i386.c (X86_64_VARARGS_SIZE): Removed.
897         (setup_incoming_varargs_64): Assume cum != NULL. Set/check
898         ix86_varargs_gpr_size and ix86_varargs_fpr_size.  Use
899         ix86_varargs_gpr_size instead of X86_64_REGPARM_MAX.
900         Don't set ix86_save_varrargs_registers.
901         (ix86_setup_incoming_varargs): Assume cum != NULL.
902         (ix86_va_start): Check ix86_varargs_gpr_size and
903         ix86_varargs_fpr_size instead of cfun->va_list_gpr_size and
904         cfun->va_list_fpr_size, respectively.  Subtract 8*X86_64_REGPARM_MAX
905         from frame pointer if ix86_varargs_gpr_size == 0.
906         (ix86_compute_frame_layout): Updated.
907         * config/i386/i386.h (ix86_save_varrargs_registers): Removed.
908         (ix86_varargs_gpr_size): Define.
909         (ix86_varargs_fpr_size): Likewise.
910         (machine_function): Remove save_varrargs_registers.
911         Add varargs_gpr_size and varargs_fpr_size.
912
913 2008-09-02  Jakub Jelinek  <jakub@redhat.com>
914
915         * config/alpha/alpha.c (va_list_skip_additions,
916         alpha_stdarg_optimize_hook, alpha_gimplify_va_arg_1): Tuplify.
917         (alpha_gimplify_va_arg): Call unshare_expr on second use of
918         offset_field.
919
920         PR tree-optimization/36766
921         * tree-cfg.c (gimple_purge_all_dead_eh_edges): Do nothing
922         for already removed basic blocks.
923
924         PR target/36332
925         * real.c (real_maxval): Clear a lower bit to make real_maxval
926         match get_max_float for IBM long double format.
927
928 2008-09-02  Andreas Schwab  <schwab@suse.de>
929
930         * configure.ac: Use m4_quote to quote the expansion of m4_do.
931         * configure: Regenerate.
932
933 2008-09-02  Richard Sandiford  <rdsandiford@googlemail.com>
934
935         * simplify-rtx.c (simplify_binary_operation_1): Check for CONST,
936         SYMBOL_REF and LABEL_REF when applying plus_constant, instead of
937         checking for a non-VOID CONSTANT_P.
938
939 2008-09-02  Jan Hubicka  <jh@suse.cz>
940
941         * predict.c (pass_strip_predict_hints): Avoid bugs dump file.
942         * expmed.c (expand_divmod): Fix test of smod_pow2_cheap and sdiv_pow2_cheap
943
944 2008-09-02  H.J. Lu  <hongjiu.lu@intel.com>
945
946         * expr.c (emit_group_store): Don't assert stack temp mode size.
947
948 2008-09-02  Sebastian Pop  <sebastian.pop@amd.com>
949             Tobias Grosser  <grosser@fim.uni-passau.de>
950             Jan Sjodin  <jan.sjodin@amd.com>
951             Harsha Jagasia  <harsha.jagasia@amd.com>
952             Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
953             Konrad Trifunovic  <konrad.trifunovic@inria.fr>
954             Adrien Eliche  <aeliche@isty.uvsq.fr>
955
956         Merge from graphite branch.
957         * graphite.c: New.
958         * graphite.h: New.
959         * tree-loop-linear.c (perfect_loop_nest_depth): Export.
960         * doc/invoke.texi (-floop-block, -floop-interchange,
961         -floop-strip-mine): Document new flags.
962         * tree-into-ssa.c (gimple_vec): Moved...
963         * tree-loop-distribution.c (rdg_component): Moved...
964         * cfgloopmanip.c: Include tree-flow.h.
965         (update_dominators_in_loop): New.
966         (create_empty_if_region_on_edge): New.
967         (create_empty_loop_on_edge): New.
968         (loopify): Use update_dominators_in_loop.
969         * tree-pass.h (pass_graphite_transforms): Declared.
970         * configure: Regenerate.
971         * tree-phinodes.c (make_phi_node): Export.
972         (add_phi_node_to_bb): New, split from create_phi_node.
973         * tree-chrec.c (for_each_scev_op): New.
974         * tree-chrec.h (for_each_scev_op): Declared.
975         * tree-ssa-loop-ivopts.c (get_phi_with_result): New.
976         (remove_statement): Call get_phi_with_result.
977         * config.in (HAVE_cloog): Undef.
978         * gdbinit.in (pgg): New.
979         * timevar.def (TV_GRAPHITE_TRANSFORMS): New.
980         * tree-ssa-loop.c (graphite_transforms): New.
981         (gate_graphite_transforms): New.
982         (pass_graphite_transforms): New.
983         * configure.ac (PPLLIBS, PPLINC, CLOOGLIBS, CLOOGINC,
984         HAVE_cloog): Defined.
985         * tree-vectorizer.c (rename_variables_in_bb): Export.
986         * tree-data-ref.c (dr_may_alias_p): Export.
987         (stmt_simple_memref_p): New.
988         (find_data_references_in_stmt): Export.
989         (find_data_references_in_loop): Export.
990         (create_rdg_edge_for_ddr): Initialize RDGE_RELATION.
991         (create_rdg_edges_for_scalar): Initialize RDGE_RELATION.
992         (create_rdg_vertices): Export.
993         (build_empty_rdg): New.
994         (build_rdg): Call build_empty_rdg.  Free dependence_relations.
995         * tree-data-ref.h (rdg_component): ... here.
996         (scop_p): New.
997         (struct data_reference): Add a field scop.
998         (DR_SCOP): New.
999         (find_data_references_in_loop): Declared.
1000         (find_data_references_in_stmt): Declared.
1001         (create_rdg_vertices): Declared.
1002         (dr_may_alias_p): Declared.
1003         (stmt_simple_memref_p): Declared.
1004         (struct rdg_edge): Add a field ddr_p relation.
1005         (build_empty_rdg): Declared.
1006         * lambda.h (lambda_matrix): Declare a VEC of.
1007         (find_induction_var_from_exit_cond): Declared.
1008         (lambda_vector_compare): New.
1009         * common.opt (fgraphite, floop-strip-mine,
1010         floop-interchange, floop-block): New flags.
1011         * lambda-code.c (find_induction_var_from_exit_cond): Export.
1012         * cfgloop.c (is_loop_exit): New.
1013         * cfgloop.h (is_loop_exit): Declared.
1014         (create_empty_if_region_on_edge): Declared.
1015         (create_empty_loop_on_edge): Declared.
1016         * tree-flow.h (add_phi_node_to_bb): Declared.
1017         (make_phi_node): Declared.
1018         (rename_variables_in_bb): Declared.
1019         (perfect_loop_nest_depth): Declared.
1020         (graphite_transform_loops): Declared.
1021         * Makefile.in (cfgloopmanip.o): Depend on TREE_FLOW_H.
1022         (graphite.o-warn): Add -Wno-error.
1023         (PPLLIBS, PPLINC, CLOOGLIBS, CLOOGINC): Declared.
1024         (LIBS): Add GMPLIBS, CLOOGLIBS, PPLLIBS.
1025         (INCLUDES): Add PPLINC, CLOOGINC.
1026         (OBJS-common): Add graphite.o.
1027         (graphite.o): Add rule.
1028         * gimple.h (gimple_vec): ... here.
1029         * tree-cfg.c (print_loops): Start printing at ENTRY_BLOCK_PTR.
1030         * passes.c (init_optimization_passes): Schedule 
1031         pass_graphite_transforms.
1032
1033 2008-09-02  Samuel Tardieu  <sam@rfc1149.net>
1034
1035         PR target/37283
1036         * opts.c (decode_options): Move processing of -fno-unit-at-a-time
1037         and -fno-toplevel-reorder after handle_options.
1038
1039 2008-09-02  Paul Brook  <paul@codesourcery.com>
1040
1041         * config/arm/arm.c (arm_tune_cortex_a9): Define.
1042         (arm_override_options): Set arm_tune_cortex_a9.
1043         (arm_rtx_costs_1): Make register shifts more expensive on Cortex-A9.
1044         (arm_issue_rate): Handle cortexa9.
1045         * config/arm/arm.h (arm_tune_cortex_a9): Declare.
1046         * config/arm/arm-cores.def: Add cortex-a9.
1047         * config/arm/arm-tune.md: Regenerate.
1048         * config/arm/arm.md: Include cortex-a9.md.
1049         (generic_sched, generic_vfp): Add cortexa9.
1050         * config/arm/cortex-a9.md: New file.
1051
1052 2008-09-02  Richard Guenther  <rguenther@suse.de>
1053
1054         PR tree-optimization/37327
1055         * tree-vrp.c (register_new_assert_for): Make sure to not have
1056         TREE_OVERFLOW set on the bound.
1057
1058 2008-09-02  Alexander Monakov  <amonakov@ispras.ru>
1059
1060         Fixed typo in date of the 2008-09-01 MOVE_RATIO commit.
1061
1062         * config/ia64/ia64.opt (msched-ar-data-spec): Default to 1.
1063         * config/ia64/ia64.c (ia64_set_sched_flags): Always initialize
1064         spec_info->mask.
1065
1066 2008-09-02  Victor Kaplansky  <victork@il.ibm.com>
1067
1068         * gcc/config/spu/spu.md (divdf3): Removed.
1069
1070 2008-09-02  Jakub Jelinek  <jakub@redhat.com>
1071
1072         PR tree-optimization/37095
1073         * cgraph.c (cgraph_node): When creating new cgraph node after
1074         assembler_name_hash has been populated, record it in the hash
1075         table.
1076
1077 2008-09-01  Paul Brook  <paul@codesourcery.com>
1078
1079         * doc/invoke.texi: Document -mword-relocations.
1080         * config/arm/uclinux-elf.h (TARGET_DEFAULT_WORD_RELOCATIONS): Define.
1081         * config/arm/symbian.h (TARGET_DEFAULT_WORD_RELOCATIONS): Define.
1082         * config/arm/vxworks.h (TARGET_DEFAULT_WORD_RELOCATIONS): Define.
1083         * config/arm/arm.c (arm_split_constant): Use arm_emit_movpair.
1084         (arm_rtx_costs_1, arm_size_rtx_costs): Handle HIGH and LO_SUM.
1085         (arm_emit_movpair): New function.
1086         (arm_print_operand <c>): Handle sybolic addresses.
1087         * config/arm/arm.h (TARGET_USE_MOVT): Define.
1088         (TARGET_DEFAULT_WORD_RELOCATIONS): Define.
1089         * config/arm/arm-protos.h (arm_emit_movpair): Add prototype.
1090         * config/arm/arm.opt: Add -mword-relocations.
1091         * config/arm/arm.md (movsi): Use arm_emit_movpair.
1092         (arm_movt, arm_movw): New.
1093
1094 2008-09-01  Paul Brook  <paul@codesourcery.com>
1095
1096         * config/arm/arm.c (arm_override_options): Set arm_abi earlier.
1097         Allow Interworking on ARMv4 EABI based targets.
1098         * config/arm/bpabi.h (TARGET_FIX_V4BX_SPEC): Define.
1099         (SUBTARGET_EXTRA_ASM_SPEC, LINK_SPEC): Add TARGET_FIX_V4BX_SPEC.
1100
1101 2008-09-01  Paul Brook  <paul@codesourcery.com>
1102
1103         * config/arm/thumb2.md (thumb2_negscc): Match the correct operand for
1104         optimized LT0 test.  Remove optimization for GT.
1105
1106 2008-09-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1107
1108         * pa64-hpux.h (LIB_SPEC): Link against librt when building static
1109         openmp applications.
1110         * pa-hpux11.h (LIB_SPEC): Likewise.
1111
1112         * ira.c (setup_eliminable_regset): Only declare i if ELIMINABLE_REGS is
1113         defined.
1114
1115 2008-09-01  Jan Hubicka  <jh@suse.cz>
1116
1117         * predict.c (maybe_hot_count_p, maybe_hot_edge_p): When profile is
1118         present, use only counts; when guessed use only frequencies.
1119         (estimate_bb_frequencies): Use function_frequency.
1120         * profile.c (compute_branch_probabilities): Exit early when
1121         profile reading failed. Set profile_status.
1122         (branch_prob): Do not set profile_status.
1123
1124 2008-09-01  Aldy Hernandez  <aldyh@redhat.com>
1125
1126         * tree.c (protected_set_expr_location): New.
1127         * tree.h (protected_set_expr_location): New prototype.
1128         * c-tree.h (build_array_ref): Add argument.
1129         (parser_build_unary_op): Same.
1130         * c-typeck.c (build_indirect_ref): Handle new location argument.
1131         (build_array_ref): Same.
1132         (parser_build_unary_op): Same.
1133         * gimplify.c (gimplify_asm_expr): Set input_location before calling
1134         error.
1135         * c-omp.c (c_finish_omp_atomic): Pass location when calling
1136         build_indirect_ref.
1137         * c-common.c (finish_label_address_expr): Handle new location
1138         argument.
1139         * c-common.h (build_indirect_ref): Add argument.
1140         (finish_label_address_expr): Same.
1141         * c-parser.c (c_parser_unary_expression): Pass location to build
1142         functions.
1143         (c_parser_postfix_expression): Same.
1144
1145 2008-09-01  Paul Brook  <paul@codesourcery.com>
1146
1147         * config/arm/arm.md: Include cortex-r4f.md.
1148         (attr fpu): Update type list.
1149         (attr type): Add fcpys, ffariths, ffarithd, fadds, faddd, fconsts,
1150         fconstd, fcmps and fcmpd.
1151         (attr tune_cortexr4): Define.
1152         (attr generic_sched, attr generic_vfp): Use tune_cortexr4.
1153         * config/arm/vfp.md: Document fcpys, ffariths, ffarithd, fadds, faddd,
1154         fconsts, fconstd, fcmps and fcmpd.  Use them in insn patterns.
1155         * config/arm/arm.c (arm_issue_rate): Add cortexr4f.
1156         * config/arm/arm1020e.md (v10_ffarith, v10_farith): Use new insn
1157         types.
1158         * config/arm/cortex-a8-neon.md (cortex_a8_vfp_add_sub,
1159         cortex_a8_vfp_farith: Ditto.
1160         * config/arm/vfp11.md (vfp_ffarith, vfp_farith): Ditto.
1161         * config/arm/cortex-r4.md: Use tune_cortexr4.
1162         * config/arm/cortex-r4f.md: New file.
1163
1164 2008-09-01  Richard Guenther  <rguenther@suse.de>
1165
1166         PR tree-optimization/37305
1167         * tree-ssa-ccp.c (ccp_fold): Do not set TREE_OVERFLOW on
1168         the result of constant conversions.
1169         (fold_gimple_assign): Likewise.
1170
1171 2008-09-01  Andrey Belevantsev  <abel@ispras.ru>
1172
1173         * sel-sched-ir.c (cmp_v_in_regset_pool): Surround with
1174         #ifdef ENABLE_CHECKING.
1175
1176 2008-09-01  Andrey Belevantsev  <abel@ispras.ru>
1177
1178         * sel-sched-dump.c: Surround with #ifdef INSN_SCHEDULING.
1179         * sched-int.h (print_insn, print_pattern, print_value): Declare also
1180         when !INSN_SCHEDULING.
1181
1182 2008-09-01  Andreas Schwab  <schwab@suse.de>
1183
1184         * config/ia64/ia64.c (TARGET_ADDRESS_COST): Update.
1185
1186 2008-09-01  Paul Brook  <paul@codesourcery.com>
1187
1188         * config/arm/arm.c (arm_no_early_mul_dep): Handle multiply-subtract.
1189
1190 2008-09-01  Jan Hubicka  <jh@suse.cz>
1191
1192         * config/spu/spu.c (spu_expand_block_move) Update call of MOVE_RATIO.
1193
1194         * expr.c (MOVE_BY_PIECES_P, CLEAR_BY_PIECES_P, SET_BY_PIECES_P): Pass speed operand.
1195         * expr.h (MOVE_RATIO, CLEAR_RATIO, SET_RATIO): Update.
1196         * gimplify.c (gimplify_init_constructor): Add speed operand.
1197         * tree-sra.c (decide_block_copy): Likewise.
1198         * tree-inline.c (estimate_move_cost): Likewise.
1199         * config/alpha/alpha.h (MOVE_RATIO): Update.
1200         * config/frv/frv.c (MOVE_RATIO): Update.
1201         * config/spu/spu.h (MOVE_RATIO): Update.
1202         * config/sparc/sparc.h (MOVE_RATIO): Update.
1203         * config/i386/i386.h (MOVE_RATIO, CLEAR_RATIO): Update.
1204         * config/m68hc11/m68hc11.h (MOVE_RATIO): Update.
1205         * config/cris/cris.h (MOVE_RATIO): Update.
1206         * config/mn10300/mn10300.h (MOVE_RATIO): Update.
1207         * config/arm/arm.h (MOVE_RATIO): Update.
1208         * config/pa/pa.md: Update uses of MOVE_RATIO
1209         * config/pa/pa.h (MOVE_RATIO): Update.
1210         * config/mips/mips.h (MOVE_RATIO, MOVE_BY_PIECES, CLEAR_RATIO, SET_RATIO): Update.
1211         * config/h8300/h8300.h (MOVE_RATIO): Update.
1212         * config/v850/v850.h (MOVE_RATIO): Update.
1213         * config/bfin/bfin.h (MOVE_RATIO): Update.
1214
1215 2008-08-31  Andrey Belevantsev  <abel@ispras.ru>
1216         Dmitry Melnik  <dm@ispras.ru>
1217         Dmitry Zhurikhin  <zhur@ispras.ru>
1218         Alexander Monakov  <amonakov@ispras.ru>
1219         Maxim Kuvyrkov  <maxim@codesourcery.com>
1220
1221         * sel-sched.h, sel-sched-dump.h, sel-sched-ir.h, sel-sched.c,
1222         sel-sched-dump.c, sel-sched-ir.c: New files.
1223         * Makefile.in (OBJS-common): Add selective scheduling object
1224         files.
1225         (sel-sched.o, sel-sched-dump.o, sel-sched-ir.o): New entries.
1226         (SEL_SCHED_IR_H, SEL_SCHED_DUMP_H): New entries.
1227         (sched-vis.o): Add dependency on $(INSN_ATTR_H).
1228         * cfghooks.h (get_cfg_hooks, set_cfg_hooks): New prototypes.
1229         * cfghooks.c (get_cfg_hooks, set_cfg_hooks): New functions.
1230         (make_forwarder_block): Update loop latch if we have redirected
1231         the loop latch edge.
1232         * cfgloop.c (get_loop_body_in_custom_order): New function.
1233         * cfgloop.h (LOOPS_HAVE_FALLTHRU_PREHEADERS): New enum field.
1234         (CP_FALLTHRU_PREHEADERS): Likewise.
1235         (get_loop_body_in_custom_order): Declare.
1236         * cfgloopmanip.c (has_preds_from_loop): New.
1237         (create_preheader): Honor CP_FALLTHRU_PREHEADERS.
1238         Assert that the preheader edge will be fall thru when it is set.
1239         * common.opt (fsel-sched-bookkeeping, fsel-sched-pipelining,
1240         fsel-sched-pipelining-outer-loops, fsel-sched-renaming,
1241         fsel-sched-substitution, fselective-scheduling): New flags.
1242         * cse.c (hash_rtx_cb): New.
1243         (hash_rtx): Use it.
1244         * dbgcnt.def (sel_sched_cnt, sel_sched_region_cnt,
1245         sel_sched_insn_cnt): New counters.
1246         * final.c (compute_alignments): Export.  Free dominance info after loop_optimizer_finalize.
1247         * genattr.c (main): Output maximal_insn_latency prototype.
1248         * genautomata.c (output_default_latencies): New. Factor its code from ...
1249         (output_internal_insn_latency_func): ... here.
1250         (output_internal_maximal_insn_latency_func): New.
1251         (output_maximal_insn_latency_func): New.
1252         * hard-reg-set.h (UHOST_BITS_PER_WIDE_INT): Define unconditionally.
1253         (struct hard_reg_set_iterator): New.
1254         (hard_reg_set_iter_init, hard_reg_set_iter_set,
1255         hard_reg_set_iter_next): New functions.
1256         (EXECUTE_IF_SET_IN_HARD_REG_SET): New macro.
1257         * lists.c (remove_free_INSN_LIST_node,
1258         remove_free_EXPR_LIST_node): New functions.
1259         * loop-init.c (loop_optimizer_init): When LOOPS_HAVE_FALLTHRU_PREHEADERS,
1260         set CP_FALLTHRU_PREHEADERS when calling create_preheaders.
1261         (loop_optimizer_finalize): Do not verify flow info after reload.
1262         * recog.c (validate_replace_rtx_1): New parameter simplify.
1263         Default it to true.  Update all uses.  Factor out simplifying
1264         code to ...
1265         (simplify_while_replacing): ... this new function.
1266         (validate_replace_rtx_part,
1267         validate_replace_rtx_part_nosimplify): New.
1268         * recog.h (validate_replace_rtx_part,
1269         validate_replace_rtx_part_nosimplify): Declare.
1270         * rtl.c (rtx_equal_p_cb): New.
1271         (rtx_equal_p): Use it.
1272         * rtl.h (rtx_equal_p_cb, hash_rtx_cb): Declare.
1273         (remove_free_INSN_LIST_NODE, remove_free_EXPR_LIST_node,
1274         debug_bb_n_slim, debug_bb_slim,    print_rtl_slim): Likewise.
1275         * vecprim.h: Add a vector type for unsigned int.
1276         * haifa-sched.c: Include vecprim.h and cfgloop.h.
1277         (issue_rate, sched_verbose_param, note_list, dfa_state_size,
1278         ready_try, cycle_issued_insns, spec_info): Make global.
1279         (readyp): Initialize.
1280         (dfa_lookahead): New global variable.
1281         (old_max_uid, old_last_basic_block): Remove.
1282         (h_i_d): Make it a vector.
1283         (INSN_TICK, INTER_TICK, QUEUE_INDEX, INSN_COST): Make them work
1284         through HID macro.
1285         (after_recovery, adding_bb_to_current_region_p):
1286         New variables to handle correct insertion of the recovery code.
1287         (struct ready_list): Move declaration to sched-int.h.
1288         (rgn_n_insns): Removed.
1289         (rtx_vec_t): Move to sched-int.h.
1290         (find_insn_reg_weight): Remove.
1291         (find_insn_reg_weight1): Rename to find_insn_reg_weight.
1292         (haifa_init_h_i_d, haifa_finish_h_i_d):
1293         New functions to initialize / finalize haifa instruction data.
1294         (extend_h_i_d, init_h_i_d): Rewrite.
1295         (unlink_other_notes): Move logic to add_to_note_list.  Handle
1296         selective scheduler.
1297         (ready_lastpos, ready_element, ready_sort, reemit_notes,
1298         find_fallthru_edge): Make global, remove static prototypes.
1299         (max_issue): Make global.  Add privileged_n and state parameters.  Use
1300         them.
1301         (extend_global, extend_all): Removed.
1302         (init_before_recovery): Add new param.  Fix the handling of the case
1303         when we insert a recovery code before the EXIT which has a predecessor
1304         with a fallthrough edge to it.
1305         (create_recovery_block): Make global.  Rename to
1306         sched_create_recovery_block.  Update.
1307         (change_pattern): Rename to sched_change_pattern.  Make global.
1308         (speculate_insn): Rename to sched_speculate_insn.  Make global.
1309         Split haifa-specific functionality into ...
1310         (haifa_change_pattern): New static function.
1311         (sched_extend_bb): New static function.
1312         (sched_init_bbs): New function.
1313         (current_sched_info): Change type to struct haifa_sched_info.
1314         (insn_cost): Adjust for selective scheduling.
1315         (dep_cost_1): New function.  Move logic from ...
1316         (dep_cost): ... here.
1317         (dep_cost): Use dep_cost_1.
1318         (contributes_to_priority_p): Use sched_deps_info instead of
1319         current_sched_info.
1320         (priority): Adjust to work with selective scheduling.  Process the
1321         corner case when all dependencies don't contribute to priority.
1322         (rank_for_schedule): Use ds_weak instead of dep_weak.
1323         (advance_state): New function.  Move logic from ...
1324         (advance_one_cycle): ... here.
1325         (add_to_note_list, concat_note_lists): New functions.
1326         (rm_other_notes): Make static.  Adjust for selective scheduling.
1327         (remove_notes, restore_other_notes): New functions.
1328         (move_insn): Add two arguments.  Update assert.  Don't call
1329         reemit_notes.
1330         (choose_ready): Remove lookahead variable, use dfa_lookahead.
1331         Remove more_issue, max_points.  Move the code to initialize
1332         max_lookahead_tries to max_issue.
1333         (schedule_block): Remove rgn_n_insns1 parameter.  Don't allocate
1334         ready.  Adjust use of move_insn.  Call restore_other_notes.
1335         (luid): Remove.
1336         (sched_init, sched_finish): Move Haifa-specific initialization/
1337         finalization to ...
1338         (haifa_sched_init, haifa_sched_finish): ... respectively.
1339         New functions.
1340         (setup_sched_dump): New function.
1341         (haifa_init_only_bb): New static function.
1342         (haifa_speculate_insn): New static function.
1343         (try_ready): Use haifa_* instead of speculate_insn and
1344         change_pattern.
1345         (extend_ready, extend_all): Remove.
1346         (sched_extend_ready_list, sched_finish_ready_list): New functions.
1347         (create_check_block_twin, add_to_speculative_block): Use
1348         haifa_insns_init instead of extend_global.  Update to use new
1349         initialization functions.  Change parameter.  Factor out code from
1350         create_check_block_twin to ...
1351         (sched_create_recovery_edges) ... this new function.
1352         (add_block): Remove.
1353         (sched_scan_info): New.
1354         (extend_bb): Use sched_scan_info.
1355         (init_bb, extend_insn, init_insn, init_insns_in_bb, sched_scan): New
1356         static functions for walking through scheduling region.
1357         (sched_luids): New vector variable to replace uid_to_luid.
1358         (luids_extend_insn): New function.
1359         (sched_max_luid): New variable.
1360         (luids_init_insn): New function.
1361         (sched_init_luids, sched_finish_luids): New functions.
1362         (insn_luid): New debug function.
1363         (sched_extend_target): New function.
1364         (haifa_init_insn): New static function.
1365         (sched_init_only_bb): New hook.
1366         (sched_split_block): New hook.
1367         (sched_split_block_1): New function.
1368         (sched_create_empty_bb): New hook.
1369         (sched_create_empty_bb_1): New function.
1370         (common_sched_info, ready): New global variables.
1371         (current_sched_info_var): Remove.
1372         (move_block_after_check): Use common_sched_info.
1373         (haifa_luid_for_non_insn): New static function.
1374         (init_before_recovery): Use haifa_init_only_bb instead of
1375         add_block.
1376         (increase_insn_priority): New.
1377         * modulo-sched.c: (issue_rate): Remove static declaration.
1378         (sms_sched_info): Change type to haifa_sched_info.
1379         (sms_sched_deps_info, sms_common_sched_info): New variables.
1380         (setup_sched_infos): New.
1381         (sms_schedule): Initialize them.  Call haifa_sched_init/finish.
1382         Do not call regstat_free_calls_crossed.
1383         (sms_print_insn): Use const_rtx.
1384         * params.def (PARAM_MAX_PIPELINE_REGION_BLOCKS,
1385         PARAM_MAX_PIPELINE_REGION_INSNS, PARAM_SELSCHED_MAX_LOOKAHEAD,
1386         PARAM_SELSCHED_MAX_SCHED_TIMES, PARAM_SELSCHED_INSNS_TO_RENAME,
1387         PARAM_SCHED_MEM_TRUE_DEP_COST): New.
1388         * sched-deps.c (sched_deps_info): New.  Update all relevant uses of
1389         current_sched_info to use it.
1390         (enum reg_pending_barrier_mode): Move to sched-int.h.
1391         (h_d_i_d): New variable. Initialize to NULL.
1392         ({true, output, anti, spec, forward}_dependency_cache): Initialize
1393         to NULL.
1394         (estimate_dep_weak): Remove static declaration.
1395         (sched_has_condition_p): New function.  Adjust users of
1396         sched_get_condition to use it instead.
1397         (conditions_mutex_p): Add arguments indicating which conditions are
1398         reversed.  Use them.
1399         (sched_get_condition_with_rev): Rename from sched_get_condition.  Add
1400         argument to indicate whether returned condition is reversed.  Do not
1401         generate new rtx when condition should be reversed; indicate it by
1402         setting new argument instead.
1403         (add_dependence_list_and_free): Add deps parameter.
1404         Update all users.  Do not free dependence list when
1405         deps context is readonly.
1406         (add_insn_mem_dependence, flush_pending_lists): Adjust for readonly
1407         contexts.
1408         (remove_from_dependence_list, remove_from_both_dependence_lists): New.
1409         (remove_from_deps): New. Use the above functions.
1410         (cur_insn, can_start_lhs_rhs_p): New static variables.
1411         (add_or_update_back_dep_1): Initialize present_dep_type.
1412         (haifa_start_insn, haifa_finish_insn, haifa_note_reg_set,
1413         haifa_note_reg_clobber, haifa_note_reg_use, haifa_note_mem_dep,
1414         haifa_note_dep): New functions implementing dependence hooks for
1415         the Haifa scheduler.
1416         (note_reg_use, note_reg_set, note_reg_clobber, note_mem_dep,
1417         note_dep): New functions.
1418         (ds_to_dt, extend_deps_reg_info, maybe_extend_reg_info_p): New
1419         functions.
1420         (init_deps): Initialize last_reg_pending_barrier and deps->readonly.
1421         (free_deps): Initialize deps->reg_last.
1422         (sched_analyze_reg, sched_analyze_1, sched_analyze_2,
1423         sched_analyze_insn): Update to use dependency hooks infrastructure
1424         and readonly contexts.
1425         (deps_analyze_insn): New function.  Move part of logic from ...
1426         (sched_analyze): ... here.  Also move some logic to ...
1427         (deps_start_bb): ... here.  New function.
1428         (add_forw_dep, delete_forw_dep): Guard use of INSN_DEP_COUNT with
1429         sel_sched_p.
1430         (sched_deps_init): New function.  Move code from ...
1431         (init_dependency_caches): ... here.  Remove.
1432         (init_deps_data_vector): New.
1433         (sched_deps_finish): New function.  Move code from ...
1434         (free_dependency_caches): ... here.  Remove.
1435         (init_deps_global, finish_deps_global): Adjust for use with
1436         selective scheduling.
1437         (get_dep_weak): Move logic to ...
1438         (get_dep_weak_1): New function.
1439         (ds_merge): Move logic to ...
1440         (ds_merge_1): New static function.
1441         (ds_full_merge, ds_max_merge, ds_get_speculation_types): New functions.
1442         (ds_get_max_dep_weak): New function.
1443         * sched-ebb.c (sched_n_insns): Rename to sched_rgn_n_insns.
1444         (n_insns): Rename to rgn_n_insns.
1445         (debug_ebb_dependencies): New function.
1446         (init_ready_list): Use it.
1447         (begin_schedule_ready): Use sched_init_only_bb.
1448         (ebb_print_insn): Indicate when an insn starts a new cycle.
1449         (contributes_to_priority, compute_jump_reg_dependencies,
1450         add_remove_insn, fix_recovery_cfg): Add ebb_ prefix to function names.
1451         (add_block1): Remove to ebb_add_block.
1452         (ebb_sched_deps_info, ebb_common_sched_info): New variables.
1453         (schedule_ebb): Initialize them.  Use remove_notes instead of
1454         rm_other_notes.  Use haifa_local_init/finish.
1455         (schedule_ebbs): Use haifa_sched_init/finish.
1456         * sched-int.h: Include vecprim.h, remove rtl.h.
1457         (struct ready_list): Delete declaration.
1458         (sched_verbose_param, enum sched_pass_id_t,
1459         bb_vec_t, insn_vec_t, rtx_vec_t): New.
1460         (struct sched_scan_info_def): New structure.
1461         (sched_scan_info, sched_scan, sched_init_bbs,
1462         sched_init_luids, sched_finish_luids, sched_extend_target,
1463         haifa_init_h_i_d, haifa_finish_h_i_d): Declare.
1464         (struct common_sched_info_def): New.
1465         (common_sched_info, haifa_common_sched_info,
1466         sched_emulate_haifa_p): Declare.
1467         (sel_sched_p): New.
1468         (sched_luids): Declare.
1469         (INSN_LUID, LUID_BY_UID, SET_INSN_LUID): Declare.
1470         (sched_max_luid, insn_luid): Declare.
1471         (note_list, remove_notes, restore_other_notes, bb_note): Declare.
1472         (sched_insns_init, sched_insns_finish, xrecalloc, reemit_notes,
1473         print_insn, print_pattern, print_value, haifa_classify_insn,
1474         sel_find_rgns, sel_mark_hard_insn, dfa_state_size, advance_state,
1475         setup_sched_dump, sched_init, sched_finish,
1476         sel_insn_is_speculation_check): Export.
1477         (struct ready_list): Move from haifa-sched.c.
1478         (ready_try, ready, max_issue): Export.
1479         (ebb_compute_jump_reg_dependencies, find_fallthru_edge,
1480         sched_init_only_bb, sched_split_block, sched_split_block_1,
1481         sched_create_empty_bb, sched_create_empty_bb_1,
1482         sched_create_recovery_block, sched_create_recovery_edges): Export.
1483         (enum reg_pending_barrier_mode): Export.
1484         (struct deps): New fields `last_reg_pending_barrier' and `readonly'.
1485         (deps_t): New.
1486         (struct sched_info): Rename to haifa_sched_info.  Use const_rtx for
1487         print_insn field.  Move add_block and fix_recovery_cfg to
1488         common_sched_info_def.  Move compute_jump_reg_dependencies, use_cselib  ...
1489         (struct sched_deps_info_def): ... this new structure.
1490         (sched_deps_info): Declare.
1491         (struct spec_info_def): Remove weakness_cutoff, add
1492         data_weakness_cutoff and control_weakness_cutoff.
1493         (spec_info): Declare.
1494         (struct _haifa_deps_insn_data): Split from haifa_insn_data.  Add
1495         dep_count field.
1496         (struct haifa_insn_data): Rename to struct _haifa_insn_data.
1497         (haifa_insn_data_def, haifa_insn_data_t): New typedefs.
1498         (current_sched_info): Change type to struct haifa_sched_info.
1499         (haifa_deps_insn_data_def, haifa_deps_insn_data_t): New typedefs.
1500         (h_d_i_d): New variable.
1501         (HDID): New accessor macro.
1502         (h_i_d): Change type to VEC (haifa_insn_data_def, heap) *.
1503         (HID): New accessor macro.  Rewrite h_i_d accessor macros through HID
1504         and HDID.
1505         (IS_SPECULATION_CHECK_P): Update for selective scheduler.
1506         (enum SCHED_FLAGS): Update for selective scheduler.
1507         (enum SPEC_SCHED_FLAGS): New flag SEL_SCHED_SPEC_DONT_CHECK_CONTROL.
1508         (init_dependency_caches, free_dependency_caches): Delete declarations.
1509         (deps_analyze_insn, remove_from_deps, get_dep_weak_1,
1510         estimate_dep_weak, ds_full_merge, ds_max_merge, ds_weak,
1511         ds_get_speculation_types, ds_get_max_dep_weak, sched_deps_init,
1512         sched_deps_finish, haifa_note_reg_set, haifa_note_reg_use,
1513         haifa_note_reg_clobber, maybe_extend_reg_info_p, deps_start_bb,
1514         ds_to_dt): Export.
1515         (rm_other_notes): Delete declaration.
1516         (schedule_block): Remove one argument.
1517         (cycle_issued_insns, issue_rate, dfa_lookahead, ready_sort,
1518         ready_element, ready_lastpos, sched_extend_ready_list,
1519         sched_finish_ready_list, sched_change_pattern, sched_speculate_insn,
1520         concat_note_lists): Export.
1521         (struct region): Move from sched-rgn.h.
1522         (nr_regions, rgn_table, rgn_bb_table, block_to_bb, containing_rgn,
1523         RGN_NR_BLOCKS, RGN_BLOCKS, RGN_DONT_CALC_DEPS, RGN_HAS_REAL_EBB,
1524         BLOCK_TO_BB, CONTAINING_RGN): Export.
1525         (ebb_head, BB_TO_BLOCK, EBB_FIRST_BB, EBB_LAST_BB, INSN_BB): Likewise.
1526         (current_nr_blocks, current_blocks, target_bb): Likewise.
1527         (dep_cost_1, sched_is_disabled_for_current_region_p, sched_rgn_init,
1528         sched_rgn_finish, rgn_setup_region, sched_rgn_compute_dependencies,
1529         sched_rgn_local_init, extend_regions,
1530         rgn_make_new_region_out_of_new_block, compute_priorities,
1531         debug_rgn_dependencies, free_rgn_deps, contributes_to_priority,
1532         extend_rgns, deps_join rgn_setup_common_sched_info,
1533         rgn_setup_sched_infos, debug_regions, debug_region, dump_region_dot,
1534         dump_region_dot_file, haifa_sched_init, haifa_sched_finish): Export.
1535         (get_rgn_sched_max_insns_priority, sel_add_to_insn_priority,
1536         increase_insn_priority): Likewise.
1537         * sched-rgn.c: Include sel-sched.h.
1538         (ref_counts): New static variable.  Use it ...
1539         (INSN_REF_COUNT): ... here.  Rewrite and move closer to uses.
1540         (FED_BY_SPEC_LOAD, IS_LOAD_INSN): Rewrite to use HID accessor macro.
1541         (sched_is_disabled_for_current_region_p): Delete static declaration.
1542         (struct region): Move to sched-int.h.
1543         (nr_regions, rgn_table, rgn_bb_table, block_to_bb, containing_rgn,
1544         ebb_head): Define and initialize.
1545         (RGN_NR_BLOCKS, RGN_BLOCKS, RGN_DONT_CALC_DEPS, RGN_HAS_REAL_EBB,
1546         BLOCK_TO_BB, CONTAINING_RGN, debug_regions, extend_regions,
1547         BB_TO_BLOCK, EBB_FIRST_BB, EBB_LAST_BB): Move to
1548         sched-int.h.
1549         (find_single_block_region): Add new argument to indicate that EBB
1550         regions should be constructed.
1551         (debug_live): Delete declaration.
1552         (current_nr_blocks, current_blocks, target_bb): Remove static qualifiers.
1553         (compute_dom_prob_ps, check_live, update_live, set_spec_fed): Delete
1554         declaration.
1555         (init_regions): Delete declaration.
1556         (debug_region, bb_in_region_p, dump_region_dot_file, dump_region_dot,
1557         rgn_estimate_number_of_insns): New.
1558         (too_large): Use estimate_number_of_insns.
1559         (haifa_find_rgns): New. Move the code from ...
1560         (find_rgns): ... here.  Call either sel_find_rgns or haifa_find_rgns.
1561         (free_trg_info): New.
1562         (compute_trg_info): Allocate candidate tables here instead of ...
1563         (init_ready_list): ... here.
1564         (rgn_print_insn): Use const_rtx.
1565         (contributes_to_priority, extend_regions): Delete static declaration.
1566         (add_remove_insn, fix_recovery_cfg): Add rgn_ to function names.
1567         (add_block1): Rename to rgn_add_block.
1568         (debug_rgn_dependencies): Delete static qualifier.
1569         (new_ready): Use sched_deps_info.  Simplify.
1570         (rgn_common_sched_info, rgn_const_sched_deps_info,
1571         rgn_const_sel_sched_deps_info, rgn_sched_deps_info, rgn_sched_info): New.
1572         (region_sched_info): Rename to rgn_const_sched_info.
1573         (deps_join): New, extracted from ...
1574         (propagate_deps): ... here.
1575         (compute_block_dependences, debug_dependencies): Update for selective
1576         scheduling.
1577         (free_rgn_deps, compute_priorities): New functions.
1578         (sched_rgn_init, sched_rgn_finish, rgn_setup_region,
1579         sched_rgn_compute_dependencies): New functions.
1580         (schedule_region): Use them.
1581         (sched_rgn_local_init, sched_rgn_local_free, sched_rgn_local_finish,
1582         rgn_setup_common_sched_info, rgn_setup_sched_infos):
1583         New functions.
1584         (schedule_insns): Call new functions that were split out.
1585         (rgn_make_new_region_out_of_new_block): New.
1586         (get_rgn_sched_max_insns_priority): New.
1587         (rest_of_handle_sched, rest_of_handle_sched2): Call selective
1588         scheduling when appropriate.
1589         * sched-vis.c: Include insn-attr.h.
1590         (print_value, print_pattern): Make global.
1591         (print_rtl_slim, debug_bb_slim, debug_bb_n_slim): New functions.
1592         * target-def.h (TARGET_SCHED_ADJUST_COST_2,
1593         TARGET_SCHED_ALLOC_SCHED_CONTEXT, TARGET_SCHED_INIT_SCHED_CONTEXT,
1594         TARGET_SCHED_SET_SCHED_CONTEXT, TARGET_SCHED_CLEAR_SCHED_CONTEXT,
1595         TARGET_SCHED_FREE_SCHED_CONTEXT, TARGET_SCHED_GET_INSN_CHECKED_DS,
1596         TARGET_SCHED_GET_INSN_SPEC_DS, TARGET_SCHED_SKIP_RTX_P): New target
1597         hooks.  Initialize them to 0.
1598         (TARGET_SCHED_GEN_CHECK): Rename to TARGET_SCHED_GEN_SPEC_CHECK.
1599         * target.h (struct gcc_target): Add them.  Rename gen_check field to
1600         gen_spec_check.
1601         * flags.h (sel_sched_switch_set): Declare.
1602         * opts.c (sel_sched_switch_set): New variable.
1603         (decode_options): Unset flag_sel_sched_pipelining_outer_loops if
1604         pipelining is disabled from command line.
1605         (common_handle_option): Record whether selective scheduling is
1606         requested from command line.
1607         * doc/invoke.texi: Document new flags and parameters.
1608         * doc/tm.texi: Document new target hooks.
1609         * config/ia64/ia64.c (TARGET_SCHED_GEN_SPEC_CHECK): Define to ia64_gen_check.
1610         (dfa_state_size): Do not declare locally.
1611         * config/ia64/ia64.opt (msched-ar-data-spec): Default to 0.
1612         * config/rs6000/rs6000.c (rs6000_init_sched_context,
1613         rs6000_alloc_sched_context, rs6000_set_sched_context,
1614         rs6000_free_sched_context): New functions.
1615         (struct _rs6000_sched_context): New.
1616         (rs6000_sched_reorder2): Do not modify INSN_PRIORITY for selective
1617         scheduling.
1618         (rs6000_sched_finish): Do not run for selective scheduling.
1619
1620 2008-08-31  Jan Hubicka  <jh@suse.cz>
1621
1622         * frv.c (frv_rtx_costs): Update forward declaration.
1623         * spu.c (spu_rtx_costs): Likewise.
1624         * pdp11.c: Include df.h
1625         (pdp11_output_function_epilogue): Use df_set_regs_ever_live.
1626         * m68hc11.c (m68hc11_gen_highpart): Fix call of gen_rtx_SUBREG.
1627         (m68hc11_rtx_costs_1): Fix call of rtx_cost.
1628         * iq2000.c (iq2000_address_cost): Add speed argument.
1629         (iq2000_rtx_costs): Likewise.
1630         * mn10300.c (mn10300_address_cost_1): Remove speed argument;
1631         update call of mn10300_address_cost.
1632         * mcore.c: Include df.h
1633         (mcore_rtx_costs): Update prototype.
1634         * score3.c: Include df.h
1635         (score3_rtx_costs): Remove speed argument.
1636         * score7.c: Include df.h
1637         (score7_address_cost): Remove speed argument.
1638         * score-protos.h (score_address_cost): Update prototype.
1639         * score.c: Include df.h
1640         (score_rtx_costs): Update call of costs functions.
1641         * v850.c (v850_rtx_costs): Add bool argument.
1642
1643 2008-08-31  Hans-Peter Nilsson  <hp@axis.com>
1644
1645         * config/cris/cris.c (cris_rtx_costs): Correct call to rtx_costs.
1646
1647 2008-08-31  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
1648
1649         * gthr-win32.h (__gthread_setspecific): Use CONST_CAST2.
1650         * config/i386/gthr-win32.c (__gthread_setspecific): Same.
1651
1652 2008-08-31  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
1653
1654         * mkmap-flat.awk: Add option pe_dll.
1655         * config/i386/t-cygming (SHLIB_LINK): Support building libgcc_s.
1656         * config/i386/t-cygwin (SHLIB_LC): Add.
1657         * config/i386/t-mingw32 (SHLIB_LC): Add.
1658         * config/i386/mingw32.h (SHARED_LIBGCC_UNDEFS_SPEC): New.
1659         (SUBTARGET_EXTRA_SPECS): Use SHARED_LIBGCC_UNDEFS_SPEC.
1660         (LINK_SPEC): Support libgcc_s.
1661         (LIBGCC_SPEC): Support libgcc_s.
1662         (LIBGCC_SONAME): New.
1663
1664 2008-08-31  Jan Hubicka  <jh@suse.cz>
1665
1666         * predict.c (maybe_hot_bb_p, maybe_hot_edge_p): Previous commit
1667         mistakely had old version of patch.
1668
1669         * ipa-cp.c (ipcp_need_original_clone_p): Remove.
1670         (ipcp_estimate_growth): New.
1671         (ipcp_insert_stage): Use ipcp_estimate_growth.
1672         * profile.c (branch_prob): When reading failed, do not consider
1673         profile as read.
1674
1675 2008-08-31  Jan Hubicka  <jh@suse.cz>
1676
1677         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Check that
1678         loop is optimized for speed.
1679
1680 2008-08-31  Richard Guenther  <rguenther@suse.de>
1681
1682         PR middle-end/37289
1683         * fold-const.c (fold_binary): Retain conversions in folding
1684         ~A + 1 to -A.
1685
1686 2008-08-31  Jan Hubicka  <jh@suse.cz>
1687
1688         * postreload-gcse.c (eliminate_partially_redundant_loads): Use optimize_bb_for_size_p.
1689         * predict.c (maybe_hot_frequency_p): Make inline.
1690         (maybe_hot_count_p): Break out from ...
1691         (maybe_hot_bb_p): ... this one.
1692         (maybe_hot_edge_p): Simplify.
1693         * basic-block.h (probably_cold_bb_p): Remove.
1694
1695 2008-08-31  Jakub Jelinek  <jakub@redhat.com>
1696
1697         PR target/37168
1698         * config/rs6000/rs6000-protos.h (const_vector_elt_as_int): Add
1699         prototype.
1700         * config/rs6000/rs6000.c (const_vector_elt_as_int): No longer static.
1701         * config/rs6000/altivec.md (easy_vector_constant_add_self splitter):
1702         Also split V4SFmode.
1703         * config/rs6000/predicates.md (easy_vector_constant_add_self): Handle
1704         vector float modes.
1705
1706 2008-08-31  Jan Hubicka  <jh@suse.cz>
1707
1708         * predict.c (PROB_VERY_LIKELY): Make small enough so things
1709         become cold.
1710         * predict.def (PRED_NORETURN_CALL, PRED_COLD_CALL): Use it.
1711
1712 2008-08-31  Jakub Jelinek  <jakub@redhat.com>
1713
1714         PR debug/37287
1715         * dwarf2out.c (gen_namespace_die): For DECL_EXTERNAL modules don't
1716         add source coords.
1717
1718         * dwarf2out.c (native_encode_initializer): Subtract min_index for
1719         non-range array index.  Handle VIEW_CONVERT_EXPR and NON_LVALUE_EXPR.
1720
1721 2008-08-31  Jan Hubicka  <jh@suse.cz>
1722
1723         * sparc.h (BRANCH_COST): Fix macro definition.
1724         * avr.c (avr_operand_rtx_cost): Add speed argument.
1725         (avr_rtx_costs): Update calls of avr_operand_rtx_cost.
1726
1727 2008-08-31  Richard Guenther  <rguenther@suse.de>
1728
1729         * tree-cfg.c (verify_types_in_gimple_assign): Dump mismatched
1730         types instead of operands.  Re-instantiate verifying of
1731         binary expression operands.
1732
1733 2008-08-30  Jan Hubicka  <jh@suse.cz>
1734
1735         * fwprop.c (should_replace_address): Add speed attribute.
1736         (PR_OPTIMIZE_FOR_SPEED): New flag.
1737         (propagate_rtx_1): Use it.
1738         (propagate_rtx): Set it.
1739         (try_fwprop_subst): Update call of rtx_costs.
1740         (forward_propagate_and_simplify): LIkewise.
1741         * hooks.c (hook_int_rtx_bool_0): New
1742         (hook_bool_rtx_int_int_intp_false): Replace by ...
1743         (hook_bool_rtx_int_int_intp_bool_false): .. thisone.
1744         * hooks.h (hook_int_rtx_bool_0): New
1745         (hook_bool_rtx_int_int_intp_false): Replace by ...
1746         (hook_bool_rtx_int_int_intp_bool_false): .. thisone.
1747         * optabs.c (avoid_expensive_constant): UPdate call of rtx_cost.
1748         (prepare_cmp_insn): UPdate call of rtx_cost.
1749         * postreload.c (reload_cse_simplify_set): Update call of rtx_cost.
1750         (reload_cse_simplify_operands): Update call of rtx_cost.
1751         (reload_cse_move2add): call of rtx_cost.
1752         * target.h (struct gcc_target): Update rtx_costs and address_costs.
1753         * rtlanal.c (rtx_cost): Add speed argument.
1754         (address_cost): Add speed argument
1755         (default_address_cost): Likewise.
1756         (insn_rtx_cost): Likewise.
1757         * cfgloopanal.c (seq_cost): Add speed argument.
1758         (target_reg_cost, target_spill_cost): Turn to array.
1759         (init_set_costs): Update for speed.
1760         (estimate_reg_pressure_cost): Add speed argument.
1761         * auto-inc-dec.c (attempt_change): Update call of rtx_cost.
1762         * dojump.c (prefer_and_bit_test): UPdate call of rtx_cost.
1763         * tree-ssa-loop-ivopts.c (struct ivopts_data): New field speed.
1764         (seq_cost): Add speed argument.
1765         (computation_cost): Add speed arugment.
1766         (add_cost, multiply_by_const, get_address_cost): add speed argument.
1767         (force_expr_to_var_cost): Update for profile info.
1768         (force_var_cost): Likewise.
1769         (split_address_cost): Likewise.
1770         (ptr_difference_cost): Likewise.
1771         (difference_cost): Likewise.
1772         (get_computation_cost_at): Likewise.
1773         (determine_iv_cost): Likewise.
1774         (ivopts_global_cost_for_size): Likewise.
1775         (rewrite_use_address): Likewise.
1776         (tree_ssa_iv_optimize_loop): Initialize speed field.
1777         * cse.c (optimize_this_for_speed_p): New static var.
1778         (notreg_cost): Update call of rtx_cost.
1779         (cse_extended_basic_block): set optimize_this_for_speed_p.
1780         * ifcvt.c (cheap_bb_rtx_cost_p): Update call of rtx_cost.
1781         (noce_try_cmove_arith): Likewise.
1782         (noce_try_sign_mask): LIkewise.
1783         * expr.c (compress_float_constant): Update rtx_cost calls.
1784         * tree-ssa-address.c (most_expensive_mult_to_index): Add speed argument.
1785         (addr_to_parts): Likewise.
1786         (create_mem_ref): Likewise.
1787         * dse.c (find_shift_sequence): Add speed argument.
1788         (replace_read): Update call.
1789         * calls.c (precompute_register_parameters): Update call of rtx_cost.
1790         * expmed.c (sdiv_pow2_cheap, smod_pow2_cheap, zero_cost, add_cost,
1791         * neg_cost, shift_cost, shiftadd_cost,
1792         shiftsub_cost, mul_cost, sdiv_cost, udiv_cost ,mul_widen_cost,
1793         mul_highpart_cost): Increase dimension.
1794         (init_expmed): Initialize for both size and speed.
1795         (expand_shift): Use profile.
1796         (synth_mult): Use profile.
1797         (choose_mult_variant): Use profile.
1798         (expand_mult): Use profile.
1799         (expand_mult_highpart_optab): Use profile.
1800         (expand_mult_highpart): Use profile.
1801         (expand_smod_pow2): Use profile.
1802         (expand_divmod): Use profile.
1803         * simplify-rtx.c (simplify_binary_operation_1): Update call of rtx_cost.
1804         * loop-invariant.c (create_new_invariant): Use profile.
1805         (gain_for_invariant): Add speed parameter.
1806         (best_gain_for_invariant): Likewise.
1807         (find_invariants_to_move): Likewise.
1808         (move_single_loop_invariants): Set it.
1809         * target-def.h (TARGET_RTX_COSTS): Use hook.
1810         * rtl.h (rtx_cost, address_cost, insn_rtx_cost): Update prototpe.
1811         (optimize_insn_for_size_p, optimize_insn_for_speed_p): Declare.
1812         * output.h (default_address_cost): Update prototype.
1813         * combine.c (optimize_this_for_speed_p): New static var.
1814         (combine_validate_cost): Update call of rtx_cost.
1815         (combine_instructions): Set optimize_this_for_speed_p.
1816         (expand_compound_operation): Update call of rtx_cost.
1817         (make_extraction):Update call of rtx_cost.
1818         (force_to_mode):Update call of rtx_cost.
1819         (distribute_and_simplify_rtx):Update call of rtx_cost.
1820         * cfgloop.h (target_reg_cost, target_spill_cost): Turn to array.
1821         (estimate_reg_pressure_cost): Update prototype.
1822         * tree-flow.h (multiply_by_cost, create_mem_ref): Update prototype.
1823         * basic-block.h (optimize_insn_for_size_p, optimize_insn_for_speed_p):
1824         Remove.
1825         * config/alpha/alpha.c (alpha_rtx_costs): Update.
1826         (alpha_rtx_costs): Update.
1827         * config/frv/frv.c (frv_rtx_costs): Update.
1828         * config/s390/s390.c (s390_rtx_costs): Update.
1829         * config/m32c/m32c.c (m32c_memory_move_cost): Update.
1830         (m32c_rtx_costs): Update.
1831         * config/spu/spu.c (TARGET_ADDRESS_COST): Upate.
1832         (spu_rtx_costs): Update.
1833         * config/sparc/sparc.c (sparc_rtx_costs): Update.
1834         * config/m32r/m32r.c (m32r_rtx_costs): Update.
1835         * config/i386/i386.c (:ix86_address_cost): Update.
1836         (ix86_rtx_costs): Update.
1837         * config/sh/sh.c (sh_rtx_costs, sh_address_cost): Update.
1838         * config/pdp11/pdp11.c (pdp11_rtx_costs): Update.
1839         * config/avr/avr.c (avr_rtx_costs, avr_address_cost): Update.
1840         * config/crx/crx.c (crx_address_cost): Update.
1841         * config/xtensa/xtensa.c (xtensa_rtx_costs): Update.
1842         * config/stormy16/stormy16.c
1843         (xstormy16_address_cost, xstormy16_rtx_costs): Update.
1844         * config/m68hc11/m68hc11.c
1845         (m68hc11_address_cost, m68hc11_rtx_costs): Update.
1846         * config/cris/cris.c (cris_rtx_costs, cris_address_cost): Update.
1847         * config/iq2000/iq2000.c (iq2000_rtx_costs, iq2000_address_cost): Update.
1848         * config/mn10300/mn10300.c (mn10300_address_cost, mn10300_rtx_costs): Update
1849         * config/ia64/ia64.c (ia64_rtx_costs): Update.
1850         * config/m68k/m68k.c (m68k_rtx_costs): Update.
1851         * config/rs6000/rs6000.c (rs6000_rtx_costs): Update.
1852         * config/arc/arc.c (arc_rtx_costs, arc_address_cost): Update.
1853         * config/mcore/mcore.c (TARGET_ADDRESS_COST): Update.
1854         (mcore_rtx_costs): update.
1855         * config/score/score3.c (score3_rtx_costs): Update.
1856         * config/score/score7.c (score7_rtx_costs): Update.
1857         * config/score/score3.h (score3_rtx_costs):Update.
1858         * config/score/score7.h (score7_rtx_costs): Update.
1859         * config/score/score.c (score_rtx_costs): Update.
1860         * config/arm/arm.c (arm_address_cost): Update.
1861         (arm_rtx_costs_1): Update.
1862         (arm_rtx_costs_1): Update.
1863         (arm_size_rtx_costs): Update.
1864         (arm_size_rtx_costs): Update.
1865         (arm_size_rtx_costs): Update.
1866         (arm_xscale_rtx_costs): Update.
1867         (arm_thumb_address_cost): Update.
1868         * config/pa/pa.c (hppa_address_cost): Update.
1869         * config/mips/mips.c (mips_rtx_costs): Update.
1870         * config/vax/vax.c (vax_address_cost): Update.
1871         * config/h8300/h8300.c (h8300_shift_costs): Update.
1872         (h8300_rtx_costs): Update.
1873         * config/v850/v850.c (TARGET_ADDRESS_COST): Update.
1874         (v850_rtx_costs): Update.
1875         * config/mmix/mmix.c (mmix_rtx_costs, mmix_rtx_costs): Update.
1876         * config/bfin/bfin.c
1877         (bfin_address_cost): Update.
1878         (bfin_rtx_costs): Update.
1879         * stmt.c (lshift_cheap_p): Update.
1880
1881 2008-08-30  Andrew Pinski  <andrew_pinski@playstation.sony.com>
1882
1883         PR middle-end/36444
1884         * expmed.c (extract_bit_field_1): Check the mode size to make
1885         sure the vector modes have the same size.
1886
1887 2008-08-29  Michael Meissner  <gnu@the-meissners.org>
1888
1889         * dojump.c (top level): Include basic-block.h to declare
1890         optimize_insn_for_speed_p
1891
1892         * Makefile.in (dodump.h): Add $(BASIC_BLOCK_H) dependency.
1893
1894         * opts.h (CL_SAVE): New option class for marking options that are
1895         target specific options usable in the target attribute.
1896         (CL_MIN_OPTION_CLASS): CL_SAVE is now the minimum option.
1897
1898         * opt-functions.awk (switch_flags): Add CL_SAVE flag so backends
1899         can easily find the target specific options that are safe to use
1900         in the attribute or pragma.
1901
1902         * attribs.c (decl_attributes): Change #pragma GCC option to
1903         #pragma GCC target, and attribute((option(...))) to
1904         attribute((target(...))).
1905
1906         * doc/extend.texi (target attribute): Change from option
1907         attribute.  Delete push/pop/reset.
1908         (#pragma GCC target): Change from #pragma GCC option.  Delete
1909         push/pop/reset.
1910         (#pragma GCC push_options): Document new pragma.
1911         (#pragma GCC pop_options): Document new pragma.
1912         (#pragma GCC reset_options): Document new pragma.
1913
1914         * targhooks.c (default_target_option_valid_attribute_p): Add
1915         warning about port not supporting target attributes.
1916         (default_target_option_pragma_parse): New function, warn about
1917         #pragma GCC target not being supported.
1918
1919         * targhooks.h (default_target_option_pragma_parse): Add
1920         declaration.
1921
1922         * tree.h (TI_CURRENT_TARGET_PRAGMA): Rename from
1923         TI_CURRENT_OPTION_PRAGMA.
1924         (current_target_pragma): Rename from current_option_pragma.
1925
1926         * target.h: (struct target_option): Delete booleans for changing
1927         the optimization level on hot/cold functions.  Change signature of
1928         pragma_parse hook to take a second tree.
1929
1930         * c-tree.h (c_builtin_function_ext_scope): Add declaration.
1931
1932         * c-decl.c (c_builtin_function_ext_scope): New function, guarantee
1933         that the declaration is done at global scope.
1934
1935         * langhooks.c (add_builtin_function_common): Move most of the code
1936         from add_builtin_function here, calling the hook passed in.
1937         (add_builtin_function): Call add_builtin_function_common with
1938         standard builtin hook.
1939         (add_builtin_function_ext_scope): New function to add builtins to
1940         global scope.
1941
1942         * langhooks.h (struct lang_hooks): Add builtin_function_ext_scope
1943         hook.
1944         (add_builtin_function_ext_scope): Add declaration.
1945
1946         * c-pragma.c (handle_pragma_target): Rename from
1947         handle_pragma_option, #pragma GCC option is now #pragma GCC
1948         target.  Move warning about port not supporting target options to
1949         default pragma parse hook.  Remove push/pop/reset from this
1950         pragma.
1951         (handle_pragma_optimize): Remove push/pop/reset from this pragma.
1952         (option_stack): Delete static variable.
1953         (optimize_stack): Ditto.
1954         (optons_stack): New stack of saved target and optimization
1955         options.
1956         (handle_pragma_push_options): New function to handle pushing both
1957         target and optimization options.
1958         (handle_pragma_pop_options): New function to handle popping both
1959         target and optimization options.
1960         (handle_pragma_reset_options): New function to handle resetting
1961         both target and optimization options to their initial state.
1962         (init_pragma): Rename handle_pragma_option to
1963         handle_pragma_target.  Add support for push_options, pop_options,
1964         and reset_options pragmas.
1965
1966         * target-def.h (TARGET_OPTION_PRAGMA_PARSE): Change default to
1967         default_target_option_pragma_parse.
1968         (TARGET_OPTION_VALID_ATTRIBUTE_P): Change default to
1969         default_target_option_valid_attribute_p.
1970         (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): Delete.
1971         (TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION): Ditto.
1972         (TARGET_OPTION_HOOKS): Delete the fields for whether to change
1973         optimization level on hot/cold functions.
1974
1975         * tree-inline.c (tree_can_inline_p): Disable suppressing inlining
1976         if the caller and callee have different optimization levels.
1977
1978         * c-common.c (handle_target_attribute): Rename from
1979         handle_option_attribute, attribute((option(...))) is now
1980         attribute((target(...))).  Move warning if the port does not
1981         support target attributes to the default hook.
1982         (handle_hot_attribute): Delete code to change the optimization
1983         level of hot functions.
1984         (handle_cold_attribute): Ditto.
1985
1986         * config/i386/i386-c.c (ix86_pragma_target_parse): Take a second
1987         argument that is the binary tree options to use if there are no
1988         arguments.  Call ix86_valid_target_attribute_tree instead of
1989         ix86_valid_option_attribute_tree.
1990         (ix86_pragma_target_parse): Rename from ix86_pragma_option_parse.
1991         (ix86_register_pragmas): Use ix86_pragma_target_parse instead of
1992         ix86_pragma_option_parse.
1993
1994         * config/i386/i386-protos.h (ix86_valid_target_attribute_tree):
1995         Rename from ix86_valid_option_attribute_tree.
1996
1997         * config/i386/i386.c (ix86_add_new_builtins): New function to add
1998         new builtins when the ISA changes.
1999         (ix86_valid_target_attribute_tree): Rename from
2000         ix86_valid_option_attribute_tree.  Change callers.  If the
2001         function specified optimization options, use those as the starting
2002         point before setting up the target attributes.  If the
2003         optimization options were changed in the course of setting the
2004         target attributes, record the new optimization options.
2005         (ix86_valid_target_attribute_tree_inner_p): Rename from
2006         ix86_valid_option_attribute_tree_inner_p.  Change callers.  Call
2007         ix86_add_new_builtins if the ISA changed.
2008         (ix86_valid_target_attribute_p): Rename from
2009         ix86_valid_option_attribute_p.  Change callers.
2010         (enum ix86_builtins): Add IX86_BUILTIN_PCMOV to allow both
2011         __builtin_ia32_pcmov and __builtin_ia32_pcmov_v2di to be declared
2012         as delayed builtin functions.
2013         (struct builtin_isa): New structure to record builtin functions
2014         that should be delayed until the ISA for that function is used.
2015         (ix86_builtins_isa): Change from int to struct to track builtin
2016         functions we want to declare at some point.
2017         (def_builtin): If the front end can delay defining the builtin
2018         functions, don't create builtins for ISAs not part of the default
2019         options.
2020         (def_builtin_const): Ditto.
2021         (bdesc_multi_arg): Declare __builtin_ia32_pcmov and
2022         __builtin_ia32_pcmov_v2di to be different builtin functions.
2023         (ix86_expand_builtin): Changes due to ix86_builtins_isa now being
2024         a structure instead of an int.
2025         (TARGET_OPTION_VALID_ATTRIBUTE_P): Use
2026         ix86_valid_target_attribute_p, not ix86_valid_option_attribute_p.
2027         (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): Delete.
2028         (TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION): Ditto.
2029
2030         * config/ia64/ia64.h
2031         (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): Delete.
2032         (TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION): Ditto.
2033
2034         * langhooks-def.h (LANG_HOOKS_BUILTIN_FUNCTION_EXT_SCOPE): New
2035         hook, default to being the same as LANG_HOOKS_BUILTIN_FUNCTION.
2036         (LANG_HOOKS_INITIALIZER): Add
2037         LANG_HOOKS_BUILTIN_FUNCTION_EXT_SCOPE hook.
2038
2039 2008-08-30  Kaz Kojima  <kkojima@gcc.gnu.org>
2040
2041         PR target/37270
2042         * config/sh/sh.h (LEGITIMIZE_RELOAD_ADDRESS): Generate
2043         the reload address with the index register for SFmode
2044         access with a displacement.
2045
2046 2008-08-30  Jan Hubicka  <jh@suse.cz>
2047
2048         * optabs.c (expand_abs_nojump): Update BRANCH_COST call.
2049         * fold-cost.c (LOGICAL_OP_NON_SHORT_CIRCUIT, fold_truthop): Likewise.
2050         * dojump.c (do_jump): Likewise.
2051         * ifcvt.c (MAX_CONDITIONAL_EXECUTE): Likewise.
2052         (note-if_info): Add BRANCH_COST.
2053         (noce_try_store_flag_constants, noce_try_addcc, noce_try_store_flag_mask,
2054         noce_try_cmove_arith, noce_try_cmove_arith, noce_try_cmove_arith,
2055         noce_find_if_block, find_if_case_1, find_if_case_2): Use compuated
2056         branch cost.
2057         * expr.h (BRANCH_COST): Update default.
2058         * predict.c (predictable_edge_p): New function.
2059         * expmed.c (expand_smod_pow2, expand_sdiv_pow2, emit_store_flag):
2060         Update BRANCH_COST call.
2061         * basic-block.h (predictable_edge_p): Declare.
2062         * config/alpha/alpha.h (BRANCH_COST): Update.
2063         * config/frv/frv.h (BRANCH_COST): Update.
2064         * config/s390/s390.h (BRANCH_COST): Update.
2065         * config/spu/spu.h (BRANCH_COST): Update.
2066         * config/sparc/sparc.h (BRANCH_COST): Update.
2067         * config/m32r/m32r.h (BRANCH_COST): Update.
2068         * config/i386/i386.h (BRANCH_COST): Update.
2069         * config/i386/i386.c (ix86_expand_int_movcc): Update use of BRANCH_COST.
2070         * config/sh/sh.h (BRANCH_COST): Update.
2071         * config/pdp11/pdp11.h (BRANCH_COST): Update.
2072         * config/avr/avr.h (BRANCH_COST): Update.
2073         * config/crx/crx.h (BRANCH_COST): Update.
2074         * config/xtensa/xtensa.h (BRANCH_COST): Update.
2075         * config/stormy16/stormy16.h (BRANCH_COST): Update.
2076         * config/m68hc11/m68hc11.h (BRANCH_COST): Update.
2077         * config/iq2000/iq2000.h (BRANCH_COST): Update.
2078         * config/ia64/ia64.h (BRANCH_COST): Update.
2079         * config/rs6000/rs6000.h (BRANCH_COST): Update.
2080         * config/arc/arc.h (BRANCH_COST): Update.
2081         * config/score/score.h (BRANCH_COST): Update.
2082         * config/arm/arm.h (BRANCH_COST): Update.
2083         * config/pa/pa.h (BRANCH_COST): Update.
2084         * config/mips/mips.h (BRANCH_COST): Update.
2085         * config/vax/vax.h (BRANCH_COST): Update.
2086         * config/h8300/h8300.h (BRANCH_COST): Update.
2087         * params.def (PARAM_PREDICTABLE_BRANCH_OUTCOME): New.
2088         * doc/invoke.texi (predictable-branch-cost-outcome): Document.
2089         * doc/tm.texi (BRANCH_COST): Update.
2090
2091 2008-08-30  Samuel Tardieu  <sam@rfc1149.net>
2092
2093         PR target/37283
2094         * config/arm/arm.c (arm_optimization_options): Set
2095         flag_section_anchors to 2 instead of 1 to distinguish it from
2096         -fsection-anchors given explicitely on the command line.
2097
2098 2008-08-30  Richard Sandiford  <rdsandiford@googlemail.com>
2099
2100         * recog.c (split_insn): Consider attaching a REG_EQUAL note to the
2101         final insn of a split.
2102
2103 2008-08-30  Jan Hubicka  <jh@suse.cz>
2104
2105         * postreload-gcse.c (gate_handle_gcse2): Disable for functions
2106         optimized for speed.
2107         * final.c (compute_alignments): Use optimize_bb_for_size_p.
2108         * tree-call-cdce.c (gate_call_cdce): Use optimize_function_for_speed_p.
2109         * opts.c (flag_predictive_commoning_set, flag_unswitch_loops_set,
2110         flag_gcse_after_reload_set): New static vars.
2111         (common_handle_option): Enable those flags for profile-use.
2112         (decode_options): Remove optimize_size flags that are handled
2113         on higher granuality.
2114         * tree-vectorizer.c (vectorize_loops): Use
2115         optimize_loop_nest_for_speed_p.
2116         * tree-ssa-pre.c (do_pre): Use optimize_function_for_speed_p.
2117         * tree-predcom.c (tree_predictive_commoning): Use
2118         optimize_loop_for_speed_p.
2119         * varasm.c (assemble_start_function): Use optimize_function_for_speed_p.
2120         * bb-reorder.c (rest_of_handle_reorder_blocks): Likewise.
2121         * predict.c (optimize_loop_for_speed_p): Fix walk.
2122
2123 2008-08-30  Jan Hubicka  <jh@suse.cz>
2124
2125         * ipa-inline.c (cgraph_estimate_growth): Discover self recursive
2126         functions.
2127         (cgraph_decide_inlining_of_small_function): Use edge->count to detect
2128         profile presence locally.
2129
2130 2008-08-29  Joseph Myers  <joseph@codesourcery.com>
2131
2132         PR bootstrap/37086
2133         * tree-vrp.c (find_switch_asserts): Make idx volatile for GCC
2134         versions before 4.0.
2135
2136 2008-08-29  Jan Hubicka  <jh@suse.cz>
2137
2138         * tree-inline.c (insert_init_stmt): Insert sequence even when
2139         not in SSA form.
2140
2141 2008-08-29  Jeff Law  <law@redhat.com>
2142
2143         * mn10300.c (mn10300_secondary_reload_class): We need secondary
2144         reloads for AM33-2 if IN is a pseudo with an equivalent memory
2145         location and class is an FP register.
2146
2147 2008-08-29  Jan Hubicka  <jh@suse.cz>
2148
2149         * see.c (see_merge_one_def_extension): Silence used uninitialized
2150         warning.
2151         * matrix-reorg.c (check_allocation_function): Likewise.
2152         * config/i386/driver-i386.c (detect_caches_amd): Likewise.
2153
2154 2008-08-29  Jakub Jelinek  <jakub@redhat.com>
2155
2156         PR c/37261
2157         * fold-const.c (fold_binary): In (X | C1) & C2 canonicalization
2158         compute new & and | in type rather than TREE_TYPE (arg0).
2159
2160         * dwarf2out.c (fortran_common): Update comment.
2161         (gen_variable_die): Swap com_die and var_die variables in Fortran
2162         COMMON block handling code.
2163
2164         * dwarf2out.c (descr_info_loc): Handle VAR_DECL.
2165
2166         * dwarf2out.c (gen_const_die): New function.
2167         (size_of_die, value_format, output_die): Output larger
2168         dw_val_class_vec using DW_FORM_block2 or DW_FORM_block4.
2169         (native_encode_initializer): New function.
2170         (tree_add_const_value_attribute): Call it.
2171         (gen_decl_die, dwarf2out_decl): Handle CONST_DECLs if is_fortran ().
2172
2173         * dwarf2out.c (gen_formal_parameter_die, gen_variable_die): For
2174         DECL_BY_REFERENCE decls don't pass TREE_READONLY and
2175         TREE_THIS_VOLATILE to add_type_attribute.
2176
2177         * dwarf2out.c (add_subscript_info): Stop on Fortran TYPE_STRING_FLAG
2178         types.
2179         (gen_array_type_die): Emit DW_TAG_string_type for Fortran character
2180         types.
2181
2182         * dwarf2out.c (loc_by_reference): New function.
2183         (add_location_or_const_value_attribute): Use it.
2184
2185         PR fortran/23057
2186         * dwarf2out.c (gen_variable_die): Represent Fortran COMMON vars
2187         as DW_TAG_variable children of DW_TAG_common_block rather than
2188         DW_TAG_member children.  Put DW_AT_external to individual
2189         DW_TAG_variable DIEs, not to DW_TAG_common_block.
2190
2191         * dwarf2out.c (add_bound_info): If lookup_decl_die failed, try
2192         loc_descriptor_from_tree_1.
2193
2194         PR fortran/29635
2195         PR fortran/23057
2196         * debug.h (struct gcc_debug_hooks): Add NAME and CHILD
2197         arguments to imported_module_or_decl.
2198         (debug_nothing_tree_tree): Removed.
2199         (debug_nothing_tree_tree_tree_bool): New prototype.
2200         * debug.c (do_nothing_debug_hooks): Adjust.
2201         (debug_nothing_tree_tree): Removed.
2202         (debug_nothing_tree_tree_tree_bool): New function.
2203         * dwarf2out.c (is_symbol_die): Handle DW_TAG_module.
2204         (gen_variable_die): Put all common vars for the
2205         same COMMON block under one DW_TAG_common_block.
2206         (declare_in_namespace): Return new context_die, for Fortran
2207         return the module DIE instead of adding extra declarations into
2208         the namespace.
2209         (gen_type_die_with_usage): Adjust declare_in_namespace caller.
2210         (gen_namespace_die): If is_fortran (), generate DW_TAG_module
2211         instead of DW_TAG_namespace.  If DECL_EXTERNAL is set, add
2212         DW_AT_declaration.
2213         (dwarf2out_global_decl): Don't skip Fortran global vars.
2214         (gen_decl_die): Likewise.  Adjust declare_in_namespace callers.
2215         (dwarf2out_imported_module_or_decl): Add NAME and CHILD arguments.
2216         If NAME is non-NULL, add DW_AT_name.  If CHILD is non-NULL, put
2217         DW_TAG_imported_declaration as child of previous
2218         DW_TAG_imported_module.
2219         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Adjust.
2220         * sdbout.c (sdb_debug_hooks): Likewise.
2221         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
2222
2223 2008-08-29  Jan Hubicka  <jh@suse.cz>
2224
2225         * cgraph.c (cgraph_remove_node): Do not remove nested nodes.
2226
2227         * cgraph.h (cgraph_maybe_hot_edge_p): Declare.
2228         * ipa-cp.c (n_cloning_candidates): New static variable.
2229         (ipcp_print_profile_data, ipcp_function_scale_print): Forward declare.
2230         (ipcp_print_all_lattices): Improve debug output.
2231         (ipcp_cloning_candidate_p): New function.
2232         (ipcp_initialize_node_lattices): Use it.
2233         (ipcp_init_stage): Do only analyzis here; prettier debug output.
2234         (ipcp_propagate_stage): Prettier debug output.
2235         (ipcp_iterate_stage): Initialize latices here; prettier debug output.
2236         (ipcp_print_all_structures): Remove.
2237         (ipcp_need_redirect_p): Test !n_cloning_candidates.
2238         (ipcp_insert_stage): Prettier debug output; call
2239         cgraph_remove_unreachable_nodes before propagating.
2240         (pass_ipa_cp): Schedule function removal pass.
2241         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Better
2242         debug output.
2243         (cgraph_maybe_hot_edge_p): Move to ...
2244         * predict.c (cgraph_maybe_hot_edge_p) ... here.
2245         * opts.c (flag_ipa_cp_set, flag_ipa_cp_clone_set): New.
2246         (common_handle_option): Set them; enable ipa-cp when profiling.
2247         * ipa-prop.c (ipa_print_node_jump_functions): Prettier output.
2248         (ipa_print_all_jump_functions): Likewise.
2249         (ipa_print_all_tree_maps, ipa_print_node_param_flags): Remove.
2250         (ipa_print_node_params, ipa_print_all_params): New.
2251         * ipa-prop.h (ipa_print_all_tree_maps, ipa_print_node_param_flags,
2252         ipa_print_all_param_flags): Remove.
2253         (ipa_print_node_params, ipa_print_all_params): New.
2254
2255 2008-08-29  Bob Wilson  <bob.wilson@acm.org>
2256
2257         * config/xtensa/xtensa.c (xtensa_secondary_reload_class): Revert
2258         change from 2008-04-03.
2259         * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Define.
2260
2261 2008-08-29  Vladimir Makarov  <vmakarov@redhat.com>
2262
2263         PR rtl-opt/37251
2264
2265         * ira-color.c (push_allocnos_to_stack): Truncate
2266         removed_splay_allocno_vec.
2267
2268 2008-08-29  Vladimir Makarov  <vmakarov@redhat.com>
2269
2270         PR rtl-opt/37243
2271         * ira-color (ira_fast_allocation): Don't assign hard registers to
2272         global allocnos.
2273
2274 2008-08-29  Jan Hubicka  <jh@suse.cz>
2275
2276         PR middle-end/37278
2277         * predict.c (optimize_loop_nest_for_speed_p): Do not ICE
2278         for cold internal loops.
2279
2280 2008-08-29  Richard Guenther  <rguenther@suse.de>
2281
2282         * tree-ssa-structalias.c (create_variable_info_for): Do not
2283         create fields for heap vars or vars with a noalias state.
2284         For NO_ALIAS_ANYTHING variables add a self-constraint, not one
2285         from ESCAPED.
2286
2287 2008-08-29  Richard Guenther  <rguenther@suse.de>
2288
2289         * common.opt (ftree-store-ccp): Mark as preserved for
2290         backward compatibility.
2291         * doc/invoke.texi (-ftree-store-ccp): Remove documentation.
2292         * tree-pass.h (pass_store_ccp): Remove.
2293         * tree-ssa-propagate.h (struct prop_value_d): Remove mem_ref field.
2294         (first_vdef): Remove declaration.
2295         (get_value_loaded_by): Likewise.
2296         * tree-ssa-ccp.c (do_store_ccp): Remove.
2297         (get_default_value): Simplify as do_store_ccp is always false
2298         now.  Do not initialize mem_ref.
2299         (set_value_varying): Likewise.
2300         (canonicalize_float_value): Likewise.
2301         (set_lattice_value): Likewise.
2302         (likely_value): Likewise.
2303         (surely_varying_stmt_p): Likewise.
2304         (ccp_initialize): Likewise.
2305         (ccp_lattice_meet): Likewise.
2306         (ccp_visit_phi_node): Likewise.
2307         (ccp_fold): Likewise.
2308         (evaluate_stmt): Likewise.
2309         (visit_assignment): Likewise.
2310         (ccp_visit_stmt): Likewise.
2311         (execute_ssa_ccp): Fold into ...
2312         (do_ssa_ccp): ... this.
2313         (do_ssa_store_ccp): Remove.
2314         (gate_store_ccp): Likewise.
2315         (pass_store_ccp): Likewise.
2316         * tree-ssa-copy.c (copy_prop_visit_phi_node): Do not
2317         initialize mem_ref.
2318         * tree-ssa-propagate.c (first_vdef): Remove.
2319         (get_value_loaded_by): Likewise.
2320         (replace_vuses_in): Likewise.
2321         (substitute_and_fold): Do not call replace_vuses_in.
2322         * opts.c (decode_options): Do not set flag_tree_store_ccp.
2323
2324 2008-08-29  Richard Guenther  <rguenther@suse.de>
2325
2326         PR middle-end/37236
2327         * tree-ssa-structalias.c (intra_create_variable_infos): Mark
2328         PARAM_NOALIAS tags with is_heapvar.
2329         * tree-ssa-operands.c (access_can_touch_variable): Offset
2330         based tests do not apply for heapvars.  Fix offset test.
2331
2332 2008-08-29  Jan Hubicka  <jh@suse.cz>
2333
2334         * doc/invoke.texi (-fipa-cp): Enabled by default at -O2/-Os/-O3
2335         (-fipa-cp-clone): Enabled by default at -O3.
2336         * opts.c (decode_options): Enable ipa-cp at -O2, ipa-cp-clone at -O3;
2337         make ipa-cp-clone to imply ipa-cp; disable cloning at -Os.
2338
2339 2008-08-29  Jan Hubicka  <jh@suse.cz>
2340
2341         * tree.c (build_function_type_skip_args, build_function_decl_skip_args):
2342         New functions.
2343         * tree.h (build_function_type_skip_args, build_function_decl_skip_args):
2344         Declare.
2345         * gimple.c (giple_copy_call_skip_args): New function.
2346         (giple_copy_call_skip_args): Declare.
2347
2348         * cgraph.h (cgraph_function_versioning): Add skip_args arugmnet
2349         * ipa-cp.c (ipcp_node_not_modifiable_p): Rename to ...
2350         (ipcp_node_modifiable_p): ... this one; use tree_versionable_function_p.
2351         (ipcp_create_replace_map): Improve debug output.
2352         (ipcp_need_redirect_p): Return false when not clonning.
2353         (ipcp_update_callgraph): Skip args.
2354         (ipcp_insert_stage): UPdate call of !ipcp_node_modifiable_p;
2355         skip args.
2356         * cgraphunit.c (cgraph_function_versioning): Add skip_args argument.
2357         (save_inline_function_body): Update call of tree_function_versioning.
2358         * ipa-prop.c (ipa_edge_removal_hook): Do not ICE on unanalyzed nodes.
2359         * tree-inline.c (copy_arguments_for_versioning): Add skip_args argument.
2360         (tree_function_versioning): Likewise.
2361         * tree-inline.h (tree_function_versioning): Update prototype.
2362
2363 2008-08-29  Jan Hubicka  <jh@suse.cz>
2364
2365         * loop-unswitch.c (unswitch_single_loop): Use optimize_loop_for_speed_p.
2366         * tree-ssa-threadupdate.c (mark_threaded_blocks): Use optimize_function_for_size_p.
2367         * tracer.c (ignore_bb_p): Use optimize_bb_for_size_p.
2368         * postreload-gcse.c (eliminate_partially_redundant_load): Use optimize_bb_for_size_p.
2369         * value-prof.c (gimple_divmod_fixed_value_transform,
2370         gimple_mod_pow2_value_transform, gimple_mod_subtract_transform,
2371         gimple_stringops_transform): Use optimize_bb_for_size_p.
2372         * ipa-cp.c (ipcp_insert_stage): Use optimize_function_for_size_p.
2373         * final.c (compute_alignments): Use optimize_function_for_size_p.
2374         * builtins.c (fold_builtin_cabs): Use optimize_function_for_speed_p.
2375         (fold_builtin_strcpy, fold_builtin_fputs): Use
2376         optimize_function_for_size_p.
2377         * fold-const.c (tree_swap_operands_p): Use optimize_function_for_size_p.
2378         * recog.c (relax_delay_slots): Likewise.
2379         * tree-ssa-math-opts.c (replace_reciprocal): Use optimize_bb_for_speed_p.
2380         (execute_cse_reciprocals): Use optimize_bb_for_size_p.
2381         * ipa-inline.c (cgraph_decide_recursive_inlining): Use
2382         optimize_function_for_size_p.
2383         (cgraph_decide_inlining_of_small_function): Use
2384         optimize_function_for_size_p.
2385         * global.c (find_reg): Use optimize_function_for_size_p.
2386         * opts.c (decode_options): Do not clear flag_tree_ch, flag_inline_functions,
2387         flag_unswitch_loops, flag_unroll_loops, flag_unroll_all_loops and
2388         flag_prefetch_loop_arrays. Those can work it out from profile.
2389         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Use
2390         optimize_loop_for_speed_p.
2391         * predict.c (optimize_bb_for_size_p, optimize_bb_for_speed_p): Constify
2392         argument.
2393         (optimize_loop_nest_for_size_p, optimize_loop_nest_for_speed_p): New.
2394         * tree-parloops.c (parallelize_loops): Use optimize_loop_for_size_p.
2395         * tree-eh.c (decide_copy_try_finally): Use optimize_function_for_size_p.
2396         * local-alloc.c (block_alloc): Pass BB pointer.
2397         (find_free_reg): Add BB pointer, use optimize_bb_for_size_p.
2398         * gcse.c (gcse_main): Use optimize_function_for_size_p.
2399         * loop-unroll.c (decide_unrolling_and_peeling): Use optimize_loop_for_size_p.
2400         (decide_peel_completely): Likewise.
2401         * tree-vect-analyze.c (vect_mark_for_runtime_alias_test): Use
2402         optimize_loop_for_size_p.
2403         (vect_enhance_data_refs_alignment): Likewise.
2404         * tree-ssa-coalesce.c (coalesce_cost): Add optimize_for_size argument.
2405         (coalesce_cost_bb, coalesce_cost_edge, create_outofssa_var_map): Update call.
2406         * cfgcleanup.c (outgoing_edges_match): Use optimize_bb_for_speed_p.
2407         (try_crossjump_bb): Use optimize_bb_for_size_p.
2408         * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Use
2409         optimize_loop_for_speed_p.
2410         * bb-reorder.c (find_traces_1_round): Likewise.
2411         (copy_bb): Use optimize_bb_for_speed_p.
2412         (duplicate_computed_gotos): Likewise.
2413         * basic-block.h (optimize_loop_nest_for_size_p,
2414         optimize_loop_nest_for_speed_p): New.
2415         * stmt.c (expand_case): Use optimize_insn_for_size_p.
2416
2417 2008-08-29  Tristan Gingold  <gingold@adacore.com>
2418
2419         * gcov.c (main): Call expandargv.
2420
2421 2008-08-29  Jan Hubicka  <jh@suse.cz>
2422
2423         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Check that loop
2424         is not cold.
2425         * predict.c (optimize_bb_for_size_p, optimize_bb_for_speed_p):
2426         Constify arguments.
2427         (optimize_loop_for_size_p, optimize_loop_for_speed_p): New functions.
2428         * basic-block.h (optimize_bb_for_size_p, optimize_bb_for_speed_p):
2429         Constify.
2430         (optimize_loop_for_size_p, optimize_loop_for_speed_p): Declare.
2431
2432 2008-08-29  Jan Hubicka  <jh@suse.cz>
2433
2434         * tree-pass.h (pass_strip_predict_hints): Declare.
2435         * predict.c (strip_builtin_expect): Rename to ...
2436         (strip_predict_hints): ... this one; strip also GIMPLE_PREDICT.
2437         (tree_bb_level_predictions): Do not remove GIMPLE_PREDICT.
2438         (tree_estimate_probability): Do not strip builtin_expect.
2439         (pass_strip_predict_hints): New pass.
2440         * tree-inline.c (expand_call_inline): When inlining cold function, predict
2441         it as unlikely.
2442         * passes.c (init_optimization_passes): Add pass_strip_predict_hints.
2443
2444 2008-08-29  Richard Guenther  <rguenther@suse.de>
2445
2446         PR tree-optimization/37207
2447         * tree-vrp.c (extract_range_from_binary_expr): Also try
2448         to constant fold if only one of the operands is a constant.
2449
2450 2008-08-29  Nick Clifton  <nickc@redhat.com>
2451
2452         * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Treat LABEL_REFs in
2453         the same way as SYMBOL_REFs.
2454
2455 2008-08-28  Bob Wilson  <bob.wilson@acm.org>
2456
2457         * config/xtensa/xtensa.md (<u>mulsidi3): Use a temporary register.
2458
2459 2008-08-28  Adam Nemet  <anemet@caviumnetworks.com>
2460
2461         * config/mips/mips.h (ISA_HAS_BBIT): New macro.
2462         * config/mips/mips.md (branch_likely): Remove const.  Fix
2463         comment formatting.
2464         (define_delay for type "branch"): Change to only apply for branch
2465         with likely variant.
2466         (define_delay for type "branch" and "branch_likely" no).  New delay
2467         definition.
2468         (equality_op): New code iterator.
2469         (bbv, bbinv): New code attributes.
2470         (*branch_bit<bbv><mode>, *branch_bit<bbv><mode>_inverted): New
2471         patterns.
2472
2473 2008-08-28  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
2474             Andrew Pinski  <pinskia@gcc.gnu.org>
2475
2476         PR 18050
2477         * c-common.c (verify_tree): Fix handling of ADDR_EXPR.
2478
2479 2008-08-28  Paolo Carlini  <paolo.carlini@oracle.com>
2480
2481         * gtrh-posix.h: Fix uses of _POSIX_TIMEOUTS per the normal Posix
2482         rule that a symbolic constant must be defined and >= 0 for the
2483         corresponding facility to be present at compile-time.
2484         * gthr-posix.c: Likewise.
2485
2486 2008-08-28  Adam Nemet  <anemet@caviumnetworks.com>
2487
2488         * config/mips/mips.h (ISA_HAS_DMUL3): New macro.
2489         * config/mips/mips.md (D): New mode attribute.
2490         (mulsi3, muldi3): Merge it into ...
2491         (mul<mode>3): ... new template.  Use _mul3 ending for 3-op
2492         patterns.
2493         (muldi3_mul3): New pattern.
2494         (mulsi3_mult3): Rename to mulsi3_mul3.
2495
2496 2008-08-28  Jan Hubicka  <jh@suse.cz>
2497
2498         * expmed.c (store_bit_field_1): Be prepared for movstrict expander
2499         to fail.
2500         * predict.c (always_optimize_for_size_p): Rename to ...
2501         (optimize_function_for_size): ... this one; make extern.
2502         (optimize_function_for_speed_p): New.
2503         (optimize_bb_for_size_p, optimize_bb_for_size_p,
2504         optimize_edge_for_size_p,optimize_edge_for_size_p,
2505         optimize_insn_for_size_p, optimize_insn_for_size_p): Update.
2506         * basic-block.h (optimize_function_for_size_p,
2507         optimize_function_for_speed_p): Declare.
2508         * i386.md (optimize_size checks): Replace them by appropriate
2509         predicate.
2510         (standard_80387_constant_p, ix86_compute_frame_layout,
2511         ix86_expand_epilogue, ix86_decompose_address,
2512         print_operand, emit_i387_cw_initialization,
2513         inline_memory_move_cost, ix86_pad_returns,
2514         ix86_reorg): Replace optimize_size checks.
2515
2516 2008-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
2517
2518         * rtl.h (simplify_subreg_regno): Declare.
2519         * rtlanal.c (simplify_subreg_regno): New function, split out from...
2520         * simplify-rtx.c (simplify_subreg): ...here.
2521         * reload.c (find_reloads): Use simplify_subreg_regno instead of
2522         subreg_offset_representable_p.
2523
2524 2008-08-28  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
2525
2526         PR c/30949
2527         * c-typeck.c (convert_for_assignment): Give a note describing what
2528         was passed and what was expected.
2529
2530 2008-08-28  Joey Ye  <joey.ye@intel.com>
2531
2532         * doc/extend.texi: Document AVX built-in functions.
2533         * doc/invoke.texi: Document -mavx.
2534
2535 2008-08-28  H.J. Lu  <hongjiu.lu@intel.com>
2536             Joey Ye  <joey.ye@intel.com>
2537             Xuepeng Guo  <xuepeng.guo@intel.com>
2538
2539         * config.gcc (extra_headers): Add gmmintrin.h for x86 and x86-64.
2540
2541         * config/i386/cpuid.h (bit_FMA): New.
2542         (bit_XSAVE): Likewise.
2543         (bit_OSXSAVE): Likewise.
2544         (bit_AVX): Likewise.
2545
2546         * config/i386/gas.h (ASM_OUTPUT_OPCODE): Undefine before
2547         define.  Use ASM_OUTPUT_AVX_PREFIX.
2548
2549         * config/i386/gmmintrin.h: New.
2550
2551         * config/i386/i386.c (x86_64_reg_class): Add X86_64_AVX_CLASS.
2552         (OPTION_MASK_ISA_AVX_SET): New.
2553         (OPTION_MASK_ISA_FMA_SET): Likewise.
2554         (OPTION_MASK_ISA_AVX_UNSET): Likewise.
2555         (OPTION_MASK_ISA_FMA_SET): Likewise.
2556         (OPTION_MASK_ISA_SSE4_2_UNSET): Updated.
2557         (ix86_handle_option): Handle OPT_mavx and OPT_mfma.
2558         (pta_flags): Add PTA_AVX and PTA_FMA.
2559         (override_options): Handle PTA_AVX and PTA_FMA.
2560         (init_cumulative_args): Handle warn_avx.
2561         (classify_argument): Return 0 for COImode and OImode.  Return
2562         1 and X86_64_AVX_CLASS for 256bit vector types.
2563         (examine_argument): Handle X86_64_AVX_CLASS.
2564         (construct_container): Likewise.
2565         (function_arg_advance_32): Pass OImode and 256bit vector types
2566         in AVX register.
2567         (function_arg_advance_64): Take a new argument to indicate if a
2568         parameter is named.  Handle 256bit vector types.  Return
2569         immediately for unnamed 256bit vector mode parameters.
2570         (function_arg_advance): Updated.
2571         (function_arg_32): Add comments for TImode.  Handle OImode
2572         and 256bit vector types.
2573         (function_arg_64): Take a new argument to indicate if a
2574         parameter is named.  Handle 256bit vector types.  Return NULL
2575         for unnamed 256bit vector mode parameters.
2576         (function_arg): Updated.
2577         (setup_incoming_varargs_64): Support
2578         AVX encoding for *sse_prologue_save_insn.
2579         (ix86_gimplify_va_arg): Handle 256bit vector mode parameters.
2580         (standard_sse_constant_p): Return -2 for all 1s if SSE2 isn't
2581         enabled.  For all 1s in 256bit vector modes, return 3 if AVX is
2582         enabled, otherwise return -3.
2583         (standard_sse_constant_opcode): Handle AVX and 256bit vector
2584         modes.
2585         (print_reg): Support AVX registers.  Handle 'x' and 't'.
2586         Handle 'd' to duplicate the operand.
2587         (print_operand): Likewise.  Also support AVX vector compare
2588         instructions.
2589         (output_387_binary_op): Support AVX.
2590         (output_fp_compare): Likewise.
2591         (ix86_expand_vector_move_misalign): Likewise.
2592         (ix86_attr_length_vex_default): New.
2593         (ix86_builtins): Add IX86_BUILTIN_ADDPD256,
2594         IX86_BUILTIN_ADDPS256, IX86_BUILTIN_ADDSUBPD256,
2595         IX86_BUILTIN_ADDSUBPS256, IX86_BUILTIN_ANDPD256,
2596         IX86_BUILTIN_ANDPS256, IX86_BUILTIN_ANDNPD256,
2597         IX86_BUILTIN_ANDNPS256, IX86_BUILTIN_BLENDPD256,
2598         IX86_BUILTIN_BLENDPS256, IX86_BUILTIN_BLENDVPD256,
2599         IX86_BUILTIN_BLENDVPS256, IX86_BUILTIN_DIVPD256,
2600         IX86_BUILTIN_DIVPS256, IX86_BUILTIN_DPPS256,
2601         IX86_BUILTIN_HADDPD256, IX86_BUILTIN_HADDPS256,
2602         IX86_BUILTIN_HSUBPD256, IX86_BUILTIN_HSUBPS256,
2603         IX86_BUILTIN_MAXPD256, IX86_BUILTIN_MAXPS256,
2604         IX86_BUILTIN_MINPD256, IX86_BUILTIN_MINPS256,
2605         IX86_BUILTIN_MULPD256, IX86_BUILTIN_MULPS256,
2606         IX86_BUILTIN_ORPD256, IX86_BUILTIN_ORPS256,
2607         IX86_BUILTIN_SHUFPD256, IX86_BUILTIN_SHUFPS256,
2608         IX86_BUILTIN_SUBPD256, IX86_BUILTIN_SUBPS256,
2609         IX86_BUILTIN_XORPD256, IX86_BUILTIN_XORPS256,
2610         IX86_BUILTIN_CMPSD, IX86_BUILTIN_CMPSS, IX86_BUILTIN_CMPPD,
2611         IX86_BUILTIN_CMPPS, IX86_BUILTIN_CMPPD256,
2612         IX86_BUILTIN_CMPPS256, IX86_BUILTIN_CVTDQ2PD256,
2613         IX86_BUILTIN_CVTDQ2PS256, IX86_BUILTIN_CVTPD2PS256,
2614         IX86_BUILTIN_CVTPS2DQ256, IX86_BUILTIN_CVTPS2PD256,
2615         IX86_BUILTIN_CVTTPD2DQ256, IX86_BUILTIN_CVTPD2DQ256,
2616         IX86_BUILTIN_CVTTPS2DQ256, IX86_BUILTIN_EXTRACTF128PD256,
2617         IX86_BUILTIN_EXTRACTF128PS256, IX86_BUILTIN_EXTRACTF128SI256,
2618         IX86_BUILTIN_VZEROALL, IX86_BUILTIN_VZEROUPPER,
2619         IX86_BUILTIN_VZEROUPPER_REX64, IX86_BUILTIN_VPERMILVARPD,
2620         IX86_BUILTIN_VPERMILVARPS, IX86_BUILTIN_VPERMILVARPD256,
2621         IX86_BUILTIN_VPERMILVARPS256, IX86_BUILTIN_VPERMILPD,
2622         IX86_BUILTIN_VPERMILPS, IX86_BUILTIN_VPERMILPD256,
2623         IX86_BUILTIN_VPERMILPS256, IX86_BUILTIN_VPERMIL2PD,
2624         IX86_BUILTIN_VPERMIL2PS, IX86_BUILTIN_VPERMIL2PD256,
2625         IX86_BUILTIN_VPERMIL2PS256, IX86_BUILTIN_VPERM2F128PD256,
2626         IX86_BUILTIN_VPERM2F128PS256, IX86_BUILTIN_VPERM2F128SI256,
2627         IX86_BUILTIN_VBROADCASTSS, IX86_BUILTIN_VBROADCASTSD256,
2628         IX86_BUILTIN_VBROADCASTSS256, IX86_BUILTIN_VBROADCASTPD256,
2629         IX86_BUILTIN_VBROADCASTPS256, IX86_BUILTIN_VINSERTF128PD256,
2630         IX86_BUILTIN_VINSERTF128PS256, IX86_BUILTIN_VINSERTF128SI256,
2631         IX86_BUILTIN_LOADUPD256, IX86_BUILTIN_LOADUPS256,
2632         IX86_BUILTIN_STOREUPD256, IX86_BUILTIN_STOREUPS256,
2633         IX86_BUILTIN_LDDQU256, IX86_BUILTIN_LOADDQU256,
2634         IX86_BUILTIN_STOREDQU256, IX86_BUILTIN_MASKLOADPD,
2635         IX86_BUILTIN_MASKLOADPS, IX86_BUILTIN_MASKSTOREPD,
2636         IX86_BUILTIN_MASKSTOREPS, IX86_BUILTIN_MASKLOADPD256,
2637         IX86_BUILTIN_MASKLOADPS256, IX86_BUILTIN_MASKSTOREPD256,
2638         IX86_BUILTIN_MASKSTOREPS256, IX86_BUILTIN_MOVSHDUP256,
2639         IX86_BUILTIN_MOVSLDUP256, IX86_BUILTIN_MOVDDUP256,
2640         IX86_BUILTIN_SQRTPD256, IX86_BUILTIN_SQRTPS256,
2641         IX86_BUILTIN_SQRTPS_NR256, IX86_BUILTIN_RSQRTPS256,
2642         IX86_BUILTIN_RSQRTPS_NR256, IX86_BUILTIN_RCPPS256,
2643         IX86_BUILTIN_ROUNDPD256, IX86_BUILTIN_ROUNDPS256,
2644         IX86_BUILTIN_UNPCKHPD256, IX86_BUILTIN_UNPCKLPD256,
2645         IX86_BUILTIN_UNPCKHPS256, IX86_BUILTIN_UNPCKLPS256,
2646         IX86_BUILTIN_SI256_SI, IX86_BUILTIN_PS256_PS,
2647         IX86_BUILTIN_PD256_PD, IX86_BUILTIN_SI_SI256,
2648         IX86_BUILTIN_PS_PS256, IX86_BUILTIN_PD_PD256,
2649         IX86_BUILTIN_VTESTZPD, IX86_BUILTIN_VTESTCPD,
2650         IX86_BUILTIN_VTESTNZCPD, IX86_BUILTIN_VTESTZPS,
2651         IX86_BUILTIN_VTESTCPS, IX86_BUILTIN_VTESTNZCPS,
2652         IX86_BUILTIN_VTESTZPD256, IX86_BUILTIN_VTESTCPD256,
2653         IX86_BUILTIN_VTESTNZCPD256, IX86_BUILTIN_VTESTZPS256,
2654         IX86_BUILTIN_VTESTCPS256, IX86_BUILTIN_VTESTNZCPS256,
2655         IX86_BUILTIN_PTESTZ256, IX86_BUILTIN_PTESTC256,
2656         IX86_BUILTIN_PTESTNZC256, IX86_BUILTIN_MOVMSKPD256
2657         and IX86_BUILTIN_MOVMSKPS256,
2658         (ix86_special_builtin_type): Add V32QI_FTYPE_PCCHAR,
2659         V8SF_FTYPE_PCV4SF, V8SF_FTYPE_PCFLOAT, V4DF_FTYPE_PCV2DF,
2660         V4DF_FTYPE_PCDOUBLE, V8SF_FTYPE_PCV8SF_V8SF,
2661         V4DF_FTYPE_PCV4DF_V4DF, V4SF_FTYPE_PCV4SF_V4SF,
2662         V2DF_FTYPE_PCV2DF_V2DF, VOID_FTYPE_PCHAR_V32QI,
2663         VOID_FTYPE_PFLOAT_V8SF, VOID_FTYPE_PDOUBLE_V4DF,
2664         VOID_FTYPE_PV8SF_V8SF_V8SF, VOID_FTYPE_PV4DF_V4DF_V4DF,
2665         VOID_FTYPE_PV4SF_V4SF_V4SF and VOID_FTYPE_PV2DF_V2DF_V2DF,
2666         (ix86_builtin_type): Add INT_FTYPE_V8SF_V8SF_PTEST,
2667         INT_FTYPE_V4DI_V4DI_PTEST, INT_FTYPE_V4DF_V4DF_PTEST,
2668         INT_FTYPE_V4SF_V4SF_PTEST, INT_FTYPE_V2DF_V2DF_PTEST,
2669         INT_FTYPE_V8SF, INT_FTYPE_V4DF, V8SI_FTYPE_V8SF, V8SI_FTYPE_V4SI,
2670         V8SF_FTYPE_V8SF, V8SF_FTYPE_V8SI, V8SF_FTYPE_V4SF,
2671         V4SI_FTYPE_V8SI, V4SI_FTYPE_V4DF, V4DF_FTYPE_V4DF,
2672         V4DF_FTYPE_V4SI, V4DF_FTYPE_V4SF, V4DF_FTYPE_V2DF,
2673         V4SF_FTYPE_V4DF, V4SF_FTYPE_V8SF, V2DF_FTYPE_V4DF,
2674         V8SF_FTYPE_V8SF_V8SF, V8SF_FTYPE_V8SF_V8SI,
2675         V4DF_FTYPE_V4DF_V4DF, V4DF_FTYPE_V4DF_V4DI,
2676         V4SF_FTYPE_V4SF_V4SI, V2DF_FTYPE_V2DF_V2DI,
2677         V8SF_FTYPE_V8SF_INT, V4SI_FTYPE_V8SI_INT, V4SF_FTYPE_V8SF_INT,
2678         V2DF_FTYPE_V4DF_INT, V4DF_FTYPE_V4DF_INT,
2679         V8SF_FTYPE_V8SF_V8SF_V8SF, V4DF_FTYPE_V4DF_V4DF_V4DF,
2680         V8SI_FTYPE_V8SI_V8SI_INT, V8SF_FTYPE_V8SF_V8SF_INT,
2681         V4DF_FTYPE_V4DF_V4DF_INT, V4DF_FTYPE_V4DF_V2DF_INT,
2682         V8SF_FTYPE_V8SF_V8SF_V8SI_INT, V4DF_FTYPE_V4DF_V4DF_V4DI_INT,
2683         V4SF_FTYPE_V4SF_V4SF_V4SI_INT and V2DF_FTYPE_V2DF_V2DF_V2DI_INT.
2684         (bdesc_special_args): Add IX86_BUILTIN_VZEROALL,
2685         IX86_BUILTIN_VZEROUPPER. IX86_BUILTIN_VZEROUPPER_REX64,
2686         IX86_BUILTIN_VBROADCASTSS, IX86_BUILTIN_VBROADCASTSD256,
2687         IX86_BUILTIN_VBROADCASTSS256, IX86_BUILTIN_VBROADCASTPD256,
2688         IX86_BUILTIN_VBROADCASTPS256, IX86_BUILTIN_LOADUPD256,
2689         IX86_BUILTIN_LOADUPS256, IX86_BUILTIN_STOREUPD256,
2690         IX86_BUILTIN_STOREUPS256, IX86_BUILTIN_LOADDQU256,
2691         IX86_BUILTIN_STOREDQU256, IX86_BUILTIN_LDDQU256,
2692         IX86_BUILTIN_MASKLOADPD, IX86_BUILTIN_MASKLOADPS,
2693         IX86_BUILTIN_MASKLOADPD256, IX86_BUILTIN_MASKLOADPS256,
2694         IX86_BUILTIN_MASKSTOREPD, IX86_BUILTIN_MASKSTOREPS,
2695         IX86_BUILTIN_MASKSTOREPD256 and IX86_BUILTIN_MASKSTOREPS256.
2696         (ix86_builtins): Add IX86_BUILTIN_ADDPD256,
2697         IX86_BUILTIN_ADDPS256, IX86_BUILTIN_ADDSUBPD256,
2698         IX86_BUILTIN_ADDSUBPS256, IX86_BUILTIN_ANDPD256,
2699         IX86_BUILTIN_ANDPS256, IX86_BUILTIN_ANDNPD256,
2700         IX86_BUILTIN_ANDNPS256, IX86_BUILTIN_DIVPD256,
2701         IX86_BUILTIN_DIVPS256, IX86_BUILTIN_HADDPD256,
2702         IX86_BUILTIN_HSUBPS256, IX86_BUILTIN_HSUBPD256,
2703         IX86_BUILTIN_HADDPS256, IX86_BUILTIN_MAXPD256,
2704         IX86_BUILTIN_MAXPS256, IX86_BUILTIN_MINPD256,
2705         IX86_BUILTIN_MINPS256, IX86_BUILTIN_MULPD256,
2706         IX86_BUILTIN_MULPS256, IX86_BUILTIN_ORPD256,
2707         IX86_BUILTIN_ORPS256, IX86_BUILTIN_SUBPD256,
2708         IX86_BUILTIN_SUBPS256, IX86_BUILTIN_XORPD256,
2709         IX86_BUILTIN_XORPS256, IX86_BUILTIN_VPERMILVARPD,
2710         IX86_BUILTIN_VPERMILVARPS, IX86_BUILTIN_VPERMILVARPD256,
2711         IX86_BUILTIN_VPERMILVARPS256, IX86_BUILTIN_BLENDPD256,
2712         IX86_BUILTIN_BLENDPS256, IX86_BUILTIN_BLENDVPD256,
2713         IX86_BUILTIN_BLENDVPS256, IX86_BUILTIN_DPPS256,
2714         IX86_BUILTIN_SHUFPD256, IX86_BUILTIN_SHUFPS256,
2715         IX86_BUILTIN_CMPSD, IX86_BUILTIN_CMPSS, IX86_BUILTIN_CMPPD,
2716         IX86_BUILTIN_CMPPS,
2717         IX86_BUILTIN_CMPPD256,IX86_BUILTIN_CMPPS256,
2718         IX86_BUILTIN_EXTRACTF128PD256, IX86_BUILTIN_EXTRACTF128PS256,
2719         IX86_BUILTIN_EXTRACTF128SI256, IX86_BUILTIN_CVTDQ2PD256,
2720         IX86_BUILTIN_CVTDQ2PS256, IX86_BUILTIN_CVTPD2PS256,
2721         IX86_BUILTIN_CVTPS2DQ256, IX86_BUILTIN_CVTPS2PD256,
2722         IX86_BUILTIN_CVTTPD2DQ256, IX86_BUILTIN_CVTPD2DQ256,
2723         IX86_BUILTIN_CVTTPS2DQ256, IX86_BUILTIN_VPERM2F128PD256,
2724         IX86_BUILTIN_VPERM2F128PS256, IX86_BUILTIN_VPERM2F128SI256,
2725         IX86_BUILTIN_VPERMILPD, IX86_BUILTIN_VPERMILPS,
2726         IX86_BUILTIN_VPERMILPD256, IX86_BUILTIN_VPERMILPS256,
2727         IX86_BUILTIN_VPERMIL2PD, IX86_BUILTIN_VPERMILPS,
2728         IX86_BUILTIN_VPERMILPD256, IX86_BUILTIN_VPERMILPS256,
2729         IX86_BUILTIN_VPERMIL2PD, IX86_BUILTIN_VPERMIL2PS,
2730         IX86_BUILTIN_VPERMIL2PD256, IX86_BUILTIN_VPERMIL2PS256,
2731         IX86_BUILTIN_VINSERTF128PD256, IX86_BUILTIN_VINSERTF128PS256,
2732         IX86_BUILTIN_VINSERTF128SI256, IX86_BUILTIN_MOVSHDUP256,
2733         IX86_BUILTIN_MOVSLDUP256, IX86_BUILTIN_MOVDDUP256,
2734         IX86_BUILTIN_SQRTPD256, IX86_BUILTIN_SQRTPS256,
2735         IX86_BUILTIN_SQRTPS_NR256, IX86_BUILTIN_RSQRTPS256,
2736         IX86_BUILTIN_RSQRTPS_NR256, IX86_BUILTIN_RCPPS256,
2737         IX86_BUILTIN_ROUNDPD256, IX86_BUILTIN_ROUNDPS256,
2738         IX86_BUILTIN_UNPCKHPD256, IX86_BUILTIN_UNPCKLPD256,
2739         IX86_BUILTIN_UNPCKHPS256, IX86_BUILTIN_UNPCKLPS256,
2740         IX86_BUILTIN_SI256_SI, IX86_BUILTIN_PS256_PS,
2741         IX86_BUILTIN_PD256_PD, IX86_BUILTIN_SI_SI256,
2742         IX86_BUILTIN_PS_PS256, IX86_BUILTIN_PD_PD256,
2743         IX86_BUILTIN_VTESTZPD, IX86_BUILTIN_VTESTCPD,
2744         IX86_BUILTIN_VTESTNZCPD, IX86_BUILTIN_VTESTZPS,
2745         IX86_BUILTIN_VTESTCPS, IX86_BUILTIN_VTESTNZCPS,
2746         IX86_BUILTIN_VTESTZPD256, IX86_BUILTIN_VTESTCPD256,
2747         IX86_BUILTIN_VTESTNZCPD256, IX86_BUILTIN_VTESTZPS256,
2748         IX86_BUILTIN_VTESTCPS256, IX86_BUILTIN_VTESTNZCPS256,
2749         IX86_BUILTIN_PTESTZ256, IX86_BUILTIN_PTESTC256,
2750         IX86_BUILTIN_PTESTNZC256, IX86_BUILTIN_MOVMSKPD256 and
2751         IX86_BUILTIN_MOVMSKPS256.
2752         (ix86_init_mmx_sse_builtins): Support AVX builtins.
2753         (ix86_expand_args_builtin): Likewise.
2754         (ix86_expand_special_args_builtin): Likewise.
2755         (ix86_hard_regno_mode_ok): Handle AVX modes.
2756         (ix86_expand_vector_init_duplicate): Likewise.
2757         (ix86_expand_vector_init_one_nonzero): Likewise.
2758         (ix86_expand_vector_init_one_var): Likewise.
2759         (ix86_expand_vector_init_concat): Likewise.
2760         (ix86_expand_vector_init_general): Likewise.
2761         (ix86_expand_vector_set): Likewise.
2762         (ix86_vector_mode_supported_p): Likewise.
2763         (x86_extended_reg_mentioned_p): Check INSN_P before using
2764         PATTERN.
2765
2766         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
2767         OPTION_MASK_ISA_AVX and OPTION_MASK_ISA_FMA.
2768
2769         * config/i386/i386.h (TARGET_AVX): New.
2770         (TARGET_FMA): Likewise.
2771         (TARGET_CPU_CPP_BUILTINS): Handle TARGET_AVX and TARGET_FMA.
2772         (BIGGEST_ALIGNMENT): Set to 256 for TARGET_AVX.
2773         (VALID_AVX256_REG_MODE): New.
2774         (AVX256_VEC_FLOAT_MODE_P): Likewise.
2775         (AVX_FLOAT_MODE_P): Likewise.
2776         (AVX128_VEC_FLOAT_MODE_P): Likewise.
2777         (AVX256_VEC_FLOAT_MODE_P): Likewise.
2778         (AVX_VEC_FLOAT_MODE_P): Likewise.
2779         (ASM_OUTPUT_AVX_PREFIX): Likewise.
2780         (ASM_OUTPUT_OPCODE): Likewise.
2781         (UNITS_PER_SIMD_WORD): Add a FIXME for 32byte vectorizer
2782         support.
2783         (SSE_REG_MODE_P): Allow 256bit vector modes.
2784         (ix86_args): Add a warn_avx field.
2785
2786         * config/i386/i386.md (UNSPEC_PCMP): New.
2787         (UNSPEC_VPERMIL): Likewise.
2788         (UNSPEC_VPERMIL2): Likewise.
2789         (UNSPEC_VPERMIL2F128): Likewise.
2790         (UNSPEC_MASKLOAD): Likewise.
2791         (UNSPEC_MASKSTORE): Likewise.
2792         (UNSPEC_CAST): Likewise.
2793         (UNSPEC_VTESTP): Likewise.
2794         (UNSPECV_VZEROALL): Likewise.
2795         (UNSPECV_VZEROUPPER): Likewise.
2796         (XMM0_REG): Likewise.
2797         (XMM1_REG): Likewise.
2798         (XMM2_REG): Likewise.
2799         (XMM3_REG): Likewise.
2800         (XMM4_REG): Likewise.
2801         (XMM5_REG): Likewise.
2802         (XMM6_REG): Likewise.
2803         (XMM8_REG): Likewise.
2804         (XMM9_REG): Likewise.
2805         (XMM10_REG): Likewise.
2806         (XMM11_REG): Likewise.
2807         (XMM12_REG): Likewise.
2808         (XMM13_REG): Likewise.
2809         (XMM14_REG): Likewise.
2810         (XMM15_REG): Likewise.
2811         (prefix): Likewise.
2812         (prefix_vex_imm8): Likewise.
2813         (prefix_vex_w): Likewise.
2814         (length_vex): Likewise.
2815         (maxmin): Likewise.
2816         (movoi): Likewise.
2817         (*avx_ashlti3): Likewise.
2818         (*avx_lshrti3): Likewise.
2819         (*avx_setcc<mode>): Likewise.
2820         (*fop_<mode>_comm_mixed_avx): Likewise.
2821         (*fop_<mode>_comm_avx): Likewise.
2822         (*fop_<mode>_1_mixed_avx): Likewise.
2823         (*fop_<mode>_1_avx): Likewise.
2824         (*avx_<code><mode>3): Likewise.
2825         (*avx_ieee_smin<mode>3): Likewise.
2826         (*avx_ieee_smax<mode>3): Likewise.
2827         (mode): Add OI, V8SF and V4DF.
2828         (length): Support VEX prefix.
2829         (*cmpfp_i_mixed): Set prefix attribute.
2830         (*cmpfp_i_sse): Likewise.
2831         (*cmpfp_iu_mixed): Likewise.
2832         (*cmpfp_iu_sse): Likewise.
2833         (*movsi_1): Support AVX.
2834         (*movdi_2): Likewise.
2835         (*movdi_1_rex64): Likewise.
2836         (*movti_internal): Likewise.
2837         (*movti_rex64): Likewise.
2838         (*movsf_1): Likewise.
2839         (*movdf_nointeger): Likewise.
2840         (*movdf_integer_rex64): Likewise.
2841         (*movtf_internal): Likewise.
2842         (zero_extendsidi2_32): Likewise.
2843         (zero_extendsidi2_rex64): Likewise.
2844         (*extendsfdf2_mixed): Likewise.
2845         (*extendsfdf2_sse): Likewise.
2846         (*truncdfsf_fast_mixed): Likewise.
2847         (*truncdfsf_fast_sse): Likewise.
2848         (*truncdfsf_mixed): Likewise.
2849         (fix_trunc<mode>di_sse): Likewise.
2850         (fix_trunc<mode>si_sse): Likewise.
2851         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit): Likewise.
2852         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit): Likewise.
2853         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit): Likewise.
2854         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit): Likewise.
2855         (*rcpsf2_sse): Likewise.
2856         (*rsqrtsf2_sse): Likewise.
2857         (*sqrt<mode>2_sse): Likewise.
2858         (sse4_1_round<mode>2): Likewise.
2859         (*sse_prologue_save_insn): Disallow REX prefix for AVX.
2860         Support AVX.  Set length attribute properly for AVX.
2861
2862         * config/i386/i386-modes.def (VECTOR_MODES (INT, 32)): New.
2863         (VECTOR_MODES (FLOAT, 32)): Likewise.
2864         (VECTOR_MODE (INT, DI, 8)): Likewise.
2865         (VECTOR_MODE (INT, HI, 32)): Likewise.
2866         (VECTOR_MODE (INT, QI, 64)): Likewise.
2867         (VECTOR_MODE (FLOAT, DF, 8)): Likewise.
2868         (VECTOR_MODE (FLOAT, SF, 16)): Likewise.
2869         (VECTOR_MODE (INT, DI, 4)): Removed.
2870         (VECTOR_MODE (INT, SI, 8)): Likewise.
2871         (VECTOR_MODE (INT, HI, 16)): Likewise.
2872         (VECTOR_MODE (INT, QI, 32)): Likewise.
2873         (VECTOR_MODE (FLOAT, SF, 8)): Likewise.
2874         (INT_MODE (OI, 32)): Likewise.
2875
2876         * config/i386/i386.opt (mavx): New.
2877         (mfma): Likewise.
2878
2879         * config/i386/i386-protos.h (ix86_attr_length_vex_default): New.
2880
2881         * config/i386/mmx.md (*mov<mode>_internal_rex64): Support AVX.
2882         (*mov<mode>_internal_avx): New.
2883         (*movv2sf_internal_rex64_avx): Likewise.
2884         (*movv2sf_internal_avx): Likewise.
2885
2886         * config/i386/predicates.md (const_4_to_5_operand): New.
2887         (const_6_to_7_operand): Likewise.
2888         (const_8_to_11_operand): Likewise.
2889         (const_12_to_15_operand): Likewise.
2890         (avx_comparison_float_operator): Likewise.
2891
2892         * config/i386/sse.md (AVX256MODEI): New.
2893         (AVX256MODE): Likewise.
2894         (AVXMODEQI): Likewise.
2895         (AVXMODE): Likewise.
2896         (AVX256MODEF2P): Likewise.
2897         (AVX256MODE2P): Likewise.
2898         (AVX256MODE4P): Likewise.
2899         (AVX256MODE8P): Likewise.
2900         (AVXMODEF2P): Likewise.
2901         (AVXMODEF4P): Likewise.
2902         (AVXMODEDCVTDQ2PS): Likewise.
2903         (AVXMODEDCVTPS2DQ): Likewise.
2904         (avxvecmode): Likewise.
2905         (avxvecpsmode): Likewise.
2906         (avxhalfvecmode): Likewise.
2907         (avxscalarmode): Likewise.
2908         (avxcvtvecmode): Likewise.
2909         (avxpermvecmode): Likewise.
2910         (avxmodesuffixf2c): Likewise.
2911         (avxmodesuffixp): Likewise.
2912         (avxmodesuffixs): Likewise.
2913         (avxmodesuffix): Likewise.
2914         (vpermilbits): Likewise.
2915         (pinsrbits): Likewise.
2916         (mov<mode>): Likewise.
2917         (*mov<mode>_internal): Likewise.
2918         (push<mode>1): Likewise.
2919         (movmisalign<mode>): Likewise.
2920         (avx_movup<avxmodesuffixf2c><avxmodesuffix>): Likewise.
2921         (avx_movdqu<avxmodesuffix>): Likewise.
2922         (avx_lddqu<avxmodesuffix>): Likewise.
2923         (<plusminus_insn><mode>3): Likewise.
2924         (*avx_<plusminus_insn><mode>3): Likewise.
2925         (*avx_vm<plusminus_insn><mode>3): Likewise.
2926         (mul<mode>3): Likewise.
2927         (*avx_mul<mode>3): Likewise.
2928         (*avx_vmmul<mode>3): Likewise.
2929         (divv8sf3): Likewise.
2930         (divv4df3): Likewise.
2931         (avx_div<mode>3): Likewise.
2932         (*avx_div<mode>3): Likewise.
2933         (*avx_vmdiv<mode>3): Likewise.
2934         (avx_rcpv8sf2): Likewise.
2935         (*avx_vmrcpv4sf2): Likewise.
2936         (sqrtv8sf2): Likewise.
2937         (avx_sqrtv8sf2): Likewise.
2938         (*avx_vmsqrt<mode>2): Likewise.
2939         (rsqrtv8sf2): Likewise.
2940         (avx_rsqrtv8sf2): Likewise.
2941         (*avx_vmrsqrtv4sf2): Likewise.
2942         (<code><mode>3): Likewise.
2943         (*avx_<code><mode>3_finite): Likewise.
2944         (*avx_<code><mode>3): Likewise.
2945         (*avx_vm<code><mode>3): Likewise.
2946         (*avx_ieee_smin<mode>3): Likewise.
2947         (*avx_ieee_smax<mode>3): Likewise.
2948         (avx_addsubv8sf3): Likewise.
2949         (avx_addsubv4df3): Likewise.
2950         (*avx_addsubv4sf3): Likewise.
2951         (*avx_addsubv2df3): Likewise.
2952         (avx_h<plusminus_insn>v4df3): Likewise.
2953         (avx_h<plusminus_insn>v8sf3): Likewise.
2954         (*avx_h<plusminus_insn>v4sf3): Likewise.
2955         (*avx_h<plusminus_insn>v2df3): Likewise.
2956         (avx_cmpp<avxmodesuffixf2c><mode>3): Likewise.
2957         (avx_cmps<ssemodesuffixf2c><mode>3): Likewise.
2958         (*avx_maskcmp<mode>3): Likewise.
2959         (avx_nand<mode>3): Likewise.
2960         (*avx_<code><mode>3): Likewise.
2961         (*avx_nand<mode>3): Likewise.
2962         (*avx_<code><mode>3): Likewise.
2963         (*avx_cvtsi2ss): Likewise.
2964         (*avx_cvtsi2ssq): Likewise.
2965         (*avx_cvtsi2sd): Likewise.
2966         (*avx_cvtsi2sdq): Likewise.
2967         (*avx_cvtsd2ss): Likewise.
2968         (avx_cvtss2sd): Likewise.
2969         (avx_cvtdq2ps<avxmodesuffix>): Likewise.
2970         (avx_cvtps2dq<avxmodesuffix>): Likewise.
2971         (avx_cvttps2dq<avxmodesuffix>): Likewise.
2972         (*avx_cvtsi2sd): Likewise.
2973         (*avx_cvtsi2sdq): Likewise.
2974         (avx_cvtdq2pd256): Likewise.
2975         (avx_cvtpd2dq256): Likewise.
2976         (avx_cvttpd2dq256): Likewise.
2977         (*avx_cvtsd2ss): Likewise.
2978         (*avx_cvtss2sd): Likewise.
2979         (avx_cvtpd2ps256): Likewise.
2980         (avx_cvtps2pd256): Likewise.
2981         (*avx_movhlps): Likewise.
2982         (*avx_movlhps): Likewise.
2983         (avx_unpckhps256): Likewise.
2984         (*avx_unpckhps): Likewise.
2985         (avx_unpcklps256): Likewise.
2986         (*avx_unpcklps): Likewise.
2987         (avx_movshdup256): Likewise.
2988         (avx_movsldup256): Likewise.
2989         (avx_shufps256): Likewise.
2990         (avx_shufps256_1): Likewise.
2991         (*avx_shufps_<mode>): Likewise.
2992         (*avx_loadhps): Likewise.
2993         (*avx_storelps): Likewise.
2994         (*avx_loadlps): Likewise.
2995         (*avx_movss): Likewise.
2996         (*vec_dupv4sf_avx): Likewise.
2997         (*vec_concatv2sf_avx): Likewise.
2998         (*vec_concatv4sf_avx): Likewise.
2999         (*vec_setv4sf_0_avx): Likewise.
3000         (*vec_setv4sf_avx): Likewise.
3001         (*avx_insertps): Likewise.
3002         (avx_vextractf128<mode>): Likewise.
3003         (vec_extract_lo_<mode>): Likewise.
3004         (vec_extract_hi_<mode>): Likewise.
3005         (vec_extract_lo_<mode>): Likewise.
3006         (vec_extract_hi_<mode>): Likewise.
3007         (vec_extract_lo_v16hi): Likewise.
3008         (vec_extract_hi_v16hi): Likewise.
3009         (vec_extract_lo_v32qi): Likewise.
3010         (vec_extract_hi_v32qi): Likewise.
3011         (avx_unpckhpd256): Likewise.
3012         (*avx_unpckhpd): Likewise.
3013         (avx_movddup256): Likewise.
3014         (*avx_movddup): Likewise.
3015         (avx_unpcklpd256): Likewise.
3016         (*avx_unpcklpd): Likewise.
3017         (avx_shufpd256): Likewise.
3018         (avx_shufpd256_1): Likewise.
3019         (*avx_punpckhqdq): Likewise.
3020         (*avx_punpcklqdq): Likewise.
3021         (*avx_shufpd_<mode>): Likewise.
3022         (*avx_storehpd): Likewise.
3023         (*avx_loadhpd): Likewise.
3024         (*avx_loadlpd): Likewise.
3025         (*avx_movsd): Likewise.
3026         (*vec_concatv2df_avx): Likewise.
3027         (*avx_<plusminus_insn><mode>3): Likewise.
3028         (*avx_<plusminus_insn><mode>3): Likewise.
3029         (*avx_mulv8hi3): Likewise.
3030         (*avxv8hi3_highpart): Likewise.
3031         (*avx_umulv8hi3_highpart): Likewise.
3032         (*avx_umulv2siv2di3): Likewise.
3033         (*avx_mulv2siv2di3): Likewise.
3034         (*avx_pmaddwd): Likewise.
3035         (*avx_mulv4si3): Likewise.
3036         (*avx_ashr<mode>3): Likewise.
3037         (*avx_lshr<mode>3): Likewise.
3038         (*avx_ashl<mode>3): Likewise.
3039         (*avx_<code><mode>3): Likewise.
3040         (*avx_eq<mode>3): Likewise.
3041         (*avx_gt<mode>3): Likewise.
3042         (*avx_nand<mode>3): Likewise.
3043         (*avx_nand<mode>3): Likewise.
3044         (*avx_<code><mode>3): Likewise.
3045         (*avx_<code><mode>3): Likewise.
3046         (*avx_packsswb): Likewise.
3047         (*avx_packssdw): Likewise.
3048         (*avx_packuswb): Likewise.
3049         (*avx_punpckhbw): Likewise.
3050         (*avx_punpcklbw): Likewise.
3051         (*avx_punpckhwd): Likewise.
3052         (*avx_punpcklwd): Likewise.
3053         (*avx_punpckhdq): Likewise.
3054         (*avx_punpckldq): Likewise.
3055         (*avx_pinsr<avxmodesuffixs>): Likewise.
3056         (*avx_pinsrq): Likewise.
3057         (*avx_loadld): Likewise.
3058         (*vec_extractv2di_1_rex64_avx): Likewise.
3059         (*vec_extractv2di_1_avx): Likewise.
3060         (*vec_dupv2di_avx): Likewise.
3061         (*vec_concatv2si_avx): Likewise.
3062         (*vec_concatv4si_1_avx): Likewise.
3063         (*vec_concatv2di_avx): Likewise.
3064         (*vec_concatv2di_rex64_avx): Likewise.
3065         (*avx_uavgv16qi3): Likewise.
3066         (*avx_uavgv8hi3): Likewise.
3067         (*avx_psadbw): Likewise.
3068         (avx_movmskp<avxmodesuffixf2c>256): Likewise.
3069         (*avx_phaddwv8hi3): Likewise.
3070         (*avx_phadddv4si3): Likewise.
3071         (*avx_phaddswv8hi3): Likewise.
3072         (*avx_phsubwv8hi3): Likewise.
3073         (*avx_phsubdv4si3): Likewise.
3074         (*avx_phsubswv8hi3): Likewise.
3075         (*avx_pmaddubsw128): Likewise.
3076         (*avx_pmulhrswv8hi3): Likewise.
3077         (*avx_pshufbv16qi3): Likewise.
3078         (*avx_psign<mode>3): Likewise.
3079         (*avx_palignrti): Likewise.
3080         (avx_blendp<avxmodesuffixf2c><avxmodesuffix>): Likewise.
3081         (avx_blendvp<avxmodesuffixf2c><avxmodesuffix>): Likewise.
3082         (avx_dpp<avxmodesuffixf2c><avxmodesuffix>): Likewise.
3083         (*avx_mpsadbw): Likewise.
3084         (*avx_packusdw): Likewise.
3085         (*avx_pblendvb): Likewise.
3086         (*avx_pblendw): Likewise.
3087         (avx_vtestp<avxmodesuffixf2c><avxmodesuffix>): Likewise.
3088         (avx_ptest256): Likewise.
3089         (avx_roundp<avxmodesuffixf2c>256): Likewise.
3090         (*avx_rounds<ssemodesuffixf2c>): Likewise.
3091         (*avx_aesenc): Likewise.
3092         (*avx_aesenclast): Likewise.
3093         (*avx_aesdec): Likewise.
3094         (*avx_aesdeclast): Likewise.
3095         (avx_vzeroupper): Likewise.
3096         (avx_vzeroupper_rex64): Likewise.
3097         (avx_vpermil<mode>): Likewise.
3098         (avx_vpermilvar<mode>3): Likewise.
3099         (avx_vpermil2<mode>3): Likewise.
3100         (avx_vperm2f128<mode>3): Likewise.
3101         (avx_vbroadcasts<avxmodesuffixf2c><avxmodesuffix>): Likewise.
3102         (avx_vbroadcastss256): Likewise.
3103         (avx_vbroadcastf128_p<avxmodesuffixf2c>256): Likewise.
3104         (avx_vinsertf128<mode>): Likewise.
3105         (vec_set_lo_<mode>): Likewise.
3106         (vec_set_hi_<mode>): Likewise.
3107         (vec_set_lo_<mode>): Likewise.
3108         (vec_set_hi_<mode>): Likewise.
3109         (vec_set_lo_v16hi): Likewise.
3110         (vec_set_hi_v16hi): Likewise.
3111         (vec_set_lo_v32qi): Likewise.
3112         (vec_set_hi_v32qi): Likewise.
3113         (avx_maskloadp<avxmodesuffixf2c><avxmodesuffix>): Likewise.
3114         (avx_maskstorep<avxmodesuffixf2c><avxmodesuffix>): Likewise.
3115         (avx_<avxmodesuffixp><avxmodesuffix>_<avxmodesuffixp>): Likewise.
3116         (avx_<avxmodesuffixp>_<avxmodesuffixp><avxmodesuffix>): Likewise.
3117         (vec_init<mode>): Likewise.
3118         (*vec_concat<mode>_avx): Likewise.
3119         (blendbits): Support V8SF and V4DF.
3120         (sse2_movq128): Support AVX.
3121         (<sse>_movnt<mode>): Likewise.
3122         (sse2_movntv2di): Likewise.
3123         (sse_rcpv4sf2): Likewise.
3124         (sse_sqrtv4sf2): Likewise.
3125         (sse_rsqrtv4sf2): Likewise.
3126         (<sse>_comi): Likewise.
3127         (<sse>_ucomi): Likewise.
3128         (sse_cvtss2si): Likewise.
3129         (sse_cvtss2si_2): Likewise.
3130         (sse_cvtss2siq): Likewise.
3131         (sse_cvtss2siq_2): Likewise.
3132         (sse_cvttss2si): Likewise.
3133         (sse_cvttss2siq): Likewise.
3134         (sse2_cvtsd2si): Likewise.
3135         (sse2_cvtsd2si_2): Likewise.
3136         (sse2_cvtsd2siq): Likewise.
3137         (sse2_cvtsd2siq_2): Likewise.
3138         (sse2_cvttsd2si): Likewise.
3139         (sse2_cvttsd2siq): Likewise.
3140         (sse2_cvtdq2pd): Likewise.
3141         (*sse2_cvtpd2dq): Likewise.
3142         (*sse2_cvttpd2dq): Likewise.
3143         (*sse2_cvtpd2ps): Likewise.
3144         (sse2_cvtps2pd): Likewise.
3145         (sse3_movshdup): Likewise.
3146         (sse3_movsldup): Likewise.
3147         (sse_storehps): Likewise.
3148         (*sse4_1_extractps): Likewise.
3149         (sse2_storelpd): Likewise.
3150         (vec_dupv2df_sse3): Likewise.
3151         (*vec_concatv2df_sse3): Likewise.
3152         (*sse4_1_pextrb): Likewise.
3153         (*sse4_1_pextrb_memory): Likewise.
3154         (*sse2_pextrw): Likewise.
3155         (*sse4_1_pextrw_memory): Likewise.
3156         (*sse4_1_pextrd): Likewise.
3157         (*sse4_1_pextrq): Likewise.
3158         (sse2_pshufd_1): Likewise.
3159         (sse2_pshuflw_1): Likewise.
3160         (sse2_pshufhw_1): Likewise.
3161         (*sse2_storeq_rex64): Likewise.
3162         (*vec_dupv4si): Likewise.
3163         (<sse>_movmskp<ssemodesuffixf2c>): Likewise.
3164         (sse2_pmovmskb): Likewise.
3165         (*sse2_maskmovdqu): Likewise.
3166         (*sse2_maskmovdqu_rex64): Likewise.
3167         (sse_ldmxcsr): Likewise.
3168         (sse_stmxcsr): Likewise.
3169         (abs<mode>2): Likewise.
3170         (sse4_1_movntdqa): Likewise.
3171         (sse4_1_phminposuw): Likewise.
3172         (sse4_1_extendv8qiv8hi2): Likewise.
3173         (*sse4_1_extendv8qiv8hi2): Likewise.
3174         (sse4_1_extendv4qiv4si2): Likewise.
3175         (*sse4_1_extendv4qiv4si2): Likewise.
3176         (sse4_1_extendv2qiv2di2): Likewise.
3177         (*sse4_1_extendv2qiv2di2): Likewise.
3178         (sse4_1_extendv4hiv4si2): Likewise.
3179         (*sse4_1_extendv4hiv4si2): Likewise.
3180         (sse4_1_extendv2hiv2di2): Likewise.
3181         (*sse4_1_extendv2hiv2di2): Likewise.
3182         (sse4_1_extendv2siv2di2): Likewise.
3183         (*sse4_1_extendv2siv2di2): Likewise.
3184         (sse4_1_zero_extendv8qiv8hi2): Likewise.
3185         (*sse4_1_zero_extendv8qiv8hi2): Likewise.
3186         (sse4_1_zero_extendv4qiv4si2): Likewise.
3187         (*sse4_1_zero_extendv4qiv4si2): Likewise.
3188         (sse4_1_zero_extendv2qiv2di2): Likewise.
3189         (*sse4_1_zero_extendv2qiv2di2): Likewise.
3190         (sse4_1_zero_extendv4hiv4si2): Likewise.
3191         (*sse4_1_zero_extendv4hiv4si2): Likewise.
3192         (sse4_1_zero_extendv2hiv2di2): Likewise.
3193         (*sse4_1_zero_extendv2hiv2di2): Likewise.
3194         (sse4_1_zero_extendv2siv2di2): Likewise.
3195         (*sse4_1_zero_extendv2siv2di2): Likewise.
3196         (sse4_1_ptest): Likewise.
3197         (sse4_1_roundp<ssemodesuffixf2c>): Likewise.
3198         (sse4_2_pcmpestri): Likewise.
3199         (sse4_2_pcmpestrm): Likewise.
3200         (sse4_2_pcmpistri): Likewise.
3201         (sse4_2_pcmpistrm): Likewise.
3202         (aesimc): Likewise.
3203         (aeskeygenassist): Likewise.
3204
3205 2008-08-28  Uros Bizjak  <ubizjak@gmail.com>
3206
3207         * config/i386/predicates.md (vzeroall_operation): New.
3208
3209         * config/i386/sse.md (avx_vzeroall): New.
3210         (*avx_vzeroall): Likewise.
3211
3212 2008-08-28  Paul Brook  <paul@codesourcery.com>
3213             Mark Shinwell  <shinwell@codesourcery.com>
3214             Richard Earnshaw  <richard.earnshaw@arm.com>
3215
3216         * config/arm/arm.c (TARGET_MAX_ANCHOR_OFFSET): New.
3217         (TARGET_MIN_ANCHOR_OFFSET): New.
3218         (arm_override_options): Set correct anchor ranges for Thumb-1
3219         and Thumb-2 if required.
3220         (legitimize_pic_address): Handle case involving a TLS symbol
3221         reference with an addend.
3222         (arm_optimization_options): Enable section anchors at -O1 and
3223         above.
3224         * config/arm/arm.h (OPTIMIZATION_OPTIONS): New.
3225         * config/arm/arm-protos.h (arm_optimization_options): New.
3226
3227 2008-08-28  Nick Clifton  <nickc@redhat.com>
3228
3229         * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Define.
3230         * config/stormy16/stormy16.md (zero_extendqihi2): Fix length
3231         attribute.
3232
3233         * config/v850/v850.h (IRA_COVER_CLASSES): Define.
3234         * config/v850/v850.md (return): Remove frame size restriction.
3235
3236         * config/mcore/mcore.h (IRA_COVER_CLASSES): Define.
3237
3238         * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Define.
3239
3240         * config/fr30/fr30.h (IRA_COVER_CLASSES): Define.
3241
3242         * config/m32r/m32r.h (IRA_COVER_CLASSES): Define.
3243
3244 2008-08-28  Paul Brook  <paul@codesourcery.com>
3245
3246         * config/arm/vfp11.md: Update license notice.
3247         * config/arm/cortex-r4.md: Ditto.
3248
3249 2008-08-28  Richard Guenther  <rguenther@suse.de>
3250
3251         PR tree-optimization/37207
3252         * tree-ssa-ifcombine.c (recognize_single_bit_test): Fix
3253         tuplification bug.
3254
3255 2008-08-28  Dodji Seketeli  <dodji@redhat.com>
3256
3257         PR c++/36741
3258         * tree.c (int_fits_type_p): Don't forget unsigned integers
3259           of type sizetype which higher end word equals -1.
3260
3261 2008-08-28  Ira Rosen  <irar@il.ibm.com>
3262
3263         * target.h (struct vectorize): Add new target builtin.
3264         * tree-vectorizer.c (destroy_loop_vec_info): Call
3265         vect_free_slp_instance instead of vect_free_slp_node.
3266         * tree-vectorizer.h (enum slp_load_perm_type): New.
3267         (struct _slp_instance): Add new fields.
3268         (SLP_INSTANCE_LOAD_PERMUTATION): New.
3269         (SLP_INSTANCE_LOADS): New.
3270         (vect_free_slp_tree): Remove.
3271         (vect_free_slp_instance): Declare.
3272         (SLP_TREE_LOADS_PERM_TYPE, TARG_VEC_PERMUTE_COST): New.
3273         (vectorizable_load): Add argument.
3274         (vect_transform_slp_perm_load): New.
3275         * tree-vect-analyze.c (vect_analyze_operations): Add an argument to
3276         vectorizable_load.
3277         (vect_get_place_in_interleaving_chain): New function.
3278         (vect_free_slp_tree): Make static.
3279         (vect_free_slp_instance): New function.
3280         (vect_build_slp_tree): Add new arguments. Allow load permutations and
3281         collect the load location in the interleaving chain.
3282         (vect_supported_slp_permutation_p): New function.
3283         (vect_supported_load_permutation_p): Likewise.
3284         (vect_analyze_slp_instance): In case of loads permutation, call
3285         vect_supported_load_permutation_p to check that the permutation is
3286         supported.
3287         * target-def.h (TARGET_VECTORIZE_BUILTIN_VEC_PERM): New.
3288         * tree-vect-transform.c (vect_transform_stmt): Add new argument.
3289         (vect_create_mask_and_perm): New function.
3290         (vect_get_mask_element, vect_transform_slp_perm_load): Likewise.
3291         (vectorizable_load): Add an argument. Don't keep the created vectors
3292         statements in the node if permutation is required. Call
3293         vect_transform_slp_perm_load to generate the permutation.
3294         (vect_transform_stmt): Add new argument. Call vectorizable_load with
3295         additional argument.
3296         (vect_schedule_slp_instance): In case of loads permutation, allocate
3297         vectorized statements structure for all the related SLP nodes. Call
3298         vect_transform_stmt with addditional argument.
3299         (vect_transform_loop): Call vect_transform_stmt with correct arguments.
3300         * config/spu/spu.c (spu_builtin_vec_perm): New.
3301         (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Redefine.
3302         * config/spu/spu.h (TARG_VEC_PERMUTE_COS): Define.
3303         * config/rs6000/rs6000.c (rs6000_builtin_vec_perm): New.
3304         (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Redefine.
3305
3306 2008-08-28  Chris Fairles  <chris.fairles@gmail.com>
3307
3308         * gthr-posix.h (__gthread_create,  __gthread_join, __gthread_detach,
3309         __gthread_mutex_timed_lock, __gthread_recursive_mutex_timed_lock,
3310         __gthread_cond_signal, __gthread_cond_timedwait,
3311         __gthread_cond_timedwait_recursive): New functions.
3312         * gthr-posix.c (pthread_mutex_timedlock, pthread_cond_timedwait):
3313         Likewise.
3314         * gthr.h: Comment on defining __GTHREADS_CXX0X macro in conforming
3315         thread interfaces.
3316
3317 2008-08-28  Richard Guenther  <rguenther@suse.de>
3318
3319         PR middle-end/37005
3320         * fold-const.c (maybe_canonicalize_comparison_1): Require
3321         undefined overflow only for canonicalizing A +- CST cmp CST.
3322         Make sure to not generate new constants that are not inside
3323         their TYPE_MIN/MAX_VALUE range.
3324         (maybe_canonicalize_comparison): Remove undefined overflow
3325         checking from here.
3326         (fold_binary): Remove now duplicate folding.
3327
3328 2008-08-27  Paolo Carlini  <paolo.carlini@oracle.com>
3329
3330         * c-typeck.c (convert_for_assignment): Adjust WARN_FOR_ASSIGNMENT
3331         use not updated in the last change.
3332
3333 2008-08-27  Kaz Kojima  <kkojima@gcc.gnu.org>
3334
3335         * config/sh/sh.h (REG_CLASS_CONTENTS): Drop fr32 from FPUL_REGS.
3336         (IRA_COVER_CLASSES): Add FPUL_REGS.
3337
3338 2008-08-27  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
3339
3340         PR 37217
3341         * c-common.c (conversion_warning): Check for null operands.
3342
3343 2008-08-27  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
3344
3345         PR c/31673
3346         * c-decl.c (check_for_loop_decls): Improve error message. Give
3347         hint.
3348
3349 2008-08-27  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
3350
3351         PR c/37186
3352         * c-typeck.c (WARN_FOR_ASSIGNMENT): Add OPT parameter.
3353         (convert_for_assignment): Pass corrent OPT_W* parameter to
3354         WARN_FOR_ASSIGNMENT.
3355
3356 2008-08-27  Paolo Carlini  <paolo.carlini@oracle.com>
3357
3358         PR c++/35321
3359         * c-common.c (fold_offsetof_1): Handle TARGET_EXPR like CALL_EXPR.
3360
3361 2008-08-27  Paul Brook  <paul@codesourcery.com>
3362
3363         * config.gcc: Loosen checks for arm uclinux eabi targets.
3364
3365 2008-08-27  Paul Brook  <paul@codesourcery.com>
3366
3367         * config/arm/t-arm-coff (LIB1ASMFUNCS): Add missing undescrore on
3368         _clzsi2.
3369         * config/arm/t-linux (LIB1ASMFUNCS): Ditto.
3370
3371 2008-08-26  Douglas Gregor  <doug.gregor@gmail.com>
3372
3373         * c-common.c (do_switch_warnings): Look through the CONST_DECLs in
3374         the enumerators of an ENUMERAL_TYPE.
3375         * dbxout.c (dbxout_type): Ditto.
3376
3377 2008-08-26  Andrew Pinski  <andrew_pinski@playstation.sony.com>
3378
3379         PR rtl-opt/37219
3380         * fwprop.c (fwprop): Check that the loop_father is the outer loop.
3381         (fwprop_addr): Check that the loop_father is not the outer loop.
3382
3383 2008-08-26  Paul Brook  <paul@codesourcery.com>
3384
3385         * config/arm/vfp.md: Document fmul{s,d} and fmac{s,d} types.
3386         Remove documentation entry for fmul type.
3387         Use fmuls to annotate single-precision multiplication patterns,
3388         fmuld to annotate double-precision multiplication patterns,
3389         fmacs to annotate single-precision multiply-accumulate patterns
3390         and fmacd to annotate double-precision multiply-accumulate patterns.
3391         * config/arm/vfp11.md: Update reservations accordingly.
3392         * config/arm/arm.md: Note that certain values of the "type"
3393         attribute are documented in vfp.md.
3394         * config/arm/arm1020e.md: Remove out of date duplicate comment.
3395         (v10_cvt): Use new fmul types.
3396
3397 2008-08-26  Paul Brook   <paul@codesourcery.com>
3398
3399         * config/arm/vfp.md: Move pipeline description for VFP11 to...
3400         * config/arm/vfp11.md: ...here.  New.
3401         * config/arm/arm.md: Include vfp11.md.
3402
3403 2008-08-26  Hans-Peter Nilsson  <hp@axis.com>
3404
3405         * opts.c (decode_options) [!IRA_COVER_CLASSES]: Add missing
3406         parameter to inform call.
3407
3408 2008-08-26  Jeff Law  <law@redhat.com>
3409
3410         * mn10300.md (movqi, movhi): Split i->d*a case into two cases to
3411         avoid the possibility of getting DATA_OR_ADDRESS_REGS as the
3412         preferred class when copying a constant into a partial word register.
3413
3414 2008-08-26  Ben Elliston  <bje@au.ibm.com>
3415
3416         * rtlanal.c: Fix uses of "it's" with "its" where appropriate.
3417         * cp/typeck.c: Likewise.
3418         * cp/tree.c: Likewise.
3419         * gimple-low.c: Likewise.
3420         * jump.c: Likewise.
3421
3422 2008-08-26  Vladimir Makarov  <vmakarov@redhat.com>
3423
3424         * ira-build.c, ira-color.c, ira-costs.c, ira.h, ira-lives.c,
3425         ira.c, ira-conflicts.c, ira-emit.c, ira-int.h: New files.
3426
3427         * doc/passes.texi: Describe IRA.
3428
3429         * doc/tm.texi (IRA_COVER_CLASSES,
3430         IRA_HARD_REGNO_ADD_COST_MULTIPLIER): Describe the new macros.
3431
3432         * doc/invoke.texi (ira-max-loops-num): Describe the new parameter.
3433         (-fira, -fira-algorithm, -fira-coalesce, -fno-ira-move-spills,
3434         -fira-propagate-cost, -fno-ira-share-save-slots,
3435         -fno-ira-share-spill-slots, -fira-verbose): Describe new options.
3436
3437         * flags.h (ira_algorithm): New enumeration.
3438         (flag_ira_algorithm, flag_ira_verbose): New external variable
3439         declarations.
3440
3441         * postreload.c (gate_handle_postreload): Don't do post reload
3442         optimizations unless the reload is completed.
3443
3444         * reload.c (push_reload, find_dummy_reload): Use DF_LR_OUT for
3445         IRA.
3446
3447         * tree-pass.h (pass_ira): New external variable declaration.
3448
3449         * reload.h: Add 2008 to the Copyright.
3450
3451         * cfgloopanal.c: Include params.h.
3452         (estimate_reg_pressure_cost): Decrease cost for IRA optimization
3453         mode.
3454
3455         * params.h (IRA_MAX_LOOPS_NUM): New macro.
3456
3457         * toplev.c (ira.h): New include.
3458         (flag_ira_algorithm, flag_ira_verbose): New external variables.
3459         (backend_init_target): Call ira_init.
3460         (backend_init): Call ira_init_once.
3461         (finalize): Call finish_ira_once.
3462
3463         * toplev.h (flag_ira, flag_ira_coalesce, flag_ira_move_spills,
3464         flag_ira_share_save_slots, flag_ira_share_spill_slots): New
3465         external variables.
3466
3467         * regs.h (contains_reg_of_mode, move_cost, may_move_in_cost,
3468         may_move_out_cost): New external variable declarations.
3469         (move_table): New typedef.
3470
3471         * caller-save.c: Include headers output.h and ira.h.
3472         (no_caller_save_reg_set): New global variable.
3473         (save_slots_num, save_slots): New variables.
3474         (reg_save_code, reg_restore_code, add_stored_regs): Add
3475         prototypes.
3476         (init_caller_save): Set up no_caller_save_reg_set.
3477         (init_save_areas): Reset save_slots_num.
3478         (saved_hard_reg): New structure.
3479         (hard_reg_map, saved_regs_num, all_saved_regs): New variables.
3480         (initiate_saved_hard_regs, new_saved_hard_reg,
3481         finish_saved_hard_regs, saved_hard_reg_compare_func): New
3482         functions.
3483         (setup_save_areas): Add code for sharing stack slots.
3484         (all_blocks): New variable.
3485         (save_call_clobbered_regs): Process pseudo-register too.
3486         (mark_set_regs): Process pseudo-register too.
3487         (insert_one_insn): Put the insn after bb note in a empty basic
3488         block.  Add insn check.
3489
3490         * global.c (eliminable_regset): Make it external.
3491         (mark_elimination): Use DF_LR_IN for IRA.
3492         (pseudo_for_reload_consideration_p): New.
3493         (build_insn_chain): Make it external.  Don't ignore spilled
3494         pseudos for IRA.  Use pseudo_for_reload_consideration_p.
3495         (gate_handle_global_alloc): New function.
3496         (pass_global_alloc): Add the gate function.
3497
3498         * opts.c (decode_options): Set up flag_ira.  Print the warning for
3499         -fira.
3500         (common_handle_option): Process -fira-algorithm and -fira-verbose.
3501
3502         * timevar.def (TV_IRA, TV_RELOAD): New passes.
3503
3504         * regmove.c (regmove_optimize): Don't do replacement of output for
3505         IRA.
3506
3507         * hard-reg-set.h (no_caller_save_reg_set, reg_class_subclasses):
3508         New external variable declarations.
3509
3510         * local-alloc.c (update_equiv_regs): Make it external.  Return
3511         true if jump label rebuilding should be done.  Rescan new_insn for
3512         notes.
3513         (gate_handle_local_alloc): New function.
3514         (pass_local_alloc): Add the gate function.
3515
3516         * alias.c (value_addr_p, stack_addr_p): New functions.
3517         (nonoverlapping_memrefs_p): Use them for IRA.
3518
3519         * common.opt (fira, fira-algorithm, fira-coalesce,
3520         fira-move-spills, fira-share-save-slots, fira-share-spill-slots,
3521         fira-verbose): New options.
3522
3523         * regclass.c (reg_class_subclasses, contains_reg_of_mode,
3524         move_cost, may_move_in_cost, may_move_out_cost): Make the
3525         variables external.
3526         (move_table): Remove typedef.
3527         (init_move_cost): Make it external.
3528         (allocate_reg_info, resize_reg_info, setup_reg_classes): New
3529         functions.
3530
3531         * rtl.h (init_move_cost, allocate_reg_info, resize_reg_info,
3532         setup_reg_classes): New function prototypes.
3533         (eliminable_regset): New external variable declaration.
3534         (build_insn_chain, update_equiv_regs): New function prototypes.
3535
3536         * Makefile.in (IRA_INT_H): New definition.
3537         (OBJS-common): Add ira.o, ira-build.o, ira-costs.o,
3538         ira-conflicts.o, ira-color.o, ira-emit.o, and ira-lives.o.
3539         (reload1.o, toplev.o): Add dependence on ira.h.
3540         (cfgloopanal.o): Add PARAMS_H.
3541         (caller-save.o): Add dependence on output.h and ira.h.
3542         (ira.o, ira-build.o, ira-costs.o, ira-conflicts.o, ira-color.o,
3543         ira-emit.o, ira-lives.o): New entries.
3544
3545         * passes.c (pass_ira): New pass.
3546
3547         * params.def (PARAM_IRA_MAX_LOOPS_NUM): New parameter.
3548
3549         * reload1.c (ira.h): Include the header.
3550         (changed_allocation_pseudos): New bitmap.
3551         (init_reload): Initiate the bitmap.
3552         (compute_use_by_pseudos): Permits spilled registers in FROM.
3553         (temp_pseudo_reg_arr): New variable.
3554         (reload): Allocate and free temp_pseudo_reg_arr.  Sort pseudos for
3555         IRA.  Call alter_reg with the additional parameter.  Don't clear
3556         spilled_pseudos for IRA.  Restore original insn chain for IRA.
3557         Clear changed_allocation_pseudos at the end of reload.
3558         (calculate_needs_all_insns): Call IRA's mark_memory_move_deletion.
3559         (hard_regno_to_pseudo_regno): New variable.
3560         (count_pseudo): Check spilled pseudos.  Set up
3561         hard_regno_to_pseudo_regno.
3562         (count_spilled_pseudo): Check spilled pseudos. Update
3563         hard_regno_to_pseudo_regno.
3564         (find_reg): Use better_spill_reload_regno_p.  Check
3565         hard_regno_to_pseudo_regno.
3566         (alter_reg): Set up spilled_pseudos.  Add a new parameter.  Add
3567         code for IRA.
3568         (eliminate_regs_1): Use additional parameter for alter_reg.
3569         (finish_spills): Set up pseudo_previous_regs only for spilled
3570         pseudos.  Call reassign_pseudos once for all spilled pseudos, pass
3571         more arguments.  Don't clear live_throughout and dead_or_set for
3572         spilled pseudos.  Use additional parameter for alter_reg.  Call
3573         mark_allocation_change.  Set up changed_allocation_pseudos.
3574         Remove sanity check.
3575         (emit_input_reload_insns, delete_output_reload): Use additional
3576         parameter for alter_reg.  Call mark_allocation_change.
3577         (substitute, gen_reload_chain_without_interm_reg_p): New
3578         functions.
3579         (reloads_conflict): Use gen_reload_chain_without_interm_reg_p.
3580
3581         * testsuite/gcc.dg/20080410-1.c: New file.
3582
3583         * config/s390/s390.h (IRA_COVER_CLASSES,
3584         IRA_HARD_REGNO_ADD_COST_MULTIPLIER): Define.
3585
3586         * config/sparc/sparc.h (IRA_COVER_CLASSES): New macro.
3587
3588         * config/i386/i386.h (IRA_COVER_CLASSES): Ditto.
3589
3590         * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
3591
3592         * config/rs6000/rs6000.h (IRA_COVER_CLASSES): Ditto.
3593
3594         * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
3595
3596         * config/alpha/alpha.h (IRA_COVER_CLASSES): Ditto.
3597
3598         2008-08-24  Jeff Law  <law@redhat.com>
3599         * ira.c (setup_reg_class_intersect_union): Prefer smallest class
3600         when ignoring unavailable registers.
3601
3602         2008-08-24  Jeff Law  <law@redhat.com>
3603         * ira-color.c (coalesced_pseudo_reg_slot_compare): Check
3604         FRAME_GROWS_DOWNWARD and STACK_GROWS_DOWNWARD.
3605         * ira.c (setup_eliminable_regset): Check stack_realign_needed.
3606         * config/mn10300/mn10300.h (IRA_COVER_CLASSES): New macro.
3607
3608         2008-06-03 Steve Chamberlain <steve.chamberlain@gmail.com>
3609         * ira-build.c (allocno_range_compare_func): Stabilize sort.
3610
3611         2008-05-29 Andy Hutchinson <hutchinsonandy@aim.com>
3612         * config/avr/avr.h (IRA_COVER_CLASSES): New macro.
3613         * reload1.c (find_reg): Process registers in register allocation order.
3614
3615         2008-05-10 Richard Sandiford <rsandifo@nildram.co.uk>
3616         * toplev.c (backend_init_target): Move ira_init call from
3617         here...
3618         (lang_dependent_init_target): ...to here.
3619
3620         2008-05-10 Richard Sandiford <rsandifo@nildram.co.uk>
3621         * ira.c (setup_class_subset_and_memory_move_costs): Don't
3622         calculate memory move costs for NO_REGS.
3623
3624         2008-05-05 Kaz Kojima <kkojima@gcc.gnu.org>
3625         * ira-color.c (ira_fast_allocation): Use no_stack_reg_p only if
3626         STACK_REGS is defined.
3627
3628         2008-04-08 Andrew Pinski <andrew_pinski@playstation.sony.com>
3629         * config/spu/spu.h (IRA_COVER_CLASSES): New macro.
3630
3631         2008-04-04 Bernd Schmidt <bernd.schmidt@analog.com>
3632         * config/bfin/bfin.h (IRA_COVER_CLASSES): New macro.
3633
3634         2008-04-04 Kaz Kojima <kkojima@gcc.gnu.org>
3635         * config/sh/sh.h (IRA_COVER_CLASSES): Define.
3636         * config/sh/sh.md (movsicc_true+3): Check if emit returns a
3637         barrier.
3638
3639 2008-08-26  Victor Kaplansky  <victork@il.ibm.com>
3640             Dorit Nuzman  <dorit@il.ibm.com>
3641
3642         * gcc/config/spu/spu.md (vec_extract_evenv4si,
3643         vec_extract_evenv4sf, vec_extract_evenv8hi,
3644         vec_extract_evenv16qi, vec_extract_oddv4si,
3645         vec_extract_oddv4sf, vec_extract_oddv8hi, vec_extract_oddv16qi,
3646         vec_interleave_highv4sf, vec_interleave_lowv4sf,
3647         vec_interleave_highv4si, vec_interleave_lowv4si,
3648         vec_interleave_highv8hi, vec_interleave_lowv8hi,
3649         vec_interleave_highv16qi, vec_interleave_lowv16qi,
3650         vec_pack_trunc_v8hi, vec_pack_trunc_v4si): Implement.S
3651
3652 2008-08-25  Janis Johnson  <janis187@us.ibm.com>
3653
3654         PR target/36756
3655         * config/rs6000/rs6000.c (optimization_options): Don't default to
3656         section anchors without toplevel reorder.
3657
3658 2008-08-25  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3659
3660         * config/spu/spu_mfcio.h (mfc_begin_critical_section): New function.
3661         (mfc_end_critical_section): Likewise.
3662
3663 2008-08-25  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3664
3665         * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute): Propagate
3666         all type qualifiers from element type to vector type.
3667
3668 2008-08-25  David Daney  <ddaney@avtrex.com>
3669
3670         * config/mips/mips.md (immediate_insn): Move up in file, fix
3671         comment typo, reformat.
3672         (fetchop_bit, atomic_hiqi_op memory_barrier,
3673         sync_compare_and_swap<mode>, compare_and_swap_12, sync_add<mode>,
3674         sync_<optab><mode>, sync_<optab>_12, sync_old_<optab><mode>,
3675         sync_old_<optab>_12, sync_new_<optab><mode>, sync_new_<optab>_12,
3676         sync_nand<mode>, sync_nand_12, sync_old_nand<mode>,
3677         sync_old_nand_12, sync_new_nand<mode>, sync_new_nand_12,
3678         sync_sub<mode>, sync_old_add<mode>, sync_old_sub<mode>,
3679         sync_new_add<mode>, sync_new_sub<mode>, sync_<optab><mode>,
3680         sync_old_<optab><mode>, sync_new_<optab><mode>, sync_nand<mode>,
3681         sync_old_nand<mode>, sync_new_nand<mode>,
3682         sync_lock_test_and_set<mode>, sync_lock_test_and_set<mode>,
3683         test_and_set_12): Moved to sync.md.
3684         (sync.md): Include.
3685         * config/mips/sync.md: New file.
3686
3687 2008-08-25  Richard Henderson  <rth@redhat.com>
3688
3689         * dwarf2out.c (def_cfa_1): Don't scale by DWARF_CIE_DATA_ALIGNMENT.
3690         (regsave): Likewise.
3691         (lookup_cfa_1): Don't rescale by DWARF_CIE_DATA_ALIGNMENT.
3692         (output_cfi_directive): Likewise.
3693         (div_data_align): New.
3694         (output_cfi): Use it.
3695
3696 2008-08-24  Adam Nemet  <anemet@caviumnetworks.com>
3697
3698         * config.gcc (mips64*-*-linux*): Handle mips64octeon*-*-linux*.
3699         * config/mips/mips.h (enum processor_type): Add PROCESSOR_OCTEON.
3700         (TARGET_OCTEON): New macro.
3701         (TARGET_CPU_CPP_BUILTINS): Define __OCTEON__ for Octeon.
3702         (MIPS_ISA_LEVEL_SPEC, MIPS_ARCH_FLOAT_SPEC): Handle -march=octeon.
3703         (ISA_HAS_POP): New macro.
3704         * config/mips/driver-native.c (host_detect_local_cpu): Handle
3705         Octeon.
3706         * config/mips/mips.c (mips_cpu_info_table, mips_rtx_cost_data):
3707         Handle Octeon.
3708         * config/mips/mips.md (cpu): Add octeon.
3709         (type): Add pop attribute value.
3710         (popcount<mode>2): New pattern.
3711         * doc/invoke.texi (-march=@var{arch}): Add octeon.
3712
3713 2008-08-24  Jan Hubicka  <jh@suse.cz>
3714
3715         * doc/invoke.texi (-fipa-cp-clone): New option.
3716         (-fipa-cp): Update docs.
3717         (--param ipcp-unit-growth):New.
3718         * ipa-cp.c: Include fibheap.h, params.h
3719         (ipcp_initialize_node_lattices): When not cloning, all externally
3720         visible functions are bottom.
3721         (ipcp_need_redirect_p): Accept clones.
3722         (ipcp_insert_stage): Use cost driven heuristics.
3723         (max_count, dead_nodes): New static vars.
3724         (ipcp_need_original_clone_p, ipcp_estimate_cloning_cost,
3725         ipcp_const_param_count): New functions.
3726         * common.opt (ipa-cp-clone): New command line option.
3727         * params.def (ipcp-unit-growth): New.
3728
3729 2008-08-24  Jan Hubicka  <jh@suse.cz>
3730
3731         * tree-inline.c (tree_function_versioning): Look harder
3732         for referenced vars.
3733
3734 2008-08-24  Razya Ladelsky  <razya@il.ibm.com>
3735
3736         PR tree-optimization/37185
3737         * matrix-reorg.c (transform_access_sites): Update changed stmt.
3738
3739 2008-08-23  Jan Hubicka  <jh@suse.cz>
3740
3741         * ipa-cp.c (ipcp_analyze_node): New function.
3742         (ipcp_update_cloned_node): Use it.
3743         (ipcp_init_stage): Likewise.
3744         * ipa-inline.c (function_insertion_hook_holder): New static var.
3745         (analyze_function): Break out from ....
3746         (inline_generate_summary): Here; register insertion hook.
3747         (cgraph_decide_inlining): Remove hook.
3748         (add_new_function): New function.
3749
3750 2008-08-23  Jan Hubicka  <jh@suse.cz>
3751
3752         * opts.c (decode_options): Revert accidental change enabling ipa-cp.
3753
3754 2008-08-23  Jan Hubicka  <jh@suse.cz>
3755
3756         * ipa-cp.c (constant_val_insert): Remove.
3757         (ipcp_propagate_one_const): Remove.
3758         (ipcp_create_replace_map): Always insert replacements to the map.
3759         (ipcp_insert_stage): Do not try to insert statements by hand.
3760         * tree-inline.c (insert_init_stmt): Break out from ...
3761         (setup_one_parameter): ... here; allow NULL BB pointer.
3762         (tree_function_versioning): Use setup_one_parameter to process
3763         replacement map.
3764
3765 2008-08-23  Jan Hubicka  <jh@suse.cz>
3766
3767         * tree.c (decl_address_ip_invariant_p): New function.
3768         * tree.h (decl_address_ip_invariant_p): Declare.
3769         * gimple.c (strip_invariant_refs): Break out from ...
3770         (is_gimple_invariant_address): ... here
3771         (is_gimple_ip_invariant_address): New function.
3772         (is_gimple_ip_invariant): New function.
3773         * gimple.h (is_gimple_ip_invariant_address, is_gimple_ip_invariant):
3774         Declare.
3775
3776         * ipa-cp.c (ipcp_lat_is_const): Remove handling of IPA_CONST_VALUE_REF.
3777         (ipcp_lat_is_insertable): All constants are insertable.
3778         (ipcp_lattice_from_jfunc, ipcp_print_all_lattices): Remove handling of
3779         IPA_CONST_VALUE_REF.
3780         (ipcp_initialize_node_lattices): Propagate all types of operands.
3781         (build_const_val): Do not handle IPA_CONST_VALUE_REF.
3782         (ipcp_create_replace_map): Reformat.
3783         (ipcp_need_redirect_p): Simplify.
3784         (ipcp_insert_stage): Check that argument is used before clonning.
3785         * ipa-prop.c (ipa_print_node_jump_functions): Do not handle IPA_CONST_REF.
3786         (compute_scalar_jump_functions): Simplify using is_gimple_ip_invariat.
3787         (determine_cst_member_ptr): Keep wrapping ADDR_EXPR of members.
3788         (update_call_notes_after_inlining): Expect ADDR_EXPR in operand.
3789         * ipa-prop.h (jump_func_type): Remove IPA_CONST_REF.
3790         (jump_func_type): Remove IPA_CONST_VALUE_REF.
3791         * tree-inline.c (tree_function_versioning): Add variables referenced by
3792         replacing trees.
3793
3794 2008-08-23  Jan Hubicka  <jh@suse.cz>
3795
3796         PR target/37094
3797         * i386.c (standard_80387_constant_p): Use optimize_size.
3798
3799 2008-08-23  Ira Rosen  <irar@il.ibm.com>
3800
3801         PR tree-optimization/37161
3802         * tree-vectorizer.h (vect_get_smallest_scalar_type): Declare.
3803         * tree-vect-analyze.c (vect_get_smallest_scalar_type): New function.
3804         (vect_determine_vectorization_factor): Move the scalar type
3805         retrieval to vect_get_smallest_scalar_type.
3806         (vect_build_slp_tree): Call vect_get_smallest_scalar_type to get
3807         scalar type. Remove redundant computation.
3808         * tree-vect-transform.c (vect_get_constant_vectors): Add argument.
3809         (vect_get_slp_defs): Take the type of RHS into account if
3810         necessary by calling vect_get_smallest_scalar_type. Call
3811         vect_get_constant_vectors with additional argument.
3812
3813 2008-08-23  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
3814
3815         PR 35648
3816         * doc/invoke.texi (Wwrite-strings): Clarify description.
3817
3818 2008-08-23  Ira Rosen  <irar@il.ibm.com>
3819
3820         PR tree-optimization/37174
3821         * tree-vect-analyze.c (vect_get_and_check_slp_defs): Check that the
3822         def stmt is a part of the loop before accessing its stmt_vec_info.
3823
3824 2008-08-22  Anatoly Sokolov  <aesok@post.ru>
3825
3826         PR target/11259
3827         * config/avr/avr.md (UNSPEC_SWAP): New constants.
3828         (*swap): New insn pattern.
3829         (*ashlqi3): Rename from ashlqi3 insn pattern.
3830         (ashlqi3): New expanders.
3831         (*lshrqi3): Rename from lshrqi3 insn pattern.
3832         (lshrqi3): New expanders.
3833         (ashlqi3_const4, ashlqi3_const5, ashlqi3_const6, lshrqi3_const4,
3834         lshrqi3_const5, lshrqi3_const6): New splitters.
3835         (andi, ashlqi3_l_const4, ashlqi3_l_const5, ashlqi3_l_const6,
3836         lshrqi3_l_const4, lshrqi3_l_const5, lshrqi3_l_const6): Define
3837         peephole2 patterns.
3838
3839 2008-08-22  Richard Guenther  <rguenther@suse.de>
3840
3841         PR tree-optimization/37078
3842         * tree-vrp.c (extract_range_from_unary_expr): Avoid generating
3843         [+INF, +INF] ranges.
3844
3845 2008-08-22  Richard Guenther  <rguenther@suse.de>
3846
3847         PR tree-optimization/37143
3848         * tree-vect-transform.c (vect_create_cond_for_align_checks): Build
3849         a conversion statement instead of a copy.
3850
3851 2008-08-22  Uros Bizjak  <ubizjak@gmail.com>
3852
3853         PR target/37184
3854         * config/i386/i386.c (ix86_match_ccmode): Handle CCAmode,
3855         CCCmode, CCOmode and CCSmode destination modes.
3856
3857         PR target/37191
3858         * config/i386/mmx.md (*vec_extractv2sf_0): Avoid combining registers
3859         from different units in a single alternative.
3860         (*vec_extractv2sf_1): Ditto.
3861         (*vec_extractv2si_0): Ditto.
3862         (*vec_extractv2si_1): Ditto.
3863         * config/i386/sse.md (sse2_storehpd): Ditto.
3864         (sse2_storelpd): Ditto.
3865         (sse2_loadhpd): Ditto.
3866         (sse2_loadlpd): Ditto.
3867
3868         PR target/37197
3869         * config/i386/i386.md (clzsi2_abm): Fix operand 1 constraints.
3870         (popcountsi2): Ditto.
3871         (clzdi2_abm): Ditto.
3872         (popcountdi2): Ditto.
3873         (clzhi2_abm): Ditto.
3874         (popcounthi2): Ditto.
3875
3876 2008-08-22  Richard Guenther  <rguenther@suse.de>
3877
3878         PR middle-end/36548
3879         PR middle-end/37125
3880         * fold-const.c (extract_muldiv_1): Optimize (X * C1) % C2 only
3881         if the multiplication does not overflow.
3882
3883 2008-08-21  Nathan Sidwell  <nathan@codesourcery.com>
3884
3885         * c-ppoutput.c (init_pp_output): Initialize src_line to 1.
3886
3887 2008-08-21  Richard Henderson  <rth@redhat.com>
3888
3889         * configure.ac (HAVE_GAS_CFI_PERSONALITY_DIRECTIVE): Remove
3890         spurrious comma from test.
3891         * configure: Rebuild.
3892
3893 2008-08-21  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
3894
3895         PR 30457
3896         * builtins.c (fold_builtin_next_arg): Add warning about undefined
3897         behaviour.
3898
3899 2008-08-21  Aldy Hernandez  <aldyh@redhat.com>
3900
3901         * c-tree.h (grokfield): New argument.
3902         * c-decl.c (grokfield): Handle new location argument.
3903         * c-parser.c (c_parser_struct_declaration): Pass location to
3904         grokfield.
3905
3906 2008-08-21  Richard Guenther  <rguenther@suse.de>
3907
3908         * tree-ssa-ccp.c (ccp_fold): Fold VIEW_CONVERT_EXPRs of constants.
3909
3910 2008-08-21  Jan Hubicka  <jh@suse.cz>
3911
3912         * cgraph.c (first_cgraph_function_insertion_hook): New variable.
3913         (cgraph_add_function_insertion_hook,
3914         cgraph_remove_function_insertion_hook,
3915         cgraph_call_function_insertion_hooks): New functions.
3916         * cgraph.h (cgraph_add_function_insertion_hook,
3917         cgraph_remove_function_insertion_hook,
3918         cgraph_call_function_insertion_hooks): Declare.
3919         * ipa-reference.c (function_insertion_hook_holder): New variable.
3920         (check_operand, look_for_address_of): When checking late, do not care
3921         about module bitmaps.
3922         (add_new_function): New function.
3923         (generate_summary): Register hooks; zero module bitmaps.
3924         (propagate): Unregister hooks.
3925         * ipa-pure-const.c (function_insertion_hook_holder): New variable.
3926         (add_new_function): New function.
3927         (generate_summary): Register hook.
3928         (propagate): Remove hook.
3929
3930         * ipa-cp.c (ipcp_need_redirect_p): Fix to not be constant 0.
3931
3932         * tree-pass.h (pass_ipa_cp): Make ipa_opt_pass.
3933         * ipa-cp.c (ipcp_update_cloned_node): New function.
3934         (build_const_val): Handle functions correctly; bring type logic
3935         into sync with tree-inline.c
3936         (ipcp_init_stage):  Take care of computing stuff needed by
3937         indirect inlining; update clones.
3938         (ipcp_generate_summary): Break out of ipcp_driver.
3939         (ipcp_driver): Do only execution and transformation.
3940         (pass_ipa_cp): Make IPA_PASS.
3941         * tree-ssa-ccp.c (fold_stmt_r): Check type before trying to fold
3942         offset to address.
3943         * ipa-inline.c (inline_indirect_intraprocedural_analysis): When doing
3944         ipcp, some info is already available.
3945         * ipa-prop.c (ipa_count_arguments): Grow edge lists as needed.
3946         * tree-inline.c (remap_ssa_name): Unshare expression.
3947
3948 2008-08-21  Richard Guenther  <rguenther@suse.de>
3949
3950         * tree-ssa-pre.c (insert_into_preds_of_block): Before inserting
3951         a PHI ask VN if it is already available.
3952         * tree-ssa-sccvn.h (vn_phi_lookup): Declare.
3953         * tree-ssa-sccvn.c (vn_phi_lookup): Export.
3954
3955 2008-08-21  Richard Guenther  <rguenther@suse.de>
3956
3957         PR middle-end/36817
3958         * tree-chrec.c (chrec_apply): Always call chrec_fold_plus which
3959         makes sure to produce a result of the correct type.
3960
3961 2008-08-21  Jan Hubicka  <jh@suse.cz>
3962         Backport from LTO branch:
3963
3964         2008-05-05  Kenneth Zadeck <zadeck@naturalbridge.com>
3965                     Jan Hubicka  <jh@suse.cz>
3966
3967         * ipa-pure-const.c
3968         (init_state, finish_state, set_function_state, generate_summary):
3969         New functions.
3970         (scan_stmt): Renamed from scan_function.  Changed to keep state in
3971         local static vars rather than cgraph aux field.
3972         (propagate): Renamed from static_execute. Changed to keep state in
3973         local static vars rather than cgraph aux field.
3974         (pass_ipa_pure_const): Changed from SIMPLE_IPA_PASS to IPA_PASS.
3975         * tree-pass.h (pass_ipa_pure_const): Turn into IPA_PASS.
3976
3977         2008-07-15  Kenneth Zadeck <zadeck@naturalbridge.com>
3978
3979         * tree-pass.h (pass_ipa_reference): Make into ipa_opt_pass.
3980         * ipa-reference.c (init_function_info, generate_summary,
3981         propagate): New functions.
3982         (analyze_function):  Call init_function_info.
3983         (static_execute): Stripped into generate_summary and propagate.
3984         (pass_ipa_reference): Made into ipa_opt_pass.
3985
3986 2008-08-21  Richard Guenther  <rguenther@suse.de>
3987
3988         PR tree-optimization/37181
3989         * tree-vrp.c (extract_range_from_binary_expr): Check for NULL
3990         folding result.
3991         (extract_range_from_unary_expr): Likewise.
3992
3993 2008-08-21  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
3994
3995         * diagnostic.c (pedwarn_at): Rename as pedwarn.
3996         (pedwarn): Delete.
3997         * toplev.h (pedwarn_at): Likewise.
3998         * builtins.c: Update all calls to pedwarn.
3999         * c-lex.c: Likewise.
4000         * toplev.c: Likewise.
4001         * c-tree.h: Likewise.
4002         * c-decl.c: Likewise.
4003         * c-errors.c: Likewise.
4004         * c-typeck.c: Likewise.
4005         * c-common.c: Likewise.
4006         * c-parser.c: Likewise.
4007
4008 2008-08-20  Joseph Myers  <joseph@codesourcery.com>
4009
4010         PR target/31070
4011         * config/sparc/sparc.c (function_arg_slotno): Handle structure
4012         with MODE_VECTOR_INT mode.
4013
4014 2008-08-21  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
4015
4016         PR middle-end/179
4017         * tree-ssa.c (warn_uninit): Do not warn for variables that can be
4018         initialized outside the current module.
4019         (warn_uninitialized_var): Ignore left-hand side when walking the
4020         trees. Ignore address expressions. Examine VUSE operands in gimple
4021         statements with a variable declaration on the right-hand side.
4022
4023 2008-08-20  Richard Sandiford  <rdsandiford@googlemail.com>
4024
4025         PR bootstrap/37155
4026         * rtlanal.c (subreg_offset_representable_p): Revert last change.
4027
4028 2008-08-20  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
4029
4030         PR 35701
4031         * c-common.c (conversion_warning): Do not warn if applying bit-and
4032         operator to unsigned constant that fits in the target type.
4033
4034 2008-08-20  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
4035
4036         PR c++/35602
4037         * c-common.c (conversion_warning): Do not warn for artificial
4038         expressions.
4039
4040 2008-08-20  Richard Guenther  <rguenther@suse.de>
4041
4042         * tree-vrp.c (op_with_constant_singleton_value_range): New function.
4043         (extract_range_from_binary_expr): Fall back to constant propagation.
4044         (extract_range_from_unary_expr): Likewise.
4045
4046 2008-08-20  Richard Guenther  <rguenther@suse.de>
4047
4048         * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Do not mess
4049         with TREE_THIS_VOLATILE on shared nodes.
4050         (fold_stmt_r): Likewise.
4051
4052 2008-08-20  Jakub Jelinek  <jakub@redhat.com>
4053
4054         PR c/37171
4055         * c-parser.c (c_parser_attributes): For keywords use canonical
4056         spelling for attr_name.
4057
4058 2008-08-20  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
4059
4060         * value-prof.c (check_counter): Revert wrong call to error.
4061
4062 2008-08-20  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
4063
4064         * profile.c: Update calls to inform.
4065         * value-prof.c: Update calls to inform.
4066
4067 2008-08-20  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
4068
4069         * diagnostic.c (inform): Add an explicit location_t parameter.
4070         * toplev.h (inform): Update declaration.
4071         * builtins.c: Update all calls to inform.
4072         * c-common.c: Likewise.
4073         * c-decl.c: Likewise.
4074         * c-opts.c: Likewise.
4075         * c-pch.c: Likewise.
4076         * c-pragma.c: Likewise.
4077         * c-typeck.c: Likewise.
4078         * coverage.c: Likewise.
4079         * opts.c: Likewise.
4080         * toplev.c: Likewise.
4081         * tree-cfg.c: Likewise.
4082         * tree-ssa.c: Likewise.
4083
4084 2008-08-20  H.J. Lu  <hongjiu.lu@intel.com>
4085
4086         PR target/37169
4087         * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): In
4088         V2DI mode, for SSE4.1, use movq instead of vector set if the
4089         second element is zero and inter-unit moves are OK.
4090
4091 2008-08-20  Richard Guenther  <rguenther@suse.de>
4092
4093         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): More
4094         properly handle conversion/copy chains after tuplification.
4095
4096 2008-08-20  Richard Guenther  <rguenther@suse.de>
4097
4098         * passes.c (init_optimization_passes): Move the second
4099         forwprop pass before alias computation.  Remove the second
4100         DCE pass.  Remove the first dominator and phi copy/const
4101         prop passes.
4102
4103 2008-08-20  Nick Clifton  <nickc@redhat.com>
4104
4105         * configure.ac (HAVE_GAS_CFI_DIRECTIVE): Always test for assembler
4106         support of this feature.  Do not assume that a sufficiently new
4107         assembler will support the feature regardless of the target type.
4108         (HAVE_GAS_CFI_PERSONALITY_DIRECTIVE): Likewise.
4109         * configure: Regenerate.
4110
4111 2008-08-20  Richard Guenther  <rguenther@suse.de>
4112
4113         * tree-vrp.c (found_in_subgraph): Remove.
4114         (live): New global static.
4115         (live_on_edge): New function.
4116         (blocks_visited): Remove.
4117         (register_edge_assert_for_2): Use live_on_edge.
4118         (find_conditional_asserts): Remove code dealing with
4119         found_in_subgraph.  Do not walk the CFG.
4120         (find_switch_asserts): Likewise.
4121         (find_assert_locations_1): Renamed from find_assert_locations.
4122         Move finding assert locations for conditional and switch
4123         statements first.  Update live bitmap.  Do not walk the CFG.
4124         (find_assert_locations): New function.
4125         (insert_range_assertions): Remove entry of CFG walk.
4126         Adjust call to find_assert_locations.
4127         * tree-ssa-pre.c (do_regular_insertion): Ignore critical edges
4128         that only can appear because of fake exit edges but assert we
4129         never try to insert on those.
4130         (fini_pre): Do not remove fake exit edges here...
4131         (execute_pre): ...but here, before committing edge inserts.
4132
4133 2008-08-19  Richard Guenther  <rguenther@suse.de>
4134
4135         * passes.c (init_optimization_passes): Exchange store-ccp
4136         with a ccp pass.
4137
4138 2008-08-19  Rafael Espíndola  <espindola@google.com>
4139
4140         * varasm.c (weak_decls): Move earlier in the file.
4141         (assemble_external): Add weak decls to the weak_decls list.
4142         (declare_weak): Don't add decls to the weak_decls list.
4143
4144 2008-08-19  H.J. Lu  <hongjiu.lu@intel.com>
4145
4146         PR target/37157
4147         * config/i386/sse.md (sse2_punpckhqdq, sse2_punpcklqdq): Moved
4148         before (sse2_shufpd_<mode>).
4149
4150 2008-08-19  Jakub Jelinek  <jakub@redhat.com>
4151
4152         PR debug/37156
4153         * pretty-print.c (pp_base_format): Deal with recursive BLOCK trees.
4154         * tree.c (block_nonartificial_location): Likewise.
4155
4156 2008-08-19  Richard Guenther  <rguenther@suse.de>
4157
4158         PR tree-optimization/35972
4159         PR tree-optimization/23094
4160         * tree-ssa-sccvn.h (vn_reference_lookup_pieces): Add maywalk
4161         parameter.
4162         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Properly
4163         handle MISALIGNED_INDIRECT_REF.
4164         (get_ref_from_reference_ops): New helper.
4165         (vn_reference_lookup_pieces): Walk the use-def chain using the
4166         alias-oracle if requested.
4167         * tree-ssa-pre.c (phi_translate_1): Do reference lookup with
4168         walking the use-def chain.
4169         (compute_avail): But not here.
4170         (create_component_ref_by_pieces_1): Properly handle
4171         MISALIGNED_INDIRECT_REF.
4172         (do_regular_insertion): Handle fully redundant
4173         expressions after PHI-translation also for SSA_NAME values, not
4174         only constants.  Correctly use edoubleprime for that.
4175
4176 2008-08-19  Ira Rosen  <irar@il.ibm.com>
4177
4178         * tree-vectorizer.c (supportable_widening_operation): Support
4179         multi-step conversion, return the number of steps in such conversion
4180         and the required intermediate types.
4181         (supportable_narrowing_operation): Likewise.
4182         * tree-vectorizer.h (vect_pow2): New function.
4183         (supportable_widening_operation): Change argument types.
4184         (supportable_narrowing_operation): Likewise.
4185         (vectorizable_type_promotion): Add an argument.
4186         (vectorizable_type_demotion): Likewise.
4187         * tree-vect-analyze.c (vect_analyze_operations): Call
4188         vectorizable_type_promotion and vectorizable_type_demotion with
4189         additional argument.
4190         (vect_get_and_check_slp_defs): Detect patterns.
4191         (vect_build_slp_tree): Add an argument, don't fail in case of multiple
4192         types.
4193         (vect_analyze_slp_instance): Don't fail in case of multiple types. Call
4194         vect_build_slp_tree with correct arguments. Calculate unrolling factor
4195         according to the smallest type in the loop.
4196         (vect_detect_hybrid_slp_stmts): Include statements from patterns.
4197         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Call
4198         supportable_widening_operation with correct arguments.
4199         * tree-vect-transform.c (vect_get_slp_defs): Allocate output vector
4200         operands lists according to the number of vector statements in left
4201         or right node, if exists.
4202         (vect_gen_widened_results_half): Remove unused argument.
4203         (vectorizable_conversion): Call supportable_widening_operation,
4204         supportable_narrowing_operation, and vect_gen_widened_results_half
4205         with correct arguments.
4206         (vectorizable_assignment): Change documentation, support multiple
4207         types in SLP.
4208         (vectorizable_operation): Likewise.
4209         (vect_get_loop_based_defs): New function.
4210         (vect_create_vectorized_demotion_stmts): Likewise.
4211         (vectorizable_type_demotion): Support loop-aware SLP and general
4212         multi-step conversion. Call vect_get_loop_based_defs and
4213         vect_create_vectorized_demotion_stmts for transformation.
4214         (vect_create_vectorized_promotion_stmts): New function.
4215         (vectorizable_type_promotion): Support loop-aware SLP and general
4216         multi-step conversion. Call vect_create_vectorized_promotion_stmts
4217         for transformation.
4218         (vectorizable_store): Change documentation, support multiple
4219         types in SLP.
4220         (vectorizable_load): Likewise.
4221         (vect_transform_stmt): Pass SLP_NODE to
4222         vectorizable_type_promotion and vectorizable_type_demotion.
4223         (vect_schedule_slp_instance): Move here the calculation of number
4224         of vectorized statements for each node from...
4225         (vect_schedule_slp): ... here.
4226         (vect_transform_loop): Call vect_schedule_slp without the last
4227         argument.
4228
4229 2008-08-19  Dorit Nuzman  <dorit@il.ibm.com>
4230
4231         PR bootstrap/37152
4232         * tree-vect-transform.c (vect_create_epilog_for_reduction): Change =
4233         to == in assert statement.
4234         (vectorizable_reduction): Fix typo.
4235
4236 2008-08-18  H.J. Lu  <hongjiu.lu@intel.com>
4237
4238         PR bootstrap/37153
4239         * value-prof.c (check_counter): Dereference pointer to overall
4240         count when printing it.
4241
4242 2008-08-18  H.J. Lu  <hongjiu.lu@intel.com>
4243
4244         * profile.h: Really add it.
4245
4246 2008-08-18  H.J. Lu  <hongjiu.lu@intel.com>
4247
4248         * mcf.c: Really add it.
4249
4250 2008-08-18  Paul Yuan  <yingbo.com@gmail.com>
4251             Vinodha Ramasamy  <vinodha@google.com>
4252
4253         * cgraph.c (cgraph_edge): Handle inconsistent counts when setting
4254         count_scale.
4255         * value-prof.c (check_counter): Fix the counter if
4256         flag_profile_correction is true.
4257         (tree_divmod_fixed_value_transform, tree_mod_pow2_value_transform,
4258         tree_mod_subtract_transform):
4259         Follow check_counter parameter change.
4260         * common.opt (fprofile-correction): New option.
4261         * mcf.c: New file.
4262         * profile.h: Likewise.
4263         * profile.c (edge_info, EDGE_INFO): Moved to new file profile.h.
4264         (sum_edge_counts, is_edge_inconsistent, correct_negative_edge_counts,
4265         is_inconsistent, set_bb_counts, read_profile_edge_counts): New
4266         functions.
4267         (compute_branch_probabilities): Refactored. Invokes mcf_smooth_cfg if
4268         flag_profile_correction is set.
4269
4270 2008-08-18  Richard Sandiford  <rdsandiford@googlemail.com>
4271
4272         * rtlanal.c (subreg_offset_representable_p): Check HARD_REGNO_MODE_OK.
4273
4274 2008-08-18  Tomas Bily  <tbily@suse.cz>
4275
4276         * tree.h (IS_CONVERT_EXPR_CODE_P): Renamed to CONVERT_EXPR_CODE_P.
4277         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Use
4278         CONVERT_EXPR_P.
4279         * tree-data-ref.c (split_constant_offset_1): Likewise.
4280         * tree-inline.c (estimate_operator_cost): Use CASE_CONVERT.
4281         * tree-sra.c (sra_walk_expr): Likewise.
4282         * matrix-reorg.c (ssa_accessed_in_assign_rhs): Likewise.
4283         * tree-ssa-loop-niter.c (expand_simple_operations): Likewise.
4284         * gimple.h (gimple_assign_cast_p): Use CONVERT_EXPR_CODE_P.
4285         * tree-ssa-structalias.c (find_func_aliases, find_func_aliases):
4286         Likewise.
4287         * gimple.c (gimple_assign_unary_nop_p): Likewise.
4288         * tree-vect-transform.c (vectorizable_type_demotion)
4289         (vectorizable_type_promotion): Likewise.
4290         * tree-inline.c (expand_call_inline):
4291         * tree-ssa-forwprop.c (get_prop_source_stmt, can_propagate_from)
4292         (forward_propagate_addr_expr_1, forward_propagate_comparison)
4293         (tree_ssa_forward_propagate_single_use_vars): Likewise.
4294         * expr.c (expand_expr_real_1): Likewise.
4295         * tree-ssa-dom.c (hashable_expr_equal_p, iterative_hash_hashable_expr)
4296         (gimple_assign_unary_useless_conversion_p): Likewise.
4297         * tree-stdarg.c (execute_optimize_stdarg): Likewise.
4298         * tree-ssa-ccp.c (ccp_fold, fold_gimple_assign): Likewise.
4299         * fold-const.c (fold_unary): Likewise.
4300         * tree.h (CONVERT_EXPR_P): Likewise.
4301         * tree.c (simple_cst_equal, iterative_hash_expr): Likewise.
4302         * tree-ssa-loop-im.c (rewrite_bittest): Likewise.
4303         * tree-vrp.c:
4304         (register_edge_assert_for_2, extract_range_from_unary_expr)
4305         (register_edge_assert_for_1): Likewise.
4306
4307 2008-08-18  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
4308
4309         * real.h (dconst_e, dconst_third, dconst_sqrt2, dconst_e_ptr,
4310         dconst_third_ptr, dconst_sqrt2_ptr): Declare.
4311         (enum real_value_const): Delete.
4312         (get_real_const): Delete.
4313         * real.c (get_real_const): Delete.
4314         (dconst_e_ptr): Define.
4315         (dconst_third_ptr): Define.
4316         (dconst_sqrt2_ptr): Define.
4317         * builtins.c: Update all callers.
4318
4319 2008-08-18  Richard Guenther  <rguenther@suse.de>
4320
4321         * tree-ssa-reassoc.c (reassociate_bb): Properly reset the
4322         statement iterator after statement removal.
4323
4324 2008-08-18  Andreas Tobler  <a.tobler@schweiz.org>
4325
4326         * config/rs6000/driver-rs6000.c (detect_caches_freebsd): New function.
4327         (detect_processor_freebsd): Likewise.
4328         (host_detect_local_cpu): Call newly added functions for FreeBSD.
4329
4330 2008-08-18  Richard Guenther  <rguenther@suse.de>
4331
4332         * tree-cfg.c (verify_types_in_gimple_assign): Verify copies
4333         and loads have the correct types.
4334
4335 2008-08-18  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
4336
4337         PR cpp/7263
4338         * c-opts.c (cpp_opts): Remove static.
4339         * c-parser.c (cpp_opts): Declare it extern.
4340         (disable_extension_diagnostics): Handle cpp options.
4341         (enable_extension_diagnostics): Likewise.
4342
4343 2008-08-18  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
4344
4345         * diagnostics.c (permerror_at): Rename as permerror.
4346         (permerror): Delete.
4347         * toplev.h: Likewise.
4348
4349 2008-08-18  Richard Guenther  <rguenther@suse.de>
4350
4351         * passes.c (init_optimization_passes): Remove cleanup_cfg1,
4352         sdse1 and addressables2 passes.  Replace dce1 with cddce1.
4353         Move call_cdce before build_alias.  Move copyrename2,
4354         cunrolli and ccp2 beafore build_alias.  Re-add addressable2
4355         right after final inlining.
4356         * tree-cfg.c (build_gimple_cfg): Do not dump function here.
4357         (pass_build_cfg): But instead via TODO_dump_func.
4358
4359 2008-08-18  Richard Guenther  <rguenther@suse.de>
4360
4361         * tree-sra.c (generate_element_init_1): Deal with NULL constructor
4362         element index.
4363         (scalarize_init): If we failed to generate some initializers
4364         do not generate zeros for not instantiated members.  Instead
4365         rely on the copy out.
4366         * tree-ssa-operands.c (get_addr_dereference_operands): Warn
4367         about missing flow-sensitive alias info only if we have
4368         aliases computed.
4369
4370 2008-08-17  Nick Clifton  <nickc@redhat.com>
4371
4372         * doc/extend.texi (Function Attributes): Fix typo in description
4373         if hot function attribute.
4374
4375 2008-08-17  Daniel Jacobowitz  <dan@codesourcery.com>
4376             Richard Sandiford  <rdsandiford@googlemail.com>
4377
4378         * doc/install.texi (--with-mips-plt): Document.
4379         * doc/invoke.texi (-mplt, -mno-plt): Document.
4380         * config.gcc (mips*-*-*): Add mips-plt to supported_defaults
4381         and handle ${with_mips_plt}.
4382         * config/mips/mips.opt (mplt): New option.
4383         * config/mips/mips.h (TARGET_ABICALLS_PIC0): New macro.
4384         (TARGET_ABICALLS_PIC2): Likewise.
4385         (TARGET_GPWORD): Return false for TARGET_ABSOLUTE_ABICALLS.
4386         (OPTION_DEFAULT_SPECS): Add a mips-plt entry.
4387         (ASM_SPEC): Use !mabi=* instead of !mabi*.
4388         (MIPS_CALL): Use TARGET_ABICALLS_PIC2 instead of TARGET_ABICALLS
4389         to decide whether to output ".option picX" directives.
4390         * config/mips/linux.h (SUBTARGET_ASM_SPEC): Remove -mabi=64 handling.
4391         Pass -call_nonpic rather than -KPIC for -mplt.
4392         (BASE_DRIVER_SELF_SPECS): Remove -mplt if -mno-shared is not present
4393         on the command line.  Also remove it when -mabi=64 is used without
4394         -msym32.
4395         * config/mips/linux64.h (SUBTARGET_ASM_SPEC): Delete.
4396         * config/mips/mips.c (mips_use_pic_fn_addr_reg_p): Handle
4397         TARGET_ABICALLS_PIC0.
4398         (mips_classify_symbol): Use TARGET_ABICALLS_PIC2 instead of
4399         TARGET_ABICALLS.
4400         (mips16_build_function_stub): Only output ".option pic" directives
4401         and PIC stubs if TARGET_ABICALLS_PIC2.  Call through $25 instead of $1.
4402         (mips16_build_call_stub): Fix comment and remove redundant
4403         ".set at"/"set .noat" directives.
4404         (mips_function_rodata_section): Use the default behaviour for
4405         TARGET_ABSOLUTE_ABICALLS.
4406         (mips_file_start): Emit ".option pic0" for TARGET_ABICALLS_PIC0.
4407         (mips_global_pointer): Handle TARGET_ABICALLS_PIC0.
4408         (mips_restore_gp): Do nothing if the current function doesn't use
4409         a global pointer.
4410         (mips_expand_prologue): Only save $gp if the current function uses it.
4411         Use a normal move for TARGET_ABICALLS_PIC0.
4412         (mips_override_options): Only set flag_pic if TARGET_ABICALLS_PIC2.
4413
4414 2008-08-17  Richard Sandiford  <rdsandiford@googlemail.com>
4415
4416         * config/mips/mips.c (mips_save_reg_p): Don't short-circuit rest
4417         of function when handling GLOBAL_POINTER_REGNUM.
4418
4419 2008-08-16  Eric Botcazou  <ebotcazou@adacore.com>
4420
4421         PR ada/20548
4422         * common.opt (-fstack-check): Do not declare the variable here.
4423         (-fstack-check=): New option variant.
4424         * doc/invoke.texi (Code Gen Options): Document it.
4425         * expr.h (STACK_OLD_CHECK_PROTECT): New macro.
4426         (STACK_CHECK_PROTECT): Bump to 3 pages if DWARF-2 EH is used.
4427         (STACK_CHECK_STATIC_BUILTIN): New macro.
4428         * doc/tm.texi (Stack Checking): Document STACK_CHECK_STATIC_BUILTIN.
4429         * opts.c: Include expr.h.
4430         (common_handle_option) <OPT_fold_stack_check_>: New case.
4431         <OPT_fstack_check>: Likewise.
4432         * calls.c (initialize_argument_information): Use TYPE_SIZE_UNIT
4433         consistently in the test for variable-sized types.  Adjust for
4434         new behaviour of flag_stack_check.
4435         * explow.c: Include except.h.
4436         (allocate_dynamic_stack_space): Do not take into account
4437         STACK_CHECK_MAX_FRAME_SIZE for static builtin stack checking.
4438         * function.c (gimplify_parameters): Use DECL_SIZE_UNIT in the test
4439         for variable-sized parameters.  Treat all parameters whose size is
4440         greater than STACK_CHECK_MAX_VAR_SIZE as variable-sized if generic
4441         stack checking is enabled.
4442         * gimplify.c (gimplify_decl_expr): Treat non-static objects whose
4443         size is greater than STACK_CHECK_MAX_VAR_SIZE as variable-sized
4444         if generic stack checking is enabled.
4445         (expand_function_end): Adjust for new behaviour of flag_stack_check.
4446         * reload1.c (reload): Likewise.
4447         * stmt.c (expand_decl): Assert that all automatic variables have
4448         fixed size at this point and remove dead code.
4449         * flags.h (stack_check_type): New enumeration type.
4450         (flag_stack_check): Declare.
4451         * toplev.c (flag_stack_check): New global variable.
4452         * Makefile.in (opts.o): Add dependency on EXPR_H.
4453         (explow.o): Add dependency on except.h.
4454
4455 2008-08-16  Andy Hutchinson  <hutchinsonandy@aim.com>
4456
4457         * config/avr/avr.c (avr_override_options): Reduce value of
4458         PARAM_INLINE_CALL_COST.
4459
4460 2008-08-15  Eric Botcazou  <ebotcazou@adacore.com>
4461
4462         * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: When converting
4463         to BLKmode, try to fetch an inner memory reference.  Use 'mode' in
4464         lieu of TYPE_MODE (type) throughout.
4465
4466 2008-08-15  Joseph Myers  <joseph@codesourcery.com>
4467
4468         * config/arm/arm.c (add_minipool_backward_ref): Check for
4469         8-byte-aligned entries in second case of forcing insertion after a
4470         particular entry.  Change third case to avoid inserting
4471         non-8-byte-aligned entries before 8-byte-aligned ones.
4472
4473 2008-08-15  Richard Guenther  <rguenther@suse.de>
4474
4475         * tree-ssa-ccp.c (maybe_fold_offset_to_reference): Do not
4476         strip components for unknown size accesses.
4477
4478 2008-08-15  Wolfgang Gellerich  <gellerich@de.ibm.com>
4479
4480         * config/s390/2097.md New file.
4481         * config/s390/s390.md ("z10prop" attribute): Define none,
4482         z10_super, z10_super_E1, z10_super_A1, z10_super_c,
4483         z10_super_c_E1, z10_fwd, z10_fwd_A1, z10_fwd_A3, z10_fwd_E1,
4484         z10_rec, z10_fr, z10_fr_A3, z10_fr_E1, z10_c, and z10_cobra as
4485         possible values and apply them to insns as appropriate.
4486         ("type" attribute): Removed itof and added ftrunctf,ftruncdf,
4487         ftruncsd, ftruncdd, itoftf, itofdf, itofsf, itofdd, itoftd,
4488         fdivdd, fdivtd, floaddd, floadsd, fmuldd, fmultd, fsimpdd,
4489         fsimpsd, fsimptd, fstoredd, fstoresd, ftoidfp as possible
4490         values.
4491         ("bfp" mode attribute): Removed.  Every occurence replaced
4492         with <mode>.
4493         * config/s390/s390.c (struct "z10_cost"): Updated entries.
4494         * config/s390/2084.md (insn_reservation "x_itof"): Updated
4495           type attribute.
4496
4497 2008-08-14  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
4498
4499         PR c/28152
4500         * c-parser.c (c_lex_one_token): Do not store the canonical spelling
4501         for keywords.
4502
4503 2008-08-14  Dorit Nuzman  <dorit@il.ibm.com>
4504
4505         * tree-vect-transform.c (vect_create_epilog_for_reduction): Takes an
4506         additional argument. Support reduction when duplication is needed due
4507         to data-types of different sizes in the loop.
4508         (get_initial_def_for_induction): Fix printout.
4509         (vect_get_vec_def_for_stmt_copy): Support case where the
4510         vec_stmt_for_operand is a phi node.
4511         (vectorizable_reduction): Support reduction when duplication is needed
4512         due to data-types of different sizes in the loop.
4513         (vectorizable_call): Remove restriction to not vectorize in case we
4514         have data-types of different sizes in the loop.
4515         (vectorizable_conversion): Likewise.
4516         (vectorizable_operation): Likewise.
4517         (vectorizable_type_demotion): Likewise.
4518         (vectorizable_type_promotion): Likewise.
4519         (vectorizable_induction): Add restriction to not vectorize in case
4520         we have data-types of different sizes in the loop.
4521
4522 2008-08-14  Christophe Saout  <christophe@saout.de>
4523             Uros Bizjak  <ubizjak@gmail.com>
4524
4525         PR target/37101
4526         * config/i386/sse.md (vec_concatv2di): Remove movlps alternative.
4527         (*vec_concatv2di_rex64_sse4_1): Ditto.
4528         (*vec_concatv2di_rex64_sse): Ditto.
4529
4530 2008-08-14  Jakub Jelinek  <jakub@redhat.com>
4531
4532         PR middle-end/37103
4533         * fold-const.c (fold_widened_comparison): Do not allow
4534         sign changes that change the result even if shorter type
4535         is wider than arg1_unw's type.
4536
4537 2008-08-13  Kazu Hirata  <kazu@codesourcery.com>
4538
4539         * gcc.dg/arm-g2.c, gcc.dg/arm-mmx-1.c, gcc.dg/arm-scd42-2.c:
4540         Skip if the multilib testing specifies -march that does not
4541         agree with the one specified in the testcase.
4542
4543 2008-08-13  Joseph Myers  <joseph@codesourcery.com>
4544
4545         * config/sparc/sparc.c (emit_soft_tfmode_cvt): Explicitly sign or
4546         zero extend SImode values being converted to TFmode before passing
4547         to libcalls.
4548
4549 2008-08-13  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4550
4551         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Predefine
4552         __PPU__ when targeting the Cell/B.E. PPU processor.
4553
4554 2008-08-13  Eric Botcazou  <ebotcazou@adacore.com>
4555
4556         * gimple.h (gimple_call_set_chain): Accept SSA variables.
4557         * tree-ssa-pre.c (create_component_ref_by_pieces_1) <CALL_EXPR>:
4558         Rematerialize the static chain, if any.
4559         * tree-ssa-sccvn.c (copy_reference_ops_from_call): Also copy the
4560         static chain.
4561
4562 2008-08-13  H.J. Lu  <hongjiu.lu@intel.com>
4563
4564         * dwarf2out.c (dwarf_stack_op_name): Remove prototype.
4565         (new_loc_descr): Likewise.
4566         (add_loc_descr): Likewise.
4567         (size_of_loc_descr): Likewise.
4568         (size_of_locs): Likewise.
4569         (output_loc_operands): Likewise.
4570         (output_loc_sequence): Likewise.
4571         (new_reg_loc_descr): New.
4572         (build_cfa_loc): Use it.
4573         (build_cfa_aligned_loc): Likewise.
4574         (one_reg_loc_descriptor): Likewise.
4575         (based_loc_descr): Likewise.
4576
4577 2008-08-13  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
4578
4579         PR 30551
4580         * doc/invoke.texi (Wmain): Update.
4581         * c-decl.c (start_decl): warn_main is only 0 or 1.
4582         (start_function): Likewise. Fix formatting.
4583         (finish_function): Delete redundant warning.
4584         * c.opt (Wmain): Add Var(warn_main) and Init(-1).
4585         * c-opts (c_common_handle_option): -Wall only has effect if
4586         warn_main is uninitialized. OPT_Wmain is automatically
4587         handled. -pedantic also enables Wmain.
4588         (c_common_post_options): Handle all logic for Wmain here.
4589         * c-common.c (warn_main): Delete.
4590         (check_main_parameter_types): Make pedwarns conditional on
4591         OPT_Wmain.
4592         * c-common.h (warn_main): Delete.
4593
4594 2008-08-13  H.J. Lu  <hongjiu.lu@intel.com>
4595
4596         PR middle-end/36701
4597         * expr.c (emit_group_store): Allocate stack temp with the
4598         largest alignment when copying from register to stack.
4599
4600 2008-08-13  Richard Guenther  <rguenther@suse.de>
4601
4602         * tree.h (maybe_fold_offset_to_address): Declare.
4603         * tree-ssa-ccp.c (surely_varying_stmt_p): Fix typo in last commit.
4604         (ccp_fold): Handle pointer conversions the same as fold_stmt.
4605         Likewise for POINTER_PLUS_EXPR.
4606         (maybe_fold_offset_to_reference): Enable disabled code.
4607         (maybe_fold_offset_to_address): New function.
4608         (fold_stmt_r): Use it.
4609         (fold_gimple_assign): Likewise.
4610         * gimplify.c (gimplify_conversion): Use maybe_fold_offset_to_address.
4611         (gimplify_expr): Likewise.
4612
4613 2008-08-13  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
4614
4615         * toplev.h (pedwarn_at): Fix declaration.
4616
4617 2008-08-13  Joseph Myers  <joseph@codesourcery.com>
4618
4619         * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
4620         LINK_SPEC): Use %R in -Y P argument.
4621
4622 2008-08-13  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
4623
4624         PR c/15236
4625         * diagnostic.c (pedwarn_at): New.
4626         * toplev.h (pedwarn_at): Declare.
4627         * c-tree.h (build_enumerator): Update declaration.
4628         * c-decl.c (finish_enum): Update comment.
4629         (build_enumerator): Take a location parameter. Give a pedwarn but do
4630         not perform any conversion.
4631         * c-parser.c (c_parser_enum_specifier): Set correct location for
4632         enumerator.
4633
4634 2008-08-13  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
4635
4636         PR 35635
4637         * c-common.c (conversion_warning): Use a switch. Ignore boolean
4638         expressions except for conversions to signed:1 bitfields. Handle
4639         COND_EXPR with constant operands.
4640
4641 2008-08-13  Richard Guenther  <rguenther@suse.de>
4642
4643         PR tree-optimization/15255
4644         * tree-ssa-reassoc.c (linearize_expr_tree): Declare.
4645         (struct oecount_s): New struct and VEC types.
4646         (cvec): New global.
4647         (oecount_hash): New function.
4648         (oecount_eq): Likewise.
4649         (oecount_cmp): Likewise.
4650         (zero_one_operation): New function.
4651         (build_and_add_sum): Likewise.
4652         (undistribute_ops_list): Perform un-distribution of multiplication
4653         and division on the chain of summands.
4654         (should_break_up_subtract): Also break up subtracts for factors.
4655         (reassociate_bb): Delete dead visited statements.
4656         Call undistribute_ops_list.  Re-sort and optimize if it did something.
4657         * passes.c (init_optimization_passes): Move DSE before
4658         reassociation.
4659         * tree-ssa-loop-niter.c (stmt_dominates_stmt_p): Correctly handle
4660         PHI nodes.
4661
4662 2008-08-12  Janis Johnson  <janis187@us.ibm.com>
4663
4664         * doc/invoke.texi (-fipa-pta): Say the option is experimental.
4665
4666         * doc/invoke.texi: Revert unintended checkin.
4667
4668 2008-08-12  Nathan Froyd  <froydnj@codesourcery.com>
4669
4670         PR libgomp/26165
4671         * gcc.c (include_spec_function): Tweak call to find_a_file.
4672
4673 2008-08-12  Jakub Jelinek  <jakub@redhat.com>
4674
4675         PR middle-end/37014
4676         * expr.c (expand_expr_real_1): Handle TRUTH_ANDIF_EXPR
4677         and TRUTH_ORIF_EXPR.
4678         * dojump.c (do_jump): Likewise.
4679
4680         PR tree-optimization/37084
4681         * tree-inline.c (copy_bb): Call gimple_regimplify_operands
4682         if id->regimplify, don't assume stmt is a cast assignment.
4683
4684 2008-08-12  Anatoly Sokolov  <aesok@post.ru>
4685
4686         * final.c (final_scan_insn): Use app_enable/app_disable functions.
4687
4688 2008-08-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4689
4690         PR bootstrap/37097
4691         * builtins.c (do_mpfr_bessel_n): Fix copy-and-paste bug introduced
4692         by last change.
4693
4694 2008-08-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4695
4696         * defaults.h (TARGET_FLOAT_FORMAT): Remove.
4697         (UNKNOWN_FLOAT_FORMAT, IEEE_FLOAT_FORMAT, VAX_FLOAT_FORMAT): Remove.
4698
4699         * config/alpha/alpha.h (TARGET_FLOAT_FORMAT): Remove.
4700         * config/iq2000/iq2000.h (TARGET_FLOAT_FORMAT): Remove.
4701         * config/pdp11/pdp11.h (TARGET_FLOAT_FORMAT): Remove.
4702         * config/score/score.h (TARGET_FLOAT_FORMAT): Remove.
4703         * config/vax/vax.h (TARGET_FLOAT_FORMAT): Remove.
4704
4705         * doc/tm.texi (Storage Layout): Remove documentation for
4706         TARGET_FLOAT_FORMAT.
4707
4708         * simplify-rtx.c (simplify_binary_operation_1): Replace
4709         TARGET_FLOAT_FORMAT check by appropriate HONOR_... checks.
4710
4711 2008-08-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4712
4713         * real.h (struct real_format): New member has_sign_dependent_rounding.
4714         * real.c (ieee_single_format, mips_single_format, motorola_single_format,
4715         spu_single_format, ieee_double_format, mips_double_format,
4716         motorola_double_format, ieee_extended_motorola_format,
4717         ieee_extended_intel_96_format, ieee_extended_intel_128_format,
4718         ieee_extended_intel_96_round_53_format, ibm_extended_format,
4719         mips_extended_format, ieee_quad_format, mips_quad_format,
4720         vax_f_format, vax_d_format, vax_g_format): Initialize it.
4721         * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
4722
4723         * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES,
4724         MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): Remove.
4725         * config/spu/spu.h (MODE_HAS_NANS, MODE_HAS_INFINITIES,
4726         MODE_HAS_SIGN_DEPENDENT_ROUNDING): Remove.
4727         (ROUND_TOWARDS_ZERO): Likewise.
4728
4729         * real.h (REAL_MODE_FORMAT): Protect MODE against macro expansion.
4730         (FLOAT_MODE_FORMAT): New macro.
4731         (REAL_MODE_FORMAT_COMPOSITE_P): Remove, replace by ...
4732         (MODE_COMPOSITE_P): ... this new macro.
4733         (MODE_HAS_NANS, MODE_HAS_INFINITIES, MODE_HAS_SIGNED_ZEROS,
4734         MODE_HAS_SIGN_DEPENDENT_ROUNDING): New macros.
4735         * machmode.h (GET_MODE_INNER): Cast result to enum machine_mode.
4736
4737         * flags.h: Include "real.h".
4738
4739         * fold-const.c (const_binop): Use MODE_COMPOSITE_P instead of
4740         REAL_MODE_FORMAT_COMPOSITE_P.
4741         * simplify-rtx.c (simplify_const_binary_operation): Likewise.
4742
4743         * doc/tm.texi (Storage Layout): Remove documentation of
4744         MODE_HAS_NANS, MODE_HAS_INFINITIES, MODE_HAS_SIGNED_ZEROS,
4745         MODE_HAS_SIGN_DEPENDENT_ROUNDING.  Update documentation of
4746         ROUND_TOWARDS_ZERO and LARGEST_EXPONENT_IS_NORMAL to clarify
4747         they only apply to libgcc2.a.
4748
4749 2008-08-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4750
4751         * config/spu/float_disf.c: New file.
4752         * config/spu/float_unsdisf.c: New file.
4753         * config/spu/t-elf (LIB2FUNCS_STATIC_EXTRA): Add them.
4754         (LIB2FUNCS_EXCLUDE): Define.
4755
4756 2008-08-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4757             Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
4758
4759         * real.h (struct real_format): New member round_towards_zero.
4760         * real.c (round_for_format): Respect fmt->round_towards_zero.
4761         (ieee_single_format, mips_single_format, motorola_single_format,
4762         spu_single_format, ieee_double_format, mips_double_format,
4763         motorola_double_format, ieee_extended_motorola_format,
4764         ieee_extended_intel_96_format, ieee_extended_intel_128_format,
4765         ieee_extended_intel_96_round_53_format, ibm_extended_format,
4766         mips_extended_format, ieee_quad_format, mips_quad_format,
4767         vax_f_format, vax_d_format, vax_g_format): Initialize it.
4768         * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
4769
4770         * builtins.s (do_mpfr_arg1): Consider round_towards_zero member of
4771         real_format to choose rounding mode when calling MPFR functions.
4772         (do_mpfr_arg2, do_mpfr_arg3, do_mpfr_sincos): Likewise.
4773         (do_mpfr_bessel_n, do_mpfr_remquo, do_mpfr_lgamma_r): Likewise.
4774
4775         * real.h (real_to_decimal_for_mode): Add prototype.
4776         * real.c (real_to_decimal_for_mode): Renames old real_to_decimal.
4777         Respect target rounding mode when generating decimal representation.
4778         (real_to_decimal): New stub for backwards compatibility.
4779         * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Use
4780         real_to_decimal_for_mode instead of real_to_decimal.
4781
4782         * config/spu/spu.md ("floatdisf2", "floatunsdisf2"): New.
4783
4784 2008-08-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4785             Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
4786
4787         * real.c (spu_single_format): New variable.
4788         * real.h (spu_single_format): Declare.
4789
4790         * config/spu/spu.c (spu_override_options): Install SFmode format.
4791         (spu_split_immediate): Use integer mode to operate on pieces of
4792         floating-point values in all cases.
4793
4794         * config/spu/spu.md (UNSPEC_FLOAT_EXTEND, UNSPEC_FLOAT_TRUNCATE): New.
4795         ("extendsfdf2"): Use UNSPEC_FLOAT_EXTEND instead of FLOAT_EXTEND.
4796         ("truncdfsf2"): Use UNSPEC_FLOAT_TRUNCATE instead of FLOAT_TRUNCATE.
4797
4798 2008-08-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4799
4800         * config/spu/spu.c (spu_safe_dma): Respect TARGET_SAFE_DMA.
4801
4802 2008-08-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4803
4804         * config/spu/spu.h (DWARF_FRAME_RETURN_COLUMN): Define.
4805
4806 2008-08-12  Jakub Jelinek  <jakub@redhat.com>
4807
4808         PR c++/36688
4809         * gimplify.c (gimplify_modify_expr_rhs): Test TREE_READONLY
4810         on the VAR_DECL instead of TYPE_READONLY on its type.
4811
4812 2008-08-12  Ira Rosen  <irar@il.ibm.com>
4813
4814         * tree-vectorizer.c: Depend on langhooks.h.
4815         (supportable_widening_operation): Add two arguments. Support double
4816         type conversions.
4817         (supportable_narrowing_operation): Likewise.
4818         * tree-vectorizer.h (supportable_widening_operation): Add two
4819         arguments.
4820         (supportable_narrowing_operation): Likewise.
4821         * tree-vect-patterns.c (vect_recog_widen_mult_pattern) : Call
4822         supportable_widening_operation with correct arguments.
4823         * tree-vect-transform.c (vectorizable_conversion): Likewise.
4824         (vectorizable_type_demotion): Support double type conversions.
4825         (vectorizable_type_promotion): Likewise.
4826         * Makefile.in (tree-vectorizer.o): Depend on langhooks.h.
4827
4828 2008-08-11  Michael Matz  <matz@suse.de>
4829
4830         * i386/i386.c (override_options): Move initialisation from
4831         flag_schedule_insns_after_reload to here from ...
4832         (optimization_options): ... here.
4833
4834 2008-08-11  Jakub Jelinek  <jakub@redhat.com>
4835
4836         PR rtl-optimization/36998
4837         * dwarf2out.c (compute_barrier_args_size_1,
4838         compute_barrier_args_size): Temporarily remove assertions.
4839
4840 2008-08-10  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
4841
4842         PR middle-end/20644
4843         * tree-ssa.c (struct walk_data): Add new flag
4844         warn_possibly_uninitialized.
4845         (warn_uninitialized_var): Use it.
4846         (warn_uninitialized_vars): New.
4847         (execute_early_warn_uninitialized): Call it.
4848         (execute_late_warn_uninitialized): Likewise.
4849
4850 2008-08-09  Andrew Pinski  <andrew_pinski@playstation.sony.com>
4851
4852         PR middle-end/36238
4853         * reload1.c (gen_reload): Guard calls to get_secondary_mem
4854         for memory subregs.
4855
4856 2008-08-09  Jan Hubicka  <jh@suse.cz>
4857
4858         PR target/37055
4859         * optabs.c (maybe_emit_unop_insn): Remove produced code if
4860         expansion failed.
4861         (expand_fix): Be prepared for expansion to fail.
4862         (expand_sfix_optab): Remove instructions if expansion failed.
4863
4864 2008-08-09  Anatoly Sokolov  <aesok@post.ru>
4865
4866         * config/avr/avr.c (avr_mcu_types): Move the AT43USB320 device to
4867         avr31 architecture.
4868         * config/avr/avr.h (CRT_BINUTILS_SPECS): (Ditto.).
4869         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
4870
4871 2008-08-09  Richard Sandiford  <rdsandiford@googlemail.com>
4872
4873         * config.gcc (mips*-*-linux*, mips64*-*-linux*): Add
4874         mips/t-libgcc-mips16 to tmake_file.
4875         * config/mips/mips-protos.h (mips_call_type): New enum.
4876         (mips_pic_base_register, mips_got_load): Declare.
4877         (mips_restore_gp): Take an rtx argument.
4878         (mips_use_pic_fn_addr_reg_p): Declare.
4879         (mips_expand_call): Replace the sibcall_p argument with
4880         a mips_call_type argument.  Add a lazy_p parameter.
4881         (mips_split_call): Declare.
4882         * config/mips/mips.h (MIPS16_PIC_TEMP_REGNUM): New macro.
4883         (MIPS16_PIC_TEMP): Likewise.
4884         (reg_class): Delete M16_NA_REGS.
4885         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update accordingly.
4886         (SYMBOL_FLAG_BIND_NOW, SYMBOL_REF_BIND_NOW_P): New macros.
4887         (mips_split_hi_p): Declare.
4888         * config/mips/mips.c (mips_split_hi_p): New array.
4889         (mips_regno_to_class): Change M16_NA_REGS entries to M16_REGS.
4890         (mips_got_symbol_type_p): New function.
4891         (mips_global_symbol_p): Check SYMBOL_REF_EXTERNAL_P.
4892         (mips16_stub_function_p): New function.
4893         (mips16_local_function_p): Likewise.
4894         (mips_use_pic_fn_addr_reg_p): Likewise.
4895         (mips_cannot_force_const_mem): Return false for HIGHs.
4896         Extend CONST_INT and symbolic handling to MIPS16, using
4897         mips_symbol_insns to check that the base symbol type is a
4898         legitimate constant.  Reject GOT-based constants if
4899         TARGET_MIPS16_PCREL_LOADS.
4900         (mips_const_insns): Check targetm.cannot_force_const_mem when
4901         decomposing a symbolic base and a large offset.
4902         (mips_emit_call_insn): Add ORIG_ADDR and ADDR parameters.
4903         When calling a function that needs $25 from MIPS16 code,
4904         move the target address into $25 separately and add a USE
4905         to the call insn.
4906         (mips16_gp_pseudo_reg): Insert the initializer immediately
4907         before the first real insn.
4908         (mips_pic_base_register, mips_got_load): New functions.
4909         (mips_split_symbol): Generalize the name of the LO_SUM_OUT
4910         parameter to LOW_OUT.  Say that it can be any valid SET_SRC
4911         when splitting a load-address operation.  Split SYMBOL_GOT_DISP
4912         constants and highs of SYMBOL_GOT_PAGE_OFST constants.
4913         (mips_call_tls_get_addr): Update the call to mips_expand_call,
4914         also passing NULL_RTX rather than const0_rtx as the aux argument.
4915         (mips_rewrite_small_data_p): Check mips_lo_relocs and mips_split_p
4916         instead of TARGET_EXPLICIT_RELOCS.
4917         (mips_ok_for_lazy_binding_p): Check SYMBOL_REF_BIND_NOW_P.
4918         (mips_load_call_address): Replace the sibcall_p argument with
4919         a mips_call_type argument.  Use mips_got_load.
4920         (mips16_local_alias): New structure.
4921         (mips16_local_aliases): New variable.
4922         (mips16_local_aliases_hash): New function.
4923         (mips16_local_aliases_eq): Likewise.
4924         (mips16_local_alias): Likewise.
4925         (mips16_stub_function): Likewise.
4926         (mips16_build_function_stub): Create a local alias for the target
4927         function.  Handle TARGET_ABICALLS.  For PIC abicalls, emit a
4928         .cpload directive and an R_MIPS_NONE relocation for the target
4929         function, then load the alias rather than the function itself.
4930         Wrap the non-PIC abicalls version in ".option pic0/.option pic2".
4931         (mips16_copy_fpr_return_value): Use mips16_stub_function and
4932         mips_expand_call.  Set SYMBOL_REF_BIND_NOW on the symbol.
4933         (mips16_build_call_stub): Replace the FN parameter with an
4934         FN_PTR parameter.  Force the address into a register if it
4935         isn't a call_insn_operand; don't rely on the caller to do this.
4936         If a call to a locally-defined and locally-binding MIPS16
4937         function must be made indirectly, redirect the call to the
4938         function's local alias.  Use mips16_stub_function_p,
4939         mips16_stub_function, mips_expand_call and use_reg.
4940         Set SYMBOL_FLAG_BIND_NOW on __mips_call_* symbols.
4941         Use explicit %hi and %lo accesses where possible.
4942         Use MIPS_CALL to generate the correct code form of a
4943         jal instruction.  Add clobbers of $18 instead of uses.
4944         Update the call to mips_emit_call_insn.
4945         (mips_expand_call): Replace the SIBCALL_P argument with a
4946         mips_call_type argument and handle the new MIPS_CALL_EPILOGUE value.
4947         Take a LAZY_P parameter.  Call mips16_build_call_stub first,
4948         allowing it to modify the call address.  Update the calls to
4949         mips_load_call_address and mips_emit_call_insn.
4950         (mips_split_call): New function.
4951         (mips_init_relocs): Clear mips_split_hi_p.  Only use %gp_rel if
4952         !TARGET_MIPS16.  Split SYMBOL_GOT_DISP, and the high parts of
4953         SYMBOL_GOT_PAGE_OFST, for MIPS16 code.
4954         (mips_global_pointer): Check mips16_cfun_returns_in_fpr_p.
4955         (mips_extra_live_on_entry): Include MIPS16_PIC_TEMP_REGNUM
4956         if TARGET_MIPS16.
4957         (mips_cprestore_slot): New function.
4958         (mips_restore_gp): Take a TEMP parameter.  Handle TARGET_MIPS16
4959         and use mips_cprestore_slot.
4960         (mips_output_function_prologue): Handle TARGET_MIPS16 for
4961         LOADGP_OLDABI.
4962         (mips_emit_loadgp): Move into MIPS16_PIC_TEMP for MIPS16,
4963         then use a copygp_mips16 instruction to set up $28.
4964         (mips_expand_prologue): Initialize the cprestore slot for MIPS16 too.
4965         (mips16_lay_out_constants): Call split_all_insns_noflow.
4966         (mips_reorg_process_insns): Explicitly set all_noreorder_p to
4967         false if TARGET_MIPS16.
4968         (mips_reorg): Don't call vr4130_align_insns if TARGET_MIPS16.
4969         (mips_output_mi_thunk): Use mips_got_symbol_type_p.  Use the
4970         mips_dangerous_for_la25_p approach for MIPS16 PIC calls too.
4971         (mips_set_mips16_mode): Always set MASK_EXPLICIT_RELOCS for
4972         MIPS16 code.  Allow MIPS16 o32 PIC.
4973         (mips_override_options): Allow MIPS16 o32 PIC.
4974         * config/mips/mips.md: Lower CONST_GP_P moves into register moves
4975         after reload if TARGET_USE_GOT.
4976         (UNSPEC_COPYGP): New constant.
4977         (length): Use a default length of 8 for MIPS16 GOT loads.
4978         (*got_disp<mode>): Check mips_split_p instead of TARGET_XGOT.
4979         (*got_page<mode>): Check mips_split_hi_p.
4980         (*got_disp<mode>, *got_page<mode>): Use mips_got_load.
4981         (unspec_got<mode>, unspec_call<mode>): New expanders.
4982         (load_got<mode>, load_call<mode>): Remove the length attributes.
4983         Use a got attribute instead of a type attribute.
4984         (copygp_mips16): New insn.
4985         (restore_gp): Add a scratch clobber and pass it to mips_restore_gp.
4986         (load_call<mode>): Use a "d" constraint instead of an "r" constraint.
4987         (sibcall, sibcall_value, call, call_value): Update the calls
4988         to mips_expand_call.
4989         (call_internal, call_value_internal): Use mips_split_call.
4990         (call_value_multiple_internal): Likewise.
4991         (call_split): Move after call_internal (the insn it is split from).
4992         (call_internal_direct, call_value_internal_direct): Turn into
4993         define_insn_and_splits.  Split if TARGET_SPLIT_CALLS.
4994         (call_direct_split, call_value_direct_split): New patterns.
4995         * config/mips/constraints.md (c): Handle TARGET_MIPS16 first
4996         and use M16_REGS instead of M16_NA_REGS.
4997         * config/mips/predicates.md (const_call_insn_operand): Replace
4998         the TARGET_ABSOLUTE_ABICALLS-based check with a more general
4999         mips_use_pic_fn_addr_reg_p check.
5000         (move_operand): Reject HIGHs if mips_split_hi_p.
5001         * config/mips/mips16.S: Assembly as empty if the ABI is not suitable.
5002         (__mips16_floatunsisf): Inline __mips16_floatsisf.
5003         (CALL_STUB_NO_RET, CALL_STUB_REG): Copy the target register to $25.
5004         * config/mips/libgcc-mips16.ver: New file.
5005         * config/mips/t-libgcc-mips16 (SHLIB_MAPFILES): Add
5006         $(srcdir)/config/mips/libgcc-mips16.ver.
5007
5008 2008-08-09  Richard Sandiford  <rdsandiford@googlemail.com>
5009
5010         * config/mips/mips.c (mips_unspec_address_offset): Move earlier in file.
5011         (mips_unspec_address, mips_unspec_offset_high): Likewise.
5012         (mips_ok_for_lazy_binding_p, mips_load_call_address): Likewise.
5013         (mips16_cfun_returns_in_fpr_p): Likewise.
5014
5015 2008-08-09  Richard Sandiford  <rdsandiford@googlemail.com>
5016
5017         * config/mips/mips.h (MASK_RETURN_ADDR): Expand commentary.
5018         * config/mips/linux-unwind.h (mips_fallback_frame_state): Add 2
5019         rather than 4 to PC.
5020
5021 2008-08-09  Richard Sandiford  <rdsandiford@googlemail.com>
5022
5023         * config/mips/mips.h (STATIC_CHAIN_REGNUM): Remap to $15.
5024         (FUNCTION_PROFILER): Save the static chain pointer into $2
5025         beforehand and restore it aftewards.
5026         (TRAMPOLINE_TEMPLATE): Adjust accordingly.  Load the target
5027         address directly into $25 and call the function through $25;
5028         do not clobber $3.  Pad the DImode version to cover the space
5029         left by the deleted $25 <- $3 move.
5030         (TRAMPOLINE_SIZE): Adjust the size of the SImode version after
5031         the removal of the $25 <- $3 move.
5032         (INITIALIZE_TRAMPOLINE): Update offsets accordingly.
5033         * config/mips/sdemtk.h (FUNCTION_PROFILER): As for mips.h.
5034
5035 2008-08-09  Richard Sandiford  <rdsandiford@googlemail.com>
5036             Daniel Jacobowitz  <dan@codesourcery.com>
5037
5038         * config/mips/mips.h (FUNCTION_NAME_ALREADY_DECLARED): Delete.
5039         * config/mips/linux.h (ASM_DECLARE_FUNCTION_NAME): Delete.
5040         (ASM_DECLARE_FUNCTION_SIZE, FUNCTION_NAME_ALREADY_DECLARED): Delete.
5041         * config/mips/mips.c (mips_start_function_definition): New function.
5042         (mips_end_function_definition): Likewise.
5043         (mips_output_function_prologue): Use mips_start_function_definition.
5044         (mips_output_function_epilogue): Use mips_end_function_definition.
5045         (build_mips16_function_stub): Use mips_start_function_definition
5046         and mips_end_function_definition.
5047         (build_mips16_call_stub): Likewise.
5048
5049 2008-08-09  Richard Guenther  <rguenther@suse.de>
5050
5051         * gimple.c (gimple_build_call_1): Deal with FUNCTION_DECL fn.
5052         * gimple.h (gimple_call_fn): Adjust comment.
5053         (gimple_call_set_fndecl): New function.
5054         (gimple_call_fndecl): Adjust for GIMPLE_CALL no
5055         longer having bare FUNCTION_DECL operand.
5056         (gimple_call_return_type): Likewise.
5057         * tree-cfg.c (verify_stmt): Verify function operand of a GIMPLE_CALL.
5058
5059         * value-prof.c (gimple_divmod_fixed_value): Do not emit labels.
5060         (gimple_mod_pow2): Likewise.
5061         (gimple_mod_subtract): Likewise.
5062         (gimple_ic): Likewise.
5063         (gimple_stringop_fixed_value): Likewise.
5064         (gimple_indirect_call_to_profile): Fix for GIMPLE_CALL no
5065         longer having bare FUNCTION_DECL operand.
5066         * ipa-cp.c (ipcp_update_callgraph): Use gimple_call_set_fndecl.
5067         * omp-low.c (optimize_omp_library_calls): Likewise.
5068         * cgraphunit.c (update_call_expr): Likewise.
5069         * tree-ssa-math-opts.c (execute_cse_reciprocals): Likewise.
5070         (execute_convert_to_rsqrt): Likewise.
5071         * cfgexpand.c (gimple_to_tree): Simplify.
5072         (release_stmt_tree): Fix for GIMPLE_CALL no longer having
5073         bare FUNCTION_DECL operand.
5074         * tree-nested.c (init_tmp_var_with_call): Use gimple_call_return_type.
5075         (convert_gimple_call): Use gimple_call_fndecl.
5076         * c-common.c (c_warn_unused_result): Likewise.
5077
5078 2008-08-09  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
5079
5080         PR c/17880
5081         * c-typeck.c (digest_init): Call verify_sequence_points from here.
5082         (c_finish_return): Likewise.
5083         (c_start_case): Likewise.
5084         * c-common.c (warn_for_collisions_1): Use explicit location in
5085         warning.
5086         * c-parser.c (c_parser_condition): New. Call
5087         verify_sequence_points.
5088         (c_parser_paren_condition): Call c_parser_condition.
5089         (c_parser_for_statement): Call c_parser_condition.
5090
5091 2008-08-09  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
5092
5093         PR 36901
5094         * diagnostic.def (DK_PEDWARN, DK_PERMERROR): New.
5095         * diagnostic.c (pedantic_warning_kind, permissive_error_kind):
5096         Moved from diagnostic.h
5097         (diagnostic_report_diagnostic): Return bool. Handle DK_PEDWARN and
5098         DK_PERMERROR.
5099         (emit_diagnostic): New.
5100         (warning0, pedwarn0): Delete.
5101         (warning, warning_at, pedwarn, permerror): Return bool.
5102         * diagnostic.h (pedantic_warning_kind, permissive_error_kind):
5103         Moved to diagnostic.c.
5104         (struct diagnostic_context): Use correct type for
5105         classify_diagnostic.
5106         (diagnostic_report_diagnostic): Update declaration.
5107         (emit_diagnostic): Declare.
5108         * errors.c (warning): Return bool.
5109         * errors.h (warning): Update declaration.
5110         * toplev.h (warning0, pedwarn0): Delete.
5111         (warning, warning_at, pedwarn, permerror): Return bool.
5112         * c-errors.c (pedwarn_c99, pedwarn_c90): Use DK_PEDWARN.
5113         * c-decl.c (locate_old_decl): Delete 'diag' argument. Always use
5114         inform. Update all calls.
5115         (diagnose_mismatched_decls): Check return value of warning/pedwarn
5116         before giving informative note.
5117         (implicit_decl_warning): Likewise.
5118         * c-typeck.c (build_function_call): Likewise.
5119         * tree-sssa.c (warn_uninit): Likewise.
5120         * builtins.c (gimplify_va_arg_expr): Likewise.
5121
5122 2008-08-09  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
5123
5124         PR 7651
5125         * doc/invoke.texi (-Wextra): Move warning from here...
5126         (-Wuninitialized): ... to here.
5127
5128 2008-08-08  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
5129
5130         PR 28875
5131         * flags.h (set_Wunused): Delete
5132         * toplev.c (process_options): Handle Wunused flags here.
5133         * opts.c (maybe_warn_unused_parameter): Delete.
5134         (common_handle_option): Replace set_Wunused by warn_unused.
5135         (set_Wextra): Do not handle Wunused-parameter here.
5136         (set_Wunused): Delete.
5137         * c-opts.c (c_common_handle_option): Replace set_Wunused by
5138         warn_unused.
5139         * common.opt (Wunused): Add Var and Init.
5140         (Wunused-function): Likewise.
5141         (Wunused-label): Likewise.
5142         (Wunused-parameter): Likewise.
5143         (Wunused-value): Likewise.
5144         (Wunused-variable): Likewise.
5145
5146 2008-08-08  Peter Bergner  <bergner@vnet.ibm.com>
5147
5148         * doc/invoke.texi: Add cpu_type power7.
5149         * config.in (HAVE_AS_VSX): New.
5150         * config.gcc: Add cpu_type power7.
5151         * configure.ac (HAVE_AS_VSX): Check for assembler support of the
5152         VSX instructions.
5153         * configure: Regenerate.
5154         * config/rs6000/rs6000.c (rs6000_override_options): Alias power7 to
5155         power5.
5156         * config/rs6000/rs6000.h (ASM_CPU_POWER7_SPEC): Define.
5157         (ASM_CPU_SPEC): Pass %(asm_cpu_power7) for -mcpu=power7.
5158         (EXTRA_SPECS): Add asm_cpu_power7 spec string.
5159
5160 2008-08-08  Dorit Nuzman  <dorit@il.ibm.com>
5161
5162         * tree-vect-transform.c (vectorizable_conversion): Pass the integral
5163         type to vectorize.builtin_conversion.
5164         (vectorizable_conversion): Likewise.
5165         * config/i386/i386.c (ix86_vectorize_builtin_conversion): Always takes
5166         integral type as input.
5167         * config/rs6000/rs6000.c (rs6000_builtin_conversion): Add case for
5168         FIX_TRUNC_EXPR.
5169         (rs6000_expand_builtin): Add case for ALTIVEC_BUILTIN_VCTUXS
5170         and ALTIVEC_BUILTIN_VCTSXS.
5171         (rs6000_builtin_mul_widen_even. rs6000_builtin_mul_widen_odd): Fix
5172         formatting.
5173
5174 2008-08-08  Richard Guenther  <rguenther@suse.de>
5175
5176         * tree-ssa-ccp.c (likely_value): Calls are not all varying.
5177         (surely_varying_stmt_p): Calls are varying only if they are
5178         non-builtin and not indirect or have no result.
5179         (ccp_fold): Re-instantiate code before the tuples merge.
5180
5181 2008-08-08  Richard Guenther  <rguenther@suse.de>
5182
5183         PR tree-optimization/37056
5184         * gimple.h (gimple_assign_rhs_class): New helper function.
5185         * tree-ssa-loop-niter.c (get_val_for): Fix tuplification, handle
5186         unary operations properly.
5187
5188 2008-08-07  Jan Hubicka  <jh@suse.cz>
5189
5190         * i386.h (ix86_size_cost): Declare.
5191         (ix86_cur_cost): New function macro.
5192         * i386.md (peepholes expanding size and splitters): Predicate by
5193         optimize_insn_for_speed_p.
5194         (peepholes reduce size and splitters): Predicate by
5195         optimize_insn_for_size_p.
5196         * i386.c (ix86_size_cost): Rename from ...
5197         (size_cost): This one.
5198         (override_options): Update.
5199         (decide_alg): Likewise.
5200         (ix86_expand_clear): Use RTL profile.
5201         (ix86_pad_returns): Use RTL profile.
5202
5203 2008-08-07  Jan Hubicka  <jh@suse.cz>
5204
5205         * recog.c (split_all_insns): Set RTL profile
5206         (peephole2_optimize): Likewise.
5207         * function.c (thread_prologue_and_epilogue_insns): Likewise.
5208         * combine.c (combine_instructions): Likewise.
5209
5210 2008-08-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5211
5212         * c-common.c (c_common_reswords): Also warn about keyword "bool".
5213
5214 2008-08-07  Bob Wilson  <bob.wilson@acm.org>
5215
5216         * config/xtensa/xtensa.c (xtensa_copy_incoming_a7): Copy incoming
5217         value in a6 after the set_frame_ptr insn.
5218
5219 2008-08-07  Richard Henderson  <rth@redhat.com>
5220
5221         PR debug/37033
5222         * gcc.c (cpp_options): Pass along -g*.
5223
5224 2008-08-07  Joseph Myers  <joseph@codesourcery.com>
5225
5226         * config/arm/arm.c (output_move_neon): Update comment describing
5227         big-endian vector layout.
5228         (arm_assemble_integer): Do not handle big-endian NEON vectors
5229         specially.
5230         * config/arm/neon.md (vec_set<mode>_internal, vec_extract<mode>,
5231         neon_vget_lane<mode>_sext_internal,
5232         neon_vget_lane<mode>_zext_internal, neon_vget_lane<mode>): Adjust
5233         element indices for big-endian.
5234
5235 2008-08-07  Richard Henderson  <rth@redhat.com>
5236
5237         * configure.ac (HAVE_GAS_CFI_PERSONALITY_DIRECTIVE): New.
5238         * configure, config.in: Rebuild.
5239         * debug.h (dwarf2out_do_cfi_asm): Declare.
5240         * c-cppbuiltin.c (c_cpp_builtins): Use it.
5241         * dwarf2out.c (dwarf2out_do_cfi_asm): New.
5242         (dwarf2out_cfi_label, add_fde_cfi, output_call_frame_info,
5243         dwarf2out_begin_prologue, dwarf2out_end_epilogue): Use it.
5244
5245 2008-08-07  Joseph Myers  <joseph@codesourcery.com>
5246
5247         * config/arm/iwmmxt.md (movv8qi_internal, movv4hi_internal,
5248         movv2si_internal): Combine into mov<mode>_internal.
5249         (movv2si_internal_2): Remove.
5250
5251 2008-08-07  Jan Hubicka  <jh@suse.cz>
5252
5253         PR target/37048
5254         * i386.md (single stringop patterns): Enable unconditionally.
5255
5256 2008-08-07  H.J. Lu  <hongjiu.lu@intel.com>
5257
5258         PR target/36992
5259         * config/i386/emmintrin.h (_mm_move_epi64): Use
5260         __builtin_ia32_movq128.
5261
5262         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MOVQ128.
5263         (bdesc_args): Add IX86_BUILTIN_MOVQ128.
5264
5265         * config/i386/sse.md (sse2_movq128): New.
5266
5267         * doc/extend.texi: Document __builtin_ia32_movq128.
5268
5269 2008-08-07  Richard Guenther  <rguenther@suse.de>
5270
5271         PR middle-end/37042
5272         * tree-ssa-alias-warnings.c (nonstandard_alias_p): Ref-all
5273         pointers can access anything.
5274
5275 2008-08-06  Jan Hubicka  <jh@suse.cz>
5276
5277         * optabs.c (emit_unop_insn): Break out to ...
5278         (maybe_emit_unop_insn): ... this one.
5279         (expand_sfix_optab): Use maybe variant.
5280         * optabs.h (maybe_emit_unop_insn): Declare.
5281
5282         * i386.md (mov0 patterns): Enable by default.
5283         (FP conversion expanders): Disable expansion of code expanding
5284         sequences when instruction should be optimized for size.
5285         (single strinop patterns): Enable when optimizing for size.
5286         (string expanders): Disable expanding of code expanding sequences
5287         when optimizning instruction for size.
5288         * i386.c (ix86_expand_vector_move_misalign): Do code size optimization
5289         per BB basis.
5290         (ix86_fp_comparison_sahf_cost): Likewise.
5291         (ix86_expand_branch): Likewise.
5292         (ix86_expand_ashl_const): Likewise.
5293         (ix86_split_ashl): Likewise.
5294         (ix86_expand_strlen): Likewise.
5295         (ix86_emit_fp_unordered_jump): Likewie.
5296
5297 2008-08-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5298
5299         * c-common.c: Fix typo.
5300         (c_common_reswords): Activate more C++ keyword warnings.
5301
5302         * matrix-reorg.c (compute_offset): Avoid C++ keywords.
5303
5304 2008-08-06  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
5305
5306         PR 26785
5307         * diagnostic.c (permerror_at): New.
5308         * toplev.h (permerror_at): Declare.
5309
5310 2008-08-06  Victor Kaplansky  <victork@il.ibm.com>
5311             Ira Rosen  <irar@il.ibm.com>
5312
5313         * tree-vect-transform.c (vect_model_simple_cost): Return
5314         immediately if stmt is pure SLP.
5315         (vect_model_store_cost): Ditto.
5316         (vect_model_load_cost): Ditto.
5317         (vectorizable_store): Remove PURE_SLP check before call
5318         to vect_model_store_cost.
5319         (vect_model_store_cost): When checking whether stmt describe
5320         strided access, add a check that it is not slp_node.
5321
5322 2008-08-06  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
5323
5324         PR 8715
5325         * c-common.c (warn_for_sign_compare): New. Handle separately the
5326         case that 'constant' is zero.
5327         * c-typeck.c (build_binary_op): Move code to c-common.c
5328
5329 2008-08-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5330
5331         * config/alpha/alpha.c (alpha_preferred_reload_class,
5332         alpha_secondary_reload, alpha_emit_set_const_1, function_value,
5333         alpha_output_mi_thunk_osf): Avoid C++ keywords.
5334         * config/arm/arm.c (output_move_vfp, output_move_neon): Likewise.
5335         * config/arm/arm.md: Likewise.
5336         * config/avr/avr-protos.h (preferred_reload_class,
5337         test_hard_reg_class, avr_simplify_comparison_p,
5338         out_shift_with_cnt, class_max_nregs): Likewise.
5339         * config/avr/avr.c (class_max_nregs, avr_simplify_comparison_p,
5340         output_movqi, output_movhi, output_movsisf, out_shift_with_cnt,
5341         preferred_reload_class, test_hard_reg_class): Likewise.
5342         * config/bfin/bfin.c (legitimize_pic_address, hard_regno_mode_ok,
5343         bfin_memory_move_cost, bfin_secondary_reload,
5344         bfin_output_mi_thunk): Likewise.
5345         * config/crx/crx.c (crx_secondary_reload_class,
5346         crx_memory_move_cost): Likewise.
5347         * config/frv/frv-protos.h (frv_secondary_reload_class,
5348         frv_class_likely_spilled_p, frv_class_max_nregs): Likewise.
5349         * config/frv/frv.c (frv_override_options, frv_alloc_temp_reg,
5350         frv_secondary_reload_class, frv_class_likely_spilled_p,
5351         frv_class_max_nregs): Likewise.
5352         * config/h8300/h8300.c (h8300_classify_operand,
5353         h8300_unary_length, h8300_bitfield_length, h8300_asm_insn_count):
5354         Likewise.
5355         * config/i386/winnt.c (i386_pe_declare_function_type): Likewise.
5356         * config/ia64/ia64.c (ia64_preferred_reload_class,
5357         ia64_secondary_reload_class, ia64_output_mi_thunk): Likewise.
5358         * config/iq2000/iq2000.c (gen_int_relational): Likewise.
5359         * config/m32c/m32c.c (class_can_hold_mode, m32c_output_compare):
5360         Likewise.
5361         * config/m68hc11/m68hc11.c (preferred_reload_class,
5362         m68hc11_memory_move_cost): Likewise.
5363         * config/mcore/mcore.c (mcore_secondary_reload_class,
5364         mcore_reload_class): Likewise.
5365         * config/mips/mips.c (mips_hard_regno_mode_ok_p,
5366         mips_class_max_nregs, mips_cannot_change_mode_class,
5367         mips_preferred_reload_class, mips_secondary_reload_class,
5368         mips_output_mi_thunk): Likewise.
5369         * config/mmix/mmix.c (mmix_preferred_reload_class,
5370         mmix_preferred_output_reload_class, mmix_secondary_reload_class):
5371         Likewise.
5372         * config/mn10300/mn10300.c (mn10300_secondary_reload_class):
5373         Likewise.
5374         * config/pa/pa.c (pa_secondary_reload, pa_combine_instructions,
5375         pa_can_combine_p, pa_cannot_change_mode_class): Likewise.
5376         * config/pa/pa.h (LEGITIMIZE_RELOAD_ADDRESS): Likewise.
5377         * config/rs6000/rs6000.c (paired_expand_vector_init,
5378         rs6000_secondary_reload_class, rs6000_output_mi_thunk,
5379         compare_section_name, rs6000_memory_move_cost): Likewise.
5380         * config/s390/s390.c (s390_emit_compare_and_swap,
5381         s390_preferred_reload_class, s390_secondary_reload,
5382         legitimize_pic_address, legitimize_tls_address,
5383         legitimize_reload_address, s390_expand_cs_hqi, s390_expand_atomic,
5384         s390_class_max_nregs): Likewise.
5385         * config/s390/s390.h (LEGITIMIZE_RELOAD_ADDRESS): Likewise.
5386         * config/s390/s390.md: Likewise.
5387         * config/score/score-protos.h (score_secondary_reload_class,
5388         score_preferred_reload_class): Likewise.
5389         * config/score/score.c (score_preferred_reload_class,
5390         score_secondary_reload_class): Likewise.
5391         * config/score/score3.c (score3_output_mi_thunk,
5392         score3_preferred_reload_class, score3_secondary_reload_class,
5393         score3_hard_regno_mode_ok): Likewise.
5394         * config/score/score3.h (score3_preferred_reload_class,
5395         score3_secondary_reload_class): Likewise.
5396         * config/score/score7.c (score7_output_mi_thunk,
5397         score7_preferred_reload_class, score7_secondary_reload_class,
5398         score7_hard_regno_mode_ok): Likewise.
5399         * config/score/score7.h (score7_preferred_reload_class,
5400         score7_secondary_reload_class): Likewise.
5401         * config/sh/sh.c (prepare_move_operands, output_far_jump,
5402         output_branchy_insn, add_constant, gen_block_redirect,
5403         sh_insn_length_adjustment, sh_cannot_change_mode_class,
5404         sh_output_mi_thunk, replace_n_hard_rtx, sh_secondary_reload):
5405         Likewise.
5406         * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
5407         * config/stormy16/stormy16.c (xstormy16_output_cbranch_hi,
5408         xstormy16_output_cbranch_si, xstormy16_secondary_reload_class,
5409         xstormy16_preferred_reload_class): Likewise.
5410         * config/xtensa/xtensa.c (xtensa_expand_compare_and_swap,
5411         xtensa_expand_atomic, override_options,
5412         xtensa_preferred_reload_class, xtensa_secondary_reload_class):
5413         Likewise.
5414         * reorg.c (try_merge_delay_insns): Likewise.
5415         * tree.c (merge_dllimport_decl_attributes): Likewise.
5416
5417         * config/frv/frv.c (frv_print_operand): Change isalpha to ISALPHA.
5418
5419 2008-08-06  Michael Matz  <matz@suse.de>
5420
5421         * Makefile.in (write_entries_to_file): Quote words.
5422         * gengtype.c: (read_input_line): Skip over leading white-space.
5423
5424 2008-08-06  Marc Gauthier  <marc@tensilica.com>
5425
5426         * config.gcc: Match more processor names for Xtensa.
5427         * configure.ac: Likewise.
5428         * doc/install.texi (Specific): Likewise.
5429         * configure: Regenerate.
5430
5431 2008-08-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5432
5433         * builtins.c (expand_builtin_profile_func): Avoid C++ keywords.
5434         * calls.c (avoid_likely_spilled_reg): Likewise.
5435         * cfgexpand.c (gimple_assign_rhs_to_tree): Likewise.
5436         * cgraph.c (cgraph_clone_edge, cgraph_clone_node): Likewise.
5437         * config/i386/i386.c (ix86_expand_special_args_builtin,
5438         ix86_secondary_reload): Likewise.
5439         * except.c (struct eh_region, gen_eh_region_catch,
5440         remove_unreachable_regions, duplicate_eh_regions,
5441         assign_filter_values, build_post_landing_pads,
5442         sjlj_find_directly_reachable_regions, remove_eh_handler,
5443         reachable_next_level, foreach_reachable_handler,
5444         can_throw_internal_1, can_throw_external_1,
5445         collect_one_action_chain): Likewise.
5446         * expr.c (expand_expr_real_1, vector_mode_valid_p): Likewise.
5447         * fold-const.c (twoval_comparison_p, eval_subst): Likewise.
5448         * function.c (update_temp_slot_address, instantiate_new_reg,
5449         instantiate_virtual_regs_in_rtx,
5450         instantiate_virtual_regs_in_insn): Likewise.
5451         * gimple.c (extract_ops_from_tree, gimple_seq_copy): Likewise.
5452         * gimplify.c (gimplify_call_expr, gimplify_init_constructor,
5453         gimplify_cleanup_point_expr): Likewise.
5454         * ipa-cp.c (ipcp_lattice_changed): Likewise.
5455         * passes.c (next_pass_1): Likewise.
5456         * print-tree.c (print_node_brief, print_node): Likewise.
5457         * profile.c (branch_prob): Likewise.
5458         * tree-dump.c (dump_register): Likewise.
5459         * tree-eh.c (replace_goto_queue_cond_clause, lower_catch):
5460         Likewise.
5461         * tree-inline.c (remap_ssa_name, remap_type_1, remap_blocks,
5462         copy_statement_list, remap_gimple_op_r, copy_tree_body_r,
5463         copy_edges_for_bb, copy_cfg_body, copy_tree_r,
5464         copy_arguments_for_versioning, copy_static_chain): Likewise.
5465         * tree-into-ssa.c (names_replaced_by, add_to_repl_tbl,
5466         add_new_name_mapping, register_new_name_mapping): Likewise.
5467         * tree-mudflap.c (mf_xform_derefs): Likewise.
5468         * tree-predcom.c (struct chain, dump_chain, replace_ref_with,
5469         get_init_expr, combine_chains): Likewise.
5470         * tree-pretty-print.c (dump_generic_node): Likewise.
5471         * tree-ssa-structalias.c (create_variable_info_for): Likewise.
5472         * tree-vrp.c (simplify_cond_using_ranges): Likewise.
5473         * tree.c (substitute_in_expr, iterative_hash_expr): Likewise.
5474         * value-prof.c (gimple_duplicate_stmt_histograms): Likewise.
5475
5476 2008-08-06  H.J. Lu  <hongjiu.lu@intel.com>
5477
5478         PR middle-end/37010
5479         * calls.c (expand_call): Use the biggest preferred stack
5480         boundary.
5481
5482 2008-08-06  Michael Matz  <matz@suse.de>
5483
5484         PR target/36613
5485         * reload.c (push_reload): Merge in,out,in_reg,out_reg members
5486         for reused reload, instead of overwriting them.
5487
5488 2008-08-06  H.J. Lu  <hongjiu.lu@intel.com>
5489
5490         PR middle-end/37009
5491         * cfgexpand.c (expand_stack_alignment): Check parm_stack_boundary
5492         for incoming stack boundary.
5493
5494         * function.c (assign_parm_find_entry_rtl): Update
5495         parm_stack_boundary.
5496
5497         * function.h (rtl_data): Add parm_stack_boundary.
5498
5499         * config/i386/i386.c (ix86_finalize_stack_realign_flags): Check
5500         parm_stack_boundary for incoming stack boundary.
5501
5502 2008-08-06  Joseph Myers  <joseph@codesourcery.com>
5503
5504         * jump.c (rtx_renumbered_equal_p): Do not call subreg_regno_offset
5505         for unrepresentable subregs or treat them as equal to other regs
5506         or subregs with the same register number.
5507
5508 2008-08-06  Aldy Hernandez  <aldyh@redhat.com>
5509
5510         PR middle-end/35432
5511         * gimplify.c (gimplify_modify_expr): Do not optimize zero-sized types
5512         if want_value.
5513
5514 2008-08-06  Jan Hubicka  <jh@suse.cz>
5515
5516         * predict.c (maybe_hot_frequency_p): When profile is absent, all
5517         frequencies might be hot.
5518
5519 2008-08-06  Andreas Krebbel  <krebbel1@de.ibm.com>
5520
5521         * reload.c (find_reloads): Force constants into literal pool
5522         also if they are wrapped in a SUBREG.
5523
5524 2008-08-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
5525
5526         PR target/35659
5527         * haifa-sched.c (sched_insn_is_legitimate_for_speculation_p): Move ...
5528         * sched-deps.c (sched_insn_is_legitimate_for_speculation_p): ... here.
5529         Don't allow predicated instructions for data speculation.
5530         * sched-int.h (sched_insn_is_legitimate_for_speculation_p): Move
5531         declaration.
5532
5533 2008-08-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
5534
5535         * haifa-sched.c (extend_global): Split to extend_global_data and
5536         extend_region_data.  Update all uses.
5537         (extend_all): Rename to extend_block_data.
5538
5539 2008-08-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
5540
5541         * sched-rgn.c (new_ready): Check if instruction can be
5542         speculatively scheduled before attempting speculation.
5543         (debug_rgn_dependencies): Remove wrongful assert.
5544
5545 2008-08-05  Bob Wilson  <bob.wilson@acm.org>
5546
5547         * config/xtensa/t-xtensa: Remove dependency for gt-xtensa.h.
5548
5549 2008-08-05  Bob Wilson  <bob.wilson@acm.org>
5550
5551         * config/xtensa/xtensa.c (xtensa_va_start): Unshare valist.
5552         (xtensa_gimplify_va_arg_expr): Unshare valist, orig_ndx, ndx, array,
5553         va_size, and type_size.
5554
5555 2008-08-04  Jason Merrill  <jason@redhat.com>
5556
5557         PR c++/37016
5558         * tree-ssa.c (useless_type_conversion_p_1): Call langhook
5559         if TYPE_STRUCTURAL_EQUALITY_P is true for both types.
5560
5561 2008-08-05  Richard Henderson  <rth@redhat.com>
5562
5563         * configure.ac (HAVE_GAS_CFI_DIRECTIVE): Check .cfi_personality.
5564         * configure: Rebuild.
5565
5566 2008-08-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>
5567
5568         PR tree-opt/37024
5569         * tree-tailcall.c (process_assignment): Use gimple_assign_cast_p
5570         instead of IS_CONVERT_EXPR_CODE_P for seeing if the assignment
5571         is a conversion.
5572
5573 2008-08-05  Richard Henderson  <rth@redhat.com>
5574
5575         * Makefile.in (c-cppbuiltin.o): Depend on debug.h.
5576         * c-cppbuiltin.c (c_cpp_builtins): Define __GCC_HAVE_DWARF2_CFI_ASM.
5577         * doc/cpp.texi (__GCC_HAVE_DWARF2_CFI_ASM): Document it.
5578         * common.opt (fdwarf2-cfi-asm): New.
5579         * configure.ac (HAVE_GAS_CFI_DIRECTIVE): New.
5580         * config.in, configure: Rebuild.
5581         * dwarf2asm.c (dw2_asm_output_data_raw): New.
5582         (dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_sleb128_raw): New.
5583         (dw2_force_const_mem): Externalize.
5584         * dwarf2asm.h: Update.
5585         * dwarf2out.c (dwarf2out_cfi_label): If flag_dwarf2_cfi_asm, don't
5586         generate a real label.
5587         (output_cfi_directive): New.
5588         (add_fde_cfi): If flag_dwarf2_cfi_asm, use it.
5589         (output_call_frame_info): Do nothing if flag_dwarf2_cfi_asm.
5590         (dwarf2out_begin_prologue): Emit .cfi_startproc, .cfi_personality,
5591         and .cfi_lsda.
5592         (dwarf2out_end_epilogue): Emit .cfi_endproc.
5593         (output_loc_operands_raw, output_loc_sequence_raw): New.
5594         (output_cfa_loc_raw): New.
5595
5596 2008-08-05  Paul Brook  <paul@codesourcery.com>
5597
5598         * doc/invoke.texi: Document new ARM -mfpu= and -mcpu= options.
5599         * config/arm/arm.c (all_fpus): Add vfpv3 and vfpv3-d16.
5600         (fp_model_for_fpu): Add entry for FPUTYPE_VFP3D16.
5601         (arm_file_start): Add FPUTYPE_VFP3D16.  Rename vfp3 to vfpv3.
5602         * config/arm/arm.h (TARGET_VFPD32): Define.
5603         (TARGET_VFP3): Use TARGET_VFPD32.
5604         (fputype): Add FPUTYPE_VFP3D16.
5605         (LAST_VFP_REGNUM): Use TARGET_VFPD32.
5606         * config/arm/constraints.md ("w"): Use TARGET_VFPD32.
5607         * config/arm/arm-cores.def: Add cortex-r4f.
5608         * config/arm/arm-tune.md: Regenerate.
5609
5610 2008-08-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5611
5612         * config/spu_spu_mfcio.h: Wrap in extern "C" if __cplusplus.
5613         Reword some comments throughout the file.
5614
5615         (MFC_MIN_DMA_LIST_ELEMENTS): New define.
5616         (MFC_MAX_DMA_LIST_ELEMENTS): Likewise.
5617         (MFC_MIN_DMA_LIST_SIZE): Redefine in terms of MFC_MIN_DMA_LIST_ELEMENTS.
5618         (MFC_MAX_DMA_LIST_SIZE): Redefine in terms of MFC_MAX_DMA_LIST_ELEMENTS.
5619
5620         (MFC_START_ENABLE): Remove PPU-only define.
5621         (MFC_PUTS_CMD, MFC_PUTFS_CMD, MFC_PUTBS_CMD): Likewise.
5622         (MFC_GETS_CMD, MFC_GETFS_CMD, MFC_GETBS_CMD): Likewise.
5623
5624         (MFC_PUTB_CMD, MFC_PUTF_CMD): Reimplement using symbolic constants.
5625         (MFC_PUTL_CMD, MFC_PUTLB_CMD, MFC_PUTLF_CMD): Likewise.
5626         (MFC_PUTR_CMD, MFC_PUTRB_CMD, MFC_PUTRF_CMD): Likewise.
5627         (MFC_PUTRL_CMD, MFC_PUTRLB_CMD, MFC_PUTRLF_CMD): Likewise.
5628         (MFC_GETB_CMD, MFC_GETF_CMD): Likewise.
5629         (MFC_GETL_CMD, MFC_GETLB_CMD, MFC_GETLF_CMD): Likewise.
5630         (MFC_SNDSIGB_CMD, MFC_SNDSIGF_CMD): Likewise.
5631
5632         (MFC_SDCRT_CMD, MFC_SDCRTST_CMD): New defines.
5633         (MFC_SDCRZ_CMD, MFC_SDCRST_CMD, MFC_SDCRF_CMD): Likewise.
5634         (mfc_sdcrt, mfc_sdcrtst): Likewise.
5635         (mfc_sdcrz, mfc_sdcrst, mfc_sdcrf): Likewise.
5636
5637         (spu_read_machine_status): Fix typo.
5638
5639 2008-08-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5640
5641         * config/spu/spu.h (CANNOT_CHANGE_MODE_CLASS): Allow (multi)word-sized
5642         SUBREG of multi-word hard register.
5643         * config/spu/spu.c (valid_subreg): Likewise.
5644         (adjust_operand): Handle SUBREGs of multi-word hard registers.
5645
5646 2008-08-04  Richard Guenther  <rguenther@suse.de>
5647
5648         * tree-ssa-loop-ivopts.c (add_iv_value_candidates): Also add
5649         the candidate with the stripped base if that base is different
5650         from the original base even for offset zero.
5651
5652 2008-08-04  Richard Guenther  <rguenther@suse.de>
5653
5654         PR middle-end/36691
5655         * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Correctly
5656         check for no_overflow.
5657
5658 2008-08-04  Richard Guenther  <rguenther@suse.de>
5659
5660         * tree-vect-transform.c (vectorizable_call): Fix tuplification.
5661
5662 2008-08-04  Paul Brook  <paul@codesourcery.com>
5663
5664         * cofig/arm/arm.c (thumb_core_reg_alloc_order): New.
5665         (arm_order_regs_for_local_alloc): New function.
5666         * config/arm/arm-protos.h (arm_order_regs_for_local_alloc): Add
5667         prototype.
5668         * config/arm/arm.h (ORDER_REGS_FOR_LOCAL_ALLOC): Define.
5669
5670 2008-08-04  H.J. Lu  <hongjiu.lu@intel.com>
5671
5672         PR target/37012
5673         * config/i386/i386.c (ix86_expand_prologue): Use UNITS_PER_WORD
5674         instead of STACK_BOUNDARY / BITS_PER_UNIT to align stack.
5675         (ix86_expand_epilogue): Likewise.
5676
5677 2008-08-04  H.J. Lu  <hongjiu.lu@intel.com>
5678
5679         * config/i386/i386.c (ix86_compute_frame_layout): Fix a typo
5680         in comments.
5681
5682 2008-08-03  Uros Bizjak  <ubizjak@gmail.com>
5683
5684         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use Yi instead of x
5685         to avoid inter-unit moves for !TARGET_INTER_UNIT_MOVES.
5686         (*movv2sf_internal_rex64): Ditto.
5687
5688 2008-08-03  Jan Hubicka  <jh@suse.cz>
5689
5690         * optabs.c (expand_binop, expand_builtin_pow, expand_builtin_powi,
5691         expand_builtin_strcat): Upse optimize_insn_for_speed predicate.
5692         * expmed.c (expand_smod_pow2): Likewise.
5693
5694 2008-08-03  Uros Bizjak  <ubizjak@gmail.com>
5695
5696         PR target/36992
5697         * config/i386/sse.md (vec_concatv2di): Add Y2 constraint to
5698         alternative 0 of operand 1.
5699         (*vec_concatv2di_rex64_sse): Ditto.
5700         (*vec_concatv2di_rex64_sse4_1): Add x constraint to alternative 0
5701         of operand 1.
5702         (*sse2_storeq_rex64): Penalize allocation of "r" registers.
5703         * config/i386/mmx.md (*mov<mode>_internal_rex64): Penalize allocation
5704         of "Y2" registers to avoid SSE <-> MMX conversions for DImode moves.
5705         (*movv2sf_internal_rex64): Ditto.
5706
5707 2008-08-02  Richard Guenther  <rguenther@suse.de>
5708
5709         PR target/35252
5710         * config/i386/sse.md (SSEMODE4S, SSEMODE2D): New mode iterators.
5711         (ssedoublesizemode): New mode attribute.
5712         (sse_shufps): Call gen_sse_shufps_v4sf.
5713         (sse_shufps_1): Macroize.
5714         (sse2_shufpd): Call gen_Sse_shufpd_v2df.
5715         (sse2_shufpd_1): Macroize.
5716         (vec_extract_odd, vec_extract_even): New expanders.
5717         (vec_interleave_highv4sf, vec_interleave_lowv4sf,
5718         vec_interleave_highv2df, vec_interleave_lowv2df): Likewise.
5719         * i386.c (ix86_expand_vector_init_one_nonzero): Call
5720         gen_sse_shufps_v4sf instead of gen_sse_shufps_1.
5721         (ix86_expand_vector_set): Likewise.
5722         (ix86_expand_reduc_v4sf): Likewise.
5723
5724 2008-08-01  Doug Kwan  <dougkwan@google.com>
5725
5726         * matrix-reorg.c: Re-enable all code.
5727         (struct malloc_call_data): Change CALL_STMT to gimple type.
5728         (collect_data_for_malloc_call): Tuplify.
5729         (struct access_site_info): Change STMT to gimple type.
5730         (struct matrix_info): Change MIN_INDIRECT_LEVEL_ESCAPE_STMT,
5731         and MALLOC_FOR_LEVEL to gimple and gimple pointer type.
5732         (struct free_info): Change STMT to gimple type.
5733         (struct matrix_access_phi_node):  Change PHI to gimple type.
5734         (get_inner_of_cast_expr): Remove.
5735         (may_flatten_matrices_1): Tuplify.
5736         (may_flatten_matrices): Ditto.
5737         (mark_min_matrix_escape_level): Ditto.
5738         (ssa_accessed_in_tree): Refactor statement RHS related code into ...
5739         (ssa_accessed_in_call_rhs): New
5740         (ssa_accessed_in_assign_rhs): New
5741         (record_access_alloc_site_info): Tuplify.
5742         (add_allocation_site): Ditto.
5743         (analyze_matrix_allocation_site): Ditto.
5744         (analyze_transpose): Ditto.
5745         (get_index_from_offset): Ditto.
5746         (update_type_size): Ditto.
5747         (analyze_accesses_for_call_expr): Tuplify and renamed into ...
5748         (analyze_accesses_for_call_stmt): New. Also handle LHS of a call.
5749         (analyze_accesses_for_phi_node): Tuplify.
5750         (analyze_accesses_for_modify_stmt): Tuplify and renamed into ...
5751         (analyze_accesses_for_assign_stmt): Remove code for handling call LHS.
5752         (analyze_matrix_accesses): Tuplify.
5753         (check_var_data): New call-back type for check_var_notmodified_p.
5754         (check_var_notmodified_p): Tuplify and use call-back struct to
5755         return statement found.
5756         (can_calculate_expr_before_stmt): Factor out statement related code
5757         into ...
5758         (can_calculate_stmt_before_stmt): New.
5759         (check_allocation_function): Tuplify.
5760         (find_sites_in_func): Ditto.
5761         (record_all_accesses_in_func): Ditto.
5762         (transform_access_sites): Ditto.
5763         (transform_allocation_sites): Ditto.
5764         (matrix_reorg): Re-enable.
5765         (gate_matrix_reorg): Re-enable.
5766
5767 2008-08-01  Jakub Jelinek  <jakub@redhat.com>
5768
5769         * dwarf2out.c (compute_barrier_args_size): Set barrier_args_size
5770         for labels for which it hasn't been set yet.  If it has been set,
5771         stop walking insns and continue with next worklist item.
5772         (dwarf2out_stack_adjust): Don't call compute_barrier_args_size
5773         if the only BARRIER is at the very end of a function.
5774
5775 2008-08-01  H.J. Lu  <hongjiu.lu@intel.com>
5776
5777         * cfgexpand.c (expand_stack_alignment): Assert that
5778         stack_realign_drap and drap_rtx must match.
5779
5780         * function.c (instantiate_new_reg): If DRAP is used to realign
5781         stack, replace virtual_incoming_args_rtx with internal arg
5782         pointer.
5783
5784 2008-08-01  Richard Guenther  <rguenther@suse.de>
5785
5786         * tree-ssa-pre.c (fini_pre): Take in_fre parameter.  Free
5787         loop information only if we initialized it.
5788         (execute_pre): Call fini_pre with in_fre.
5789         * tree-ssa-loop-ivcanon (try_unroll_loop_completely): Dump
5790         if we do not unroll because we hit max-completely-peeled-insns.
5791         Use our estimation for consistency, do allow shrinking.
5792
5793 2008-08-01  H.J. Lu  <hongjiu.lu@intel.com>
5794
5795         * config/i386/i386.c (override_options): Replace ABI_STACK_BOUNDARY
5796         with MIN_STACK_BOUNDARY.
5797         (ix86_update_stack_boundary): Likewise.
5798         (ix86_expand_prologue): Assert MIN_STACK_BOUNDARY instead of
5799         STACK_BOUNDARY.
5800
5801         * config/i386/i386.h (ABI_STACK_BOUNDARY): Renamed to ...
5802         (MIN_STACK_BOUNDARY): This.
5803
5804 2008-08-01  Richard Guenther  <rguenther@suse.de>
5805
5806         PR middle-end/36997
5807         * gimplify.c (gimplify_call_expr): Set error_mark_node on GS_ERROR.
5808
5809 2008-08-01  Richard Guenther  <rguenther@suse.de>
5810
5811         PR tree-optimization/36988
5812         * tree-ssa-ccp.c (ccp_fold): Conversions of constants only
5813         do not matter if that doesn't change volatile qualification.
5814
5815 2008-08-01  Paolo Bonzini  <bonzini@gnu.org>
5816
5817         * configure.ac: Do not generate libada-mk.  Do not subst
5818         host_cc_for_libada.
5819         * libada-mk.in: Remove.
5820         * Makefile.in: Pass TARGET_LIBGCC2_CFLAGS to libgcc.mvars.
5821         * configure: Regenerate.
5822
5823 2008-08-01  Basile Starynkevitch  <basile@starynkevitch.net>
5824
5825         * tree-pass.h: Added comment about not dumping passes with name
5826         starting with star in struct opt_pass.
5827         * passes.c (register_dump_files_1): Don't do dump for a pass with
5828         name starting with star.
5829         * doc/passes.texi (Pass manager): Mention pass names and special
5830         meaning of star prefix to avoid dump.
5831
5832 2008-07-31  Adam Nemet  <anemet@caviumnetworks.com>
5833
5834         * config.gcc (mipsisa64r2*-*-linux*): New configuration.  Set ISA
5835         to MIPS64r2.
5836         * config/mips/mips.h (GENERATE_MIPS16E): Update comment.
5837         (ISA_MIPS64R2): New macro.
5838         (TARGET_CPU_CPP_BUILTINS, MULTILIB_ISA_DEFAULT): Handle it.
5839         (ISA_HAS_64BIT_REGS, ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE,
5840         ISA_HAS_8CC, ISA_HAS_FP4, ISA_HAS_PAIRED_SINGLE,
5841         ISA_HAS_MADD_MSUB, ISA_HAS_NMADD4_NMSUB4, ISA_HAS_CLZ_CLO,
5842         ISA_HAS_ROR, ISA_HAS_PREFETCH, ISA_HAS_PREFETCHX, ISA_HAS_SEB_SEH,
5843         ISA_HAS_EXT_INS, ISA_HAS_MXHC1, ISA_HAS_HILO_INTERLOCKS,
5844         ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Return true for ISA_MIPS64R2.
5845         (MIPS_ISA_LEVEL_SPEC, ASM_SPEC, LINK_SPEC): Handle -mips64r2.
5846         (TARGET_LOONGSON_2E, TARGET_LOONGSON_2F, TARGET_LOONGSON_2EF):
5847         Move up to keep list alphabetically sorted.
5848         (TUNE_20KC, TUNE_24K, TUNE_74K, TUNE_LOONGSON_2EF): Likewise.
5849         * config/mips/mips.c (mips_cpu_info_table): Add default MIPS64r2
5850         processor.
5851         * doc/invoke.texi (MIPS Options): Add -mips64r2.
5852         (-march=@var{arch}): Add mips64r2.
5853
5854 2008-07-31  H.J. Lu  <hongjiu.lu@intel.com>
5855
5856         * config/i386/darwin.h (MAIN_STACK_BOUNDARY): Define to 128.
5857
5858 2008-07-31  Steve Ellcey  <sje@cup.hp.com>
5859
5860         * expr.c (expand_assignment): Check for complete type.
5861
5862 2008-07-31  H.J. Lu  <hongjiu.lu@intel.com>
5863
5864         PR debug/36977
5865         * cfgexpand.c (expand_stack_alignment): Set stack_realign_tried.
5866
5867         * dwarf2out.c (based_loc_descr): Check crtl->stack_realign_tried
5868         for stack alignment.
5869
5870         * function.h (rtl_data): Add stack_realign_tried.  Update comments.
5871
5872 2008-07-31  Kaz Kojima  <kkojima@gcc.gnu.org>
5873
5874         * config/sh/sh.c (sh_canonical_va_list_type): Remove.
5875         (TARGET_CANONICAL_VA_LIST_TYPE): Remove.
5876
5877 2008-07-31  Jakub Jelinek  <jakub@redhat.com>
5878
5879         PR rtl-optimization/36419
5880         * dwarf2out.c (barrier_args_size): New variable.
5881         (compute_barrier_args_size, compute_barrier_args_size_1): New
5882         functions.
5883         (dwarf2out_stack_adjust): For BARRIERs call compute_barrier_args_size
5884         if not called yet in the current function, use barrier_args_size
5885         array to find the new args_size value.
5886         (dwarf2out_frame_debug): Free and clear barrier_args_size.
5887
5888 2008-07-31  H.J. Lu  <hongjiu.lu@intel.com>
5889
5890         PR debug/36980
5891         * dwarf2out.c (dwarf2out_frame_debug_expr): Move rule 17 before
5892         rule 19.
5893
5894 2008-07-31  H.J. Lu  <hongjiu.lu@intel.com>
5895
5896         PR debug/36976
5897         * dwarf2out.c (dwarf2out_args_size_adjust): New.
5898         (dwarf2out_stack_adjust): Use it.
5899         (dwarf2out_frame_debug_expr): Likewise.
5900
5901 2008-07-31  Richard Guenther  <rguenther@suse.de>
5902
5903         PR tree-optimization/36978
5904         * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): Do not fold
5905         the generated condition.
5906
5907 2008-07-31  Richard Guenther  <rguenther@suse.de>
5908
5909         * passes.c (init_optimization_passes): Always call
5910         pass_early_warn_uninitialized.
5911         * opts.c (decode_options): Do not warn about -Wuninitialized at -O0.
5912         * doc/invoke.texi (-Wuninitialized): Correct for enabling at -O0.
5913         * doc/passes.texi (Warn for uninitialized variables): Adjust.
5914
5915 2008-07-31  Jakub Jelinek  <jakub@redhat.com>
5916
5917         PR c/36970
5918         * builtins.c (maybe_emit_free_warning): New function.
5919         (expand_builtin): Process BUILT_IN_FREE even at -O0.  Call
5920         maybe_emit_free_warning for BUILT_IN_FREE.
5921
5922         PR debug/36278
5923         * dwarf2out.c (get_context_die): New function.
5924         (force_decl_die, force_type_die): Use it.
5925         (dwarf2out_imported_module_or_decl): Likewise.  If base_type_die
5926         returns NULL, force generation of DW_TAG_typedef and put that into
5927         DW_AT_import.
5928
5929         PR preprocessor/36649
5930         * c-pch.c (c_common_read_pch): Save and restore
5931         line_table->trace_includes across PCH restore.
5932
5933 2008-07-30  Eric Botcazou  <ebotcazou@adacore.com>
5934
5935         PR ada/36554
5936         * dwarf2out.c (is_subrange_type): Deal with BOOLEAN_TYPE.
5937
5938 2008-07-30  Rafael Ávila de Espíndola  <espindola@google.com>
5939
5940         PR 36974
5941         * final.c (call_from_call_insn): Handle COND_EXEC.
5942
5943 2008-07-30  H.J. Lu  <hongjiu.lu@intel.com>
5944
5945         * builtins.c (std_gimplify_va_arg_expr): Replace
5946         PREFERRED_STACK_BOUNDARY with MAX_SUPPORTED_STACK_ALIGNMENT.
5947         * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
5948
5949 2008-07-30  Joey Ye  <joey.ye@intel.com>
5950             H.J. Lu  <hongjiu.lu@intel.com>
5951
5952         * builtins.c (expand_builtin_setjmp_receiver): Replace
5953         virtual_incoming_args_rtx with crtl->args.internal_arg_pointer.
5954         (expand_builtin_apply_args_1): Likewise.
5955         (expand_builtin_longjmp): Need DRAP for stack alignment.
5956         (expand_builtin_apply): Likewise.
5957
5958         * caller-save.c (setup_save_areas): Call assign_stack_local_1
5959         instead of assign_stack_local to allow alignment reduction.
5960
5961         * calls.c (emit_call_1): Need DRAP for stack alignment if
5962         return pops.
5963         (expand_call): Replace virtual_incoming_args_rtx with
5964         crtl->args.internal_arg_pointer.
5965         * stmt.c (expand_nl_goto_receiver): Likewise.
5966
5967         * cfgexpand.c (get_decl_align_unit): Estimate stack variable
5968         alignment and store to stack_alignment_estimated and
5969         max_used_stack_slot_alignment.
5970         (expand_one_var): Likewise.
5971         (expand_stack_alignment): New function.
5972         (tree_expand_cfg): Initialize max_used_stack_slot_alignment
5973         and stack_alignment_estimated fields in rtl_data.  Call
5974         expand_stack_alignment at end.
5975
5976         * defaults.h (INCOMING_STACK_BOUNDARY): New.
5977         (MAX_STACK_ALIGNMENT): Likewise.
5978         (MAX_SUPPORTED_STACK_ALIGNMENT): Likewise.
5979         (SUPPORTS_STACK_ALIGNMENT): Likewise.
5980
5981         * emit-rtl.c (gen_reg_rtx): Estimate stack alignment for
5982         stack alignment when generating virtual registers.
5983
5984         * function.c (assign_stack_local): Renamed to ...
5985         (assign_stack_local_1): This.  Add a parameter to indicate
5986         if it is OK to reduce alignment.
5987         (assign_stack_local): Use it.
5988         (instantiate_new_reg): Instantiate virtual incoming args rtx
5989         to vDRAP if stack realignment and DRAP is needed.
5990         (assign_parms): Collect parameter/return type alignment and
5991         contribute to stack_alignment_estimated.
5992         (locate_and_pad_parm): Likewise.
5993         (get_arg_pointer_save_area): Replace virtual_incoming_args_rtx
5994         with crtl->args.internal_arg_pointer.
5995
5996         * function.h (rtl_data): Add new field drap_reg,
5997         max_used_stack_slot_alignment, stack_alignment_estimated,
5998         stack_realign_needed, need_drap, stack_realign_processed and
5999         stack_realign_finalized.
6000         (stack_realign_fp): New macro.
6001         (stack_realign_drap): Likewise.
6002
6003         * global.c (compute_regsets): Frame pointer is needed when
6004         stack is realigned.  Can eliminate frame pointer when stack is
6005         realigned and dynamic realigned argument pointer isn't used.
6006
6007         * reload1.c (update_eliminables):  Frame pointer is needed
6008         when stack is realigned.
6009         (init_elim_table): Can eliminate frame pointer when stack is
6010         realigned and dynamic realigned argument pointer isn't used.
6011
6012         * rtl.h (assign_stack_local_1): Declare new funtion.
6013
6014         * target-def.h (TARGET_UPDATE_STACK_BOUNDARY): New.
6015         (TARGET_GET_DRAP_RTX): Likewise.
6016         (TARGET_CALLS): Add TARGET_UPDATE_STACK_BOUNDARY and
6017         TARGET_GET_DRAP_RTX.
6018
6019         * target.h (gcc_target): Add update_stack_boundary and get_drap_rtx.
6020
6021         * tree-vectorizer.c (vect_can_force_dr_alignment_p): Replace
6022         STACK_BOUNDARY with MAX_STACK_ALIGNMENT.
6023
6024 2008-07-30  Xuepeng Guo  <xuepeng.guo@intel.com>
6025             H.J. Lu  <hongjiu.lu@intel.com>
6026
6027         * dwarf2out.c (dw_fde_struct): Add stack_realignment, drap_reg,
6028         vdrap_reg, stack_realign and drap_reg_saved.
6029         (add_cfi): Don't allow redefining CFA when DRAP is used.
6030         (reg_save): Handle stack alignment.
6031         (dwarf2out_frame_debug_expr): Add rules 16-20 to handle stack
6032         alignment.  Don't generate DWARF information for (set fp sp)
6033         when DRAP is used.
6034         (dwarf2out_begin_prologue): Initialize drap_reg and vdrap_reg
6035         to INVALID_REGNUM.
6036         (int_loc_descriptor): Move prototype forward.  Also define if
6037         DWARF2_UNWIND_INFO is true.
6038         (output_cfa_loc): Handle DW_CFA_expression.
6039         (build_cfa_aligned_loc): New.
6040         (based_loc_descr): Update assert for stack realign.  For local
6041         variables, use sp+offset when stack is aligned without drap and
6042         fp+offset when stack is aligned with drap.  For arguments, use
6043         cfa+offset when drap is used to align stack.
6044
6045 2008-07-30  Joey Ye  <joey.ye@intel.com>
6046             H.J. Lu  <hongjiu.lu@intel.com>
6047
6048         * config/i386/i386.c (ix86_force_align_arg_pointer_string):
6049         Break long line.
6050         (ix86_gen_andsp): New.
6051         (ix86_user_incoming_stack_boundary): Likewise.
6052         (ix86_default_incoming_stack_boundary): Likewise.
6053         (ix86_incoming_stack_boundary): Likewise.
6054         (ix86_can_eliminate): Likewise.
6055         (find_drap_reg): Likewise.
6056         (ix86_update_stack_boundary): Likewise.
6057         (ix86_get_drap_rtx): Likewise.
6058         (ix86_finalize_stack_realign_flags): Likewise.
6059         (TARGET_UPDATE_STACK_BOUNDARY): Likewise.
6060         (TARGET_GET_DRAP_RTX): Likewise.
6061         (override_options): Overide option value for new options.
6062         (ix86_function_ok_for_sibcall): Remove check for
6063         force_align_arg_pointer.
6064         (ix86_handle_cconv_attribute): Likewise.
6065         (ix86_function_regparm): Likewise.
6066         (setup_incoming_varargs_64): Don't set stack_alignment_needed here.
6067         (ix86_va_start): Replace virtual_incoming_args_rtx with
6068         crtl->args.internal_arg_pointer.
6069         (ix86_select_alt_pic_regnum): Check DRAP register.
6070         (ix86_save_reg): Replace force_align_arg_pointer with drap_reg.
6071         (ix86_compute_frame_layout): Compute frame layout wrt stack
6072         realignment.
6073         (ix86_internal_arg_pointer): Just return virtual_incoming_args_rtx.
6074         (ix86_expand_prologue): Decide if stack realignment is needed
6075         and generate prologue code accordingly.
6076         (ix86_expand_epilogue): Generate epilogue code wrt stack
6077         realignment is really needed or not.
6078
6079         * config/i386/i386.h (MAIN_STACK_BOUNDARY): New.
6080         (ABI_STACK_BOUNDARY): Likewise.
6081         (PREFERRED_STACK_BOUNDARY_DEFAULT): Likewise.
6082         (STACK_REALIGN_DEFAULT): Likewise.
6083         (INCOMING_STACK_BOUNDARY): Likewise.
6084         (MAX_STACK_ALIGNMENT): Likewise.
6085         (ix86_incoming_stack_boundary): Likewise.
6086         (FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN): Removed.
6087         (REAL_PIC_OFFSET_TABLE_REGNUM): Updated to use BX_REG.
6088         (CAN_ELIMINATE): Defined with ix86_can_eliminate.
6089         (machine_function): Remove force_align_arg_pointer.
6090
6091         * config/i386/i386.md (BX_REG): New.
6092         (R13_REG): Likewise.
6093
6094         * config/i386/i386.opt (mforce_drap): New.
6095         (mincoming-stack-boundary): Likewise.
6096         (mstackrealign): Add Init(-1).
6097
6098         * config/i386/i386-protos.h (ix86_can_eliminate): New
6099
6100 2008-07-30  H.J. Lu  <hongjiu.lu@intel.com>
6101
6102         * doc/extend.texi: Update force_align_arg_pointer.
6103
6104         * doc/invoke.texi: Document -mincoming-stack-boundary.  Update
6105         -mstackrealign.
6106
6107         * doc/tm.texi (MAX_STACK_ALIGNMENT): Add macro.
6108         (INCOMING_STACK_BOUNDARY): Likewise.
6109         (TARGET_UPDATE_STACK_BOUNDARY): New target hook.
6110         (TARGET_GET_DRAP_RTX): Likewise.
6111
6112 2008-07-30  Andreas Schwab  <schwab@suse.de>
6113
6114         PR rtl-optimization/36929
6115         * dse.c (replace_inc_dec): Use emit_insn_before instead of
6116         add_insn_before and fix argument order.
6117         (replace_inc_dec_mem): Handle NULL rtx.
6118
6119 2008-07-30  Andrew Jenner  <andrew@codesourcery.com>
6120
6121         * config/arm/arm.c (arm_compute_static_chain_stack_bytes): New
6122         function.
6123         (arm_compute_initial_elimination_offset): Use it.
6124         (arm_compute_save_reg_mask): Include static chain save slot when
6125         calculating alignment.
6126         (arm_get_frame_offsets): Ditto.
6127         (thumb1_compute_save_reg_mask): Ensure we have a low register saved
6128         that we can use to decrement the stack when the stack decrement
6129         could be too big for an immediate value in a single insn.
6130         (thumb1_expand_prologue): Avoid using r12 for stack decrement.
6131
6132 2008-07-30  Richard Guenther  <rguenther@suse.de>
6133
6134         PR tree-optimization/36967
6135         * tree-predcom.c (remove_stmt): Use gimple_assign_ssa_name_copy_p.
6136         Release defs of statements we remove.
6137
6138 2008-07-30  Nathan Froyd  <froydnj@codesourcery.com>
6139
6140         * config/arm/arm.c (arm_expand_prologue): Use 0-length rtvec
6141         instead of NULL_RTVEC.
6142
6143 2008-07-30  Nathan Froyd  <froydnj@codesourcery.com>
6144
6145         PR target/35866
6146
6147         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Add clause for
6148         vector modes.
6149
6150 2008-07-30  Rafael Ávila de Espíndola  <espindola@google.com>
6151
6152         * final.c (call_from_call_insn): New.
6153         (final_scan_insn): Call assemble_external on FUNCTION_DECLs.
6154
6155 2008-07-30  Paolo Bonzini  <bonzini@gnu.org>
6156
6157         * configure.ac: Substitute ADA_CFLAGS.
6158         * configure: Regenerate.
6159         * config.host: Remove mention of pa/x-ada and pa/x-ada-hpux10 files.
6160         * Makefile.in: Remove mention of X_* variables.
6161         * config/pa/x-ada-hpux10: Remove.
6162         * config/pa/x-ada: Remove.
6163
6164         * doc/fragments.texi: Update.
6165
6166 2008-07-30  Olivier Hainque  <hainque@adacore.com>
6167
6168         * config/mips/irix-crti.asm: .hide __gcc_init and __gcc_fini.
6169         * config/mips/iris6.h (IRIX_SUBTARGET_LINK_SPEC, irix ld): Hide
6170         __dso_handle explicitly here.
6171
6172 2008-07-30  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
6173
6174         PR 34389
6175         * c-typeck.c (build_binary_op): Encapsulate code into...
6176         * c-common.c (shorten_binary_op): ...this new function.
6177         (conversion_warning): Use the new function. Handle non-negative
6178         constant in bitwise-and.
6179         * c-common.h (shorten_binary_op): Declare.
6180
6181 2008-07-30  Olivier Hainque  <hainque@adacore.com>
6182
6183         * scan.c (make_sstring_space): Add explicit conversions of
6184         allocator's return value.
6185         * fix-header.c (recognized_function): Likewise.
6186
6187 2008-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6188
6189         * doc/cpp.texi: Update to GFDL 1.2.
6190         * doc/gcc.texi: Do not list GPL as Invariant Section.
6191         * doc/gccint.texi: Likewise.  Update copyright years.
6192         * doc/install.texi: Update copyright years.
6193
6194 2008-07-30  Alan Modra  <amodra@bigpond.net.au>
6195
6196         PR target/36955
6197         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add
6198         a use of pic_offset_table_rtx for -msecure-plt __tls_get_addr calls.
6199
6200 2008-07-29  Jan Hubicka  <jh@suse.cz>
6201
6202         * c-decl.c (merge_decls): Do not handle DECL_INLINE.
6203         (grokdeclarator): Likewise.
6204         * langhooks.c (lhd_warn_unused_global_decl): Use
6205         DECL_DECLARED_INLINE_P.
6206         * print-tree.c (print_node): Remove DECL_INLINE check.
6207
6208 2008-07-29  Richard Guenther  <rguenther@suse.de>
6209
6210         PR tree-optimization/36945
6211         * tree-ssa-sccvn.h (copy_reference_ops_from_ref): Declare.
6212         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Export.
6213         Record invariant addresses un-decomposed.
6214         (copy_reference_ops_from_call): Record reference call
6215         arguments properly.  Simplify.
6216         * tree-ssa-pre.c (create_component_ref_by_pieces_1): New
6217         helper split out from ...
6218         (create_component_ref_by_pieces): ... here.  Simplify.
6219         Prepare for recursive invocation for call arguments.
6220         (create_expression_by_pieces): Adjust call to
6221         create_component_ref_by_pieces.
6222         (compute_avail): Process operand 2 of reference ops.
6223
6224 2008-07-29  Richard Guenther  <rguenther@suse.de>
6225
6226         * gimplify.c (gimplify_expr): Clear TREE_SIDE_EFFECTS for OBJ_TYPE_REF.
6227
6228 2008-07-29  Jakub Jelinek  <jakub@redhat.com>
6229
6230         * c-format.c (check_format_types): Revert unwanted checkin.
6231
6232 2008-07-29  Jan Hubicka  <jh@suse.cz>
6233
6234         * flags.h (flag_really_no_inline): Remove.
6235         * cgraph.c (cgraph_function_possibly_inlined_p): Simplify.
6236         * toplev.c (flag_really_no_inline): Remove.
6237         * c-cppbuiltin.c (c_cpp_builtins): Use flag_no_inline.
6238         * ipa-inline.c (cgraph_decide_inlining): Do not check flag_no_inline.
6239         (cgraph_decide_inlining_incrementally): Likewise.
6240         (compute_inline_parameters): Likewise.
6241         * opts.c (decode_options): Simplify.
6242         * c-opts.c (c_common_post_options): Do not set flag_no_inline.
6243         * common.opt (finline): Initialize to 1.
6244         * tree-inline.c (inlinable_function_p): Check flag_no_inline.
6245
6246 2008-07-29  Jan Hubicka  <jh@suse.cz>
6247
6248         * predict.c (always_optimize_for_size_p): New function.
6249         (optimize_bb_for_size_p, optimize_bb_for_speed_p,
6250         optimize_edge_for_size_p, optimize_edge_for_speed_p,
6251         optimize_insn_for_size_p, optimize_insn_for_speed_p): New global
6252         functions.
6253         (rtl_profile_for_bb, rtl_profile_for_edge, rtl_default_profile): New.
6254         * function.c (prepare_function_start): Set default profile.
6255         * function.h (rtl_data): Add maybe_hot_insn_p.
6256         * cfgexpand.c (expand_gimple_basic_block): Set RTL profile.
6257         (construct_exit_block): Likewise.
6258         (tree_expand_cfg): Likewise.
6259         * basic-block.h
6260         (optimize_bb_for_size_p, optimize_bb_for_speed_p,
6261         optimize_edge_for_size_p, optimize_edge_for_speed_p,
6262         optimize_insn_for_size_p, optimize_insn_for_speed_p): Declare.
6263         (rtl_profile_for_bb, rtl_profile_for_edge, default_rtl_profile):
6264         Declare.
6265
6266 2008-07-29  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
6267
6268         PR 34985
6269         * c-decl.c (merge_decls): Merge USED flags.
6270
6271 2008-07-29  Kaz Kojima  <kkojima@gcc.gnu.org>
6272
6273         * config/sh/sh.c (sh_gimplify_va_arg_expr): Unshare the addr,
6274         valist, next_fp, next_fp_tmp, next_fp_limit, next_o, next_o_limit,
6275         next_stack, lab_false and lab_over trees.
6276
6277 2008-07-28  Richard Guenther  <rguenther@suse.de>
6278
6279         PR tree-optimization/36957
6280         * tree-flow.h (tree_ssa_useless_type_conversion): Remove.
6281         (useless_type_conversion_p): Remove.
6282         (types_compatible_p): Remove.
6283         * gimple.h (tree_ssa_useless_type_conversion): Declare.
6284         (useless_type_conversion_p): Declare.
6285         (types_compatible_p): Declare.
6286         (gimple_expr_type): Return the base type only if it is
6287         trivially convertible to the subtype.
6288
6289 2008-07-28  Andreas Tobler  <a.tobler@schweiz.org>
6290
6291         * configure.ac: Use the m4_do macro to concatenate the warnings into
6292         one string in ACX_PROG_CC_WARNING_OPTS,
6293         ACX_PROG_CC_WARNING_ALMOST_PEDANTIC and ACX_PROG_CC_WARNINGS_ARE_ERRORS.
6294         * configure: Regenerate.
6295
6296 2008-07-28  Richard Guenther  <rguenther@suse.de>
6297
6298         * tree-ssa-pre.c (insert_into_preds_of_block): Remove dead code.
6299         (insert_fake_stores): Remove.
6300         (realify_fake_stores): Likewise.
6301         (execute_pre): Remove dead code.
6302         * tree-ssa-structalias.c (get_constraint_for_1): Remove tcc_unary case.
6303         (find_func_aliases): Deal with it here instead.
6304         Re-enable gcc_unreachable call.
6305
6306 2008-07-28  Richard Guenther  <rguenther@suse.de>
6307
6308         Merge from gimple-tuples-branch.
6309
6310         * ChangeLog.tuples: ChangeLog from gimple-tuples-branch.
6311         * gimple.def: New file.
6312         * gsstruct.def: Likewise.
6313         * gimple-iterator.c: Likewise.
6314         * gimple-pretty-print.c: Likewise.
6315         * tree-gimple.c: Removed.  Merged into ...
6316         * gimple.c: ... here.  New file.
6317         * tree-gimple.h: Removed.  Merged into ...
6318         * gimple.h: ... here.  New file.
6319
6320         * Makefile.in: Add dependencies on GIMPLE_H and tree-iterator.h.
6321         * configure.ac: Added support for ENABLE_GIMPLE_CHECKING and the
6322         --enable-checking=gimple flag.
6323         * config.in: Likewise.
6324         * configure: Regenerated.
6325
6326         * tree-ssa-operands.h: Tuplified.
6327         * tree-vrp.c: Likewise.
6328         * tree-loop-linear.c: Likewise.
6329         * tree-into-ssa.c: Likewise.
6330         * tree-ssa-loop-im.c: Likewise.
6331         * tree-dump.c: Likewise.
6332         * tree-complex.c: Likewise.
6333         * cgraphbuild.c: Likewise.
6334         * tree-ssa-threadupdate.c: Likewise.
6335         * tree-ssa-loop-niter.c: Likewise.
6336         * tree-pretty-print.c: Likewise.
6337         * tracer.c: Likewise.
6338         * gengtype.c: Likewise.
6339         * tree-loop-distribution.c: Likewise.
6340         * tree-ssa-loop-unswitch.c: Likewise.
6341         * cgraph.c: Likewise.
6342         * cgraph.h: Likewise.
6343         * tree-ssa-loop-manip.c: Likewise.
6344         * value-prof.c: Likewise.
6345         * tree-ssa-loop-ch.c: Likewise.
6346         * tree-tailcall.c: Likewise.
6347         * value-prof.h: Likewise.
6348         * tree.c: Likewise.
6349         * tree.h: Likewise.
6350         * tree-pass.h: Likewise.
6351         * ipa-cp.c: Likewise.
6352         * tree-scalar-evolution.c: Likewise.
6353         * tree-scalar-evolution.h: Likewise.
6354         * target.h: Likewise.
6355         * lambda-mat.c: Likewise.
6356         * tree-phinodes.c: Likewise.
6357         * diagnostic.h: Likewise.
6358         * builtins.c: Likewise.
6359         * tree-ssa-alias-warnings.c: Likewise.
6360         * cfghooks.c: Likewise.
6361         * fold-const.c: Likewise.
6362         * cfghooks.h: Likewise.
6363         * omp-low.c: Likewise.
6364         * tree-ssa-dse.c: Likewise.
6365         * ipa-reference.c: Likewise.
6366         * tree-ssa-uncprop.c: Likewise.
6367         * toplev.c: Likewise.
6368         * tree-gimple.c: Likewise.
6369         * tree-gimple.h: Likewise.
6370         * tree-chrec.c: Likewise.
6371         * tree-chrec.h: Likewise.
6372         * tree-ssa-sccvn.c: Likewise.
6373         * tree-ssa-sccvn.h: Likewise.
6374         * cgraphunit.c: Likewise.
6375         * tree-ssa-copyrename.c: Likewise.
6376         * tree-ssa-ccp.c: Likewise.
6377         * tree-ssa-loop-ivopts.c: Likewise.
6378         * tree-nomudflap.c: Likewise.
6379         * tree-call-cdce.c: Likewise.
6380         * ipa-pure-const.c: Likewise.
6381         * c-format.c: Likewise.
6382         * tree-stdarg.c: Likewise.
6383         * tree-ssa-math-opts.c: Likewise.
6384         * tree-ssa-dom.c: Likewise.
6385         * tree-nrv.c: Likewise.
6386         * tree-ssa-propagate.c: Likewise.
6387         * ipa-utils.c: Likewise.
6388         * tree-ssa-propagate.h: Likewise.
6389         * tree-ssa-alias.c: Likewise.
6390         * gimple-low.c: Likewise.
6391         * tree-ssa-sink.c: Likewise.
6392         * ipa-inline.c: Likewise.
6393         * c-semantics.c: Likewise.
6394         * dwarf2out.c: Likewise.
6395         * expr.c: Likewise.
6396         * tree-ssa-loop-ivcanon.c: Likewise.
6397         * predict.c: Likewise.
6398         * tree-ssa-loop.c: Likewise.
6399         * tree-parloops.c: Likewise.
6400         * tree-ssa-address.c: Likewise.
6401         * tree-ssa-ifcombine.c: Likewise.
6402         * matrix-reorg.c: Likewise.
6403         * c-decl.c: Likewise.
6404         * tree-eh.c: Likewise.
6405         * c-pretty-print.c: Likewise.
6406         * lambda-trans.c: Likewise.
6407         * function.c: Likewise.
6408         * langhooks.c: Likewise.
6409         * ebitmap.h: Likewise.
6410         * tree-vectorizer.c: Likewise.
6411         * function.h: Likewise.
6412         * langhooks.h: Likewise.
6413         * tree-vectorizer.h: Likewise.
6414         * ipa-type-escape.c: Likewise.
6415         * ipa-type-escape.h: Likewise.
6416         * domwalk.c: Likewise.
6417         * tree-if-conv.c: Likewise.
6418         * profile.c: Likewise.
6419         * domwalk.h: Likewise.
6420         * tree-data-ref.c: Likewise.
6421         * tree-data-ref.h: Likewise.
6422         * tree-flow-inline.h: Likewise.
6423         * tree-affine.c: Likewise.
6424         * tree-vect-analyze.c: Likewise.
6425         * c-typeck.c: Likewise.
6426         * gimplify.c: Likewise.
6427         * coretypes.h: Likewise.
6428         * tree-ssa-phiopt.c: Likewise.
6429         * calls.c: Likewise.
6430         * tree-ssa-coalesce.c: Likewise.
6431         * tree.def: Likewise.
6432         * tree-dfa.c: Likewise.
6433         * except.c: Likewise.
6434         * except.h: Likewise.
6435         * cfgexpand.c: Likewise.
6436         * tree-cfgcleanup.c: Likewise.
6437         * tree-ssa-pre.c: Likewise.
6438         * tree-ssa-live.c: Likewise.
6439         * tree-sra.c: Likewise.
6440         * tree-ssa-live.h: Likewise.
6441         * tree-predcom.c: Likewise.
6442         * lambda.h: Likewise.
6443         * tree-mudflap.c: Likewise.
6444         * ipa-prop.c: Likewise.
6445         * print-tree.c: Likewise.
6446         * tree-ssa-copy.c: Likewise.
6447         * ipa-prop.h: Likewise.
6448         * tree-ssa-forwprop.c: Likewise.
6449         * ggc-page.c: Likewise.
6450         * c-omp.c: Likewise.
6451         * tree-ssa-dce.c: Likewise.
6452         * tree-vect-patterns.c: Likewise.
6453         * tree-ssa-ter.c: Likewise.
6454         * tree-nested.c: Likewise.
6455         * tree-ssa.c: Likewise.
6456         * lambda-code.c: Likewise.
6457         * tree-ssa-loop-prefetch.c: Likewise.
6458         * tree-inline.c: Likewise.
6459         * tree-inline.h: Likewise.
6460         * tree-iterator.c: Likewise.
6461         * tree-optimize.c: Likewise.
6462         * tree-ssa-phiprop.c: Likewise.
6463         * tree-vect-transform.c: Likewise.
6464         * tree-object-size.c: Likewise.
6465         * tree-outof-ssa.c: Likewise.
6466         * cfgloop.c: Likewise.
6467         * system.h: Likewise.
6468         * tree-profile.c: Likewise.
6469         * cfgloop.h: Likewise.
6470         * c-gimplify.c: Likewise.
6471         * c-common.c: Likewise.
6472         * tree-vect-generic.c: Likewise.
6473         * tree-flow.h: Likewise.
6474         * c-common.h: Likewise.
6475         * basic-block.h: Likewise.
6476         * tree-ssa-structalias.c: Likewise.
6477         * tree-switch-conversion.c: Likewise.
6478         * tree-ssa-structalias.h: Likewise.
6479         * tree-cfg.c: Likewise.
6480         * passes.c: Likewise.
6481         * ipa-struct-reorg.c: Likewise.
6482         * ipa-struct-reorg.h: Likewise.
6483         * tree-ssa-reassoc.c: Likewise.
6484         * cfgrtl.c: Likewise.
6485         * varpool.c: Likewise.
6486         * stmt.c: Likewise.
6487         * tree-ssanames.c: Likewise.
6488         * tree-ssa-threadedge.c: Likewise.
6489         * langhooks-def.h: Likewise.
6490         * tree-ssa-operands.c: Likewise.
6491         * config/alpha/alpha.c: Likewise.
6492         * config/frv/frv.c: Likewise.
6493         * config/s390/s390.c: Likewise.
6494         * config/m32c/m32c.c: Likewise.
6495         * config/m32c/m32c-protos.h: Likewise.
6496         * config/spu/spu.c: Likewise.
6497         * config/sparc/sparc.c: Likewise.
6498         * config/i386/i386.c: Likewise.
6499         * config/sh/sh.c: Likewise.
6500         * config/xtensa/xtensa.c: Likewise.
6501         * config/stormy16/stormy16.c: Likewise.
6502         * config/ia64/ia64.c: Likewise.
6503         * config/rs6000/rs6000.c: Likewise.
6504         * config/pa/pa.c: Likewise.
6505         * config/mips/mips.c: Likewise.
6506
6507 2008-07-28  Simon Baldwin  <simonb@google.com>
6508
6509         * c-pragma.c (handle_pragma_message): New function.
6510         (init_pragma): Register handle_pragma_message.
6511         * doc/extend.texi (Diagnostic Pragmas): Added #pragma message
6512         documentation.
6513
6514 2008-07-27  Victor Kaplansky  <victork@il.ibm.com>
6515
6516         PR tree-optimization/35252
6517         * tree-vect-analyze.c (vect_build_slp_tree): Make IMAGPART_EXPR and
6518         REALPART_EXPR to be considered as same load operation.
6519
6520 2008-07-27  Eric Botcazou  <ebotcazou@adacore.com>
6521
6522         PR tree-optimization/36830
6523         * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Hash operand #2.
6524         (expressions_equal_p): Return false if only one operand is null.
6525
6526 2008-07-26  Gerald Pfeifer  <gerald@pfeifer.com>
6527
6528         * doc/install.texi (powerpc-*-netbsd*): Remove redundant texinfo
6529         version requirements.
6530
6531 2008-07-26  Olivier Hainque  <hainque@adacore.com>
6532
6533         * collect2.c (symkind): New enum.  Symbol kinds we care about.
6534         (is_ctor_dtor): Return symkind instead of int.  Adjust prototype,
6535         code and head comment accordingly.
6536         (scan_prog_file): Use symkind names instead of bare integers.
6537
6538 2008-07-25  Jan Hubicka  <jh@suse.cz>
6539
6540         * cgraph.c (cgraph_function_possibly_inlined_p): Do not rely on
6541         DECL_INLINE.
6542         * cgraphunit.c (record_cdtor_fn): Do not initialize DECL_INLINE
6543         (cgraph_preserve_function_body_p): Do not rely on DECL_INLINE.
6544         * dojump.c (clear_pending_stack_adjust): Likewise.
6545         * print-tree.c (print_node): Ignore DECL_INLINE.
6546         * tree-inline.c (inlinable_function_p): Likewise.
6547
6548 2008-07-25  Michael Meissner  <gnu@the-meissners.org>
6549
6550         * doc/extend.texi (hot attribute): Document that the hot attribute
6551         turns on -O3 for some ports.
6552         (cold attribute): Document that the cold attribute turns on -Os
6553         for some ports
6554
6555         * doc/tm.texi (OPTIMIZATION_OPTIONS): Update documentation to
6556         reflect function specific option support.
6557
6558         * target.h (struct target_option_hooks): Add fields to say whether
6559         the cold attribute implies -Os and the hot attribute implies -O3.
6560
6561         * target-def.h (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION):
6562         By default, do not turn on -Os for cold functions.
6563         (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): By default, do
6564         not turn on -O3 for hot functions.
6565
6566         * c-common.c (handle_hot_attribute): Use target hook to determine
6567         if hot functions should enable -O3.
6568         (handle_cold_attribute): Use target hook to determine if cold
6569         functions should enable -Os.
6570
6571         * config/i386/i386.c (ix86_target_string): Add -m3dnowa support.
6572         (override_options): Move disable scheduling to
6573         optimization_options.
6574         (optimization_options): Disable scheduling here, not
6575         override_options.
6576         (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): Define.
6577         (TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION): Define.
6578
6579         * config/ia64/ia64.c (ia64_override_options): Move setting
6580         scheduling flags to ia64_optimization_options.
6581         (ia64_optimization_options): Disable scheduling options here, and
6582         not in ia64_override_options.
6583         (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): Define.
6584         (TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION): Define.
6585
6586 2008-07-25  H.J. Lu  <hongjiu.lu@intel.com>
6587
6588         PR target/36936
6589         * config/i386/i386.c (override_options): Don't clear TARGET_CMOVE.
6590
6591 2008-07-25  Martin Jambor  <mjambor@suse.cz>
6592
6593         PR tree-optimization/36926
6594         * ipa-prop.c (ipa_analyze_call_uses): Call
6595         ipa_is_ssa_with_stmt_def instead of SSA_NAME_IS_DEFAULT_DEF.
6596
6597 2008-07-25  Joseph Myers  <joseph@codesourcery.com>
6598
6599         * config/arm/iwmmxt.md (movv8qi_internal, movv4hi_internal,
6600         movv2si_internal): Add mem = reg alternative.
6601
6602 2008-07-25  Andreas Tobler  <a.tobler@schweiz.org>
6603
6604         PR bootstrap/36918
6605         * config/sparc/sparc.h (DEFAULT_PCC_STRUCT_RETURN): Define
6606         DEFAULT_PCC_STRUCT_RETURN to 127.
6607
6608 2008-07-24  Jan Hubicka  <jh@suse.cz>
6609
6610         * cgraphbuild.c (record_reference): Drop non-unit-at-a-time code.
6611         (build_cgraph_edges): Likewise.
6612         * cgraph.c (cgraph_node): Do not update assembler hash.
6613         (cgraph_remove_node): Drop non-unit-at-a-time code.
6614         * tree-pass.h (pass_O0_always_inline): Remove.
6615         * ipa-reference.c (gate_reference): Remove unit-at-a-time check.
6616         * toplev.c (process_options): Flag unit-at-a-time does not imply
6617         no section anchors.
6618         * cgraphunit.c: Update comments.
6619         (decide_is_function_needed): Drop non-unit-at-a-time mode.
6620         (cgraph_assemble_pending_functions): Remove.
6621         (cgraph_reset_node): Drop non-unit-at-a-time code.
6622         (cgraph_finalize_function): Likewise.
6623         (cgraph_analyze_function): Likewise.
6624         (cgraph_finalize_compilation_unit): Likewise.
6625         (cgraph_expand_function): Likewise.
6626         (cgraph_optimize): Likesise.
6627         (save_inline_function_body): Likewise.
6628         * ipa-pure-const.c (gate_pure_const): Drop flag_unit_at_a_time check.
6629         * tree-ssa-alias.c (maybe_be_aliased): Likewise.
6630         * ipa-inline.c: Update comments.
6631         (enum inlining_mode): remove INLINE_SPEED.
6632         (cgraph_clone_inlined_nodes): Drop unit-at-a-time check.
6633         (cgraph_mark_inline_edge): Likewise.
6634         (try_inline): Likewise.
6635         (cgraph_decide_inlining_incrementally): Likewise.
6636         (cgraph_gate_inlining): Remove.
6637         (cgraph_early_inlining): Remove flag_unit_at_a_time checks.
6638         (cgraph_gate_early_inlining): Likewise.
6639         (gate_inline_passes): Remove.
6640         (pass_inline_parameters, pass_ipa_inline): Remove gates.
6641         (cgraph_gate_O0_always_inline, cgraph_O0_always_inline,
6642         pass_O0_always_inline): Remove.
6643         * c-pch.c (c_pch_matching): Remove -funit-at-a-time.
6644         * dwarf2out.c (reference_to_unused): Remove flag_unit_at_a_time check.
6645         * opts.c (no_unit_at_a_time_default): Remove.
6646         (decode_options): Remove flag_unit_at_a_time reset and warning.
6647         * opts.h (no_unit_at_a_time_default): Remove.
6648         * c-decl.c (diagnose_mismatched_decls): Do not require inline keyword
6649         early in GNU dialect.
6650         (merge_decls): Update comment; drop unit-at-a-time check.
6651         (finish_decl): Likewise.
6652         (grok_declaration): Remove flag_inline_trees code.
6653         (finish_functions): Return on function returning non-void on all
6654         statics.
6655         * ipa-tye-escape.c (gate_type_escape_vars): Remove.
6656         * cfgexpand.c (expand_one_static_var): Remove.
6657         (expand_one_var): Remove expand_one_static_var call.
6658         (expand_used_vars_for_block): Remove flag_unit_a_time check.
6659         * c-opts.c (c_common_post_options): Remove flag_inline_trees code
6660         and flag_unit_at_a-time compatibility checks.
6661         * varasm.c (assemble_alias): Remove flag_unit_at_a_time check.
6662         * tree-inline.c (flag_inline_trees): Remove.
6663         (inlinable_function_p): Don't check it.
6664         (expand_call_inline): Remove non-unit-at-a-time code.
6665         * tree-inline.h (flag_inline_trees): Remove.
6666         * tree-optimize.c (execute_early_local_optimizations): Remove
6667         unit-at-a-time checks.
6668         (tree_rest_of_compilation): Likewise.
6669         * combine.c (setup_incoming_promotions): Likewise.
6670         * tree-profile.c (tree_gen_ic_func_profiler): Likewise.
6671         * tree-ssa-structalias.c (delete_points_to_sets): Likewise.
6672         * passes.c (pass_inline_parameters): Update comments; remove
6673         O0_alwaysinline pass.
6674         (execute_one_ipa_transform_pass): Do not reset in_gimple_form.
6675         (execute_one_pass): Likewise.
6676         * i386.c (ix86_function_regparm): Remove unit-at-a-time check.
6677         (ix86_function_sseregparm): Likewise.
6678         * arm.c (arm_function_in_section_p): Likewise.
6679         * bfin.c (bfin_load_pic_reg, bfin_function_ok_for_sibcall): Likewise.
6680         * varpool.c: Update comments.
6681         (decide_is_variable_needed): Remove unit-at-a-time checks.
6682         (varpool_finalize_decl): Likewise.
6683
6684 2008-07-24  Kaz Kojima  <kkojima@gcc.gnu.org>
6685
6686         * config/sh/sh.h (OPTIMIZATION_OPTIONS): Set flag_omit_frame_pointer
6687         to 2 instead of -1.
6688         (OVERRIDE_OPTIONS): Check if flag_omit_frame_pointer is equal to 2.
6689
6690 2008-07-24  Kai Tietz  <kai.tietz@onevision.com>
6691
6692         * config/i386/i386.c (get_dllimport_decl): Treat user_label_prefix for
6693         imp symbol extension.
6694
6695         2008-07-23  Ian Lance Taylor  <iant@google.com>
6696
6697         * tree-vrp.c (infer_value_range): Ignore asm statements when
6698         looking for memory accesses for -fdelete-null-pointer-checks.
6699
6700 2008-07-24  Ben Elliston  <bje@au.ibm.com>
6701
6702         * config/spu/spu-c.c (__vector_keyword): New variable.
6703         (vector_keyword): Likewise.
6704         (spu_categorize_keyword): New function.
6705         (spu_macro_to_expand): Likewise.
6706         (spu_cpu_cpp_builtins): Enable context-sensitive macros if not
6707         compiling an ISO C dialect.
6708
6709 2008-07-24  Ben Elliston  <bje@au.ibm.com>
6710
6711         * config/rs6000/rs6000-c.c: Move GTY(()) markers to match
6712         conventional usage.
6713
6714 2008-07-23  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
6715
6716         * configure: Regenerate.
6717         * configure.ac: Require texinfo 4.7.
6718         * doc/install.texi: Document texinfo 4.7 requirement.
6719
6720 2008-07-23  Martin Jambor  <mjambor@suse.cz>
6721
6722         * ipa-cp.c (ipcp_print_edge_profiles): Test for node->analyzed
6723         rather than for DECL_SAVED_TREE.
6724         * ipa-prop.c: Include diagnostic.h.
6725         (ipa_check_stmt_modifications): Check LHS of GIMPLE_MODIFY_EXPRs
6726         thoroughly.
6727         (ipa_detect_param_modifications): Function rewritten from scratch.
6728         (ipa_compute_jump_functions): Changed accesses to modification flags.
6729         (ipa_free_node_params_substructures): Update flags destruction.
6730         (ipa_node_duplication_hook): Update flags duplication.
6731         (ipa_print_all_params_modified): Updated flag access.
6732         * ipa-prop.h (struct ipa_param_flags): New structure.
6733         (struct ipa_node_params): New field modification_analysis_done,
6734         modified_flags changed into param_flags.
6735         (ipa_is_ith_param_modified): Changed to use new flags.
6736         * Makefile.in (ipa-prop.o): Add $(DIAGNOSTIC_H) to dependencies.
6737
6738         * ipa-prop.c (ipa_print_all_jump_functions): Moved here from
6739         ipa-cp.c and split into two functions.
6740         (ipa_print_node_jump_functions): New function.
6741         (compute_scalar_jump_functions): New function.
6742         (type_like_member_ptr_p): New function.
6743         (compute_pass_through_member_ptrs): New function.
6744         (fill_member_ptr_cst_jump_function): New function.
6745         (determine_cst_member_ptr): New function.
6746         (compute_cst_member_ptr_arguments): New function.
6747         (ipa_compute_jump_functions): Complete rewrite.
6748         * ipa-prop.h (enum jump_func_type): Make explicit that we depend
6749         on IPA_UNKNOWN being zero. Added value IPA_CONST_MEMBER_PTR.
6750         (struct ipa_member_ptr_cst): New structure.
6751         (union jump_func_value): New field member_cst.
6752         * ipa-cp.c (ipcp_lat_is_insertable): New function.
6753         (ipcp_lattice_from_jfunc): Produces bottom lattices for unhandled
6754         jump function types.
6755         (ipcp_print_all_lattices): Slight fprintf rearrangement.
6756         (ipcp_print_all_structures): Call ipa_print_all_jump_functions
6757         instead of ipcp_print_all_jump_functions.
6758         (ipcp_insert_stage): Use ipcp_lat_is_insertable, create replace maps
6759         only for replacable scalars.
6760
6761         * doc/invoke.texi (Optimize options): Add description of
6762         -findirect-inlining.
6763         * common.opt (flag_indirect_inlining): New flag.
6764         * opts.c (decode_options): Set flag_indirect_inlining when
6765         optimize >= 3.
6766
6767         * ipa-inline.c: Include ipa-prop.h.
6768         (inline_indirect_intraprocedural_analysis): New function.
6769         (inline_generate_summary): Allocate parameter and argument info
6770         structures, call inline_indirect_intraprocedural_analysis on each
6771         node when doing indirect inlining and deallocate indirect inlining
6772         data structures in the end.
6773         * ipa-prop.c (ipa_create_param_decls_array): Return if already done.
6774         (free_all_ipa_structures_after_iinln): New function.
6775         (free_all_ipa_structures_after_ipa_cp): Checks whether iinln will be
6776         done.
6777         * Makefile.in (ipa-inline.o): Added $(IPA_PROP_H) to dependencies.
6778
6779         * cgraphbuild.c (compute_call_stmt_bb_frequency): New function.
6780         (build_cgraph_edges): Call compute_call_stmt_bb_frequency instead
6781         of computing the frequency separately.
6782         (rebuild_cgraph_edges): Call compute_call_stmt_bb_frequency instead
6783         of computing the frequency separately.
6784         * ipa-cp.c (ipcp_print_all_structures): Replace a call to
6785         ipa_print_all_param_modified with a call to ipa_print_all_param_flags.
6786         * ipa-prop.c (ipa_get_member_ptr_load_param): New function.
6787         (ipa_get_stmt_member_ptr_load_param): New function.
6788         (ipa_is_ssa_with_stmt_def): New function.
6789         (ipa_note_param_call): New function.
6790         (ipa_analyze_call_uses): New function.
6791         (ipa_analyze_stmt_uses): New function.
6792         (ipa_analyze_params_uses): New function.
6793         (ipa_free_node_params_substructures): Also free the param_calls linked
6794         list.
6795         (ipa_node_duplication_hook): Also duplicate the param_calls linked list.
6796         (ipa_print_node_param_flags): New function.
6797         (ipa_print_all_params_modified): Renamed to ipa_print_all_param_flags.
6798         (ipa_print_all_param_flags): Calls ipa_print_node_param_flags.
6799         * ipa-prop.h (struct ipa_param_flags): New field called.
6800         (struct ipa_param_call_note): New structure.
6801         (struct ipa_node_params): New fields param_calls and
6802         uses_analysis_done.
6803         (ipa_is_ith_param_called): New function.
6804         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
6805         ipa_analyze_params_uses and dump parameter flags.
6806
6807         * ipa-inline.c (cgraph_decide_recursive_inlining): Call
6808         ipa_propagate_indirect_call_infos if performing indirect inlining,
6809         pass a new parameter new_edges to it.
6810         (add_new_edges_to_heap): New fucntion.
6811         (cgraph_decide_inlining_of_small_functions): New vector
6812         new_indirect_edges for newly found indirect edges , call
6813         ipa_propagate_indirect_call_infos after inlining.
6814         (cgraph_decide_inlining): Call ipa_propagate_indirect_call_infos after
6815         inlining if performing indirect inlining.  Call
6816         free_all_ipa_structures_after_iinln when doing so too.
6817         (inline_generate_summary): Do not call
6818         free_all_ipa_structures_after_iinln here.
6819         * ipa-prop.c (update_jump_functions_after_inlining): New function.
6820         (print_edge_addition_message): New function.
6821         (update_call_notes_after_inlining): New function.
6822         (propagate_info_to_inlined_callees): New function.
6823         (ipa_propagate_indirect_call_infos): New function.
6824         * ipa-prop.h: Include cgraph.h
6825         (struct ipa_param_call_note): Fields reordered, new field processed.
6826         * cgraph.h (cgraph_edge): Shrink loop_nest field to 31 bits, add a new
6827         flag indirect_call.
6828         * cgraphunit.c (verify_cgraph_node): Allow indirect edges not to have
6829         rediscovered call statements.
6830         * cgraph.c (cgraph_create_edge): Initialize indirect_call to zero.
6831         (dump_cgraph_node): Dump also the indirect_call flag.
6832         (cgraph_clone_edge): Copy also the indirect_call flag.
6833         * tree-inline.c (copy_bb): Do not check for fndecls from call
6834         expressions, check for edge availability when moving clones.
6835         (get_indirect_callee_fndecl): New function.
6836         (expand_call_inline): If callee declaration is not apprent from
6837         the statement, try calling get_indirect_callee_fndecl.  Do not
6838         issue warnings or call sorry when not inlinings an indirect edge.
6839         * Makefile.in (IPA_PROP_H): Added $(CGRAPH_H) to dependencies.
6840
6841         * ipa-prop.c (ipa_print_node_param_flags): Make the dump format a
6842         bit more frandly to matching.
6843         * testsuite/g++.dg/ipa/iinline-1.C: New testcase.
6844         * testsuite/gcc.dg/ipa/iinline-1.c: New testcase.
6845         * testsuite/gcc.dg/ipa/modif-1.c: New testcase.
6846
6847 2008-07-23  Michael Meissner  <gnu@the-meissners.org>
6848
6849         PR 36907
6850         * opth-gen.awk: Suppress function specific features when building
6851         target libraries.
6852         * optc-gen.awk: Ditto.
6853
6854 2008-07-23  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
6855
6856         PR 35058
6857         * diagnostic.c (pedwarn): Add opt parameter.
6858         (pedwarn0): New.
6859         * c-tree.h (pedwarn_init): Add opt parameter.
6860         (pedwarn_c90): Likewise.
6861         (pedwarn_c99): Likewise.
6862         * c-errors.c (pedwarn_c99): Likewise.
6863         (pedwarn_c90): Likewise.
6864         * toplev.h (pedwarn): Update declaration.
6865         (pedwarn0): Declare.
6866         * c-lex.c: All calls to pedwarn changed.
6867         * builtins.c: All calls to pedwarn changed.
6868         * toplev.c: All calls to pedwarn changed.
6869         * c-decl.c: All calls to pedwarn changed.
6870         * c-typeck.c: All calls to pedwarn changed.
6871         * c-common.c: All calls to pedwarn changed.
6872         * c-parser.c: All calls to pedwarn changed.
6873
6874 2008-07-23  Michael Meissner  <gnu@the-meissners.org>
6875             Karthik Kumar  <karthikkumar@gmail.com>
6876
6877         * attribs.c (file scope): Include c-common.h.
6878         (decl_attributes): Add support for #pragma GCC optimize and
6879         #pragma GCC option.
6880
6881         * targhooks.c (default_can_inline_p): New function that is the
6882         default for the TARGET_CAN_INLINE_P target hook.
6883
6884         * targhooks.h (default_can_inline_p): Add declaration.
6885
6886         * tree.c (cl_optimization_node): New static tree for building
6887         OPTIMIZATION_NODE tree.
6888         (cl_target_option_node): New static tree for building
6889         TARGET_OPTION_NODE tree.
6890         (cl_option_hash_table): New hash table for hashing
6891         OPTIMIZATION_NODE and TARGET_OPTION_NODE trees.
6892         (cl_option_hash_hash): New function to provide the hash value for
6893         OPTIMIZATION_NODE and TARGET_OPTION_NODE trees.
6894         (cl_option_hash_eq): New function to provide an equality test for
6895         OPTIMIZATION_NODE and TARGET_OPTION_NODE trees.
6896         (tree_code_size): Add support for OPTIMIZATION_NODE and
6897         TARGET_OPTION_NODE trees.
6898         (tree_code_structure): Add support for OPTIMIZATION_NODE and
6899         TARGET_OPTION_NODE trees.
6900         (build_optimization_node): Build a tree that has all of the
6901         current optimization options.
6902         (build_target_option_node): Build a tree that has the target
6903         options that might be changed on a per function basis.
6904
6905         * tree.h (file scope): Include options.h.
6906         (DECL_FUNCTION_SPECIFIC_TARGET): New accessor macro.
6907         (DECL_FUNCTION_SPECIFIC_OPTIMIZATION): Ditto.
6908         (TREE_OPTIMIZATION): Ditto.
6909         (TREE_TARGET_SPECIFIC): Ditto.
6910         (struct tree_function_decl): Add fields for remembering the
6911         current optimization options and target specific options.
6912         (struct tree_optimization_option): New tree variant that remembers
6913         the optimization options.
6914         (struct tree_target_option): New tree variant that remembers the
6915         target specific flags that might change for compiling a particular
6916         function.
6917         (union tree_node): Include tree_optimization_option and
6918         tree_target_option fields.
6919         (enum tree_index): Add TI_OPTIMIZATION_DEFAULT,
6920         TI_OPTIMIZATION_CURRENT, TI_OPTIMIZATION_COLD,
6921         TI_OPTIMIZATION_HOT, TI_TARGET_OPTION_DEFAULT,
6922         TI_TARGET_OPTION_CURRENT, TI_CURRENT_OPTION_PRAGMA,
6923         TI_CURRENT_OPTIMIZE_PRAGMA entries for saving function specific
6924         optimization and target options.
6925         (optimization_default_node): New macro to refer to global_trees
6926         field.
6927         (optimization_current_node): Ditto.
6928         (optimization_cold_node): Ditto.
6929         (optimization_hot_node): Ditto.
6930         (target_option_default_node): Ditto.
6931         (target_option_current_node): Ditto.
6932         (current_option_pragma): Ditto.
6933         (current_optimize_pragma): Ditto.
6934
6935         * target.h (struct gcc_target): Add valid_option_attribute_p,
6936         target_option_save, target_option_restore, target_option_print,
6937         target_option_pragma_parse, and can_inline_p hooks.
6938
6939         * toplev.h (parse_optimize_options): Add declaration.
6940         (fast_math_flags_struct_set_p): Ditto.
6941
6942         * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): New function to
6943         adjust the current __OPTIMIZE__, etc. macros when #pragma GCC
6944         optimize is used.
6945
6946         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Call
6947         tree_can_inline_p hook to see if one function can inline another.
6948         (cgraph_decide_inlining): Ditto.
6949         (cgraph_decide_inlining_incrementally): Ditto.
6950
6951         * opts.c (decode_options): Add support for running multiple times
6952         to allow functions with different target or optimization options
6953         than was specified on the command line.
6954         (fast_math_flags_struct_set_p): New function that is similar to
6955         fast_math_flags_set_p, except it uses the values in the
6956         cl_optimization structure instead of global variables.
6957
6958         * optc-gen.awk: Add support for TargetSave to allow a back end to
6959         declare new fields that need to be saved when using function
6960         specific options.  Include flags.h and target.h in the options.c
6961         source.  Add support for Save to indicate which options can be set
6962         for individual functions.  Generate cl_optimize_save,
6963         cl_optimize_restore, cl_optimize_print, cl_target_option_save,
6964         cl_target_option_restore, cl_target_option_print functions to
6965         allow functions to use different optimization or target options.
6966
6967         * opt-functions.awk (var_type_struct): Return the type used for
6968         storing the field in a structure.
6969
6970         * opth-gen.awk: Add support for TargetSave to allow a back end to
6971         declare new fields that need to be saved when using function
6972         specific options.  Add support for Save to indicate which options
6973         can be set for individual functions.  Only generate one extern for
6974         Mask fields.  Generate cl_optimization and cl_target_option
6975         structures to remember optimization and target options.
6976
6977         * treestruct.def (TS_OPTIMIZATION): Add support for garbage
6978         collecting new tree nodes.
6979         (TS_TARGET_OPTION): Ditto.
6980
6981         * c-decl.c (merge_decls): Merge function specific target and
6982         optimization options.
6983
6984         * function.c (invoke_set_current_function_hook): If the function
6985         uses different optimization options, change the global variables
6986         to reflect this.
6987
6988         * coretypes.h (struct cl_optimization): Add forward reference.
6989         (struct cl_target_option): Ditto.
6990
6991         * c-pragma.c (option_stack): New static vector to remember the
6992         current #pragma GCC option stack.
6993         (handle_pragma_option): New function to support #pragma GCC option
6994         to change target options.
6995         (optimize_stack): New static vector to remember the current
6996         #pragma GCC optimize stack.
6997         (handle_pragma_optimize): New function to support #pragma GCC
6998         optimize to change optimization options.
6999         (init_pragma): Add support for #pragma GCC optimize and #pragma
7000         GCC option.
7001
7002         * tree.def (OPTIMIZATION_NODE): New tree code for remembering
7003         optimization options.
7004         (TARGET_OPTION_NODE): New tree code for remembering certain target
7005         options.
7006
7007         * print-tree.c (print_node): Add support for OPTIMIZATION_NODE and
7008         TARGET_OPTION_NODE trees.
7009
7010         * common.opt (-O): Add Optimization flag.
7011         (-Os): Ditto.
7012         (-fmath-errno): Ditto.
7013         (-falign-functions): Add UInteger flag to make sure flag gets full
7014         int in cl_optimization structure.
7015         (-falign-jumps): Ditto.
7016         (-falign-labels): Ditto.
7017         (-falign-loops): Ditto.
7018         (-fsched-stalled-insns): Ditto.
7019         (-fsched-stalled-insns-dep): Ditto.
7020
7021         * target-def.h (TARGET_VALID_OPTION_ATTRIBUTE_P): Add default
7022         definition.
7023         (TARGET_OPTION_SAVE): Ditto.
7024         (TARGET_OPTION_RESTORE): Ditto.
7025         (TARGET_OPTION_PRINT): Ditto.
7026         (TARGET_OPTION_PRAGMA_PARSE): Ditto.
7027         (TARGET_CAN_INLINE_P): Ditto.
7028         (TARGET_INITIALIZER): Add new hooks.
7029
7030         * tree-inline.c (tree_can_inline_p): New function to determine
7031         whether one function can inline another.  Check if the functions
7032         use compatible optimization options, and also call the backend
7033         can_inline_p hook.
7034
7035         * tree-inline.h (tree_can_inline_p): Add declaration.
7036
7037         * c-common.c (c_common_attribute): Add support for option and
7038         optimize attributes.
7039         (handle_option_attribute): Add support for the option attribute to
7040         allow the user to specify different target options for compiling a
7041         specific function.
7042         (handle_optimize_attribute): Add support for the optimize
7043         attribute to allow the user to specify different optimization
7044         options for compiling a specific function.
7045         (handle_hot_attribute): Turn on -O3 optimization for this one
7046         function if it isn't the default optimization level.
7047         (handle_cold_attribute): Turn on -Os optimization for this one
7048         function if it insn't the default optimization.
7049         (const_char_p): New const char * typedef.
7050         (optimize_args): New static vector to remember the optimization
7051         arguments.
7052         (parse_optimize_options): New function to set up the optimization
7053         arguments from either the optimize attribute or #pragma GCC optimize.
7054
7055         * c-common.h (c_cpp_builtins_optimize_pragma): Add declaration.
7056         (builtin_define_std): Ditto.
7057
7058         * config.gcc (i[3467]86-*-*): Add i386-c.o to C/C++ languages.
7059         Add t-i386 Makefile fragment to add i386-c.o and i386.o dependencies.
7060         (x86_64-*-*): Ditto.
7061
7062         * Makefile.in (TREE_H): Add options.h.
7063         (options.o): Add $(TARGET_H) $(FLAGS_H) dependencies.
7064
7065         * doc/extend.texi (option attribute): Document new attribute.
7066         (optimize attribute): Ditto.
7067         (hot attribute): Document hot attribute sets -O3.
7068         (cold attribute): Document cold attribute sets -Os.
7069         (#pragma GCC option): Document new pragma.
7070         (#pragma GCC optimize): Ditto.
7071
7072         * doc/options.texi (TargetSave): Document TargetSave syntax.
7073         (UInteger): Document UInteger must be used for certain flags.
7074         (Save): Document Save option to create target specific options
7075         that can be saved/restored on a function specific context.
7076
7077         * doc/c-tree.texi (DECL_FUNCTION_SPECIFIC_TARGET): Document new macro.
7078         (DECL_FUNCTION_SPECIFIC_OPTIMIZATION): Ditto.
7079
7080         * doc/tm.texi (TARGET_VALID_OPTION_ATTRIBUTE_P): Document new hook.
7081         (TARGET_OPTION_SAVE): Ditto.
7082         (TARGET_OPTION_RESTORE): Ditto.
7083         (TARGET_OPTION_PRINT): Ditto.
7084         (TARGET_OPTION_PRAGMA_PARSE): Ditto.
7085         (TARGET_CAN_INLINE_P): Ditto.
7086
7087         * doc/invoke.texi (-mfpmath=sse+387): Document as an alias for
7088         -mfpmath=sse,387.
7089         (-mfpmath=both): Ditto.
7090
7091 2008-07-23  Michael Meissner  <gnu@the-meissners.org>
7092             Karthik Kumar  <karthikkumar@gmail.com>
7093
7094         * config/i386/i386.h (TARGET_ABM): Move switch into ix86_isa_flags.
7095         (TARGET_POPCNT): Ditto.
7096         (TARGET_SAHF): Ditto.
7097         (TARGET_AES): Ditto.
7098         (TARGET_PCLMUL): Ditto.
7099         (TARGET_CMPXCHG16B): Ditto.
7100         (TARGET_RECIP): Move switch into target_flags.
7101         (TARGET_FUSED_MADD): Ditto.
7102         (ix86_arch_features): Make an unsigned char type.
7103         (ix86_tune_features): Ditto.
7104         (OVERRIDE_OPTIONS): Add bool argument to override_options call.
7105         (TARGET_CPU_CPP_BUILTINS): Move into ix86_target_macros.
7106         (REGISTER_TARGET_PRAGMAS): Define, call ix86_register_pragmas.
7107
7108         * config/i386/i386.opt (arch): New TargetSave field to define
7109         fields that need to be saved for function specific option support.
7110         (tune): Ditto.
7111         (fpmath): Ditto.
7112         (branch_cost): Ditto.
7113         (ix86_isa_flags_explicit): Ditto.
7114         (tune_defaulted): Ditto.
7115         (arch_specified): Ditto.
7116         (-m128-long-double): Add Save flag to save option for target
7117         specific option support.
7118         (-m80387): Ditto.
7119         (-maccumulate-outgoing-args): Ditto.
7120         (-malign-double): Ditto.
7121         (-malign-stringops): Ditto.
7122         (-mfancy-math-387): Ditto.
7123         (-mhard-float): Ditto.
7124         (-mieee-fp): Ditto.
7125         (-minline-all-stringops): Ditto.
7126         (-minline-stringops-dynamically): Ditto.
7127         (-mms-bitfields): Ditto.
7128         (-mno-align-stringops): Ditto.
7129         (-mno-fancy-math-387): Ditto.
7130         (-mno-push-args): Ditto.
7131         (-mno-red-zone): Ditto.
7132         (-mpush-args): Ditto.
7133         (-mred-zone): Ditto.
7134         (-mrtd): Ditto.
7135         (-msseregparm): Ditto.
7136         (-mstack-arg-probe): Ditto.
7137         (-m32): Ditto.
7138         (-m64): Ditto.
7139         (-mmmx): Ditto.
7140         (-m3dnow): Ditto.
7141         (-m3dnowa): Ditto.
7142         (-msse): Ditto.
7143         (-msse2): Ditto.
7144         (-msse3): Ditto.
7145         (-msse4.1): Ditto.
7146         (-msse4.2): Ditto.
7147         (-msse4): Ditto.
7148         (-mno-sse4): Ditto.
7149         (-msse4a): Ditto.
7150         (-msse5): Ditto.
7151         (-mrecip): Move flag into target_flags.
7152         (-mcld): Ditto.
7153         (-mno-fused-madd): Ditto.
7154         (-mfused-madd): Ditto.
7155         (-mabm): Move flag into ix86_isa_flags.
7156         (-mcx16): Ditto.
7157         (-mpopcnt): Ditto.
7158         (-msahf): Ditto.
7159         (-maes): Ditto.
7160         (-mpclmul): Ditto.
7161
7162         * config/i386/i386-c.c: New file for #pragma support.
7163         (ix86_target_macros_internal): New function to #define or #undef
7164         target macros based when the user uses the #pragma GCC option to
7165         change target options.
7166         (ix86_pragma_option_parse): New function to add #pragma GCC option
7167         support.
7168         (ix86_target_macros): Move defining the target macros here from
7169         TARGET_CPU_CPP_BUILTINS in i386.h.
7170         (ix86_register_pragmas): Register the #pragma GCC option hook.  If
7171         defined, initialize any subtarget #pragmas.
7172
7173         * config/i386/darwin.h (REGISTER_SUBTARGET_PRAGMAS): Rename from
7174         REGISTER_TARGET_PRAGMAS.
7175
7176         * config/i386/t-i386: New file for x86 dependencies.
7177         (i386.o): Make dependencies mirror the include files used.
7178         (i386-c.o): New file, add dependencies.
7179
7180         * config/i386/i386-protos.h (override_options): Add bool argument.
7181         (ix86_valid_option_attribute_tree): Add declaration.
7182         (ix86_target_macros): Ditto.
7183         (ix86_register_macros): Ditto.
7184
7185         * config/i386/i386.c (ix86_tune_features): Move initialization of
7186         the target masks to initial_ix86_tune_features to allow functions
7187         to have different target options.  Make type unsigned char,
7188         instead of unsigned int.
7189         (initial_ix86_tune_features): New static vector to hold processor
7190         masks for the tune variables.
7191         (ix86_arch_features): Move initialization of the target masks to
7192         initial_ix86_arch_features to allow functions to have different
7193         target options.  Make type unsigned char, instead of unsigned int.
7194         (initial_ix86_arch_features): New static vector to hold processor
7195         masks for the arch variables.
7196         (enum ix86_function_specific_strings): New enum to describe the
7197         string options used for attribute((option(...))).
7198         (ix86_target_string): New function to return a string that
7199         describes the target options.
7200         (ix86_debug_options): New function to print the current options in
7201         the debugger.
7202         (ix86_function_specific_save): New function hook to save the
7203         function specific global variables in the cl_target_option structure.
7204         (ix86_function_specific_restore): New function hook to restore the
7205         function specific variables from the cl_target_option structure to
7206         the global variables.
7207         (ix86_function_specific_print): New function hook to print the
7208         target specific options in the cl_target_option structure.
7209         (ix86_valid_option_attribute_p): New function hook to validate
7210         attribute((option(...))) arguments.
7211         (ix86_valid_option_attribute_tree): New function that is common
7212         code between attribute((option(...))) and #pragma GCC option
7213         support that parses the options and returns a tree holding the options.
7214         (ix86_valid_option_attribute_inner_p): New helper function for
7215         ix86_valid_option_attribute_tree.
7216         (ix86_can_inline_p): New function hook to decide if one function
7217         can inline another on a target specific basis.
7218         (ix86_set_current_function); New function hook to switch target
7219         options if the user used attribute((option(...))) or #pragma GCC
7220         option.
7221         (ix86_tune_defaulted): Move to static file scope from
7222         override_options.
7223         (ix86_arch_specified): Ditto.
7224         (OPTION_MASK_ISA_AES_SET): New macro for moving switches into
7225         ix86_isa_flags.
7226         (OPTION_MASK_ISA_PCLMUL_SET): Ditto.
7227         (OPTION_MASK_ISA_ABM_SET): Ditto.
7228         (OPTION_MASK_ISA_POPCNT_SET): Ditto.
7229         (OPTION_MASK_ISA_CX16_SET): Ditto.
7230         (OPTION_MASK_ISA_SAHF_SET): Ditto.
7231         (OPTION_MASK_ISA_AES_UNSET): Ditto.
7232         (OPTION_MASK_ISA_PCLMUL_UNSET): Ditto.
7233         (OPTION_MASK_ISA_ABM_UNSET): Ditto.
7234         (OPTION_MASK_ISA_POPCNT_UNSET): Ditto.
7235         (OPTION_MASK_ISA_CX16_UNSET): Ditto.
7236         (OPTION_MASK_ISA_SAHF_UNSET): Ditto.
7237         (struct ptt): Move to static file scope from override_options.
7238         (processor_target_table): Ditto.
7239         (cpu_names): Ditto.
7240         (ix86_handle_option): Add support for options that are now isa options.
7241         (override_options): Add support for declaring functions that
7242         support different target options than were specified on the
7243         command line.  Move struct ptt, processor_target_table, cpu_names,
7244         ix86_tune_defaulted, ix86_arch_specified to static file scope.
7245         Add bool argument.  Fix up error messages so the appropriate error
7246         is given for either command line or attribute.
7247         (ix86_previous_fndecl): New static to remember previous function
7248         declaration to see if we need to change target options.
7249         (ix86_builtins_isa): New array to record the ISA of each builtin
7250         function.
7251         (def_builtin): Always create the builtin function, even if the
7252         current ISA doesn't support it.
7253         (ix86_init_mmx_sse_builtins): Remove TARGET_AES and TARGET_PCLMUL
7254         tests for those builtins.
7255         (ix86_init_builtins): Remove TARGET_MMX test for calling
7256         ix86_init_mmx_sse_builtins.
7257         (ix86_expand_builtin): If the current ISA doesn't support a given
7258         builtin, signal an error.
7259         (TARGET_VALID_OPTION_ATTRIBUTE_P): Set target hook.
7260         (TARGET_SET_CURRENT_FUNCTION): Ditto.
7261         (TARGET_OPTION_SAVE): Ditto.
7262         (TARGET_OPTION_RESTORE): Ditto.
7263         (TARGET_OPTION_PRINT): Ditto.
7264         (TARGET_CAN_INLINE_P): Ditto.
7265
7266 2008-07-22  Rafael Ávila de Espíndola  <espindola@google.com>
7267
7268         * c-typeck.c (build_external_ref): Don't call assemble_external.
7269         * final.c (output_operand): Call assemble_external.
7270
7271 2008-07-21  DJ Delorie  <dj@redhat.com>
7272
7273         * config/h8300/h8300.c (h8300_hard_regno_scratch_ok): New.
7274         (TARGET_HARD_REGNO_SCRATCH_OK): Define.
7275
7276 2008-07-21  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7277
7278         * config/spu/spu.md ("div<mode>3"): Convert into expander, move
7279         original insn and splitter contents into ...
7280         ("*div<mode>3_fast"): ... this new pattern.  Enable only if
7281         flag_unsafe_math_optimizations.  Add dummy scratch register.
7282         ("*div<mode>3_adjusted"): New insn and splitter.  Enable only if
7283         !flag_unsafe_math_optimizations.  Returns number with next
7284         highest magnitude if this is still less or equal to the true
7285         quotient in magnitude.
7286
7287 2008-07-21  Rafael Ávila de Espíndola  <espindola@google.com>
7288
7289         * Makefile.in: Replace toplev.h with TOPLEV_H.
7290         * c-decl.c (merge_decls): Don't set DECL_IN_SYSTEM_HEADER.
7291         * c-lex.c (fe_file_change): Don't set in_system_header.
7292         * c-parser.c (c_token): Remove in_system_header.
7293         (c_lex_one_token): Don't set in_system_header.
7294         (c_parser_set_source_position_from_token): Don't set in_system_header.
7295         * diagnostic.c (diagnostic_report_diagnostic): Use location from
7296         diagnostic_info.
7297         (warning_at): New.
7298         * diagnostic.h (diagnostic_report_warnings_p): Add LOC argument.
7299         * flags.h (in_system_header): Remove.
7300         * function.c (saved_in_system_header): Remove.
7301         (push_cfun): Don't set in_system_header.
7302         (pop_cfun): Don't set in_system_header.
7303         (push_struct_function): Don't set in_system_header.
7304         * input.h (expanded_location): Add sysp.
7305         (in_system_header_at): New.
7306         (in_system_header): New.
7307         * toplev.c (in_system_header): Remove.
7308         * toplev.h: Include input.h
7309         (warning_at): New.
7310         * tree-cfg.c (execute_warn_function_return): Call warning_at.
7311         * tree-ssa.c (warn_uninit): Call warning_at.
7312         (warn_uninitialized_var): Update calls to warn_uninit.
7313         (warn_uninitialized_phi): Update calls to warn_uninit.
7314         * tree.c (make_node_stat): Don't set DECL_IN_SYSTEM_HEADER.
7315         (expand_location): Initialize xloc.sysp.
7316         * tree.h (DECL_IN_SYSTEM_HEADER): Use in_system_header_at.
7317         (tree_decl_with_vis): Remove in_system_header_flag.
7318
7319 2008-07-21  Andreas Krebbel  <krebbel1@de.ibm.com>
7320
7321         PR target/36822
7322         * recog.c (asm_operand_ok): Change the order of the extra
7323         memory constraint checks.
7324
7325 2008-07-20  Andrew Pinski  <andrew_pinski@playstation.sony.com>
7326
7327         PR tree-opt/36879
7328         * tree-switch-conversion.c (build_one_array): Call
7329         varpool_mark_needed_node and varpool_finalize_decl
7330         instead of assemble_variable.
7331
7332 2008-07-19  Jan Hubicka  <jh@suse.cz>
7333
7334         * cgraph.c (cgraph_add_new_function): Do early local passes.
7335         * tree-nrv.c (gate_pass_return_slot): New gate.
7336         (pass_nrv): Add the gate.
7337         * tree-ssa-coalese.c (hash_ssa_name_by_var, eq_ssa_name_by_var): New
7338         functions.
7339         (coalesce_ssa_name): Coalesce SSA names.
7340         * tree-ssa-live.c (remove_unused_locals): Be more conservative when
7341         not optimizing so unused user vars remains visible.
7342         * common.opt (flag_tree_ter): Always enable by default.
7343         * tree-ssa-ter.c: Include flags.h
7344         (is_replaceable_p): Check that locations match; when aliasing is missing
7345         be conservative about loads.
7346         * tree-optimize.c (gate_init_datastructures): Remove.
7347         (pass_init_datastructures): New.
7348         * passes.c: Reorder passes so we always go into SSA.
7349
7350 2008-07-19  Jan Hubicka  <jh@suse.cz>
7351
7352         * doc/extend.texi (flatten attribute): Remove note about unit-at-a-time
7353         * doc/invoke.texi (--combine): Likewise.
7354         (-finline-functions-called-once): Update levels when enabled.
7355         (-funit-at-a-time): Document new behaviour.
7356         (-ftoplevel-reorder): Document that it is enabled -O0 and imply
7357         -fno-section-anchors when disabled explicitly.
7358         (inline params): They are not ignored now.
7359         (precompiled headers): Remove unit-at-a-time as being incompatible.
7360         * opts.c (decode_options): Handle unit-at-a-time as alias;
7361         imply -fno-section-anchors when toplevel reorder is disabled
7362         explicitly.
7363         * common.opt (ftoplevel-reorder): Set default value to 2.
7364         (funit-at-a-time): Set default value to 1.
7365         * config/rs6000/rs6000.c (optimization_options): Set section anchors
7366         to 2.
7367
7368 2008-07-19  Jan Hubicka  <jh@suse.cz>
7369
7370         * builtins.c (expand_builtin_int_roundingfn,
7371         expand_builtin_int_roundingfn_2): Do not take subtarget argument;
7372         it is not useful.
7373
7374 2008-07-19  Richard Guenther  <rguenther@suse.de>
7375
7376         PR bootstrap/36864
7377         * tree-ssa-sccvn.h (get_constant_value_id): Declare.
7378         * tree-ssa-sccvn.c (get_constant_value_id): New function.
7379         * tree-ssa-pre.c (get_expr_value_id): For newly created
7380         constant value-ids make sure to add the expression to its
7381         expression-set.
7382
7383 2008-07-19  Jakub Jelinek  <jakub@redhat.com>
7384
7385         PR middle-end/36877
7386         * omp-low.c (expand_omp_atomic_fetch_op): Make sure the
7387         return value of the builtin is ignored.
7388
7389 2008-07-19  Olivier Hainque  <hainque@adacore.com>
7390
7391         * doc/tm.texi (MALLOC_ABI_ALIGNMENT): New macro. Alignment, in
7392         bits, a C conformant malloc implementation has to provide.
7393         * defaults.h (MALLOC_ABI_ALIGNMENT): Default to BITS_PER_WORD.
7394
7395 2008-07-19  Joseph Myers  <joseph@codesourcery.com>
7396
7397         PR target/36780
7398         PR target/36827
7399         * reload.c (find_reloads_subreg_address): Only reload address if
7400         reloaded == 0, not for reloaded != 1.
7401
7402         Revert:
7403         2008-07-16  Joseph Myers  <joseph@codesourcery.com>
7404         * config/m32c/m32c.c (BIG_FB_ADJ): Move definition earlier.
7405         (m32c_legitimate_address_p): Handle "++rii" addresses created by
7406         m32c_legitimize_reload_address.
7407
7408         2008-07-15  Kaz Kojima  <kkojima@gcc.gnu.org>
7409         * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Allow
7410         (plus (plus (reg) (const_int)) (const_int)) when reload_in_progress.
7411
7412 2008-07-19  Olivier Hainque  <hainque@adacore.com>
7413
7414         * dwarf2out.c (add_subscript_info): New explicit COLLAPSE_P
7415         argument, saying whether nested array are to be collapsed
7416         into a single array type DIE with multiple subscripts.
7417         (gen_array_type_die): Factorize comments about the MIPS_DEBUG_INFO
7418         issues, centralize the nested array types collapsing control and
7419         disable the transformation for Ada.
7420
7421 2008-07-18  Uros Bizjak  <ubizjak@gmail.com>
7422
7423         PR target/36786
7424         * config/i386/i386.md (x86_64_shift_adj_1): Rename from
7425         x86_64_shift_adj.
7426         (x86_64_shift_adj_2): New expander.
7427         (x86_64_shift_adj_3): Ditto.
7428         * config/i386/i386.c (ix86_split_ashr): Use gen_x86_64_shift_adj_3
7429         to split TImode operands.
7430         (ix86_split_ashl): Use gen_x86_64_shift_adj_2 to split TImode operands.
7431         (ix86_split_lshr): Ditto.
7432
7433 2008-07-18  Kris Van Hees  <kris.van.hees@oracle.com>
7434
7435         * c-common.c (c_stddef_cpp_builtins): Define __CHAR16_TYPE__
7436         and __CHAR32_TYPE__.
7437         * c-typeck.c (digest_init): Support char16_t and char32_t.
7438         (set_nonincremental_init_from_string): Idem.
7439
7440 2008-07-18  H.J. Lu  <hongjiu.lu@intel.com>
7441
7442         PR middle-end/36859
7443         * builtins.c (std_gimplify_va_arg_expr): Limit alignment to
7444         PREFERRED_STACK_BOUNDARY.
7445         * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
7446
7447 2008-07-18  H.J. Lu  <hongjiu.lu@intel.com>
7448
7449         PR middle-end/36858
7450         * function.c (locate_and_pad_parm): Cap boundary earlier.
7451
7452 2008-07-17  Julian Brown  <julian@codesourcery.com>
7453
7454         * config/arm/arm.c (arm_cxx_determine_class_data_visibility): Make
7455         no-op for targets which don't use DLLs.
7456
7457 2008-07-17  Martin Jambor  <mjambor@suse.cz>
7458
7459         * ipa-cp.c (ipcp_print_all_lattices): New variable info, check
7460         that nodes are relevant by examining the node->analyzed flag.
7461         (ipcp_init_stage): Check which nodes are relevant, assert that the
7462         relevant ones are also required.
7463         (ipcp_propagate_stage): Check on the side arrays are properly
7464         allocated.
7465         (ipcp_print_all_jump_functions): Make sure not to touch any node
7466         that is not analyzed or an edge that does not have a corresponding
7467         entry in the on-the-side vectors.
7468         (ipcp_function_scale_print): Likewise.
7469         (ipcp_update_callgraph): Check that the node is relevant.
7470         (ipcp_insert_stage): Check that the node is relevant.  Check there is
7471         an info for every node and edge.
7472         * ipa-prop.c (ipa_init_func_list): Check the nodes are relevant.
7473         (ipa_print_all_tree_maps): Likewise and a new variable info.
7474         (ipa_print_all_params_modified): Likewise.
7475         * ipa-prop.h (ipa_edge_args_info_available_for_edge_p): New function.
7476
7477 2008-07-17  Roman Zippel <zippel@linux-m68k.org>
7478
7479         PR target/25343
7480         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for __mc68000__.
7481
7482 2008-07-17  Paolo Bonzini  <bonzini@gnu.org>
7483
7484         PR rtl-optimization/36753
7485         * fwprop.c (use_killed_between): Don't shortcut
7486         single-definition global registers.
7487
7488 2008-07-16  Jan Hubicka  <jh@suse.cz>
7489
7490         * cgraph.h (varpool_empty_needed_queue): Declare.
7491         * cgraphunit.c (output_in_order): Mark all variables as needed;
7492         empty the queue.
7493         * varpool.c (varpool_assemble_node): Update debug queue.
7494         (varpool_assemble_pending_decls): Don't do it here.
7495         (varpool_empty_needed_queue):  New function.
7496
7497 2008-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7498
7499         * recog.c (peephole2_optimize): Fix formatting.
7500
7501 2008-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7502
7503         * c-pch.c (get_ident): Avoid C++ keywords.
7504         * combine-stack-adj.c (single_set_for_csa): Likewise.
7505         * final.c (asm_insn_count, final_scan_insn, alter_subreg,
7506         output_asm_insn): Likewise.
7507         * reload.c (push_secondary_reload, find_reusable_reload,
7508         push_reload, combine_reloads, find_reloads,
7509         debug_reload_to_stream): Likewise.
7510         * reload.h (struct reload): Likewise.
7511         * reload1.c (reload_reg_class_lower, find_reg, find_reload_regs,
7512         allocate_reload_reg, choose_reload_regs, emit_input_reload_insns,
7513         emit_output_reload_insns): Likewise.
7514         * targhooks.c (default_secondary_reload): Likewise.
7515         * varasm.c (section_entry_eq, object_block_entry_eq): Likewise.
7516
7517 2008-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7518
7519         * recog.c (validate_change_1, validate_change,
7520         validate_unshare_change, validate_replace_rtx_1, struct
7521         funny_match, constrain_operands, peephole2_optimize): Avoid C++
7522         keywords.
7523         * reload.c (push_secondary_reload, secondary_reload_class,
7524         scratch_reload_class, find_valid_class, find_reusable_reload,
7525         push_reload, find_dummy_reload, find_reloads_address_1,
7526         find_reloads_address_part, find_equiv_reg): Likewise.
7527         * reload1.c (spill_failure, eliminate_regs_1, allocate_reload_reg,
7528         choose_reload_regs): Likewise.
7529         * rtlanal.c (replace_rtx, nonzero_bits1, num_sign_bit_copies1):
7530         Likewise.
7531         * rtlhooks.c (gen_lowpart_if_possible): Likewise.
7532         * sched-ebb.c (add_deps_for_risky_insns): Likewise.
7533         * sched-rgn.c (concat_INSN_LIST): Likewise.
7534         * stor-layout.c (mode_for_size, mode_for_size_tree,
7535         smallest_mode_for_size): Likewise.
7536
7537 2008-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7538
7539         * cfg.c (dump_reg_info): Avoid C++ keywords.
7540         * dwarf2asm.c (dw2_force_const_mem,
7541         dw2_asm_output_encoded_addr_rtx): Likewise.
7542         * except.c (gen_eh_region, add_action_record, output_ttype): Likewise.
7543         * expmed.c (expand_shift): Likewise.
7544         * global.c (find_reg): Likewise.
7545         * graph.c (draw_edge): Likewise.
7546         * local-alloc.c (reg_meets_class_p, find_free_reg): Likewise.
7547         * optabs.c (expand_binop, expand_twoval_unop, expand_twoval_binop,
7548         widen_clz, widen_bswap, expand_parity, expand_unop,
7549         emit_cmp_and_jump_insn_1): Likewise.
7550         * postreload.c (reload_cse_simplify_operands): Likewise.
7551         * ra.h (add_neighbor): Likewise.
7552         * reg-stack.c (remove_regno_note, change_stack): Likewise.
7553         * regclass.c (memory_move_secondary_cost, dump_regclass, regclass,
7554         record_reg_classes, copy_cost, record_address_regs,
7555         invalid_mode_change_p): Likewise.
7556         * regrename.c (regrename_optimize, scan_rtx_reg,
7557         dump_def_use_chain, find_oldest_value_reg,
7558         replace_oldest_value_reg, copyprop_hardreg_forward_1): Likewise.
7559
7560 2008-07-16  David Edelsohn  <edelsohn@gnu.org>
7561
7562         * config/rs6000/rs6000.c (processor_target_table): Remove duplicate
7563         MASK_POWERPC64 for power4 in previous commit.
7564
7565 2008-07-16  Olivier Hainque  <hainque@adacore.com>
7566
7567         * collect2.c (scan_prog_file, COFF version): Use CONST_CAST
7568         instead of bare conversion to cast const-ness away.
7569
7570 2008-07-16  Anatoly Sokolov  <aesok@post.ru>
7571
7572         * config/xtensa/xtensa.h (FUNCTION_OUTGOING_VALUE,
7573         XTENSA_FUNCTION_VALUE, XTENSA_FUNCTION_VALUE): Remove.
7574         * config/xtensa/xtensa.c (xtensa_function_value): New function.
7575         (TARGET_FUNCTION_VALUE): Define.
7576
7577 2008-07-16  David Edelsohn  <edelsohn@gnu.org>
7578
7579         * config/rs6000/rs6000.c (processor_target_table): Add
7580         MASK_PPC_GPOPT for power4, power5, power5+, power6, and power6x.
7581
7582 2008-07-16  Joseph Myers  <joseph@codesourcery.com>
7583
7584         PR target/36827
7585         * config/m32c/m32c.c (BIG_FB_ADJ): Move definition earlier.
7586         (m32c_legitimate_address_p): Handle "++rii" addresses created by
7587         m32c_legitimize_reload_address.
7588
7589 2007-07-16  Rafael Ávila de Espíndola  <espindola@google.com>
7590
7591         * c-decl.c (merge_decls): Keep DECL_SOURCE_LOCATION and
7592         DECL_IN_SYSTEM_HEADER in sync.
7593
7594 2008-07-15  Daniel Berlin  <dberlin@dberlin.org>
7595
7596         * tree-ssa-sccvn.c (expressions_equal_p): Check type equality.
7597         * tree-ssa-pre.c (pre_expr_eq): Ditto
7598         (get_constant_for_value_id): Take a type as an argument.
7599         (fully_constant_expression): Pass in type.
7600         (find_or_generate_expression): Short circuit constant case.
7601         (create_expression_by_pieces): Remove special casing of
7602         pointer_plus.
7603         (do_regular_insertion): Short circuit constant case.
7604         (do_partial_partial_insertion): Ditto.
7605
7606 2008-07-15  Kaz Kojima  <kkojima@gcc.gnu.org>
7607
7608         PR target/36782
7609         * config/sh/sh.md (symGOT_load): Don't add REG_EQUAL note.
7610
7611 2008-07-15  Bob Wilson  <bob.wilson@acm.org>
7612
7613         * config/xtensa/libgcc-xtensa.ver: New file.
7614         * config/xtensa/t-linux (SHLIB_MAPFILES): Append libgcc-xtensa.ver.
7615
7616 2008-07-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7617
7618         * df-problems.c (df_set_note): Avoid C++ keywords.
7619         * df-scan.c (df_ref_change_reg_with_loc_1): Likewise.
7620         * dse.c (record_store, remove_useless_values): Likewise.
7621         * emit-rtl.c (gen_reg_rtx, update_reg_offset, gen_rtx_REG_offset,
7622         gen_reg_rtx_offset, operand_subword, change_address_1,
7623         change_address, adjust_address_1, offset_address,
7624         widen_memory_access, emit_copy_of_insn_after): Likewise.
7625         * explow.c (round_push, allocate_dynamic_stack_space): Likewise.
7626         * fwprop.c (should_replace_address, propagate_rtx_1,
7627         propagate_rtx, try_fwprop_subst, forward_propagate_and_simplify):
7628         Likewise.
7629         * gcse.c (cprop_jump, find_implicit_sets, bypass_block,
7630         gcse_emit_move_after, update_ld_motion_stores): Likewise.
7631         * lcm.c (compute_insert_delete, pre_edge_lcm,
7632         compute_rev_insert_delete, pre_edge_rev_lcm): Likewise.
7633         * lower-subreg.c (resolve_reg_notes): Likewise.
7634         * mode-switching.c (optimize_mode_switching): Likewise.
7635
7636 2008-07-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7637
7638         * bt-load.c (add_btr_def, migrate_btr_def,
7639         branch_target_load_optimize): Avoid C++ keywords.
7640         * caller-save.c (insert_restore, insert_save, insert_one_insn):
7641         Likewise.
7642         * combine.c (subst, simplify_set, make_extraction,
7643         make_compound_operation, known_cond, simplify_shift_const_1): Likewise.
7644         * cse.c (make_regs_eqv, merge_equiv_classes, validate_canon_reg,
7645         fold_rtx, equiv_constant, cse_insn, cse_process_notes_1): Likewise.
7646
7647 2008-07-15  Richard Guenther  <rguenther@suse.de>
7648
7649         PR middle-end/36369
7650         * c-common.c (strict_aliasing_warning): Do not warn for
7651         TYPE_REF_CAN_ALIAS_ALL pointers.
7652         (c_common_get_alias_set): may_alias types are not special.
7653         * tree.c (build_pointer_type_for_mode): Look up the may_alias
7654         attribute and set can_ref_all accordingly.
7655         (build_reference_type_for_mode): Likewise.
7656         * doc/extend.texi (may_alias): Clarify.
7657
7658 2008-07-15  Kaz Kojima  <kkojima@gcc.gnu.org>
7659
7660         PR target/36780
7661         * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Allow
7662         (plus (plus (reg) (const_int)) (const_int)) when reload_in_progress.
7663
7664 2008-07-15  Andrew Pinski  <andrew_pinski@playstation.sony.com>
7665
7666         PR target/31568
7667         * config/rs6000/rs6000.c (print_operand <case 'y'>): Don't use
7668         gcc_assert, instead call output_operand_lossage.
7669
7670 2008-07-15  Kai Tietz  <kai.tietz@onevision.com>
7671
7672         * builtins.c (std_canonical_va_list): Treat structure based
7673         va_list types.
7674
7675 2008-07-15  Ben Elliston  <bje@au.ibm.com>
7676
7677         * emit-rtl.c (set_mem_attributes_minus_bitpos): Improve comment.
7678
7679 2007-07-14  Rafael Ávila de Espíndola  <espindola@google.com>
7680
7681         * c-decl.c (diagnose_mismatched_decls): Don't warn if TREE_NO_WARNING
7682         is set.
7683
7684 2008-07-14  Jan Hubicka  <jh@suse.cz>
7685
7686         * i386.md (sse5 cmov pattern): Update call of ix86_sse5_valid_op_p
7687         * sse.md (sse5 patterns): Update call of ix86_sse5_valid_op_p;
7688         fix predicates and constraints.
7689         * i386.c (ix86_sse5_valid_op_p): Add commutative parameter.
7690         * i386-protos.h (ix86_sse5_valid_op_p): Update declaration.
7691
7692 2008-07-14  Doug Kwan  <dougkwan@google.com>
7693
7694         * config.gcc (arm*-*-eabi*): Include arm/eabi.h and use
7695         additional option file arm/eabi.opt.
7696         * config/arm/eabi.h (File): New configuration file for EABI targets.
7697         * config/arm/elf.h (SUBTARGET_EXTRA_SPECS): Add
7698         SUBSUBTARGET_EXTRA_SPECS.
7699         (SUBSUBTARGET_EXTRA_SPECS): Provide empty default.
7700         * config/arm/unknown-elf.h (UNKNOWN_ELF_STARTFILE_SPEC): Renamed
7701         from STARTFILE_SPEC so that it can be referenced in an override.
7702         (STARTFILE_SPEC): Use UNKNOWN_ELF_STARTFILE_SPEC.
7703         (UNKNOWN_ELF_ENDFILE_SPEC): Renamed from ENDFILE_SPEC so that it
7704         can be referenced in an override.
7705         (ENDFILE_SPEC): Use UNKNOWN_ELF_ENDFILE_SPEC.
7706         * config/arm/bpabi.h (BPABI_LINK_SPEC): Renamed from LINK_SPEC
7707         so that it can be referenced in an override.
7708         (LINK_SPEC): Use BPABI_LINK_SPEC.
7709         * config/arm/eabi.opt (File): New.
7710
7711 2008-07-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7712
7713         * Makefile.in (TARGET_DEF_H): Add targhooks.h.
7714         (FIXED_VALUE_H): New variable.
7715         (RTL_BASE_H): Use $(INPUT_H) and $(FIXED_VALUE_H) instead of
7716         input.h, fixed-value.h.
7717         (TREE_H): Use $(INPUT_H), add $(SYMTAB_H).
7718         (BASIC_BLOCK_H): Use $(BITMAP_H).
7719         (FUNCTION_H): Add varray.h.
7720         (IPA_REFERENCE_H): Use $(BITMAP_H).
7721         (CGRAPH_H): Add $(BASIC_BLOCK_H).
7722         (DF_H): Use $(BITMAP_H).
7723         (GGC_H): Add statistics.h.
7724         (INSN_ADDR_H): New.
7725         (INSN_ATTR_H): Use it.
7726         (SYSTEM_H): Add safe-ctype.h, filenames.h.
7727         (INPUT_H): New.
7728         (SYMTAB_H): Add $(OBSTACK_H).
7729         (CPP_INTERNAL_H): New.
7730         (TREE_DUMP_H): Add tree-pass.h.
7731         (TREE_FLOW_H): Use $(BITMAP_H)
7732         (PRETTY_PRINT_H): Use $(INPUT_H).
7733         (EBITMAP_H): Rename from typo-ed EBIMAP_H.
7734         (GSTAB_H): New.
7735         (BITMAP_H): New.
7736         (many object files): Fix lots of header dependencies throughout.
7737
7738 2008-07-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7739
7740         * Makefile.in (write_entries_to_file, write_entries_to_file_split):
7741         New macros.
7742         (s-gtyp-input): Use them to write tmp-gi.list.
7743         (echo_to_gi.list): Remove.
7744
7745 2008-07-14  Richard Guenther  <rguenther@suse.de>
7746
7747         * tree-ssa-sccvn.c (pre_info): Remove.
7748         (switch_to_PRE_table): Likewise.
7749         (free_scc_vn): Do not clear SSA_NAME_VALUE.  Do not free pre_info.
7750         (set_hashtable_value_ids): Do not create value-ids for the
7751         optimistic tables.
7752         (run_scc_vn): Remove double test.  Remove bogus special-case
7753         in value-number printing.
7754         * tree-ssa-sccvn.h (switch_to_PRE_table): Remove.
7755         * tree-ssa-ccp.c (get_symbol_constant_value): Do not look at
7756         SSA_NAME_VALUE.
7757         * tree-flow-inline.h (get_value_handle): Remove.
7758         * tree-flow.h (get_value_handle): Remove.
7759
7760 2008-07-14  Martin Jambor  <mjambor@suse.cz>
7761
7762         * tree-switch-conversion.c (gen_inbound_check): Make sure the type
7763         in which we generate arithmetics is not a subrange.
7764
7765 2008-07-14  Martin Jambor  <mjambor@suse.cz>
7766
7767         * Makefile.in (IPA_PROP_H): Added ipa-prop.h to IPA_PROP_H variable.
7768
7769 2008-07-14  Richard Guenther  <rguenther@suse.de>
7770
7771         * tree-ssa-pre.c (insert_into_preds_of_block): Do not call convert.
7772
7773 2008-07-14  Andreas Krebbel  <krebbel1@de.ibm.com>
7774
7775         PR target/36745
7776         * config/s390/s390.c: (s390_secondary_reload): Add a secondary
7777         reload for symbol refs moved to r0 with -fPIC.
7778         (legitimize_pic_address): Use the target register as temporary
7779         reg if possible.
7780         (emit_symbolic_move): Adjust comment.
7781         * config/s390/s390.md (reloadsi_PIC_addr, reloaddi_PIC_addr):
7782         New expanders.
7783
7784 2008-07-14  Ben Elliston  <bje@au.ibm.com>
7785
7786         * c-common.h (C_CPP_HASHNODE): New macro.
7787         * coretypes.h (struct cpp_token): Forward declare.
7788         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
7789         the context-sensitive keyword method.
7790         * config/rs6000/rs6000-c.c (__vector_keyword, vector_keyword,
7791         __pixel_keyword, pixel_keyword, __bool_keyword, bool_keyword,
7792         expand_bool_pixel): New.
7793         (altivec_categorize_keyword): New function.
7794         (init_vector_keywords): New function.
7795         (rs6000_macro_to_expand): Likewise.
7796         (rs6000_cpu_cpp_builtins): Enable context-sensitive macros if not
7797         compiling an ISO C dialect.
7798
7799 2008-07-13  Daniel Berlin  <dberlin@dberlin.org>
7800
7801         * tree-ssa-pre.c (fully_constant_expression): Add fold_convert calls.
7802         (create_expression_by_pieces): Fix typo.
7803         (do_regular_insertion): Use debug counter here too.
7804
7805 2008-07-14  Hans-Peter Nilsson  <hp@axis.com>
7806
7807         PR target/35492.
7808         * config/cris/cris.h (CRIS_CONST_OK_FOR_LETTER_P): Renamed from
7809         CONST_OK_FOR_LETTER_P.  All port-local users changed.
7810         (CONST_OK_FOR_CONSTRAINT_P): Define; implement Kc as old K,
7811         implement Kp matching power-of-two.
7812         (CONSTRAINT_LEN): Define to match.
7813         * config/cris/cris.md: Replace all use of constraint K with Kc.
7814         ("*btst*): Use Kp for operand 0 of last alternative.
7815
7816 2008-07-13  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7817
7818         PR testsuite/36440
7819         * tree-call-cdce.c (check_target_format): Accept MIPS single, double
7820         and quad formats.
7821
7822 2008-07-13  Jan Hubicka  <jh@suse.cz>
7823
7824         * tree.c (decl_assembler_name_equal): Expect assembler name of decl
7825         to be mangled too.
7826
7827 2008-07-13  Richard Guenther  <rguenther@suse.de>
7828
7829         PR middle-end/36811
7830         * langhooks.c (lhd_print_error_function): Deal with recursive
7831         BLOCK trees.
7832
7833 2008-07-12  Jan Hubicka  <jh@suse.cz>
7834
7835         * cgraph.c (assembler_name_hash): New static var.
7836         (hash_node_by_assembler_name, eq_assembler_name): New.
7837         (cgraph_node_for_asm): Use hashtable.
7838         (cgraph_remove_node): Maintain hashtable.
7839         (change_decl_assembler_name): Sanity check that names are not changing
7840         after aliasing was processed.
7841         * cgraph.h (varpoon_node): Add next GGC marker.
7842         * tree.c (decl_assembler_name_equal): Constify.
7843         (decl_assembler_name_hash): New.
7844         * tree.h (decl_assembler_name_equal): Constify.
7845         (decl_assembler_name_hash): Update.
7846
7847 2008-07-12  David Daney  <ddaney@avtrex.com>
7848
7849         * config/mips/driver-native.c (host_detect_local_cpu): Handle
7850         sb1 and r5000 cpus.
7851
7852 2008-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
7853
7854         * doc/md.texi: Document the MIPS "v" constraint.
7855         * config/mips/mips.h (reg_class): Revert last change.
7856         (REG_CLASS_NAMES): Likewise.
7857         (REG_CLASS_CONTENTS): Likewise.
7858         * config/mips/mips.c (mips_regno_to_class): Likewise.
7859         * config/mips/constraints.md (v): Likewise, but add documentation.
7860         Add a comment to say that this constraint should not be used in
7861         gcc code.
7862
7863 2008-07-11  DJ Delorie  <dj@redhat.com>
7864
7865         * config/h8300/h8300.md (length): Fix branch offset limit.
7866
7867 2008-07-11  Anatoly Sokolov  <aesok@post.ru>
7868
7869         * config/avr/avr-protos.h (avr_peep2_scratch_safe): Remove prototype.
7870         * config/avr/avr.c (avr_peep2_scratch_safe): Remove.
7871         (avr_hard_regno_scratch_ok): New function.
7872         (TARGET_HARD_REGNO_SCRATCH_OK): Define.
7873         * config/avr/avr.md (all peepholes that request a scratch register):
7874         Remove avr_peep2_scratch_safe use.
7875
7876 2008-07-11  Tom Tromey  <tromey@redhat.com>
7877             Ian Lance Taylor  <iant@google.com>
7878
7879         * c-common.h (enum rid): Add RID_CXX_COMPAT_WARN.
7880         (struct c_common_resword): Define.
7881         (D_CONLY, D_CXXONLY, D_C99, D_CXX0X, D_EXT, D_EXT89): Define.
7882         (D_ASM, D_OBJC, D_CXX_OBJC, D_CXXWARN): Define.
7883         (c_common_reswords, num_c_common_reswords): Declare.
7884         * c-common.c (c_common_reswords): New global const array.
7885         (num_c_common_reswords): New const int.
7886         * c-parser.c (struct resword, reswords): Don't define.
7887         (D_C89, D_EXT, D_EXT89, D_OBJC): Don't define.
7888         (c_parse_init): Clarify mask code.  Use c_common_reswords rather
7889         than reswords.  If warning about C++ keywords, give them a special
7890         RID code.
7891         (c_lex_one_token): Warn about C++ keywords.  Call
7892         objc_is_reserved_word rather than OBJC_IS_AT_KEYWORD.
7893         (c_parser_external_declaration): Look for RID_xxx rather than
7894         RID_AT_xxx, for ObjC++ keywords which are also C++ keywords.
7895         (c_parser_statement_after_labels): Likewise.
7896         (c_parser_objc_class_instance_variables): Likewise.
7897         (c_parser_objc_class_declaration): Likewise.
7898         (c_parser_objc_try_catch_statement): Likewise.
7899         * c-decl.c (c_print_identifier): Ignore RID_CXX_COMPAT_WARN.
7900         (declspecs_add_type): Likewise.
7901
7902 2008-07-11  Angelo Graziosi  <angelo.graziosi@alice.it>
7903
7904         * ggc-page.c (alloc_page):
7905         Substituting xmalloc, xcalloc with
7906         XNEWVEC and XCNEWVAR macros which add the
7907         needed casts.
7908
7909 2008-07-11  Richard Guenther  <rguenther@suse.de>
7910
7911         PR tree-optimization/36765
7912         * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Add
7913         aliases from HEAP vars to SMTs.
7914
7915 2008-07-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7916
7917         * Makefile.in (LOOSE_WARN, STRICT_WARN): Update comments.
7918         * configure.ac (loose_warn): Move -Wc++-compat from here...
7919         (strict_warn): ...to here.
7920         * configure: Regenerate.
7921
7922 2008-07-10  Joseph Myers  <joseph@codesourcery.com>
7923
7924         * config.gcc (arm-*-coff*, armel-*-coff*, h8300-*-*,
7925         i[34567]86-*-aout*, i[34567]86-*-coff*, m68k-*-aout*,
7926         m68k-*-coff*, sh-*-*, mips-sgi-irix[56]*, pdp11-*-bsd,
7927         rs6000-ibm-aix4.[12]*, powerpc-ibm-aix4.[12]*): Deprecate targets,
7928         excluding more specific h8300-*-* and sh-*-* targets.
7929
7930 2008-07-10  Daniel Berlin  <dberlin@dberlin.org>
7931
7932         * tree-ssa-pre.c (create_expression_by_pieces): Add fold_convert calls.
7933         (eliminate): Ditto.
7934         (execute_pre): Call loop_optimizer_finalize in early exit.
7935
7936 2008-07-10  Jakub Jelinek  <jakub@redhat.com>
7937
7938         PR middle-end/36790
7939         * omp-low.c (lower_omp_2): If task_shared_vars, test all DECL_P
7940         uids in the bitmap, not just VAR_DECL uids.
7941
7942         PR rtl-optimization/36419
7943         * combine-stack-adj.c (adjust_frame_related_expr): New function.
7944         (combine_stack_adjustments_for_block): Call it if needed.  Delete
7945         correct insn.
7946         * dwarf2out.c (dwarf2out_frame_debug_expr): Adjust
7947         DW_CFA_GNU_args_size if CSA pass merged some adjustments into
7948         prologue sp adjustment.
7949
7950 2008-07-10  Peter Maydell  <pmaydell@chiark.greenend.org.uk>
7951
7952         PR other/28322
7953         * opts.c (print_ignored_options): Report postponed diagnostics for
7954         unknown -Wno-* options as warnings, not errors.
7955         (postpone_unknown_option_error): Renamed to...
7956         (postpone_unknown_option_warning): ... this.
7957
7958 2008-07-09  Doug Kwan  <dougkwan@google.com>
7959
7960         Revert:
7961         2008-07-08  Doug Kwan  <dougkwan@google.com>
7962
7963         * config/arm/arm.opt (mandroid): New option.
7964         * config/arm/bpabi.h (ANDROID_LINK_SPEC): New macro.
7965         (LINK_SPEC): Enable Android specific behaviour when -mandroid is used.
7966         (CC1_SPEC): Same.
7967         (CC1PLUS_SPEC): Same.
7968         (LIB_SPEC): Same.
7969         (STARTFILE_SPEC): Same.
7970         (ENDFILE_SPEC): Same.
7971         (TARGET_BPABI_CPP_BUILTINS): Define __ANDROID__ when -mandroid is
7972         used.
7973
7974 2008-07-09  Richard Sandiford  <rdsandiford@googlemail.com>
7975
7976         PR target/35802
7977         * config/mips/mips.h (reg_class): Remove V1_REG.
7978         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update accordingly.
7979         * config/mips/mips.c (mips_regno_to_class): Map $3 to M16_NA_REGS
7980         instead of V1_REGS.
7981         (mips_get_tp): New function.
7982         (mips_legitimize_tls_address): Use it.
7983         * config/mips/constraints.md (v): Delete.
7984         * config/mips/mips.md (TLS_GET_TP_REGNUM): New constant.
7985         (tls_get_tp_<mode>): Allow any GPR destination and clobber $3.
7986         After reload, split into a move and ...
7987         (*tls_get_tp_<mode>_split): ...this new instruction.
7988
7989 2008-07-09  David Daney  <ddaney@avtrex.com>
7990
7991         * config/mips/driver-native.c: Include coretypes.h and tm.h.
7992
7993 2008-07-09  Jakub Jelinek  <jakub@redhat.com>
7994
7995         * gimplify.c (struct gimplify_ctx): Move to tree-gimple.h.
7996         (push_gimplify_context): Don't allocate temp_htab nor c itself here.
7997         Add c argument.
7998         (pop_gimplify_context): Check c->temp_htab instead of optimize whether
7999         htab_delete should be called.  Don't free c.
8000         (lookup_tmp_var): Create temp_htab lazily.
8001         (gimplify_scan_omp_clauses, gimplify_omp_parallel, gimplify_omp_task,
8002         gimplify_body, force_gimple_operand): Adjust push_gimplify_context
8003         callers.
8004         * omp-low.c (lower_omp_sections, lower_omp_single, lower_omp_master,
8005         lower_omp_ordered, lower_omp_critical, lower_omp_for,
8006         create_task_copyfn, lower_omp_taskreg, execute_lower_omp):
8007         * tree-ssa-ccp.c (convert_to_gimple_builtin): Likewise.
8008         * tree-sra.c (generate_element_init): Likewise.
8009         * tree-mudflap.c (execute_mudflap_function_ops,
8010         execute_mudflap_function_decls): Likewise.
8011         * tree-inline.c (setup_one_parameter, optimize_inline_calls): Likewise.
8012         * tree-gimple.h (struct gimplify_ctx): New type.
8013         (push_gimplify_context): Adjust prototype.
8014
8015 2008-07-09  Daniel Berlin  <dberlin@dberlin.org>
8016
8017         * tree-ssa-pre.c (phi_translate_1): Update placement of
8018         add_to_value calls.
8019
8020 2008-07-09  Anatoly Sokolov  <aesok@post.ru>
8021
8022         * target.h (struct gcc_target): Add hard_regno_scratch_ok field.
8023         * target-def.h (TARGET_HARD_REGNO_SCRATCH_OK): New.
8024         (TARGET_INITIALIZER): Use TARGET_HARD_REGNO_SCRATCH_OK.
8025         * targhooks.c (default_hard_regno_scratch_ok): New function.
8026         * targhooks.h (default_hard_regno_scratch_ok): Declare function.
8027         * doc/tm.texi: Document TARGET_HARD_REGNO_SCRATCH_OK hook.
8028         * recog.c:  Include "target.h".
8029         (peep2_find_free_register): Add check for global regs. Add target
8030         specific check.
8031         * Makefile.in (recog.o): Depend on target.h.
8032
8033 2008-07-09  Kaz Kojima  <kkojima@gcc.gnu.org>
8034
8035         * config/sh/sh.c (sh_canonical_va_list_type): New.
8036         (TARGET_CANONICAL_VA_LIST_TYPE): Define.
8037
8038 2008-07-09  Raksit Ashok <raksit@google.com>
8039
8040         * doc/invoke.texi (Option Summary): Mention new option
8041         -Wdisallowed-function-list=...
8042         (Warning Options): Document -Wdisallowed-function-list=...
8043         * common.opt (Wdisallowed-function-list=): New flag.
8044         * flags.h (warn_disallowed_functions): External definition of new
8045         boolean warning flag.
8046         (warn_if_disallowed_function_p): Declare new function.
8047         * opts.c (warning_disallowed_functions): New static variable.
8048         (warn_disallowed_functions): New boolean warning flag.
8049         (warn_if_disallowed_function_p): New function.
8050         (add_comma_separated_to_vector): Rename
8051         add_instrument_functions_exclude_list to this.
8052         (common_handle_option): Handle new option. Rename calls to
8053         add_instrument_functions_exclude_list into calls to
8054         add_comma_separated_to_vector.
8055         * c-parser.c (c_parser_postfix_expression_after_primary): New warning
8056         based on flag warn_disallowed_functions.
8057
8058 2008-07-09  Christian Bruel  <christian.bruel@st.com>
8059
8060         * final.c (get_attr_length_1): Call get_attr_length_1 with fallback_fn
8061          instead of get_attr_length.
8062
8063 2008-07-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8064
8065         * genattrtab.c (insert_right_side, evaluate_eq_attr): Avoid C++
8066         keywords.
8067         * genemit.c (gen_insn): Likewise.
8068         * gengtype.c (note_def_vec): Likewise.
8069         * gengtype.h (note_def_vec): Likewise.
8070         * genoutput.c (struct data, output_insn_data, process_template,
8071         gen_expand, gen_split, note_constraint): Likewise.
8072         * genrecog.c (new_decision, add_to_sequence, factor_tests,
8073         make_insn_sequence): Likewise.
8074         * gensupport.c (record_insn_name): Likewise.
8075
8076 2008-07-08  Doug Kwan  <dougkwan@google.com>
8077
8078         * config/arm/arm.opt (mandroid): New option.
8079         * config/arm/bpabi.h (ANDROID_LINK_SPEC): New macro.
8080         (LINK_SPEC): Enable Android specific behaviour when -mandroid is used.
8081         (CC1_SPEC): Same.
8082         (CC1PLUS_SPEC): Same.
8083         (LIB_SPEC): Same.
8084         (STARTFILE_SPEC): Same.
8085         (ENDFILE_SPEC): Same.
8086         (TARGET_BPABI_CPP_BUILTINS): Define __ANDROID__ when -mandroid is
8087         used.
8088
8089 2008-07-08  Raksit Ashok  <raksit@google.com>
8090
8091         * expr.c (emit_block_move_via_movmem): Fix expected_align parameter.
8092         (set_storage_via_setmem): Fix expected_align parameter.
8093         * doc/invoke.texi (i386 and x86-64 Options): Add a couple of options
8094         missing from the list.
8095         * doc/md.texi (movmem): Explicitly state that expected alignment is
8096         to be expressed in bytes.
8097         (setmem): Explicitly state that expected alignment is to be expressed
8098         in bytes.
8099
8100 2008-07-08  Joseph Myers  <joseph@codesourcery.com>
8101
8102         * reload.c (find_reloads_subreg_address): Do not require validity
8103         of address in original mode before reloading address.
8104
8105 2008-07-07  Tianwei Sheng  <tianweis@google.com>
8106
8107         * df-core.c (df_remove_problem): Adjust the access to avoid out of
8108         bounds array access.
8109
8110 2008-07-08  Jakub Jelinek  <jakub@redhat.com>
8111
8112         * tree-sra.c (sra_build_assignment): Handle CONVERT_EXPR_P dst.
8113
8114 2008-07-05  Daniel Berlin  <dberlin@dberlin.org>
8115
8116         Fix PR tree-optimization/23455
8117         Fix PR tree-optimization/35286
8118         Fix PR tree-optimization/35287
8119         * Makefile.in (OBJS-common): Remove tree-vn.o.
8120         (tree-vn.o): Remove.
8121         * dbgcnt.def: Add treepre_insert debug counter.
8122         * gcc/tree-flow.h (add_to_value): Updated for other changes.
8123         (debug_value_expressions): Ditto.
8124         (print_value_expressions): Ditto.
8125         * tree-pretty-print.c (dump_generic_node): Updated for
8126         VALUE_HANDLE removal.
8127         * tree-ssa-dom.c (record_equality): Ditto.
8128         (cprop_operand): Ditto.
8129         (lookup_avail_expr): Ditto.
8130         * tree-ssa-threadedge.c
8131         (record_temporary_equivalences_from_stmts_at_dest): Ditto.
8132         (simplify_control_stmt_condition): Ditto.
8133         * tree.c (tree_code_size): Ditto.
8134         (tree_node_structure): Ditto.
8135         (iterative_hash_expr): Ditto.
8136         * tree.def: Ditto.
8137         * tree.h (VALUE_HANDLE_ID): Ditto.
8138         (VALUE_HANDLE_EXPR_SET): Ditto.
8139         (struct tree_value_handle): Ditto.
8140         (union tree_node): Ditto.
8141         * treestruct.def: Ditto.
8142         * tree-vn.c: Removed.
8143         * tree-ssa-pre.c: Rewritten entirely.
8144         * tree-ssa-sccvn.c (constant_to_value_id): New hashtable.
8145         (constant_value_ids): Ditto.
8146         (vn_nary_op_t): Moved to header.
8147         (vn_phi_t): Ditto.
8148         (vn_reference_op_t): Ditto
8149         (vn_reference_t): Ditto.
8150         (next_value_id): New variable.
8151         (VN_INFO): Add an assert.
8152         (vn_constant_eq): New function.
8153         (vn_constant_hash): Ditto.
8154         (get_or_alloc_constant_value_id): Ditto.
8155         (value_id_constant_p): Ditto.
8156         (vn_reference_compute_hash): De-staticify.
8157         (copy_reference_ops_from_ref): Don't use get_callee_fndecl.
8158         Disable some code with a FIXME.  Remove VALUE_HANDLE use.
8159         (valueize_refs): Update opcode if it changes from ssa name to constant.
8160         (vn_reference_lookup_1): Add new argument.
8161         (vn_reference_lookup):  Ditto.
8162         (vn_reference_lookup_pieces): New function.
8163         (vn_reference_insert): Add return type. Modify to deal with value ids.
8164         (vn_reference_insert_pieces):  New function.
8165         (vn_nary_op_compute_hash): De-staticify.
8166         (vn_nary_op_eq): Ditto.
8167         (vn_nary_op_lookup_pieces): New function.
8168         (vn_nary_op_lookup): Add new argument.
8169         (vn_nary_op_insert_pieces): New function.
8170         (vn_nary_op_insert): Add return type. Modify to deal with value ids.
8171         (vn_phi_insert): Ditto.
8172         (visit_unary_op): Update for callee changes.
8173         (visit_binary_op): Ditto.
8174         (visit_reference_op_load): Ditto.
8175         (visit_reference_op_store): Ditto.
8176         (init_scc_vn): Init next_value_id, constant_to_value_id and
8177         constant_value_ids.
8178         (free_scc_vn): Free them.
8179         (set_hashtable_value_ids): New function.
8180         (run_scc_vn): Use it.
8181         (get_max_value_id): New function.
8182         (get_next_value_id): Ditto.
8183         (expressions_equal_p): Moved from tree-vn.c
8184         (sort_vuses): Ditto.
8185         (sort_vuses_heap): Ditto.
8186         * tree-ssa-sccvn.h: Structures moved from tree-ssa-sccvn.c (noted
8187         above).
8188         * tree.c (iterative_hash_hashval_t): Made non-static
8189         * tree.h (iterative_hash_hashval_t): Declare it.
8190
8191 2008-07-08  Martin Jambor  <mjambor@suse.cz>
8192
8193         * ipa-cp.c (ipcp_init_cloned_node): Call ipa_check_create_node_params
8194         instead of ipa_create_node_params.
8195         (ipcp_driver): Allocate infos with ipa_check_create_node_params and
8196         ipa_check_create_edge_args, free them with
8197         free_all_ipa_structures_after_ipa_cp, call ipa_register_cgraph_hooks.
8198
8199         * ipa-prop.c: Include flags.h and tree-inline.h.
8200         (ipa_node_params_vector): New variable.
8201         (ipa_edge_args_vector): New variable.
8202         (edge_removal_hook_holder): New variable.
8203         (node_removal_hook_holder): New variable.
8204         (edge_duplication_hook_holder): New variable.
8205         (node_duplication_hook_holder): New variable.
8206         (ipa_detect_param_modifications): Check for presence of modified flags.
8207         (ipa_compute_jump_functions): Check for presence of jump functions.
8208         (ipa_free_edge_args_substructures): New function.
8209         (ipa_create_node_params): Removed.
8210         (ipa_free_all_edge_args): Changed to deallocate the on-the-side vector.
8211         (ipa_free_node_params_substructures): New function.
8212         (ipa_free_all_node_params): Changed to deallocate the on-the-side
8213         vector.
8214         (ipa_edge_removal_hook): New function.
8215         (ipa_node_removal_hook): New function.
8216         (duplicate_array): New function.
8217         (ipa_edge_duplication_hook): New function.
8218         (ipa_node_duplication_hook): New function.
8219         (ipa_register_cgraph_hooks): New function.
8220         (ipa_unregister_cgraph_hooks): New function.
8221         (free_all_ipa_structures_after_ipa_cp): New function.
8222
8223         * ipa-prop.h: Include vec.h.
8224         (ipa_node_params_t): New typedef with vector types for it.
8225         (ipa_edge_args_t):  New typedef with vector types for it.
8226         (IPA_NODE_REF): Changed to access an on-the-side vector.
8227         (IPA_EDGE_REF): Changed to access an on-the-side vector.
8228         (ipa_check_create_node_params): New function.
8229         (ipa_check_create_edge_args): New function.
8230
8231         * Makefile.in (IPA_PROP_H): New variable for ipa-prop.h.  Converted
8232         all users.
8233
8234 2008-07-07  Tom Tromey  <tromey@redhat.com>
8235
8236         * configure, config.in: Rebuilt.
8237         * configure.ac: Don't check for scandir or alphasort.
8238
8239 2008-07-07  Joseph Myers  <joseph@codesourcery.com>
8240
8241         * config/arm/arm.c (arm_init_neon_builtins): Register built-in
8242         types immediately after creating them.
8243
8244 2008-07-07  Joseph Myers  <joseph@codesourcery.com>
8245
8246         * config/arm/aout.h (DOLLARS_IN_IDENTIFIERS): Remove.
8247
8248 2008-07-07  Fernando Pereira <fernando@cs.ucla.edu>
8249
8250         * tree-ssa-structalias.c (compute_points_to_sets): Add call to
8251         dump_constraint_graph.
8252         (dump_constraint_edge): New function.
8253         (dump_constraint_graph): New function.
8254         (debug_constraint_graph): New function.
8255         (dump_constraint): Removed useless comparison.
8256         * tree-ssa-structalias.h (dump_constraint_edge): Declare.
8257         (dump_constraint_graph): Declare.
8258         (debug_constraint_graph): Declare.
8259         * tree-dump.c (struct dump_option_value_info): Declare TDF_GRAPH.
8260
8261 2008-07-07  Kai Tietz  <kai.tietz@onevision.com>
8262
8263         * config/i386/i386.c (is_va_list_char_pointer): New.
8264         (ix86_va_start): Replace compare with ms_va_list_type_node
8265         by is_va_list_char_pointer.
8266         (ix86_gimplify_va_arg): Likewise.
8267
8268 2008-07-07  Martin Jambor  <mjambor@suse.cz>
8269
8270         * cgraph.c (cgraph_edge_max_uid): New variable.
8271         (struct cgraph_edge_hook_list): New type.
8272         (struct cgraph_node_hook_list): New type.
8273         (struct cgraph_2edge_hook_list): New type.
8274         (struct cgraph_2node_hook_list): New type.
8275         (first_cgraph_edge_removal_hook): New variable.
8276         (first_cgraph_node_removal_hook): New variable.
8277         (first_cgraph_edge_duplicated_hook): New variable.
8278         (first_cgraph_node_duplicated_hook): New variable.
8279         (cgraph_add_edge_removal_hook): New function.
8280         (cgraph_remove_edge_removal_hook): New function.
8281         (cgraph_call_edge_removal_hooks):  New function.
8282         (cgraph_add_node_removal_hook):  New function.
8283         (cgraph_remove_node_removal_hook):  New function.
8284         (cgraph_call_node_removal_hooks):  New function.
8285         (cgraph_add_edge_duplication_hook):  New function.
8286         (cgraph_remove_edge_duplication_hook):  New function.
8287         (cgraph_call_edge_duplication_hooks):  New function.
8288         (cgraph_add_node_duplication_hook):  New function.
8289         (cgraph_remove_node_duplication_hook):  New function.
8290         (cgraph_call_node_duplication_hooks):  New function.
8291         (cgraph_create_edge): Assign to edge uid.
8292         (cgraph_remove_edge): Call edge removal hooks.
8293         (cgraph_node_remove_callees): Call edge removal hooks.
8294         (cgraph_node_remove_callers): Call edge removal hooks.
8295         (cgraph_remove_node): Call node removal hooks.
8296         (cgraph_clone_edge): Call edge duplication hooks.
8297         (cgraph_clone_node): Call node duplication hooks.
8298
8299         * cgraph.h (cgraph_edge): New field uid.
8300         (cgraph_edge_hook): New type.
8301         (cgraph_node_hook): New type.
8302         (cgraph_2edge_hook): New type.
8303         (cgraph_2node_hook): New type.
8304
8305 2008-07-07  Andreas Tobler  <a.tobler@schweiz.org>
8306
8307         * config.in: Regenerate.
8308
8309 2008-07-07  Vladimir Prus  <vladimir@codesourcery.com>
8310
8311         * gcc.c (print_sysroot): New.
8312         (option_map, display_help, process_command): Handle the
8313         -print-sysroot option.
8314         (main): Print the sysroot if requested.
8315         * doc/invoke.texi (Debugging Options): Document -print-sysroot.
8316
8317 2008-07-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8318
8319         PR target/34780
8320         * unwind-pe.h (size_of_encoded_value): add attribute unused.
8321
8322 2008-07-07  Daniel Jacobowitz  <dan@codesourcery.com>
8323
8324         * function.c (assign_parm_remove_parallels): Check mode of entry_parm.
8325         (assign_parm_setup_block_p): Also check mode of entry_parm.
8326
8327 2008-07-07  Richard Guenther  <rguenther@suse.de>
8328
8329         * tree-ssa-structalias.h (set_used_smts): Remove.
8330         * tree-ssa-structalias.c (used_smts): Likewise.
8331         (set_used_smts): Likewise.
8332         * tree-ssa-alias.c (compute_flow_sensitive_aliasing): Remove
8333         call to set_used_smts.
8334
8335 2008-07-07  Richard Guenther  <rguenther@suse.de>
8336
8337         * tree-ssa-structalias.c (struct variable_info): Add is_full_var flag.
8338         (new_var_info): Set it to false.
8339         (solution_set_add): Correctly handle pointers outside a var and
8340         inside a field.
8341         (type_safe): Treat variables with is_full_var properly.
8342         (do_sd_constraint): Likewise.
8343         (do_ds_constraint): Likewise.
8344         (process_constraint): Remove zeroing offset for !use_field_sensitive.
8345         (get_constraint_for_ptr_offset): New function.
8346         (get_constraint_for_component_ref): For addresses at least include
8347         the last field of the variable.  Handle is_full_vars properly.
8348         (get_constraint_for_1): Factor common code, handle POINTER_PLUS_EXPR.
8349         (handle_ptr_arith): Remove.
8350         (find_func_aliases): Simplify assignment handling.
8351         (create_function_info_for): For parameter and result varinfos set
8352         is_full_var flag.
8353         (create_variable_info_for): Set is_full_var flag whenever we
8354         just created a single varinfo for a decl.
8355         (init_alias_vars): Initialize use_field_sensitive from
8356         max-fields-for-field-sensitive parameter.
8357
8358 2008-07-07  Richard Guenther  <rguenther@suse.de>
8359
8360         PR tree-optimization/36713
8361         * tree-flow-inline.h (is_call_used): New function.
8362         * tree-nrv.c (dest_safe_for_nrv_p): Use it.
8363         * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
8364         * tree-outof-ssa.c (create_temp): Set call-used flag if required.
8365
8366 2008-07-07  Maxim Kuvyrkov  <maxim@codesourcery.com>
8367
8368         * config/m68k/m68k.c (m68k_return_in_memory): Fix arguments types.
8369
8370 2008-07-07  Mark Shinwell  <shinwell@codesourcery.com>
8371
8372         * config/m68k/lb1sf68.asm: Add PIC macros for Linux targets.
8373
8374 2008-07-07  Maxim Kuvyrkov  <maxim@codesourcery.com>
8375             Nathan Sidwell  <nathan@codesourcery.com>
8376
8377         * config.gcc (m68k-*-linux*): Add with_arch.  Add sysroot-suffix.h
8378         to tm_file.  Add m68k/t-floatlib, m68k/t-linux & m68k/t-mlibs to
8379         tmake_file.
8380         * config/m68k/t-linux: New.
8381         * doc/install.texi: Document m68k-*-linux is now multilibbed by
8382         default.
8383
8384 2008-07-07  Nathan Sidwell  <nathan@codesourcery.com>
8385
8386         * config/m68k/t-cf (MULTILIB_EXTRA_OPTS): Add no-mac.
8387         * config/m68k/m68k-devices.def: Remove multilibs that only differ
8388         by MAC/EMAC.
8389
8390 2008-07-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8391
8392         * gcc.c (execute): Fix -Wc++-compat warning.
8393
8394 2008-07-06  H.J. Lu  <hongjiu.lu@intel.com>
8395
8396         PR target/36720
8397         * config/ia64/ia64.c (ia64_split_tmode): Fix typo in TImode
8398         constant for little endian.
8399
8400 2008-07-06  Richard Sandiford  <rdsandiford@googlemail.com>
8401
8402         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Check
8403         mips_base_mips16 instead of TARGET_MIPS16.
8404         (mips_base_mips16): Declare.
8405         * config/mips/mips.c (mips_base_mips16): Make global.
8406         (was_mips16_p): Remove GTY marker.
8407         (was_mips16_pch_p): New variable.
8408         (mips_set_mips16_mode): Check both was_mips16_p and was_mips16_pch_p.
8409         (mips_override_options): Force to non-MIPS16 mode initially.
8410         Do not complain about MIPS16 PIC incompatibilities here.
8411         Only allow -mgpopt if -mexplicit-relocs is in force for
8412         non-MIPS16 code.
8413
8414 2008-07-06  Andreas Tobler  <a.tobler@schweiz.org>
8415
8416         * configure.ac: Check for caddr_t, define to char * if not defined.
8417         * configure: Regenerate.
8418         * ggc-common.c (mmap_gt_pch_get_address): Fix -Wc++-compat warnings.
8419         (mmap_gt_pch_use_address): Likewise.
8420         * config/host-solaris.c (sol_gt_pch_use_address): Likewise.
8421
8422 2008-07-06  Richard Guenther  <rguenther@suse.de>
8423
8424         * tree-ssa-structalias.c (struct variable_info): Remove has_union.
8425         (new_var_info): Deal with it.
8426         (solution_set_add): Likewise.
8427         (bitpos_of_field): Make signed, fix.
8428         (struct fieldoff): Remove type and decl fields.  Make size field
8429         unsigned HOST_WIDE_INT.  Add has_unknown_size and may_have_pointers
8430         flags.
8431         (fieldoff_compare): Deal with it.
8432         (push_fields_onto_fieldstack): Remove has_union argument, glob
8433         adjacent non-pointer fields together.
8434         (create_function_info_for): Do not set has_union.
8435         (create_variable_info_for): Simplify.
8436
8437 2008-07-06  Kai Tietz  <kai.tietz@onevision.com>
8438
8439         * config.gcc (extra_headers): Add cross-stdarg.h for target
8440         x86_64-*-* and i?86-*-*.
8441         * config/i386/cross-stdarg.h: New.
8442         * builtins.c (std_fn_abi_va_list): New.
8443         (std_canonical_va_list_type): New.
8444         (stabilize_va_list): Replace va_list_type_node use by
8445         mtarget.canonical_va_list_type.
8446         (gimplify_va_arg_expr): Likewise.
8447         (expand_builtin_va_copy): Replace va_list_type_node use by
8448         mtarget.fn_abi_va_list.
8449         * tree-sra.c (is_va_list_type): New helper.
8450         (decl_can_be_decomposed_p): Replace
8451         va_list_type_node use by is_va_list_type.
8452         * tree-ssa-ccp.c (optimize_stdarg_builtin): Likewise.
8453         * tree-stdarg.c (execute_optimize_stdarg): Likewise.
8454         * c-common.c (c_common_nodes_and_builtins): Use TARGET_ENUM_VA_LIST.
8455         * config/i386/i386-protos.h (ix86_get_valist_type): New.
8456         (ix86_enum_va_list): New.
8457         * config/i386/i386.c (sysv_va_list_type_node): New.
8458         (ms_va_list_type_node): New.
8459         (ix86_function_type_abi): Remove sorry.
8460         (ix86_build_builtin_va_list_abi): New.
8461         (ix86_build_builtin_va_list): Call ix86_build_builtin_va_list_abi
8462         for 64-bit targets.
8463         (ix86_va_start): Replace va_list_type_node by sysv_va_list_type_node.
8464         (ix86_init_builtins_va_builtins_abi): New.
8465         (ix86_init_builtins): Use ix86_init_builtins_va_builtins_abi
8466         for 64-bit targets.
8467         (ix86_handle_abi_attribute): New.
8468         (attribute_spec): Add sysv_abi and ms_abi.
8469         (ix86_fn_abi_va_list): New.
8470         (ix86_canonical_va_list_type): New.
8471         (ix86_enum_va_list): New.
8472         (TARGET_FN_ABI_VA_LIST): New.
8473         (TARGET_CANONICAL_VA_LIST_TYPE): New.
8474         * config/i386/i386.h (TARGET_ENUM_VA_LIST): New.
8475         * doc/tm.texi (TARGET_FN_ABI_VA_LIST): New.
8476         (TARGET_CANONICAL_VA_LIST_TYPE): New.
8477         (TARGET_ENUM_VA_LIST): New.
8478         * expr.h (std_fn_abi_va_list): New.
8479         (std_canonical_va_list_type): New.
8480         * target-def.h (TARGET_FN_ABI_VA_LIST): New.
8481         (TARGET_CANONICAL_VA_LIST_TYPE): New.
8482         (TARGET_INITIALIZER): Add TARGET_FN_ABI_VA_LIST and
8483         TARGET_CANONICAL_VA_LIST_TYPE.
8484         * target.h (struct gcc_target): Add fn_abi_va_list hook
8485         and canonical_va_list_type hook.
8486
8487 2008-07-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>
8488
8489         * fold-const.c (fold_convert_const): Treat OFFSET_TYPE the same as
8490         integral and pointer types.
8491
8492 2008-07-04  Roger Sayle  <roger@eyesopen.com>
8493
8494         * config/rs6000/host-darwin.c (darwin_rs6000_extra_signals): Cast
8495         the "void*" result of xmalloc to "char*" to fix bootstrap breakage.
8496
8497 2008-07-04  Kaz Kojima  <kkojima@gcc.gnu.org>
8498
8499         PR target/36684
8500         * config/sh/sh.h (OVERRIDE_OPTIONS): Disable -fschedule-insns for PIC.
8501
8502 2008-07-04  Jakub Jelinek  <jakub@redhat.com>
8503
8504         * tree-switch-conversion.c (build_one_array, gen_def_assigns): Use
8505         build_gimple_modify_stmt.
8506         (build_arrays, gen_inbound_check): Likewise.  Force RHS to be
8507         gimple operand.  Use fold_build* instead of build*.
8508
8509 2008-07-04  Richard Guenther  <rguenther@suse.de>
8510
8511         * tree-ssa-structalias.c (lookup_vi_for_tree): Declare.
8512         (do_sd_constraint): Handle a dereference of ESCAPED and CALLUSED
8513         properly to compute the reachability set if we do field-sensitive PTA.
8514         * invoke.texi (max-fields-for-field-sensitive): Document default.
8515         * opts.c (decode_options): Set max-fields-for-field-sensitive to
8516         100 for optimize >= 2.
8517
8518 2008-07-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8519
8520         * ggc-zone.c (lookup_page_table_if_allocated,
8521         set_page_table_entry, zone_find_object_size, alloc_small_page,
8522         alloc_large_page, ggc_free, gt_ggc_m_S, ggc_marked_p, init_ggc,
8523         new_ggc_zone, init_ggc_pch, ggc_pch_this_base, ggc_pch_read): Fix
8524         -Wc++-compat and/or -Wcast-qual warnings.
8525
8526 2008-07-04  Alan Modra  <amodra@bigpond.net.au>
8527
8528         PR target/36634
8529         * config/rs6000/rs6000.md (call, call_value): Don't arrange for
8530         pic_offset_table_rtx to be marked as used here.
8531         (call_nonlocal_sysv, call_value_nonlocal_sysv): Add split for
8532         TARGET_SECURE_PLT to "use" pic_offset_table_rtx.
8533         (call_nonlocal_sysv_secure, call_value_nonlocal_sysv_secure): New insn.
8534         (sibcall_nonlocal_sysv, sibcall_value_nonlocal_sysv): Assert
8535         !TARGET_SECURE_PLT.
8536
8537 2008-07-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8538
8539         * alloc-pool.c (hash_descriptor, eq_descriptor,
8540         alloc_pool_descriptor): Fix -Wc++-compat warnings.
8541         * bitmap.c (hash_descriptor, eq_descriptor, bitmap_descriptor):
8542         Likewise.
8543         * ggc-common.c (hash_descriptor, eq_descriptor, hash_ptr, eq_ptr,
8544         loc_descriptor, ggc_prune_ptr, ggc_free_overhead,
8545         final_cmp_statistic, cmp_statistic, dump_ggc_loc_statistics): Likewise.
8546         * varray.c (hash_descriptor, eq_descriptor, varray_descriptor):
8547         Likewise.
8548
8549 2008-07-03  Eric Botcazou  <ebotcazou@adacore.com>
8550
8551         * tree-flow.h (loop_only_exit_p): Declare.
8552         * tree-ssa-loop-niter.c (loop_only_exit_p): Make public.
8553         * tree-ssa-loop-ivopts.c (may_eliminate_iv): Reinstate direct check on
8554         the number of iterations if it is constant.  Otherwise, if this is the
8555         only possible exit of the loop, use the conservative estimate on the
8556         number of iterations of the entire loop if available.
8557
8558 2008-07-03  Richard Sandiford  <rdsandiford@googlemail.com>
8559
8560         * Makefile.in (libgcc.mvars): Add LIBGCC_SYNC and LIBGCC_SYNC_CFLAGS.
8561         * libgcc-std.ver (GCC_4.4.0): New version, inherited from GCC_4.3.0.
8562         Add synchronization functions.
8563         * config/sync.c: New file.
8564         * config/mips/t-libgcc-mips16 (LIBGCC_SYNC): Define.
8565         (LIBGCC_SYNC_CFLAGS): Likewise.
8566
8567 2008-07-03  Uros Bizjak  <ubizjak@gmail.com>
8568
8569         PR target/36710
8570         * config/i386/i386.md (mode): Add TF to "mode" attribute.
8571         (*pushtf_sse): New insn pattern.
8572         (pushtf splitters): New splitters.
8573
8574 2008-07-03  Michael Meissner  <gnu@the-meissners.org>
8575
8576         PR middle-end/35736
8577         * predict.c (build_predict_expr): Use void_type_node for the tree
8578         type, instead of NULL_TREE.
8579
8580 2008-07-03  H.J. Lu  <hongjiu.lu@intel.com>
8581
8582         * config/i386/i386.c (contains_aligned_value_p): Return true
8583         for TCmode.
8584         (ix86_data_alignment): Align TCmode to 128bits.
8585         (ix86_local_alignment): Likewise.
8586
8587 2008-07-03  Andrew Haley  <aph@redhat.com>
8588
8589         PR bootstrap/33304
8590         * vec.h (VEC_TA): New.
8591         (DEF_VEC_I, DEF_VEC_P, DEF_VEC_ALLOC_I, DEF_VEC_ALLOC_P,
8592         DEF_VEC_O, DEF_VEC_ALLOC_O: Use VEC_TA.
8593         * c-common.c (C_COMMON_FIXED_TYPES_SAT): New macro.
8594         (C_COMMON_FIXED_MODE_TYPES_SAT): New macro.
8595         (C_COMMON_FIXED_TYPES): Remove first arg.
8596         (C_COMMON_FIXED_MODE_TYPES): Likewise.
8597         * tree.c (MAKE_FIXED_TYPE_NODE): Break into two macros,
8598         MAKE_FIXED_TYPE_NODE and MAKE_FIXED_TYPE_NODE_WIDTH in order
8599         not to use empty macro arguments.
8600
8601 2008-07-02  Joseph Myers  <joseph@codesourcery.com>
8602
8603         * config/alpha/vms_tramp.asm, config/arm/crti.asm,
8604         config/arm/crtn.asm, config/bfin/crti.s, config/bfin/crtlibid.s,
8605         config/bfin/crtn.s, config/fr30/crti.asm, config/fr30/crtn.asm,
8606         config/frv/lib1funcs.asm, config/i386/sol2-c1.asm,
8607         config/i386/sol2-ci.asm, config/i386/sol2-cn.asm,
8608         config/i386/sol2-gc1.asm, config/ia64/crti.asm,
8609         config/ia64/crtn.asm, config/m68hc11/larith.asm,
8610         config/m68hc11/m68hc11-crt0.S, config/m68k/crti.s,
8611         config/m68k/crtn.s, config/mcore/crti.asm, config/mcore/crtn.asm,
8612         config/rs6000/crtresfpr.asm, config/rs6000/crtresgpr.asm,
8613         config/rs6000/crtresxfpr.asm, config/rs6000/crtresxgpr.asm,
8614         config/rs6000/crtsavfpr.asm, config/rs6000/crtsavgpr.asm,
8615         config/rs6000/crtsavres.asm, config/rs6000/e500crtres32gpr.asm,
8616         config/rs6000/e500crtres64gpr.asm,
8617         config/rs6000/e500crtres64gprctr.asm,
8618         config/rs6000/e500crtrest32gpr.asm,
8619         config/rs6000/e500crtrest64gpr.asm,
8620         config/rs6000/e500crtresx32gpr.asm,
8621         config/rs6000/e500crtresx64gpr.asm,
8622         config/rs6000/e500crtsav32gpr.asm,
8623         config/rs6000/e500crtsav64gpr.asm,
8624         config/rs6000/e500crtsav64gprctr.asm,
8625         config/rs6000/e500crtsavg32gpr.asm,
8626         config/rs6000/e500crtsavg64gpr.asm,
8627         config/rs6000/e500crtsavg64gprctr.asm, config/rs6000/eabi-ci.asm,
8628         config/rs6000/eabi-cn.asm, config/rs6000/eabi.asm,
8629         config/rs6000/sol-ci.asm, config/rs6000/sol-cn.asm,
8630         config/rs6000/tramp.asm, config/sparc/sol2-ci.asm,
8631         config/sparc/sol2-cn.asm: Remove .file directives.
8632
8633 2008-07-02  Richard Sandiford  <rdsandiford@googlemail.com>
8634
8635         * resource.c (mark_referenced_resources): Look inside
8636         UNSPEC_VOLATILEs and ASM_INPUTs.
8637
8638 2008-07-02  Ian Lance Taylor  <iant@google.com>
8639
8640         * rtlanal.c (add_reg_note): New function.
8641         * rtl.h (add_reg_note): Declare.
8642         * auto-inc-dec.c (attempt_change): Use add_reg_note.
8643         * bb-reorder.c (add_reg_crossing_jump_notes): Likewise.
8644         * builtins.c (expand_builtin_longjmp): Likewise.
8645         (expand_builtin_nonlocal_goto): Likewise.
8646         * calls.c (emit_call_1, expand_call): Likewise.
8647         * cfgexpand.c (add_reg_br_prob_note): Likewise.
8648         * cfglayout.c (fixup_reorder_chain): Likewise.
8649         * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
8650         (commit_one_edge_insertion): Likewise.
8651         * combine.c (move_deaths, distribute_notes): Likewise.
8652         * df-problems.c (df_set_note): Likewise.
8653         * emit-rtl.c (link_cc0_insns, try_split): Likewise.
8654         (set_unique_reg_note): Likewise.
8655         (emit_copy_of_insn_after): Likewise.
8656         * expr.c (expand_expr_real): Likewise.
8657         * gcse.c (add_label_notes): Likewise.
8658         * haifa-sched.c (create_check_block_twin): Likewise.
8659         * jump.c (mark_jump_label_1): Likewise.
8660         * loop-doloop.c (add_test, doloop_modify): Likewise.
8661         * loop-unswitch.c (compare_and_jump_seq): Likewise.
8662         * lower-subreg.c (move_eh_region_note): Likewise.
8663         * optabs.c (emit_libcall_block): Likewise.
8664         * predict.c (predict_insn): Likewise.
8665         (combine_predictions_for_insn): Likewise.
8666         * recog.c (peephole2_optimize): Likewise.
8667         * regmove.c (try_auto_increment): Likewise.
8668         * reg-stack.c (emit_pop_insn, move_for_stack_reg): Likewise.
8669         * reload.c (find_reloads): Likewise.
8670         * reload1.c (fixup_eh_region_note): Likewise.
8671         (reload_as_needed, add_auto_inc_notes, copy_eh_notes): Likewise.
8672         * reorg.c (delete_prior_computation): Likewise.
8673         (delete_computation, dbr_schedule): Likewise.
8674         * config/pa/pa.c (legitimize_pic_address): Likewise.
8675         * config/sh/sh.c (sh_reorg): Likewise.
8676
8677 2008-07-02  H.J. Lu  <hongjiu.lu@intel.com>
8678
8679         PR target/36669
8680         * config/libgcc-glibc.ver: Add %exclude.
8681         * config/m32r/libgcc-glibc.ver: Likwise.
8682         * config/s390/libgcc-glibc.ver: Likwise.
8683         * config/sh/libgcc-glibc.ver: Likwise.
8684         * config/sparc/libgcc-sparc-glibc.ver: Likwise.
8685
8686         * config/i386/libgcc-glibc.ver: New.
8687
8688         * config/i386/libgcc-x86_64-glibc.ver: Removed.
8689
8690 2008-07-02  H.J. Lu  <hongjiu.lu@intel.com>
8691
8692         * config.gcc: Remove i386/t-fprules-softfp64 soft-fp/t-softfp
8693         from tmake_file from i[34567]86-*-darwin*, x86_64-*-darwin*,
8694         i[34567]86-*-linux*, x86_64-*-linux*.  Add
8695         i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file for
8696         i[34567]86-*-darwin*, x86_64-*-darwin*, i[34567]86-*-linux*,
8697         x86_64-*-linux*.  Add i386/t-linux to tmake_file for
8698         i[34567]86-*-linux*, x86_64-*-linux*.
8699
8700         * libgcc-std.ver: Add empty GCC_4.4.0.
8701
8702         * mkmap-symver.awk: Support multiple versions per symbol.
8703
8704         * config/i386/i386.c (ix86_init_builtins): Always define
8705         __builtin_fabsq and __builtin_copysignq with fallbacks.
8706         (ix86_expand_builtin): Emit normal call for __builtin_fabsq
8707         and __builtin_copysignq if SSE2 isn't available.
8708
8709         * config/i386/linux.h (LIBGCC2_HAS_TF_MODE): Defined.
8710         (LIBGCC2_TF_CEXT): Likwise.
8711         (TF_SIZE): Likwise.
8712
8713         * config/i386/linux64.h (LIBGCC2_HAS_TF_MODE): Defined as 1.
8714
8715         * config/i386/sfp-machine.h: Moved to libgcc.
8716
8717         * config/i386/sfp-machine.h: New.
8718         * config/i386/t-linux: Likwise.
8719
8720         * config/i386/t-darwin: Remove softfp_wrap_start and
8721         softfp_wrap_end.
8722         * config/i386/t-darwin64: Likewise.
8723
8724         * config/i386/t-fprules-softfp64: Renamed to ...
8725         * config/i386/t-fprules-softfp: This.
8726
8727         * config/i386/t-linux64: Remove SHLIB_MAPFILES, softfp_wrap_start
8728         and softfp_wrap_end.
8729
8730 2008-07-02  Jason Merrill  <jason@redhat.com>
8731
8732         * tree.c (ctor_to_list): Use FOR_EACH_CONSTRUCTOR_ELT.
8733
8734         * tree.c (ctor_to_list): New fn.
8735         * tree.h: Declare it.
8736         (CONSTRUCTOR_ELT): New macro.
8737         (CONSTRUCTOR_NELTS): New macro.
8738
8739 2008-07-02  Richard Guenther  <rguenther@suse.de>
8740
8741         * tree-ssa-structalias.c (struct variable_info): Reorder
8742         to fill padding on 64bit hosts.  Make collapsed_to an int.
8743         (get_varinfo_fc): Deal with that.
8744         (new_var_info): Likewise.
8745         (collapse_rest_of_var): Likewise.
8746
8747 2008-07-02  Joshua Sumali  <jsumali@redhat.com>
8748
8749         * doc/install.texi (--enable-java-home): Document.
8750         (--enable-aot-compile-rpm): Likewise.
8751         (--with-arch-directory): Likewise.
8752         (--with-os-directory): Likewise.
8753         (--with-origin-name): Likewise.
8754         (--with-arch-suffix): Likewise.
8755         (--with-jvm-root-dir): Likewise.
8756         (--with-jvm-jar-dir): Likewise.
8757         (--with-python-dir): Likewise.
8758
8759 2008-07-02  Richard Guenther  <rguenther@suse.de>
8760
8761         * tree-ssa-forwprop.c (can_propagate_from): Exclude loads
8762         from decls explicitly.  Merge operand checking from tuples.
8763
8764 2008-07-02  Martin Jambor  <mjambor@suse.cz>
8765
8766         * tree-switch-conversion.c: Included timevar.h which I forgot before.
8767
8768 2008-07-02  Martin Jambor  <mjambor@suse.cz>
8769
8770         * tree-switch-conversion.c: Included timevar.h
8771         (pass_convert_switch): Added a timevar id (TV_TREE_SWITCH_CONVERSION).
8772
8773         * timevar.def: Added TV_TREE_SWITCH_CONVERSION.
8774
8775 2008-07-02  Martin Jambor  <mjambor@suse.cz>
8776
8777         * tree-switch-conversion.c: Corrected various comments and
8778         whitespace issues
8779         (build_constructors): Fixed minor formatting mistakes.
8780
8781         * invoke.texi (Optimize Options): Corrected the
8782         switch-conversion-max-branch-ratio parameter.
8783
8784 2008-07-02  Mark Shinwell  <shinwell@codesourcery.com>
8785
8786         * final.c (asm_insn_count): Return zero for an empty asm body.
8787
8788 2008-07-02  Richard Guenther  <rguenther@suse.de>
8789
8790         * bitmap.h (bitmap_set_bit): Return bool.
8791         (bitmap_clear_bit): Likewise.
8792         * bitmap.c (bitmap_set_bit): Return if the bit changed.  Only
8793         write to the bitmap if it would.
8794         (bitmap_clear_bit): Likewise.
8795         * tree-ssa-structalias.c (add_implicit_graph_edge): Use
8796         bitmap_set_bit return value.
8797         (add_pred_graph_edge): Likewise.
8798         (add_graph_edge): Likewise.
8799         (do_sd_constraint): Likewise.
8800         (do_ds_constraint): Likewise.
8801
8802 2008-07-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8803
8804         * config/alpha/alpha.c (alpha_need_linkage, alpha_use_linkage):
8805         Fix -Wc++-compat and/or -Wcast-qual warnings.
8806         * config/i386/netware.c (gen_stdcall_or_fastcall_decoration,
8807         gen_regparm_prefix): Likewise.
8808         * vmsdbgout.c (write_modbeg, lookup_filename,
8809         vmsdbgout_source_line, vmsdbgout_init): Likewise.
8810
8811 2008-07-02  Danny Smith  <dannysmith@users.sourceforge.net>
8812
8813         * config/i386/mingw32.h (TARGET_USE_JCR_SECTION): Undef to let
8814         defaults.h definition apply.
8815
8816 2008-07-01  Daniel Jacobowitz  <dan@codesourcery.com>
8817
8818         * function.c (assign_parm_remove_parallels): New.
8819         (assign_parm_setup_block_p): Do not return true for non-BLKmode
8820         PARALLELs.
8821         (assign_parm_setup_block): Do not handle them.
8822         (assign_parm_setup_reg, assign_parm_setup_stack): Call
8823         assign_parm_remove_parallels.
8824
8825 2008-07-01  Daniel Jacobowitz  <dan@codesourcery.com>
8826
8827         * c-typeck.c (convert_for_assignment): Use
8828         vector_targets_convertible_p.
8829         * c-common.c (vector_targets_convertible_p): New.
8830         * c-common.h (vector_targets_convertible_p): New prototype.
8831         * config/rs6000/rs6000.c (rs6000_is_opaque_type): Do not check
8832         opaque_p_V2SI_type_node.
8833
8834 2008-07-01  Steve Ellcey  <sje@cup.hp.com>
8835
8836         * config/ia64/ia64.c (ia64_cannot_force_const_mem): Do not allow
8837         RFmode constants.
8838
8839 2008-07-01  Uros Bizjak  <ubizjak@gmail.com>
8840
8841         * config/i386/i386.c (ix86_build_signbit_mask): Generate TImode and
8842         TFmode constants via two element DImode vector for hosts with
8843         HOST_BITS_PER_WIDE_INT < 64.
8844         (ix86_init_builtins): Define __builtin_fabsq and __builtin_copysignq
8845         also for HOST_BITS_PER_WIDE_INT < 64.
8846
8847 2008-07-01  Richard Guenther  <rguenther@suse.de>
8848
8849         PR tree-optimization/36666
8850         * tree-ssa-structalias.c (get_constraint_for_1): Declare.
8851         (get_constraint_exp_from_ssa_var): Split into ...
8852         (get_constraint_exp_for_temp): ... this ...
8853         (get_constraint_for_ssa_var): ... and that.
8854         Return constraint expressions for all touched sub-fields
8855         if the results address is not taken.
8856         (process_constraint): Remove assertion that aggregate
8857         assignments do not happen at this place.
8858         (get_constraint_for_component_ref): Add address_p argument.
8859         Return constraint expressions for all touched sub-fields
8860         if the results address is not taken.
8861         (do_deref): Use get_constraint_exp_for_temp.
8862         (get_constraint_for_1): Rename from ...
8863         (get_constraint_for): ... this.  Add the old function as wrapper.
8864         (do_structure_copy): Use get_constraint_for_1.
8865
8866 2008-07-01  Martin Jambor  <mjambor@suse.cz>
8867
8868         * Makefile.in (tree-switch-conversion.o): Add.
8869         (OBJS-common): Add tree-swtch-conversion.o.
8870         * passes.c (init_optimization_passes): Add pass_convert_switch.
8871         * tree-pass.h: (pass_convert_switch): Add.
8872         * tree-switch-conversion.c: New file.
8873         * gcc.dg/tree-ssa/cswtch.c: New testcase.
8874         * common.opt (ftree-cswtch): New option.
8875         * params.h (PARAM_SWITCH_CONVERSION_BRANCH_RATIO): New parameter.
8876         * params.def (PARAM_SWITCH_CONVERSION_BRANCH_RATIO): New parameter.
8877         * opts.c (decode_options): Set flag_tree_switch_conversion when
8878         optimization level is >= 2.
8879         * doc/invoke.texi (Optimize Options): Added description of
8880         -ftree-swtch-conversion and switch-conversion-max-branch-ratio.
8881
8882 2008-06-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8883
8884         * config/darwin-driver.c (darwin_default_min_version): Fix
8885         -Wc++-compat warnings.
8886
8887 2008-06-30  Uros Bizjak  <ubizjak@gmail.com>
8888
8889         * config/i386/i386.md (*movti_rex64): Add "!" to "r" constraint
8890         of operand 0.
8891
8892 2008-06-30  Kenneth Zadeck <zadeck@naturalbridge.com>
8893
8894         * ifcvt.c (cond_move_process_if_block): Free vectors on false return.
8895
8896 2008-06-30  Kenneth Zadeck <zadeck@naturalbridge.com>
8897
8898         PR rtl-optimization/34744
8899         * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): New macros.
8900         (df_scan_free_internal): Free data structures not
8901         allocated in storage pools.
8902         (df_mw_hardreg_chain_delete_eq_uses): Use df_scan_free_mws_vec.
8903         (df_refs_add_to_chains): Use df_scan_free_ref_vec and
8904         df_scan_free_mws_vec.
8905         * dse.c (dse_step6): Free offset_map_p and offset_map_n
8906         unconditionally.
8907
8908 2008-06-30  H.J. Lu  <hongjiu.lu@intel.com>
8909
8910         * config/i386/i386.c (contains_aligned_value_p): Return true
8911         for __float128.
8912         (ix86_function_arg_boundary): Return its natural boundary
8913         for __float128.
8914         (return_in_memory_32): Don't check TDmode.
8915         (ix86_split_to_parts): Support splitting into 4 parts and
8916         support TFmode for 32bit target.
8917         (ix86_split_long_move): Support splitting into 4 parts.
8918         (bdesc_args): Enable IX86_BUILTIN_FABSQ and IX86_BUILTIN_COPYSIGNQ
8919         for SSE2.
8920         (ix86_init_mmx_sse_builtins): Move __float80 and __float128 to ...
8921         (ix86_init_builtins): Here.
8922         (ix86_scalar_mode_supported_p): Always return true for TFmode.
8923         (ix86_c_mode_for_suffix): Always return TFmode and XFmode for
8924         'q' and 'w', respectively.
8925
8926         * config/i386/i386.md (movtf): Check TARGET_SSE2 instead of
8927         TARGET_64BIT.
8928         (movtf_internal): Likewise.
8929         (<code>tf2): Likewise.
8930         (*absnegtf2_sse): Likewise.
8931         (copysign<mode>3): Likewise.
8932         (copysign<mode>3_const): Likewise.
8933         (copysign<mode>3_var): Likewise.
8934         (define_split UNSPEC_COPYSIGN): Likewise.
8935         * config/i386/sse.md (*nandtf3): Likewise.
8936         (<code>tf3): Likewise.
8937         (*<code>tf3): Likewise.
8938
8939 2008-06-30  Joey Ye  <joey.ye@intel.com>
8940             H.J. Lu  <hongjiu.lu@intel.com>
8941
8942         * global.c (compute_regsets): Set frame_pointer_needed here.
8943         * reload1.c (init_elim_table): Don't set frame_pointer_needed here.
8944
8945 2008-06-30  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
8946
8947         * doc/install.texi (specific): Expand Windows build notes.
8948
8949 2008-06-30  Ira Rosen  <irar@il.ibm.com>
8950
8951         PR tree-optimization/36648
8952         * tree-vect-transform.c (vect_do_peeling_for_loop_bound): Divide
8953         number of prolog iterations by step. Fix the comment.
8954
8955 2008-06-30  Richard Guenther  <rguenther@suse.de>
8956
8957         PR middle-end/36671
8958         * tree-ssa-structalias.c (handle_lhs_call): Add flags argument,
8959         handle calls from ECF_MALLOC functions.
8960         (handle_pure_call): ECF_MALLOC functions do not return
8961         call-used memory.
8962         (find_func_aliases): Handle all calls, adjust calls to handle_lhs_call.
8963
8964 2008-06-29  Andreas Schwab  <schwab@suse.de>
8965
8966         * config/m68k/m68k.c (print_operand): Always print a float
8967         constant in hex.
8968         * config/m68k/m68k.h (ASM_OUTPUT_FLOAT_OPERAND)
8969         (ASM_OUTPUT_DOUBLE_OPERAND, ASM_OUTPUT_LONG_DOUBLE_OPERAND):
8970         Remove macros.
8971
8972         * config/rs6000/x-linux64: Remove never used file.
8973
8974 2008-06-29  Richard Guenther  <rguenther@suse.de>
8975
8976         * tree-ssa-structalias.h (compute_points_to_sets): Adjust
8977         prototype.
8978         (struct alias_info): Move ...
8979         * tree-ssa-alias.c: ... here.
8980         (update_alias_info): Declare.
8981         (compute_may_aliases): Call it.
8982         (update_alias_info): New function.
8983         * tree-ssa-structalias.c (update_alias_info): Move ...
8984         * tree-ssa-alias.c (update_alias_info_1): ... here.
8985         * tree-ssa-structalias.c (process_constraint_1): Remove
8986         unused from_call argument.  Rename to ...
8987         (process_constraint): ... this.  Delete old wrapper.
8988         (make_constraint_to): Adjust callers.
8989         (handle_const_call): Likewise.
8990         (handle_pure_call): Likewise.
8991         (init_base_vars): Likewise.
8992         (handle_lhs_call): Likewise.  Remove unnecessary constraint.
8993         (find_func_aliases): We don't need structure copies for
8994         complex types.
8995         (make_constraint_from_anything): Remove.
8996         (create_variable_info_for): For globals make constraints
8997         from escaped, not from anything.
8998         (compute_points_to_sets): Do not call update_alias_info.
8999         (ipa_pta_execute): Use make_constraint_from.
9000
9001 2008-06-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9002
9003         * Makefile.in (CXX_COMPAT_WARN, cxx_compat_warn): Delete.
9004         (bitmap.o-warn, dominance.o-warn): New.
9005         * configure.ac (cxx_compat_warn): Delete.
9006         (loose_warn): Add -Wcast-qual and -Wc++-compat.
9007         * system.h: Remove #pragma diagnostic for -Wcast-qual and
9008         -Wc++-compat.
9009         * configure: Regenerate.
9010
9011         * optabs.c (libfunc_decl_hash, libfunc_decl_eq): Fix -Wcast-qual
9012         warnings.
9013
9014 2008-06-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9015
9016         * alloc-pool.c (create_alloc_pool): Fix -Wc++-compat warnings.
9017         * df-scan.c (df_notes_rescan): Likewise.
9018         * ggc-page.c (set_page_table_entry): Likewise.
9019         * intl.c (gcc_gettext_width): Likewise.
9020         * varasm.c (get_unnamed_section, get_noswitch_section,
9021         get_section): Likewise.
9022
9023 2008-06-28  Andrew Jenner  <andrew@codesourcery.com>
9024
9025         * regrename.c (build_def_use): Don't copy RTX.
9026
9027 2008-06-28  Sandra Loosemore  <sandra@codesourcery.com>
9028
9029         * doc/extend.texi (Variable Attributes): Use @ref instead of @xref.
9030         (Type Attributes): Fix nesting of @table and @subsection.  Adjust
9031         punctuation.  Use @ref instead of @xref.
9032         (Function Names): Remove stray @display/@end display.
9033         (C++ Attributes): Use @ref instead of @xref.
9034         (Deprecated Features): Fix punctuation around @xref.
9035         (Backwards Compatibility): Likewise.
9036         * doc/rtl.texi (Incdec): Remove stray @table/@end table.
9037
9038 2008-06-28  Joseph Myers  <joseph@codesourcery.com>
9039
9040         * config/rs6000/predicates.md (easy_fp_constant): Reject TFmode
9041         constants for E500 double.
9042
9043 2008-06-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9044
9045         * doc/rtl.texi (const_vector): Document const_fixed as legitimate
9046         element type of const_vector.
9047
9048 2008-06-28  Uros Bizjak  <ubizjak@gmail.com>
9049
9050         * config/i386/i386.md (addti3, adddi3, addsi3, addhi3, addqi3):
9051         Remove FLAGS_REG clobber from expander pattern.
9052         (subti3, subdi3, subsi3, subhi3, subqi3): Ditto.
9053         (anddi3, andsi3, andhi3, andqi3): Ditto.
9054         (iordi3, iorsi3, iorhi3, iorqi3): Ditto.
9055         (xordi3, xorsi3, xorhi3, xorqi3): Ditto.
9056         (negti2, negdi2, negsi2, neghi2, negqi2): Ditto.
9057         (ashlsi3, ashlhi3, ashlqi3): Ditto.
9058         (ashrsi3, ashrhi3, ashrqi3): Ditto.
9059         (lshrsi3, lshrhi3, lshrqi3): Ditto.
9060         (rotldi3, rotlsi3, rotlhi3, rotlqi3): Ditto.
9061         (rotrdi3, rotrsi3, rotrhi3, rotrqi3): Ditto.
9062
9063 2008-06-28  Richard Guenther  <rguenther@suse.de>
9064
9065         * tree-ssa-structalias.c (callused_id, var_callused,
9066         callused_tree): Add.
9067         (handle_pure_call): New function.
9068         (find_func_aliases): Call it.
9069         (find_what_p_points_to): Handle the call-used set.
9070         (clobber_what_escaped): Likewise.
9071         (compute_call_used_vars): New function.
9072         (init_base_vars): Init the call-used variable.
9073         (do_sd_constraint): Do not propagate the solution from CALLUSED
9074         but use CALLUSED as a placeholder.
9075         (solve_graph): Likewise.
9076         * tree-flow-inline.h (gimple_call_used_vars): New function.
9077         * tree-flow.h (struct gimple_df): Add call_used_vars bitmap.
9078         (compute_call_used_vars): Declare.
9079         * tree-ssa-alias.c (set_initial_properties): Call
9080         compute_call_used_vars.
9081         (reset_alias_info): Clear call-used variables.
9082         (add_call_clobber_ops): Assert we are not called for const/pure
9083         functions.  Remove handling of them.
9084         (add_call_read_ops): Handle pure functions by adding the
9085         call-used set of variables as VUSEs.
9086         * tree-ssa.c (init_tree_ssa): Allocate call-used bitmap.
9087         (delete_tree_ssa): Free it.
9088         * tree-dfa.c (remove_referenced_var): Clear the var from the
9089         call-used bitmap.
9090
9091 2008-06-28  Kai Tietz  <kai.tietz@onevision.com>
9092
9093         * tree.c (build_varargs_function_type_list): New.
9094         (build_function_type_list_1): New.
9095         (build_function_type_list): Use build_function_type_list_1.
9096         * tree.h (build_varargs_function_type_list): New.
9097
9098 2008-06-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9099
9100         PR target/34856
9101         * config/spu/spu.c (spu_builtin_splats): Do not generate
9102         invalid CONST_VECTOR expressions.
9103         (spu_expand_vector_init): Likewise.
9104
9105 2008-06-28  Richard Sandiford  <rdsandiford@googlemail.com>
9106
9107         * optabs.c (libfunc_decls): New variable.
9108         (libfunc_decl_hash, libfunc_decl_eq): New functions.
9109         (init_one_libfunc): Reuse decls and SYMBOL_REFs when asked
9110         for the same function twice.
9111
9112 2008-06-27  Uros Bizjak  <ubizjak@gmail.com>
9113
9114         * config/i386/i386.md (ashlti3, ashrti3, lshrti3): Expand using
9115         ix86_expand_binary_operator directly.
9116         (*ashlti3_1): Rename from ashlti3_1.  Use nonmemory_operand predicate
9117         for operand 2.
9118         (*ashrti3_1): Ditto.
9119         (*lshrti3_1): Ditto.
9120         (*ashlti3_2, *ashrti3_2, *lshrti3_2): Remove insn patterns.
9121         (ashlti, ashrti and lshrti splitters): Handle nonmemory operand 2
9122         using only one splitter.  Conditionaly execute splitter before or
9123         after peephole2 pass.
9124         (ashlti, ashrti and lshrti peephole2): Define peephole2 patterns.
9125         (x86_shld): Rename from x86_shld_1.  Compress operand 2 constraints.
9126         Use only one alternative in asm template.
9127         (x86_64_shld): Compress operand 2 constraints. Use only one alternative
9128         in asm template.
9129         (*ashldi3_cmp_rex64): Use const_1_to_63_operand operand predicate and
9130         "J" operand constraint for operand 2.
9131         (*ashldi3_cconly_rex64): Ditto.
9132         (*ashrdi3_cmp_rex64): Ditto.
9133         (*ashrdi3_cconly_rex64): Ditto.
9134         (*lshrdi3_cmp_rex64): Ditto.
9135         (*lshrdi3_cconly_rex64): Ditto.
9136         * config/i386/predicates.md (const_1_to_63_operand): New predicate.
9137         * config/i386/i386.md (print_operand) ['s']: Print ", " using fputs.
9138         (split_ashr, split_ashl, split_lshr): Use gen_x86_shrd instead of
9139         gen_x86_shrd_1.
9140
9141 2008-06-27  Jakub Jelinek  <jakub@redhat.com>
9142
9143         * gimplify.c (omp_is_private): Don't return true if decl is not
9144         already private on #pragma omp for or #pragma omp parallel for.
9145
9146         PR debug/36617
9147         * tree-cfg.c (struct move_stmt_d): Replace block field with
9148         orig_block and new_block fields.
9149         (move_stmt_r): Only set TREE_BLOCK to p->new_block if
9150         if it used to be NULL, p->orig_block or if p->orig_block is NULL.
9151         (move_block_to_fn): Replace vars_map and new_label_map arguments
9152         with struct move_stmt_d pointer.
9153         (replace_block_vars_by_duplicates): New function.
9154         (move_sese_region_to_fn): Add ORIG_BLOCK argument.  Adjust
9155         move_block_to_fn caller.  If ORIG_BLOCK is non-NULL, move over
9156         all subblocks of ORIG_BLOCK to the new function.  Call
9157         replace_block_vars_by_duplicates.
9158         * tree-flow.h (move_sese_region_to_fn): Adjust prototype.
9159         * omp-low.c (expand_omp_taskreg): Set TREE_USED on DECL_INITIAL
9160         BLOCK of the new function.  Adjust move_sese_region_to_fn caller.
9161         Prune vars with original DECL_CONTEXT from child_cfun->local_decls.
9162         (expand_omp): Temporarily set input_location to the location of
9163         region's controlling stmt.
9164         (lower_omp_sections, lower_omp_for): Add a BLOCK into outermost
9165         BIND_EXPR, push ctx->block_vars and gimplification vars into
9166         the BIND_EXPR and its block's BLOCK_VARS instead of directly
9167         into dest function.
9168         (lower_omp_single): Set TREE_USED on the BIND_EXPR's BLOCK if
9169         there are any BLOCK_VARS.
9170         (lower_omp_taskreg): Set BLOCK on a BIND_EXPR containing the
9171         OMP_PARALLEL or OMP_TASK stmt.
9172         (lower_omp): Save and restore input_location around the lower_omp_1
9173         call.
9174
9175 2008-06-27  Richard Guenther  <rguenther@suse.de>
9176
9177         PR tree-optimization/36400
9178         PR tree-optimization/36373
9179         PR tree-optimization/36344
9180         * tree-ssa-structalias.c (var_escaped, escaped_tree, escaped_id,
9181         var_nonlocal, nonlocal_tree, nonlocal_id): New globals
9182         (update_alias_info): Remove call clobbering code.
9183         (make_constraint_to): New helper function.
9184         (make_escape_constraint): Likewise.
9185         (handle_rhs_call): Use it on all pointer containing arguments.
9186         Also mark the static chain escaped.
9187         (handle_lhs_call): Make constraints from NONLOCAL and ESCAPED
9188         instead of ANYTHING.
9189         (make_constraint_from): New helper split out from ...
9190         (make_constraint_from_anything): ... here.
9191         (find_func_aliases): Add constraints for escape sites.
9192         (intra_create_variable_infos): Make constraints from NONLOCAL
9193         for parameters.
9194         (find_what_p_points_to): Interpret NONLOCAL and ESCAPED the same
9195         as ANYTHING.
9196         (clobber_what_p_points_to): Remove.
9197         (clobber_what_escaped): New function.
9198         (init_base_vars): Init NONLOCAL and ESCAPED.
9199         (do_sd_constraint): Do not propagate the solution from ESCAPED
9200         but use ESCAPED as a placeholder.
9201         (solve_graph): Likewise.
9202         * tree-flow.h (clobber_what_p_points_to): Remove.
9203         (clobber_what_escaped): Declare.
9204         * tree-ssa-alias.c (set_initial_properties): Call it.
9205         Remove code clobbering escaped pointers.
9206
9207 2008-06-27  Richard Sandiford  <rdsandiford@googlemail.com>
9208
9209         * function.c (allocate_struct_function): Only allocate a unique
9210         funcdef_no if the decl is nonzero.
9211
9212 2008-06-27  Richard Sandiford  <rdsandiford@googlemail.com>
9213
9214         * config/mips/mips-protos.h (mips_split_const_insns): Declare.
9215         * config/mips/mips.c (mips_split_const_insns): New function.
9216         * config/mips/mips.md (move_type): New attribute.
9217         (mode): Move attribute definition earlier in file.  Add "TI" and "TF".
9218         (dword_mode): New attribute.
9219         (type): Avoid long line.  Map "move_type"s to "type"s,
9220         choosing "multi" for doubleword moves if appropriate.
9221         Swap MTC/MFC comments to match their declaration order.
9222         (extended_mips16): Default to "yes" if "move_type" is "sll0",
9223         "type" is "branch" or "jal" is "direct".
9224         (length): Handle "extended_mips16" first.  Make the default
9225         "0" for "ghost" instructions.  Set the length from "move_type".
9226         (truncdisi2, truncdihi2, truncdiqi2): Use "move_type" instead
9227         of "type", with "sll0" for the register alternative.  Remove the
9228         "extended_mips16" attribute.
9229         (zero_extendsidi2, *clear_upper32): Use "move_type" instead
9230         of "type", with "shift_shift" for the register alternative.
9231         Remove the "length" attribute.
9232         (*extend<SHORT:mode><GPR:mode>2, *extendqihi2): Likewise.
9233         (*zero_extend<SHORT:mode><GPR:mode>2): Use "move_type" instead
9234         of "type", with "andi" for the register alternative.
9235         (*zero_extendqihi2): Likewise.
9236         (*zero_extend<SHORT:mode><GPR:mode>2_mips16e): Use a "move_type"
9237         of "andi" instead of a "type" of "arith".
9238         (*zero_extend<SHORT:mode><GPR:mode>2_mips16): Use "move_type"
9239         instead of "type".
9240         (*zero_extendqihi2_mips16, mov_<load>l, mov_<load>r, mov_<store>l)
9241         (mov_<store>r, *mov<mode>_ra): Likewise.
9242         (extendsidi2): Use "move_type" instead of "type", with "move"
9243         for the register alternative.
9244         (*extend<SHORT:mode><GPR:mode>2_mips16e): Use "move_type" instead
9245         of "type", with "signext" for the register alternative.
9246         (*extend<SHORT:mode><GPR:mode>2_se<SHORT:size>): Likewise.
9247         (*extendqihi2_mips16e, *extendqihi2_seb): Likewise.
9248         (fix_truncdfsi2_insn, fix_truncsfsi2_insn, fix_truncdfdi2)
9249         (fix_truncsfdi2, floatsidf2, floatdidf2, floatsisf2, floatdisf2)
9250         (floatdisf2, *branch_equality<mode>_mips16): Likewise.
9251         (unnamed branch insn): Likewise.
9252         (*movdi_gp32_fp64): Fold into...
9253         (*movdi_32bit): ...here.
9254         (*movdf_hardfloat_64bit, *movdf_hardfloat_32bit): Combine into...
9255         (*movdf_hardfloat): ...this new pattern.
9256         (*movdf_softfloat): Remove redundant FPR alternatives.
9257         (*movti, *movti_mips16, *movtf, *movtf_mips16): Add "mode" attributes.
9258         (*movv2sf_hardfloat_64bit, *movv2sf_hardfloat_32bit): Combine into...
9259         (*movv2sf): ...this new pattern.  Use "DF" rather than "SF" for
9260         the "move" attribute.
9261         (*movdi_32bit): Use "move_type" instead of "type" and remove the
9262         "length" attribute.  Use "fpload" and "fpstore" instead of "load"
9263         and "store" for COP loads and stores.
9264         (*movdi_32bit_mips16, *movdi_64bit, *movsi_internal, movcc)
9265         (*movhi_internal, *movhi_mips16, *movqi_internal, *movqi_mips16)
9266         (*movsf_hardfloat, *movsf_softfloat, *movsi_mips16, *movdf_hardfloat)
9267         (*movdf_softfloat, *movdf_mips16, *movti, *movti_mips16, *movtf)
9268         (*movtf_mips16, *movv2sf): Likewise.
9269         (mfhi<GPR:mode>_<HILO:mode>, mflo<GPR:mode>_<HILO:mode>)
9270         (load_low<mode>, load_high<mode>, store_word<mode>, mthc1<mode>)
9271         (mfhc1<mode>): Use "move_type" instead of "move".
9272         (*low<mode>_mips16): Use "extended_mips16" instead of "length".
9273         (loadgp_blockage): Remove the "length" attribute.
9274         (blockage, set_got_version, update_got_version): Likewise.
9275         (call_internal): Remove the "extended_mips16" attribute.
9276         (call_value_internal, call_value_multiple_internal): Likewise.
9277         * config/mips/loongson.md (mov<mode>_internal): Use "move_type"
9278         instead of "move".
9279         * config/mips/mips-dsp.md (mips_lbux, mips_lhx, mips_lwx): Remove
9280         the "length" attribute.
9281
9282 2008-06-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9283
9284         * c-format.c (handle_format_attribute): Fix -Wc++-compat and/or
9285         -Wcast-qual warnings.
9286         * c-pragma.c (dpm_eq, handle_pragma_push_macro,
9287         handle_pragma_pop_macro): Likewise.
9288         * collect2.c (resolve_lib_name): Likewise.
9289         * config/arc/arc.c (arc_init): Likewise.
9290         * config/arm/arm.c (neon_builtin_compare,
9291         locate_neon_builtin_icode): Likewise.
9292         * config/arm/pe.c (arm_mark_dllexport, arm_pe_unique_section): Likewise.
9293         * config/bfin/bfin.c (bfin_init_machine_status,
9294         bfin_optimize_loop): Likewise.
9295         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Likewise.
9296         * config/cris/cris.c (cris_init_expanders): Likewise.
9297         * config/darwin-c.c (frameworks_in_use, add_framework): Likewise.
9298         * config/darwin.c (machopic_indirection_eq,
9299         machopic_indirection_name, machopic_output_indirection): Likewise.
9300         * config/frv/frv.c (frv_init_machine_status, frv_compare_insns,
9301         frv_io_check_address, frv_io_handle_set, frv_io_handle_use_1,
9302         frv_optimize_membar): Likewise.
9303         * config/i386/cygwin.h (mingw_scan,
9304         GCC_DRIVER_HOST_INITIALIZATION): Likewise.
9305         * config/i386/cygwin1.c (mingw_scan): Likewise.
9306         * config/i386/i386.c (machopic_output_stub): Likewise.
9307         * config/i386/winnt.c (gen_stdcall_or_fastcall_suffix,
9308         i386_pe_unique_section): Likewise.
9309         * config/ia64/ia64.c (ia64_init_machine_status,
9310         ia64_h_i_d_extended, get_free_bundle_state, bundling, ia64_reorg):
9311         Likewise.
9312         * config/iq2000/iq2000.c, iq2000_init_machine_status): Likewise.
9313         * config/m68hc11/m68hc11.c (m68hc11_encode_label): Likewise.
9314         * config/m68k/m68k.c (m68k_handle_option,
9315         m68k_sched_md_init_global): Likewise.
9316         * config/mcore/mcore.c (mcore_mark_dllexport, mcore_mark_dllimport,
9317         mcore_unique_section): Likewise.
9318         * config/mips/mips.c (mips_block_move_straight,
9319         mips16_rewrite_pool_refs, mips_sim_wait_regs_2, mips_sim_record_set):
9320         Likewise.
9321         * config/mmix/mmix.c (mmix_init_machine_status,
9322         mmix_encode_section_info): Likewise.
9323         * config/pa/pa.c (pa_init_machine_status, hppa_encode_label): Likewise.
9324         * config/rs6000/rs6000.c (rs6000_init_machine_status,
9325         print_operand_address, output_toc, redefine_groups,
9326         rs6000_elf_encode_section_info, machopic_output_stub): Likewise.
9327         * config/s390/s390.c (s390_init_machine_status): Likewise.
9328         * config/score/score.c (score_block_move_straight,
9329         score_block_move_loop_body): Likewise.
9330         * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
9331         * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
9332         * emit-rtl.c (find_auto_inc): Likewise.
9333         * gcc.c (translate_options, process_command): Likewise.
9334         * reorg.c (dbr_schedule): Likewise.
9335         * sdbout.c (sdbout_start_source_file, sdbout_init): Likewise.
9336         * xcoffout.c (xcoffout_declare_function): Likewise.
9337
9338 2008-06-27  Daniel Berlin  <dberlin@dberlin.org>
9339
9340         * tree-ssa-structalias.c (find_func_aliases): Trivial fix to get
9341         ipa-pta working again.
9342
9343 2008-06-27  David Edelsohn  <edelsohn@gnu.org>
9344
9345         * config/rs6000/t-aix52: Append large data option to LDFLAGS for
9346         genautomata.
9347
9348 2008-06-27  Edmar Wienskoski  <edmar@freescale.com>
9349
9350         * config.gcc (powerpc*-*-*): Add new core e500mc.
9351         * config/rs6000/e500mc.md: New file.
9352         * config/rs6000/rs6000.c (processor_costs): Add new costs for
9353         e500mc.
9354         (rs6000_override_options): Add e500mc case to
9355         processor_target_table. Altivec and Spe options not allowed
9356         with e500mc. Add isel instruction to e500mc by
9357         default. Initialize rs6000_cost for e500mc.
9358         (rs6000_issue_rate): Set issue rate for e500mc.
9359         * config/rs6000/rs6000.h (processor_type): Add
9360         PROCESSOR_PPCE500MC.
9361         (ASM_CPU_SPEC): Add e500mc.
9362         Set TARGET_ISEL to rs6000_isel.
9363         * config/rs6000/e500.h: Remove redefinition of TARGET_ISEL.
9364         (CHECK_E500_OPTIONS): Remove TARGET_ISEL.
9365         * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce500mc.
9366         Include e500mc.md.
9367         * doc/invoke.texi: Add e500mc to list of cpus.
9368
9369 2008-06-27  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
9370
9371         PR c/34867
9372         * c-lex.c (lex_charconst): Initialize unsignedp.
9373
9374 2008-06-27  Olivier Hainque  <hainque@adacore.com>
9375
9376         * gimplify.c (gimplify_modify_expr_to_memset): Assert our
9377         documented assumptions.
9378
9379 2008-06-26  H.J. Lu  <hongjiu.lu@intel.com>
9380
9381         * dwarf2out.c: Remove trailing white spaces.  Break long line
9382         in comments.
9383
9384 2008-06-26  Richard Sandiford  <rdsandiford@googlemail.com>
9385
9386         * libfuncs.h (LTI_synchronize): New libfunc_index.
9387         (synchronize_libfunc): Declare.
9388         * builtins.c (expand_builtin_synchronize): Consider using
9389         synchronize_libfunc before falling back on an asm blockage.
9390         * config/mips/mips.c: Include libfuncs.h
9391         (mips_init_libfuncs): Initialize synchronize_libfunc for TARGET_MIPS16.
9392
9393 2008-06-26  Nathan Froyd  <froydnj@codesourcery.com>
9394
9395         * config/rs6000/rs6000.c (emit_allocate_stack): Add copy_r11
9396         parameter.  Copy stack_reg to r11 where appropriate.
9397         (no_global_regs_above): Add gpr parameter.
9398         (rs6000_stack_info): Only add padding for SPE save area if we
9399         are saving SPE GPRs and CR.
9400         (saveres_routine_syms): New variable.
9401         (FIRST_SAVRES_REGISTER, LAST_SAVRES_REGISTER, N_SAVRES_REGISTERS):
9402         Define.
9403         (rs6000_savres_routine_sym): New function.
9404         (rs6000_emit_stack_reset, rs6000_restore_saved_cr): New functions,
9405         split out of...
9406         (rs6000_emit_epilogue): ...here.  Use rs6000_use_multiple_p and
9407         rs6000_savres_strategy.  Restore GPRs out-of-line if appropriate.
9408         Tweak FPR out-of-line saving.
9409         (rs6000_make_savres_rtx): New function.
9410         (rs6000_use_multiple_p): New function.
9411         (rs6000_savres_strategy): New function.
9412         (rs6000_emit_prologue): Use rs6000_savres_strategy.  Save GPRs
9413         out-of-line if appropriate.
9414         * config/rs6000/sysv4.h (FP_SAVE_INLINE): Save FPRs out-of-line
9415         if we are optimizing for size.
9416         (GP_SAVE_INLINE): Define.
9417         (SAVE_FP_SUFFIX, RESTORE_FP_SUFFIX): Only use _l on 64-bit targets.
9418         * config/rs6000/darwin.h (GP_SAVE_INLINE): Define.
9419         * config/rs6000/aix.h (GP_SAVE_INLINE): Define.
9420         * config/rs6000/rs6000.md (*save_gpregs_<mode>): New insn.
9421         (*save_fpregs_<mode>): Add use of r11.
9422         (*restore_gpregs_<mode>): New insn.
9423         (*return_and_restore_gpregs_<mode>): New insn.
9424         (*return_and_restore_fpregs_<mode>): Adjust to clobber LR and
9425         use r11.
9426         * config/rs6000/spe.md (*save_gpregs_spe): New insn.
9427         (*restore_gpregs_spe): New insn.
9428         (*return_and_restore_gpregs_spe): New insn.
9429         * config/rs6000/predicates.md (save_world_operation): Fix check.
9430
9431 2008-06-26  Steven Bosscher  <steven@gcc.gnu.org>
9432
9433         * tree-into-ssa (insert_phi_nodes_for): 'var' must be a DECL at
9434         this point, so assert that.
9435
9436 2008-06-26  Steven Bosscher  <steven@gcc.gnu.org>
9437
9438         * cfganal.c: Include vec.h and vecprim.h.
9439         (compute_idf): Import from...
9440         * tree-into-ssa (compute_idf): ...here.
9441         * basic-block.h (compute_idf): Export.
9442
9443 2008-06-26  Joseph Myers  <joseph@codesourcery.com>
9444
9445         * c-decl.c (merge_decls): Use !current_function_decl to check for
9446         extern declaration of C99 inline function being at file scope.
9447
9448 2008-06-25  John David Anglin  <dave.anglin@gcc-cnrc.gc.ca>
9449
9450         * config.gcc (hppa[12]*-*-hpux10*): Don't use fixproto.
9451
9452 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9453
9454         * alias.c (record_alias_subset, init_alias_analysis): Fix
9455         -Wc++-compat and/or -Wcast-qual warnings.
9456         * attribs.c (lookup_attribute_spec): Likewise.
9457         * bb-reorder.c (find_traces, rotate_loop, find_traces_1_round,
9458         copy_bb, connect_traces,
9459         find_rarely_executed_basic_blocks_and_cr): Likewise.
9460         * bt-load.c (find_btr_def_group, add_btr_def, new_btr_user,
9461         note_btr_set, migrate_btr_defs): Likewise.
9462         * builtins.c (result_vector, expand_builtin_memcpy,
9463         expand_builtin_mempcpy_args, expand_builtin_strncpy,
9464         builtin_memset_read_str, expand_builtin_printf,
9465         fold_builtin_memchr, rewrite_call_expr, fold_builtin_printf):
9466         Likewise.
9467         * caller-save.c (mark_set_regs): Likewise.
9468         * calls.c (expand_call, emit_library_call_value_1): Likewise.
9469         * cgraph.c (cgraph_edge): Likewise.
9470         * combine.c (likely_spilled_retval_1): Likewise.
9471         * coverage.c (htab_counts_entry_hash, htab_counts_entry_eq,
9472         htab_counts_entry_del, get_coverage_counts): Likewise.
9473         * cselib.c (new_elt_list, new_elt_loc_list, entry_and_rtx_equal_p,
9474         new_cselib_val): Likewise.
9475         * dbgcnt.c (dbg_cnt_process_opt): Likewise.
9476         * dbxout.c (dbxout_init, dbxout_type, output_used_types_helper):
9477         Likewise.
9478         * df-core.c (df_compact_blocks): Likewise.
9479         * df-problems.c (df_grow_bb_info, df_chain_create): Likewise.
9480         * df-scan.c (df_grow_reg_info, df_ref_create,
9481         df_insn_create_insn_record, df_insn_rescan, df_notes_rescan,
9482         df_ref_compare, df_ref_create_structure, df_bb_refs_record,
9483         df_record_entry_block_defs, df_record_exit_block_uses,
9484         df_bb_verify): Likewise.
9485         * df.h (DF_REF_EXTRACT_WIDTH_CONST, DF_REF_EXTRACT_OFFSET_CONST,
9486         DF_REF_EXTRACT_MODE_CONST): New.
9487         * dominance.c (get_immediate_dominator, get_dominated_by,
9488         nearest_common_dominator, root_of_dom_tree,
9489         iterate_fix_dominators, first_dom_son, next_dom_son): Fix
9490         -Wc++-compat and/or -Wcast-qual warnings.
9491         * dse.c (clear_alias_set_lookup, get_group_info, gen_rtx_MEM,
9492         record_store, replace_read, check_mem_read_rtx, scan_insn,
9493         dse_step1, dse_record_singleton_alias_set): Likewise.
9494         * dwarf2asm.c (dw2_force_const_mem): Likewise.
9495
9496 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9497
9498         * dwarf2out.c (new_cfi, queue_reg_save, dwarf2out_begin_prologue,
9499         dwarf2out_frame_init, new_loc_descr, new_die, lookup_decl_die,
9500         lookup_decl_loc, add_var_loc_to_decl, compute_section_prefix,
9501         assign_symbol_names, htab_cu_hash, htab_cu_eq, htab_cu_del,
9502         build_abbrev_table, new_loc_list, output_comp_unit, add_arange,
9503         add_ranges_num, add_ranges_by_labels, file_info_cmp,
9504         file_name_acquire, output_file_names, add_const_value_attribute,
9505         premark_used_types_helper, file_table_eq, file_table_hash,
9506         lookup_filename, dwarf2out_var_location, dwarf2out_source_line,
9507         dwarf2out_init, file_table_relative_p): Fix -Wc++-compat and/or
9508         -Wcast-qual warnings.
9509         * ebitmap.c (ebitmap_array_grow, ebitmap_array_init,
9510         ebitmap_alloc, ebitmap_ior, ebitmap_and_compl): Likewise.
9511         * emit-rtl.c (get_mem_attrs, get_reg_attrs, gen_rtvec,
9512         gen_reg_rtx, start_sequence, init_emit): Likewise.
9513         * et-forest.c (et_new_occ, et_new_tree): Likewise.
9514         * except.c (init_eh_for_function, gen_eh_region,
9515         remove_unreachable_regions, add_ehl_entry, duplicate_eh_regions_1,
9516         arh_to_landing_pad, arh_to_label, add_action_record,
9517         add_call_site, switch_to_exception_section): Likewise.
9518         * expmed.c (synth_mult): Likewise.
9519         * expr.c (gen_group_rtx, emit_group_load, emit_group_store,
9520         store_expr): Likewise.
9521         * final.c (shorten_branches, final_scan_insn, debug_queue_symbol):
9522         Likewise.
9523         * function.c (assign_stack_temp_for_type,
9524         allocate_struct_function, match_asm_constraints_1): Likewise.
9525         * gcov-io.c (gcov_allocate): Likewise.
9526         * gcse.c (GNEW, GCNEW, GNEWVEC, GCNEWVEC, GRESIZEVEC, GNEWVAR,
9527         GCNEWVAR, GRESIZEVAR, GOBNEW, GOBNEWVAR): New.
9528         (gcse_main, alloc_gcse_mem, alloc_gcse_mem, alloc_reg_set_mem,
9529         record_one_set, insert_expr_in_table, insert_set_in_table,
9530         dump_hash_table, compute_hash_table_work, alloc_hash_table,
9531         pre_ldst_expr_hash, pre_ldst_expr_eq, find_rtx_in_ldst,
9532         reg_set_info, reg_clear_last_set): Fix -Wc++-compat and/or
9533         -Wcast-qual warnings.
9534
9535 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9536
9537         * cse.c (approx_reg_cost_1, cse_insn): Fix -Wc++-compat and/or
9538         -Wcast-qual warnings.
9539         * gcc.c (process_command): Likewise.
9540         * genattrtab.c (oballoc): Use XOBNEW.
9541         (oballocvec): Define.
9542         (attr_hash_add_rtx, attr_hash_add_string, attr_string,
9543         get_attr_value, fill_attr, make_length_attrs, gen_attr, gen_insn,
9544         gen_delay, find_attr, gen_insn_reserv, gen_bypass_1): Fix
9545         -Wc++-compat and/or -Wcast-qual warnings.
9546         * genautomata.c (XCREATENODE, XCREATENODEVEC, XCREATENODEVAR,
9547         XCOPYNODE, XCOPYNODEVEC, XCOPYNODEVAR): New.
9548         (gen_cpu_unit, gen_query_cpu_unit, gen_bypass, gen_excl_set,
9549         gen_presence_absence_set, gen_automaton, gen_regexp_el,
9550         gen_regexp_repeat, gen_regexp_allof, gen_regexp_oneof,
9551         gen_regexp_sequence, gen_reserv, gen_insn_reserv, process_excls,
9552         add_excls, process_presence_absence_names,
9553         process_presence_absence_patterns, add_presence_absence,
9554         process_regexp, add_advance_cycle_insn_decl, get_free_alt_state,
9555         get_free_state, add_arc, get_free_automata_list_el,
9556         form_reserv_sets_list, copy_insn_regexp, transform_1, transform_2,
9557         transform_3, cache_presence, create_ainsns, create_automata,
9558         create_state_ainsn_table, dfa_insn_code_enlarge,
9559         output_trans_func, output_min_issue_delay_func,
9560         output_dead_lock_func, output_reset_func,
9561         output_get_cpu_unit_code_func, output_dfa_start_func,
9562         expand_automata): Likewise.
9563         * genextract.c (gen_insn): Likewise.
9564         * gengtype-lex.l: Likewise.
9565         * gengtype.c (read_input_list, adjust_field_type,
9566         process_gc_options): Likewise.
9567         * genoutput.c (note_constraint): Likewise.
9568         * genpreds.c (mangle, add_constraint): Likewise.
9569         * genrecog.c (process_define_predicate, new_decision,
9570         add_to_sequence): Likewise.
9571         * gensupport.c (record_insn_name): Likewise.
9572
9573 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9574
9575         * config/i386/driver-i386.c (detect_caches_amd,
9576         detect_caches_intel, host_detect_local_cpu): Fix -Wc++-compat
9577         and/or -Wcast-qual warnings.
9578         *ggc-common.c (ggc_mark_roots, gt_pch_note_object,
9579         gt_pch_note_reorder, relocate_ptrs, write_pch_globals,
9580         gt_pch_save): Likewise.
9581         * ggc-page.c (push_depth, push_by_depth, alloc_anon, alloc_page,
9582         gt_ggc_m_S, clear_marks, ggc_pch_read): Likewise.
9583         * global.c (compute_regsets): Likewise.
9584         * graph.c (print_rtl_graph_with_bb, clean_graph_dump_file,
9585         finish_graph_dump_file): Likewise.
9586         * haifa-sched.c (schedule_block, extend_h_i_d, extend_ready,
9587         unlink_bb_notes): Likewise.
9588         * integrate.c (get_hard_reg_initial_val): Likewise.
9589         * ipa-prop.c (ipa_push_func_to_list): Likewise.
9590         * ipa-struct-reorg.c (gen_var_name, gen_cluster_name): Likewise.
9591         * local-alloc.c (update_equiv_regs): Likewise.
9592         * loop-invariant.c (check_invariant_table_size,
9593         hash_invariant_expr, eq_invariant_expr, find_or_insert_inv):
9594         Likewise.
9595         * loop-iv.c (check_iv_ref_table_size, analyzed_for_bivness_p,
9596         altered_reg_used, mark_altered): Likewise.
9597         * loop-unroll.c (si_info_eq, ve_info_eq, allocate_basic_variable,
9598         insert_var_expansion_initialization,
9599         combine_var_copies_in_loop_exit, apply_opt_in_copies,
9600         release_var_copies): Likewise.
9601         * matrix-reorg.c (mat_acc_phi_hash, mat_acc_phi_eq, mtt_info_eq,
9602         analyze_matrix_decl, add_allocation_site, analyze_transpose,
9603         analyze_accesses_for_phi_node, check_var_notmodified_p,
9604         check_allocation_function, find_sites_in_func,
9605         record_all_accesses_in_func, transform_access_sites,
9606         transform_allocation_sites): Likewise.
9607         * omp-low.c (new_omp_region, create_omp_child_function_name,
9608         check_omp_nesting_restrictions, check_combined_parallel,
9609         lower_omp_2, diagnose_sb_1, diagnose_sb_2): Likewise.
9610         * optabs.c (no_conflict_move_test, gen_libfunc, gen_fp_libfunc,
9611         gen_intv_fp_libfunc, gen_interclass_conv_libfunc,
9612         gen_intraclass_conv_libfunc, set_optab_libfunc, set_conv_libfunc):
9613         Likewise.
9614         * opts-common.c (prune_options): Likewise.
9615         * opts.c (add_input_filename, print_filtered_help,
9616         get_option_state): Likewise.
9617         * params.c (add_params): Likewise.
9618         * passes.c (set_pass_for_id, next_pass_1,
9619         do_per_function_toporder, pass_fini_dump_file): Likewise.
9620         * postreload.c (reload_cse_simplify_operands): Likewise.
9621         * predict.c (tree_predicted_by_p, tree_predict_edge,
9622         clear_bb_predictions, combine_predictions_for_bb): Likewise.
9623
9624 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9625
9626         * ra.h (add_neighbor): Fix -Wc++-compat and/or -Wcast-qual
9627         warnings.
9628         * recog.c (check_asm_operands, validate_change_1): Likewise.
9629         * reg-stack.c (check_asm_stack_operands, subst_asm_stack_regs,
9630         subst_asm_stack_regs): Likewise.
9631         * regclass.c (regclass, som_hash, som_eq, record_subregs_of_mode,
9632         cannot_change_mode_set_regs, invalid_mode_change_p): Likewise.
9633         * regmove.c (reg_is_remote_constant_p): Likewise.
9634         * regrename.c (regrename_optimize, scan_rtx_reg,
9635         kill_clobbered_value, kill_set_value, kill_autoinc_value):
9636         Likewise.
9637         * regstat.c (regstat_init_n_sets_and_refs, regstat_compute_ri,
9638         regstat_compute_calls_crossed): Likewise.
9639         * reload1.c (init_reload, new_insn_chain,
9640         has_nonexceptional_receiver, reload, copy_reloads,
9641         calculate_needs_all_insns, init_elim_table): Likewise.
9642         * rtl-factoring.c (compute_rtx_cost, fill_hash_bucket): Likewise.
9643         * rtl.c (shallow_copy_rtx_stat): Likewise.
9644         * rtlanal.c (parms_set): Likewise.
9645         * sbitmap.c (sbitmap_alloc, sbitmap_alloc_with_popcount,
9646         sbitmap_resize, sbitmap_vector_alloc): Likewise.
9647         * sched-ebb.c (earliest_block_with_similiar_load,
9648         add_deps_for_risky_insns): Likewise.
9649         * sched-rgn.c (find_rgns, gather_region_statistics, extend_rgns,
9650         schedule_region): Likewise.
9651         * see.c (eq_descriptor_pre_extension,
9652         hash_descriptor_pre_extension, hash_del_pre_extension,
9653         eq_descriptor_properties, hash_descriptor_properties,
9654         hash_del_properties, see_seek_pre_extension_expr,
9655         see_initialize_data_structures, see_print_register_properties,
9656         see_print_pre_extension_expr, see_delete_merged_def_extension,
9657         see_delete_unmerged_def_extension, see_emit_use_extension,
9658         see_pre_delete_extension, see_map_extension, see_commit_changes,
9659         see_analyze_merged_def_local_prop,
9660         see_analyze_merged_def_local_prop,
9661         see_analyze_unmerged_def_local_prop, see_analyze_use_local_prop,
9662         see_set_prop_merged_def, see_set_prop_unmerged_def,
9663         see_set_prop_unmerged_use, see_print_one_extension,
9664         see_merge_one_use_extension, see_merge_one_def_extension,
9665         see_store_reference_and_extension, see_update_uses_relevancy,
9666         see_update_defs_relevancy): Likewise.
9667         * statistics.c (hash_statistics_hash, hash_statistics_eq,
9668         hash_statistics_free, curr_statistics_hash): Likewise.
9669         * stmt.c (parse_output_constraint, decl_overlaps_hard_reg_set_p,
9670         expand_asm_operands, expand_return, case_bit_test_cmp,
9671         expand_case): Likewise.
9672         * stor-layout.c (start_record_layout): Likewise.
9673         * stringpool.c (ggc_alloc_string, gt_pch_n_S,
9674         gt_pch_save_stringpool): Likewise.
9675         * tree-data-ref.c (hash_stmt_vertex_info,
9676         have_similar_memory_accesses_1, ref_base_address_1): Likewise.
9677         * tree-ssa-phiopt.c (name_to_bb_hash): Likewise.
9678
9679 2008-06-25  Uros Bizjak  <ubizjak@gmail.com>
9680
9681         PR target/36627
9682         * config/i386/i386.md : Change constraints of HImode and QImode
9683         immediate operands from "i" to "n".  Change SImode "ni" constraint to
9684         "i" and SImode "rmi" constraint to "g".  Remove all constraints
9685         from const0_operand and const1_operand predicated operands.
9686         (i): Change QImode and HImode attribute from "i" to "n".
9687         (*subqi_2): Change HImode operands to QImode.
9688         (*subqi_3): Ditto.
9689
9690 2008-06-25  Olivier Hainque  <hainque@adacore.com>
9691
9692         * Makefile.in (GTFILES_H): Use | instead of ; as separator in
9693         sed substitutions.
9694
9695 2008-06-25  Richard Guenther  <rguenther@suse.de>
9696
9697         * tree-ssa-structalias.c (fieldoff_compare): Make sure to
9698         not overflow the result type.
9699
9700 2008-06-25  Richard Guenther  <rguenther@suse.de>
9701
9702         * tree-vn.c (vn_add): Handle TRUTH_*_EXPR.
9703         (vn_lookup): Likewise.
9704
9705 2008-06-25  Richard Guenther  <rguenther@suse.de>
9706
9707         PR tree-optimization/35518
9708         * fold-const.c (fold_ternary): Strip trivial BIT_FIELD_REFs.
9709         * tree-sra.c (instantiate_element): Use fold_build3 to build
9710         BIT_FIELD_REFs.
9711         (try_instantiate_multiple_fields): Likewise.
9712
9713 2008-06-24  Andrew Pinski  <andrew_pinski@playstation.sony.com>
9714
9715         * config/rs6000/rs6000.md: Change all string instruction's clobber to
9716         be early clobbers.
9717
9718 2008-06-24  Andrew Pinski  <andrew_pinski@playstation.sony.com>
9719
9720         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Set
9721         use_backchain_to_restore_sp to true
9722         if the offset of the link register save area would go over the 32k - 1
9723         offset limit of the load
9724         instructions.
9725
9726 2008-06-25  Hans-Peter Nilsson  <hp@axis.com>
9727
9728         * doc/invoke.texi (Optimize Options) <fstrict-aliasing>: Add
9729         anchor for the type-punning blurb.  Cross-reference "Structures
9730         unions enumerations and bit-fields implementation".  Provide a
9731         cast-through-pointer example.  Make final sentence self-contained.
9732         * doc/implement-c.texi (Structures unions enumerations and
9733         bit-fields implementation): Cross-reference the type-punning blurb
9734         in the -fstrict-aliasing documentation.
9735
9736 2008-06-24  Andrew Pinski  <andrew_pinski@playstation.sony.com>
9737
9738         PR middle-end/36594
9739         * builtins.c (expand_builtin_nonlocal_goto): Stabilize the address of
9740         the memory instead of the memory itself for the save area.
9741
9742 2008-06-24  Olivier Hainque  <hainque@adacore.com>
9743             Nicolas Roche  <roche@adacore.com>
9744
9745         * gengtype.c (srcdir_len): size_t instead of int.
9746         (get_file_realbasename): New function.  For F a filename, the real
9747         basename of F, with all the path components stripped.
9748         (get_file_srcdir_relative_path): New function.  For F a filename, the
9749         relative path to F from $(srcdir).
9750         (get_file_basename): Rewrite using get_file_srcdir_relative_path and
9751         get_file_realbasename.  Adjust the head comment.
9752         (get_prefix_langdir_index): New function. For F a filename, return the
9753         lang_dir_names[] relative index of the language directory that is
9754         a prefix in F.
9755         (get_file_langdir): For F a filename, return the name of the language
9756         directory where F is located.
9757         (get_file_gtfilename): New function. The gt- output file name for an
9758         input filename F.
9759         (get_output_file_with_visibility): Replace in-line computations with
9760         uses of get_file_gtfilename and get_prefix_langdir_index.
9761         * Makefile.in (GTFILES_H): Adjust to match what gengtype generates.
9762
9763 2008-06-24  Jakub Jelinek  <jakub@redhat.com>
9764
9765         PR tree-optimization/36504
9766         * tree-ssa-loop-prefetch.c (gather_memory_references_ref): Skip
9767         references without base address.
9768
9769 2008-06-23  Uros Bizjak  <ubizjak@gmail.com>
9770
9771         PR middle-end/36584
9772         * calls.c (expand_call): Increase alignment for recursive functions.
9773
9774 2008-06-23  Anatoly Sokolov  <aesok@post.ru>
9775
9776         * config/avr/avr.c (avr_function_value): Add new 'outgoing' argument.
9777         (TARGET_FUNCTION_VALUE): New define.
9778         * config/avr/avr-protos.h (avr_function_value): Remove declaration.
9779         * config/avr/avr.h (FUNCTION_VALUE): Remove.
9780
9781 2008-06-23  Uros Bizjak  <ubizjak@gmail.com>
9782
9783         * config/i386/i386.md (fmodxf3): Change sequence of move instructions.
9784         (fmod<mode>3): Ditto.
9785         (remainderxf3): Ditto.
9786         (remainder<mode>3): Ditto.
9787
9788 2008-06-23  Jakub Jelinek  <jakub@redhat.com>
9789
9790         PR target/36533
9791         * emit-rtl.c (set_reg_attrs_from_value): Do nothing if
9792         REG is a hard register.
9793
9794         PR tree-optimization/36508
9795         * tree-ssa-pre.c (compute_antic): Allow num_iterations up to
9796         499, don't check it at all in release compilers.
9797
9798 2008-06-23  Uros Bizjak  <ubizjak@gmail.com>
9799
9800         * config/i386/i386.md (*fop_<mode>_1_i387): Use SSE_FLOAT_MODE_P
9801         together with SSE_TARGET_MATH to disable insn pattern.
9802         (*fop_<MODEF:mode>_2_i387): Ditto.
9803         (*fop_<MODEF:mode>_3_i387): Ditto.
9804
9805 2008-06-22  Andy Hutchinson  <hutchinsonandy@aim.com>
9806
9807         * config/avr/avr.h (SUPPORTS_INIT_PRIORITY): Define.
9808
9809 2008-06-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
9810
9811         PR middle-end/34906
9812         * gimplify.c (gimplify_asm_expr): Check the return code of
9813         parse_output_constraint call, set function return and is_inout
9814         value if it failed.
9815
9816 2008-06-22  Ian Lance Taylor  <iant@google.com>
9817
9818         * c-lex.c (narrowest_unsigned_type): Change itk to int.
9819         (narrowest_signed_type): Likewise.
9820         * c-typeck.c (c_common_type): Change local variable mclass to enum
9821         mode_class, twice.
9822         (parser_build_binary_op): Compare the TREE_CODE_CLASS with
9823         tcc_comparison, not the tree code itself.
9824         * c-common.c (def_fn_type): Pass int, not an enum, to va_arg.
9825         (c_expand_expr): Cast modifier to enum expand_modifier.
9826         * c-common.h (C_RID_CODE): Add casts.
9827         (C_SET_RID_CODE): Define.
9828         * c-parser.c (c_parse_init): Use C_SET_RID_CODE.
9829         (c_lex_one_token): Add cast to avoid warning.
9830         (c_parser_objc_type_name): Rename local typename to type_name.
9831         (check_no_duplicate_clause): Change code parameter to enum
9832         omp_clause_code.
9833         (c_parser_omp_var_list_parens): Change kind parameter to enum
9834         omp_clause_code.
9835         (c_parser_omp_flush): Pass OMP_CLAUSE_ERROR, not 0, to
9836         c_parser_omp_list_var_parens.
9837         (c_parser_omp_threadprivate): Likewise.
9838         * cp/lex.c (init_reswords): Use C_SET_RID_CODE.
9839         * cp/parser.c (cp_lexer_get_preprocessor_token): Likewise.
9840         * c-format.c (NO_FMT): Define.
9841         (printf_length_specs): Use NO_FMT.
9842         (asm_fprintf_length_specs): Likewise.
9843         (gcc_diag_length_specs): Likewise.
9844         (scanf_length_specs): Likewise.
9845         (strfmon_length_specs): Likewise.
9846         (gcc_gfc_length_specs): Likewise.
9847         (printf_flag_specs): Change 0 to STD_C89.
9848         (asm_fprintf_flag_specs): Likewise.
9849         (gcc_diag_flag_specs): Likewise.
9850         (gcc_cxxdiag_flag_specs): Likewise.
9851         (scanf_flag_specs): Likewise.
9852         (strftime_flag_specs): Likewise.
9853         (strfmon_flag_specs): Likewise.
9854         (print_char_table): Likewise.
9855         (asm_fprintf_char_table): Likewise.
9856         (gcc_diag_char_table): Likewise.
9857         (gcc_tdiag_char_table): Likewise.
9858         (gcc_cdiag_char_table): Likewise.
9859         (gcc_cxxdiag_char_table): Likewise.
9860         (gcc_gfc_char_table): Likewise.
9861         (scan_char_table): Likewise.
9862         (time_char_table): Likewis.
9863         (monetary_char_table): Likewise.
9864         * c-format.h (BADLEN): Likewise.
9865
9866 2008-06-21  Ian Lance Taylor  <iant@google.com>
9867
9868         * tree.h (enum tree_code): Include all-tree.def, not tree.def.
9869         Define END_OF_BASE_TREE_CODES around inclusion.
9870         * tree.c (tree_code_type): New global array.
9871         (tree_code_length, tree_code_name): Likewise.
9872         * Makefile.in (TREE_H): Add all-tree.def, c-common.def, and
9873         $(lang_tree_files).
9874         (all-tree.def, s-alltree): New targets.
9875         (gencheck.h, s-gencheck): Remove.
9876         (tree.o): Depend upon all-tree.def.
9877         (build/gencheck.o): Remove gencheck.h dependency.
9878         (mostlyclean): Don't remove gencheck.h.
9879         * c-common.h (enum c_tree_code): Remove.
9880         * c-lang.c (tree_code_type): Remove.
9881         (tree_code_length, tree_code_name): Remove.
9882         * gencheck.c (tree_codes): Include all-tree.def, rather than
9883         tree.def, c-common.def, and gencheck.h.  Undefined DEFTREECODE
9884         after it is used.
9885         * tree-browser.c (tb_tree_codes): Include all-tree.def, rather
9886         than tree.def.
9887         * cp/cp-tree.h (enum cplus_tree_code): Remove.
9888         (operator_name_info): Size to MAX_TREE_CODES.
9889         (assignment_operator_name_info): Likewise.
9890         * cp/cp-lang.c (tree_code_type): Remove.
9891         (tree_code_length, tree_code_name): Remove.
9892         * cp/lex.c (operator_name_info): Size to MAX_TREE_CODES.
9893         (assignment_operator_name_info): Likewise.
9894         * cp/decl.c (grok_op_properties): Change LAST_CPLUS_TREE_CODE to
9895         MAX_TREE_CODES.
9896         * cp/mangle.c (write_expression): Likewise.
9897         * cp/Make-lang.in (CXX_TREE_H): Remove cp/cp-tree.def.
9898         * fortran/f95-lang.c (tree_code_type): Remove.
9899         (tree_code_length, tree_code_name): Remove.
9900         * java/java-tree.h (enum java_tree_code): Remove.
9901         * java/lang.c (tree_code_type): Remove.
9902         (tree_code_length, tree_code_name): Remove.
9903         * java/Make-lang.in (JAVA_TREE_H): Remove java/java-tree.def.
9904         * objc/objc-act.h (enum objc_tree_code): Remove.
9905         * objc/objc-lang.c (tree_code_type): Remove.
9906         (tree_code_length, tree_code_name): Remove.
9907         * objcp/objcp-lang.c (tree_code_type): Remove.
9908         (tree_code_length, tree_code_name): Remove.
9909         * ada/ada-tree.h (enum gnat_tree_code): Remove.
9910         * ada/Make-lang.in (ADA_TREE_H): Remove ada/ada-tre.def.
9911         * ada/misc.c (tree_code_type): Remove.
9912         (tree_code_length, tree_code_name): Remove.
9913
9914 2008-06-21  Bernhard Fischer  <aldot@gcc.gnu.org>
9915
9916         * tree-ssa-pre.c (fini_antic): Bitmap_sets have to be freed before
9917         the grand_bitmap_obstack.
9918
9919 2008-06-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9920
9921         * ggc.h (GGC_RESIZEVAR): New, reorder macros.
9922         * tracer.c (tail_duplicate): Fix for -Wc++-compat.
9923         * tree-affine.c (aff_combination_expand, free_name_expansion): Likewise.
9924         * tree-cfg.c (replace_by_duplicate_decl, replace_ssa_name,
9925         move_stmt_r, new_label_mapper): Likewise.
9926         * tree-complex.c (cvc_lookup): Likewise.
9927         * tree-dfa.c (create_function_ann): Likewise.
9928         * tree-dump.c (dump_register): Likewise.
9929         * tree-if-conv.c (tree_if_conversion, add_to_predicate_list,
9930         find_phi_replacement_condition): Likewise.
9931         * tree-inline.c (copy_phis_for_bb, estimate_num_insns_1,
9932         tree_function_versioning): Likewise.
9933         * tree-into-ssa.c (cmp_dfsnum): Likewise.
9934         * tree-iterator.c (tsi_link_before, tsi_link_after): Likewise.
9935         * tree-nested.c (lookup_field_for_decl, lookup_tramp_for_decl,
9936         get_nonlocal_debug_decl, convert_nonlocal_reference,
9937         convert_nonlocal_omp_clauses, get_local_debug_decl,
9938         convert_local_reference, convert_local_omp_clauses,
9939         convert_nl_goto_reference, convert_nl_goto_receiver,
9940         convert_tramp_reference, convert_call_expr): Likewise.
9941         * tree-outof-ssa.c (contains_tree_r): Likewise.
9942         * tree-parloops.c (reduction_phi, initialize_reductions,
9943         eliminate_local_variables_1, add_field_for_reduction,
9944         add_field_for_name, create_phi_for_local_result,
9945         create_call_for_reduction_1, create_loads_for_reductions,
9946         create_stores_for_reduction, create_loads_and_stores_for_name):
9947         Likewise.
9948         * tree-phinodes.c (allocate_phi_node): Likewise.
9949         * tree-predcom.c (order_drefs, execute_pred_commoning_cbck): Likewise.
9950         * tree-sra.c (sra_elt_hash, sra_elt_eq, lookup_element): Likewise.
9951         * tree-ssa-alias.c (get_mem_sym_stats_for): Likewise.
9952         * tree-ssa-coalesce.c (compare_pairs): Likewise.
9953         * tree-ssa-loop-im.c (mem_ref_in_stmt, memref_hash, memref_eq,
9954         memref_free, gather_mem_refs_stmt, vtoe_hash, vtoe_eq, vtoe_free,
9955         record_vop_access, get_vop_accesses, get_vop_stores): Likewise.
9956         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Likewise.
9957         * tree-ssa-sccvn.c (VN_INFO_GET, free_phi, free_reference,
9958         vn_nary_op_insert): Likewise.
9959         * tree-ssa.c (redirect_edge_var_map_add,
9960         redirect_edge_var_map_clear, redirect_edge_var_map_dup): Likewise.
9961         * tree-vectorizer.c (vectorize_loops): Likewise.
9962         * tree.c (make_node_stat, copy_node_stat, build_int_cst_wide,
9963         build_fixed, build_real, make_tree_binfo_stat, make_tree_vec_stat,
9964         tree_cons_stat, build1_stat, build_variant_type_copy,
9965         decl_init_priority_lookup, decl_fini_priority_lookup,
9966         decl_priority_info, decl_restrict_base_lookup,
9967         decl_restrict_base_insert, decl_debug_expr_lookup,
9968         decl_debug_expr_insert, decl_value_expr_lookup,
9969         decl_value_expr_insert, type_hash_eq, type_hash_lookup,
9970         type_hash_add, get_file_function_name, tree_check_failed,
9971         tree_not_check_failed, tree_range_check_failed,
9972         omp_clause_range_check_failed, build_omp_clause,
9973         build_vl_exp_stat): Likewise.
9974         * value-prof.c (gimple_histogram_value,
9975         gimple_duplicate_stmt_histograms): Likewise.
9976         * var-tracking.c (attrs_list_insert, attrs_list_copy,
9977         unshare_variable, variable_union_info_cmp_pos, variable_union,
9978         dataflow_set_different_1, dataflow_set_different_2,
9979         vt_find_locations, variable_was_changed, set_variable_part,
9980         emit_notes_for_differences_1, emit_notes_for_differences_2): Likewise.
9981         * varasm.c (prefix_name, emutls_decl, section_entry_eq,
9982         section_entry_hash, object_block_entry_eq,
9983         object_block_entry_hash, create_block_symbol,
9984         initialize_cold_section_name, default_function_rodata_section,
9985         strip_reg_name, set_user_assembler_name, const_desc_eq,
9986         build_constant_desc, output_constant_def, lookup_constant_def,
9987         const_desc_rtx_hash, const_desc_rtx_eq, const_rtx_hash_1,
9988         create_constant_pool, force_const_mem, compute_reloc_for_rtx_1,
9989         default_internal_label): Likewise.
9990         * varray.c (varray_init, varray_grow): Likewise.
9991         * vec.c (vec_gc_o_reserve_1, vec_heap_o_reserve_1): Likewise.
9992
9993 2008-06-20  Uros Bizjak  <ubizjak@gmail.com>
9994
9995         * config/i386/i386.md (*jcc_fused_1): Handle all valid compare
9996         operators for "test" insn.  Macroize insn using SWI mode macro.
9997         (*jcc_fused_2): Ditto.
9998         (*jcc_fused_3): Macroize insn using SWI mode macro.
9999         (*jcc_fused_4): Ditto.
10000
10001 2008-06-20  Bernhard Fischer  <aldot@gcc.gnu.org>
10002
10003         * tree-ssa-pre.c: Fix typo in comment.
10004         (init_antic, fini_antic): Add explicit funtions for
10005         initializing and deinitializing ANTIC and AVAIL sets.
10006         (create_expression_by_pieces): Fix typo in comment.
10007         Remove redundant set of new_stuff and use NULL_TREE instead of NULL.
10008         (execute_pre): Eventually dump details about ANTIC_IN.
10009
10010 2008-06-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10011
10012         * collect2.c (main, add_to_list): Fix for -Wc++-compat.
10013         * gcc.c (translate_options, init_spec, store_arg, read_specs,
10014         add_to_obstack, file_at_path, find_a_file, execute,
10015         add_preprocessor_option, add_assembler_option, add_linker_option,
10016         process_command, insert_wrapper, do_option_spec, do_self_spec,
10017         spec_path, do_spec_1, is_directory, main, used_arg,
10018         getenv_spec_function): Likewise.
10019         * tlink.c (symbol_hash_lookup, file_hash_lookup,
10020         demangled_hash_lookup, symbol_push, file_push, frob_extension):
10021         Likewise.
10022
10023 2008-06-19  Kenneth Zadeck <zadeck@naturalbridge.com>
10024
10025         * doc/rtl.texi: Updated subreg section.
10026
10027 2008-06-19  Jakub Jelinek  <jakub@redhat.com>
10028
10029         PR c++/36523
10030         * cgraphunit.c (cgraph_process_new_functions): Don't clear
10031         node->needed and node->reachable.
10032         * cgraphbuild.c (record_reference): Handle OMP_PARALLEL and OMP_TASK.
10033         * omp-low.c (delete_omp_context): Call finalize_task_copyfn.
10034         (expand_task_call): Don't call expand_task_copyfn.
10035         (expand_task_copyfn): Renamed to...
10036         (finalize_task_copyfn): ... this.
10037
10038 2008-06-19  Jan Hubicka  <jh@suse.cz>
10039
10040         * builtins.c (expand_builtin_nonlocal_goto): Stabilize r_sp before
10041         clobbering framepointer.
10042
10043 2008-06-19  Jan Hubicka  <jh@suse.cz>
10044
10045         * tree-optimize.c (execute_early_local_optimizations): Set
10046         cgraph_state only at first invocation.
10047
10048 2008-06-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10049
10050         * system.h (-Wc++-compat): Activate as a warning, no an error.
10051
10052 2008-06-19  Uros Bizjak  <ubizjak@gmail.com>
10053
10054         * config/i386/i386.md (*jcc_fused_1): Use ASM_COMMENT_START
10055         instead of "#" in insn asm template.
10056         (*jcc_fused_2): Ditto.
10057
10058 2008-06-19  Uros Bizjak  <ubizjak@gmail.com>
10059
10060         * config/i386/i386.h (ix86_tune_indices)
10061         [X86_TUNE_FUSE_CMP_AND_BRANCH]: New.
10062         (TARGET_FUSE_CMP_AND_BRANCH): New define.
10063         * config/i386/i386.md (*jcc_fused_1): New insn pattern
10064         (*jcc_fused_2): Ditto.
10065         * config/i386/i386.c (ix86_tune_features): Add m_CORE2 to
10066         X86_TUNE_FUSE_CMP_AND_BRANCH targets.
10067         (print operand): Handle 'E' and 'e' code.
10068
10069 2008-06-19  Anatoly Sokolov  <aesok@post.ru>
10070
10071         * config/avr/avr.c (avr_mcu_t): Add attiny13a.
10072         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
10073         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
10074
10075 2008-06-19  Bernhard Fischer  <aldot@gcc.gnu.org>
10076
10077         * cgraphunit.c (cgraph_finalize_function): Remove redundant setting of
10078         node->decl.
10079         (cgraph_expand_function): Use local copy of decl.
10080         (cgraph_expand_all_functions): Remove redundant initialization of
10081         order_pos.
10082         (cgraph_optimize): Reword internal_error message.
10083
10084 2008-06-19  Chung-Lin Tang  <ctang@marvell.com>
10085
10086         * arm-protos.h (arm_return_in_memory): Remove public
10087         arm_return_in_memory() prototype.
10088         * arm.c (arm_return_in_memory): Add static prototype, add target
10089         hook macro, change definition and comments.
10090         * arm.h (TARGET_RETURN_IN_MEMORY): Remove.
10091
10092 2008-06-19  Ben Elliston  <bje@au.ibm.com>
10093
10094         * dfp.h, dfp.c, config/dfp-bit.h, config/dfp-bit.c, real.h,
10095         real.c: Remove references to IEEE 754R.
10096         * doc/install.texi (Configuration): IEEE 754R -> IEEE 754-2008.
10097         * doc/libgcc.texi (Decimal float library routines): Likewise.
10098
10099 2008-06-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10100
10101         * targhooks.h (struct gcc_target): New member unwind_word_mode.
10102         (default_unwind_word_mode): Add prototype.
10103         * targhooks.c (default_unwind_word_mode): New function.
10104         (default_eh_return_filter_mode): Return targetm.unwind_word_mode ()
10105         instead of word_mode.
10106         * target-def.h (TARGET_UNWIND_WORD_MODE): New macro.
10107         (TARGET_INITIALIZER): Use it.
10108
10109         * c-common.c (handle_mode_attribute): Support "unwind_word"
10110         mode attribute.
10111         * unwind-generic.h (_Unwind_Word, _Unwind_Sword): Use it.
10112
10113         * except.c (init_eh): Use targetm.unwind_word_mode () instead of
10114         word_mode to access SjLj_Function_Context member "data".
10115         (sjlj_emit_dispatch_table): Likewise.  Also, perform type
10116         conversion from targetm.eh_return_filter_mode () to
10117         targetm.unwind_word_mode () if they differ.
10118
10119         * builtin-types.def (BT_UNWINDWORD): New primitive type.
10120         (BT_FN_UNWINDWORD_PTR): New function type.
10121         (BT_FN_WORD_PTR): Remove.
10122         * builtins.def (BUILT_IN_EXTEND_POINTER): Use BT_FN_UNWINDWORD_PTR.
10123         * except.c (expand_builtin_extend_pointer): Convert pointer to
10124         targetm.unwind_word_mode () instead of word_mode.
10125
10126         * config/spu/spu-protos.h (spu_eh_return_filter_mode): Remove.
10127         * config/spu/spu.c (spu_eh_return_filter_mode): Remove.
10128         (spu_unwind_word_mode): New function.
10129         (TARGET_EH_RETURN_FILTER_MODE): Do not define.
10130         (TARGET_UNWIND_WORD_MODE): Define.
10131         * config/spu/t-spu-elf (TARGET_LIBGCC2_CFLAGS): Remove -D__word__=SI.
10132
10133 2008-06-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10134
10135         * config/spu/spu.c (reg_align): Remove.
10136         (regno_aligned_for_load): Also accept ARG_POINTER_REGNUM.
10137         (spu_split_load): Use regno_aligned_for_load instead of reg_align.
10138         (spu_split_store): Likewise.
10139
10140 2008-06-18  Bernhard Fischer  <aldot@gcc.gnu.org>
10141
10142         * gcc/tree-vn.c: Fix typo in comment.
10143
10144 2008-06-18  Jan Hubicka  <jh@suse.cz>
10145
10146         * cgraphunit.c (cgraph_optimize): Output debug info when doing
10147         toplevel reorder too.
10148
10149 2008-06-18  Jan Hubicka  <jh@suse.cz>
10150
10151         * c-opts.c (c_common_post_options): PCH is not compatible with
10152         no-unit-at-a-time.
10153         * opts.c (handle_options): Enable unit-at-a-time at O0 along with
10154         -fno-toplevel-reorder by default now.
10155
10156 2008-06-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10157
10158         PR documentation/30739
10159         * doc/install.texi (Prerequisites): Document dependency on awk.
10160
10161 2008-06-18  Uros Bizjak  <ubizjak@gmail.com>
10162             Ian Lance Taylor  <iant@google.com>
10163
10164         PR rtl-optimization/35604
10165         * jump.c (redirect_exp_1): Skip the condition of an IF_THEN_ELSE. We
10166         only want to change jump destinations, not eventual label comparisons.
10167
10168 2008-06-16  Jan Hubicka  <jh@suse.cz>
10169
10170         * cgraphunit.c (cgraph_expand_pending_functions): Give up at
10171         syntax errors.
10172         (cgraph_analyze_function): Likewise.
10173
10174 2008-06-16  Jan Hubicka  <jh@suse.cz>
10175
10176         * cgraph.h (cgraph_mark_if_needed): New function.
10177         * cgraphunit.c (cgraph_mark_if_needed): New function.
10178         * c-decl.c (duplicate_decl): Use it.
10179
10180 2008-06-16  Jan Hubicka  <jh@suse.cz>
10181
10182         * cgraph.c (cgraph_add_new_function): When in expansion state, do
10183         lowering.
10184
10185 2008-06-16  Jan Hubicka  <jh@suse.cz>
10186
10187         * tree-outof-ssa.c (pass_out_of_ssa): Do not depend on PROP_alias.
10188
10189 2008-06-16  Daniel Jacobowitz  <dan@codesourcery.com>
10190             Kazu Hirata  <kazu@codesourcery.com>
10191             Maxim Kuvyrkov  <maxim@codesourcery.com
10192
10193         * config.gcc (mips64el-st-linux-gnu): Use mips/st.h and mips/t-st.
10194         * config.host: Use driver-native.o and mips/x-native for mips*-linux*.
10195         * config/mips/linux.h (host_detect_local_cpu): Declare, add to
10196         EXTRA_SPEC_FUNCTIONS.
10197         (MARCH_MTUNE_NATIVE_SPECS, BASE_DRIVER_SELF_SPECS): New macros.
10198         (DRIVER_SELF_SPECS): Adjust.
10199         * config/mips/linux64.h (DRIVER_SELF_SPECS): Update.
10200         * config/mips/st.h, config/mips/t-st: New.
10201         * config/mips/driver-native.c, config/mips/x-native: New.
10202         * doc/invoke.texi (MIPS): Document 'native' value for -march and
10203         -mtune options.
10204
10205 2008-06-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
10206
10207         * config/mips/mips.h (ISA_HAS_CONDMOVE): Slice ISA_HAS_FP_CONDMOVE
10208         from it.
10209         (ISA_HAS_FP_CONDMOVE): New macro.
10210         (ISA_HAS_FP_MADD4_MSUB4, ISA_HAS_FP_MADD3_MSUB3): New macros.
10211         (ISA_HAS_NMADD_NMSUB): Rename to ISA_HAS_NMADD4_NMSUB4.
10212         (ISA_HAS_NMADD3_NMSUB3): New macro.
10213         * config/mips/mips.c (mips_rtx_costs): Update.
10214         * config/mips/mips.md (MOVECC): Don't use FP conditional moves when
10215         compiling for ST Loongson 2E/2F.
10216         (madd<mode>): Rename to madd4<mode>.  Update.
10217         (madd3<mode>): New pattern.
10218         (msub<mode>): Rename to msub4<mode>.  Update.
10219         (msub3<mode>): New pattern.
10220         (nmadd<mode>): Rename to nmadd4<mode>.  Update.
10221         (nmadd3<mode>): New pattern.
10222         (nmadd<mode>_fastmath): Rename to nmadd4<mode>_fastmath.  Update.
10223         (nmadd3<mode>_fastmath): New pattern.
10224         (nmsub<mode>): Rename to nmsub4<mode>.  Update.
10225         (nmsub3<mode>): New pattern.
10226         (nmsub<mode>_fastmath): Rename to nmsub4<mode>_fastmath.  Update.
10227         (nmsub3<mode>_fastmath): New pattern.
10228         (mov<SCALARF:mode>_on_<MOVECC:mode>, mov<mode>cc): Update.
10229
10230 2008-06-18  Steven Bosscher  <steven@gcc.gnu.org>
10231
10232         * df.h (struct df_ref): Replace 'insn' field with 'insn_info' field.
10233         (DF_REF_INSN_INFO): New.
10234         (DF_REF_INSN, DF_REF_INSN_UID): Rewrite macros using DF_REF_INSN_INFO.
10235         (DF_REF_IS_ARTIFICIAL): Artificial refs are now identified as refs
10236         with a NULL DF_REF_INSN_INFO.
10237         (DF_INSN_INFO_GET, DF_INSN_INFO_SET): Renamed from DF_INSN_GET and
10238         DF_INSN_SET.
10239         (DF_INSN_INFO_LUID, DF_INSN_INFO_DEFS, DF_INSN_INFO_USES,
10240         DF_INSN_INFO_EQ_USES): New.
10241         (DF_INSN_LUID, DF_INSN_DEFS, DF_INSN_USES, DF_INSN_EQ_USES,
10242         DF_INSN_UID_LUID, DF_INSN_UID_DEFS, DF_INSN_UID_USES,
10243         DF_INSN_UID_EQ_USES): Rewrite using DF_INSN_INFO_* macros.
10244         * df-core.c: Update comment for above changes.
10245         (df_insn_debug_regno): Use DF_INSN_INFO_GET instead of INSN_UID and
10246         DF_INSN_UID_* macros.
10247         (df_ref_debug): Check for NULL DF_REF_INSN_INFO.
10248         * df-scan.c (df_ref_record): Take a df_insn_info instead of an
10249         insn rtx.  Update all callers.
10250         (df_def_record_1, df_defs_record, df_uses_record, df_get_call_refs,
10251         df_ref_create_structure, df_insn_refs_collect): Likewise.
10252         (df_ref_equal_p): Compare DF_REF_INSN_INFO pointers for the refs.
10253         * df-problems.c (df_chain_dump): Test for non-NULL DF_REF_INSN_INFO.
10254         (df_live_bb_local_compute): Retrieve DF_INSN_INFO, use DF_INSN_INFO_*
10255         macros to access the insn refs.
10256         (df_chain_top_dump, df_chain_bottom_dump, df_byte_lr_alloc): Likewise.
10257         * fwprop.c (use_killed_between): Use DF_REF_INSN accessor macro.
10258         (all_uses_available): Retrieve DF_INSN_INFO for def_insn, and use it
10259         for accessing the refs.
10260         (try_fwprop_subst): Likewise.
10261         * ddg.c (add_cross_iteration_register_deps): Use DF_REF_INSN macro.
10262         * web.c (union_defs): Retrieve DF_INSN_INFO for def_insn, and use it
10263         for accessing the refs.
10264         * loop-invariant.c (invariant_for_use): Use DF_REF_BB macro.
10265         (check_dependencies): Use DF_INSN_INFO_GET, use DF_INSN_INFO_* macros
10266         to look at the insn refs.
10267         (record_uses): Likewise.
10268         * dce.c (deletable_insn_p): Don't tolerate artificial DEFs in this
10269         function anymore.
10270         (mark_artificial_uses): Don't mark_insn for artificial refs.
10271         (mark_reg_rependencies): Likewise.
10272
10273         * doc/rtl.texi: Remove documentation of ADDRESSOF.
10274
10275 2008-06-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10276
10277         * configure: Regenerate.
10278
10279 2008-06-17  Eric B. Weddington  <eric.weddington@atmel.com>
10280
10281         * config/avr/avr.c (avr_mcu_t): Remove atmega32hvb.
10282         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
10283         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
10284
10285 2008-06-17  Eric B. Weddington  <eric.weddington@atmel.com>
10286
10287         * config/avr/avr.c (avr_mcu_t): Add attiny167.
10288         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
10289         * gcc/config/avr/t-avr (MULTILIB_MATCHES): Likewise.
10290
10291 2008-06-17  Eric B. Weddington  <eric.weddington@atmel.com>
10292
10293         * config/avr/avr.c (avr_mcu_t): Add atmega32u4.
10294         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
10295         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
10296
10297 2008-06-17  Bernhard Fischer  <aldot@gcc.gnu.org>
10298
10299         * tree-ssa-sccvn.c: Fix format of comments.
10300
10301 2008-06-17  Bernhard Fischer  <aldot@gcc.gnu.org>
10302
10303         * cgraph.c: Remove unneeded forward declarations of eq_node()
10304         and hash_node().
10305
10306 2008-06-17  Steven Bosscher  <steven@gcc.gnu.org>
10307
10308         * see.c (see_analyse_one_def): Do not look for REG_LIBCALL and
10309         REG_RETVAL notes.
10310         (see_update_relevancy): Likewise.
10311         * fwprop.c (try_fwprop_subst): Likewise.
10312         * rtlanal.c (noop_move_p): Likewise.
10313         * builtins.c (expand_buitlin_mathfn): Don't try to add REG_EQUAL
10314         notes to non-existing libcall blocks.
10315         * cse.c (cse_insn): Change prototype.  Don't update libcall notes.
10316         Remove orig_set.
10317         (cse_extended_basic_block): Don't track libcall and no-conflict notes.
10318         (dead_libcall_p): Remove.
10319         (delete_trivially_dead_insns): Don't use it.
10320         * web.c (union_defs): Remove comment about keeping nops.
10321         * gcse.c (hash_scan_insn): Don't take libcall pointers.
10322         (compute_hash_table_work): Don't track libcall notes.
10323         (do_local_cprop): Don't take libcall pointers.  Don't update
10324         libcall notes.
10325         (adjust_libcall_notes): Deleted.
10326         (local_cprop_pass): Remove stack for nested libcalls (which shouldn't
10327         ever have existed in the first place).
10328         (replace_store_insn): Don't try to remove libcall notes.
10329         * lower-subreg.c (move_libcall_note, move_retval_note): Deleted.
10330         (resolve_reg_notes): Don't call them.
10331         (resolve_simple_move): Likewise.
10332         (decompose_multiword_subregs): Remove block handling REG_RETVAL notes.
10333         Don't remove REG_RETVAL notes.
10334         * emit-rtl.c (try_split): Don't update libcall notes.
10335         (emit_copy_of_insn_after): Dito.
10336         * cselib.c (cselib_current_insn_in_libcall): Remove.
10337         (cselib_process_insn): Don't set/clear it.
10338         (new_elt_loc_list): Don't record it.
10339         (cselib_init): Don't initialize it.
10340         * cselib.c (struct elt_loc_list): Remove in_libcall field.
10341         * loop-invariant.c (find_invariant_insn): Don't look for libcall
10342         notes.
10343         * sched-deps.c (sched_analyze_insn): Don't group libcall blocks.
10344         (sched_analyze): Don't set up deps->libcall_block_tail_insn.
10345         (init_deps): Don't initialize it.
10346         * sched-int.h (struct deps): Rremove libcall_block_tail_insn field.
10347         * combine.c (delete_noop_moves): Don't update libcall notes.
10348         (can_combine_p): Remove now pointless #if 0 block.
10349         (try_combine): Remove another obsolete #if 0 block.
10350         (distribute_notes): Don't distribute libcall notes.
10351         * reg-notes.def (REG_LIBCALL, REG_RETVAL): Remove.
10352         * dce.c (libcall_dead_p): Remove.
10353         (delete_unmarked_insns): Don't handle libcall blocks.
10354         (preserve_libcall_for_dce): Remove.
10355         (prescan_insns_for_dce): Don't special-case libcall block insns.
10356         * reload1 (reload): Don't handle libcall notes.
10357         * doc/rtl.texi (REG_LIBCALL, REG_RETVAL, REG_LIBCALL_ID): Remove
10358         documentation.
10359
10360 2008-06-16  Eric B. Weddington  <eric.weddington@atmel.com>
10361
10362         * config/avr/avr.c (avr_mcu_t): Add atmega32c1.
10363         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
10364         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
10365
10366 2008-06-16  Eric B. Weddington  <eric.weddington@atmel.com>
10367
10368         * config/avr/avr.c (avr_mcu_t): Add atmega32m1.
10369         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
10370         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
10371
10372 2008-06-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10373
10374         * Makefile.in (FLAGS_TO_PASS): Add $(datarootdir).
10375
10376 2008-06-16  Ira Rosen  <irar@il.ibm.com>
10377
10378         PR tree-optimization/36493
10379         * tree-vect-transform.c (vect_create_data_ref_ptr): Remove TYPE from
10380         the arguments list. Use VECTYPE to create vector pointer.
10381         (vectorizable_store): Fail if accesses through a pointer to vectype
10382         do not alias the original memory reference operands.
10383         Call vect_create_data_ref_ptr without the removed argument.
10384         (vectorizable_load): Likewise.
10385         (vect_setup_realignment): Call vect_create_data_ref_ptr without the
10386         removed argument.
10387
10388 2008-06-015  Andy Hutchinson  <hutchinsonandy@aim.com>
10389
10390         PR target/36336
10391         * config/avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Add check for
10392         reg_equiv_constant.
10393
10394 2008-06-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
10395
10396         * config/mips/loongson2ef.md: New file.
10397         * config/mips/mips.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
10398         (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
10399         (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
10400         (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): New constants.
10401         (define_attr "cpu"): Rename loongson2e and loongson2f to loongson_2e
10402         and loongson_2f.
10403         (loongson2ef.md): New include.
10404         * config/mips/loongson.md (vec_pack_ssat_<mode>, vec_pack_usat_<mode>)
10405         (add<mode>3, paddd, ssadd<mode>3, usadd<mode>3)
10406         (loongson_and_not_<mode>, loongson_average_<mode>, loongson_eq_<mode>)
10407         (loongson_gt_<mode>, loongson_extract_halfword)
10408         (loongson_insert_halfword_0, loongson_insert_halfword_2)
10409         (loongson_insert_halfword_3, loongson_mult_add, smax<mode>3)
10410         (umax<mode>3, smin<mode>3, umin<mode>3, loongson_move_byte_mask)
10411         (umul<mode>3_highpart, smul<mode>3_highpart, loongson_smul_lowpart)
10412         (loongson_umul_word, loongson_pasubub, reduc_uplus_<mode>)
10413         (loongson_psadbh, loongson_pshufh, loongson_psll<mode>)
10414         (loongson_psra<mode>, loongson_psrl<mode>, sub<mode>3, psubd)
10415         (sssub<mode>3, ussub<mode>3, vec_interleave_high<mode>)
10416         (vec_interleave_low<mode>): Define type attribute.
10417         * config/mips/mips.c (mips_ls2): New static variable.
10418         (mips_issue_rate): Update to handle tuning for Loongson 2E/2F.
10419         (mips_ls2_init_dfa_post_cycle_insn, mips_init_dfa_post_cycle_insn)
10420         (sched_ls2_dfa_post_advance_cycle, mips_dfa_post_advance_cycle):
10421         Implement target scheduling hooks.
10422         (mips_multipass_dfa_lookahead): Update to handle tuning for
10423         Loongson 2E/2F.
10424         (mips_sched_init): Initialize data for Loongson scheduling.
10425         (mips_ls2_variable_issue): New static function.
10426         (mips_variable_issue): Update to handle tuning for Loongson 2E/2F.
10427         Add sanity check.
10428         (TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN)
10429         (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Override target hooks.
10430         * config/mips/mips.h (TUNE_LOONGSON_2EF): New macros.
10431         (ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY, ISA_HAS_HILO_INTERLOCKS):
10432         Handle ST Loongson 2E/2F cores.
10433         (CPU_UNITS_QUERY): Define macro to enable querying of DFA units.
10434
10435 2008-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10436
10437         * omp-low.c (extract_omp_for_data): Fix comment typo.
10438         * c.opt: Fix typo.
10439
10440 2008-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10441
10442         * doc/sourcebuild.texi (Config Fragments): Remove obsolete
10443         FIXME note about gcc/config.guess.
10444         * doc/options.texi (Option file format): Remove non-ASCII bytes.
10445         * doc/cpp.texi: Expand TABs, drop indentation outside examples.
10446         * doc/cppopts.texi: Likewise.
10447         * doc/extend.texi: Likewise.
10448         * doc/gcc.texi: Likewise.
10449         * doc/gccint.texi: Likewise.
10450         * doc/gcov.texi: Likewise.
10451         * doc/gty.texi: Likewise.
10452         * doc/hostconfig.texi: Likewise.
10453         * doc/install.texi: Likewise.
10454         * doc/invoke.texi: Likewise.
10455         * doc/loop.texi: Likewise.
10456         * doc/makefile.texi: Likewise.
10457         * doc/md.texi: Likewise.
10458         * doc/passes.texi: Likewise.
10459         * doc/tm.texi: Likewise.
10460         * doc/tree-ssa.texi: Likewise.
10461         * doc/trouble.texi: Likewise.
10462
10463 2008-06-15  Mark Shinwell  <shinwell@codesourcery.com>
10464             Nathan Sidwell  <nathan@codesourcery.com>
10465             Maxim Kuvyrkov  <maxim@codesourcery.com>
10466             Richard Sandiford  <rdsandiford@googlemail.com>
10467
10468         * config/mips/mips-modes.def: Add V8QI, V4HI and V2SI modes.
10469         * config/mips/mips-protos.h (mips_expand_vector_init): New.
10470         * config/mips/mips-ftypes.def: Add function types for Loongson-2E/2F
10471         builtins.
10472         * config/mips/mips.c (mips_split_doubleword_move): Handle new modes.
10473         (mips_hard_regno_mode_ok_p): Allow 64-bit vector modes for Loongson.
10474         (mips_vector_mode_supported_p): Add V2SImode, V4HImode and
10475         V8QImode cases.
10476         (LOONGSON_BUILTIN, LOONGSON_BUILTIN_ALIAS): New.
10477         (CODE_FOR_loongson_packsswh, CODE_FOR_loongson_packsshb,
10478         (CODE_FOR_loongson_packushb, CODE_FOR_loongson_paddw,
10479         (CODE_FOR_loongson_paddh, CODE_FOR_loongson_paddb,
10480         (CODE_FOR_loongson_paddsh, CODE_FOR_loongson_paddsb)
10481         (CODE_FOR_loongson_paddush, CODE_FOR_loongson_paddusb)
10482         (CODE_FOR_loongson_pmaxsh, CODE_FOR_loongson_pmaxub)
10483         (CODE_FOR_loongson_pminsh, CODE_FOR_loongson_pminub)
10484         (CODE_FOR_loongson_pmulhuh, CODE_FOR_loongson_pmulhh)
10485         (CODE_FOR_loongson_biadd, CODE_FOR_loongson_psubw)
10486         (CODE_FOR_loongson_psubh, CODE_FOR_loongson_psubb)
10487         (CODE_FOR_loongson_psubsh, CODE_FOR_loongson_psubsb)
10488         (CODE_FOR_loongson_psubush, CODE_FOR_loongson_psubusb)
10489         (CODE_FOR_loongson_punpckhbh, CODE_FOR_loongson_punpckhhw)
10490         (CODE_FOR_loongson_punpckhwd, CODE_FOR_loongson_punpcklbh)
10491         (CODE_FOR_loongson_punpcklhw, CODE_FOR_loongson_punpcklwd): New.
10492         (mips_builtins): Add Loongson builtins.
10493         (mips_loongson_2ef_bdesc): New.
10494         (mips_bdesc_arrays): Add mips_loongson_2ef_bdesc.
10495         (mips_builtin_vector_type): Handle unsigned versions of vector modes.
10496         (MIPS_ATYPE_UQI, MIPS_ATYPE_UDI, MIPS_ATYPE_V2SI, MIPS_ATYPE_UV2SI)
10497         (MIPS_ATYPE_V4HI, MIPS_ATYPE_UV4HI, MIPS_ATYPE_V8QI, MIPS_ATYPE_UV8QI):
10498         New.
10499         (mips_expand_vector_init): New.
10500         * config/mips/mips.h (HAVE_LOONGSON_VECTOR_MODES): New.
10501         (TARGET_CPU_CPP_BUILTINS): Define __mips_loongson_vector_rev
10502         if appropriate.
10503         * config/mips/mips.md: Add unspec numbers for Loongson
10504         builtins.  Include loongson.md.
10505         (MOVE64): Include Loongson vector modes.
10506         (SPLITF): Include Loongson vector modes.
10507         (HALFMODE): Handle Loongson vector modes.
10508         * config/mips/loongson.md: New.
10509         * config/mips/loongson.h: New.
10510         * config.gcc: Add loongson.h header for mips*-*-* targets.
10511         * doc/extend.texi (MIPS Loongson Built-in Functions): New.
10512
10513 2008-06-14  Joseph Myers  <joseph@codesourcery.com>
10514
10515         * config.gcc (arc-*-elf*, avr-*-*, fr30-*-elf, frv-*-elf,
10516         h8300-*-elf*, h8300-*-*, i[34567]86-*-elf*, x86_64-*-elf*,
10517         i[34567]86-*-aout*, i[34567]86-*-coff*, ia64*-*-elf*,
10518         iq2000*-*-elf*, m32r-*-elf*, m32rle-*-elf*, m32r-*-linux*,
10519         m32rle-*-linux*, m68hc11-*-*|m6811-*-*, m68hc12-*-*|m6812-*-*,
10520         m68k-*-coff*, mcore-*-elf, mcore-*-pe*, mipsisa64sr71k-*-elf*,
10521         mipsisa64sb1-*-elf* | mipsisa64sb1el-*-elf*, mips-*-elf* |
10522         mipsel-*-elf*, mips64-*-elf* | mips64el-*-elf*, mips64vr-*-elf* |
10523         mips64vrel-*-elf*, mips64orion-*-elf* | mips64orionel-*-elf*,
10524         mipstx39-*-elf* | mipstx39el-*-elf*, mn10300-*-*, pdp11-*-,
10525         powerpc-*-elf*, powerpcle-*-elf*, sh-*-elf* | sh[12346l]*-*-elf* |
10526         sh-*-symbianelf* | sh[12346l]*-*-symbianelf* | sh-*-linux* |
10527         sh[2346lbe]*-*-linux* | sh-*-netbsdelf* | shl*-*-netbsdelf* |
10528         sh5-*-netbsd* | sh5l*-*-netbsd* | sh64-*-netbsd* |
10529         sh64l*-*-netbsd*, sh-*-*, sparc-*-elf*, sparc64-*-elf*,
10530         v850e1-*-*, v850e-*-*, v850-*-*, xstormy16-*-elf, m32c-*-elf*):
10531         Remove use_fixproto=yes.
10532         (ia64*-*-hpux*): Remove comment about using fixproto.
10533         (m68k-*-uclinuxoldabi*, m68k-*-uclinux*): Remove use_fixproto=no.
10534
10535 2008-06-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10536
10537         * configure.ac: Update gthr-default.h lazily, to avoid unneeded
10538         library rebuilds.
10539         * configure: Regenerate.
10540
10541 2008-06-13  Eric Botcazou  <ebotcazou@adacore.com>
10542
10543         PR middle-end/36520
10544         * builtins.c (get_memory_rtx): Test for the presence of DECL_SIZE_UNIT
10545         before evaluating it.
10546
10547 2008-06-13  Jakub Jelinek  <jakub@redhat.com>
10548
10549         PR c/36507
10550         * c-decl.c (merge_decls): Don't clear DECL_EXTERNAL for
10551         nested inline functions.
10552         (start_decl, start_function): Don't invert DECL_EXTERNAL
10553         for nested inline functions.
10554
10555 2008-06-13  Richard Sandiford  <rdsandiford@googlemail.com>
10556
10557         * config/mips/mips.md: Remove TARGET_DEBUG_D_MODE conditions from
10558         splits that must be made for correctness.
10559
10560 2008-06-13  Richard Sandiford  <rdsandiford@googlemail.com>
10561
10562         * config/mips/mips.c (BUILTIN_AVAIL_NON_MIPS16): New macro.
10563         (AVAIL_NON_MIPS16): Likewise.
10564         (mips_builtin_description): Replace target_flags with a predicate.
10565         (paired_single, sb1_paired_single, mips3d, dsp, dspr2, dsp_32)
10566         (dspr2_32): New availability predicates.
10567         (MIPS_BUILTIN): New macro.
10568         (DIRECT_BUILTIN, CMP_SCALAR_BUILTINS, CMP_PS_BUILTINS)
10569         (CMP_4S_BUILTINS, MOVTF_BUILTINS, CMP_BUILTINS)
10570         (DIRECT_NO_TARGET_BUILTIN, BPOSGE_BUILTIN): Use it.
10571         Replace the TARGET_FLAGS parameters with AVAIL parameters.
10572         (mips_ps_bdesc, mips_sb1_bdesc, mips_dsp_bdesc)
10573         (mips_dsp_32only_bdesc): Merge into...
10574         (mips_builtins): ...this new array.
10575         (mips_bdesc_map, mips_bdesc_arrays): Delete.
10576         (mips_init_builtins): Update after above changes.
10577         (mips_expand_builtin_1): Merge into...
10578         (mips_expand_builtin): ...here and update after above changes.
10579
10580 2008-06-12  Paul Brook  <paul@codesourcery.com>
10581
10582         * longlong.h (__arm__): Define count_leading_zeros.
10583         * config/arm/lib1funcs.asm (xxh, xxl, yyh, yyl): Define.
10584         (clzsi2, clzdi2): New functions.
10585         * config/arm/bpabi-v6m.S (xxh, xxl, yyh, yyl): Remove.
10586         * config/arm/bpabi.S (xxh, xxl, yyh, yyl): Remove.
10587         * config/arm/t-strongarm-elf (LIB1ASMFUNCS): Ditto.
10588         * config/arm/t-vxworks (LIB1ASMFUNCS): Ditto.
10589         * config/arm/t-pe (LIB1ASMFUNCS): Ditto.
10590         * config/arm/t-arm-elf (LIB1ASMFUNCS): Ditto.
10591         * config/arm/t-arm-coff (LIB1ASMFUNCS): Ditto.
10592         * config/arm/t-linux (LIB1ASMFUNCS): Ditto.
10593         * config/arm/t-symbian (LIB1ASMFUNCS): Ditto.
10594         * config/arm/t-wince-pe (LIB1ASMFUNCS): Ditto.
10595
10596 2008-06-12  Kazu Hirata  <kazu@codesourcery.com>
10597
10598         * config/m68k/m68k.c (m68k_tune_flags): New.
10599         (override_options): Compute m68k_tune_flags.
10600         (MULL_COST, MULW_COST): Update for various variants of CFV2.
10601         * config/m68k/m68k.h (TUNE_MAC, TUNE_EMAC): New.
10602
10603 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
10604
10605         PR middle-end/36506
10606         * omp-low.c (expand_omp_sections): Initialize l2 to avoid bogus warning.
10607
10608 2008-06-12  Eric Botcazou  <ebotcazou@adacore.com>
10609
10610         * tree-inline.c (copy_body_r): Copy TREE_SIDE_EFFECTS along with
10611         TREE_THIS_VOLATILE on INDIRECT_REF nodes.
10612
10613 2008-06-12  Eric Botcazou  <ebotcazou@adacore.com>
10614
10615         * expr.c (store_field): Do a block copy from BLKmode to BLKmode-like.
10616         (get_inner_reference): Use BLKmode for byte-aligned BLKmode bitfields.
10617
10618 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
10619
10620         PR middle-end/36506
10621         * omp-low.c (expand_omp_sections): Handle #pragma omp sections with
10622         reductions.
10623
10624 2008-06-12  Richard Guenther  <rguenther@suse.de>
10625
10626         PR tree-optimization/36345
10627         * tree-flow.h (struct ptr_info_def): Align escape_mask,
10628         add memory_tag_needed flag.
10629         (may_alias_p): Declare.
10630         * tree-ssa-alias.c (may_alias_p): Export.
10631         (set_initial_properties): Use memory_tag_needed flag.
10632         (update_reference_counts): Likewise.
10633         (reset_alias_info): Reset memory_tag_needed flag.
10634         (create_name_tags): Check memory_tag_needed flag.
10635         (dump_points_to_info_for): Dump it.
10636         * tree-ssa-structalias.c (struct variable_info): Remove
10637         directly_dereferenced flag.
10638         (new_var_info): Do not initialize it.
10639         (process_constraint_1): Do not set it.
10640         (update_alias_info): Set is_dereferenced flag.
10641         (set_uids_in_ptset): Use may_alias_p.
10642         (set_used_smts): Check memory_tag_needed flag.
10643         (find_what_p_points_to): Likewise.  Pass is_dereferenced flag.
10644         * tree-ssa-alias.c (verify_flow_sensitive_alias_info): Check
10645         memory_tag_needed flag.
10646         * tree-ssa-alias-warnings.c (dsa_named_for): Try to recover
10647         from broken design.
10648
10649 2008-06-12  Kai Tietz  <kai.tietz@onevision.com>
10650
10651         * config/i386/i386.c (ix86_compute_frame_layout): Disable
10652         red zone for w64 abi.
10653         (ix86_expand_prologue): Likewise.
10654         (ix86_force_to_memory): Likewise.
10655         (ix86_free_from_memory): Likewise.
10656
10657 2008-06-11  Edmar Wienskoski  <edmar@freescale.com>
10658
10659         PR target/36425
10660         * config/rs6000/rs6000.c (rs6000_override_options): Set
10661         rs6000_isel conditionally to the absence of comand line override.
10662         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
10663         Remove duplicate rs6000_isel setting.
10664         * config/rs6000/eabispe.h: Ditto.
10665
10666 2008-06-11  Richard Guenther  <rguenther@suse.de>
10667
10668         * alias.c (get_alias_set): Use the element alias-set for arrays.
10669         (record_component_aliases): For arrays and vectors do nothing.
10670         * c-common.c (strict_aliasing_warning): Handle the cases
10671         of alias set zero explicitly.
10672         * Makefile.in (dfp.o-warn): Add -Wno-error.
10673
10674 2008-06-11  Joseph Myers  <joseph@codesourcery.com>
10675
10676         * config.gcc (all_defaults): Add arch_32 arch_64 cpu_32 cpu_64
10677         tune_32 tune_64.
10678         (i[34567]86-*-* | x86_64-*-*): Add arch_32 arch_64 cpu_32 cpu_64
10679         tune_32 tune_64 to supported_defaults.  Allow values not
10680         supporting 64-bit mode for arch_32, cpu_32 and tune_32 for
10681         x86_64.  Do not override cpu_32 or cpu_64 values from target name.
10682         (i[34567]86-*-linux*, i[34567]86-*-solaris2.1[0-9]*): Only default
10683         with_cpu_64 to generic for 64-bit-supporting configurations, not
10684         with_cpu.  Remove FIXMEs.
10685         * doc/install.texi (--with-cpu-32, --with-cpu-64, --with-arch-32,
10686         --with-arch-64, --with-tune-32, --with-tune-64): Document.
10687         * config/i386/i386.h (OPT_ARCH32, OPT_ARCH64): Define.
10688         (OPTION_DEFAULT_SPECS): Add tune_32, tune_64, cpu_32, cpu_64,
10689         arch_32 and arch_64.
10690
10691 2008-06-11  Eric Botcazou  <ebotcazou@adacore.com>
10692             Olivier Hainque  <hainque@adacore.com>
10693
10694         * builtins.c (get_memory_rtx): Accept byte-addressable bitfields.
10695         Use DECL_SIZE_UNIT to retrieve the size of the field.
10696
10697 2008-06-11  Joseph Myers  <joseph@codesourcery.com>
10698
10699         * config/arm/arm.c (arm_init_neon_builtins): Move initialization
10700         with function calls after declarations.  Lay out
10701         neon_float_type_node before further use.
10702
10703 2008-06-11  Richard Guenther  <rguenther@suse.de>
10704
10705         * tree-flow.h (may_point_to_global_var): Declare.
10706         * tree-ssa-alias.c (may_point_to_global_var): New function.
10707         * tree-ssa-sink.c (is_hidden_global_store): Use it.
10708
10709 2008-06-10  Kazu Hirata  <kazu@codesourcery.com>
10710
10711         * configure.ac: Teach that fido supports .debug_line.
10712         * configure: Regenerate.
10713
10714 2008-06-10  Tom Tromey  <tromey@redhat.com>
10715
10716         * c-lex.c (fe_file_change): Pass SOURCE_LINE to start_source_file
10717         debug hook.
10718
10719 2008-06-10  Joseph Myers  <joseph@codesourcery.com>
10720
10721         * dfp.c (WORDS_BIGENDIAN): Define to 0 if not defined.
10722         (encode_decimal64, decode_decimal64, encode_decimal128,
10723         decode_decimal128): Reverse order of 32-bit parts of value if host
10724         and target endianness differ.
10725
10726 2008-06-10  Vinodha Ramasamy  <vinodha@google.com>
10727
10728         * value_prob.c (tree_divmod_fixed_value_transform): Use gcov_type.
10729         Avoid division by 0.
10730         (tree_mod_pow2_value_transform): Likewise.
10731         (tree_ic_transform): Likewise.
10732         (tree_stringops_transform): Likewise.
10733         (tree_mod_subtract_transform): Likewise.
10734         * tree-inline-c (copy_bb): Corrected int type to gcov_type.
10735         (copy_edges_for_bb): Likewise.
10736         (initialize_cfun): Likewise.
10737
10738 2008-06-10  Uros Bizjak  <ubizjak@gmail.com>
10739
10740         * config/i386/i386.md (*btdi_rex64): Change operand 1 predicate to
10741         nonmemory_operand. Add "N" operand constraint.
10742         (*btsi): Ditto.
10743         (*jcc_btdi_mask_rex64): New instruction and split pattern.
10744         (*jcc_btsi_mask): Ditto.
10745         (*jcc_btsi_mask_1): Ditto.
10746
10747 2008-06-10  Joseph Myers  <joseph@codesourcery.com>
10748
10749         * config/rs6000/rs6000.c (build_opaque_vector_type): Set
10750         TYPE_CANONICAL for copied element type.
10751
10752 2008-06-10  Uros Bizjak  <ubizjak@gmail.com>
10753
10754         PR target/36473
10755         * config/i386/i386.c (ix86_tune_features) [TUNE_USE_BT]:
10756         Add m_CORE2 and m_GENERIC.
10757         * config/i386/predicates.md (bt_comparison_operator): New predicate.
10758         * config/i386/i386.md (*btdi_rex64): New instruction pattern.
10759         (*btsi): Ditto.
10760         (*jcc_btdi_rex64): New instruction and split pattern.
10761         (*jcc_btsi): Ditto.
10762         (*jcc_btsi_1): Ditto.
10763         (*btsq): Fix Intel asm dialect operand order.
10764         (*btrq): Ditto.
10765         (*btcq): Ditto.
10766
10767 2008-06-09  Andy Hutchinson  <hutchinsonandy@aim.com>
10768
10769         PR middle-end/36447
10770         * simplify-rtx.c (simplify_subreg): Add check for shift count
10771         greater than size.
10772
10773 2008-06-09  Richard Sandiford  <rdsandiford@googlemail.com>
10774
10775         * doc/md.texi: Synchronize with later constraints.md change.
10776         * longlong.h (umul_ppmm): Replace the MIPS asm implementation
10777         with a C implementation.
10778         * config/mips/mips.c (mips_legitimize_move): Remove MFHI and
10779         MFLO handling.
10780         (mips_subword): Assume TImode for CONST_INTs if TARGET_64BIT.
10781         (mips_split_doubleword_move): Use special MTHI and MFHI instructions
10782         when moving to and from MD_REGNUM.
10783         (mips_output_move): Don't handle moves from GPRs to HI_REGNUM.
10784         Handle moves from LO_REGNUM to GPRs using MFLO, MACC or DMACC.
10785         Handle byte and halfword moves.
10786         (mips_hard_regno_mode_ok_p): Handle MD_REGS and DSP_ACC_REGS
10787         separately.
10788         * config/mips/constraints.md (h): Turn into NO_REGS.
10789         (l, x): Update documentation.
10790         * config/mips/mips.md (UNSPEC_MFHILO): Delete.
10791         (UNSPEC_MFHI, UNSPEC_MTHI, UNSPEC_SET_HILO): New.
10792         (UNSPEC_TLS_LDM, UNSPEC_TLS_GET_TP): Renumber.
10793         (HILO): New mode iterator.
10794         (MOVE128): Add TI.
10795         (any_div): New code iterator.
10796         (u): Extend code attribute to div and udiv.
10797         (*add<mode>3_mips16, *movdi_64bit_mips16, *movsi_mips16): Use
10798         d_operand in the splitters.  Remove redundant CONST_INT checks.
10799         (mulsi3_mult3, mul<mode>3_internal, mul<mode>3_r4000, *mul_acc_si)
10800         (*macc, *msac, *msac_using_macc, *macc2, *msac2, *mul_sub_si)
10801         (*muls): Remove "=h" clobbers.  Adjust peephole2s and define_splits
10802         accordingly, using normal moves instead of unspecs to move LO into
10803         a GPR.  Use d_operand and lo_operand instead of *_REG_P checks.
10804         (<u>mulsidi3): Handle expansion in C code.
10805         (<u>mulsidi3_32bit_internal): Rename to...
10806         (<u>mulsidi3_32bit): ...this.
10807         (<u>mulsidi3_32bit_r4000): Fix insn separator.
10808         (*<u>mulsidi3_64bit): Rename to...
10809         (<u>mulsidi3_64bit): ...this.  Combine DImode "=h" and "=l" clobbers
10810         into a TImode "=x" clobber.  In the split, use an UNSPEC_SET_HILO
10811         to set LO and HI to the multiplication result.  Use a normal move
10812         for MFLO and an unspec for MFHI.
10813         (*<u>mulsidi3_64bit_parts): Replace with...
10814         (<u>mulsidi3_64bit_hilo): ...this new instruction.
10815         (<su>mulsi3_highpart): Extend to TARGET_FIX_R4000.
10816         (<su>mulsi3_highpart_internal): Turn into a define_insn_and_split
10817         and extend it to TARGET_FIX_R4000.  Store the destination in a GPR
10818         instead of HI.  Split the instruction into a separate multiplication
10819         and MFHI if !TARGET_FIX_R4000.
10820         (<su>muldi3_highpart): Likewise.
10821         (<su>mulsi3_highpart_mulhi_internal): Remove the first alternative
10822         and the "=h" clobber.
10823         (*<su>mulsi3_highpart_neg_mulhi_internal): Likewise.
10824         (<u>mulditi3): New expander.
10825         (<u>mulditi3_internal, <u>mulditi3_r4000): New patterns.
10826         (madsi): Remove "=h" clobber.
10827         (divmod<mode>4, udivmod<mode>4): Turn into define_insn_and_splits.
10828         Force the modulus result to be a GPR and split the instruction into
10829         a division followed by an MFHI after reload.
10830         (<u>divmod<GPR:mode>4_hilo_<HILO:mode>): New instruction.
10831         (*lea_high64): Use d_operand in the define_peephole2.  Likewise
10832         the MIPS16 HIGH define_split.
10833         (*movdi_32bit, *movdi_gp32_fp64, *movdi_32bit_mips16): Change type
10834         of acc<->gpr moves to "multi".
10835         (*movdi_64bit): Replace the single "x" alternative with
10836         alternatives for moving into and out of "a".
10837         (*movhi_internal, *movqi_internal): Likewise.  Use mips_output_move.
10838         (*movsi_internal): Extend the "d<-A" alternative to "d<-a".
10839         (*movdi_64bit_mips16, *movsi_mips16): Add d<-a alternatives.
10840         Use d_operand in the splitters.  Remove redundant CONST_INT checks.
10841         (*movhi_mips16, *movqi_mips16): Likewise.  Use mips_output_move.
10842         (movti): New expander.
10843         (*movti, *movti_mips16): New insns.
10844         (mfhilo_<mode>, *mfhilo_<mode>, *mfhilo_<mode>_macc): Delete.
10845         (mfhi<GPR:mode>_<HILO:mode>): New pattern.
10846         (mthi<GPR:mode>_<HILO:mode>): Likewise.
10847         * config/mips/predicates.md (fpr_operand): Delete.
10848         (d_operand): New predicate.
10849
10850 2008-06-09  Michael Meissner  <michael.meissner@amd.com>
10851
10852         * config.gcc (i[34567]86-*-*): Put test in quotes to prevent
10853         failure on some Bourne shells.
10854         (x86_64-*-*): Ditto.
10855
10856 2008-06-09  Kai Tietz  <kai.tietz@onevision.com>
10857
10858         * config/i386/cygming.h (TARGET_SUBTARGET64_DEFAULT): New.
10859
10860 2008-06-09  Eric Botcazou  <ebotcazou@libertysurf.fr>
10861
10862         * doc/install.texi (*-*-solaris2*): Remove obsolete contents.
10863         (sparc-sun-solaris2*): Likewise.
10864
10865 2008-06-09  Arnaud Charlet  <charlet@adacore.com
10866
10867         * doc/install.texi: Update requirements to build the Ada compiler.
10868
10869 2008-06-08  Steven Bosscher  <stevenb.gcc@gmail.com>
10870
10871         * df-scan.c (struct df_scan_problem_data): Remove the
10872         mw_link_pool alloc pool.
10873         (df_scan_free_internal): Don't free it.
10874         (df_scan_alloc): Don't allocate it.
10875         * df.h (struct df_link): Update comment.
10876
10877 2008-06-08  Nathan Sidwell  <nathan@codesourcery.com>
10878
10879         * except.h: Correct checks for when SJLJ exceptions must be used.
10880
10881 2008-06-08  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
10882
10883         * doc/invoke.texi (Wenum-compare): Mention that it is enabled by
10884         default.
10885
10886 2008-06-08  Joseph Myers  <joseph@codesourcery.com>
10887
10888         PR tree-optimization/36218
10889         * configure.ac: Use LDFLAGS="${LDFLAGS_FOR_BUILD}" when running
10890         configure for the build system.
10891         (BUILD_LDFLAGS): Define.
10892         * configure: Regenerate.
10893         * Makefile.in (BUILD_LDFLAGS): Define to @BUILD_LDFLAGS@.
10894
10895 2008-07-08  Anatoly Sokolov  <aesok@post.ru>
10896
10897         PR target/36424
10898         * config/avr/avr.h (HARD_REGNO_RENAME_OK): Define.
10899         * config/avr/avr.c (avr_hard_regno_rename_ok): New function.
10900         * config/avr/avr-protos.h (avr_hard_regno_rename_ok): New prototype.
10901
10902 2008-06-07  Danny Smith  <dannysmith@users.sourceforge.net>
10903
10904         * config/i386/cygming.h (MAYBE_UWIN_CPP_BUILTINS): Remove.
10905
10906 2008-06-07  Joseph Myers  <joseph@codesourcery.com>
10907
10908         * config.gcc (Obsolete configurations): Remove list of
10909         configurations.
10910         (Unsupported targets list): Add *-*-linux*aout*, *-*-linux*libc1*,
10911         *-*-solaris2.[0-6], *-*-solaris2.[0-6].*, *-*-sysv*.  Remove other
10912         targets matched by those patterns.
10913         (strongarm*-*-*, ep9312*-*-*, xscale-*-*, parisc*-*-*,
10914         m680[012]0-*-*, *-*-linux*libc1*, *-*-linux*aout*,
10915         alpha*-*-unicosmk*, strongarm*-*-freebsd*, ep9312-*-elf,
10916         arm*-*-kaos*, cris-*-aout, parisc*64*-*-linux*, parisc*-*-linux*,
10917         hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
10918         i[34567]86-sequent-ptx4*, i[34567]86-sequent-sysv4*,
10919         i[34567]86-*-beoself*, i[34567]86-*-beos*, i[34567]86-*-sco3.2v5*,
10920         i[34567]86-*-sysv5*, i[34567]86-*-sysv4*, i[34567]86-*-uwin*,
10921         i[34567]86-*-kaos*, m68020-*-elf*, m68010-*-netbsdelf*,
10922         mips-wrs-windiss, mt-*-elf, powerpc-*-beos*, powerpc-*-chorusos*,
10923         powerpc-wrs-windiss*, powerpcle-*-sysv*, powerpc-*-kaos*,
10924         powerpcle-*-kaos*, sh*-*-kaos*, sparc-*-sysv4*, strongarm-*-elf*,
10925         strongarm-*-pe, strongarm-*-kaos*, vax-*-bsd*, vax-*-sysv*,
10926         vax-*-ultrix*, xscale-*-elf, xscale-*-coff,
10927         i[34567]86-*-linux*aout*, i[34567]86-*-linux*libc1): Remove.
10928         Make code for Solaris 7 and greater unconditional for Solaris.
10929         (ep9312-*-*, parisc1*, m680[012]0-*-*, parisc*-*-*, mt-*-*):
10930         Remove --with-* handling.
10931         * config/rs6000/sysv4.h (-mwindiss): Remove from all specs.
10932         (LIB_WINDISS_SPEC, CPP_OS_WINDISS_SPEC, STARTFILE_WINDISS_SPEC,
10933         ENDFILE_WINDISS_SPEC, LINK_START_WINDISS_SPEC,
10934         LINK_OS_WINDISS_SPEC): Remove.
10935         * config/rs6000/sysv4.opt (mwindiss): Remove.
10936         * configure.ac (strongarm*-*-*, xscale*-*-*): Remove.
10937         * configure: Regenerate.
10938         * doc/cpp.texi: Don't mention BeOS.
10939         * doc/extend.texi (interrupt): Don't mention MS1.
10940         * doc/install.texi: (i386-@var{any}-sysv, m68k-bull-sysv,
10941         m68k-hp-hpux, m68000-hp-hpux, m68000-att-sysv,
10942         alphaev5-cray-unicosmk*, xscale-*-*, i?86-*-linux*aout,
10943         i?86-*-sco3.2v5*, i?86-*-udk, m68k-hp-hpux, powerpc-*-sysv4,
10944         powerpc-*-sysv4, powerpcle-*-sysv4, *-*-sysv*, vax-dec-ultrix):
10945         Remove.
10946         * doc/invoke.texi (MT Options): Remove.
10947         (-mwindiss): Remove.
10948         (CRIS Options): Remove cris-axis-aout references.
10949         (HPPA Options): Don't mention hppa1.1-*-pro.
10950         * doc/md.texi: (MorphoTech family): Remove.
10951         * libgcc2.c: Don't handle UWIN.
10952         * config/alpha/t-unicosmk: Remove.
10953         * config/alpha/unicosmk.h: Remove.
10954         * config/arm/kaos-arm.h: Remove.
10955         * config/arm/kaos-strongarm.h: Remove.
10956         * config/arm/strongarm-coff.h: Remove.
10957         * config/arm/strongarm-elf.h: Remove.
10958         * config/arm/strongarm-pe.h: Remove.
10959         * config/arm/t-strongarm-pe: Remove.
10960         * config/arm/t-xscale-coff: Remove.
10961         * config/arm/t-xscale-elf: Remove.
10962         * config/arm/xscale-coff.h: Remove.
10963         * config/arm/xscale-elf.h: Remove.
10964         * config/chorus.h: Remove.
10965         * config/cris/aout.h: Remove.
10966         * config/cris/aout.opt: Remove.
10967         * config/cris/t-aout: Remove.
10968         * config/i386/beos-elf.h: Remove.
10969         * config/i386/kaos-i386.h: Remove.
10970         * config/i386/ptx4-i.h: Remove.
10971         * config/i386/sco5.h: Remove.
10972         * config/i386/sco5.opt: Remove.
10973         * config/i386/sysv4-cpp.h: Remove.
10974         * config/i386/sysv5.h: Remove.
10975         * config/i386/t-beos: Remove.
10976         * config/i386/t-sco5: Remove.
10977         * config/i386/t-uwin: Remove.
10978         * config/i386/uwin.asm: Remove.
10979         * config/i386/uwin.h: Remove.
10980         * config/kaos.h: Remove.
10981         * config/mips/windiss.h: Remove.
10982         * config/mt: Remove directory.
10983         * config/pa/pa-osf.h: Remove.
10984         * config/pa/pa-pro-end.h: Remove.
10985         * config/pa/t-pro: Remove.
10986         * config/ptx4.h: Remove.
10987         * config/rs6000/beos.h: Remove.
10988         * config/rs6000/kaos-ppc.h: Remove.
10989         * config/rs6000/t-beos: Remove.
10990         * config/rs6000/windiss.h: Remove.
10991         * config/sh/kaos-sh.h: Remove.
10992         * config/sol2-6.h: Remove.
10993         * config/sparc/sol26-sld.h: Remove.
10994         * config/sparc/sysv4-only.h: Remove.
10995         * config/vax/bsd.h: Remove.
10996         * config/vax/t-memfuncs: Remove.
10997         * config/vax/ultrix.h: Remove.
10998         * config/vax/vaxv.h: Remove.
10999         * config/windiss.h: Remove.
11000
11001 2008-06-06  Uros Bizjak <ubizjak@gmail.com>
11002
11003         PR rtl-optimization/36438
11004         * cse.c (fold_rtx) [ASHIFT, LSHIFTRT, ASHIFTRT]: Break out early
11005         for vector shifts with constant scalar shift operands.
11006
11007 2008-06-06  Sandip Matte  <sandip@rmicorp.com>
11008
11009         * doc/invoke.texi: Document -march=xlr.
11010         * config/mips/xlr.md: New file.
11011         * config/mips/mips.md: Include it.
11012         (cpu): Add "xlr".
11013         * config/mips/mips.h (PROCESSOR_XLR): New processor_type.
11014         * config/mips/mips.c (mips_cpu_info_table): Add an XLR entry.
11015         (mips_rtx_cost_data): Likewise.
11016
11017 2008-06-06  Nathan Froyd  <froydnj@codesourcery.com>
11018
11019         * config/rs6000/rs6000.c (rs6000_mode_dependent_address): Remove
11020         PRE_INC and PRE_DEC cases.
11021
11022 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
11023
11024         PR rtl-optimization/36419
11025         * except.c (expand_resx_expr): Call do_pending_stack_adjust () before
11026         the emitting jump insn.
11027
11028         PR target/36362
11029         * gimplify.c (gimplify_expr) <case TRUTH_NOT_EXPR>: If *expr_p type
11030         is not bool, boolify the whole *expr_p and convert to the desired type.
11031
11032 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
11033
11034         * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP value to 200805.
11035         * langhooks.h (struct lang_hooks_for_decls): Add omp_finish_clause.
11036         Add omp_private_outer_ref hook, add another argument to
11037         omp_clause_default_ctor hook.
11038         * langhooks-def.h (LANG_HOOKS_OMP_FINISH_CLAUSE): Define.
11039         (LANG_HOOKS_OMP_PRIVATE_OUTER_REF): Define.
11040         (LANG_HOOKS_OMP_CLAUSE_DEFAULT_CTOR): Change to
11041         hook_tree_tree_tree_tree_null.
11042         (LANG_HOOKS_DECLS): Add LANG_HOOKS_OMP_FINISH_CLAUSE and
11043         LANG_HOOKS_OMP_PRIVATE_OUTER_REF.
11044         * hooks.c (hook_tree_tree_tree_tree_null): New function.
11045         * hooks.h (hook_tree_tree_tree_tree_null): New prototype.
11046         * tree.def (OMP_TASK): New tree code.
11047         * tree.h (OMP_TASK_COPYFN, OMP_TASK_ARG_SIZE, OMP_TASK_ARG_ALIGN,
11048         OMP_CLAUSE_PRIVATE_OUTER_REF, OMP_CLAUSE_LASTPRIVATE_STMT,
11049         OMP_CLAUSE_COLLAPSE_ITERVAR, OMP_CLAUSE_COLLAPSE_COUNT,
11050         OMP_TASKREG_CHECK, OMP_TASKREG_BODY, OMP_TASKREG_CLAUSES,
11051         OMP_TASKREG_FN, OMP_TASKREG_DATA_ARG, OMP_TASK_BODY,
11052         OMP_TASK_CLAUSES, OMP_TASK_FN, OMP_TASK_DATA_ARG,
11053         OMP_CLAUSE_COLLAPSE_EXPR): Define.
11054         (enum omp_clause_default_kind): Add OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.
11055         (OMP_DIRECTIVE_P): Add OMP_TASK.
11056         (OMP_CLAUSE_COLLAPSE, OMP_CLAUSE_UNTIED): New clause codes.
11057         (OMP_CLAUSE_SCHEDULE_AUTO): New schedule kind.
11058         * tree.c (omp_clause_code_name): Add OMP_CLAUSE_COLLAPSE
11059         and OMP_CLAUSE_UNTIED entries.
11060         (omp_clause_num_ops): Likewise.  Increase OMP_CLAUSE_LASTPRIVATE
11061         num_ops to 2.
11062         (walk_tree_1): Handle OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
11063         Walk OMP_CLAUSE_LASTPRIVATE_STMT.
11064         * tree-pretty-print.c (dump_omp_clause): Handle
11065         OMP_CLAUSE_SCHEDULE_AUTO, OMP_CLAUSE_UNTIED, OMP_CLAUSE_COLLAPSE,
11066         OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.
11067         (dump_generic_node): Handle OMP_TASK and collapsed OMP_FOR loops.
11068         * c-omp.c (c_finish_omp_for): Allow pointer iterators.  Remove
11069         warning about unsigned iterators.  Change decl/init/cond/incr
11070         arguments to TREE_VECs, check arguments for all collapsed loops.
11071         (c_finish_omp_taskwait): New function.
11072         (c_split_parallel_clauses): Put OMP_CLAUSE_COLLAPSE clause to
11073         ws_clauses.
11074         * c-parser.c (c_parser_omp_for_loop): Parse collapsed loops.  Call
11075         default_function_array_conversion on init.  Add par_clauses argument.
11076         If decl is present in parallel's lastprivate clause, change it to
11077         shared and add lastprivate clause for decl to OMP_FOR_CLAUSES.
11078         Add clauses argument, on success set OMP_FOR_CLAUSES to it.  Look up
11079         collapse count in clauses.
11080         (c_parser_omp_for, c_parser_omp_parallel): Adjust
11081         c_parser_omp_for_loop callers.
11082         (OMP_FOR_CLAUSE_MASK): Add 1 << PRAGMA_OMP_CLAUSE_COLLAPSE.
11083         (c_parser_pragma): Handle PRAGMA_OMP_TASKWAIT.
11084         (c_parser_omp_clause_name): Handle collapse and untied clauses.
11085         (c_parser_omp_clause_collapse, c_parser_omp_clause_untied): New
11086         functions.
11087         (c_parser_omp_clause_schedule): Handle schedule(auto).
11088         Include correct location in the error message.
11089         (c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_COLLAPSE
11090         and PRAGMA_OMP_CLAUSE_UNTIED.
11091         (OMP_TASK_CLAUSE_MASK): Define.
11092         (c_parser_omp_task, c_parser_omp_taskwait): New functions.
11093         (c_parser_omp_construct): Handle PRAGMA_OMP_TASK.
11094         * tree-nested.c (convert_nonlocal_omp_clauses,
11095         convert_local_omp_clauses): Handle OMP_CLAUSE_LASTPRIVATE_STMT,
11096         OMP_CLAUSE_REDUCTION_INIT, OMP_CLAUSE_REDUCTION_MERGE,
11097         OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
11098         Don't handle TREE_STATIC or DECL_EXTERNAL VAR_DECLs in
11099         OMP_CLAUSE_DECL.
11100         (conver_nonlocal_reference, convert_local_reference,
11101         convert_call_expr): Handle OMP_TASK the same as OMP_PARALLEL.  Use
11102         OMP_TASKREG_* macros rather than OMP_PARALLEL_*.
11103         (walk_omp_for): Adjust for OMP_FOR_{INIT,COND,INCR} changes.
11104         * tree-gimple.c (is_gimple_stmt): Handle OMP_TASK.
11105         * c-tree.h (c_begin_omp_task, c_finish_omp_task): New prototypes.
11106         * c-pragma.h (PRAGMA_OMP_TASK, PRAGMA_OMP_TASKWAIT): New.
11107         (PRAGMA_OMP_CLAUSE_COLLAPSE, PRAGMA_OMP_CLAUSE_UNTIED): New.
11108         * c-typeck.c (c_begin_omp_task, c_finish_omp_task): New functions.
11109         (c_finish_omp_clauses): Handle OMP_CLAUSE_COLLAPSE and
11110         OMP_CLAUSE_UNTIED.
11111         * c-pragma.c (init_pragma): Init omp task and omp taskwait pragmas.
11112         * c-common.h (c_finish_omp_taskwait): New prototype.
11113         * gimple-low.c (lower_stmt): Handle OMP_TASK.
11114         * tree-parloops.c (create_parallel_loop): Create 1 entry
11115         vectors for OMP_FOR_{INIT,COND,INCR}.
11116         * tree-cfg.c (remove_useless_stmts_1): Handle OMP_* containers.
11117         (make_edges): Handle OMP_TASK.
11118         * tree-ssa-operands.c (get_expr_operands): Handle collapsed OMP_FOR
11119         loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
11120         * tree-inline.c (estimate_num_insns_1): Handle OMP_TASK.
11121         * builtin-types.def (BT_PTR_ULONGLONG, BT_PTR_FN_VOID_PTR_PTR,
11122         BT_FN_BOOL_ULONGLONGPTR_ULONGLONGPTR,
11123         BT_FN_BOOL_BOOL_ULL_ULL_ULL_ULLPTR_ULLPTR,
11124         BT_FN_BOOL_BOOL_ULL_ULL_ULL_ULL_ULLPTR_ULLPTR,
11125         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT): New.
11126         * omp-builtins.def (BUILT_IN_GOMP_TASK, BUILT_IN_GOMP_TASKWAIT,
11127         BUILT_IN_GOMP_LOOP_ULL_STATIC_START,
11128         BUILT_IN_GOMP_LOOP_ULL_DYNAMIC_START,
11129         BUILT_IN_GOMP_LOOP_ULL_GUIDED_START,
11130         BUILT_IN_GOMP_LOOP_ULL_RUNTIME_START,
11131         BUILT_IN_GOMP_LOOP_ULL_ORDERED_STATIC_START,
11132         BUILT_IN_GOMP_LOOP_ULL_ORDERED_DYNAMIC_START,
11133         BUILT_IN_GOMP_LOOP_ULL_ORDERED_GUIDED_START,
11134         BUILT_IN_GOMP_LOOP_ULL_ORDERED_RUNTIME_START,
11135         BUILT_IN_GOMP_LOOP_ULL_STATIC_NEXT,
11136         BUILT_IN_GOMP_LOOP_ULL_DYNAMIC_NEXT,
11137         BUILT_IN_GOMP_LOOP_ULL_GUIDED_NEXT,
11138         BUILT_IN_GOMP_LOOP_ULL_RUNTIME_NEXT,
11139         BUILT_IN_GOMP_LOOP_ULL_ORDERED_STATIC_NEXT,
11140         BUILT_IN_GOMP_LOOP_ULL_ORDERED_DYNAMIC_NEXT,
11141         BUILT_IN_GOMP_LOOP_ULL_ORDERED_GUIDED_NEXT,
11142         BUILT_IN_GOMP_LOOP_ULL_ORDERED_RUNTIME_NEXT): New builtins.
11143         * gimplify.c (gimplify_omp_for): Allow pointer type for decl,
11144         handle POINTER_PLUS_EXPR.  If loop counter has been replaced and
11145         original iterator is present in lastprivate clause or if
11146         collapse > 1, set OMP_CLAUSE_LASTPRIVATE_STMT.  Handle collapsed
11147         OMP_FOR loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
11148         (gimplify_expr): Handle OMP_SECTIONS_SWITCH and OMP_TASK.
11149         (enum gimplify_omp_var_data): Add GOVD_PRIVATE_OUTER_REF.
11150         (omp_notice_variable): Set GOVD_PRIVATE_OUTER_REF if needed,
11151         if it is set, lookup var in outer contexts too.  Handle
11152         OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.  Handle vars that are supposed
11153         to be implicitly determined firstprivate for task regions.
11154         (gimplify_scan_omp_clauses): Set GOVD_PRIVATE_OUTER_REF if needed,
11155         if it is set, lookup var in outer contexts too.  Set
11156         OMP_CLAUSE_PRIVATE_OUTER_REF if GOVD_PRIVATE_OUTER_REF is set.
11157         Handle OMP_CLAUSE_LASTPRIVATE_STMT, OMP_CLAUSE_COLLAPSE and
11158         OMP_CLAUSE_UNTIED.  Take region_type as last argument
11159         instead of in_parallel and in_combined_parallel.
11160         (gimplify_omp_parallel, gimplify_omp_for, gimplify_omp_workshare):
11161         Adjust callers.
11162         (gimplify_adjust_omp_clauses_1): Set OMP_CLAUSE_PRIVATE_OUTER_REF if
11163         GOVD_PRIVATE_OUTER_REF is set.  Call omp_finish_clause langhook.
11164         (new_omp_context): Set default_kind to
11165         OMP_CLAUSE_DEFAULT_UNSPECIFIED for OMP_TASK regions.
11166         (omp_region_type): New enum.
11167         (struct gimplify_omp_ctx): Remove is_parallel and is_combined_parallel
11168         fields, add region_type.
11169         (new_omp_context): Take region_type as argument instead of is_parallel
11170         and is_combined_parallel.
11171         (gimple_add_tmp_var, omp_firstprivatize_variable, omp_notice_variable,
11172         omp_is_private, omp_check_private): Adjust ctx->is_parallel and
11173         ctx->is_combined_parallel checks.
11174         (gimplify_omp_task): New function.
11175         (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_COLLAPSE and
11176         OMP_CLAUSE_UNTIED.
11177         * omp-low.c (extract_omp_for_data): Use schedule(static)
11178         for schedule(auto).  Handle pointer and unsigned iterators.
11179         Compute fd->iter_type.  Handle POINTER_PLUS_EXPR increments.
11180         Add loops argument.  Extract data for collapsed OMP_FOR loops.
11181         (expand_parallel_call): Assert sched_kind isn't auto,
11182         map runtime schedule to index 3.
11183         (struct omp_for_data_loop): New type.
11184         (struct omp_for_data): Remove v, n1, n2, step, cond_code fields.
11185         Add loop, loops, collapse and iter_type fields.
11186         (workshare_safe_to_combine_p): Disallow combined for if
11187         iter_type is unsigned long long.  Don't combine collapse > 1 loops
11188         unless all bounds and steps are constant.  Adjust extract_omp_for_data
11189         caller.
11190         (expand_omp_for_generic): Handle pointer, unsigned and long long
11191         iterators.  Handle collapsed OMP_FOR loops.  Adjust
11192         for struct omp_for_data changes.  If libgomp function doesn't return
11193         boolean_type_node, add comparison of the return value with 0.
11194         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk): Handle
11195         pointer, unsigned and long long iterators.  Adjust for struct
11196         omp_for_data changes.
11197         (expand_omp_for): Assert sched_kind isn't auto, map runtime schedule
11198         to index 3.  Use GOMP_loop_ull*{start,next} if iter_type is
11199         unsigned long long.  Allocate loops array, pass it to
11200         extract_omp_for_data.  For collapse > 1 loops use always
11201         expand_omp_for_generic.
11202         (omp_context): Add sfield_map and srecord_type fields.
11203         (is_task_ctx, lookup_sfield): New functions.
11204         (use_pointer_for_field): Use is_task_ctx helper.  Change first
11205         argument's type from const_tree to tree.  Clarify comment.
11206         In OMP_TASK disallow copy-in/out sharing.
11207         (build_sender_ref): Call lookup_sfield instead of lookup_field.
11208         (install_var_field): Add mask argument.  Populate both record_type
11209         and srecord_type if needed.
11210         (delete_omp_context): Destroy sfield_map, clear DECL_ABSTRACT_ORIGIN
11211         in srecord_type.
11212         (fixup_child_record_type): Also remap FIELD_DECL's DECL_SIZE{,_UNIT}
11213         and DECL_FIELD_OFFSET.
11214         (scan_sharing_clauses): Adjust install_var_field callers.  For
11215         firstprivate clauses on explicit tasks allocate the var by value in
11216         record_type unconditionally, rather than by reference.
11217         Handle OMP_CLAUSE_PRIVATE_OUTER_REF.  Scan OMP_CLAUSE_LASTPRIVATE_STMT.
11218         Use is_taskreg_ctx instead of is_parallel_ctx.
11219         Handle OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
11220         (create_omp_child_function_name): Add task_copy argument, use
11221         *_omp_cpyfn* names if it is true.
11222         (create_omp_child_function): Add task_copy argument, if true create
11223         *_omp_cpyfn* helper function.
11224         (scan_omp_parallel): Adjust create_omp_child_function callers.
11225         Rename parallel_nesting_level to taskreg_nesting_level.
11226         (scan_omp_task): New function.
11227         (lower_rec_input_clauses): Don't run constructors for firstprivate
11228         explicit task vars which are initialized by *_omp_cpyfn*.
11229         Pass outer var ref to omp_clause_default_ctor hook if
11230         OMP_CLAUSE_PRIVATE_OUTER_REF or OMP_CLAUSE_LASTPRIVATE.
11231         Replace OMP_CLAUSE_REDUCTION_PLACEHOLDER decls in
11232         OMP_CLAUSE_REDUCTION_INIT.
11233         (lower_send_clauses): Clear DECL_ABSTRACT_ORIGIN if in task to
11234         avoid duplicate setting of fields.  Handle
11235         OMP_CLAUSE_PRIVATE_OUTER_REF.
11236         (lower_send_shared_vars): Use srecord_type if non-NULL.  Don't
11237         copy-out if TREE_READONLY, only copy-in.
11238         (expand_task_copyfn): New function.
11239         (expand_task_call): New function.
11240         (struct omp_taskcopy_context): New type.
11241         (task_copyfn_copy_decl, task_copyfn_remap_type, create_task_copyfn):
11242         New functions.
11243         (lower_omp_parallel): Rename to...
11244         (lower_omp_taskreg): ... this.  Use OMP_TASKREG_* macros where needed.
11245         Call create_task_copyfn if srecord_type is needed.  Adjust
11246         sender_decl type.
11247         (task_shared_vars): New variable.
11248         (check_omp_nesting_restrictions): Warn if work-sharing,
11249         barrier, master or ordered region is closely nested inside OMP_TASK.
11250         Add warnings for barrier if closely nested inside of work-sharing,
11251         ordered, or master region.
11252         (scan_omp_1): Call check_omp_nesting_restrictions even for
11253         GOMP_barrier calls.  Rename parallel_nesting_level to
11254         taskreg_nesting_level.  Handle OMP_TASK.
11255         (lower_lastprivate_clauses): Even if some lastprivate is found on a
11256         work-sharing construct, continue looking for them on parent parallel
11257         construct.
11258         (lower_omp_for_lastprivate): Add lastprivate clauses
11259         to the beginning of dlist rather than end.  Adjust for struct
11260         omp_for_data changes.
11261         (lower_omp_for): Add rec input clauses before OMP_FOR_PRE_BODY,
11262         not after it.  Handle collapsed OMP_FOR loops, adjust for
11263         OMP_FOR_{INIT,COND,INCR} changes, adjust extract_omp_for_data caller.
11264         (get_ws_args_for): Adjust extract_omp_for_data caller.
11265         (scan_omp_for): Handle collapsed OMP_FOR
11266         loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
11267         (lower_omp_single_simple): If libgomp function doesn't return
11268         boolean_type_node, add comparison of the return value with 0.
11269         (diagnose_sb_1, diagnose_sb_2): Handle collapsed OMP_FOR
11270         loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.  Handle OMP_TASK.
11271         (parallel_nesting_level): Rename to...
11272         (taskreg_nesting_level): ... this.
11273         (is_taskreg_ctx): New function.
11274         (build_outer_var_ref, omp_copy_decl): Use is_taskreg_ctx instead
11275         of is_parallel_ctx.
11276         (execute_lower_omp): Rename parallel_nesting_level to
11277         taskreg_nesting_level.
11278         (expand_omp_parallel): Rename to...
11279         (expand_omp_taskreg): ... this.  Use OMP_TASKREG_* macros where needed.
11280         Call omp_task_call for OMP_TASK regions.
11281         (expand_omp): Adjust caller, handle OMP_TASK.
11282         (lower_omp_1): Adjust lower_omp_taskreg caller, handle OMP_TASK.
11283
11284         * bitmap.c (bitmap_default_obstack_depth): New variable.
11285         (bitmap_obstack_initialize, bitmap_obstack_release): Do nothing
11286         if argument is NULL and bitmap_default_obstack is already initialized.
11287         * ipa-struct-reorg.c (do_reorg_1): Call bitmap_obstack_release
11288         at the end.
11289         * matrix-reorg.c (matrix_reorg): Likewise.
11290
11291 2008-06-06  Uros Bizjak  <ubizjak@gmail.com>
11292
11293         * config/i386/i386.md (*indirect_jump): Macroize using P
11294         mode iterator.  Remove !TARGET_64BIT from insn constraints.
11295         (*tablejump_1): Ditto.
11296         (*indirect_jump_rex64): Remove insn pattern.
11297         (*tablejump_1_rex64): Ditto.
11298         (eh_return_<mode>): Macroize using P mode iterator from eh_return_di
11299         and eh_return_si insn patterns.
11300
11301 2008-06-06  Richard Guenther  <rguenther@suse.de>
11302
11303         * tree-ssa-structalias.c (merge_smts_into): Remove.
11304         (find_what_p_points_to): Do not bother to compute the
11305         points-to set for pt_anything pointers.
11306         * tree-ssa-operands.c (get_addr_dereference_operands): No NMT
11307         for pt_anything pointers is ok.
11308
11309 2008-06-06  Jan Hubicka  <jh@suse.cz>
11310
11311         * passes.c (execute_ipa_pass_list): Do not regenerate summaries.
11312
11313 2008-06-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11314
11315         * cgraph.c: Fix typos in comments.
11316         (cgraph_availability_names): Fix string typo.
11317         * fold-const.c: Fix typos in comments.
11318         (fold_binary): Fix typo in warning.
11319         * genautomata.c: Fix typos in comments.
11320         (check_presence_pattern_sets): Fix typo in local variable.
11321         (output_description): Fix typo in output.
11322         * ggc-zone.c (ggc_pch_finish): Fix typo in error message.
11323         * hwint.h: Likewise.
11324         * matrix-reorg.c (check_allocation_function): Likewise.
11325         * omega.c (smooth_weird_equations): Likewise.
11326         * auto-inc-dec.c: Fix typos in comments.
11327         * bb-reorder.c: Likewise.
11328         * builtins.c: Likewise.
11329         * c-common.c: Likewise.
11330         * c-cppbuiltin.c: Likewise.
11331         * c-parser.c: Likewise.
11332         * c-pretty-print.c: Likewise.
11333         * cfgcleanup.c: Likewise.
11334         * cfgexpand.c: Likewise.
11335         * cfghooks.c: Likewise.
11336         * cfglayout.c: Likewise.
11337         * cfgloopmanip.c: Likewise.
11338         * cgraphunit.c: Likewise.
11339         * coverage.c: Likewise.
11340         * dbxout.c: Likewise.
11341         * df-byte-scan.c: Likewise.
11342         * df-core.c: Likewise.
11343         * df-problems.c: Likewise.
11344         * df-scan.c: Likewise.
11345         * dfp.c: Likewise.
11346         * dominance.c: Likewise.
11347         * domwalk.c: Likewise.
11348         * dse.c: Likewise.
11349         * dwarf2out.c: Likewise.
11350         * emit-rtl.c: Likewise.
11351         * et-forest.c: Likewise.
11352         * function.c: Likewise.
11353         * function.h: Likewise.
11354         * gcc.c: Likewise.
11355         * gcov-io.c: Likewise.
11356         * gcov.c: Likewise.
11357         * gcse.c: Likewise.
11358         * genattrtab.c: Likewise.
11359         * ggc-page.c: Likewise.
11360         * gimplify.c: Likewise.
11361         * gthr-lynx.h: Likewise.
11362         * haifa-sched.c: Likewise.
11363         * ipa-cp.c: Likewise.
11364         * ipa-inline.c: Likewise.
11365         * ipa-prop.h: Likewise.
11366         * ipa-pure-const.c: Likewise.
11367         * ipa-struct-reorg.c: Likewise.
11368         * ipa-struct-reorg.h: Likewise.
11369         * ipa-type-escape.c: Likewise.
11370         * ipa.c: Likewise.
11371         * loop-doloop.c: Likewise.
11372         * mips-tfile.c: Likewise.
11373         * mkmap-flat.awk: Likewise.
11374         * mkmap-symver.awk: Likewise.
11375         * modulo-sched.c: Likewise.
11376         * omp-low.c: Likewise.
11377         * optabs.c: Likewise.
11378         * optabs.h: Likewise.
11379         * opts.c: Likewise.
11380         * passes.c: Likewise.
11381         * postreload-gcse.c: Likewise.
11382         * postreload.c: Likewise.
11383         * predict.c: Likewise.
11384         * pretty-print.h: Likewise.
11385         * profile.c: Likewise.
11386         * protoize.c: Likewise.
11387         * ra-conflict.c: Likewise.
11388         * real.c: Likewise.
11389         * recog.c: Likewise.
11390         * regclass.c: Likewise.
11391         * regs.h: Likewise.
11392         * reload.c: Likewise.
11393         * rtl-error.c: Likewise.
11394         * rtlanal.c: Likewise.
11395         * scan.h: Likewise.
11396         * sched-rgn.c: Likewise.
11397         * see.c: Likewise.
11398         * stmt.c: Likewise.
11399         * target.h: Likewise.
11400         * tree-dfa.c: Likewise.
11401         * tree-eh.c: Likewise.
11402         * tree-flow-inline.h: Likewise.
11403         * tree-inline.c: Likewise.
11404         * tree-into-ssa.c: Likewise.
11405         * tree-loop-distribution.c: Likewise.
11406         * tree-nested.c: Likewise.
11407         * tree-parloops.c: Likewise.
11408         * tree-pass.h: Likewise.
11409         * tree-pretty-print.c: Likewise.
11410         * tree-profile.c: Likewise.
11411         * tree-scalar-evolution.c: Likewise.
11412         * tree-sra.c: Likewise.
11413         * tree-ssa-alias-warnings.c: Likewise.
11414         * tree-ssa-ccp.c: Likewise.
11415         * tree-ssa-coalesce.c: Likewise.
11416         * tree-ssa-dom.c: Likewise.
11417         * tree-ssa-dse.c: Likewise.
11418         * tree-ssa-forwprop.c: Likewise.
11419         * tree-ssa-live.c: Likewise.
11420         * tree-ssa-live.h: Likewise.
11421         * tree-ssa-loop-im.c: Likewise.
11422         * tree-ssa-loop-ivopts.c: Likewise.
11423         * tree-ssa-loop-niter.c: Likewise.
11424         * tree-ssa-loop-prefetch.c: Likewise.
11425         * tree-ssa-phiopt.c: Likewise.
11426         * tree-ssa-phiprop.c: Likewise.
11427         * tree-ssa-sccvn.c: Likewise.
11428         * tree-ssa-ter.c: Likewise.
11429         * tree-ssa-threadupdate.c: Likewise.
11430         * tree-ssa.c: Likewise.
11431         * tree-vect-analyze.c: Likewise.
11432         * tree-vect-transform.c: Likewise.
11433         * tree-vectorizer.c: Likewise.
11434         * tree-vn.c: Likewise.
11435         * tree-vrp.c: Likewise.
11436         * tree.c: Likewise.
11437         * tree.def: Likewise.
11438         * tree.h: Likewise.
11439         * unwind-dw2-fde.c: Likewise.
11440         * unwind.inc: Likewise.
11441         * value-prof.c: Likewise.
11442         * vmsdbgout.c: Likewise.
11443
11444 2008-06-05  David Edelsohn  <edelsohn@gnu.org>
11445
11446         * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Do not
11447         always place FP constants in the TOC for TARGET_POWERPC64.
11448         * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Same.
11449
11450 2008-06-05  Joseph Myers  <joseph@codesourcery.com>
11451
11452         * config.gcc (powerpc-*-linux*spe*): Use t-dfprules.
11453         * config/rs6000/dfp.md (negdd2, absdd2, negtd2, abstd2): Do not
11454         enable for TARGET_E500_DOUBLE.
11455         (*movdd_softfloat32): Also enable for !TARGET_FPRS.
11456         * config/rs6000/rs6000.c (invalid_e500_subreg): Treat decimal
11457         floating-point modes like integer modes for E500 double.
11458         (rs6000_legitimate_offset_address_p): Likewise.
11459         (rs6000_legitimize_address): Likewise.  Do not allow REG+REG
11460         addressing for DDmode for E500 double.
11461         (rs6000_hard_regno_nregs): Do not treat decimal floating-point
11462         modes as using 64-bits of registers for E500 double.
11463         (spe_build_register_parallel): Do not handle DDmode or TDmode.
11464         (rs6000_spe_function_arg): Do not handle DDmode or TDmode
11465         specially for E500 double.
11466         (function_arg): Do not call rs6000_spe_function_arg for DDmode or
11467         TDmode for E500 double.
11468         (rs6000_gimplify_va_arg): Only handle SDmode in registers
11469         specially if TARGET_HARD_FLOAT && TARGET_FPRS.
11470         (rs6000_split_multireg_move): Do not handle TDmode specially for
11471         E500 double.
11472         (spe_func_has_64bit_regs_p): Do not treat DDmode or TDmode as
11473         using 64-bit registers for E500 double.
11474         (emit_frame_save): Do not handle DDmode specially for E500 double.
11475         (gen_frame_mem_offset): Likewise.
11476         (rs6000_function_value): Do not call spe_build_register_parallel
11477         for DDmode or TDmode.
11478         (rs6000_libcall_value): Likewise.
11479         * config/rs6000/rs6000.h (LOCAL_ALIGNMENT, MEMBER_TYPE_FORCES_BLK,
11480         DATA_ALIGNMENT, CLASS_MAX_NREGS): Do not handle DDmode specially
11481         for E500 double.
11482
11483 2008-06-04  H.J. Lu  <hongjiu.lu@intel.com>
11484
11485         * config/i386/i386.c (setup_incoming_varargs_64): Fix a typo
11486         in comments.
11487
11488 2008-06-04  Junjie Gu <jgu@tensilica.com>
11489
11490         * config/xtensa/lib2funcs.S (__xtensa_nonlocal_goto): Use unsigned
11491         comparison for frame pointers.
11492
11493 2008-06-04  Andy Hutchinson  <hutchinsonandy@aim.com>
11494
11495         PR target/27386
11496         * config/avr/avr.h (PUSH_ROUNDING): Remove.
11497
11498 2008-06-04  Andy Hutchinson  <hutchinsonandy@aim.com>
11499
11500         PR target/30243
11501         * builtins.c (expand_builtin_signbit): Don't take lowpart when
11502         register is already smaller or equal to required mode.
11503
11504 2008-06-04  Xinliang David Li  <davidxl@google.com>
11505
11506         * tree-call-cdce.c: New file.
11507         (cond_dead_built_in_calls): New static variable.
11508         (input_domain): New struct.
11509         (check_pow): New function.
11510         (check_builtin_call): Ditto.
11511         (check_target_format): Ditto.
11512         (is_call_dce_candidate): Ditto.
11513         (gen_one_condition): Ditto.
11514         (gen_conditions_for_domain): Ditto.
11515         (get_domain): Ditto.
11516         (gen_conditions_for_pow_cst_base): Ditto.
11517         (gen_conditions_for_pow_int_base): Ditto.
11518         (gen_conditions_for_pow): Ditto.
11519         (get_no_error_domain): Ditto.
11520         (gen_shrink_wrap_conditions): Ditto.
11521         (shrink_wrap_one_built_in_call): Ditto.
11522         (shink_wrap_conditional_dead_built_in_calls): Ditto.
11523         (tree_call_cdce): Ditto.
11524         (gate_call_cdce): Ditto.
11525         (pass_call_cdce): New gimple pass.
11526         * passes.c: (init_optimization_passes): New pass.
11527         * tree-pass.h: New pass declaration.
11528         * opts.c (decode_options): New flag setting.
11529         * common.opt: Add -ftree-builtin-call-dce flag.
11530         * Makefile.in: Add new source file.
11531         * tempvar.def: New tv_id.
11532         * doc/invoke.texi (-ftree-builtin-call-dce): New flag.
11533
11534 2008-06-04  Richard Guenther  <rguenther@suse.de>
11535
11536         * tree-flow-inline.h (is_global_var): Do not check TREE_STATIC on MTAGs.
11537         (is_call_clobbered): Always check var_ann->call_clobbered.
11538         (mark_call_clobbered): Always set var_ann->call_clobbered.
11539         (clear_call_clobbered): Always clear var_ann->call_clobbered.
11540         * tree-ssa-alias.c (mark_non_addressable): Use clear_call_clobbered.
11541         (reset_alias_info): Clear call clobbering info on MTAGs and
11542         globals as well.
11543         (set_pt_anything): Set pt_global_mem.
11544         (create_tag_raw): Adjust comment.
11545         (may_be_aliased): Do not check TREE_PUBLIC on MTAGs.
11546
11547 2008-06-04  Joseph Myers  <joseph@codesourcery.com>
11548             Maxim Kuvyrkov  <maxim@codesourcery.com>
11549
11550         * config/m68k/m68k.opt (mxgot): New option.
11551         * config/m68k/m68k.c (legitimize_pic_address): Handle -mxgot.
11552         (m68k_output_addr_const_extra): New.
11553         * config/m68k/m68k.h (OUTPUT_ADDR_CONST_EXTRA): New.
11554         * config/m68k/m68k-protos.h (m68k_output_addr_const_extra): Declare.
11555         * config/m68k/m68k.md (UNSPEC_GOTOFF): Define.
11556         * doc/invoke.texi (M680x0 Options): Document -mxgot.
11557
11558 2008-06-04  Richard Guenther  <rguenther@suse.de>
11559
11560         * tree-ssa-structalias.c (handle_ptr_arith): Correctly handle
11561         negative or non-representable offsets.
11562
11563 2008-06-03  H.J. Lu  <hongjiu.lu@intel.com>
11564
11565         * config/i386/i386.c (ix86_gen_leave): New.
11566         (ix86_gen_pop1): Likewise.
11567         (ix86_gen_add3): Likewise.
11568         (ix86_gen_sub3): Likewise.
11569         (ix86_gen_sub3_carry): Likewise.
11570         (ix86_gen_one_cmpl2): Likewise.
11571         (ix86_gen_monitor): Likewise.
11572         (override_options): Initialize ix86_gen_leave, ix86_gen_pop1,
11573         ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
11574         ix86_gen_one_cmpl2 and ix86_gen_monitor.
11575         (ix86_file_end): Use mov%z0 instead of mov{q}/mov{l}.
11576         (output_set_got): Use mov%z0, pop%z0 and add%z0 instead of
11577         mov{q}/mov{l}, pop{q}/pop{l} and add{q}/add{l}.
11578         (ix86_expand_epilogue): Updated.
11579         (print_operand): Handle integer register operand for 'z'.
11580         (ix86_expand_strlensi_unroll_1): Likewise.
11581         (ix86_expand_strlen): Likewise.
11582         (ix86_expand_builtin): Likewise.
11583         (x86_output_mi_thunk): Use mov%z1 and add%z1 instead of
11584         mov{q}/mov{l} and add{q}/add{l}.
11585
11586 2008-06-03  Kai Tietz  <kai.tietz@onevision.com>
11587
11588         * config/i386/i386.md (P): New mode iterator.
11589         (SFmode push_operand splitter): Macroize DImode and SImode pushes
11590         using P mode iterator.
11591         (DFmode push_operand splitter): Ditto.
11592         (XFmode push_operand splitter): Ditto.
11593         (DFmode float_extend SFmode push_operand splitter): Ditto.
11594         (XFmode float_extend SFmode push_operand splitter): Do not generate
11595         SImode pushes for 64bit target.  Macroize Dimode and SImode
11596         pushes using P mode iterator.
11597         (XFmode float_extend DFmode push_operand splitter): Ditto.
11598
11599 2008-06-03  Kai Tietz  <kai.tietz@onevision.com>
11600
11601         * config/i386/i386-protos.h (ix86_reg_parm_stack_space): New.
11602         * config/i386/i386.h (ix86_reg_parm_stack_space): Removed prototype.
11603         * config/i386/i386.c (ix86_reg_parm_stack_space): Changed
11604         return type to int.
11605         (ix86_call_abi_override): Remove check for call_used_regs.
11606
11607 2008-06-03  Richard Guenther  <rguenther@suse.de>
11608
11609         * tree-ssa-structalias.c (find_func_aliases): Add constraints
11610         for the lhs of calls if the return type contains pointers.
11611
11612 2008-06-03  Kai Tietz  <kai.tietz@onevision.com>
11613
11614         * doc/tm.texi (OVERRIDE_ABI_FORMAT): New.
11615         * doc/extend.texi (ms_abi,sysv_abi): New attribute description.
11616         * function.c (allocate_struct_function): Use of OVERRIDE_ABI_FORMAT.
11617         * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Make use
11618         of cfun and DEFAULT_ABI to deceide abi mode.
11619         (DEFAULT_ABI): New.
11620         (REG_PARM_STACK_SPACE): Removed.
11621         (OUTGOING_REG_PARM_STACK_SPACE): Removed.
11622         (STACK_BOUNDARY): Use default target to deceide stack boundary.
11623         * config/i386/i386-protos.h (ix86_cfun_abi): New.
11624         (ix86_function_abi): Likewise.
11625         (ix86_function_type_abi): Likewise.
11626         (ix86_call_abi_override): Likewise.
11627         * confid/i386/i386.md (SSE_REGPARM_MAX): Replaced by abi
11628         specific define X86_64_SSE_REGPARM_MAX/X64_SSE_REGPARM_MAX.
11629         * config/i386/i386.c (override_options): Replace TARGET_64BIT_MS_ABI.
11630         (X86_64_VARARGS_SIZE): Replace REGPARM_MAX and SSE_REGPARM_MAX by abi
11631         specific defines.
11632         (X86_64_REGPARM_MAX): New.
11633         (X86_64_SSE_REGPARM_MAX): New.
11634         (X64_REGPARM_MAX): New.
11635         (X64_SSE_REGPARM_MAX): New.
11636         (X86_32_REGPARM_MAX): New.
11637         (X86_32_SSE_REGPARM_MAX): New.
11638         (ix86_handle_cconv_attribute): Replace TARGET_64BIT_MS_ABI.
11639         (ix86_function_regparm): Handle user calling abi.
11640         (ix86_function_arg_regno_p): Replace TARGET_64BIT_MS_ABI
11641         by DEFAULT_ABI versus SYSV_ABI check.
11642         (ix86_reg_parm_stack_space): New.
11643         (ix86_function_type_abi): New.
11644         (ix86_call_abi_override): New.
11645         (ix86_function_abi): New.
11646         (ix86_cfun_abi): New.
11647         (init_cumulative_args): Call abi specific initialization.
11648         (function_arg_advance): Remove TARGET_64BIT_MS_ABI.
11649         (function_arg_64): Extend SSE_REGPARM_MAX check.
11650         (function_arg (): Remove TARGET_64BIT_MS_ABI.
11651         (ix86_pass_by_reference): Likewise.
11652         (ix86_function_value_regno_p): Likewise.
11653         (function_value_64): Replace REGPARM_MAX, and SSE_REGPARM_MAX.
11654         (ix86_function_value_1): Replace TARGET_64BIT_MS_ABI.
11655         (return_in_memory_ms_64): Replace TARGET_64BIT_MS_ABI.
11656         (ix86_build_builtin_va_list): Replace TARGET_64BIT_MS_ABI.
11657         (setup_incoming_varargs_64): Adjust regparm for call abi.
11658         (ix86_setup_incoming_varargs): Replace TARGET_64BIT_MS_ABI.
11659         (ix86_va_start): Likewise.
11660         (ix86_gimplify_va_arg): Likewise.
11661         (ix86_expand_prologue): Likewise.
11662         (output_pic_addr_const): Likewise.
11663         (ix86_init_machine_status): Initialize call_abi by DEFAULT_ABI.
11664         (x86_this_parameter): Replace TARGET_64BIT_MS_ABI.
11665         (x86_output_mi_thunk): Likewise.
11666         (x86_function_profiler): Likewise.
11667         * config/i386/i386.h (TARGET_64BIT_MS_ABI): Use ix64_cfun_abi.
11668         (SYSV_ABI, MS_ABI): New constants.
11669         (DEFAULT_ABI): New.
11670         (init_regs): Add prototype of function in regclass.c file.
11671         (OVERRIDE_ABI_FORMAT): New.
11672         (CONDITIONAL_REGISTER_USAGE): Remove TARGET_64BIT_MS_ABI part.
11673         (REG_PARM_STACK_SPACE): Use ix86_reg_parm_stack_space.
11674         (OUTGOING_REG_PARM_STACK_SPACE): New.
11675         (ix86_reg_parm_stack_space): New prototype.
11676         (CUMULATIVE_ARGS): Add call_abi member.
11677         (machine_function): Add call_abi member.
11678         * config/i386/mingw32.h (EXTRA_OS_CPP_BUILTINS): Replace
11679         TARGET_64BIT_MS_ABI by DEFAULT_ABI compare to MS_ABI.
11680
11681 2008-06-02  Andy Hutchinson  <hutchinsonandy@aim.com>
11682
11683         PR target/34879
11684         * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Redefine.
11685         (avr_builtin_setjmp_frame_value): New function.
11686         * config/avr/avr.md (nonlocal_goto_receiver): Define.
11687         (nonlocal_goto): Define.
11688
11689 2008-06-02  Richard Sandiford  <rdsandiford@googlemail.com>
11690
11691         * config/mips/mips.c (mips_emit_loadgp): Return early if
11692         there is nothing do to, otherwise emit a blockage if
11693         !TARGET_EXPLICIT_RELOCS || crtl->profile.
11694         * config/mips/mips.md (loadgp_blockage): Use SI rather than DI.
11695
11696 2008-06-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11697
11698         * configure.ac: Drop unneeded backslash ending up in config.in.
11699         * acinclude.m4: Likewise.
11700         * config.in: Regenerate.
11701
11702 2008-05-26  Jan Hubicka  <jh@suse.cz>
11703
11704         * predict.c (maybe_hot_frequency_p): Break out of...
11705         (maybe_hot_bb_p): ... here.
11706         (maybe_hot_edge_p): New.
11707         * tree-ssa-coalesce.c (coalesce_cost_edge): Compute cost based on edge.
11708         * basic-block.h (maybe_hot_edge_p): Declare.
11709
11710 2008-05-31  Uros Bizjak  <ubizjak@gmail.com>
11711
11712         * config/i386/i386.md (*cmpfp_<mode>): Enable for optimize_size.
11713         (*cmpfp_<mode>_cc): Ditto.
11714         (*fp_jcc_8<mode>_387): Ditto.
11715         (*fop_<MODEF:mode>_2_i387): Ditto.
11716         (*fop_<MODEF:mode>_3_i387): Ditto.
11717         (*fop_xf_2_i387): Ditto.
11718         (*fop_xf_3_i387): Ditto.
11719
11720 2008-06-02  Tomas Bily  <tbily@suse.cz>
11721
11722         * tree-ssa-ifcombine.c (get_name_for_bit_test): Use CONVERT_EXPR_P.
11723
11724 2008-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
11725
11726         * config/mips/mips.c (mips_valid_offset_p): New function.
11727         (mips_valid_lo_sum_p): Likewise.
11728         (mips_classify_address): Use them.
11729         (mips_force_address): New function.
11730         (mips_legitimize_address): Use it.
11731         * config/mips/mips.md (MOVE128): New mode iterator.
11732         (movtf): Require TARGET_64BIT.  Remove empty strings.
11733         (*movtf_internal): Rename to...
11734         (*movtf): ...this and require !TARGET_MIPS16.  Use "m" instead
11735         of "R" and use {,fp}{load,store} attributes instead of "multi".
11736         Use a separate define_split.
11737         (*movtf_mips16): New pattern.
11738
11739 2008-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
11740
11741         * config/mips/mips-protos.h (mips_expand_before_return): Declare.
11742         * config/mips/mips.c (mips_expand_before_return): New function.
11743         (mips_expand_epilogue): Call it.
11744         * config/mips/mips.md (return): Turn into a define_expand.
11745         (*return): New insn.
11746
11747 2008-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
11748
11749         * rtl.h (emit_clobber, gen_clobber, emit_use, gen_use): Declare.
11750         * emit-rtl.c (emit_clobber, gen_clobber, emit_use, gen_use): New
11751         functions.  Do not emit uses and clobbers of CONCATs; individually
11752         use and clobber their operands.
11753         * builtins.c (expand_builtin_setjmp_receiver): Use emit_clobber,
11754         gen_clobber, emit_use and gen_use.
11755         (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
11756         (expand_builtin_return): Likewise.
11757         * cfgbuild.c (count_basic_blocks): Likewise.
11758         * cfgrtl.c (rtl_flow_call_edges_add): Likewise.
11759         * explow.c (emit_stack_restore): Likewise.
11760         * expmed.c (extract_bit_field_1): Likewise.
11761         * expr.c (convert_move, emit_move_complex_parts): Likewise.
11762         (emit_move_multi_word, store_constructor): Likewise.
11763         * function.c (do_clobber_return_reg, do_use_return_reg): Likewise.
11764         (thread_prologue_and_epilogue_insns): Likewise.
11765         * lower-subreg.c (resolve_simple_move): Likewise.
11766         * optabs.c (widen_operand, expand_binop): Likewise.
11767         (expand_doubleword_bswap, emit_no_conflict_block): Likewise.
11768         * reload.c (find_reloads): Likewise.
11769         * reload1.c (eliminate_regs_in_insn): Likewise.
11770         * stmt.c (expand_nl_goto_receiver): Likewise.
11771         * config/alpha/alpha.md (builtin_longjmp): Likewise.
11772         * config/arc/arc.md (*movdi_insn, *movdf_insn): Likewise.
11773         * config/arm/arm.c (arm_load_pic_register): Likewise.
11774         (thumb1_expand_epilogue, thumb_set_return_address): Likewise.
11775         * config/arm/arm.md (untyped_return): Likewise.
11776         * config/arm/linux-elf.h (PROFILE_HOOK): Likewise.
11777         * config/avr/avr.c (expand_prologue): Likewise.
11778         * config/bfin/bfin.c (do_unlink): Likewise.
11779         * config/bfin/bfin.md (<optab>di3, adddi3, subdi3): Likewise.
11780         * config/cris/cris.c (cris_expand_prologue): Likewise.
11781         * config/darwin.c (machopic_indirect_data_reference): Likewise.
11782         (machopic_legitimize_pic_address): Likewise.
11783         * config/frv/frv.c (frv_frame_access, frv_expand_epilogue): Likewise.
11784         (frv_ifcvt_modify_insn, frv_expand_mdpackh_builtin): Likewise.
11785         * config/i386/i386.c (ix86_expand_vector_move_misalign): Likewise.
11786         (ix86_expand_convert_uns_didf_sse): Likewise.
11787         (ix86_expand_vector_init_general): Likewise.
11788         * config/ia64/ia64.md (eh_epilogue): Likewise.
11789         * config/iq2000/iq2000.c (iq2000_expand_epilogue): Likewise.
11790         * config/m32c/m32c.c (m32c_emit_eh_epilogue): Likewise.
11791         * config/m32r/m32r.c (m32r_reload_lr): Likewise.
11792         (config/iq2000/iq2000.c): Likewise.
11793         * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
11794         (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
11795         (builtin_longjmp): Likewise.
11796         * config/mn10300/mn10300.md (call, call_value): Likewise.
11797         * config/pa/pa.md (nonlocal_goto, nonlocal_longjmp): Likewise.
11798         * config/pdp11/pdp11.md (abshi2): Likewise.
11799         * config/rs6000/rs6000.c (rs6000_emit_move): Likewise.
11800         * config/s390/s390.c (s390_emit_prologue): Likewise.
11801         * config/s390/s390.md (movmem_long, setmem_long): Likewise.
11802         (cmpmem_long, extendsidi2, zero_extendsidi2, udivmoddi4): Likewise.
11803         (builtin_setjmp_receiver, restore_stack_nonlocal): Likewise.
11804         * config/sh/sh.c (prepare_move_operands): Likewise.
11805         (output_stack_adjust, sh_expand_epilogue): Likewise.
11806         (sh_set_return_address, sh_expand_t_scc): Likewise.
11807         * config/sparc/sparc.c (load_pic_register): Likewise.
11808         * config/sparc/sparc.md (untyped_return, nonlocal_goto): Likewise.
11809         * config/spu/spu.c (spu_expand_epilogue): Likewise.
11810         * config/v850/v850.c (expand_epilogue): Likewise.
11811
11812 2008-05-31  Anatoly Sokolov  <aesok@post.ru>
11813
11814         * config/avr/avr.md (UNSPECV_WRITE_SP_IRQ_ON): New constants.
11815         (UNSPECV_WRITE_SP_IRQ_OFF): (Ditto.).
11816         (movhi_sp_r_irq_off, movhi_sp_r_irq_on): New insn.
11817         * config/avr/avr.c (expand_prologue, expand_epilogue): Use
11818         movhi_sp_r_irq_off and movhi_sp_r_irq_on insns for writing to the
11819         stack pointer register.
11820         (output_movhi): Remove code for interrupt specific writing to the
11821         stack pointer register.
11822
11823 2008-05-31  Richard Guenther  <rguenther@suse.de>
11824
11825         PR tree-optimization/34244
11826         * fold-const.c (tree_expr_nonnegative_warnv_p): Do not ask VRP.
11827         (tree_expr_nonzero_warnv_p): Likewise.
11828         * tree-vrp.c (vrp_expr_computes_nonnegative): Call
11829         ssa_name_nonnegative_p.
11830         (vrp_expr_computes_nonzero): Call ssa_name_nonzero_p.
11831         (extract_range_from_unary_expr): Use vrp_expr_computes_nonzero,
11832         not tree_expr_nonzero_warnv_p.
11833
11834         PR tree-optimization/36262
11835         Revert
11836         2007-11-29  Zdenek Dvorak  <ook@ucw.cz>
11837
11838         PR tree-optimization/34244
11839         * tree-vrp.c (adjust_range_with_scev): Clear scev cache.
11840         (record_numbers_of_iterations): New function.
11841         (execute_vrp): Cache the numbers of iterations of loops.
11842         * tree-scalar-evolution.c (scev_reset_except_niters):
11843         New function.
11844         (scev_reset): Use scev_reset_except_niters.
11845         * tree-scalar-evolution.h (scev_reset_except_niters): Declare.
11846
11847 2008-05-31  Bernd Schmidt  <bernd.schmidt@analog.com>
11848
11849         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
11850         __WORKAROUND_RETS when appropriate.
11851
11852 2008-05-31  Uros Bizjak  <ubizjak@gmail.com>
11853
11854         * config/i386/i386.md (*fop_<mode>_comm_mixed): Macroize from
11855         *fop_sf_comm_mixed and *fop_df_comm_mixed insn patterns using MODEF
11856         mode iterator.
11857         (*fop_<mode>_comm_sse): Macroize from *fop_sf_comm_sse and
11858         *fop_df_comm_sse insn patterns using MODEF mode iterator.
11859         (*fop_<mode>_comm_i387): Macroize from *fop_sf_comm_i387 and
11860         *fop_df_comm_i387 insn patterns using MODEF mode iterator.
11861         (*fop_<mode>_1_mixed): Macroize from *fop_sf_1_mixed and
11862         *fop_df_1_mixed insn patterns using MODEF mode iterator.
11863         (*fop_<mode>_1_sse): Macroize from *fop_sf_1_sse and
11864         *fop_df_1_sse insn patterns using MODEF mode iterator.
11865         (*fop_<mode>_1_i387): Macroize from *fop_sf_1_i387 and
11866         *fop_df_1_i387 insn patterns using MODEF mode iterator.
11867         (*fop_<MODEF:mode>_2_i387): Macroize from *fop_sf_2<mode>_i387 and
11868         *fop_df_2<mode>_i387 insn patterns using MODEF mode iterator.
11869         (*fop_<MODEF:mode>_3_i387): Macroize from *fop_sf_3<mode>_i387 and
11870         *fop_df_3<mode>_i387 insn patterns using MODEF mode iterator.
11871         (*fop_xf_2_i387): Rename from *fop_xf_2<mode>_i387.
11872         (*fop_xf_3_i387): Rename from *fop_xf_3<mode>_i387.
11873         (*fop_xf_4_i387): Use <MODE> for mode attribute.
11874         (*fop_xf_5_i387): Ditto.
11875         (*fop_xf_6_i387): Ditto.
11876
11877 2008-05-30  Richard Guenther  <rguenther@suse.de>
11878
11879         * builtins.c (build_string_literal): Avoid generating
11880         a non-gimple_val result.
11881
11882 2008-05-30  DJ Delorie  <dj@redhat.com>
11883
11884         * exec-tool.in: Use an environment variable (private) instead of a
11885         file (shared) as a semaphore, so as to not break parallel builds.
11886
11887 2008-05-30  Steven Bosscher  <stevenb.gcc@gmail.com>
11888
11889         * optabs.c (maybe_encapsulate_block): Remove.
11890         (emit_libcall_block): Adjust accordingly.
11891         * optabs.h (maybe_encapsulate_block): Remove prototype.
11892
11893         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address):
11894         Don't use maybe_encapsulate_block.
11895
11896 2008-05-30  Steven Bosscher  <stevenb.gcc@gmail.com>
11897
11898         * config/rs6000/rs6000.c (rs6000_legitimize_address,
11899         rs6000_legitimize_reload_address, rs6000_emit_move): Make sure an
11900         rtx is a SYMBOL_REF before calling get_pool_constant.
11901
11902 2008-05-30  Eric Botcazou  <ebotcazou@adacore.com>
11903
11904         * fold-const.c (fold_unary) <CASE_CONVERT>: Add ??? comment.
11905
11906 2008-05-30  Danny Smith  <dannysmith@users.sourceforge.net>
11907
11908         * incpath.c: Use HOST_LACKS_INODE_NUMBERS conditional
11909         rather than OS names to choose INO_T_EQ definition.
11910         (DIRS_EQ) [!INO_T_EQ]: Don't worry about case in comparison.
11911         (add_path) [!INO_T_EQ]: Use lrealpath to fill canonical_name field.
11912
11913 2008-05-29  Daniel Franke  <franke.daniel@gmail.com>
11914
11915         PR target/36348
11916         * config/darwin-f.c: New.
11917         * config/t-darwin: Added rule to build darwin-f.o.
11918         * config.gcc: Defined new variable, fortran_target_objs.
11919         (*-*-darwin*): Set fortran_target_objs.
11920         * Makefile.in: Defined new variable FORTRAN_TARGET_OBJS.
11921         * configure.ac: Substitute fortran_target_objs, set FORTRAN_TARGET_OBJS.
11922         * configure: Regenerated.
11923
11924 2008-05-29  H.J. Lu  <hongjiu.lu@intel.com>
11925
11926         PR target/35771
11927         * config/i386/i386.c (ix86_function_arg_boundary): Convert to
11928         canonical type if needed.
11929
11930 2008-05-29  Eric Botcazou  <ebotcazou@adacore.com>
11931
11932         * tree-nested.c (check_for_nested_with_variably_modified): Fix typo.
11933
11934 2008-05-29  Richard Guenther  <rguenther@suse.de>
11935
11936         PR tree-optimization/36343
11937         PR tree-optimization/36346
11938         PR tree-optimization/36347
11939         * tree-flow.h (clobber_what_p_points_to): Declare.
11940         * tree-ssa-structalias.c (set_uids_in_ptset): Whether the
11941         pointed-to variable is dereferenced is irrelevant to whether
11942         the pointer can access the pointed-to variable.
11943         (clobber_what_p_points_to): New function.
11944         * tree-ssa-alias.c (set_initial_properties): Use it.
11945         * tree-ssa.c (verify_flow_sensitive_alias_info): Adjust
11946         call clobber check for NMTs.
11947
11948 2008-05-28  Seongbae Park  <seongbae.park@gmail.com>
11949
11950         * value-prof.c (tree_ic_transform): Use HOST_WIDEST_INT_PRINT_DEC
11951         for printing gcov_type.
11952
11953 2008-05-28  Seongbae Park  <seongbae.park@gmail.com>
11954
11955         * tree-ssa-propagate.c (set_rhs): Preserve the histogram
11956         and the eh region information.
11957         * value-prof.c (gimple_move_stmt_histograms): New function.
11958         * value-prof.h (gimple_move_stmt_histograms): New function declaration.
11959
11960 2008-05-28  Andreas Tobler  <a.tobler@schweiz.org>
11961
11962         * config/pa/pa.md: Remove extern frame_pointer_needed declaration.
11963
11964 2008-05-28  Seongbae Park <seongbae.park@gmail.com>
11965
11966         * value-prof.c (tree_ic_transform): Print counts.
11967         * tree-profile.c (tree_gen_ic_func_profiler):
11968         Clear __gcov_indreict_call_callee variable to avoid misattribution
11969         of the profile.
11970
11971 2008-05-28  Rafael Espíndola  <espindola@google.com>
11972
11973         * see.c (see_def_extension_not_merged): Use copy_rtx_if_shared to avoid
11974         invalid sharing.
11975
11976 2008-05-28  Richard Guenther  <rguenther@suse.de>
11977
11978         PR tree-optimization/36339
11979         * tree-ssa-alias.c (set_initial_properties): Move pt_anything
11980         and clobbering code out of the loop.
11981
11982 2008-05-28  Andreas Krebbel  <krebbel1@de.ibm.com>
11983
11984         * config/s390/constraints.md ('b', 'C', 'D', 'e'): New constraint
11985         letters defined.
11986
11987         * config/s390/s390.c (s390_compare_and_branch_condition_mask,
11988         s390_contiguous_bitmask_p, s390_symref_operand_p,
11989         s390_check_symref_alignment, s390_reload_larl_operand,
11990         s390_reload_symref_address): New functions.
11991         (s390_branch_condition_mnemonic): Support compare and branch
11992         instructions.
11993         (s390_mem_constraint): Avoid symrefs to accepted by the 'T'
11994         and 'W' constraints.
11995         (s390_secondary_reload): Add secondary reloads for unaligned
11996         symbol refs or symbol refs to floating point or QI/TI mode
11997         integer values.
11998         (legitimate_address_p): Accept symbol references as addresses.
11999         (s390_expand_insv): Use rotate and insert selected bits
12000         instruction for insv when building for z10.
12001         (print_operand_address): Handle symbol ref addresses.
12002         (print_operand): Output modifier 'c' added for signed byte values.
12003         (s390_encode_section_info): Mark symbol refs with
12004         SYMBOL_FLAG_NOT_NATURALLY_ALIGNED if appropriate.
12005
12006         * config/s390/s390.md (SIL,RRS,RIS): New instruction formats added.
12007         (length attribute): RRF, RRR have 4 byte length.
12008         (FPALL, INTALL): New mode iterators added.
12009         (*tstdi_sign, *cmpdi_ccs_sign, *cmpsi_ccs_sign,
12010         *cmp<mode>_ccs, *cmpdi_ccu_zero, *cmpdi_ccu, *cmpsi_ccu, *cmphi_ccu,
12011         *movdi_64, *movsi_zarch, *movhi, movmem<mode>, *movmem_short,
12012         *extendsidi2, *extendhidi2_extimm, *extendhisi2_extimm,
12013         *zero_extendsidi2, adddi3, *adddi3_31z, *adddi3_31, addsi3,
12014         *add<mode>3, *add<mode>3_carry1_cc, *add<mode>3_carry2_cc,
12015         *add<mode>3_cc, *add<mode>3_imm_cc, *muldi3_sign, muldi3,
12016         *mulsi3_sign, mulsi3, mulsidi3): Patterns enhanced with z10
12017         instructions.
12018         (*cmphi_ccs_z10, *cmpdi_ccs_signhi_rl, *cmpsi_ccu_zerohi_rlsi,
12019         *cmp<GPR:mode>_ccu_zerohi_rldi, *cmp_and_br_signed_<mode>,
12020         *cmp_and_br_unsigned_<mode>, reload<INTALL:mode><P:mode>_tomem_z10,
12021         reload<INTALL:mode><P:mode>_toreg_z10,
12022         reload<FPALL:mode><P:mode>_tomem_z10,
12023         reload<FPALL:mode><P:mode>_toreg_z10,
12024         reload<P:mode>_larl_odd_addend_z10, *execute_rl, *insv<mode>_z10,
12025         *insv<mode>_z10_noshift, *insv<mode>_or_z10_noshift,
12026         *zero_extendhi<mode>2_z10, *cmp_and_trap_signed_int<mode>,
12027         *cmp_and_trap_unsigned_int<mode>, prefetch): New pattern or expander
12028         definition.
12029         (movmem, clrmem, cmpmem): New splitters added.
12030
12031         * config/s390/predicates.md (larl_operand): Use
12032         SYMBOL_REF_FLAGS (op) & SYMBOL_FLAG_ALIGN1 replaced with
12033         SYMBOL_REF_ALIGN1_P.
12034         (s390_signed_integer_comparison,
12035         s390_unsigned_integer_comparison): New predicates.
12036
12037         * config/s390/s390-protos.h (s390_check_symref_alignment,
12038         s390_contiguous_bitmask_p, s390_reload_larl_operand,
12039         s390_reload_symref_address,
12040         s390_compare_and_branch_condition_mask): Prototypes added.
12041
12042         * config/s390/s390.h (TARGET_MEM_CONSTRAINT,
12043         SYMBOL_REF_ALIGN1_P, SYMBOL_FLAG_NOT_NATURALLY_ALIGNED,
12044         SYMBOL_REF_NOT_NATURALLY_ALIGNED_P): Macro definition added.
12045
12046 2008-05-28  Andreas Krebbel  <krebbel1@de.ibm.com>
12047
12048         * config/s390/s390.c (z10_cost): New cost function for z10.
12049         (s390_handle_arch_option, override_options): Support -march=z10 switch.
12050         (s390_issue_rate): Adjust issue rate for z10.
12051         * config/s390/s390.h (processor_type): Add PROCESSOR_2097_Z10.
12052         (processor_flags): Add PF_Z10.
12053         (TARGET_CPU_Z10, TARGET_Z10): New macro definitions.
12054         * config/s390/s390.md (cpu, cpu_facility attributes): Add z10.
12055         * gcc/config.gcc: Add z10.
12056
12057 2008-05-28  Richard Guenther  <rguenther@suse.de>
12058
12059         PR tree-optimization/36291
12060         * tree-flow. h (struct gimple_df): Remove var_anns member.
12061         * tree-flow-inline.h (gimple_var_anns): Remove.
12062         (var_ann): Simplify.
12063         * tree-dfa.c (create_var_ann): Simplify.
12064         (remove_referenced_var): Clear alias info from var_anns of globals.
12065         * tree-ssa.c (init_tree_ssa): Do not allocate var_anns.
12066         (delete_tree_ssa): Clear alias info from var_anns of globals.
12067         Do not free var_anns.
12068         (var_ann_eq): Remove.
12069         (var_ann_hash): Likewise.
12070
12071 2008-05-28  Mark Shinwell  <shinwell@codesourcery.com>
12072
12073         * config/mips/mips.c (mips_cpu_info_table): Add loongson2e
12074         and loongson2f entries.
12075         (mips_rtx_cost_data): Add entries for Loongson-2E/2F.
12076         * config/mips/mips.h (processor_type): Add Loongson-2E
12077         and Loongson-2F entries.
12078         (TARGET_LOONGSON_2E, TARGET_LOONGSON_2F, TARGET_LOONGSON_2EF): New.
12079         (MIPS_ISA_LEVEL_SPEC): Handle Loongson-2E/2F.
12080         * config/mips/mips.md (define_attr cpu): Add loongson2e and loongson2f.
12081         * doc/invoke.texi (MIPS Options): Document loongson2e
12082         and loongson2f processor names.
12083
12084 2008-05-27  H.J. Lu  <hongjiu.lu@intel.com>
12085
12086         PR target/35767
12087         PR target/35771
12088         * config/i386/i386.c (ix86_function_arg_boundary): Use
12089         alignment of canonical type.
12090         (ix86_expand_vector_move): Check unaligned memory access for
12091         all SSE modes.
12092
12093 2008-05-27  H.J. Lu  <hongjiu.lu@intel.com>
12094
12095         * dwarf2out.c (current_fde): Change return type to dw_fde_ref.
12096         Moved to the front of file.
12097
12098 2008-05-27  Xuepeng Guo  <xuepeng.guo@intel.com>
12099             H.J. Lu  <hongjiu.lu@intel.com>
12100
12101         * dwarf2out.c (current_fde): New.
12102         (add_cfi): Use it.
12103         (lookup_cfa:): Likewise.
12104         (dwarf2out_end_epilogue): Likewise.
12105         (dwarf2out_note_section_used): Likewise.
12106
12107 2008-05-27  Michael Matz  <matz@suse.de>
12108
12109         PR c++/27975
12110         * c.opt (Wenum-compare): New warning option.
12111         * doc/invoke.texi  (Warning Options): Document -Wenum-compare.
12112
12113 2008-05-27  Michael Matz  <matz@suse.de>
12114
12115         PR middle-end/36326
12116         * tree-gimple.c (is_gimple_mem_rhs): Remove work-around for
12117         non-BLKmode types.
12118         * tree-tailcall.c (find_tail_calls): Don't mark calls storing
12119         into memory as tail calls.
12120
12121 2008-05-27  Richard Guenther  <rguenther@suse.de>
12122
12123         PR tree-optimization/36339
12124         * tree-ssa-alias.c (set_initial_properties): Escaped pt_anything
12125         pointers cause all addressable variables to be call clobbered.
12126
12127 2008-05-27  Richard Guenther  <rguenther@suse.de>
12128
12129         PR tree-optimization/36245
12130         * tree-ssa-address.c (add_to_parts): Deal with non-pointer bases.
12131
12132 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
12133
12134         * config/s390/s390.md: Replace all occurences of the 'm'
12135         constraint with 'RT'.
12136
12137 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
12138
12139         * config/s390/s390.md ("cpu_facility", "enabled"): Attribute
12140         definitions added.
12141         ("*movdi_64dfp", "*movdi_64extimm", "*movdi_64"): Merged into
12142         "*movdi_64".
12143         ("*anddi3_extimm", "*anddi3"): Merged into "*anddi3".
12144         ("*iordi3_extimm", "*iordi3"): Merged into "*iordi3".
12145         ("*xordi3_extimm", "*xordi3"): Merged into "*xordi3".
12146
12147 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
12148
12149         * reload.c: (find_reloads): Skip alternatives according to the
12150         "enabled" attribute. Constify the constraint variable.
12151         * recog.c (get_attr_enabled): Add default implementation.
12152         (extract_insn): Set the alternative_enabled_p array
12153         in the recog_data struct.
12154         (preprocess_constraints, constrain_operands): Skip
12155         alternatives according to the "enabled" attribute
12156         * recog.h (struct recog_data): New field alternative_enabled_p.
12157         (skip_alternative): New inline function.
12158         * regclass.c: (record_operand_costs): Check the "enabled" attribute.
12159         (record_reg_classes): Skip alternative according to the
12160         "enabled" attribute.
12161
12162         * doc/md.texi: Add documention for the "enabled" attribute.
12163
12164 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
12165
12166         * defaults.h (TARGET_MEM_CONSTRAINT): New target macro added.
12167         * postreload.c (reload_cse_simplify_operands): Replace 'm'
12168         constraint with TARGET_MEM_CONSTRAINT.
12169         * recog.c (asm_operand_ok, preprocess_constraints,
12170         constrain_operands): Likewise.
12171         * regclass.c (record_reg_classes): Likewise.
12172         * reload.c (find_reloads, alternative_allows_const_pool_ref): Likewise.
12173         * reload1.c (maybe_fix_stack_asms): Likewise.
12174         * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
12175         * recog.h: Adjust comment.
12176         * genpreds.c (generic_constraint_letters): Remove 'm' constraint.
12177         * genoutput.c (note_constraint): Don't emit error for 'm' constraint.
12178         * doc/md.texi: Add a note to description of 'm' constraint.
12179         * doc/tm.texi: Document the new TARGET_MEM_CONSTRAINT macro.
12180
12181 2008-05-27  Eric Botcazou  <ebotcazou@adacore.com>
12182
12183         * tree-sra.c (sra_type_can_be_decomposed_p) <RECORD_TYPE>: Make sure
12184         that the bitfield is of integral type before testing its precision.
12185
12186 2008-05-27  Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
12187             Sa Liu  <saliu@de.ibm.com>
12188
12189         * config/spu/spu.c (spu_init_libfuncs): Add __multi3, __divti3,
12190         __modti3, __udivti3, __umodti3 and __udivmodti4.
12191         * config/spu/t-spu-elf (LIB2FUNCS_STATIC_EXTRA): Add files
12192         that implement TImode mul and div functions.
12193         * config/spu/multi3.c: New. Implement __multi3.
12194         * config/spu/divmodti4.c: New. Implement _udivmodti4 and others.
12195         * testsuite/gcc.target/spu/muldivti3.c: New. Test TImode mul and div
12196         functions on SPU.
12197
12198 2008-05-26  Steven Bosscher  <stevenb.gcc@gmail.com>
12199
12200         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Generate
12201         new tls_gd_* and tls_ld_* insns instead of an insn sequence.
12202         * config/rs6000/rs6000.md (TLSmode, tls_abi_suffix, tls_insn_suffix,
12203         tls_sysv_suffix): New mode and mode attribute iterators.
12204         (tls_gd_32, tls_gd_64, tls_ld_32, tls_ld_64): Remove.
12205         (lts_gd_aix*, tls_gd_sysv*, tls_ld_aix*, tls_ld_sysv*): New patterns.
12206         (tls_dtprel_*, tls_dtprel_ha_*, tls_dtprel_lo_*, tls_got_dtprel_*,
12207         tls_tprel_*, tls_tprel_ha_*, tls_tprel_lo_*, tls_got_tprel_*,
12208         tls_tls_*): Merge 32 bit and 64 bit variants using aforementioned
12209         iterators.
12210
12211 2008-05-26  Eric Botcazou  <ebotcazou@adacore.com>
12212
12213         PR tree-optimization/36329
12214         * tree.h (CALL_CANNOT_INLINE_P): Add access check.
12215         * tree-gimple.h (CALL_STMT_CANNOT_INLINE_P): New macro.
12216         * cgraphbuild.c (initialize_inline_failed): Use the latter
12217         macro in lieu of the former.
12218         * ipa-inline.c (cgraph_mark_inline): Likewise.
12219         (cgraph_decide_inlining_of_small_function): Likewise.
12220         (cgraph_decide_inlining): Likewise.
12221         (cgraph_decide_inlining_incrementally): Likewise.
12222
12223 2008-05-26  Tristan Gingold  <gingold@adacore.com>
12224             Anatoly Sokolov  <aesok@post.ru>
12225
12226         * config/avr/avr.md ("call_prologue_saves"): Use hi8(gs())/lo8(gs())
12227         instead of pm_lo8/pm_hi8 to makes this call working on avr6.
12228         * config/avr/avr.c (expand_prologue): Tune "call_prologue"
12229         optimization for 'avr6' architecture.
12230
12231 2008-05-26  Andy Hutchinson  <hutchinsonandy@aim.com>
12232
12233         PR target/34932
12234         * config/avr/avr.md (*addhi3_zero_extend2): Remove.
12235
12236 2008-05-26  Richard Guenther  <rguenther@suse.de>
12237
12238         * tree-ssa-sccvn.c (expr_has_constants): Declare.
12239         (visit_reference_op_load): Initialize VN_INFO->has_constants properly.
12240
12241 2008-05-26  H.J. Lu  <hongjiu.lu@intel.com>
12242
12243         PR middle-end/36253
12244         * caller-save.c (insert_restore): Verify alignment of spill space.
12245         (insert_save): Likewise.
12246         * cfgexpand.c (LOCAL_ALIGNMENT): Removed.
12247         * defaults.h (LOCAL_ALIGNMENT): New. Provide default.
12248         (STACK_SLOT_ALIGNMENT): Likewise.
12249         * function.c (LOCAL_ALIGNMENT): Removed.
12250         (get_stack_local_alignment): New.
12251         (assign_stack_local): Use it.  Set alignment on stack slot.
12252         (assign_stack_temp_for_type): Use get_stack_local_alignment.
12253         * config/i386/i386.h (LOCAL_ALIGNMENT): Updated.
12254         (STACK_SLOT_ALIGNMENT): New.
12255         * config/i386/i386.c (ix86_local_alignment): Handle caller-save
12256         stack slot in XFmode.
12257
12258         * doc/tm.texi (STACK_SLOT_ALIGNMENT): New.
12259
12260 2008-05-26  Kai Tietz  <kai.tietz@onevision.com>
12261
12262         PR/36321
12263         * config/i386/i386.md (allocate_stack_worker_64): Make sure
12264         argument operand in rax isn't removed.
12265
12266 2008-05-26  Richard Guenther  <rguenther@suse.de>
12267
12268         PR middle-end/36300
12269         * fold-const.c (extract_muldiv_1): Use TYPE_OVERFLOW_WRAPS,
12270         not TYPE_UNSIGNED.  Use TYPE_PRECISION instead of GET_MODE_SIZE.
12271
12272 2008-05-26  Daniel Franke  <franke.daniel@gmail.com>
12273
12274         PR bootstrap/36331
12275         * c-cppbuiltin.c (define__GNUC__): Re-add definition of __GNUG__.
12276
12277 2008-05-26  Dominique Dhumieres  <dominiq@lps.ens.fr>
12278
12279         * config/darwin-c.c: Include "incpath.h" instead of "c-incpath.h".
12280         * config/t-darwin: Use "incpath.h" instead of "c-incpath.h".
12281
12282 2008-05-25  Eric Botcazou  <ebotcazou@adacore.com>
12283
12284         * tree-nested.c (convert_tramp_reference) <ADDR_EXPR>: Do not
12285         build a trampoline if we don't want one.
12286         * varasm.c (initializer_constant_valid_p) <ADDR_EXPR>: Do not
12287         return zero for nested functions if we don't want a trampoline.
12288
12289 2008-05-26  Daniel Franke  <franke.daniel@gmail.com>
12290
12291         * doc/invoke.texi: Added f77, f77-cpp-input to list of file types.
12292
12293 2008-05-26  Daniel Franke  <franke.daniel@gmail.com>
12294
12295         PR fortran/18428
12296         * c.opt: Removed undocumented option '-lang-fortran'.
12297         * c-common.h: Removed global variable 'lang_fortran'.
12298         * c-opts.c (c_common_handle_option): Removed code to handle
12299         option '-lang-fortran'. Updated includes.
12300         * c-cppbuiltin.c (c_cpp_builtins): Removed conditional
12301         definition of '__GFORTRAN__'.
12302         (define__GNUC__): Reimplemented to use BASEVER and
12303         cpp_define_formatted.
12304         (builtin_define_with_value_n): Removed.
12305         * c-incpath.h: Renamed to ...
12306         * incpath.h: ... this.
12307         * c-incpath.c: Renamed to ...
12308         * incpath.c: ... this. Updated includes.
12309         * fix-header.c: Updated includes.
12310         * Makefile.in: Replaced c-incpath.[ch] by incpath.[ch].
12311         (c-cppbuiltin.o): Added dependency on and definition of BASEVER.
12312         (OBJ-archive): Added cppdefault.o, incpath.o and prefix.o.
12313
12314 2008-05-25  Eric Botcazou  <ebotcazou@adacore.com>
12315
12316         * tree.h: Update the table of flags used on tree nodes.
12317         (TREE_NO_TRAMPOLINE): New accessor for static_flag.
12318         (SAVE_EXPR_RESOLVED_P): Use automatically-built access check.
12319         (FORCED_LABEL): Add access check.
12320         (CALL_EXPR_RETURN_SLOT_OPT): Likewise.
12321         (ASM_INPUT_P): Likewise.
12322         (ASM_VOLATILE_P): Likewise.
12323         (EH_FILTER_MUST_NOT_THROW): Access static_flag directly.
12324         (OMP_SECTION_LAST): Access private_flag directly.
12325         (OMP_RETURN_NOWAIT): Likewise.
12326         (OMP_PARALLEL_COMBINED): Likewise.
12327         (OMP_CLAUSE_PRIVATE_DEBUG): Access public_flag directly.
12328         (OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE): Likewise.
12329         * tree-ssa-propagate.c (STMT_IN_SSA_EDGE_WORKLIST): Access
12330         deprecated_flag directly.
12331
12332 2008-05-25  H.J. Lu  <hongjiu.lu@intel.com>
12333
12334         * final.c (frame_pointer_needed): Removed.
12335         * flags.h (frame_pointer_needed): Likewise.
12336
12337         * function.h (rtl_data): Add frame_pointer_needed.
12338         (frame_pointer_needed): New.
12339
12340 2008-05-25  Arthur Loiret  <arthur.loiret@u-psud.fr>
12341
12342         * config.gcc (sh2[lbe]*-*-linux*): Allow target.
12343
12344 2008-05-25  Steven Bosscher  <stevenb.gcc@gmail.com>
12345
12346         * gcse.c (hash_scan_set): Do not pick up a REG_EQUAL value if
12347         SRC is a REG.
12348
12349 2008-05-25  Alan Modra  <amodra@bigpond.net.au>
12350
12351         * c-common.c (strip_array_types): Move function to..
12352         * tree.c: ..here.
12353         (get_inner_array_type): Delete.
12354         * c-common.h (strip_array_types): Move declaration to..
12355         * tree.h: ..here.
12356         (get_inner_array_type): Delete.
12357         * config/i386/i386.c (x86_field_alignment): Use strip_array_types.
12358         * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Likewise.
12359         * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
12360         * config/pa/pa.c (emit_move_sequence): Likewise.
12361
12362 2008-05-24  H.J. Lu  <hongjiu.lu@intel.com>
12363
12364         * config/i386/i386.md (*sse_prologue_save_insn): Set length
12365         attribute to 34.
12366
12367 2008-05-24  Andy Hutchinson  <hutchinsonandy@aim.com>
12368
12369         * function.c: Include target hook for nonlocal_goto frame value.
12370
12371 2008-05-24  Richard Guenther  <rguenther@suse.de>
12372
12373         * tree-dfa.c (refs_may_alias_p): Re-instantiate case that a scalar
12374         variable can be only accessed through a pointer or a union.
12375
12376 2008-05-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12377
12378         * builtins.c (fold_builtin_fpclassify): Fix spelling of FP_INFINITE.
12379         * doc/extend.texi: Likewise.
12380
12381 2008-05-23  DJ Delorie  <dj@redhat.com>
12382
12383         * config/m32c/jump.md (untyped_call): Add.
12384
12385         * config/m32c/m32c.c (m32c_return_addr_rtx): Change pointer type
12386         for A24 to PSImode.
12387         (m32c_address_cost): Detail costs for indirect offsets.
12388
12389 2008-05-23  Rafael Espíndola  <espindola@google.com>
12390
12391         * see.c (see_get_extension_data): Don't use SUBREG_REG to test
12392         if a node is a SUBREG.
12393         (see_analyze_one_def): Don't use SUBREG_REG to test if a node
12394         is a SUBREG.
12395
12396 2008-05-23  Paul Brook  <paul@codesourcery.com>
12397             Carlos O'Donell  <carlos@codesourcery.com>
12398
12399         * doc/extend.texi: Clarify use of __attribute__((naked)).
12400         * doc/tm.texi: Document TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS.
12401         * target.h (gcc_target): Add allocate_stack_slots_for_args.
12402         * function.c (use_register_for_decl): Use
12403         targetm.calls.allocate_stack_slots_for_args.
12404         * target-def.h (TARGET_CALLS): Add TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS.
12405         * config/arm/arm.c (arm_allocate_stack_slots_for_args): New function.
12406         (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Define.
12407
12408 2008-05-23  Eric Botcazou  <ebotcazou@adacore.com>
12409
12410         * expr.c (highest_pow2_factor) <BIT_AND_EXPR>: New case.
12411
12412 2008-05-23  Steven Munroe  <sjmunroe@us.ibm.com>
12413
12414         * config/rs6000/darwin-ldouble.c (fmsub): Eliminate the full
12415         PACK/UNPACK between FP_SUB_Q and FD_TRUNC so that the result
12416         is only rounded once.
12417
12418 2008-05-23  Richard Guenther  <rguenther@suse.de>
12419
12420         * tree-ssa-operands.c (mark_difference_for_renaming): Use bitmap_xor.
12421
12422 2008-05-23  Uros Bizjak  <ubizjak@gmail.com>
12423             Jakub Jelinek  <jakub@redhat.com>
12424
12425         PR target/36079
12426         * configure.ac: Handle --enable-cld.
12427         * configure: Regenerated.
12428         * config.gcc: Add USE_IX86_CLD to tm_defines for x86 targets.
12429         * config/i386/i386.h (struct machine_function): Add needs_cld field.
12430         (ix86_current_function_needs_cld): New define.
12431         * config/i386/i386.md (UNSPEC_CLD): New unspec volatile constant.
12432         (cld): New isns pattern.
12433         (strmov_singleop, rep_mov, strset_singleop, rep_stos, cmpstrnqi_nz_1,
12434         cmpstrnqi_1, strlenqi_1): Set ix86_current_function_needs_cld flag.
12435         * config/i386/i386.opt (mcld): New option.
12436         * config/i386/i386.c (ix86_expand_prologue): Emit cld insn if
12437         TARGET_CLD and ix86_current_function_needs_cld.
12438         (override_options): Use -mcld by default for 32-bit code if
12439         USE_IX86_CLD.
12440
12441         * doc/install.texi (Options specification): Document --enable-cld.
12442         * doc/invoke.texi (Machine Dependent Options)
12443         [i386 and x86-64 Options]: Add -mcld option.
12444         (Intel 386 and AMD x86-64 Options): Document -mcld option.
12445
12446 2008-05-23  Kai Tietz  <kai.tietz@onevison.com>
12447         * config/i386/i386.c (return_in_memory_32): Add ATTRIBUTE_UNUSED.
12448         (return_in_memory_64): Likewise.
12449         (return_in_memory_ms_64): Likewise.
12450
12451 2008-05-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12452
12453         * builtin-types.def (BT_FN_INT_INT_INT_INT_INT_INT_VAR): New.
12454         * builtins.c (fold_builtin_fpclassify): New.
12455         (fold_builtin_varargs): Handle BUILT_IN_FPCLASSIFY.
12456         * builtins.def (BUILT_IN_FPCLASSIFY): New.
12457         * c-common.c (handle_type_generic_attribute): Adjust to accept
12458         fixed arguments before an elipsis.
12459         (check_builtin_function_arguments): Handle BUILT_IN_FPCLASSIFY.
12460         * doc/extend.texi: Document __builtin_fpclassify.
12461
12462 2008-05-22  Aldy Hernandez  <aldyh@redhat.com>
12463
12464         * omp-low.c (gate_expand_omp_ssa): Remove.
12465         (pass_expand_omp_ssa): Remove.
12466         (gate_expand_omp): Do not check for flag_openmp_ssa.
12467         * common.opt (-fopenmp-ssa): Remove.
12468         * passes.c (init_optimization_passes): Remove pass_expand_omp_ssa.
12469
12470 2008-05-22  Kaz Kojima  <kkojima@gcc.gnu.org>
12471
12472         * config/sh/sh.opt (mfixed-range): New option.
12473         * config/sh/sh-protos.h (sh_fix_range): Declare.
12474         * config/sh/sh.c (sh_fix_range): New function.
12475         * config/sh/sh.h (sh_fixed_range_str): Declare.
12476         (OVERRIDE_OPTIONS): Call sh_fix_range if sh_fixed_range_str
12477         is not empty.
12478         * doc/invoke.texi (SH Options): Document -mfixed-range.
12479
12480 2008-05-22  Kai Tietz  <kai.tietz@onevision.com>
12481
12482         * config/i386/sol2-10.h (SUBTARGET_RETURN_IN_MEMORY): Undefine
12483         it before the redeclaration.
12484
12485 2008-05-22  Anatoly Sokolov <aesok@post.ru>
12486
12487         * config/avr/avr.c (get_sequence_length): Add new function.
12488         (expand_prologue, expand_epilogue): Remove duplicate code.
12489
12490 2008-05-22  Rafael Espíndola  <espindola@google.com>
12491
12492         * see.c (see_pre_insert_extensions): Use copy_rtx to avoid invalid rtx
12493         sharing.
12494
12495 2008-05-22  H.J. Lu  <hongjiu.lu@intel.com>
12496
12497         * defaults.h (UNITS_PER_SIMD_WORD): Add scalar mode as argument.
12498         * doc/tm.texi (UNITS_PER_SIMD_WORD): Likewise.
12499
12500         * tree-vect-analyze.c (vect_compute_data_ref_alignment): Replace
12501         UNITS_PER_SIMD_WORD with GET_MODE_SIZE (TYPE_MODE (vectype)).
12502         (vect_update_misalignment_for_peel): Likewise.
12503         (vector_alignment_reachable_p): Likewise.
12504         * tree-vect-transform.c (vectorizable_load): Likewise.
12505         * tree-vectorizer.c (vect_supportable_dr_alignment): Likewise.
12506         (get_vectype_for_scalar_type): Pass mode of scalar_type
12507         to UNITS_PER_SIMD_WORD.
12508
12509         * config/arm/arm.h (UNITS_PER_SIMD_WORD): Updated.
12510         * config/i386/i386.h (UNITS_PER_SIMD_WORD): Likewise.
12511         * config/mips/mips.h (UNITS_PER_SIMD_WORD): Likewise.
12512         * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Likewise.
12513         * config/sparc/sparc.h (UNITS_PER_SIMD_WORD): Likewise.
12514
12515 2008-05-22  Ira Rosen  <irar@il.ibm.com>
12516
12517         PR tree-optimization/36293
12518         * tree-vect-transform.c (vect_transform_strided_load): Don't check
12519         if the first load must be skipped because of a gap.
12520
12521 2008-05-22  Richard Guenther  <rguenther@suse.de>
12522
12523         * tree-dfa.c (refs_may_alias_p): Exit early if possible.  Handle
12524         more cases of offset disambiguation that is possible if
12525         strict-aliasing rules apply.
12526         * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use refs_may_alias_p
12527         for basic offset and type-based disambiguation.
12528
12529 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
12530
12531         * config/i386/i386.c (ix86_expand_vector_init_one_var): Use
12532         ix86_expand_vector_set on V16QImode for SSE4.1.
12533
12534 2008-05-21  Tom Tromey  <tromey@redhat.com>
12535
12536         * c.opt (Wimport): Mark as undocumented.
12537         * doc/invoke.texi (Option Summary): Don't mention -Wimport or
12538         -Wno-import.
12539         (Warning Options): Likewise.
12540         * doc/cppopts.texi: Don't mention -Wimport.
12541
12542 2008-05-21  Sebastian Pop  <sebastian.pop@amd.com>
12543
12544         PR tree-optimization/36287
12545         PR tree-optimization/36286
12546         * lambda-code.c (build_access_matrix): Do not use the loop->num
12547         for computing the number of induction variables: use the loop depth
12548         instead.
12549
12550 2008-05-21  Kai Tietz  <kai.tietz@onevision.com>
12551
12552         PR/36280
12553         * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Honor
12554         option -f(no-)leading-underscore.
12555
12556 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
12557
12558         * config/i386/i386.c (ix86_expand_vector_init_general): Use
12559         GET_MODE_NUNITS (mode).
12560
12561 2008-05-21  Peter Bergner  <bergner@vnet.ibm.com>
12562
12563         * doc/invoke.texi: Add cpu_type's 464 and 464fp.
12564         (-mmulhw): Add 464 to description.
12565         (-mdlmzb): Likewise.
12566         * config.gcc: Handle --with-cpu=464 and --with-cpu=464fp.
12567         * config/rs6000/rs6000.c (processor_target_table): Add 464 and
12568         464fp entries.
12569         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add 464 and 464fp support.
12570         * config/rs6000/t-fprules (MULTILIB_MATCHES_FLOAT): Include -mcpu=464.
12571         * config/rs6000/rs6000.md: Update comments for 464.
12572
12573 2008-05-21  Janis Johnson  <janis187@us.ibm.com>
12574
12575         * doc/sourcebuild.texi (Test Directives): Add dg-xfail-run-if.
12576
12577 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
12578
12579         * config/i386/sse.md (vec_extractv4sf): Removed.
12580         (vec_extractv2df): Likewise.
12581         (vec_extractv2di): Likewise.
12582         (vec_extractv4si): Likewise.
12583         (vec_extractv8hi): Likewise.
12584         (vec_extractv16qi): Likewise.
12585         (vec_extract<mode>): New.
12586
12587 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
12588
12589         * config/i386/sse.md (vec_setv4sf): Removed.
12590         (vec_setv2df): Likewise.
12591         (vec_setv2di): Likewise.
12592         (vec_setv4si): Likewise.
12593         (vec_setv8hi): Likewise.
12594         (vec_setv16qi): Likewise.
12595         (vec_set<mode>): New.
12596
12597 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
12598
12599         * config/i386/i386.c (ix86_expand_vector_init_general): Remove
12600         goto for vec_concat and vec_interleave.
12601
12602 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
12603
12604         * config/i386/sse.md (vec_initv4sf): Removed.
12605         (vec_initv2df): Likewise.
12606         (vec_initv2di): Likewise.
12607         (vec_initv4si): Likewise.
12608         (vec_initv8hi): Likewise.
12609         (vec_initv16qi): Likewise.
12610         (vec_init<mode>): New.
12611
12612 2008-05-21  Joseph Myers  <joseph@codesourcery.com>
12613
12614         * collect2.c (find_a_file): Use IS_ABSOLUTE_PATH.
12615
12616 2008-05-21  Tom Tromey  <tromey@redhat.com>
12617
12618         * ggc-zone.c (lookup_page_table_if_allocated): New function.
12619         (zone_find_object_offset): Likewise.
12620         (gt_ggc_m_S): Likewise.
12621         (highest_bit): Likewise.
12622         * ggc-page.c (gt_ggc_m_S): New function.
12623         * stringpool.c (string_stack): Remove.
12624         (init_stringpool): Update.
12625         (ggc_alloc_string): Use ggc_alloc.
12626         (maybe_delete_ident): New function.
12627         (ggc_purge_stringpool): Likewise.
12628         (gt_ggc_m_S): Remove.
12629         * ggc-common.c (ggc_protect_identifiers): New global.
12630         (ggc_mark_roots): Call ggc_purge_stringpool.  Use
12631         ggc_protect_identifiers.
12632         * ggc.h (ggc_protect_identifiers): Declare.
12633         (gt_ggc_m_S): Update.
12634         (ggc_purge_stringpool): Declare.
12635         * toplev.c (compile_file): Set and reset ggc_protect_identifiers.
12636         * gengtype.c (write_types_process_field) <TYPE_STRING>: Remove
12637         special case.
12638         (write_root): Cast gt_ggc_m_S to gt_pointer_walker.
12639
12640 2008-05-21  David S. Miller  <davem@davemloft.net>
12641
12642         * config.gcc (sparc-*-linux*): Always include sparc/t-linux in
12643         tmake_file.
12644
12645 2008-05-21  Eric Botcazou  <ebotcazou@adacore.com>
12646
12647         * cfgexpand.c (tree_expand_cfg): Zap the EH throw statement table
12648         once finished.
12649
12650 2008-05-20  David Daney  <ddaney@avtrex.com>
12651
12652         * config/mips/mips.md (UNSPEC_SYNC_NEW_OP_12,
12653         UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE_12): New define_constants.
12654         (UNSPEC_SYNC_EXCHANGE, UNSPEC_MEMORY_BARRIER, UNSPEC_SET_GOT_VERSION,
12655         UNSPEC_UPDATE_GOT_VERSION): Renumber.
12656         (optab, insn): Add 'plus' and 'minus' to define_code_attr.
12657         (atomic_hiqi_op): New define_code_iterator.
12658         (sync_compare_and_swap<mode>): Call mips_expand_atomic_qihi instead of
12659         mips_expand_compare_and_swap_12.
12660         (compare_and_swap_12): Use MIPS_COMPARE_AND_SWAP_12 instead of
12661         MIPS_COMPARE_AND_SWAP_12_0.  Pass argument to MIPS_COMPARE_AND_SWAP_12.
12662         (sync_<optab><mode>, sync_old_<optab><mode>,
12663         sync_new_<optab><mode>, sync_nand<mode>, sync_old_nand<mode>,
12664         sync_new_nand<mode>): New define_expands for HI and QI mode operands.
12665         (sync_<optab>_12, sync_old_<optab>_12, sync_new_<optab>_12,
12666         sync_nand_12, sync_old_nand_12, sync_new_nand_12): New insns.
12667         (sync_lock_test_and_set<mode>): New define_expand for HI and QI modes.
12668         (test_and_set_12): New insn.
12669         (sync_old_add<mode>, sync_new_add<mode>, sync_old_<optab><mode>,
12670         sync_new_<optab><mode>, sync_old_nand<mode>,
12671         sync_new_nand<mode>, sync_lock_test_and_set<mode>):  Add early
12672         clobber to operand 0 for SI and DI mode insns.
12673         * config/mips/mips-protos.h (mips_gen_fn_6, mips_gen_fn_5,
12674         mips_gen_fn_4): New typedefs.
12675         (mips_gen_fn_ptrs): Define new union type.
12676         (mips_expand_compare_and_swap_12): Remove declaration.
12677         (mips_expand_atomic_qihi): Declare function.
12678         * config/mips/mips.c (mips_expand_compare_and_swap_12): Rename to...
12679         (mips_expand_atomic_qihi): ... this.  Use new generator function
12680         parameter.
12681         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP_12): Add OPS parameter.
12682         (MIPS_COMPARE_AND_SWAP_12_0): Delete macro.
12683         (MIPS_COMPARE_AND_SWAP_12_ZERO_OP, MIPS_COMPARE_AND_SWAP_12_NONZERO_OP,
12684         MIPS_SYNC_OP_12, MIPS_SYNC_OP_12_NOT_NOP,
12685         MIPS_SYNC_OP_12_NOT_NOT, MIPS_SYNC_OLD_OP_12,
12686         MIPS_SYNC_OLD_OP_12_NOT_NOP, MIPS_SYNC_OLD_OP_12_NOT_NOP_REG,
12687         MIPS_SYNC_OLD_OP_12_NOT_NOT, MIPS_SYNC_OLD_OP_12_NOT_NOT_REG,
12688         MIPS_SYNC_NEW_OP_12, MIPS_SYNC_NEW_OP_12_NOT_NOP,
12689         MIPS_SYNC_NEW_OP_12_NOT_NOT, MIPS_SYNC_EXCHANGE_12,
12690         MIPS_SYNC_EXCHANGE_12_ZERO_OP, MIPS_SYNC_EXCHANGE_12_NONZERO_OP):
12691         New macros.
12692
12693 2008-05-20  H.J. Lu  <hongjiu.lu@intel.com>
12694
12695         * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Add
12696         the missing break.
12697
12698 2008-05-20  Anatoly Sokolov <aesok@post.ru>
12699
12700         * config/avr/avr.h (machine_function): Add 'is_OS_main' field.
12701         * config/avr/avr.c (avr_OS_main_function_p): Add new function.
12702         (avr_attribute_table): Add 'OS_main' function attribute.
12703         (avr_regs_to_save, expand_prologue, expand_epilogue): Handle
12704         functions with 'OS_main' attribute.
12705
12706 2008-05-20  Richard Guenther  <rguenther@suse.de>
12707
12708         PR tree-optimization/35204
12709         * tree-ssa-sccvn.c (extract_and_process_scc_for_name): New
12710         helper, split out from ...
12711         (DFS): ... here.  Make the DFS walk non-recursive.
12712
12713 2008-05-20  Sebastian Pop  <sebastian.pop@amd.com>
12714             Jan Sjodin  <jan.sjodin@amd.com>
12715
12716         PR tree-optimization/36181
12717         * tree-parloops.c (loop_has_vector_phi_nodes): New.
12718         (parallelize_loops): Don't parallelize when the loop has vector
12719         phi nodes.
12720
12721 2008-05-20  Jan Sjodin  <jan.sjodin@amd.com>
12722             Sebastian Pop  <sebastian.pop@amd.com>
12723
12724         * tree-loop-linear.c (gather_interchange_stats): Look in the access
12725         matrix, and never look at the tree representation of the memory
12726         accesses.
12727         (linear_transform_loops): Computes parameters and access matrices.
12728         * tree-data-ref.c (compute_data_dependences_for_loop): Returns false
12729         when fails.
12730         (access_matrix_get_index_for_parameter): New.
12731         * tree-data-ref.h (struct access_matrix): New.
12732         (AM_LOOP_NEST_NUM, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
12733         AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
12734         AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT,
12735         am_vector_index_for_loop): New.
12736         (struct data_reference): Add field access_matrix.
12737         (DR_ACCESS_MATRIX): New.
12738         (compute_data_dependences_for_loop): Update declaration.
12739         (lambda_collect_parameters, lambda_compute_access_matrices): Declared.
12740         * lambda.h (lambda_vector_vec_p): Declared.
12741         * lambda-code.c: Depend on pointer-set.h.
12742         (lambda_collect_parameters_from_af, lambda_collect_parameters,
12743         av_for_af_base, av_for_af, build_access_matrix,
12744         lambda_compute_access_matrices): New.
12745         * Makefile.in (lambda-code.o): Depend on pointer-set.h.
12746
12747 2008-05-20  Joseph Myers  <joseph@codesourcery.com>
12748
12749         * doc/install.texi2html: Generate gcc-vers.texi in $DESTDIR not
12750         $SOURCEDIR/include.
12751
12752 2008-05-20  Jan Sjodin  <jan.sjodin@amd.com>
12753             Sebastian Pop  <sebastian.pop@amd.com>
12754
12755         PR tree-optimization/36206
12756         * tree-scalar-evolution.c: Remove enum INSERT_SUPERLOOP_CHRECS,
12757         FOLD_CONVERSIONS.
12758         (instantiate_scev_1): Rename flags to fold_conversions.
12759         Do not check for INSERT_SUPERLOOP_CHRECS, keep SSA_NAMEs defined
12760         outeside instantiation_loop.
12761         * tree-chrec.h (evolution_function_is_affine_in_loop): New.
12762         (evolution_function_is_affine_or_constant_p): Removed.
12763         * tree-data-ref.c (dr_analyze_indices): Replace resolve_mixers with
12764         instantiate_scev.
12765         (analyze_siv_subscript): Pass in the loop nest number.
12766         Call evolution_function_is_affine_in_loop instead of
12767         evolution_function_is_affine_p.
12768         (analyze_overlapping_iterations): Pass in the loop nest number.
12769
12770 2008-05-20  Jan Sjodin  <jan.sjodin@amd.com>
12771             Sebastian Pop  <sebastian.pop@amd.com>
12772
12773         PR tree-optimization/36206
12774         * tree-chrec.h (chrec_fold_op): New.
12775         * tree-data-ref.c (initialize_matrix_A): Traverse NOP_EXPR, PLUS_EXPR,
12776         and other trees.
12777
12778 2008-05-20  Nathan Sidwell  <nathan@codesourcery.com>
12779
12780         * c-incpath.c (INO_T_EQ): Do not define on non-inode systems.
12781         (DIRS_EQ): New.
12782         (remove_duplicates): Do not set inode on non-inode systems.
12783         Use DIRS_EQ.
12784
12785 2008-05-20  Sandra Loosemore  <sandra@codesourcery.com>
12786
12787         * config.gcc (tm_file): Update comments about relative pathnames.
12788
12789 2008-05-20  Richard Guenther  <rguenther@suse.de>
12790
12791         * tree-ssa-reassoc.c (fini_reassoc): Use the statistics infrastructure.
12792         * tree-ssa-sccvn.c (process_scc): Likewise.
12793         * tree-ssa-sink.c (execute_sink_code): Likewise.
12794         * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
12795         * tree-vrp.c (process_assert_insertions): Likewise.
12796         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Likewise.
12797         (perform_tree_ssa_dce): Likewise.
12798         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Likewise.
12799         (dump_dominator_optimization_stats): Likewise.
12800         * tree-vectorizer.c (vectorize_loops): Likewise.
12801
12802 2008-05-20  Richard Guenther  <rguenther@suse.de>
12803
12804         * tree-vn.c (vn_lookup_with_vuses): Do not use the alias oracle.
12805
12806 2008-05-20  Kai Tietz  <kai.tietz@onevision.com>
12807
12808         * config/i386/i386-protos.h (ix86_return_in_memory): Removed.
12809         (ix86_i386elf_return_in_memory): Likewise.
12810         (ix86_i386interix_return_in_memory): Likewise.
12811         * config/i386/i386-interix.h (TARGET_RETURN_IN_MEMORY): Removed.
12812         (SUBTARGET_RETURN_IN_MEMORY): New.
12813         * config/i386/i386elf.h: Likewise.
12814         * config/i386/ptx4-i.h: Likewise.
12815         * config/i386/sol2-10.h: Likewise.
12816         * config/i386/sysv4.h: Likewise.
12817         * config/i386/vx-common.h: Likewise.
12818         * config/i386/i386.h (TARGET_RETURN_IN_MEMORY): Removed.
12819         * config/i386/i386.c (ix86_return_in_memory): Made static and
12820         make use of optional SUBTARGET_RETURN_IN_MEMORY macro.
12821         (ix86_i386elf_return_in_memory): Removed.
12822         (ix86_i386interix_return_in_memory): Removed.
12823         (TARGET_RETURN_IN_MEMORY): Declared within i386.c only.
12824         * target-def.h (TARGET_RETURN_IN_MEMORY): Remove protection #ifdef.
12825
12826 2008-05-20  Alexandre Oliva  <aoliva@redhat.com>
12827
12828         * cselib.c (cselib_record_sets): Use correct mode for IF_THEN_ELSE.
12829
12830 2008-05-19  Xinliang David Li  <davidxl@google.com>
12831
12832         * tree-ssa-dce.c: Revert patches of 2008-05-17 and 2008-05-18.
12833         * opts.c: Ditto.
12834         * common.opt: Ditto.
12835         * doc/invoke.texi: Ditto.
12836
12837 2008-05-19  Eric Botcazou  <ebotcazou@adacore.com>
12838
12839         * tree.c (substitute_in_expr) <tcc_vl_exp>: Fix thinko.
12840         (substitute_placeholder_in_expr) <tcc_vl_exp>: Minor tweak.
12841
12842 2008-05-19  H.J. Lu  <hongjiu.lu@intel.com>
12843
12844         * config/i386/i386.c (ix86_expand_vector_init_concat): Change
12845         sizes of operand array from 8/4 to 4/2.
12846         (ix86_expand_vector_init_general): Change size of operand array
12847         from 32 to 16.  Remove op0, op1 and half_mode.
12848
12849 2008-05-19  H.J. Lu  <hongjiu.lu@intel.com>
12850
12851         * config/i386/i386.c (ix86_expand_vector_init_concat): New.
12852         (ix86_expand_vector_init_interleave): Likewise.
12853         (ix86_expand_vector_init_general): Use them.  Assert
12854         word_mode == SImode when n_words == 4.
12855
12856 2008-05-19  Uros Bizjak  <ubizjak@gmail.com>
12857
12858         * config/i386/i386.c (ix86_secondary_reload): New static function.
12859         (TARGET_SECONDARY_RELOAD): New define.
12860         * config/i386/i386.h (SECONDARY_OUTPUT_RELOAD_CLASS): Remove.
12861         * config/i386/i386.md (reload_outqi): Remove.
12862
12863 2008-05-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12864
12865         PR middle-end/35509
12866         * builtins.c (mathfn_built_in_1): Renamed from mathfn_built_in.
12867         Add `implicit' parameter.  Handle BUILT_IN_SIGNBIT.
12868         (mathfn_built_in): Rewrite in terms of mathfn_built_in_1.
12869         (fold_builtin_classify): Handle BUILT_IN_ISINF_SIGN.
12870         (fold_builtin_1): Likewise.
12871         * builtins.def (BUILT_IN_ISINF_SIGN): New.
12872         c-common.c (check_builtin_function_arguments): Handle
12873         BUILT_IN_ISINF_SIGN.
12874         * doc/extend.texi: Document __builtin_isinf_sign.
12875         * fold-const.c (operand_equal_p): Handle COND_EXPR.
12876
12877 2008-05-18  Eric Botcazou  <ebotcazou@adacore.com>
12878
12879         * tree-ssa-dom.c (tree_ssa_dominator_optimize): If some blocks need
12880         EH cleanup at the end of the pass, search for those that have been
12881         turned into forwarder blocks and do the cleanup on their successor.
12882
12883 2008-05-18  Richard Guenther  <rguenther@suse.de>
12884
12885         * tree-cfg.c (verify_gimple_expr): Allow conversions from
12886         pointers to sizetype and vice versa.
12887
12888 2008-05-18 Xinliang David Li   <davidxl@google.com>
12889
12890         * gcc/tree-ssa-dce.c: Coding style fix.
12891         (check_pow): Documentation comment.
12892         (check_log): Documenation comment. Coding style fix.
12893         (is_unnecessary_except_errno_call): Ditto.
12894         (gen_conditions_for_pow): Ditto.
12895         (gen_conditions_for_log): Ditto.
12896         (gen_shrink_wrap_conditions): Ditto.
12897         (shrink_wrap_one_built_in_calls): Ditto.
12898         * gcc/doc/invoke.texi: Better documentation string.
12899         * ChangeLog: Fix wrong change log entries from
12900         May 17 checkin on function call DCE.
12901
12902 2008-05-17  Kaz Kojima  <kkojima@gcc.gnu.org>
12903
12904         * config/sh/sh.c (sh_output_mi_thunk): Update the use of init_flow.
12905
12906 2008-05-17  Kenneth Zadeck <zadeck@naturalbridge.com>
12907
12908         * doc/rtl.texi (RTL_CONST_CALL_P, RTL_PURE_CALL_P): Fixed typos.
12909         * df-problems.c (simulation routines): Fixed block comment to
12910         properly say how to add forwards scanning functions.
12911
12912 2008-05-17  Eric Botcazou  <ebotcazou@adacore.com>
12913
12914         * tree-inline.c (setup_one_parameter): Remove dead code.
12915
12916 2008-05-17  Eric Botcazou  <ebotcazou@adacore.com>
12917
12918         * fold-const.c (fold_unary) <CASE_CONVERT>: Fold the cast into
12919         a BIT_AND_EXPR only for an INTEGER_TYPE.
12920
12921 2008-05-17 Xinliang David Li   <davidxl@google.com>
12922
12923         * gcc/tree-ssa-dce.c (cond_dead_built_in_calls): New static variable.
12924         (check_pow, check_log, is_unnecessary_except_errno_call): New
12925         functions to check for eliminating math functions that are pure
12926         except for setting errno.
12927         (gen_conditions_for_pow, gen_conditionas_for_log): New functions to
12928         general condition expressions for shrink-wrapping pow/log calls.
12929         (gen_shrink_wrap_conditions): Ditto.
12930         (shrink_wrap_one_built_in_call): Ditto.
12931         (shrink_wrap_conditional_dead_built_in_calls): Ditto.
12932         (mark_operand_necessary): If debugging, output if OP is necessary.
12933         (eliminate_unnecessary_stmts): Eliminate pow, log calls that are
12934         unnecessary.
12935         * gcc/opts.c (decode_options): set flag_tree_builtin_dce to 1 when
12936         opt level >= 2.
12937         * gcc/common.opt: New user flag -ftree-builtin-dce.
12938         * gcc/doc/invoke.texi (-ftree-builtin-dce): New option.
12939
12940 2008-05-16  David S. Miller  <davem@davemloft.net>
12941
12942         * config/sparc/linux.h (NO_PROFILE_COUNTERS): Undef before overriding.
12943         * config/sparc/linux64.h (NO_PROFILE_COUNTERS): Likewise.
12944
12945 2008-05-16  Uros Bizjak  <ubizjak@gmail.com>
12946
12947         PR target/36246
12948         * config/i386/i386.h (SECONDARY_MEMORY_NEEDED_MODE): New define.
12949
12950 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
12951
12952         * ifcvt.c (dead_or_predicable): Rename
12953         df_simulate_one_insn_backwards to df_simulate_one_insn.
12954         * recog.c (peephole2_optimize): Ditto.
12955         * rtl-factoring.c (collect_pattern_seqs, clear_regs_live_in_seq):
12956         Ditto.
12957         * df.h: Rename df_simulate_one_insn_backwards to
12958         df_simulate_one_insn.  and delete df_simulate_one_insn_forwards.
12959         * df-problems.c (df_simulate_artificial_refs_at_top) Reversed
12960         scanning of defs and uses.
12961         (df_simulate_one_insn_backwards): Renamed to df_simulate_one_insn.
12962         (df_simulate_one_insn_forwards): Removed.
12963
12964 2008-05-16  Doug Kwan  <dougkwan@google.com>
12965
12966         * real.c (real_to_decimal, real_to_hexadecimal): Distinguish
12967         QNaN & SNaN.
12968         (real_from_string): Handle NaNs and Inf as approriate.
12969
12970 2008-05-16  Nathan Froyd  <froydnj@codesourcery.com>
12971
12972         * doc/gty.texi (Source Files Containing Type Information): Note
12973         that headers should appear first in the gtfiles list.
12974
12975 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
12976
12977         * tree.def (COND_EXEC): Properly documented this code.
12978
12979 2008-05-16  Diego Novillo  <dnovillo@google.com>
12980
12981         * dwarf2asm.c (dw2_assemble_integer): Clarify comment.
12982         * tree-nested.c (get_trampoline_type): Set DECL_CONTEXT for
12983         the new field.
12984
12985 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
12986
12987         * tree-ssa-dse (max_stmt_uid): Removed.
12988         (get_stmt_uid, dse_possible_dead_store_p, dse_optimize_stmt,
12989         tree_ssa_dse): Encapsulate all uses of stmt_ann->uid.
12990         * tree-ssa-sccvn.c (compare_ops, init_scc_vn): Ditto.
12991         * function.h (cfun.last_stmt_uid): New field.
12992         * tree-flow-inline.h (set_gimple_stmt_uid, gimple_stmt_uid,
12993         gimple_stmt_max_uid, set_gimple_stmt_max_uid, inc_gimple_stmt_max_uid):
12994         New functions.
12995         * tree-dfa.c (renumber_gimple_stmt_uids): New function.
12996         (create_stmt_ann): Initialize the ann->uid field.
12997         * tree-ssa-pre.c (compute_avail): Encapsulate the stmt_ann->uid
12998         with new calls.
12999         * tree-flow.h (renumber_gimple_stmt_uids): New function.
13000
13001 2008-05-16  Nathan Froyd  <froydnj@codesourcery.com>
13002
13003         * tree-flow.h (init_empty_tree_cfg_for_function): Declare.
13004         * tree-cfg.c (init_empty_tree_cfg_for_function): Define.
13005         (init_empty_tree_cfg): Call it.
13006
13007 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
13008
13009         * cfg.c (init_flow): Add argument THE_FUN.  Use it instead of cfun.
13010         Update all users.
13011
13012 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
13013
13014         * doc/invoke.text (-fdump-tree-*-verbose): New option.
13015         * tree-dump.c (dump_options): New verbose option.
13016         * tree-pretty-print.c (dump_phi_nodes, dump_generic_bb_buff):
13017         Add verbose dump.
13018         * tree-pass.h (TDF_VERBOSE): New dump flag.
13019         * print-tree.c (print_node): Added code to be able to print PHI_NODES.
13020         (tree-flow.h): Added include.
13021         * Makefile.in (print-tree.o):  Added TREE_FLOW_H.
13022
13023 2008-05-16  Bernd Schmidt  <bernd.schmidt@analog.com>
13024
13025         * config/bfin/bfin.c (bfin_discover_loops): Delete empty loops.
13026
13027         From Jie Zhang  <jie.zhang@analog.com>
13028         * config/bfin/t-bfin-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
13029         MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Remove mcpu=bf532-0.3,
13030         mcpu=bf561-none and mcpu=bf561-0.2.
13031         * config/bfin/t-bfin-uclinux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
13032         MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Likewise.
13033         * config/bfin/t-bfin-linux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
13034         MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Likewise.
13035         * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add BFIN_CPU_UNKNOWN.
13036         * config/bfin/elf.h (STARTFILE_SPEC): Use specific CRT for BF561.
13037         (LIB_SPEC): Use proper linker script for bf561.  Error if no mcpu
13038         option.
13039         * config/bfin/bfin.c (bfin_cpu_type): Set to BFIN_CPU_UNKNOWN.
13040         (cputype_selected): Remove.
13041         (bfin_handle_option): Don't use cputype_selected.
13042         (override_options): When no mcpu option, enable all workarounds.
13043         Don't use bfin_workarounds.
13044         * config/bfin/bfin.h (DRIVER_SELF_SPECS): Don't set default
13045         processor type.
13046         (DEFAULT_CPU_TYPE): Don't define.
13047
13048 2008-05-16  Richard Guenther  <rguenther@suse.de>
13049
13050         * tree-ssa-propagate.c (substitute_and_fold): Fix stmt walking
13051         on deletion of the last stmt.
13052
13053 2008-05-15  H.J. Lu  <hongjiu.lu@intel.com>
13054
13055         * config/i386/i386.c (ix86_expand_vector_init_general): Optimize
13056         V8HImode for SSE2 and V16QImode for SSE4.1.
13057
13058 2008-05-15  Kenneth Zadeck <zadeck@naturalbridge.com>
13059
13060         * cgraph.h (compute_inline_parameters): Made public.
13061         * tree-pass.h (ipa_opt_pass): Removed function_generate_summary,
13062         variable_generate_summary, function_write_summary,
13063         variable_write_summary, variable_read_summary.  Added generate_summary,
13064         write_summary, read_summary.
13065         * cgraphunit.c (cgraph_process_new_functions): Changed call from
13066         pass_ipa_inline.function_generate_summary, to
13067         compute_inline_parameters.
13068         * ipa-inline.c (compute_inline_parameters): Made public and added
13069         node parameter.
13070         (compute_inline_parameters_for_current): New function.
13071         (pass_inline_param): Now calls compute_inline_parameters_for_current.
13072         (inline_generate_summary): Removed parameter and made to loop over
13073         all cgraph nodes.
13074         (pass_ipa_inline): Updated for new IPA_PASS structure.
13075         * passes.c (execute_ipa_summary_passes): Now is called once per
13076         pass rather than once per node*pass.
13077
13078 2008-05-15  Anatoly Sokolov <aesok@post.ru>
13079
13080         * config/avr/avr.c (avr_base_arch_macro, avr_have_movw_lpmx_p,
13081         avr_have_mul_p, avr_asm_only_p): Remove variables.
13082         (avr_override_options): Remove initialization of removed variables.
13083         (avr_file_start):  Convert removed variables to fields of
13084         'struct base_arch_s *avr_current_arch'.
13085         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): (Ditto.).
13086         (AVR_HAVE_MUL): (Ditto.).
13087         (AVR_HAVE_MOVW): (Ditto.).
13088         (AVR_HAVE_LPMX): (Ditto.).
13089         (avr_base_arch_macro, avr_have_movw_lpmx_p, avr_have_mul_p,
13090         avr_asm_only_p): Remove declaration.
13091
13092 2008-05-15  Diego Novillo  <dnovillo@google.com>
13093
13094         * config/arm/arm.c (arm_return_in_memory): Fix return type.
13095         * config/arm/arm-protos.h (arm_return_in_memory): Likewise.
13096
13097 2008-05-15  Adam Nemet  <anemet@caviumnetworks.com>
13098
13099         PR middle-end/36194
13100         * combine.c (check_conversion): Rename back to check_promoted_subreg.
13101         Don't call record_truncated_value from here.
13102         (record_truncated_value): Turn it into a for_each_rtx callback.
13103         (record_truncated_values): New function.
13104         (combine_instructions): Call note_uses with record_truncated_values.
13105         Change name of check_conversion to check_promoted_subreg.
13106
13107 2008-05-15  Janis Johnson  <janis187@us.ibm.com>
13108
13109         * doc/sourcebuild.texi: Document support for torture tests.
13110
13111 2008-05-15  Uros Bizjak  <ubizjak@gmail.com>
13112
13113         * config/i386/sse.md (*vec_concatv2sf_sse4_1): Add "m" constraint
13114         to alternative 4 of operand 2.
13115
13116 2008-05-15  Richard Guenther  <rguenther@suse.de>
13117
13118         * tree-pass.h (current_pass): Declare.
13119         (get_pass_for_id): Likewise.
13120         * passes.c (passes_by_id, passes_by_id_size): New globals.
13121         (set_pass_for_id): New function.
13122         (get_pass_for_id): Likewise.
13123         (register_one_dump_file): Use set_pass_for_id to populate passes_by_id.
13124         (execute_function_todo): Flush per function statistics.
13125         * toplev.c (compile_file): Init statistics.
13126         (general_init): Do early statistics initialization.
13127         (finalize): Finish statistics.
13128         * statistics.h (statistics_early_init): Declare.
13129         (statistics_init): Likewise.
13130         (statistics_fini): Likewise.
13131         (statistics_fini_pass): Likewise.
13132         (statistics_counter_event): Likewise.
13133         (statistics_histogram_event): Likewise.
13134         * statistics.c: New file.
13135         * Makefile.in (OBJS-common): Add statistics.o.
13136         (statistics.o): Add dependencies.
13137         * doc/invoke.texi (-fdump-statistics): Document.
13138
13139         * tree-ssa-pre.c (compute_antic): Use statistics_histogram_event.
13140         (insert): Likewise.
13141         (execute_pre): Use statistics_counter_event.
13142         * tree-ssa-propagate.c (struct prop_stats_d): Add num_dce field.
13143         (substitute_and_fold): Increment it.  Use statistics_counter_event.
13144
13145 2008-05-15  Diego Novillo  <dnovillo@google.com>
13146
13147         http://gcc.gnu.org/ml/gcc-patches/2008-05/msg00893.html
13148
13149         * treestruct.def (TS_STRUCT_FIELD_TAG): Remove.
13150         * tree-ssa-alias.c (new_type_alias): Remove references to
13151         sub-variables from comment.
13152         * tree-ssa-operands.c (swap_tree_operands): Likewise.
13153
13154 2008-05-15  H.J. Lu  <hongjiu.lu@intel.com>
13155
13156         * config/i386/sse.md (*vec_concatv2sf_sse4_1): Set prefix_extra
13157         attribute to 1 only for insertps alternative.
13158
13159 2008-05-15  Bernd Schmidt  <bernd.schmidt@analog.com>
13160
13161         * config/bfin/bfin.md (loadbytes): New pattern.
13162         * config/bfin/bfin.c (enum bfin_builtins): Add BFIN_BUILTIN_LOADBYTES.
13163         (bfin_init_builtins): Initialize it.
13164         (bdesc_1arg): Add it.
13165
13166 2008-05-15  Sa Liu  <saliu@de.ibm.com>
13167
13168         * testsuite/gfortran.dg/c_kind_int128_test1.f03: New.
13169         * testsuite/gfortran.dg/c_kind_int128_test2.f03: New.
13170         * testsuite/lib/target-supports.exp: Add
13171         check_effective_target_fortran_integer_16.
13172
13173 2008-05-15  Bernd Schmidt  <bernd.schmidt@analog.com>
13174
13175         * config/bfin/bfin.h (TARGET_RETURN_IN_MEMORY): Don't define here.
13176         * config/bfin/bfin-protos.h (bfin_return_in_memory): Don't declare.
13177         * config/bfin/bfin.c (bfin_return_in_memory): Now static.  Return bool.
13178         (TARGET_RETURN_IN_MEMORY): Define.
13179
13180 2008-05-15  Richard Guenther  <rguenther@suse.de>
13181
13182         PR middle-end/36244
13183         * tree-ssa-alias.c (new_type_alias): Do not set TREE_READONLY.
13184         * tree-flow-inline.h (unmodifiable_var_p): Memory tags never
13185         represent unmodifiable vars.
13186
13187 2008-05-15  Richard Guenther  <rguenther@suse.de>
13188
13189         * tree-dfa.c (refs_may_alias_p): Allow all kinds of
13190         INDIRECT_REF and TARGET_MEM_REF.
13191         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
13192         TARGET_MEM_REF.
13193
13194 2008-05-15  Uros Bizjak  <ubizjak@gmail.com>
13195             H.J. Lu  <hongjiu.lu@intel.com>
13196
13197         * config/i386/sse.md (*vec_concatv2sf_sse4_1): New insn pattern.
13198         (*vec_concatv2si_sse4_1): Use vector_move_operand predicate
13199         for operand 2.  Remove pinsr{q,d} with 0x0 immediate operand from
13200         insn alternatives.  Add missing alternatives.
13201         (*vec_concatv2di_rex64_sse4_1): Likewise.
13202         (*vec_concatv2si_sse2): Use "x" register constraint instead of "Y2".
13203         (*vec_concatv2di_rex64_sse): Rename from *vec_concatv2di_rex64.
13204         Require TARGET_SSE.
13205
13206 2008-05-15  Richard Guenther  <rguenther@suse.de>
13207
13208         PR tree-optimization/36009
13209         PR tree-optimization/36204
13210         * tree-ssa-loop-im.c (tree-ssa-propagate.h): Include.
13211         (determine_invariantness_stmt): Record the loop a store is
13212         always executed in.
13213         * Makefile.in (tree-ssa-loop-im.o): Add tree-ssa-propagate.h
13214         dependency.
13215
13216 2008-05-15  Richard Guenther  <rguenther@suse.de>
13217
13218         PR tree-optimization/34330
13219         * tree-ssa-alias.c (get_smt_for): Only assert that accesses
13220         through the pointer will alias the SMT.
13221
13222 2008-05-14  Andreas Tobler  <a.tobler@schweiz.org>
13223
13224         * config/sparc/sparc.h (NO_PROFILE_COUNTERS): Define as 0.
13225
13226 2008-05-14  H.J. Lu  <hongjiu.lu@intel.com>
13227
13228         * config/i386/sse.md (*sse4_1_pinsrq): Make it 64bit only.
13229
13230 2008-05-14  Michael Meissner  <michael.meissner@amd.com>
13231             Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
13232
13233         * optabs.h (optab_index): Add OTI_vashl, OTI_vlshr, OTI_vashr,
13234         OTI_vrotl, OTI_vrotr to support vector/vector shifts.
13235         (vashl_optab): New optab for vector/vector shifts.
13236         (vashr_optab): Ditto.
13237         (vlshr_optab): Ditto.
13238         (vrotl_optab): Ditto.
13239         (vrotr_optab): Ditto.
13240         (optab_subtype): New enum for optab_for_tree_code call.
13241         (optab_for_tree_code): Add enum optab_subtype argument.
13242
13243         * optabs.c (optab_for_tree_code): Take an additional argument to
13244         distinguish between a vector shift by a scalar and vector shift by
13245         a vector.  Make lshr/ashr/ashl/rotl/rotr optabs just vector
13246         shifted by a scalar.  Use vlshr/vashr/vashl/vrotl/vrotr for the
13247         vector shift by a vector.
13248         (expand_widen_pattern_expr): Pass additional argument to
13249         optab_for_tree_code.
13250
13251         * genopinit.c (optabs): Add vashr_optab, vashl_optab, vlshr_optab,
13252         vrotl_optab, vrotr_optab.
13253
13254         * expr.c (expand_expr_real_1): Update calls to
13255         optab_for_tree_code to distinguish between vector shifted by a
13256         scalar and vector shifted by a vector.
13257         * tree-vectorizer.c (supportable_widening_operation): Ditto.
13258         (supportable_narrowing_operation): Ditto.
13259         * tree-vect-analyze.c (vect_build_slp_tree): Ditto.
13260         * tree-vect-patterns.c (vect_pattern_recog_1): Ditto.
13261         * tree-vect-transform.c (vect_model_reduction_cost): Ditto.
13262         (vect_create_epilog_for_reduction): Ditto.
13263         (vectorizable_reduction): Ditto.
13264         (vectorizable_operation): Ditto.
13265         (vect_strided_store_supported): Ditto.
13266         (vect_strided_load_supported): Ditto.
13267         * tree-vect-generic.c (expand_vector_operations_1): Ditto.
13268         * expmed.c (expand_shift): Ditto.
13269
13270         * doc/md.texi (ashl@var{m}3): Document that operand 2 is always a
13271         scalar type.
13272         (ashr@var{m}3): Ditto.
13273         (vashl@var{m}3): Document new vector/vector shift standard name.
13274         (vashr@var{m}3): Ditto.
13275         (vlshr@var{m}3): Ditto.
13276         (vrotl@var{m}3): Ditto.
13277         (vrotr@var{m}3): Ditto.
13278
13279         * config/i386/i386.md (PPERM_SRC): Move PPERM masks here from i386.c.
13280         (PPERM_INVERT): Ditto.
13281         (PPERM_REVERSE): Ditto.
13282         (PPERM_REV_INV): Ditto.
13283         (PPERM_ZERO): Ditto.
13284         (PPERM_ONES): Ditto.
13285         (PPERM_SIGN): Ditto.
13286         (PPERM_INV_SIGN): Ditto.
13287         (PPERM_SRC1): Ditto.
13288         (PPERM_SRC2): Ditto.
13289
13290         * config/i386/sse.md (mulv2di3): Add SSE5 support.
13291         (sse5_pmacsdql_mem): New SSE5 define_and_split that temporarily
13292         allows a memory operand to be the value being added, and split it
13293         to improve vectorization.
13294         (sse5_pmacsdqh_mem): Ditto.
13295         (sse5_mulv2div2di3_low): SSE5 32-bit multiply and extend function.
13296         (sse5_mulv2div2di3_high): Ditto.
13297         (vec_pack_trunc_v8hi): Add SSE5 pperm support.
13298         (vec_pack_trunc_v4si): Ditto.
13299         (vec_pack_trunc_v2di): Ditto.
13300         (sse5_pcmov_<mode>): Remove code that tried to use use
13301         andps/andnps instead of pcmov.
13302         (vec_widen_smult_hi_v4si): If we have SSE5, use the pmacsdql and
13303         pmacsdqh instructions.
13304         (vec_widen_smult_lo_v4si): Ditto.
13305
13306         * config/i386/i386.c (PPERM_SRC): Move PPERM masks to i386.md.
13307         (PPERM_INVERT): Ditto.
13308         (PPERM_REVERSE): Ditto.
13309         (PPERM_REV_INV): Ditto.
13310         (PPERM_ZERO): Ditto.
13311         (PPERM_ONES): Ditto.
13312         (PPERM_SIGN): Ditto.
13313         (PPERM_INV_SIGN): Ditto.
13314         (PPERM_SRC1): Ditto.
13315         (PPERM_SRC2): Ditto.
13316         (ix86_expand_sse_movcc): Move the SSE5 test after the if
13317         true/false tests.
13318         (ix86_expand_int_vcond): If SSE5 generate all possible integer
13319         comparisons.
13320         (ix86_sse5_valid_op_p): Allow num_memory to be negative, which
13321         says ignore whether the last reference is a memory operand.
13322
13323 2008-05-14  Michael Meissner  <michael.meissner@amd.com>
13324             Paolo Bonzini <bonzini at gnu dot org>
13325
13326         * config/rs6000/rs6000.c (bdesc_2arg): Change the names of vector
13327         shift patterns.
13328
13329         * config/rs6000/altivec.md (vashl<mode>3): Rename from ashl<mode>3.
13330         (vlshr<mode>3): Rename from vlshr<mode>3.
13331         (vashr<mode>3): Rename from vashr<mode>3.
13332         (mulv4sf3): Change the names of vector shift patterns.
13333         (mulv4si3): Ditto.
13334         (negv4sf2): Ditt.
13335
13336         * config/spu/spu.c (spu_initialize_trampoline): Rename vector
13337         shift insns.
13338
13339         * config/spu/spu-builtins.def (SI_SHLH): Rename vector shift insns.
13340         (SI_SHLHI): Ditto.
13341         (SI_SHL): Ditto.
13342         (SI_SHLI): Ditto.
13343         (SI_ROTH): Ditto.
13344         (SI_ROTHI): Ditto.
13345         (SI_ROT): Ditto.
13346         (SI_ROTI): Ditto.
13347         (SPU_RL_0): Ditto.
13348         (SPU_RL_1): Ditto.
13349         (SPU_RL_2): Ditto.
13350         (SPU_RL_3): Ditto.
13351         (SPU_RL_4): Ditto.
13352         (SPU_RL_5): Ditto.
13353         (SPU_RL_6): Ditto.
13354         (SPU_RL_7): Ditto.
13355         (SPU_SL_0): Ditto.
13356         (SPU_SL_1): Ditto.
13357         (SPU_SL_2): Ditto.
13358         (SPU_SL_3): Ditto.
13359         (SPU_SL_4): Ditto.
13360         (SPU_SL_5): Ditto.
13361         (SPU_SL_6): Ditto.
13362         (SPU_SL_7): Ditto.
13363
13364         * config/spu/spu.md (v): New iterator macro to add v for vector types.
13365         (floatunssidf2_internal): Change vector/vector shift names.
13366         (floatunsdidf2_internal): Ditto.
13367         (mulv8hi3): Ditto.
13368         (ashrdi3): Ditto.
13369         (ashrti3): Ditto.
13370         (cgt_df): Ditto.
13371         (cgt_v2df): Ditto.
13372         (dftsv): Ditto.
13373         (vashl<mode>3): Rename from ashl<mode>3.
13374         (vashr<mode>3): Rename from ashr<mode>3.
13375         (vlshr<mode>3): Rename from lshr<mode>3.
13376         (vrotl<mode>3): Rename from rotl<mode>3.
13377
13378 2008-05-14  Michael Meissner  <michael.meissner@amd.com>
13379
13380         PR target/36224
13381         * config/i386/sse.md (vec_widen_smult_hi_v4si): Delete, using unsigned
13382         multiply gives the wrong value when doing widening multiplies.
13383         (vec_widen_smult_lo_v4si): Ditto.
13384
13385 2008-05-14  Kenneth Zadeck <zadeck@naturalbridge.com>
13386
13387         * optabs.c (prepare_cmp_insn): Changed LCT_PURE_MAKE_BLOCK to
13388         LCT_PURE and LCT_CONST_MAKE_BLOCK to LCT_CONST in calls to
13389         emit_library_call_value.
13390         * builtins.c (expand_builtin_powi, expand_builtin_memcmp): Ditto.
13391         * tree.h (ECF_LIBCALL_BLOCK): Removed.
13392         * calls.c (initialize_argument_information, precompute_arguments,
13393         expand_call, emit_library_call_value_1): Remove ECF_LIBCALL_BLOCK.
13394         (precompute_arguments): Removed flags parameter.
13395         * rtl.h (LCT_CONST_MAKE_BLOCK, LCT_PURE_MAKE_BLOCK): Removed.
13396
13397 2008-05-14  Richard Guenther  <rguenther@suse.de>
13398
13399         * tree-ssa-dse.c (dse_possible_dead_store_p): Remove dead code.
13400         Make sure to register the store if the use is a PHI_NODE.
13401
13402 2008-05-14  Olivier Hainque  <hainque@adacore.com>
13403
13404         * expr.c (expand_expr_real_1) <normal_inner_ref>: Force op0 to
13405         memory if the component is to be referenced in BLKmode according
13406         to get_inner_reference.
13407
13408 2008-05-14  Adam Nemet  <anemet@caviumnetworks.com>
13409
13410         * calls.c (emit_library_call_value_1): Restore code clearing
13411         ECF_LIBCALL_BLOCK to ensure that we only call end_sequence once.
13412
13413 2008-05-14  Olivier Hainque  <hainque@adacore.com>
13414             Nicolas Roche  <roche@adacore.com>
13415
13416         * configure.ac: Add support for a "gcc_subdir" variable in
13417         config-lang.in, to denote a subdirectory where the language/GCC
13418         integration files are to be found.
13419         * configure: Regenerate.
13420
13421 2008-05-14  Ira Rosen  <irar@il.ibm.com>
13422
13423         PR tree-optimization/36098
13424         * tree-vect-analyze.c (vect_analyze_group_access): Set the gap
13425         value for the first load in the group in case of a gap.
13426         (vect_build_slp_tree): Check that there are no gaps in loads.
13427
13428 2008-05-14  Kenneth Zadeck <zadeck@naturalbridge.com>
13429
13430         * doc/rtl.texi: Removed reference to REG_NO_CONFLICT notes.
13431         * optabs.c (expand_binop, expand_absneg_bit, expand_unop,
13432         expand_copysign_bit, ): Change call to emit_no_conflict_block to
13433         emit_insn and remove unneeded code to construct extra args.
13434         (emit_no_conflict_block): Removed.
13435         * optabls.h: (emit_no_conflict_block): Removed.
13436         * cse.c (cse_extended_basic_block): Remove search for
13437         REG_NO_CONFLICT note.
13438         * global.c: Removed incorrect comment added in revision 117.
13439         * expr.c (convert_move): Change call to emit_no_conflict_block to
13440         emit_insn.
13441         * recog.c: Change comments so that they do not mention
13442         REG_NO_CONFLICT.
13443         * local_alloc.c (combine_regs): Removed last parameter.
13444         (no_conflict_p): Removed.
13445         (block_alloc): Removed note, no_conflict_combined_regno and set
13446         local vars. Removed all code to process REG_NO_CONFLICT blocks.
13447         (combine_regs): Removed already_dead and code to look for
13448         REG_NO_CONFLICT notes.
13449         * lower_subreg (remove_retval_note): Removed code to look for
13450         REG_NO_CONFLICT block.
13451         (resolve_reg_notes): Removed REG_NO_CONFLICT case.
13452         (resolve_clobber): Remove code to process libcalls that have
13453         REG_NO_CONFLICT notes.
13454         * loop_invariant.c (find_invariant_insn): Removed REG_NO_CONFLICT
13455         case.
13456         * combine.c (can_combine_p, distribute_notes):  Removed
13457         REG_NO_CONFLICT case.
13458         * config/cris/cris.md (movdi pattern): Changed emit_no_conflict_block
13459         to emit_insns.
13460         * config/mn10300/mn10300.md (absdf2, negdf2 patterns): Ditto.
13461         * config/m68k/m68k.md (negdf2, negxf2, absdf2, absxf2 patterns):
13462         Ditto.
13463         * reg-notes.def (NO_CONFLICT): Removed.
13464
13465 2008-05-14  David S. Miller  <davem@davemloft.net>
13466
13467         * config/sparc/sparc.c (sparc_profile_hook): If
13468         NO_PROFILE_COUNTERS, don't generate and pass a label into mcount.
13469         * config/sparc/linux.h (NO_PROFILE_COUNTERS): Define as 1.
13470         * config/sparc/linux64.h (NO_PROFILE_COUNTERS): Likewise.
13471
13472 2008-05-14  Andreas Krebbel  <krebbel1@de.ibm.com>
13473
13474         * cse.c (cse_cc_succs): Invoke delete_insn_and_edges.
13475
13476 2008-05-13  Uros Bizjak  <ubizjak@gmail.com>
13477
13478         PR target/36222
13479         * config/i386/i386.c (ix86_expand_vector_init_general): Rearrange op0
13480         and op1 expansion before vector concat to have less live pseudos.
13481
13482 2008-05-13  H.J. Lu  <hongjiu.lu@intel.com>
13483
13484         * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Use
13485         ix86_expand_vector_set if supported.
13486
13487 2008-05-13  Diego Novillo  <dnovillo@google.com>
13488             Kenneth Zadeck  <zadeck@naturalbridge.com>
13489
13490         http://gcc.gnu.org/ml/gcc-patches/2008-05/msg00748.html
13491
13492         * tree.h (init_phinodes, fini_phinodes, release_phi_node,
13493         phinodes_print_statistics, init_ssanames, fini_ssanames,
13494         make_ssa_name, duplicate_ssa_name, duplicate_ssa_name_ptr_info,
13495         release_ssa_name, release_defs, replace_ssa_name_symbol,
13496         ssanames_print_statistics): Move ...
13497         * tree-flow.h: ... here.
13498         * tree-ssanames.c (init_ssanames): Add arguments FN and SIZE.
13499         Use FN instead of cfun.
13500         (make_ssa_name_fn): Rename from make_ssa_name.
13501         (pass_release_ssa_names): Add TODO_dump_func to finish flags.
13502         * tree-flow-inline.h (make_ssa_name): Move from
13503         tree-ssanames.c.  Convert to static inline.  Call make_ssa_name_fn.
13504         * omp-low.c (expand_omp_parallel):
13505         * tree-flow-inline.h (redirect_edge_var_map_result):
13506         * tree-ssa.c (init_tree_ssa): Add argument FN.
13507         Use it instead of cfun.  Update all users.
13508
13509 2008-05-13  Tom Tromey  <tromey@redhat.com>
13510
13511         PR preprocessor/22168:
13512         * doc/cpp.texi (Top): Update menu.
13513         (Alternatives to Wrapper #ifndef): New node.
13514         (Other Directives): Document deprecation.
13515         (Obsolete Features): Remove menu.
13516         (Assertions): Merge node into Obsolete Features.
13517         (Obsolete once-only headers): Move earlier; rename to Alternatives
13518         to Wrapper #ifndef.
13519         * doc/cppopts.texi: Update.
13520         * c.opt (Wdeprecated): Enable for C and ObjC.
13521         * doc/invoke.texi (Option Summary): Move -Wno-deprecated.
13522         (C++ Dialect Options): Move -Wno-deprecated from here to...
13523         (Warning Options): ... here.
13524
13525 2008-05-13  Richard Guenther  <rguenther@suse.de>
13526
13527         PR middle-end/36227
13528         * fold-const.c (fold_sign_changed_comparison): Do not allow
13529         changes in pointer-ness.
13530
13531 2008-05-12  Kaz Kojima  <kkojima@gcc.gnu.org>
13532
13533         PR target/24713
13534         * config/sh/sh.c (sh_expand_prologue): Don't clear
13535         RTX_FRAME_RELATED_P for push insns.
13536
13537 2008-05-12  Andy Hutchinson  <hutchinsonandy@aim.com>
13538
13539         * config/avr/avr.h (MAX_OFILE_ALIGNMENT): Define.
13540
13541 2008-05-12  Anatoly Sokolov <aesok@post.ru>
13542
13543         * config/avr/avr.h (machine_function): Add 'is_leaf' field.
13544         * config/avr/avr.c (avr_regs_to_save): Compute 'machine->is_leaf'.
13545         Use 'machine->is_leaf' instead of 'leaf_func_p'.
13546
13547 2008-05-12  H.J. Lu  <hongjiu.lu@intel.com>
13548
13549         * config/i386/sse.md (*sse_concatv4sf): Renamed to ...
13550         (*vec_concatv4sf_sse): This.
13551         (*sse2_concatv2si): Renamed to ...
13552         (*vec_concatv2si_sse2): This.
13553         (*sse1_concatv2si): Renamed to ...
13554         (*vec_concatv2si_sse): This.
13555         (*vec_concatv2di_rex): Renamed to ...
13556         (*vec_concatv2di_rex64): This.
13557         (*vec_concatv2si_sse4_1): New.
13558         (*vec_concatv2di_rex64_sse4_1): Likewise.
13559
13560 2008-05-12  Uros Bizjak  <ubizjak@gmail.com>
13561
13562         PR rtl-optimization/36111
13563         * recog.c (validate_replace_rtx_1): Unshare new RTL expression
13564         that was created for swappable operands.
13565
13566 2008-05-12  Samuel Tardieu  <sam@rfc1149.net>
13567
13568         PR ada/36001
13569         * Makefile.in: Substitute GNATMAKE and GNATBIND.
13570         * configure.ac: Add call to ACX_PROG_GNAT.
13571
13572 2008-05-11  Volker Reichelt  <v.reichelt@netcologne.de>
13573
13574         * optc-gen.awk: Fix comment typo.
13575
13576 2008-05-11  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
13577
13578         * pretty-print.c (pp_integer_with_precision): Use
13579         HOST_LONG_LONG_FORMAT.
13580
13581 2008-05-10  Kenneth Zadeck  <zadeck@naturalbridge.com>
13582
13583         * gcse.c (store_killed_in_insn): Negated call to RTL_CONST_CALL_P.
13584
13585 2008-05-10  H.J. Lu  <hongjiu.lu@intel.com>
13586
13587         * config/i386/i386.c (bdesc_ptest): Removed.
13588         (ix86_builtin_type): Add INT_FTYPE_V2DI_V2DI_PTEST.
13589         (bdesc_args): Add __builtin_ia32_ptestz128,
13590         __builtin_ia32_ptestc128 and __builtin_ia32_ptestnzc128.
13591         (ix86_init_mmx_sse_builtins): Updated.
13592         (ix86_expand_args_builtin): Handle INT_FTYPE_V2DI_V2DI_PTEST.
13593         (ix86_expand_builtin): Updated.
13594
13595 2008-05-10  Richard Sandiford  <rdsandiford@googlemail.com>
13596
13597         * tree-cfg.c (valid_fixed_convert_types_p): New function.
13598         (verify_gimple_expr): Handle FIXED_CONVERT_EXPR.
13599
13600 2008-05-10  Uros Bizjak  <ubizjak@gmail.com>
13601
13602         * value-prof.c (interesting_stringop_to_profile): Do not
13603         return early for BUILT_IN_MEMPCPY.
13604
13605 2008-05-09  H.J. Lu  <hongjiu.lu@intel.com>
13606
13607         * calls.c (expand_call): Don't use callgraph to increase
13608         preferred_stack_boundary.
13609
13610         * cgraph.h (cgraph_rtl_info): Use unsigned on
13611         preferred_incoming_stack_boundary.
13612
13613         * final.c (rest_of_clean_state): Use unsigned on
13614         preferred_stack_boundary.
13615
13616 2008-05-09  Tom Tromey  <tromey@redhat.com>
13617
13618         PR preprocessor/22231:
13619         * c-opts.c (sanitize_cpp_opts): Disallow -MG if compilation is
13620         proceeding.
13621
13622 2008-05-09  Uros Bizjak  <ubizjak@gmail.com>
13623
13624         PR tree-optimization/36129
13625         * tree-ssa-ccp.c: Include value-prof.h.
13626         (execute_fold_all_builtins): Call gimple_remove_stmt_histograms if
13627         built-in function was folded to a constant.
13628         * Makefile.in (tree-ssa-ccp.c): Depend on value-prof.h
13629
13630 2008-05-09  Jan Sjodin  <jan.sjodin@amd.com>
13631             Sebastian Pop  <sebastian.pop@amd.com>
13632
13633         * tree-scalar-evolution.c: Document instantiate_scev.
13634         (instantiate_parameters_1): Renamed instantiate_scev_1.
13635         Don't use the same loop for instantiation_loop and evolution_loop.
13636         (instantiate_scev): New.
13637         (instantiate_parameters): Moved...
13638         (resolve_mixers): Update call to instantiate_scev_1 to pass the
13639         same loop twice.  Maintains the semantics for this function.
13640         * tree-scalar-evolution.h (instantiate_scev): Declare.
13641         (instantiate_parameters): ...here.  Now static inline.
13642         * tree-data-ref.c (dr_analyze_indices): Call instantiate_scev
13643         instead of resolve_mixers.
13644
13645 2008-05-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
13646
13647         * rtl-factoring.c (collect_pattern_seqs): Fix typo.
13648
13649 2008-05-09  Tomas Bily  <tbily@suse.cz>
13650
13651         * config/pa/pa.c (reloc_needed): Use CASE_CONVERT.
13652         * tree-cfg.c (verify_expr, verify_gimple_expr): Likewise.
13653         * tree-ssa-structalias.c (get_constraint_for): Likewise.
13654         * c-common.c (c_common_truthvalue_conversion): Likewise.
13655         * tree-object-size.c (compute_object_offset): Likewise.
13656         * tree-inline.c (estimate_num_insns_1): Likewise.
13657         * varasm.c (const_hash_1, compare_constant, copy_constant)
13658         (compute_reloc_for_constant, output_addressed_constants)
13659         (initializer_constant_valid_p): Likewise.
13660         * c-omp.c (check_omp_for_incr_expr): Likewise.
13661         * gimplify.c (gimplify_expr): Likewise.
13662         * c-typeck.c (c_finish_return): Likewise.
13663         * tree-vectorizer.c (supportable_widening_operation)
13664         (supportable_narrowing_operation): Likewise.
13665         * c-pretty-print.c (pp_c_cast_expression, pp_c_expression): Likewise.
13666         * matrix-reorg.c (can_calculate_expr_before_stmt): Likewise.
13667         * expr.c (highest_pow2_factor, expand_expr_real_1): Likewise.
13668         * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info)
13669         (descr_info_loc): Likewise.
13670         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
13671         * fold-const.c (operand_equal_p, make_range, extract_muldiv_1)
13672         (fold_unary): Likewise.
13673         * builtins.c (get_pointer_alignment): Likewise.
13674         * tree-scalar-evolution.c (interpret_rhs_modify_stmt)
13675         (instantiate_parameters_1): Likewise.
13676         * tree.c (expr_align, stabilize_reference): Likewise.
13677         * tree-pretty-print.c (dump_generic_node, op_prio): Likewise.
13678         * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
13679         * convert.c (strip_float_extensions): Use CONVERT_EXPR_P.
13680         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
13681         * config/alpha/alpha.c (va_list_skip_additions): Likewise.
13682         * c-common.c (c_alignof_expr, check_function_arguments_recurse):
13683         Likewise.
13684         * tree-ssa.c (tree_ssa_useless_type_conversion): Likewise.
13685         * varasm.c (initializer_constant_valid_p, output_constant): Likewise.
13686         * tree-ssa-forwprop.c (get_prop_source_stmt, can_propagate_from)
13687         (forward_propagate_addr_expr_1, forward_propagate_addr_expr)
13688         (forward_propagate_comparison)
13689         (tree_ssa_forward_propagate_single_use_vars): Likewise.
13690         * cfgexpand.c (discover_nonconstant_array_refs_r): Likewise.
13691         * emit-rtl.c (component_ref_for_mem_expr)
13692         (set_mem_attributes_minus_bitpos): Likewise.
13693         * tree-ssa-phiopt.c (conditional_replacement): Likewise.
13694         * gimplify.c (gimplify_conversion, goa_lhs_expr_p, gimplify_expr):
13695         Likewise.
13696         * c-typeck.c (default_function_array_conversion, build_indirect_ref)
13697         (build_function_call, pointer_diff, build_compound_expr)
13698         (c_finish_return): Likewise.
13699         * tree-vect-analyze.c (vect_determine_vectorization_factor): Likewise.
13700         * matrix-reorg.c (get_inner_of_cast_expr, may_flatten_matrices_1):
13701         Likewise.
13702         * tree-ssa-ifcombine.c (recognize_single_bit_test): Likewise.
13703         * expr.c (is_aligning_offset): Likewise.
13704         * tree-ssa-alias.c (is_escape_site): Likewise.
13705         * tree-stdarg.c (va_list_counter_bump, check_va_list_escapes)
13706         (check_all_va_list_escapes): Likewise.
13707         * tree-ssa-loop-ivopts.c (determine_base_object)
13708         (determine_common_wider_type): Likewise.
13709         * dojump.c (do_jump): Likewise.
13710         * tree-ssa-sccvn.c (simplify_unary_expression): Likewise.
13711         * tree-gimple.c (is_gimple_cast): Likewise.
13712         * fold-const.c (decode_field_reference, )
13713         (fold_sign_changed_comparison, fold_unary, fold_comparison)
13714         (fold_binary): Likewise.
13715         * tree-ssa-alias-warnings.c (find_alias_site_helper)
13716         (already_warned_in_frontend_p): Likewise.
13717         * builtins.c (get_memory_rtx, fold_builtin_next_arg): Likewise.
13718         * tree.c (really_constant_p, get_unwidened): Likewise.
13719         * tree-ssa-loop-niter.c (expand_simple_operations): Likewise.
13720         * tree-ssa-loop-im.c (rewrite_bittest): Likewise.
13721         * tree-vrp.c (register_edge_assert_for_2, register_edge_assert_for_1):
13722         Likewise.
13723         * tree.h (STRIP_NOPS, STRIP_SIGN_NOPS, STRIP_TYPE_NOPS): Use
13724         CONVERT_EXPR_P.
13725         (CONVERT_EXPR_P): Define.
13726         (CASE_CONVERT): Define.
13727
13728 2008-05-08  Kenneth Zadeck  <zadeck@naturalbridge.com>
13729
13730         PR middle-end/36117
13731         * dce.c (deletable_insn_p): Do not delete calls if df_in_progress.
13732         (delete_unmarked_insns): When deleting a call, call
13733         delete_unreachable_blocks.
13734         * rtl.texi (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
13735         RTL_CONST_OR_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P): Fixed doc.
13736
13737 2008-05-08  Richard Guenther  <rguenther@suse.de>
13738
13739         * doc/invoke.texi (-fdump-tree-salias): Remove documentation.
13740         (-ftree-salias): Likewise.
13741         (salias-max-implicit-fields): Remove param documentation.
13742         (salias-max-array-elements): Likewise.
13743         * tree-pass.h (pass_create_structure_vars): Remove.
13744         * params.h (SALIAS_MAX_IMPLICIT_FIELDS): Remove.
13745         (SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
13746         * tree-ssa-alias.c (create_structure_vars): Remove.
13747         (gate_structure_vars): Likewise.
13748         (pass_create_structure_vars): Likewise.
13749         (gate_build_alias): Likewise.
13750         (pass_build_alias): Adjust to run always and dump the function.
13751         * common.opt (ftree-salias): Hide.
13752         * passes.c (init_optimization_passes): Remove
13753         pass_create_structure_vars, adjust comment.
13754         * params.def (PARAM_SALIAS_MAX_IMPLICIT_FIELDS): Remove.
13755         (PARAM_SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
13756         * opts.c (decode_options): Do not set flag_tree_salias.
13757         (common_handle_option): Add OPT_ftree_salias to the backward
13758         compatibility section.
13759
13760 2008-05-08  Richard Guenther  <rguenther@suse.de>
13761
13762         * tree-flow-inline.h (var_can_have_subvars): Move ...
13763         * tree-ssa-structalias.c (var_can_have_subvars): ... here.
13764         * tree-flow.h (var_can_have_subvars): Remove.
13765         (push_fields_onto_fieldstack): Remove.
13766         (sort_fieldstack): Likewise.
13767         (struct fieldoff): Move ...
13768         * tree-ssa-structalias.c (struct fieldoff): ... here.  Remove
13769         alias_set and base_for_components fields.
13770         (sort_fieldstack): Make static.
13771         (push_fields_onto_fieldstack): Likewise.  Remove code that
13772         handles anything but RECORD_TYPEs.  Remove alias_set and
13773         base_for_components handling.
13774         (create_variable_info_for): Adjust.
13775
13776 2008-05-08  Seongbae Park  <seongbae.park@gmail.com>
13777
13778         * common.opt (Wframe-larger-than=): Shorten the help message
13779         to one line.
13780         * doc/invoke.texi (Wframe-larger-than=): Add more description.
13781
13782 2008-05-08  Rafael Espíndola  <espindola@google.com>
13783
13784         * tree-complex.c (expand_complex_div_wide): Don't create CONDs that
13785         trap.
13786         * tree-gimple.c (is_gimple_condexpr): Check that the expression doesn't
13787         trap and that both operands are gimple values.
13788         (canonicalize_cond_expr_cond): Use is_gimple_condexpr.
13789         * gcc/tree-eh.c (tree_could_trap_p): Correctly detect if a comparison
13790         is a fp operation.
13791
13792 2008-05-08  Richard Sandiford  <rsandifo@nildram.co.uk>
13793
13794         * read-rtl.c (join_c_conditions): Return the first string if the
13795         two strings are equal.
13796
13797 2008-05-08  Richard Sandiford  <rsandifo@nildram.co.uk>
13798
13799         * gensupport.h (pred_data): Add a "num_codes" field.
13800         (add_predicate_code): Declare.
13801         * gensupport.c (add_predicate_code): New function.
13802         (std_pred_table): Add an "allows_const_p" field.
13803         (std_preds): Set this field for predicates that allow RTX_CONST_OBJs.
13804         Remove the (incomplete) list of such codes from the codes field.
13805         (init_predicate_table): Use add_predicate_code.  Add all
13806         RTX_CONST_OBJs if allows_const_p is true.
13807         * genrecog.c (process_define_predicate): Use add_predicate_code.
13808
13809 2008-05-08  David Daney  <ddaney@avtrex.com>
13810             Richard Sandiford  <rsandifo@nildram.co.uk>
13811
13812         * config/mips/mips.md (mips_expand_compare_and_swap_12): Handle
13813         special case of constant zero operands.
13814         * config/mips/mips.c (mips_expand_compare_and_swap_12): Zero extend
13815         old and new values.  Special case constant zero values.
13816         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP): Skip 'sync' if compare
13817         fails.
13818         (MIPS_COMPARE_AND_SWAP_12): Handle constant zero operands.
13819         (MIPS_COMPARE_AND_SWAP_12_0): New macro.
13820
13821 2008-05-08  Paolo Bonzini  <bonzini@gnu.org>
13822
13823         PR target/36090
13824         * simplify-rtx.c (simplify_plus_minus): Create CONST of
13825         similar RTX_CONST_OBJ before CONST_INT.
13826
13827 2008-05-08  Steve Ellcey  <sje@cup.hp.com>
13828
13829         * stmt.c (expand_stack_restore): Change sa mode if needed.
13830
13831 2008-05-08  Richard Guenther  <rguenther@suse.de>
13832
13833         * config/i386/i386-protos.h (ix86_return_in_memory): Adjust
13834         return type to bool.
13835         (ix86_sol10_return_in_memory): Likewise.
13836         (ix86_i386elf_return_in_memory): Likewise.
13837         (ix86_i386interix_return_in_memory): Likewise.
13838         * config/i386/i386.c (ix86_return_in_memory): Likewise.
13839         (ix86_sol10_return_in_memory): Likewise.
13840         (ix86_i386elf_return_in_memory): Likewise.
13841         (ix86_i386interix_return_in_memory): Likewise.
13842
13843 2008-05-08  Kai Tietz  <kai.tietz@onevision.com>
13844
13845         PR bootstrap/36180
13846         * calls.c (compute_argument_block_size ): Add ATTRIBUTE_UNUSED to
13847         fndecl argument.
13848         (emit_library_call_value_1): Add ATTRIBUTE_UNUSED to variable fndecl.
13849         * target-def.h: Check that TARGET_RETURN_IN_MEMORY isn't
13850         declared in front.
13851
13852 2008-05-08  Richard Guenther  <rguenther@suse.de>
13853
13854         * tree-data-ref.c (dr_analyze_alias): Do not set DR_SUBVARS.
13855         * tree-data-ref.h (struct dr_alias): Remove subvars field.
13856         (DR_SUBVARS): Remove.
13857         * tree-dfa.c (dump_subvars_for): Remove.
13858         (debug_subvars_for): Likewise.
13859         (dump_variable): Do not dump subvars.
13860         (remove_referenced_var): Do not remove subvars.
13861         * tree-flow-inline.h (clear_call_clobbered): SFTs no longer exist.
13862         (lookup_subvars_for_var): Remove.
13863         (get_subvars_for_var): Likewise.
13864         (get_subvars_at): Likewise.
13865         (get_first_overlapping_subvar): Likewise.
13866         (overlap_subvar): Likewise.
13867         * tree-flow.h (subvar_t): Remove.
13868         (struct var_ann_d): Remove subvars field.
13869         * tree-ssa-alias.c (mark_aliases_call_clobbered): Remove queued
13870         argument.  Remove special handling of SFTs.
13871         (compute_tag_properties): Likewise.
13872         (set_initial_properties): Likewise.
13873         (compute_call_clobbered): Likewise.
13874         (count_mem_refs): Likewise.
13875         (compute_memory_partitions): Likewise.
13876         (compute_flow_insensitive_aliasing): Likewise.
13877         (setup_pointers_and_addressables): Likewise.
13878         (new_type_alias): Likewise.
13879         (struct used_part): Remove.
13880         (used_portions): Likewise.
13881         (struct used_part_map): Likewise.
13882         (used_part_map_eq): Likewise.
13883         (used_part_map_hash): Likewise.
13884         (free_used_part_map): Likewise.
13885         (up_lookup): Likewise.
13886         (up_insert): Likewise.
13887         (get_or_create_used_part_for): Likewise.
13888         (create_sft): Likewise.
13889         (create_overlap_variables_for): Likewise.
13890         (find_used_portions): Likewise.
13891         (create_structure_vars): Likewise.
13892         * tree.def (STRUCT_FIELD_TAG): Remove.
13893         * tree.h (MTAG_P): Adjust.
13894         (struct tree_memory_tag): Remove base_for_components and
13895         unpartitionable flags.
13896         (struct tree_struct_field_tag): Remove.
13897         (SFT_PARENT_VAR): Likewise.
13898         (SFT_OFFSET): Likewise.
13899         (SFT_SIZE): Likewise.
13900         (SFT_NONADDRESSABLE_P): Likewise.
13901         (SFT_ALIAS_SET): Likewise.
13902         (SFT_UNPARTITIONABLE_P): Likewise.
13903         (SFT_BASE_FOR_COMPONENTS_P): Likewise.
13904         (union tree_node): Remove sft field.
13905         * alias.c (get_alias_set): Remove special handling of SFTs.
13906         * print-tree.c (print_node): Remove handling of SFTs.
13907         * tree-dump.c (dequeue_and_dump): Likewise.
13908         * tree-into-ssa.c (mark_sym_for_renaming): Likewise.
13909         * tree-nrv.c (dest_safe_for_nrv_p): Remove special handling of SFTs.
13910         * tree-predcom.c (set_alias_info): Do not set subvars.
13911         * tree-pretty-print.c (dump_generic_node): Do not handle SFTs.
13912         * tree-ssa-loop-ivopts.c (get_ref_tag): Likewise.
13913         * tree-ssa-operands.c (access_can_touch_variable): Likewise.
13914         (add_vars_for_offset): Remove.
13915         (add_virtual_operand): Remove special handling of SFTs.
13916         (add_call_clobber_ops): Likewise.
13917         (add_call_read_ops): Likewise.
13918         (get_asm_expr_operands): Likewise.
13919         (get_modify_stmt_operands): Likewise.
13920         (get_expr_operands): Likewise.
13921         (add_to_addressable_set): Likewise.
13922         * tree-ssa.c (verify_ssa_name): Do not handle SFTs.
13923         * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
13924         * tree-vect-transform.c (vect_create_data_ref_ptr): Do not set subvars.
13925         * tree.c (init_ttree): Remove STRUCT_FIELD_TAG initialization.
13926         (tree_code_size): Remove STRUCT_FIELD_TAG handling.
13927         (tree_node_structure): Likewise.
13928         * tree-ssa-structalias.c (set_uids_in_ptset): Remove special
13929         handling of SFTs.
13930         (find_what_p_points_to): Likewise.
13931
13932 2008-05-08  Sa Liu  <saliu@de.ibm.com>
13933
13934         * config/spu/spu.md: Fixed subti3 pattern.
13935
13936 2008-05-08  Richard Guenther  <rguenther@suse.de>
13937
13938         PR middle-end/36154
13939         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
13940         sure to create a representative for trailing arrays for PTA.
13941
13942 2008-05-08  Richard Guenther  <rguenther@suse.de>
13943
13944         PR middle-end/36172
13945         * fold-const.c (operand_equal_p): Two objects which types
13946         differ in pointerness are not equal.
13947
13948 2008-05-08  Kai Tietz  <kai.tietz@onevision.com>
13949
13950         * calls.c (compute_argument_block_size): Add argument tree fndecl.
13951         (OUTGOING_REG_PARM_STACK_SPACE): Add function type argument.
13952         (emit_library_call_value_1): Add new variable fndecl initialized by
13953         NULL_TREE. It should be the decl type of orgfun, but this information
13954         seems not to be available here, so it uses the default calling abi.
13955         * config/arm/arm.c (arm_return_in_memory): Add fntype argumen.
13956         * config/arm/arm.h (RETURN_IN_MEMORY): Replace RETURN_IN_MEMORY
13957         by TARGET_RETURN_IN_MEMORY.
13958         * config/i386/i386-interix.h: Likewise.
13959         * config/i386/i386.h: Likewise.
13960         * config/i386/i386elf.h: Likewise.
13961         * config/i386/ptx4-i.h: Likewise.
13962         * config/i386/sol2-10.h: Likewise.
13963         * config/i386/sysv4.h: Likewise.
13964         * config/i386/vx-common.h: Likewise.
13965         * config/cris/cris.h: Removed #if 0 clause.
13966         * config/arm/arm-protos.h (arm_return_in_memory): Add fntype argument.
13967         * config/i386/i386-protos.h (ix86_return_in_memory): Add fntype
13968         argument.
13969         (ix86_sol10_return_in_memory): Likewise.
13970         (ix86_i386elf_return_in_memory): New.
13971         (ix86_i386interix_return_in_memory): New.
13972         * config/mt/mt-protos.h (mt_return_in_memory): New.
13973         * config/mt/mt.c: Likewise.
13974         * config/mt/mt.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
13975         (RETURN_IN_MEMORY):  Replace by TARGET_RETURN_IN_MEMORY.
13976         * config/bfin/bfin.h: Likewise.
13977         * config/bfin/bfin-protos.h (bfin_return_in_memory): Add fntype
13978         argument.
13979         * config/bfin/bfin.c: Likewise.
13980         * config/pa/pa.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
13981         * config/alpha/unicosmk.h: Likewise.
13982         * config/i386/cygming.h: Likewise.
13983         * config/iq2000/iq2000.h: Likewise.
13984         * config/mips/mips.h: Likewise.
13985         * config/mn10300/mn10300.h: Likewise.
13986         * config/rs6000/rs6000.h: Likewise.
13987         * config/score/score.h: Likewise.
13988         * config/spu/spu.h: Likewise.
13989         * config/v850/v850.h: Likewise.
13990         * defaults.h: Likewise.
13991         * doc/tm.texi (OUTGOING_REG_PARM_STACK_SPACE): Adjust documentation.
13992         * expr.c (emit_block_move): Adjust use of
13993         OUTGOING_REG_PARM_STACK_SPACE.
13994         * function.c (STACK_DYNAMIC_OFFSET): Adjust use of
13995         OUTGOING_REG_PARM_STACK_SPACE.
13996         * targhooks.c (default_return_in_memory): Remove RETURN_IN_MEMORY.
13997
13998 2008-05-08  Jakub Jelinek  <jakub@redhat.com>
13999
14000         * tree-parloops.c (create_parallel_loop): Set OMP_RETURN_NOWAIT
14001         on OMP_RETURN for OMP_FOR.
14002
14003         PR debug/35896
14004         * dwarf2out.c (dw_expand_expr, common_check): Removed.
14005         (fortran_common): New function.
14006         (gen_variable_die): Call fortran_common instead of common_check,
14007         adjust for it returning tree instead of rtx.  Formatting.
14008
14009 2008-05-07  Kenneth Zadeck  <zadeck@naturalbridge.com>
14010
14011         PR rtl/7335
14012         PR rtl/33826
14013         * see.c (see_copy_insn): Copy new pure const attributes for new call.
14014         * c-decl.c (merge_decls): Ditto.
14015         * postreload.c (record_opr_changes): Change CONST_OR_PURE_CALL_P
14016         to RTL_CONST_OR_PURE_CALL_P.
14017         * tree.c (define_local_buitin): Rename DECL_IS_PURE to DECL_PURE_P.
14018         Initialized DECL_LOOPING_CONST_PURE.
14019         (process_call_operands): Set tree_side_effects properly.
14020         * tree.h (TREE_READONLY_DECL_P): Removed.
14021         (DECL_IS_PURE): Renamed to DECL_PURE_P.
14022         (DECL_LOOPING_OR_CONST_P): New macro.
14023         (struct tree_function_decl): Added looping_const_or_pure_p.
14024         (ECF_*) Renumbered.
14025         (ECF_LOOPING_OR_CONST_P): New macro.
14026         * rtlanal.c (pure_const_p): Removed.
14027         * builtins.c (expand_builtin): Rename DECL_IS_PURE to DECL_PURE_P.
14028         * reorg.c (delete_prior_computation) Changed CONST_OR_PURE_CALL_P
14029         to RTL_CONST_CALL_P.
14030         * ipa-pure-const.c (pure_const_state_e): Added looping field.
14031         (check_decl, check_tree, check_call, scan_function): Initialize
14032         looping.
14033         (analyze_function): Rename DECL_IS_PURE to DECL_PURE_P.
14034         (static_execute): Set looping true for recursive functions.
14035         Undo setting state to IPA_NEITHER for recursive functions.
14036         * cse.c (cse_insn):
14037         * ifcvt.c (noce_can_store_speculate_p): Changed
14038         CONST_OR_PURE_CALL_P and pure_call_p to RTL_CONST_CALL_P or
14039         RTL_CONST_OR_PURE_CALL_P.
14040         * dse.c (scan_insn): Ditto.
14041         * local-alloc.c (validate_equiv_mem, memref_used_between_p): Ditto.
14042         * gcse.c (oprs_not_seen_p) Changed CONST_OR_PURE_CALL_P to
14043         RTL_CONST_OR_PURE_CALL_P.
14044         (store_killed_in_insn): Changed CONST_OR_PURE_CALL_P and
14045         pure_call_p to RTL_CONST_CALL_P.
14046         * gimplify.c (gimplify_call_expr): Clear side effects for
14047         non-looping pure and constant calls.
14048         * calls.c (emit_call_1): Set rtl flags from ecf flags.
14049         (flags_from_decl_or_type): Set ecf flags from decl flags.
14050         (initialize_argument_information): Turn off
14051         ECF_LOOPING_CONST_OR_PURE when turning off ECF_CONST.
14052         Change const to pure if callee_copies is true rather than just
14053         turning off const.
14054         (expand_call): Turn off ECF_LOOPING_PURE_CONST_CALL and remove old
14055         way of marking pure calls.
14056         (emit_library_call_value_1): Turn off ECF_LOOPING_PURE_CONST_CALL.
14057         Remove hack that was supposed to fix pr7335 and remove old
14058         way of marking pure calls.
14059         * emit-rtl.c (emit_copy_of_insn_after): Copy RTL_CONST_CALL_P,
14060         RTL_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P.
14061         * cselib.c (cselib_process_insn): Changed CONST_OR_PURE_CALL_P to
14062         RTL_CONST_OR_PURE_CALL_P.
14063         * tree-ssa-pre.c (can_value_number_call): Fixed spacing.
14064         * loop-invariant.c (find_exits, find_invariant_bb): Changed
14065         CONST_OR_PURE_CALL_P to RTL_CONST_OR_PURE_CALL_P.
14066         * sched-deps.c (schedule_analyze): Ditto.
14067         * rtl.h (struct rtx_def): Use call field, unchanging field, and
14068         return_val field of calls to represent pure and const function info.
14069         (CONST_OR_PURE_CALL_P): Deleted macro.
14070         (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
14071         RTL_LOOPING_CONST_OR_PURE_CALL_P, RTL_CONST_OR_PURE_P): New macros.
14072         * tree-inline.c (copy_body_r): Changed TREE_READONLY_DECL_P to
14073         TREE_READONLY.
14074         * tree-optimize.c (execute_fixup_cfg): Added test for
14075         ECF_LOOPING_CONST_OR_PURE.
14076         * c-common.c (handle_pure_attribute): Changed DECL_IS_PURE to
14077         DECL_PURE_P.
14078         * tree-cfg.c (update_call_expr_flags): Do not clear tree side
14079         effects for looping pure or const calls.
14080         (verify_gimple_expr): Added verification code.
14081         * config/alpha/alpha.c (alpha_legitimize_address,
14082         alpha_emit_xfloating_libcall): Changed CONST_OR_PURE_CALL_P to
14083         RTL_CONST_CALL_P.
14084         * config/s390/s390.c (s390_emit_tls_call_insn): Ditto.
14085         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Ditto.
14086         * config/mips/mips.c (mips_call_tls_get_addr): Ditto.
14087         * cfgrtl.c (need_fake_edge_p): Changed CONST_OR_PURE_CALL_P to
14088         RTL_CONST_OR_PURE_CALL_P.
14089         * dce.c (deletable_insn_p): Allow non looping, non sibling, pure
14090         and const calls to be deleted.
14091
14092 2008-05-07  Uros Bizjak  <ubizjak@gmail.com>
14093
14094         PR target/35714
14095         * config/i386/mmx.md (mmx_subv2sf3): New expander.
14096         (*mmx_subv2sf3): Rename from mmx_subv2sf3 insn pattern.
14097         (*mmx_eqv2sf3): Rename from mmx_eqv2sf3 insn pattern.
14098         (mmx_eqv2sf3): New expander.  Use ix86_fixup_binary_operands_no_copy
14099         to handle nonimmediate operands.
14100         (*mmx_paddwd): Rename from mmx_paddwd insn pattern.
14101         (mmx_paddwd): New expander.  Use ix86_fixup_binary_operands_no_copy
14102         to handle nonimmediate operands.
14103         (*mmx_pmulhrwv4hi3): Rename from mmx_pmulhrwv4hi3 insn pattern.
14104         (mmx_pmulhrwv4hi3): New expander.  Use
14105         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14106         (*sse2_umulv1siv1di3): Rename from sse2_umulv1siv1di3 insn pattern.
14107         (sse2_umulv1siv1di3): New expander.  Use
14108         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14109         (*mmx_eq<mode>3): Rename from mmx_eq<mode>3 insn pattern.
14110         (mmx_eq<mode>3): New expander.  Use
14111         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14112         (*mmx_uavgv8qi3): Rename from mmx_uavgv8qi3 insn pattern.
14113         (mmx_uavgv8qi3): New expander.  Use
14114         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14115         (*mmx_uavgv4hi3): Rename from mmx_uavgv4hi3 insn pattern.
14116         (mmx_uavgv4hi3): New expander.  Use
14117         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14118
14119         * config/i386/sse.md
14120         (sse_movhlps_exp): New expander.  Use ix86_fixup_binary_operands
14121         to handle nonimmediate operands.
14122         (sse_movlhps_exp): New expander.  Use ix86_fixup_binary_operands
14123         to handle nonimmediate operands.
14124         (sse_loadhps_exp): New expander.  Use ix86_fixup_binary_operands
14125         to handle nonimmediate operands.
14126         (sse_loadlps_exp): New expander.  Use ix86_fixup_binary_operands
14127         to handle nonimmediate operands.
14128         (sse2_unpckhpd_exp): New expander.  Use
14129         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14130         (sse2_unpcklpd_exp): New expander.  Use
14131         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14132         (sse_loadhpd_exp): New expander.  Use ix86_fixup_binary_operands
14133         to handle nonimmediate operands.
14134         (sse_loadlpd): New expander.  Use ix86_fixup_binary_operands
14135         to handle nonimmediate operands.
14136         (*sse2_<plusminus_insn><mode>3): Rename from
14137         sse2_<plusminus_insn><mode>3 insn pattern.
14138         (sse2_<plusminus_insn><mode>3): New expander.  Use
14139         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14140         (*sse2_umulv2siv2di3): Rename from sse2_umulv2siv2di3 insn pattern.
14141         (sse2_umulv2siv2di3): New expander.  Use
14142         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14143         (*sse4_1_mulv2siv2di3): Rename from sse4_1_mulv2siv2di3 insn pattern.
14144         (sse4_1_mulv2siv2di3): New expander.  Use
14145         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14146         (*sse2_pmaddwd): Rename from sse2_pmaddwd insn pattern.
14147         (sse2_pmaddwd): New expander.  Use
14148         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14149         (*sse2_eq<mode>3): Rename from sse2_eq<mode>3 insn pattern.
14150         (sse2_eq<mode>3): New expander.  Use
14151         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14152         (*sse4_1_eqv2di3): Rename from sse4_1_eqv2di3 insn pattern.
14153         (sse4_1_eqv2di3): New expander.  Use
14154         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14155         (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
14156         (sse2_uavgv16qi3): New expander.  Use
14157         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14158         (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
14159         (sse2_uavgv16qi3): New expander.  Use
14160         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14161         (*sse2_uavgv8hi3): Rename from sse2_uavgv8hi3 insn pattern.
14162         (sse2_uavgv8hi3): New expander.  Use
14163         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14164         (*ssse3_pmulhrswv8hi3): Rename from ssse3_pmulhrswv8hi3 insn pattern.
14165         (ssse3_pmulhrswv8hi3): New expander.  Use
14166         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14167         (*ssse3_pmulhrswv4hi3): Rename from ssse3_pmulhrswv4hi3 insn pattern.
14168         (ssse3_pmulhrswv4hi3): New expander.  Use
14169         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14170
14171         (<sse>_vm<plusminus_insn><mode>3): Do not use ix86_binary_operator_ok.
14172         (<sse>_vmmul<mode>3): Ditto.
14173         (divv4sf3): Do not use ix86_fixup_binary_operands_no_copy.
14174         (divv2df3): Ditto.
14175         (ssse3_pmaddubsw128): Use register_operand for operand 1.
14176         (ssse3_pmaddubsw): Ditto.
14177
14178         * config/i386/i386.c (struct_builtin_description)
14179         [IX86_BUILTIN_LOADHPS]: Use CODE_FOR_sse_loadhps_exp.
14180         [IX86_BUILTIN_STOREHPS]: Use CODE_FOR_sse_loadlps_exp.
14181         [IX86_BUILTIN_LOADHPD]: Use CODE_FOR_sse2_loadhpd_exp.
14182         [IX86_BUILTIN_LOADLPD]: Use CODE_FOR_sse2_loadlpd_exp.
14183         [IX86_BUILTIN_MOVHLPS]: Use CODE_FOR_sse_movhlps_exp.
14184         [IX86_BUILTIN_MOVLHPS]: Use CODE_FOR_sse_movlhps_exp.
14185         [IX86_BUILTIN_UNPCKHPD]: Use FOR_sse2_unpckhpd_exp.
14186         [IX86_BUILTIN_UNPCKLPD]: Use FOR_sse2_unpcklpd_exp.
14187         (ix86_fixup_binary_operands): Assert that src1
14188         and src2 must have the same mode when swapped.
14189         (ix86_expand_binop_builtin): Do not use ix86_fixup_binary_operands
14190         and ix86_binary_operator_ok.  Do not force operands in registers
14191         when optimizing.
14192
14193 2008-05-07  Jan Hubicka  <jh@suse.cz>
14194
14195         * cgraph.c (dump_cgraph_node): Update.
14196         * cgraph.h (cgraph_local_info): Break out inline summary.
14197         * cgraphunit.c (cgraph_process_new_functions): Use inliner analysis
14198         hook.
14199         * ipa-inline (inline_summary): New accestor function.
14200         (cgraph_clone_inlined_nodes, cgraph_check_inline_limits,
14201         cgraph_decide_inlining, compute_inline_parameters): Update.
14202         * ipa.c (cgraph_remove_unreachable_nodes): Remove statistics.
14203
14204 2008-05-07  Maxim Kuvyrkov  <maxim@codesourcery.com>
14205
14206         Cleanup ColdFire scheduling support and add V4 pipeline model.
14207
14208         * config/m68k/m68k.md (UNSPEC_TIE): New constant.
14209         (define_attr cpu): Add cfv4 value.
14210         (define_attr type, define_attr type1): Merge into a single 'type'
14211         attribute.  Update all uses.
14212         (define_attr opx_type, define_attr opy_type, define_attr opx_access):
14213         Rearrange and update.  Rename value 'reg' to 'Rn', add value 'FPn'.
14214         Update all uses.
14215         (define_attr opx_mem, define_attr opy_mem): Remove.
14216         (define_attr op_mem): Clean up, update comment.
14217         (define_attr size): Use specific values instead of general int.
14218         (define_attr guess, define_attr split): Remove.  Update all uses.
14219         (movdf_internal, tstsi_internal, tsthi_internal, tstqi_internal,
14220         tst<mode>_68881, pushexthisi_const, movsi_const0_68000_10,
14221         movsi_const0_68040_60, movsi_const0, movsi_cf, movstrictqi_cf,
14222         zero_extendhisi2_cf, zero_extendqisi2_cfv4, cfv4_extendhisi2,
14223         68k_extendhisi2, extendqihi2, cfv4_extendqisi2, 68k_extendqisi2,
14224         floatsi<mode>2_68881, ftrunc<mode>2_68881, ftrunc<mode>2_cf,
14225         fix<mode>qi2_68881, fix<mode>hi2_68881, fix<mode>si2_68881,
14226         adddi_dishl32, addsi3_5200, add<mode>3_floatsi_68881,
14227         add<mode>3_floathi_68881, add<mode>3_floatqi_68881,
14228         add<mode>3_68881, add<mode>3_cf, subdi_dishl32, subsi3,
14229         sub<mode>3_floatsi_68881, sub<mode>3_floathi_68881,
14230         sub<mode>3_floatqi_68881, sub<mode>3_68881, sub<mode>3_cf,
14231         mulhi3, mulhisi3, mulhisisi3_s, mulsi3_68020, mulsi3_cf,
14232         umulhisi3, mulhisisi3_z, mul<mode>3_floatsi_68881,
14233         mul<mode>3_floathi_68881, mul<mode>3_floatqi_68881, fmul<mode>3_cf,
14234         div<mode>3_cf, sqrt<mode>2_cf, abs<mode>2_cf, clzsi2,
14235         one_cmplsi2_5200, subreghi1ashrdi_const32, ashrsi3, lshrsi3,
14236         bsetmemqi, bsetmemqi_ext, bclrmemqi, bclrmemqi_ext,
14237         beq, bne, bgt, blt, bordered, bunordered, buneq, bunge, bungt, bunle,
14238         bunlt, bltgt, tablejump_internal, call, non_symbolic_call_value,
14239         symbolic_call_value_jsr, symbolic_call_value_bsr, link):
14240         Update or set attributes.
14241         (stack_tie): New fake instruction.
14242
14243         * config/m68k/m68k.h (TUNE_CFV4): New macro.
14244         (m68k_sched_attr_size): Update declaration.
14245         (m68k_sched_attr_type2): Remove.
14246         (m68k_sched_address_bypass_p, m68k_sched_indexed_address_bypass_p):
14247         Declare new bypass predicates.
14248
14249         * config/m68k/m68k.c (m68k_sched_issue_rate,
14250         m68k_sched_first_cycle_multipass_dfa_lookahead): Declare hook
14251         implementations.
14252         (TARGET_SCHED_ISSUE_RATE,
14253         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Override hooks.
14254         (override_options): Handle scheduling for ColdFire V4 core.
14255         (m68k_expand_prologue): Emit stack_tie.
14256         (enum attr_op_type): Split value 'OP_TYPE_REG' to 'OP_TYPE_RN' and
14257         'OP_TYPE_FPN'.  Update all uses.
14258         (sched_guess_p): Remove.
14259         (sched_address_type): Handle symbolic addresses.
14260         (sched_get_operand): New static function.
14261         (sched_operand_type): Merge into sched_attr_op_type.
14262         (sched_attr_op_type): Handle FP registers, handle quick constants,
14263         update.
14264         (m68k_sched_attr_opx_type, m68k_sched_attr_opy_type): Update.
14265         (m68k_sched_attr_size): Update.  Move logic to ...
14266         (sched_get_attr_size_int): New static function.
14267         (sched_get_opxy_mem_type): New static function.
14268         (m68k_sched_attr_op_mem): Update.
14269         (m68k_sched_attr_type2): Remove.
14270         (sched_cfv4_bypass_data): New static variable.
14271         (m68k_sched_adjust_cost): Handle ColdFire V4 bypass.
14272         (m68k_sched_issue_rate): Implement scheduler hook.
14273         (struct _sched_ib: enabled_p): New field.
14274         (m68k_sched_variable_issue): Update.  Handle V4.
14275         (SCHED_DUMP_TODO, SCHED_DUMP_DONE, SCHED_DUMP_NOTHING,
14276         sched_dump_class_func_t, sched_dump_split_class,
14277         sched_dump_dfa_guess_unit_code, sched_dump_dfa_state,
14278         sched_dump_dfa_class, m68k_sched_dump): Remove.
14279         (m68k_sched_first_cycle_multipass_dfa_lookahead): Implement scheduler
14280         hook.
14281         (m68k_sched_init_global): Remove statisctics dumping, introduce
14282         sanity check that all instructions have pipeline reservations.  Handle
14283         ColdFire V4 core.
14284         (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
14285         Handle ColdFire V4 core.
14286         (sched_mem_operand_p, sched_get_reg_operand, sched_get_mem_operand):
14287         New static functions.
14288         (m68k_sched_address_bypass_p): New bypass predicate.
14289         (sched_get_indexed_address_scale): New static function.
14290         (m68k_sched_indexed_address_bypass_p): New bypass predicate.
14291
14292         * cf.md: Update comments.
14293         (define_attr type2): Remove.  Use 'type' attribute instead.
14294         Update all uses.
14295         (cf_ib): Rename to cfv123_ib.  Update all uses.
14296         (cf_oep): Rename to cfv123_oep.  Update all uses.
14297         (cf_chr): Rename to cfv123_chr.  Update all uses.
14298         (cf_mem): Rename to cfv123_mem.  Update all uses.
14299         (cf_mac): Move to more appropriate place.
14300         (cfv123_guess): New automaton and cpu_unit.
14301         (cfv123_*, cfv12_*, cfv1_*, cfv2_*, cfv3_*): Use type attribute.
14302         Update uses of 'size' attribute.  Handle before reload scheduling.
14303         (cfv123_guess): New dummy reservation for unhandled instructions.
14304         (cfv4_*): Pipeline description of ColdFire V4 core.
14305         (ignore): New reservation to handle 'ignore' type.
14306
14307 2008-05-07  Ian Lance Taylor  <iant@google.com>
14308
14309         PR middle-end/36013
14310         * gimplify.c (find_single_pointer_decl_1): Don't look through
14311         indirections.
14312         (find_single_pointer_decl): Adjust comments.
14313
14314 2008-05-07  Jakub Jelinek  <jakub@redhat.com>
14315
14316         PR middle-end/36137
14317         * fold-const.c (fold_binary): Use STRIP_SIGN_NOPS instead of
14318         STRIP_NOPS on arguments even for MIN_EXPR and MAX_EXPR.
14319
14320         PR middle-end/36106
14321         * omp-low.c (expand_omp_atomic_pipeline): Load value using the
14322         integral type rather than floating point, then VIEW_CONVERT_EXPR
14323         to the floating point type.
14324
14325 2008-05-07  Uros Bizjak  <ubizjak@gmail.com>
14326
14327         * config/i386/i386.c (ix86_expand_copysign): Force non-zero constant
14328         TFmode op0 to register.
14329
14330 2008-05-07  Alan Modra  <amodra@bigpond.net.au>
14331
14332         * c-decl.c (grokdeclarator): Comment typo.
14333
14334 2008-05-06  Aldy Hernandez  <aldyh@redhat.com>
14335
14336         * tree-flow.h: Remove prototype for computed_goto_p.
14337         * tree-cfg.c (computed_goto_p): Make static.
14338
14339 2008-05-06  H.J. Lu  <hongjiu.lu@intel.com>
14340
14341         PR target/35657
14342         * config/i386/i386.c (contains_128bit_aligned_vector_p): Renamed to ...
14343         (contains_aligned_value_p): This.  Handle _Decimal128.
14344         (ix86_function_arg_boundary): Only align _Decimal128 to its
14345         natural boundary and handle it properly.
14346
14347 2008-05-06  Martin Jambor  <mjambor@suse.cz>
14348
14349         * ipa-cp.c (ipcp_method_orig_node): Renamed to ipcp_get_orig_node.
14350         (ipcp_method_is_cloned): Renamed to ipcp_node_is_clone
14351         (ipcp_method_set_orig_node): Removed.
14352         (ipcp_cval_get_cvalue_type): Removed.
14353         (ipcp_method_get_scale): Renamed to ipcp_get_node_scale.
14354         (ipcp_method_set_scale): Renamed to ipcp_set_node_scale.
14355         (ipcp_cval_set_cvalue_type): Removed.
14356         (ipcp_cval_get_cvalue): Removed.
14357         (ipcp_cval_set_cvalue): Removed.
14358         (ipcp_type_is_const): Renamed to ipcp_lat_is_const.
14359         (ipcp_cval_equal_cvalues): Renamed to ipcp_lats_are_equal
14360         (ipcp_lats_are_equal): Changed parameters to two ipcp_lattice's
14361         (ipcp_cval_meet): Renamed to ipa_lattice_meet
14362         (ipcp_cval_changed): Changed to use ipcp_lat_is_const
14363         (ipcp_method_cval): Renamed to ipcp_get_ith_lattice
14364         (ipcp_get_ith_lattice): Changed parameters.
14365         (ipcp_cval_compute): Renamed to ipcp_lattice_from_jfunc
14366         (ipcp_lattice_from_jfunc): Changed parameters.
14367         (ipcp_redirect): Local lattice pointer instead of lattice type variable.
14368         (ipcp_method_cval_print): Added temporary variable info.
14369         (ipcp_redirect): Removed already unused local variable caller.
14370         (ipcp_redirect): New temporary variable orig_callee_info
14371         (ipcp_redirect): Removed newly unused local variable callee.
14372         (ipcp_redirect): Removed (a bit confusing) local variable type.
14373         (ipcp_insert_stage): Added local variable info.
14374         (ipcp_cval_changed): Renamed to ipcp_lattice_changed, parameters
14375         renamed too
14376         (ipcp_formal_create): Removed.
14377         (ipcp_method_cval_set): Removed.
14378         (ipcp_propagate_stage): Renamed lattice variables.
14379         (ipcp_method_cval_set_cvalue_type): Removed.
14380         (ipcp_method_cval_print): Renamed to ipcp_print_all_lattices
14381         (ipcp_print_all_lattices): Changed printed strings to refer to
14382         lattices rather than cvals.
14383         (ipcp_method_cval_init): Renamed to ipcp_initialize_node_lattices
14384         (ipcp_propagate_const): Changed formal parameters.
14385         (build_const_val): Changed formal parameters.
14386         (ipcp_insert_stage): Removed useless variable cvalue
14387         (build_const_val): Changed formal parameters.
14388         (ipcp_method_compute_scale): Renamed to ipcp_compute_node_scale
14389         (ipcp_after_propagate): Renamed to ipcp_change_tops_to_bottom
14390         (ipcp_callsite_param_print): Renamed to ipcp_print_all_jump_functions
14391         (ipcp_profile_mt_count_print): Renamed to ipcp_print_func_profile_counts
14392         (ipcp_print_func_profile_counts): Changed string from "method" to
14393         "function"
14394         (ipcp_profile_cs_count_print): Renamed to ipcp_print_call_profile_counts
14395         (ipcp_profile_edge_print): Renamed to ipcp_print_edge_profiles
14396         (ipcp_profile_bb_print): Renamed to ipcp_print_bb_profiles
14397         (ipcp_structures_print): Renamed to ipcp_print_all_structures
14398         (ipcp_profile_print): Renamed to ipcp_print_profile_data
14399         (ipcp_lat_is_const): Changed parameters and made inline.
14400         (ipcp_replace_map_create): Renamed to ipcp_create_replace_map
14401         (ipcp_redirect): Renamed to ipcp_need_redirect_p
14402         (ipcp_need_redirect_p): Calls ipcp_lat_is_const instead of using
14403         the predicate condition directly
14404         (ipcp_propagate_stage): Added local variable args. Removed local
14405         variable callee.  (Both are mere code simplifications.)
14406         (ipcp_method_dont_insert_const): Renamed to
14407         ipcp_node_not_modifiable_p.
14408         (ipcp_node_not_modifiable_p): Made inline.
14409         (ipcp_cloned_create): Renamed to ipcp_init_cloned_node
14410         (ipcp_propagate_const): Renamed to ipcp_propagate_one_const
14411         (ipcp_print_all_lattices): Removed variable cvalue
14412         (ipcp_method_scale_print): Renamed to ipcp_function_scale_print
14413         Updated comments.
14414
14415 2008-05-06  Olivier Hainque  <hainque@adacore.com>
14416
14417         * tree-sra.c (try_instantiate_multiple_fields): Early return
14418         if field has POINTER_TYPE.
14419
14420 2008-05-06  Kai Tietz  <kai.tietz@onevision.com>
14421
14422         * config/i386/i386.c (output_set_got): Fix for x86_64 output_emit_asm
14423         by using 'q' specifier for instruction.
14424         (ix86_file_end): Replaced case TARGET_64BIT_MS_ABI by TARGET_64BIT.
14425
14426 2008-05-06  Anatoly Sokolov <aesok@post.ru>
14427
14428         * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
14429         Change mode of zero_extract from QImode to HImode.
14430         (sign bit tests peepholes): (Ditto.).
14431
14432 2008-05-06  Uros Bizjak  <ubizjak@gmail.com>
14433
14434         * config/i386/mmx.md: Remove double backslashes from asm templates.
14435         (*mmx_addv2sf3): Rename from mmx_addv2sf3 insn pattern.
14436         (mmx_addv2sf3): New expander.  Use ix86_fixup_binary_operands_no_copy
14437         to handle nonimmediate operands.
14438         (*mmx_mulv2sf3): Rename from mmx_mulv2sf3 insn pattern.
14439         (mmx_mulv2sf3): New expander.  Use ix86_fixup_binary_operands_no_copy
14440         to handle nonimmediate operands.
14441         (*mmx_<code>v2sf3_finite): New insn pattern.
14442         (*mmx_<code>v2sf3): Rename from mmx_<code>v2sf3 insn pattern.
14443         (mmx_<code>v2sf3): New expander.  Use
14444         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14445         (mmx_<plusminus_insn><mode>3): New expander.  Use
14446         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14447         (*mmx_<plusminus_insn><mode>3): New insn pattern.
14448         (mmx_add<mode>3): Removed.
14449         (mmx_ssadd<mode>3): Ditto.
14450         (mmx_usadd<mode>3): Ditto.
14451         (mmx_sub<mode>3): Ditto.
14452         (mmx_sssub<mode>3): Ditto.
14453         (mmx_ussub<mode>3): Ditto.
14454         (*mmx_mulv4hi3): Rename from mmx_mulv4hi3 insn pattern.
14455         (mmx_mulv4hi3): New expander.  Use ix86_fixup_binary_operands_no_copy
14456         to handle nonimmediate operands.
14457         (*mmx_smulv4hi3_highpart): Rename from mmx_smulv4hi3_highpart
14458         insn pattern.
14459         (mmx_smulv4hi3_highpart): New expander.  Use
14460         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14461         (*mmx_umulv4hi3_highpart): Rename from mmx_umulv4hi3_highpart
14462         insn pattern.
14463         (mmx_umulv4hi3_highpart): New expander.  Use
14464         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14465         (*mmx_<code>v4hi3): Rename from mmx_<code>v4hi3 insn pattern.
14466         (mmx_<code>v4hi3): New expander.  Use
14467         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14468         (*mmx_<code>v8qi3): Rename from mmx_<code>v8qi3 insn pattern.
14469         (mmx_<code>v8qi3): New expander.  Use
14470         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14471         (*mmx_<code><mode>3): Rename from mmx_<code><mode>3 insn pattern.
14472         (mmx_<code><mode>3): New expander.  Use
14473         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14474
14475 2008-05-05  Jan Hubicka  <jh@suse.cz>
14476
14477         PR tree-optimization/36118
14478         * passes.c (pass_init_dump_file): Fix dump header.
14479
14480 2008-05-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>
14481
14482         PR middle-end/36141
14483         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't create
14484         VCE for function decls.
14485
14486 2008-05-05  H.J. Lu  <hongjiu.lu@intel.com>
14487
14488         * config/i386/sse.md (sse2_<plusminus_insn><mode>3): Fix a typo.
14489
14490 2008-05-05  H.J. Lu  <hongjiu.lu@intel.com>
14491
14492         * config/i386/i386.md (sat_plusminus): New.
14493         (plusminus_insn): Likewise.
14494         (plusminus_mnemonic): Likewise.
14495         (addsub): Removed.
14496         (comm): Add ss_plus, us_plus, ss_minus and us_minus.
14497         (*<addsub><mode>3_cc_overflow): Renamed to ...
14498         (*<plusminus_insn><mode>3_cc_overflow): This.
14499         (*<addsub>si3_zext_cc_overflow): Renamed to ...
14500         (*<plusminus_insn>si3_zext_cc_overflow): This.
14501
14502         * config/i386/sse.md (<addsub><mode>3): Renamed to ...
14503         (<plusminus_insn><mode>3): This.
14504         (*<addsub><mode>3): Renamed to ...
14505         (*<plusminus_insn><mode>3): This.
14506         (<sse>_vm<addsub><mode>3): Renamed to ...
14507         (<sse>_vm<plusminus_insn><mode>3): This.
14508         (sse3_h<addsub>v4sf3): Renamed to ...
14509         (sse3_h<plusminus_insn>v4sf3): This.
14510         (sse3_h<addsub>v2df3): Renamed to ...
14511         (sse3_h<plusminus_insn>v2df3): This.
14512         (<plusminus_insn><mode>3): New.
14513         (*<plusminus_insn><mode>3): Likewise.
14514         (sse2_<plusminus_insn><mode>3): Likewise.
14515         (add<mode>): Removed.
14516         (*add<mode>3): Likewise.
14517         (sse2_ssadd<mode>3): Likewise.
14518         (sse2_usadd<mode>3): Likewise.
14519         (sub<mode>3): Likewise.
14520         (*sub<mode>3): Likewise.
14521         (sse2_sssub<mode>3): Likewise.
14522         (sse2_ussub<mode>3): Likewise.
14523
14524 2008-05-05  Benjamin Kosnik  <bkoz@redhat.com>
14525
14526         * gthr-single.h: Add in required interface elements as per gthr.h.
14527         Add stub types for __gthread_key_t, __gthread_once_t. Add defines
14528         for __GTHREAD_ONCE_INIT, __GTHREAD_RECURSIVE_MUTEX_INIT.
14529         Generalize UNUSED macro.
14530         (__gthread_once): Add.
14531         (__gthread_key_create): Add.
14532         (__gthread_key_delete): Add.
14533         (__gthread_getspecific): Add.
14534         (__gthread_setspecific): Add.
14535
14536 2008-05-05  Andrew Pinski  <Andrew.Pinski@playstation.sony.com>
14537
14538         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): If we have
14539         the same size types for the indirect reference on the rhs, then
14540         create a VCE.
14541
14542 2008-05-05  Uros Bizjak  <ubizjak@gmail.com>
14543
14544         * config/i386/i386.md
14545         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit): Use only
14546         one insn template instead of template series.
14547         (*xordi_1_rex64): Ditto.
14548         (*xordi_2_rex64): Ditto.
14549
14550 2008-05-05  Ira Rosen  <irar@il.ibm.com>
14551
14552         PR tree-optimization/36119
14553         * tree-vect-transform.c (vectorizable_assignment): Set NCOPIES to 1
14554         in case of SLP.
14555
14556 2008-06-04  Jan Hubicka  <jh@suse.cz>
14557
14558         tree-optimization/36100
14559         * tree-pass.h (pass_O0_always_inline): Declare.
14560         * ipa-inline.c (inline_transform): Remove dead code.
14561         (cgraph_gate_O0_always_inline, cgraph_O0_always_inline,
14562         pass_O0_always_inline): New.
14563         * passes.c (init_optimization_passes): Add pass_O0_always_inline.
14564
14565 2008-05-04  Kai Tietz  <kai.tietz@onevision.com>
14566
14567         * config/i386/i386.c (x86_output_mi_thunk): Use movq alternative
14568         mnemonic in this_param move for TARGET_64BIT.
14569
14570 2008-05-04  Uros Bizjak  <ubizjak@gmail.com>
14571
14572         * config/i386/i386.md (*strmovsi_1): Simplify asm alternatives.
14573         (*strmovsi_rex_1): Ditto.
14574         (*strsetsi_1): Ditto.
14575         (*strsetsi_rex_1): Ditto.
14576
14577         (add<mode>cc): Macroize expander from addqicc, addhicc, addsicc and
14578         adddicc expanders using SWI mode iterator.
14579
14580 2008-05-04  H.J. Lu  <hongjiu.lu@intel.com>
14581
14582         PR target/36121
14583         * config/i386/i386.c (ix86_expand_special_args_builtin): Remove three
14584         argument handling.
14585
14586 2008-05-04  David S. Miller  <davem@davemloft.net>
14587
14588         * config.gcc (sparc*-*-*): Always set need_64bit_hwint to yes.
14589         (sparc*-*-linux*): Use linux.h in tm_file.
14590         (sparc-*-linux*): If 'enabled_targets' is 'all', build a bi-arch
14591         compiler defaulting to 32-bit.
14592         (sparc*-*-*): Remove explicit target settings of need_64bit_hwint,
14593         no longer needed.
14594         * config/sparc/linux.h: Remove definitions now obtained
14595         properly from linux.h
14596         * config/sparc/linux64.h: Likewise.
14597         (ASM_CPU_DEFAULT_SPEC): Change this to ASM_CPU64_DEFAULT_SPEC, we
14598         don't want this setting for 32-bit builds in a biarch compiler.
14599         * doc/install.texi: Add sparc-linux to list of targets
14600         supporting --enable-targets=all.
14601
14602 2008-05-03  Andrew Pinski  <pinskia@gmail.com>
14603
14604         * Makefile.in (tree-ssa-phiprop.o): Fix dependencies.
14605
14606 2008-05-03  H.J. Lu  <hongjiu.lu@intel.com>
14607
14608         * config/i386/i386.c (ix86_builtin_type): Move V4SI_FTYPE_V4SF
14609         after V4SI_FTYPE_V8HI.
14610         (ix86_init_mmx_sse_builtins): Move case V4HI_FTYPE_V4HI after
14611         case V4SI_FTYPE_V2DF.
14612
14613 2008-05-03  Kenneth Zadeck  <zadeck@naturalbridge.com>
14614
14615         * doc/invoke.texi (max-flow-memory-locations): Removed.
14616         * params.def (PARAM_MAX_FLOW_MEMORY_LOCATIONS): Removed.
14617
14618 2008-05-03  Richard Guenther  <rguenther@suse.de>
14619
14620         PR middle-end/34973
14621         * opts.c (set_Wstrict_aliasing): Handle the turn-off case.
14622
14623 2008-05-02  David S. Miller  <davem@davemloft.net>
14624
14625         * config.gcc (need_64bit_hwint): Document libcpp dependency.
14626
14627 2008-05-02  Simon Baldwin <simonb@google.com>
14628
14629         PR bootstrap/36108
14630         * c-common.h (warn_array_subscript_range): Removed.
14631         * c-common.c (warn_array_subscript_range): Ditto.
14632         * tree-vrp.c (check_array_ref): Revert to ignoring arrays with size 2.
14633         * c-typeck.c (build_array_ref): Remove warn_array_subscript_range.
14634
14635 2008-05-02  H.J. Lu  <hongjiu.lu@intel.com>
14636
14637         * config/i386/i386.c (ix86_special_builtin_type): New.
14638         (bdesc_special_args): Likewise.
14639         (ix86_expand_special_args_builtin): Likewise.
14640         (ix86_init_mmx_sse_builtins): Updated.
14641         (ix86_expand_builtin): Updated.
14642         (ix86_expand_store_builtin): Removed.
14643         (ix86_expand_unop_builtin): Likewise.
14644
14645         * config/i386/mm3dnow.h (__v2sf): Moved to ...
14646         * config/i386/mmintrin.h (__v2sf): Here.
14647
14648         * config/i386/xmmintrin.h (_mm_loadh_pi): Replace __v2si with
14649         const __v2sf.
14650         (_mm_loadl_pi): Likewise.
14651         (_mm_storeh_pi): Replace __v2si with __v2sf.
14652         (_mm_storel_pi): Likewise.
14653
14654         * doc/extend.texi: Correct __builtin_ia32_loadhps,
14655         __builtin_ia32_loadlps, __builtin_ia32_storehps,
14656         __builtin_ia32_storelps, __builtin_ia32_loadhpd and
14657         __builtin_ia32_loadlpd.
14658
14659 2008-05-02  H.J. Lu  <hongjiu.lu@intel.com>
14660
14661         * config/i386/i386.c (ix86_builtin_type): Add FLOAT_FTYPE_FLOAT,
14662         V4SF_FTYPE_V4SF_VEC_MERGE and V2DF_FTYPE_V2DF_VEC_MERGE.
14663         (bdesc_args): Updated.  Add scalar SSE builtins with vec_merge.
14664         (ix86_init_mmx_sse_builtins): Updated.
14665         (ix86_expand_args_builtin): Likewise.
14666         (ix86_expand_builtin): Likewise.
14667         (ix86_expand_unop1_builtin): Renamed to ...
14668         (ix86_expand_unop_vec_merge_builtin): This.
14669
14670 2008-05-01  Jan Hubicka  <jh@suse.cz>
14671
14672         PR bootstrap/36100
14673         * ipa-inline.c (inline_generate_summary): Make static.
14674         (inline_transform): Do not call inlining at -O0; make static.
14675         * passes.c (execute_todo): Add sanity check.
14676         (execute_one_ipa_transform_pass): Execute proper flags.
14677
14678 2008-05-01  Eric Botcazou  <ebotcazou@adacore.com>
14679
14680         * tree.h (TYPE_NONALIASED_COMPONENT): Expand comment.
14681         (DECL_NONADDRESSABLE_P): Likewise.
14682         * alias.c (record_component_aliases): Fix comment.
14683
14684 2008-05-01  Simon Baldwin <simonb@google.com>
14685
14686         * c-common.h (warn_array_subscript_range): New function.
14687         * c-common.c (warn_array_subscript_range): Ditto.
14688         * tree-vrp.c (check_array_ref): Corrected code to agree with
14689         comment, ignoring only arrays of size 0 or size 1.
14690         * c-typeck.c (build_array_ref): Call warn_array_subscript_range.
14691
14692 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
14693
14694         * config/i386/i386.c (ix86_builtin_type): Replace
14695         DI_FTYPE_DI_DI_INT with V1DI2DI_FTYPE_V1DI_V1DI_INT.
14696         (bdesc_args): Updated.
14697         (ix86_init_mmx_sse_builtins): Likewise.
14698         (ix86_expand_args_builtin): Likewise.
14699
14700         * config/i386/tmmintrin.h (_mm_alignr_pi8): Replace long long
14701         with __v1di.
14702
14703         * doc/extend.texi: Correct __builtin_ia32_palignr.
14704
14705 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
14706
14707         PR target/36095
14708         * config/i386/i386.c (bdesc_crc32): Removed.
14709         (ix86_expand_crc32): Likewise.
14710         (ix86_builtin_type): Replace V2DI2TI_FTYPE_V2DI2TI_INT with
14711         V2DI2TI_FTYPE_V2DI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT with
14712         V2DI2TI_FTYPE_V2DI_V2DI_INT.  Add UINT64_FTYPE_UINT64_UINT64,
14713         UINT_FTYPE_UINT_UINT, UINT_FTYPE_UINT_USHORT and
14714         UINT_FTYPE_UINT_UCHAR.
14715         (bdesc_args): Updated. Add crc32 builtins.
14716         (ix86_init_mmx_sse_builtins): Updated.
14717         (ix86_expand_args_builtin): Updated to support subreg.
14718
14719         * doc/extend.texi: Correct __builtin_ia32_crc32di.
14720
14721 2008-05-01  Jan Hubicka  <jh@suse.cz>
14722
14723         * tree-pass.h (opt_pass): Add IPA_PASS.
14724         (varpool_node, cgraph_node): Forward declare.
14725         (ipa_opt_pass): Define.
14726         (pass_ipa_inline): Turn into ipa_opt_pass.
14727         (pass_apply_inline): Remove.
14728         * ipa-inline.c (pass_ipa_inline): Turn into ipa_opt_pass.
14729         (apply_inline): Turn into ....
14730         (inline_transform): ... this one.
14731         (inline_generate_summary): New function.
14732         (pass_apply_inline): Remove.
14733         * function.h (ipa_opt_pass): Forward declare structure; typedef;
14734         vector.
14735         (struct function): Add ipa_transforms_to_apply.
14736         * passes.c (register_one_dump_file): Work on IPA_PASS.
14737         (init_optimization_passes): Remove pass_inline_parameters and
14738         pass_apply_inline.
14739         (pass_init_dump_file, pass_fini_dump_file): Break out from ....
14740         (execute_one_pass) ... here; apply transforms when possible.
14741         (add_ipa_transform_pass, execute_ipa_summary_asses,
14742         execute_one_ipa_transform_pass): New.
14743         (execute_ipa_pass_list): Update for IPA_PASS type.
14744
14745 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
14746
14747         * config/i386/i386.c (ix86_builtin_type): Add
14748         V2DI_FTYPE_V2DI_V16QI, V2DI_FTYPE_V2DI_UINT_UINT and
14749         V2DI_FTYPE_V2DI_V2DI_UINT_UINT.
14750         (bdesc_args): Add SSE4a builtins.
14751         (ix86_init_mmx_sse_builtins): Updated.
14752         (ix86_expand_args_builtin): Likewise.
14753         (ix86_expand_builtin): Likewise.
14754
14755 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
14756
14757         * config/i386/i386.c (ix86_builtin_type): Add
14758         V8HI_FTYPE_V8HI_V8HI_COUNT, V8HI_FTYPE_V8HI_SI_COUNT,
14759         V4SI_FTYPE_V4SI_V4SI_COUNT, V4SI_FTYPE_V4SI_SI_COUNT,
14760         V4HI_FTYPE_V4HI_V4HI_COUNT, V4HI_FTYPE_V4HI_SI_COUNT,
14761         V2DI_FTYPE_V2DI_V2DI_COUNT, V2DI_FTYPE_V2DI_SI_COUNT,
14762         V2SI_FTYPE_V2SI_V2SI_COUNT, V2SI_FTYPE_V2SI_SI_COUNT,
14763         V1DI_FTYPE_V1DI_V1DI_COUNT, V1DI_FTYPE_V1DI_SI_COUNT,
14764         V8HI_FTYPE_V8HI_INT, V4SI_FTYPE_V4SI_INT, V4HI_FTYPE_V4HI_INT,
14765         V2DI2TI_FTYPE_V2DI2TI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT
14766         and DI_FTYPE_DI_DI_INT.
14767         (bdesc_args): Add MMX/SSE shift, shuffle and palignr builtins.
14768         (ix86_init_mmx_sse_builtins): Updated.
14769         (ix86_expand_args_builtin): Likewise.
14770         (ix86_expand_builtin): Likewise.
14771         (ix86_expand_binop_imm_builtin): Removed.
14772
14773         * doc/extend.texi: Correct __builtin_ia32_palignr128.
14774
14775 2008-04-30  Richard Guenther  <rguenther@suse.de>
14776
14777         PR tree-optimization/32921
14778         * tree-ssa-loop-im.c (mem_refs_may_alias_p): Disambiguate with TBAA.
14779
14780 2008-04-30  Richard Sandiford  <rsandifo@nildram.co.uk>
14781
14782         * config/arm/arm.c (arm_unwind_emit): Use
14783         crtl->all_throwers_are_sibcalls instead of
14784         cfun->all_throwers_are_sibcalls.
14785         (arm_output_fn_unwind): Likewise.
14786         * config/frv/frv.c (frv_stack_info): Use crtl->uses_pic_offset_table
14787         instead of cfun->uses_pic_offset_table.
14788         (frv_expand_prologue): Likewise.
14789         (frv_frame_pointer_required): Likewise.
14790         (frv_expand_fdpic_call): Likewise.
14791         (frv_emit_movsi): Likewise.
14792         * config/iq2000/iq2000.c (iq2000_expand_prologue): Use
14793         cfun->returns_pcc_struct instead of
14794         current_function_returns_pcc_struct.
14795         * config/m32c/m32c.c (need_to_save): Use crtl->calls_eh_return
14796         instead of cfun->calls_eh_return.
14797         (m32c_pushm_popm): Likewise.
14798         * config/xtensa/xtensa.h (cfun->calls_alloca): Remove bogus
14799         "extern" declaration.
14800
14801 2008-04-30  Richard Guenther  <rguenther@suse.de>
14802
14803         PR tree-optimization/21636
14804         * tree-ssa-ccp.c (ccp_fold): Handle &p->x with p being a
14805         constant address.
14806         (evaluate_stmt): Print the likely value.
14807         (ccp_visit_stmt): Avoid excessive vertical spacing.
14808
14809 2008-04-30  Rafael Espíndola  <espindola@google.com>
14810
14811         * builtins.c (fold_call_expr): Return realret.
14812         * tree-ssa-threadedge.c
14813         (record_temporary_equivalences_from_stmts_at_dest): Ignore calls to
14814         __builtin_object_size.
14815
14816 2008-04-30  Seongbae Park  <seongbae.park@gmail.com>
14817
14818         * gcc.c (wrapper_string): New variable.
14819         (insert_wrapper): New function.
14820         (execute): New option -wrapper.
14821         * doc/invoke.texi (Overall Options): New driver option -wrapper.
14822
14823 2008-04-30  Nathan Froyd  <froydnj@codesourcery.com>
14824
14825         * config/rs6000/crtresgpr.asm, config/rs6000/crtresxgpr.asm,
14826         config/rs6000/crtsavgpr.asm, config/rs6000/crtresfpr.asm,
14827         config/rs6000/crtresxfpr.asm, config/rs6000/crtsavfpr.asm: Break out
14828         from...
14829         * config/rs6000/crtsavres.asm: ...here.  Remove unneeded file.
14830         * config/rs6000/e500crtres32gpr.asm, config/rs6000/e500crtres64gpr.asm,
14831         config/rs6000/e500crtres64gprctr.asm,
14832         config/rs6000/e500crtrest32gpr.asm, config/rs6000/e500crtrest64gpr.asm,
14833         config/rs6000/e500crtresx32gpr.asm, config/rs6000/e500crtresx64gpr.asm,
14834         config/rs6000/e500crtsav32gpr.asm, config/rs6000/e500crtsav64gpr.asm,
14835         config/rs6000/e500crtsav64gprctr.asm,
14836         config/rs6000/e500crtsavg32gpr.asm, config/rs6000/e500crtsavg64gpr.asm,
14837         config/rs6000/e500crtsavg64gprctr.asm: New files.
14838         * config/rs6000/t-ppccomm: Add build rules for new files.
14839         (LIB2FUNCS_STATIC_EXTRA): Add new files.
14840         * config/rs6000/t-netbsd: Add build rules for new files.
14841         (LIB2FUNCS_STATIC_EXTRA): New variable.
14842         * config/rs6000/sysv4.h (ENDFILE_SPEC): Don't include crtsavres.o
14843         (CRTSAVRES_DEFAULT_SPEC): Likewise.
14844         * config/rs6000/netbsd.h (ENDFILE_SPEC): Likewise.
14845
14846 2008-04-30  H.J. Lu  <hongjiu.lu@intel.com>
14847
14848         * config/i386/i386.c (ix86_builtin_type): Add
14849         FLOAT128_FTYPE_FLOAT128_FLOAT128, V16QI_FTYPE_V16QI_V16QI,
14850         V16QI_FTYPE_V8HI_V8HI, V8QI_FTYPE_V8QI_V8QI,
14851         V8QI_FTYPE_V4HI_V4HI, V8HI_FTYPE_V8HI_V8HI,
14852         V8HI_FTYPE_V16QI_V16QI, V8HI_FTYPE_V4SI_V4SI,
14853         V4SI_FTYPE_V4SI_V4SI, V4SI_FTYPE_V8HI_V8HI,
14854         V4SI_FTYPE_V4SF_V4SF, V4SI_FTYPE_V2DF_V2DF,
14855         V4HI_FTYPE_V4HI_V4HI, V4HI_FTYPE_V8QI_V8QI,
14856         V4HI_FTYPE_V2SI_V2SI, V4SF_FTYPE_V4SF_V4SF,
14857         V4SF_FTYPE_V4SF_V4SF_SWAP, V4SF_FTYPE_V4SF_V2SI,
14858         V4SF_FTYPE_V4SF_V2DF, V4SF_FTYPE_V4SF_DI,
14859         V4SF_FTYPE_V4SF_SI, V2DI_FTYPE_V2DI_V2DI,
14860         V2DI_FTYPE_V16QI_V16QI, V2DI_FTYPE_V4SI_V4SI,
14861         V2DI_FTYPE_V2DF_V2DF, V2SI_FTYPE_V2SI_V2SI,
14862         V2SI_FTYPE_V4HI_V4HI, V2SI_FTYPE_V2SF_V2SF,
14863         V2DF_FTYPE_V2DF_V2DF, V2DF_FTYPE_V2DF_V2DF_SWAP,
14864         V2DF_FTYPE_V2DF_V4SF, V2DF_FTYPE_V2DF_DI,
14865         V2DF_FTYPE_V2DF_SI, V2SF_FTYPE_V2SF_V2SF,
14866         V1DI_FTYPE_V1DI_V1DI, V1DI_FTYPE_V8QI_V8QI and
14867         V1DI_FTYPE_V2SI_V2SI.
14868         (bdesc_2arg): Moved to ...
14869         (bdesc_args): Here.
14870         (ix86_init_mmx_sse_builtins): Updated.
14871         (ix86_expand_args_builtin): Updated.  Take a pointer
14872         to const struct builtin_description.  Handle comparison
14873         builtin functions.
14874         (ix86_expand_sse_compare): Take a new argument for swapping operands.
14875         (ix86_expand_builtin): Updated.
14876
14877         * config/i386/sse.md (ssse3_pmaddubswv8hi3): Renamed to ...
14878         (ssse3_pmaddubsw128): This.
14879         (ssse3_pmaddubswv4hi3): Renamed to ...
14880         (ssse3_pmaddubsw): This.
14881
14882         * doc/extend.texi (__builtin_ia32_packsswb128): Correct prototype.
14883         (__builtin_ia32_packssdw128): Likewise.
14884         (__builtin_ia32_packuswb128): Likewise.
14885         (__builtin_ia32_pmaddubsw): Likewise.
14886         (__builtin_ia32_pmaddubsw128): Likewise.
14887
14888 2008-04-30  Richard Guenther  <rguenther@suse.de>
14889
14890         PR tree-optimization/14847
14891         * tree-ssa-ifcombine.c (get_name_for_bit_test): New helper function.
14892         (recognize_bits_test): Use it.
14893         (recognize_single_bit_test): Likewise.
14894
14895 2008-04-30  Martin Jambor  <mjambor@suse.cz>
14896
14897         * ipa-cp.c (ipcp_init_stage): Calls ipa_set_called_with_variable_arg
14898         instead of setting number of formal parameters to zero.
14899         (ipcp_init_stage): Do not set the number of actual parameters to zero
14900         either.
14901         (ipcp_propagate_stage): Explicitly skipping all calls to nodes
14902         which are called with variable number of arguments.
14903         (ipcp_insert_stage): Explicitely skipping all nodes which are
14904         called with variable number of arguments.
14905         (ipcp_callsite_param_print): Skipps callsites to nodes with varaible
14906         number of parameters.
14907
14908         * ipa-prop.h (struct ipa_node_params): Added flag
14909         called_with_var_arguments
14910         (ipa_set_param_count): Added.  Changed sole setter to use it.
14911         (ipa_get_param_count): Added.  All readers of param_count
14912         converted to use it instead.
14913         (ipa_set_called_with_variable_arg): Added.
14914         (ipa_is_called_with_var_arguments): Added.
14915         (ipa_get_ith_param): Added.  All readers of param_decls converted
14916         to use it instead.
14917         (ipa_set_cs_argument_count): Added, sole writer to argument_count
14918         changed to use it.
14919         (ipa_get_cs_argument_count): Added, all readers of argument_count
14920         changed to cal it.
14921         (ipa_get_ith_jump_func): Added. Accessors of jump values changed
14922         to use it.
14923
14924         * ipa-prop.h (struct ipcp_formal): Renamed to ipcp_lattice
14925         (struct ipcp_lattice): Renamed cval_type to type
14926         (struct ipa_node_params): ipcp_cval renamed to ipcp_lattices
14927
14928         * ipa-cp.c (ipcp_cval_get_cvalue): Changed return value to tree
14929         (ipcp_cval_set_cvalue): Changed type of parameter value to tree
14930         (ipcp_insert_stage): Changed the type of variable cvalue to tree
14931         (ipcp_replace_map_create): Changed the type of parameter cvalue to tree
14932         (build_const_val): Changed the type of parameter cvalue to tree
14933         (ipcp_propagate_const): Changed the type of parameter cvalue to tree
14934         (ipcp_method_cval_set_cvalue_type): Renamed parameter cval_type1 to type
14935
14936         * ipa-prop.h (struct ipcp_formal): Replaced cvalue with tree called
14937         constant
14938
14939         * ipa-prop.c (ipa_methodlist_init): Renamed to ipa_init_func_list
14940         (ipa_methodlist_not_empty): Removed, the sole user now checks directly
14941         (ipa_add_method): Renamed to ipa_push_func_to_list
14942         (ipa_remove_method): Renamed to ipa_pop_func_from_list
14943         (ipa_callsite_param_count): Removed.
14944         (ipa_callsite_param_count_set): Removed.
14945         (ipa_callsite_param): Removed.
14946         (ipa_callsite_callee): Removed.
14947         (ipa_callsite_compute_param): Renamed to ipa_compute_jump_functions
14948         (ipa_callsite_compute_count): Renamed to ipa_count_arguments
14949         (ipa_method_formal_count): Removed.
14950         (ipa_method_formal_count_set): Removed.
14951         (ipa_method_get_tree): Removed.
14952         (ipa_method_tree_map_create): Removed.
14953         (ipa_method_compute_tree_map): Renamed to ipa_create_param_decls_array
14954         (ipa_create_param_decls_array): Creates the array itself
14955         (ipa_create_param_decls_array): Temporary variable info instead of
14956         a few dereferences.
14957         (ipa_method_formal_compute_count): Renamed to ipa_count_formal_params
14958         (ipa_method_compute_modify): Renamed to ipa_detect_param_modifications
14959         (get_type): Removed.
14960         (ipa_jf_get_info_type): Removed.
14961         (ipa_node_create): Renamed to ipa_create_node_params
14962         (ipa_free): Renamed to ipa_free_all_node_params
14963         (ipa_nodes_create): Renamed to ipa_create_all_node_params
14964         (ipa_edges_create): Renamed to ipa_create_all_edge_args
14965         (ipa_edges_free): Renamed to ipa_free_all_edge_args
14966         (ipa_nodes_free): Integrated into ipa_free_all_node_params and removed
14967         (ipa_free_all_node_params): Deallocation to jump_functions moved to
14968         ipa_free_all_edge_args
14969         (ipa_method_tree_print): Renamed to ipa_print_all_tree_maps
14970         (ipa_method_modify_print): Renamed to ipa_print_all_params_modified
14971         (ipa_create_methodlist_node): Removed.
14972         (ipa_methodlist_method): Removed.
14973         (ipa_methodlist_method_set): Removed.
14974         (ipa_methodlist_next_method): Removed.
14975         (ipa_methodlist_next_method_set): Removed.
14976         (ipa_method_is_modified): Removed.
14977         (ipa_method_modify_create): Removed.
14978         (ipa_method_modify_init): Temporary variable info instead of a few
14979         dereferences.
14980         (ipa_detect_param_modifications): Temporary variable info instead of
14981         a few dereferences.
14982         (ipa_compute_jump_functions): Temporary variable info instead of
14983         a few dereferences.
14984         (ipa_method_modify_set): Removed.
14985         (ipa_method_tree_map): Renamed to ipa_get_param_decl_index
14986         (ipa_get_param_decl_index): Now accepts struct ipa_node_params rather
14987         than craph_node as the first parameter.
14988         (ipa_method_modify_stmt): Renamed to ipa_check_stmt_modifications
14989         (ipa_method_modify_init): Removed.
14990         (ipa_compute_jump_functions): Added a temp variable instead of
14991         repeatadly dereferencing the cgraph_edge.aux pointer
14992         (ipa_callsite_param_set_type): Removed.
14993         (ipa_compute_jump_functions): i renamed to index and moved to
14994         an inner block
14995         (ipa_callsite_param_set_info_type_formal): Removed.
14996         (ipa_callsite_param_set_info_type): Removed.
14997         (ipa_callsite_param_map_create): Removed.
14998         (ipa_callsite_tree): Removed.
14999         (ipa_callsite_caller): Removed.
15000         (ipa_pop_func_from_list): return_method removed to return_func
15001
15002         * ipa-prop.h (enum cvalue_type): Renamed to ipa_lattice_type,
15003         prefixed all values with IPA_. Changed all users.
15004         (enum jump_func_type): Rnamed UNKNOWN_IPATYPE to IPA_UNKNOWN,
15005         CONST_IPATYPE to IPA_CONST, CONST_IPATYPE_REF to IPA_CONST_REF
15006         and FORMAL_IPATYPE IPA_PASS_THROUGH.
15007         (union parameter_info): Renamed to jump_func_value.
15008         (union jump_func_value): Renamed value to constant
15009         (struct ipa_jump_func): Renamed info_type to value
15010         (struct ipa_node): Renamed to ipa_node_params
15011         (struct ipa_node_params): Renamed ipa_arg_num to param_count
15012         (struct ipa_node_params): Renamed ipa_param_tree to param_decls
15013         (struct ipa_node_params): Renamed ipa_mod to modified_flags
15014         (struct ipa_edge): Renamed to ipa_edge_args
15015         (struct ipa_edge_args): Renamed ipa_param_num to argument_count
15016         (struct ipa_edge_args): Renamed ipa_param_map to jump_functions
15017         (struct ipa_methodlist): Renamed to ipa_func_list
15018         (struct ipa_func_list): method_p renamed to node, next_method
15019         renamed to next
15020         (ipa_methodlist_p): Removed, switched all users to struct pointer
15021         (IS_VALID_TREE_MAP_INDEX): Renamed to IS_VALID_JUMP_FUNC_INDEX
15022
15023 2008-04-30  Alan Modra  <amodra@bigpond.net.au>
15024
15025         * config/rs6000/rs6000.c (ALWAYS_RESTORE_ALTIVEC_BEFORE_POP): Define.
15026         (rs6000_emit_epilogue): Use backchain to restore only when we
15027         have a large frame.  Make use of frame pointer to restore if we
15028         have one.  Handle ALWAYS_RESTORE_ALTIVEC_BEFORE_POP.
15029
15030 2008-04-29  Paolo Bonzini  <bonzini@gnu.org>
15031
15032         * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
15033         Add mode to zero_extract.
15034         (sign bit tests peepholes): (Ditto.).
15035
15036 2008-04-29  H.J. Lu  <hongjiu.lu@intel.com>
15037
15038         * config/i386/i386.c (ix86_builtins): Replace Prescott New
15039         Instructions in comments with SSE3.
15040         (ix86_builtin_type): This.  Add FLOAT128_FTYPE_FLOAT128,
15041         INT64_FTYPE_V4SF, INT64_FTYPE_V2DF, INT_FTYPE_V16QI,
15042         INT_FTYPE_V8QI, INT_FTYPE_V4SF, INT_FTYPE_V2DF,
15043         V16QI_FTYPE_V16QI, V8HI_FTYPE_V8HI, V8HI_FTYPE_V16QI,
15044         V8QI_FTYPE_V8QI, V4SI_FTYPE_V4SI, V4SI_FTYPE_V16QI,
15045         V4SI_FTYPE_V4SF, V4SI_FTYPE_V8HI, V4SI_FTYPE_V2DF,
15046         V4HI_FTYPE_V4HI, V4SF_FTYPE_V4SF, V4SF_FTYPE_V4SI,
15047         V4SF_FTYPE_V2DF, V2DI_FTYPE_V2DI, V2DI_FTYPE_V16QI,
15048         V2DI_FTYPE_V8HI, V2DI_FTYPE_V4SI, V2DF_FTYPE_V2DF,
15049         V2DF_FTYPE_V4SI, V2DF_FTYPE_V4SF, V2DF_FTYPE_V2SI,
15050         V2SI_FTYPE_V2SI, V2SI_FTYPE_V4SF, V2SI_FTYPE_V2SF,
15051         V2SI_FTYPE_V2DF, V2SF_FTYPE_V2SF and V2SF_FTYPE_V2SI.
15052         (bdesc_sse_args): Renamed to ...
15053         (bdesc_args): This.  Add IX86_BUILTIN_PF2ID, IX86_BUILTIN_PFRCP,
15054         IX86_BUILTIN_PFRSQRT, IX86_BUILTIN_PI2FD, IX86_BUILTIN_PF2IW,
15055         IX86_BUILTIN_PSWAPDSI, IX86_BUILTIN_PSWAPDSF and
15056         IX86_BUILTIN_FABSQ.
15057         (bdesc_1arg): Moved to ...
15058         (bdesc_args): Here.
15059         (ix86_init_mmx_sse_builtins): Updated.  Replace Prescott New
15060         Instructions in comments with SSE3.
15061         (ix86_expand_sse_operands_builtin): Renamed to ...
15062         (ix86_expand_args_builtin): This.  Updated.
15063         (ix86_expand_unop1_builtin): Update comments.
15064         (ix86_expand_builtin): Updated.
15065
15066 2008-04-29  Richard Guenther  <rguenther@suse.de>
15067
15068         PR tree-optimization/36078
15069         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
15070         Update virtual SSA form after cleaning up the CFG.
15071
15072 2008-04-29  Richard Guenther  <rguenther@suse.de>
15073
15074         PR middle-end/15255
15075         * fold-const.c (fold_binary): Fold (A + A) * C to A * 2*C.
15076
15077 2008-04-29  Richard Guenther  <rguenther@suse.de>
15078
15079         * tree-ssa-alias.c (finalize_ref_all_pointers): Remove.
15080         (compute_may_aliases): Do not call finalize_ref_all_pointers.
15081         (compute_flow_insensitive_aliasing): Do not treat
15082         PTR_IS_REF_ALL pointers special.
15083         (get_smt_for): Likewise.
15084         (may_alias_p): Re-structure.
15085         (is_escape_site): A ref-all pointer conversion is not an escape site.
15086         * tree-ssa-structalias.c (find_what_p_points_to): Do not treat
15087         PTR_IS_REF_ALL pointers special.
15088         * tree-ssa-structalias.h (struct alias_info): Remove
15089         ref_all_symbol_mem_tag field.
15090         (PTR_IS_REF_ALL): Remove.
15091
15092 2008-04-29  Richard Guenther  <rguenther@suse.de>
15093
15094         PR middle-end/36077
15095         * fold-const.c (extract_muldiv_1): In combining division constants
15096         make sure to never overflow.
15097
15098 2008-04-29  Nick Clifton  <nickc@redhat.com>
15099
15100         * doc/tm.texi (RETURN_ADDR_RTX): Fix typo.
15101
15102 2008-04-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15103
15104         PR bootstrap/35169
15105         * optc-gen.awk: Work around HP-UX/IA awk bug.
15106
15107 2008-04-28  Danny Smith  <dannysmith@users.sourceforge.net>
15108
15109         * config/i386/cygming-crtend.c (register_frame_ctor): Revert my
15110         2008-04-25 commit.
15111
15112 2008-04-28  Uros Bizjak  <ubizjak@gmail.com>
15113
15114         PR target/36073
15115         * config/i386/i386.md
15116         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit):
15117         Change operand 1 predicate to nonimmediate_operand.
15118
15119 2008-04-28  Jakub Jelinek  <jakub@redhat.com>
15120
15121         PR debug/36060
15122         * dwarf2out.c (struct die_struct): Mark as chain_circular through
15123         die_sub field.
15124         * gengtype.c (walk_type, write_func_for_structure): Handle
15125         chain_circular.
15126         * doc/gty.texi: Document chain_circular.
15127
15128 2008-04-28  Richard Guenther  <rguenther@suse.de>
15129
15130         PR tree-optimization/36066
15131         * tree-vrp.c (execute_vrp): Cleanup the CFG only after finalizing
15132         SCEV and loop.
15133
15134 2008-04-28  Uros Bizjak  <ubizjak@gmail.com>
15135
15136         PR target/36064
15137         * config/i386/i386.md
15138         (floatdi<X87MODEF:mode>2_i387_with_xmm splitters):
15139         Use match_scratch instead of match_operand for operands 3 and 4.
15140
15141 2008-04-27  Richard Guenther  <rguenther@suse.de>
15142
15143         PR tree-optimization/18754
15144         PR tree-optimization/34223
15145         * tree-pass.h (pass_complete_unrolli): Declare.
15146         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Print
15147         loop size before and after unconditionally of UL_NO_GROWTH in effect.
15148         Rewrite loop into loop closed SSA form if it is not already.
15149         (tree_unroll_loops_completely): Re-structure to iterate over
15150         innermost loops with intermediate CFG cleanups.
15151         Unroll outermost loops only if requested or the code does not grow
15152         doing so.
15153         * tree-ssa-loop.c (gate_tree_vectorize): Don't shortcut if no
15154         loops are available.
15155         (tree_vectorize): Instead do so here.
15156         (tree_complete_unroll): Also unroll outermost loops.
15157         (tree_complete_unroll_inner): New function.
15158         (gate_tree_complete_unroll_inner): Likewise.
15159         (pass_complete_unrolli): New pass.
15160         * tree-ssa-loop-manip.c (find_uses_to_rename_use): Only record
15161         uses outside of the loop.
15162         (tree_duplicate_loop_to_header_edge): Only verify loop-closed SSA
15163         form if it is available.
15164         * tree-flow.h (tree_unroll_loops_completely): Add extra parameter.
15165         * passes.c (init_optimization_passes): Schedule complete inner
15166         loop unrolling pass before the first CCP pass after final inlining.
15167
15168 2008-04-27  Nathan Sidwell  <nathan@codesourcery.com>
15169
15170         * targhooks.h (default_emutls_var_fields,
15171         default_emutls_var_init): Declare.
15172         * tree.h (DECL_THREAD_LOCAL): Compare against TLS_MODEL_REAL.
15173         * target.h (struct gcc_target): Add struct emutls member.
15174         * target-def.h (TARGET_EMUTLS_GET_ADDRESS,
15175         TARGET_EMUTLS_REGISTER_COMMON, TARGET_EMUTLS_VAR_SECTION,
15176         TARGET_EMUTLS_TMPL_SECTION, TARGET_EMUTLS_VAR_PREFIX,
15177         TARGET_EMUTLS_TMPL_PREFIX, TARGET_EMUTLS_VAR_FIELDS,
15178         TARGET_EMUTLS_VAR_INIT, TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS,
15179         TARGET_EMUTLS_VAR_ALIGN_FIXED, TARGET_EMUTLS): New.
15180         (TARGET_INITIALIZER): Add TARGET_EMUTLS.
15181         * builtins.def (BUILT_IN_EMUTLS_GET_ADDRESS,
15182         BUILT_IN_EMUTLS_REGISTER_COMMON): Get name from targetm structure.
15183         * dwarf2out.c (loc_descriptor_from_tree_1): Check if emutls can
15184         emit debug information.
15185         * coretypes.h (tls_model): Add TLS_MODEL_EMULATED, TLS_MODEL_REAL.
15186         * varasm.c: Include targhooks.h.
15187         (emutls_object_section, emutls_tmpl_section): New.
15188         (EMUTLS_VAR_PREFIX, EMUTLS_TMPL_PREFIX): Remove.
15189         (EMUTLS_SEPARATOR): New.
15190         (prefix_name): New.
15191         (get_emutls_object_name): New.
15192         (default_emutls_var_fields): New, broken out of ...
15193         (get_emutls_object_type): ... here.  Adjust to use target hooks.
15194         (get_emutls_init_templ_addr): Adjust to use target hooks.
15195         (emutls_decl): Adjust to use target hooks.
15196         (emutls_finish): Likewise.
15197         (default_emutls_var_init): New, broken out of ...
15198         (assemble_variable): ... here.  Adjust to use target hooks.
15199         * output.h (enum section_category): Add SECCAT_EMUTLS_VAR,
15200         SECCAT_EMUTLS_TMPL.
15201         * c-common.c (handle_section_attribute): Prevent overriding
15202         sections for emulated tls with special sections.
15203         * config/i386/i386.c (x86_64_elf_select_section): Add
15204         SECCAT_EMUTLS_VAR and SECCAT_EMUTLS_TMPL.
15205         (x86_64_elf_unique_section): Likewise.
15206         * config/vxworks.c: Include tree.h.
15207         (vxworks_emutls_var_fields, vxworks_emutls_var_init): New.
15208         (vxworks_override_options): Set TLS scheme.
15209         * doc/tm.texi (Emulated TLS): New node.
15210
15211 2008-04-26  Simon Baldwin <simonb@google.com>
15212
15213         PR c/35652
15214         * builtins.c (c_strlen): Suppressed multiple warnings that can occur
15215         with propagated string constants.
15216
15217 2008-04-26  Uros Bizjak  <ubizjak@gmail.com>
15218
15219         * config/i386/i386.md (fix_trunc<mode>_i387_fisttp_with_temp): Use 'X'
15220         constraint for operand 2 when operand 0 is memory operand.
15221         (fix_truncdi_i387_with_temp): : Use 'X' constraint for operand 4 when
15222         operand 0 is memory operand.
15223         (fix_trunc<mode>_i387_with_temp): Ditto.
15224         (*floatsi<mode>2_vector_mixed_with_temp): Use 'X' constraint for
15225         operand 2 when operand 1 is memory operand.
15226         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_with_temp): Ditto.
15227         (*floatsi<mode>2_vector_sse_with_temp): Ditto.
15228         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_with_temp): Ditto.
15229         (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp): Ditto.
15230         (floatdi<X87MODEF:mode>2_i387_with_xmm): Use 'X' constraint for
15231         operands 2,3 and 4 when operand 1 is memory operand.
15232         (fistdi2_with_temp): Use 'X' constraint for operand 2 when operand 0
15233         is memory operand.
15234         (fistdi2_floor_with_temp): Ditto.
15235         (fist<mode>2_floor_with_temp): Ditto.
15236         (fistdi2_ceil_with_temp): Ditto.
15237         (fist<mode>2_ceil_with_temp): Ditto.
15238         (*truncdfsf_fast_mixed): Merge alternatives 0 and 1.
15239
15240 2008-04-26  David Daney  <ddaney@avtrex.com>
15241
15242         * config/mips/mips.md (UNSPEC_COMPARE_AND_SWAP_12): New
15243         unspec_volitile.
15244         (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_EXCHANGE,
15245         UNSPEC_MEMORY_BARRIER, UNSPEC_SET_GOT_VERSION,
15246         UNSPEC_UPDATE_GOT_VERSION): Renumber.
15247         (sync_compare_and_swap<mode>): New expand for QI and HI modes.
15248         (compare_and_swap_12): New insn.
15249         * config/mips/mips-protos.h (mips_expand_compare_and_swap_12): Declare.
15250         * config/mips/mips.c (mips_force_binary): New function.
15251         (mips_emit_int_order_test, mips_expand_synci_loop): Use it.
15252         (mips_expand_compare_and_swap_12): New function.
15253         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP_12): New macro.
15254
15255 2008-04-25  Jan Hubicka  <jh@suse.cz>
15256
15257         PR testsuite/35843
15258         * cfgexpand.c (pass_expand): Turn into RTL pass.
15259         * passes.c (execute_one_pass): Do pass typechecking after execution.
15260         * tree-pass.h (pass_expand): Turn into RTL pass.
15261
15262         * function.h (struct rtl_data): Move here fields
15263         accesses_prior_frames, calls_eh_return, saves_all_registers,
15264         has_nonlocal_goto, has_asm_statement, is_thunk,
15265         all_throwers_are_sibcalls, limit_stack, profile, uses_const_pool,
15266         uses_pic_offset_table, uses_eh_lsda, tail_call_emit,
15267         arg_pointer_save_area_init from struct function; turn into bool.
15268         (struct function): Move
15269         calls_eh_return, saves_all_registers, has_nonlocal_goto,
15270         has_asm_statement, is_thunk, all_throwers_are_sibcalls, limit_stack,
15271         profile, uses_const_pool, uses_pic_offset_table, uses_eh_lsda,
15272         tail_call_emit, arg_pointer_save_area_init
15273         into struct rtl_data.  Remove recursive_call_emit and gimplified flags.
15274         (current_function_returns_struct, current_function_returns_pcc_struct,
15275         current_function_calls_setjmp, current_function_calls_alloca,
15276         current_function_accesses_prior_frames,
15277         current_function_calls_eh_return, current_function_is_thunk,
15278         current_function_stdarg, current_function_profile,
15279         current_function_limit_stack, current_function_uses_pic_offset_table,
15280         current_function_uses_const_pool, current_function_has_nonlocal_label,
15281         current_function_saves_all_registers,
15282         current_function_has_nonlocal_goto,
15283         current_function_has_asm_statement): Remove accesor macros.
15284         * ra-conflict.c (global_conflicts): Update.
15285         * tree-tailcall.c (suitable_for_tail_opt_p): Update.
15286         (suitable_for_tail_call_opt_p): Update.
15287         * builtins.c (expand_builtin_return_addr): Update.
15288         (expand_builtin_setjmp_setup): Update.
15289         (expand_builtin_nonlocal_goto): Update.
15290         * final.c (final_start_function): Update.
15291         (profile_function): Update.
15292         (leaf_function_p): Update.
15293         (only_leaf_regs_used): Update.
15294         * df-scan.c (df_get_exit_block_use_set): Update.
15295         * dojump.c (clear_pending_stack_adjust): Update.
15296         * tree-stdarg.c (gate_optimize_stdarg): Update.
15297         * gimple-low.c (lower_function_body): Update.
15298         * global.c (compute_regsets): Update.
15299         (global_alloc): Update.
15300         * dwarf2out.c (dwarf2out_begin_prologue): Update.
15301         * expr.c (expand_assignment): Update.
15302         * dse.c (dse_step0): Update.
15303         (dse_step1): Update.
15304         * c-decl.c (store_parm_decls): Update.
15305         * local-alloc.c (combine_regs): Update.
15306         (find_free_reg): Update.
15307         * function.c (assign_parms_augmented_arg_list): Update.
15308         (assign_parm_find_data_types): Update.
15309         (assign_parms): Update.
15310         (allocate_struct_function): Update.
15311         (expand_function_start): Update.
15312         (expand_function_end): Update.
15313         (get_arg_pointer_save_area): Update.
15314         (thread_prologue_and_epilogue_insns): Update.
15315         (rest_of_match_asm_constraints): Update.
15316         * stor-layout.c (variable_size): Update.
15317         * gcse.c (gcse_main): Update.
15318         (bypass_jumps): Update.
15319         * gimplify.c (gimplify_function_tree): Update.
15320         * calls.c (emit_call_1): Update.
15321         (expand_call): Update.
15322         * bt-load.c (compute_defs_uses_and_gen): Update.
15323         * except.c (sjlj_assign_call_site_values): Update.
15324         (sjlj_emit_function_enter): Update.
15325         (can_throw_external): Update.
15326         (set_nothrow_function_flags): Update.
15327         (expand_builtin_unwind_init): Update.
15328         (expand_eh_return): Update.
15329         (convert_to_eh_region_ranges): Update.
15330         (output_function_exception_table): Update.
15331         * emit-rtl.c (gen_tmp_stack_mem): Update.
15332         * cfgexpand.c (expand_used_vars): Update.
15333         (tree_expand_cfg): Update.
15334         * cfgcleanup.c (rest_of_handle_jump): Update.
15335         * explow.c (allocate_dynamic_stack_space): Update.
15336         * varasm.c (assemble_start_function): Update.
15337         (force_const_mem): Update.
15338         (mark_constant_pool): Update.
15339         * tree-optimize.c (tree_rest_of_compilation): Update.
15340         * stack-ptr-mod.c (notice_stack_pointer_modification): Update.
15341         * tree-cfg.c (notice_special_calls): Update.
15342         (is_ctrl_altering_stmt): Update.
15343         (tree_can_make_abnormal_goto): Update.
15344         (tree_purge_dead_abnormal_call_edges): Update.
15345         * config/alpha/predicates.md: Update.
15346         * config/alpha/alpha.c (alpha_sa_mask): Update.
15347         (alpha_sa_size): Update.
15348         (alpha_does_function_need_gp): Update.
15349         (alpha_expand_prologue): Update.
15350         (alpha_start_function): Update.
15351         (alpha_output_function_end_prologue): Update.
15352         (alpha_expand_epilogue): Update.
15353         * config/frv/frv.c (frv_stack_info): Update.
15354         (frv_expand_epilogue): Update.
15355         * config/s390/s390.c (s390_regs_ever_clobbered): Update.
15356         (s390_register_info): Update.
15357         (s390_frame_info): Update.
15358         (s390_init_frame_layout): Update.
15359         (s390_can_eliminate): Update.
15360         (save_gprs): Update.
15361         * config/spu/spu.c (spu_split_immediate): Update.
15362         (need_to_save_reg): Update.
15363         (spu_expand_prologue): Update.
15364         (spu_expand_epilogue): Update.
15365         * config/sparc/sparc.md: Update.
15366         * config/sparc/sparc.c (eligible_for_return_delay): Update.
15367         (sparc_tls_got): Update.
15368         (legitimize_pic_address): Update.
15369         (sparc_emit_call_insn): Update.
15370         (sparc_expand_prologue): Update.
15371         (output_return): Update.
15372         (print_operand): Update.
15373         (sparc_function_ok_for_sibcall): Update.
15374         * config/sparc/sparc.h (EXIT_IGNORE_STACK): Update.
15375         * config/m32r/m32r.md: Update.
15376         * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Update.
15377         (m32r_compute_frame_size): Update.
15378         (m32r_expand_prologue): Update.
15379         (m32r_expand_epilogue): Update.
15380         (m32r_legitimize_pic_address): Update.
15381         * config/m32r/m32r.h (FRAME_POINTER_REQUIRED): Update.
15382         * config/i386/linux.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
15383         * config/i386/i386.c (ix86_frame_pointer_required): Update.
15384         (gen_push): Update.
15385         (ix86_save_reg): Update.
15386         (ix86_compute_frame_layout): Update.
15387         (ix86_expand_prologue): Update.
15388         (ix86_expand_epilogue): Update.
15389         * config/sh/sh.c (output_stack_adjust): Update.
15390         (calc_live_regs): Update.
15391         (sh5_schedule_saves): Update.
15392         (sh_expand_prologue): Update.
15393         (sh_expand_epilogue): Update.
15394         (sh_setup_incoming_varargs): Update.
15395         (sh_allocate_initial_value): Update.
15396         (sh_get_pr_initial_val): Update.
15397         * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): Update.
15398         * config/sh/sh.md (label:): Update.
15399         * config/avr/avr.c (out_movhi_mr_r): Update.
15400         * config/crx/crx.h (enum): Update.
15401         * config/xtensa/xtensa.h (along): Update.
15402         * config/stormy16/stormy16.c Update.
15403         (xstormy16_compute_stack_layout): Update.
15404         * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Update.
15405         (fr30_expand_prologue): Update.
15406         * config/cris/cris.c (cris_conditional_register_usage): Update.
15407         (cris_reg_saved_in_regsave_area): Update.
15408         (cris_initial_frame_pointer_offset): Update.
15409         (cris_simple_epilogue): Update.
15410         (cris_expand_prologue): Update.
15411         (cris_expand_epilogue): Update.
15412         (cris_expand_pic_call_address): Update.
15413         (cris_asm_output_symbol_ref): Update.
15414         (cris_asm_output_label_ref): Update.
15415         * config/cris/cris.md Update.
15416         * config/iq2000/iq2000.c (compute_frame_size): Update.
15417         (iq2000_expand_epilogue): Update.
15418         * config/mt/mt.h (save_direction): Update.
15419         * config/mn10300/mn10300.c (mn10300_function_value): Update.
15420         * config/ia64/ia64.c (ia64_compute_frame_size): Update.
15421         (ia64_secondary_reload_class): Update.
15422         * config/m68k/m68k.c (m68k_save_reg): Update.
15423         (m68k_expand_prologue): Update.
15424         (m68k_expand_epilogue): Update.
15425         (legitimize_pic_address): Update.
15426         * config/rs6000/rs6000.c (rs6000_got_register): Update.
15427         (first_reg_to_save): Update.
15428         (first_altivec_reg_to_save): Update.
15429         (compute_vrsave_mask): Update.
15430         (compute_save_world_info): Update.
15431         (rs6000_stack_info): Update.
15432         (spe_func_has_64bit_regs_p): Update.
15433         (rs6000_ra_ever_killed): Update.
15434         (rs6000_emit_eh_reg_restore): Update.
15435         (rs6000_emit_allocate_stack): Update.
15436         (rs6000_emit_prologue): Update.
15437         (rs6000_emit_epilogue): Update.
15438         (rs6000_output_function_epilogue): Update.
15439         (output_profile_hook): Update.
15440         (rs6000_elf_declare_function_name): Update.
15441         * config/rs6000/rs6000.h (rs6000_args): Update.
15442         * config/rs6000/rs6000.md: Update.
15443         * config/mcore/mcore.c (mcore_expand_prolog): Update.
15444         * config/arc/arc.c (arc_output_function_epilogue): Update.
15445         * config/arc/arc.h (FRAME_POINTER_REQUIRED): Update.
15446         * config/darwin.c (machopic_function_base_name): Update.
15447         * config/score/score3.c (score3_compute_frame_size): Update.
15448         (rpush): Update.
15449         (rpop): Update.
15450         (score3_epilogue): Update.
15451         * config/score/score7.c (score7_compute_frame_size): Update.
15452         (score7_prologue): Update.
15453         (score7_epilogue): Update.
15454         * config/score/score.h (FRAME_POINTER_REQUIRED): Update.
15455         * config/arm/linux-elf.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
15456         * config/arm/arm.c (use_return_insn): Update.
15457         (require_pic_register): Update.
15458         (arm_load_pic_register): Update.
15459         (arm_compute_save_reg0_reg12_mask): Update.
15460         (arm_compute_save_reg_mask): Update.
15461         (thumb1_compute_save_reg_mask): Update.
15462         (output_return_instruction): Update.
15463         (arm_output_function_prologue): Update.
15464         (arm_output_epilogue): Update.
15465         (arm_get_frame_offsets): Update.
15466         (arm_expand_prologue): Update.
15467         (thumb_pushpop): Update.
15468         (thumb_exit): Update.
15469         (thumb1_expand_prologue): Update.
15470         (thumb1_expand_epilogue): Update.
15471         (arm_unwind_emit): Update.
15472         (arm_output_fn_unwind): Update.
15473         * config/arm/arm.h (FRAME_POINTER_REQUIRED): Update.
15474         * config/arm/arm.md: Update.
15475         * config/pa/pa.md: Update.
15476         * config/pa/pa.c (legitimize_pic_address): Update.
15477         (compute_frame_size): Update.
15478         (hppa_expand_prologue): Update.
15479         (hppa_expand_epilogue): Update.
15480         (borx_reg_operand): Update.
15481         * config/pa/pa.h (FRAME_POINTER_REQUIRED): Update.
15482         (HARD_REGNO_RENAME_OK): Update.
15483         * config/mips/mips.c (mips_global_pointer): Update.
15484         (mips_save_reg_p): Update.
15485         (mips_compute_frame_info): Update.
15486         (mips_frame_pointer_required): Update.
15487         (mips_expand_prologue): Update.
15488         (mips_expand_epilogue): Update.
15489         (mips_can_use_return_insn): Update.
15490         (mips_reorg_process_insns): Update.
15491         * config/v850/v850.c (compute_register_save_size): Update.
15492         * config/mmix/mmix.h (FRAME_POINTER_REQUIRED): Update.
15493         * config/mmix/mmix.c (along): Update.
15494         (mmix_expand_epilogue): Update.
15495         * config/bfin/bfin.c (legitimize_pic_address): Update.
15496         (must_save_p): Update.
15497         (stack_frame_needed_p): Update.
15498         (add_to_reg): Update.
15499         (bfin_expand_prologue): Update.
15500         * stmt.c (expand_asm_operands): Update.
15501         * reload1.c (reload): Update.
15502         (init_elim_table): Update.
15503
15504 2008-04-25  Bob Wilson  <bob.wilson@acm.org>
15505
15506         * optabs.c (expand_float): Fix REG_EQUAL for UNSIGNED_FLOAT libcall.
15507
15508 2008-04-25  H.J. Lu  <hongjiu.lu@intel.com>
15509
15510         * config/i386/sse.md (mov<mode>): Replace SSEMODEI with SSEMODE.
15511         (*mov<mode>_internal): Likewise.  Support V4SF and V2DF.
15512         (mov<mode>): Removed.
15513         (*movv4sf_internal): Likewise.
15514         (*movv2df_internal): Likewise.
15515
15516 2008-04-25  Pompapathi V Gadad <Pompapathi.V.Gadad@nsc.com>
15517
15518         * config.gcc (crx-*-elf): Remove deprecation.
15519
15520 2008-04-25  Danny Smith  <dannysmith@users.sourceforge.net>
15521
15522         * config/i386/cygming-crtend.c (register_frame_ctor): Register
15523         __gcc_deregister_frame with atexit.
15524         (deregister_frame_dtor): Remove.
15525
15526 2008-04-24  Nathan Froyd  <froydnj@codesourcery.com>
15527             Nathan Sidwell  <nathan@codesourcery.com>
15528
15529         * config/rs6000/rs6000.opt (mspe): Remove Var property.
15530         (misel): Likewise.
15531         * config/rs6000/rs6000.h (rs6000_spe): Declare.
15532         (rs6000_isel): Likewise.
15533         * config/rs6000/rs6000.c (rs6000_spe): New variable.
15534         (rs6000_isel): New variable.
15535         (rs6000_handle_option): Handle OPT_mspe and OPT_misel.
15536
15537 2008-04-24  Jakub Jelinek  <jakub@redhat.com>
15538
15539         PR c++/35758
15540         * c-common.c (handle_vector_size_attribute): Call
15541         lang_hooks.types.reconstruct_complex_type instead of
15542         reconstruct_complex_type.
15543         * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute): Likewise.
15544         * config/spu/spu.c (spu_handle_vector_attribute): Likewise.
15545         * langhooks.h (struct lang_hooks_for_types): Add
15546         reconstruct_complex_type hook.
15547         * langhooks-def.h (LANG_HOOKS_RECONSTRUCT_COMPLEX_TYPE): Define.
15548         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add it.
15549
15550 2008-04-24  Richard Guenther  <rguenther@suse.de>
15551
15552         * c-common.h (check_builtin_function_arguments): Declare.
15553         * c-common.c (validate_nargs): New function.
15554         (check_builtin_function_arguments): Likewise.
15555         * c-typeck.c (build_function_call): Call
15556         check_builtin_function_arguments.
15557         * builtins.c (fold_builtin_classify): Remove error reporting code.
15558         (fold_builtin_unordered_cmp): Likewise.
15559         (fold_builtin_1): Likewise.
15560         (fold_builtin_n): Likewise.
15561
15562 2008-04-24  Jakub Jelinek  <jakub@redhat.com>
15563
15564         PR tree-optimization/36008
15565         * fold-const.c (try_move_mult_to_index): If s == NULL, divide
15566         the original op1, rather than delta by step.
15567
15568 2008-04-22  Antoniu Pop  <antoniu.pop@gmail.com>
15569             Sebastian Pop  <sebastian.pop@amd.com>
15570
15571         * tree-parloops.c (take_address_of, eliminate_local_variables_1,
15572         eliminate_local_variables_stmt, eliminate_local_variables,
15573         separate_decls_in_loop_name, separate_decls_in_loop_stmt,
15574         separate_decls_in_loop, gen_parallel_loop): Make them work on a region
15575         of code delimited by two edges in the CFG.
15576         (separate_decls_in_loop_name): Renamed separate_decls_in_region_name.
15577         (separate_decls_in_loop_stmt): Renamed separate_decls_in_region_stmt.
15578         (separate_decls_in_loop): Renamed separate_decls_in_region.  Isolate
15579         the case of parallelisation of reductions.
15580         (expr_invariant_in_region_p): New.
15581
15582         * tree-flow.h (gather_blocks_in_sese_region): Declared.
15583         * tree-cfg.c (gather_blocks_in_sese_region): Extern.
15584
15585 2008-04-24  Ira Rosen  <irar@il.ibm.com>
15586             Richard Guenther  <rguenther@suse.de>
15587
15588         PR tree-optimization/36034
15589         * tree-vect-analyze.c (vect_analyze_group_access): SLP is
15590         incapable of dealing with loads with gaps.
15591
15592 2008-04-24  Rafael Espíndola  <espindola@google.com>
15593
15594         * tree-flow.h (vrp_evaluate_conditional): Change signature.
15595         * tree-ssa-propagate.c (fold_predicate_in): Update call to
15596         vrp_evaluate_conditional.
15597         * tree-vrp.c (vrp_evaluate_conditional_warnv): Remove.
15598         (vrp_evaluate_conditional): Split the cond argument.
15599         (vrp_visit_cond_stmt): Use vrp_evaluate_conditional_warnv_with_ops.
15600         (simplify_stmt_for_jump_threading): Update call to
15601         vrp_evaluate_conditional.
15602
15603 2008-04-24  Ira Rosen  <irar@il.ibm.com>
15604
15605         PR tree-optimization/35982
15606         * tree-vect-analyze.c (vect_check_interleaving): Check that the
15607         interleaved data-refs are of the same type.
15608
15609 2008-04-24  Danny Smith  <dannysmith@users.net>
15610
15611         * c-format.c (check_format_info_main): Use strncmp rather than a
15612         magic prefix to handle multichar length specs.
15613         * config/i386/msformat-c.c (format_length_info ms_printf_length_specs):
15614         Don't prefix "I64" and "I32" with '\0'.
15615
15616 2008-04-24  Jakub Jelinek  <jakub@redhat.com>
15617
15618         PR target/36015
15619         * config/i386/i386.c (init_cumulative_args): Don't pass anything
15620         in registers for -m32 only if stdarg_p (fntype).
15621
15622 2008-04-24  Uros Bizjak  <ubizjak@gmail.com>
15623
15624         PR rtl-optimization/36006
15625         * expmed.c (store_fixed_bit_field): Copy op0 rtx before moving
15626         temp to op0 in order to avoid invalid rtx sharing.
15627
15628 2008-04-23  Paolo Bonzini  <bonzini@gnu.org>
15629
15630         * tree-cfg.c (verify_expr): Check with is_gimple_address.  Don't
15631         check TREE_INVARIANT.
15632         * tree-gimple.c (is_gimple_address): New.
15633         (is_gimple_invariant_address): Simplify using decl_address_invariant_p.
15634         * tree-gimple.h (is_gimple_address): New.
15635         * tree.h (decl_address_invariant_p): New.
15636         * tree.c (make_node_stat): Don't set TREE_INVARIANT.
15637         (build_string): Likewise.
15638         (decl_address_invariant_p): New, from is_gimple_invariant_address.
15639         (tree_invariant_p_1): Likewise.
15640         (save_expr): Use it.
15641         (tree_invariant_p): New.
15642         (skip_simple_arithmetic): Use it.
15643         (stabilize_reference_1): Use it.
15644         (recompute_tree_invariant_for_addr_expr): Don't update TREE_INVARIANT,
15645         simplify.
15646         (build1_stat): Drop code to compute TREE_INVARIANT.
15647         (build2_stat): Drop code to compute TREE_INVARIANT.
15648         (build3_stat): Drop code to compute TREE_INVARIANT.
15649         (build4_stat): Drop code to compute TREE_INVARIANT.
15650         (build5_stat): Drop code to compute TREE_INVARIANT.
15651         (build7_stat): Drop code to compute TREE_INVARIANT.
15652         (merge_dllimport_decl_attributes): Don't mention TREE_INVARIANT.
15653         * tree.h (struct tree_base): Remove invariant_flag.
15654         (TREE_INVARIANT): Remove.
15655         * builtins.c (build_string_literal): Don't set TREE_INVARIANT.
15656         (fold_builtin_expect): Check TREE_CONSTANT.
15657         * tree-ssa-ccp.c (fold_stmt_r): Adjust comment.
15658         * c-tree.h (c_expr_to_decl): Drop third parameter.
15659         * c-typeck.c (build_external_ref): Don't set TREE_INVARIANT.
15660         (build_c_cast): Don't set TREE_INVARIANT.
15661         (pop_init_level): Don't set TREE_INVARIANT.
15662         (c_objc_common_truthvalue_conversion): Don't set TREE_INVARIANT.
15663         * gimplify.c (gimplify_init_ctor_preeval): Add assertion, test
15664         TREE_CONSTANT.
15665         (gimplify_init_constructor): Don't set TREE_INVARIANT.
15666         (gimplify_addr_expr): Adjust comment.
15667         * tree-mudflap.c (mf_build_string):
15668         * print-tree.c (print_node): Don't print TREE_INVARIANT.
15669         * tree-nested.c (convert_nonlocal_reference): Adjust comment.
15670         * c-common.c (fix_string_type): Don't set TREE_INVARIANT.
15671         * langhooks-def.h (lhd_expr_to_decl): Drop third parameter.
15672         * langhooks.c (lhd_expr_to_decl): Drop third parameter.
15673         * langhooks.h (struct lang_hooks): Drop third parameter from
15674         expr_to_decl.
15675
15676 2008-04-23  Richard Guenther  <rguenther@suse.de>
15677
15678         PR tree-optimization/27799
15679         PR tree-optimization/32921
15680         PR tree-optimization/32624
15681         * tree-ssa-structalias.c (merge_smts_into): Only merge the
15682         SMTs aliases and the tag itself into the solution.
15683         * tree-ssa-alias.c (compute_flow_sensitive_aliasing): Do not
15684         merge the points-to solution back into the SMT aliases.
15685         (may_alias_p): Use alias_set_subset_of instead of
15686         aliases_conflict_p.  A pointer which points to
15687         memory with alias set zero may access any variable.
15688
15689 2008-04-23  Richard Guenther  <rguenther@suse.de>
15690
15691         * alias.c (alias_set_subset_of): Correctly handle asking
15692         if zero is a subset of an alias set with zero child.
15693         * tree-ssa-alias.c (have_common_aliases_p): Simplify logic.
15694         (compute_flow_insensitive_aliasing): Correctly walk all
15695         pointers.  Do not unnecessarily union sets.
15696
15697 2008-04-23  Richard Guenther  <rguenther@suse.de>
15698
15699         PR middle-end/36021
15700         * c-common.c (handle_alloc_size_attribute): Use type_num_arguments.
15701
15702 2008-04-22  Tomas Bily  <tbily@suse.cz>
15703
15704         * tree-cfg.c (verify_expr): Check for NON_LVALUE_EXPR as
15705         unreachable case.
15706         * tree-vrp.c (extract_range_from_unary_expr): Removed unused
15707         NON_LVALUE_EXPR.
15708         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
15709         * tree-ssa-structalias.c (get_constraint_for): Likewise.
15710         * tree-inline.c (estimate_num_insns_1): Likewise.
15711         * varasm.c (const_hash_1, compare_constant, copy_constant)
15712         (compute_reloc_for_constant, output_addressed_constants): Likewise.
15713         * emit-rtl.c (component_ref_for_mem_expr)
15714         (set_mem_attributes_minus_bitpos): Likewise.
15715         * expr.c (highest_pow2_factor, expand_expr_real_1, )
15716         (is_aligning_offset): Likewise.
15717         * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info): Likewise.
15718         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
15719         * dojump.c (do_jump): Likewise.
15720         * builtins.c (get_pointer_alignment, get_memory_rtx)
15721         (integer_valued_real_p, fold_builtin_next_arg): Likewise.
15722         * tree-scalar-evolution.c (instantiate_parameters_1): Likewise.
15723
15724 2008-04-23  Jakub Jelinek  <jakub@redhat.com>
15725
15726         PR rtl-optimization/36017
15727         * builtins.c (expand_errno_check): Clear CALL_EXPR_TAILCALL before
15728         expanding the library call.
15729
15730 2008-04-22  Ian Lance Taylor  <iant@google.com>
15731
15732         * fold-const.c (pointer_may_wrap_p): Call int_size_in_bytes rather
15733         than size_in_bytes.
15734
15735 2008-04-22  Pat Haugen  <pthaugen@us.ibm.com>
15736
15737         * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase cost
15738         of LR/CTR moves for Power6.
15739
15740 2008-04-22  Kenneth Zadeck  <zadeck@naturalbridge.com>
15741
15742         PR middle-end/36003
15743         * passes.c (init_optimization_passes): Remove
15744         pass_fast_rtl_byte_dce.
15745
15746 2008-04-22  Uros Bizjak  <ubizjak@gmail.com>
15747
15748         PR target/29096
15749         * config/i386/xmmintrin.h (_mm_cvtpi16_ps): Rearrange calls to
15750         builtin functions to generate faster code.
15751         (_mm_cvtpu16_ps): Ditto.
15752         (_mm_cvtpi32x2_ps): Ditto.
15753
15754 2008-04-22  Nick Clifton  <nickc@redhat.com>
15755
15756         * common.opt (ftree-loop-distribution): Add Optimization
15757         attribute.
15758
15759         * config/frv/frv.c (frv_stack_info): Use crtl instead of cfun.
15760         (frv_expand_builtin_va_start): Likewise.
15761
15762         * config/arm/arm.c (thumb_find_work_register): Fix location of
15763         argument register count.
15764
15765 2008-04-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
15766
15767         Support scheduling for ColdFire V1 and V3 microarchitecture.
15768         Improve scheduling of multiplication instructions.
15769
15770         * config/m68k/m68k.md (cpu): Add cfv1 and cfv3.  Rename cf_v2 to cfv1.
15771         (mac): New instruction attribute.
15772         * config/m68k/m68k.c (override_options): Handle cfv1, cfv3 and mac.
15773         (m68k_sched_mac): New variable.
15774         (m68k_sched_attr_type2, m68k_sched_md_init_global): Update.
15775         Handle cfv1 and cfv3.
15776         (max_insn_size): New static variable.
15777         (struct _sched_ib): New type.
15778         (sched_ib): New static variable.
15779         (sched_ib_size, sched_ib_filled, sched_ib_insn): Convert variables
15780         to fields of 'struct _sched_ib sched_ib'.  Update all uses.
15781         (m68k_sched_variable_issue): Add modeling of cfv3 instruction buffer.
15782         Update.
15783         (m68k_sched_md_init_global, m68k_sched_md_finish_global,
15784         m68k_sched_md_init, m68k_sched_md_finish): Handle cfv1 and cfv3.  Init
15785         new variables.  Update.
15786         (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
15787         Add modeling of cfv3 instruction buffer.  Update.
15788         * config/m68k/m68k-protos.h (m68k_sched_mac): Declare.
15789         * config/m68k/m68k.h (TUNE_CFV3): New macro.
15790         * config/m68k/cf.md: Change substrings 'cf_v2' to 'cfv12' or 'cfv123'.
15791         (cf_* reservations): Rename to cfv12 or cfv123 to indicate cores
15792         a particular reservation applies to.
15793         (type2): Reorganize attribute values.  Rename alu to alu_reg,
15794         alu_l to alu, move_l to omove.  Join move to alu.  Split mul
15795         to mul_l and mul_w.
15796         (cf_ib_*): Simplify description of instruction buffer.
15797         (cf_ib_w0, cf_ib_w4, cf_ib_w5, cf_ib_w6): Remove.
15798         (cf_mem): Split into cf_mem1 and cf_mem2.
15799         (cf_v2_move_??): Rename to cfv12_alu_??.
15800         (cf_v2_move_l_??): Rename to cfv12_omove_??.
15801         (cf_v2_mul_??): Remove reservations.
15802         (cfv12_mul_l_??, cfv12_mul_w_??, cfv12_mac_w_??, cfv12_mac_l_??,
15803         cfv12_emac_??, cfv12_emac_w_i0): New reservations.
15804         (cfv12_rts, cfv12_call, cfv12_bcc, cfv12_bra, cfv12_jmp): Move to
15805         appropriate place.
15806         (cfv3_alu_10, cfv3_omove_10, cfv3_alu_i0, cfv3_omove_i0, cfv3_alu_01,
15807         cfv3_alu_0i, cfv3_alu_11, cfv3_omove_11, cfv3_alu_i1, cfv3_omove_i1,
15808         cfv3_alu_1i, cfv3_omove_1i, cfv3_pea_11, cfv3_pea_i1, cfv3_mul_w_10,
15809         cfv3_mul_l_10, cfv3_mul_w_i0, cfv3_mac_w_10, cfv3_mac_l_10,
15810         cfv3_mac_w_i0, cfv3_emac_10, cfv3_emac_w_i0, cfv3_rts, cfv3_call,
15811         cfv3_bcc, cfv3_bra, cfv3_jmp): New reservations.
15812         (cfv3_*_1, cfv3_*_2, cfv3_*_3): New instruction reservations that are
15813         expansions of the above reservations for instructions of sizes
15814         1, 2 and 3 words.
15815
15816 2008-04-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
15817
15818         * rtl-factoring.c (collect_patterns_seqs): Handle CC0 targets.
15819
15820 2008-04-21  Adam Nemet  <anemet@caviumnetworks.com>
15821
15822         * coverage.c: Include tree-pass.h.
15823         (coverage_counter_alloc): Print da_file_name to the dump file.
15824
15825 2008-04-21  Kenneth Zadeck  <zadeck@naturalbridge.com>
15826
15827         * sbitmap.c (sbitmap_range_empty_p): New function.
15828         * sbitmap.h (sbitmap_range_empty_p): New function.
15829         * bitmap.h: Now includes obstack.h.
15830
15831 2008-04-21  Richard Sandiford  <rsandifo@nildram.co.uk>
15832             Kenneth Zadeck  <zadeck@naturalbridge.com>
15833
15834         * dbgcnt.def (ra_byte_scan): Added.
15835         * dbgcnt.c (dbg_cnt): Added code to print message to dump_file
15836         when the last hit happens for a counter.
15837         * timevar.def (TV_DF_BYTE_LR): New variable.
15838         * tree-pass.h (pass_fast_rtl_byte_dce): New pass.
15839         * passes.c (pass_fast_rtl_byte_dce): New pass.
15840         * fwprop.c (update_df): Added mode to call df_ref_create.
15841         Renamed DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
15842         DF_REF_EXTRACT_OFFSET.
15843         * df.h (DF_BYTE_LR, DF_BYTE_LR_BB_INFO, DF_BYTE_LR_IN,
15844         DF_BYTE_LR_OUT, df_byte_lr): New macro.
15845         (df_mm): New enum.
15846         (df_ref_extract): Added mode field.
15847         (DF_REF_WIDTH, DF_REF_OFFSET) Renamed to DF_REF_EXTRACT_WIDTH and
15848         DF_REF_EXTRACT_OFFSET.
15849         (DF_REF_EXTRACT_MODE): New macro.
15850         (df_byte_lr_bb_info): New structure.
15851         (df_print_byte_regset, df_compute_accessed_bytes,
15852         df_byte_lr_add_problem, df_byte_lr_get_regno_start,
15853         df_byte_lr_get_regno_len, df_byte_lr_simulate_defs,
15854         df_byte_lr_simulate_uses,
15855         df_byte_lr_simulate_artificial_refs_at_top,
15856         df_byte_lr_simulate_artificial_refs_at_end,
15857         df_compute_accessed_bytes): New function.
15858         (df_ref_create): Add parameter.
15859         (df_byte_lr_get_bb_info): New inline function.
15860         * df-scan.c (df_ref_record, df_uses_record,
15861         df_ref_create_structure): Added mode parameter.
15862         (df_ref_create, df_notes_rescan, df_ref_record, df_def_record_1,
15863         df_defs_record, df_uses_record, df_get_conditional_uses,
15864         df_get_call_refs, df_insn_refs_collect, df_bb_refs_collect,
15865         df_entry_block_defs_collect, df_exit_block_uses_collect):
15866         Added mode parameter to calls to df_ref_record, df_uses_record,
15867         df_ref_create_structure.
15868         (df_ref_equal_p, df_ref_compare): Added test for modes.
15869         (df_ref_create_structure): Added code to set mode.  Renamed
15870         DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
15871         DF_REF_EXTRACT_OFFSET.
15872         * df-core.c (df_print_byte_regset): New function.
15873         * df-byte-scan.c: New file.
15874         * df-problems.c (df_rd_transfer_function): Removed unnecessary
15875         calls to BITMAP_FREE.
15876         (df_byte_lr_problem_data, df_problem problem_BYTE_LR): New structure.
15877         (df_byte_lr_get_regno_start, df_byte_lr_get_regno_len,
15878         df_byte_lr_set_bb_info, df_byte_lr_free_bb_info,
15879         df_byte_lr_check_regs, df_byte_lr_expand_bitmap,
15880         df_byte_lr_alloc, df_byte_lr_reset, df_byte_lr_bb_local_compute,
15881         df_byte_lr_local_compute, df_byte_lr_init,
15882         df_byte_lr_confluence_0, df_byte_lr_confluence_n,
15883         df_byte_lr_transfer_function, df_byte_lr_free,
15884         df_byte_lr_top_dump, df_byte_lr_bottom_dump,
15885         df_byte_lr_add_problem, df_byte_lr_simulate_defs,
15886         df_byte_lr_simulate_uses,
15887         df_byte_lr_simulate_artificial_refs_at_top,
15888         df_byte_lr_simulate_artificial_refs_at_end): New function.
15889         * dce.c (byte_dce_process_block): New function.
15890         (dce_process_block): au is now passed in rather than computed
15891         locally.  Changed loops that look at artificial defs to not look
15892         for conditional or partial ones, because there never are any.
15893         (fast_dce): Now is able to drive byte_dce_process_block or
15894         dce_process_block depending on the kind of dce being done.
15895         (rest_of_handle_fast_dce): Add parameter to fast_dce.
15896         (rest_of_handle_fast_byte_dce): New function.
15897         (rtl_opt_pass pass_fast_rtl_byte_dce): New pass.
15898         * Makefile.in (df-byte-scan.o, debugcnt.o): Added dependencies.
15899
15900 2008-04-21  Daniel Franke  <franke.daniel@gmail.com>
15901
15902         PR fortran/35019
15903         * gcc.h: Added fortran options that take arguments to
15904         DEFAULT_SWITCH_TAKES_ARG and DEFAULT_WORD_SWITCH_TAKES_ARG
15905         macros.
15906
15907 2008-04-20  Eric Botcazou  <ebotcazou@adacore.com>
15908
15909         * tree-sra.c (sra_walk_expr) <VIEW_CONVERT_EXPR>: Disable
15910         scalarization if on the LHS and not a full access.
15911
15912 2008-04-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15913
15914         * Makefile.in (s-gtyp-input): Remove tmp-gi.list before writing it.
15915
15916 2008-04-18  Rafael Espíndola  <espindola@google.com>
15917
15918         * tree-vrp.c (find_case_label_index): Fix the binary search.
15919         (find_case_label_range): New.
15920         (vrp_visit_switch_stmt): Use find_case_label_range.
15921         (simplify_switch_using_ranges): Use find_case_label_range.
15922
15923 2008-04-18  Eric Botcazou  <ebotcazou@adacore.com>
15924
15925         * gimplify.c (gimplify_modify_expr_rhs) <COND_EXPR>: Gimplify the LHS
15926         using the is_gimple_lvalue predicate instead of is_gimple_min_lval.
15927
15928 2008-04-18  Tom Tromey  <tromey@redhat.com>
15929
15930         PR libcpp/15500:
15931         * doc/cpp.texi (Implementation-defined behavior): Mention
15932         -finput-charset.
15933
15934 2008-04-18  Ian Lance Taylor  <iant@google.com>
15935
15936         * fold-const.c (pointer_may_wrap_p): New static function.
15937         (fold_comparison): Add another test for pointer overflow.  Use
15938         pointer_may_wrap_p to disable some false positives.
15939
15940 2008-04-18  Kris Van Hees <kris.van.hees@oracle.com>
15941
15942         * c-common.c (CHAR16_TYPE, CHAR32_TYPE): New macros.
15943         (fname_as_string): Match updated cpp_interpret_string prototype.
15944         (fix_string_type): Support char16_t* and char32_t*.
15945         (c_common_nodes_and_builtins): Add char16_t and char32_t (and
15946         derivative) nodes.  Register as builtin if C++0x.
15947         (c_parse_error): Support CPP_CHAR{16,32}.
15948         * c-common.h (RID_CHAR16, RID_CHAR32): New elements.
15949         (enum c_tree_index) <CTI_CHAR16_TYPE, CTI_SIGNED_CHAR16_TYPE,
15950         CTI_UNSIGNED_CHAR16_TYPE, CTI_CHAR32_TYPE, CTI_SIGNED_CHAR32_TYPE,
15951         CTI_UNSIGNED_CHAR32_TYPE, CTI_CHAR16_ARRAY_TYPE,
15952         CTI_CHAR32_ARRAY_TYPE>: New elements.
15953         (char16_type_node, signed_char16_type_node, unsigned_char16_type_node,
15954         char32_type_node, signed_char32_type_node, char16_array_type_node,
15955         char32_array_type_node): New defines.
15956         * c-lex.c (cb_ident): Match updated cpp_interpret_string prototype.
15957         (c_lex_with_flags): Support CPP_CHAR{16,32} and CPP_STRING{16,32}.
15958         (lex_string): Support CPP_STRING{16,32}, match updated
15959         cpp_interpret_string and cpp_interpret_string_notranslate prototypes.
15960         (lex_charconst): Support CPP_CHAR{16,32}.
15961         * c-parser.c (c_parser_postfix_expression): Support CPP_CHAR{16,32}
15962         and CPP_STRING{16,32}.
15963
15964 2008-04-18  Paolo Bonzini  <bonzini@gnu.org>
15965
15966         PR bootstrap/35457
15967         * aclocal.m4: Regenerate.
15968         * configure: Regenerate.
15969
15970 2008-04-18  Jan Hubicka  <jh@suse.cz>
15971
15972         * except.c (dw2_size_of_call_site_table,
15973         sjlj_size_of_call_site_table): Use vector API for call_site_record.
15974
15975         * cgraphbuild.c (build_cgraph_edges): Update.
15976         * tree-pass.h: Update comment.
15977         * final.c (leaf_function_p): Update.
15978         (leaf_renumber_regs): Update.
15979         (rest_of_clean_state): Update.
15980         * omp-low.c (expand_omp_parallel): Update.
15981         * ipa-reference.c (analyze_function): Update.
15982         * reorg.c (find_end_label): Update.
15983         (optimize_skip): Update.
15984         (fill_simple_delay_slots): Update.
15985         (fill_simple_delay_slots): Update.
15986         (make_return_insns): Update.
15987         (dbr_schedule): Update.
15988         * gimple-low.c (record_vars_into): Update.
15989         * cfgbuild.c (make_edges): Update.
15990         * function.c (assign_stack_local): Update.
15991         (assign_parm_adjust_stack_rtl): Update.
15992         (locate_and_pad_parm): Update.
15993         (allocate_struct_function): Do not initialize stack_alignment_needed
15994         and preferred_stack_boundary here.
15995         (stack_protect_prologue): Update.
15996         (stack_protect_epilogue): Update.
15997         (expand_function_start): Initialize stack_alignment_needed,
15998         preferred_stack_boundary and max_jumptable_ents.
15999         (expand_function_end): Update.
16000         (free_after_compilation): Do not NULLify epilogue_delay_list.
16001         * function.h (struct rtl_data): Add stack_protect_guard,
16002         stack_alignment_needed,
16003         preferred_stack_boundary, epilogue_delay_list.
16004         (struct function): Remove value_histograms, stack_alignment_needed,
16005         preferred_stack_boundary, epilogue_delay_list, max_jumptable_ents,
16006         last_label_uid,
16007         unexpanded_var_list, stack_protect_guard.
16008         (current_function_epilogue_delay_list): Remove.
16009         * ipa-type-escape.c (analyze_function): Update.
16010         * gimplify.c (pop_gimplify_context): Update comment.
16011         * calls.c (expand_call): Update.
16012         (emit_library_call_value_1): Update.
16013         * except.c (set_nothrow_function_flags): Update.
16014         * cfgexpand.c (get_decl_align_unit): Update.
16015         (create_stack_guard): Update.
16016         (estimated_stack_frame_size): Update.
16017         (expand_used_vars): Update.
16018         (tree_expand_cfg): Free histogram earliers, init expansion variables.
16019         * explow.c (allocate_dynamic_stack_space): Update.
16020         * tree-ssa-live.c (remove_unused_locals): Update.
16021         * varasm.c (mark_constant_pool): Update.
16022         * tree-inline.c (remap_decls): Update.
16023         (initialize_cfun): Update.
16024         (declare_return_variable): Update.
16025         (inline_forbidden_p): Update.
16026         (expand_call_inline): Update.
16027         (declare_inline_vars): Update.
16028         (tree_function_versioning): Update.
16029         * tree-flow.h (value_histograms): New.
16030         (VALUE_HISTOGRAMS): New macro.
16031         * basic-block.h (control_flow_graph): Add max_jumptable_ents,
16032         last_label_uid.
16033         * tree-cfg.c (set_bb_for_stmt): Update.
16034         (replace_by_duplicate_decl): Update.
16035         (move_block_to_fn): Update.
16036         (new_label_mapper): Update.
16037         (dump_function_to_file): Update.
16038         * ipa-struct-reorg.c (build_data_structure): Update.
16039         * cfgrtl.c (print_rtl_with_bb): Update.
16040         * reload1.c (reload): Update.
16041         (reload): Update.
16042         * config/i386/i386.c (setup_incoming_varargs_64,
16043         ix86_compute_frame_layout): Update.
16044         * config/arc/arc.c (arc_output_function_epilogue): Update.
16045
16046 2008-04-18  Marius Strobl <marius@FreeBSD.org>
16047
16048         * gthr-posix.h (__gthread_active_p): Use the Solaris implementation
16049         for FreeBSD as well.
16050         * gthr-posix95.h: Likewise.
16051
16052 2008-04-17  Richard Sandiford  <rsandifo@nildram.co.uk>
16053
16054         PR rtl-optimization/35838
16055         * dse.c (find_shift_sequence): Use subreg_lowpart_offset to work
16056         out the byte offset of the first subreg.
16057
16058 2008-04-17  Uros Bizjak  <ubizjak@gmail.com>
16059
16060         * config/i386/i386.md (addti3 splitter): Pass arrays of 3 operands
16061         to split_ti instead of three separate calls with single member arrays.
16062         (subti3 splitter): Ditto.
16063         (adddi3 splitter): Ditto with split_di.
16064         (subdi3 splitter): Ditto.
16065         (negti2 splitter): Pass arrays of 2 operands to split_ti instead of
16066         two separate calls with single member arrays.  Swap match_dup
16067         operands 1 and 2 to better fit into the array.
16068         (negdi2 splitter): Ditto with split_di.
16069         (movdfcc splitter):  Pass arrays of 2 operands to split_di instead of
16070         two separate calls with single member arrays.  Swap match_dup operands
16071         6 and 7 to better fit into the array.
16072
16073 2008-04-17  H.J. Lu  <hongjiu.lu@intel.com>
16074
16075         * config/i386/i386.c (sse_builtin_type): New.
16076         (bdesc_sse_args): Likewise.
16077         (bdesc_sse_3arg): Removed.
16078         (bdesc_2arg): Remove IX86_BUILTIN_AESKEYGENASSIST128.
16079         (bdesc_1arg): Remove IX86_BUILTIN_ROUNDPD and
16080         IX86_BUILTIN_ROUNDPS.
16081         (ix86_init_mmx_sse_builtins): Handle bdesc_sse_args.  Remove
16082         bdesc_sse_3arg.  Remove IX86_BUILTIN_ROUNDPD and
16083         IX86_BUILTIN_ROUNDPS.
16084         (ix86_expand_sse_4_operands_builtin): Removed.
16085         (ix86_expand_sse_operands_builtin): New.
16086         (ix86_expand_unop_builtin): Remove CODE_FOR_sse4_1_roundpd
16087         and CODE_FOR_sse4_1_roundps.
16088         (ix86_expand_builtin): Remove IX86_BUILTIN_AESKEYGENASSIST128.
16089         Handle bdesc_sse_args.  Remove bdesc_sse_3arg.
16090
16091 2008-04-17  Alan Modra  <amodra@bigpond.net.au>
16092
16093         PR target/35907
16094         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Restore vr and vrsave
16095         regs before frame pop when needed.  If use_backchain_to_restore_sp
16096         then load backchain into a temp reg to restore vr and vrsave.  Add
16097         code to restore vr after frame pop if possible.
16098
16099 2008-04-17  Richard Guenther  <rguenther@suse.de>
16100
16101         * tree-vn.c (expressions_equal_p): Do not check type
16102         equality or compatibility before calling operand_equal_p.
16103         * fold-const.c (operand_equal_p): Check equivalence of
16104         integer constants before bailing out due to signedness or
16105         precision differences.
16106         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ignore
16107         spurious differences in type qualification.  Ignore types
16108         for COMPONENT_REFs at all.
16109
16110 2008-04-17  Christian Bruel  <christian.bruel@st.com>
16111
16112         * config/sh/sh.c (expand_cbranchdi4): Use original operands for
16113         msw_skip comparison.
16114
16115 2008-04-16  Jakub Jelinek  <jakub@redhat.com>
16116
16117         PR c/35739
16118         * tree-nrv.c (tree_nrv): Don't optimize if result_type is GIMPLE
16119         reg type.
16120
16121         PR tree-optimization/35899
16122         * tree-inline.c (expand_call_inline): Use GIMPLE_STMT_OPERAND
16123         rather than TREE_OPERAND.
16124
16125 2008-04-16  Uros Bizjak  <ubizjak@gmail.com>
16126
16127         PR target/35944
16128         * config/i386/i386.md (fmodxf3): Copy operand 1 and operand 2 into
16129         temporary registers.  Change operand predicate to general_operand.
16130         (remainderxf3): Ditto.
16131
16132 2008-04-16  Richard Guenther  <rguenther@suse.de>
16133
16134         * Makefile.in (tree-affine.o): Add $(FLAGS_H) dependency.
16135         * tree-affine.c (aff_combination_expand): Look through some
16136         conversions.
16137
16138 2008-04-15  Doug Kwan  <dougkwan@google.com>
16139
16140         * dwarf2asm.c (dw2_assemble_integer): Cast to unsigned HOST_WIDE_INT
16141         for hex printing.
16142         * tree-pretty-print.c (dump_generic_node): Ditto.
16143         * final.c (output_addr_const): Ditto.
16144         * dwarf2out.c (output_cfi): Ditto.
16145         * c-pretty-print.c (pp_c_integer_constant): Ditto.
16146         * print-rtl.c (print_rtx): Ditto.
16147         * print-tree.c (print_node_brief, print_node): Ditto.
16148         * c-common.c (match_case_to_enum_1): Ditto.
16149         * sched-vis.c (print_value): Ditto.
16150         * config/i386/i386.c (print_operand): Cast to long unsigned int
16151         for hex printing.
16152
16153 2008-04-15  Danny Smith  <dannysmith@users.sourceforge.net>
16154         * libgcc2.c [L_trampoline]: Remove  unnecessary prototype for
16155         MS Windows VirtualProtect function.
16156
16157 2008-04-15  Jan Hubicka  <jh@suse.cz>
16158
16159         * gengtype.c (write_root): Param_is argument is OK.
16160         * expr.c (expand_expr_real_1): Update call of get_exception_*.
16161         * function.h: Include varray.h
16162         (rtl_eh): New stucture based on except.c one.
16163         (call_site_record): New forward declaration and vector type.
16164         * calls.c (emit_call_1): Do not call
16165         note_current_region_may_contain_throw.
16166         * except.c (eh_status): Remove cur_region, try_region since they are
16167         unused.
16168         Move filter, exc_ptr, ttype_data, ehspec_data, action_record_data and
16169         exception_handler_label_map, ehr_stackadj, ehr_handler, ehr_label,
16170         sjlj_fc, sjlj_exit_after to rth_eh in function.h.
16171         Remove call_site_data_used, call_site_data_size.
16172         Turn call_site_record into vector in function.h.
16173         (note_current_region_may_contain_throw): Remove.
16174         (get_exception_pointer, get_exception_filter): Do not take struct
16175         function argument; update.
16176         (add_ehl_entry, find_exception_handler_labels, ehspec_filter_hash,
16177         add_ttypes_entry, add_ehspec_entry, assign_filter_values,
16178         build_post_landing_pads, dw2_build_landing_pads,
16179         sjlj_assign_call_site_values, sjlj_mark_call_sites,
16180         sjlj_emit_function_enter, sjlj_emit_function_enter,
16181         sjlj_emit_function_exit, sjlj_emit_dispatch_table,
16182         sjlj_build_landing_pads, finish_eh_generation,
16183         remove_exception_handler_label, remove_eh_handler,
16184         maybe_remove_eh_handler, add_reachable_handler,
16185         reachable_handlers, expand_builtin_eh_return, expand_eh_return,
16186         add_action_record, collect_one_action_chain, add_call_site,
16187         convert_to_eh_region_ranges, sjlj_size_of_call_site_table,
16188         sjlj_output_call_site_table, output_function_exception_table,
16189         * except.h (note_current_region_may_contain_throw): Remove
16190         (get_exception_pointer, get_exception_filter): Do not take struct
16191         function argument.
16192         * Makefile.in (GTFILES): Put varargs before struct function.
16193
16194 2008-04-15  Eric Botcazou  <ebotcazou@adacore.com>
16195
16196         * tree-ssa-structalias.c (get_constraint_for_component_ref): Do not
16197         punt for STRING_CST.
16198         (get_constraint_for): Deal with STRING_CST here instead.
16199
16200 2008-04-15  Richard Guenther  <rguenther@suse.de>
16201
16202         * tree-ssa-propagate.c (substitute_and_fold): Substitute
16203         statements in a basic-block with a backward walk.  Do not
16204         substitute into dead statements but instead remove those.
16205
16206 2008-04-15  Richard Guenther  <rguenther@suse.de>
16207
16208         * params.def (PARAM_MAX_FIELDS_FOR_FIELD_SENSITIVE): Set default
16209         to zero, thus disable creation of SFTs.
16210
16211 2008-04-15  Eric Botcazou  <ebotcazou@adacore.com>
16212
16213         * tree-predcom.c (suitable_reference_p): Return false if the
16214         reference can throw.
16215
16216 2008-04-15  Jakub Jelinek  <jakub@redhat.com>
16217
16218         PR c/35751
16219         * c-decl.c (finish_decl): If extern or static var has variable
16220         size, set TREE_TYPE (decl) to error_mark_node.
16221
16222 2008-04-15  Rafael Espíndola  <espindola@google.com>
16223
16224         * fold-const.c (tree_call_nonnegative_warnv_p): Remove local
16225         variable arg1.
16226
16227 2008-04-15  Richard Guenther  <rguenther@suse.de>
16228
16229         * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
16230         * tree-ssa-sccvn.c (vn_reference_lookup): New parameter maywalk.
16231         (visit_reference_op_load): Do walk vuse-vdef chains on
16232         vn_reference_lookup.
16233         (visit_reference_op_store): But do not here.
16234         * tree-vn.c (vn_lookup): Do not walk vuse-vdef chains on
16235         vn_reference_lookup.
16236         (vn_lookup_with_vuses): But do so here.
16237
16238 2008-04-14  Ian Lance Taylor  <iant@google.com>
16239
16240         * fold-const.c (fold_overflow_warning): Remove assertion.
16241
16242 2008-04-15  Ben Elliston  <bje@au.ibm.com>
16243
16244         * config/alpha/alpha.c (alpha_initialize_trampoline): Remove temp,
16245         temp1 local variables.
16246
16247 2008-04-15  Zuxy Meng  <zuxy.meng@gmail.com>
16248
16249         PR target/35661
16250         * config/i386/winnt.c (i386_pe_section_type_flags): Mark
16251         ".text.unlikely" section as executable.
16252
16253 2008-04-14  James E. Wilson  <wilson@tuliptree.org>
16254
16255         * config/ia64/ia64.c (rtx_needs_barrier): Handle
16256         UNSPEC_FR_SQRT_RECIP_APPROX_RES.
16257         * config/ia64/ia64.c (UNSPEC_FR_SQRT_RECIP_APPROX_RES): Define.
16258         (divsi3_internal, divdi3_internal_lat, divdi3_internal_thr,
16259         divsf3_internal_lat, sqrt_approx, sqrtsf2_internal_thr,
16260         divdf3_internal_lat, sqrtdf2_internal_thr, divxf3_internal_lat,
16261         divxf3_internal_thr, sqrtxf2_internal_thr, recip_approx): Use it.
16262
16263 2008-04-14  Ian Lance Taylor  <iant@google.com>
16264
16265         * flags.h (POINTER_TYPE_OVERFLOW_UNDEFINED): Define.
16266         * fold-const.c (fold_comparison): If appropriate, test
16267         POINTER_TYPE_OVERFLOW_UNDEFINED, and issue an overflow warning.
16268         (fold_binary): Test POINTER_TYPE_OVERFLOW_UNDEFINED when
16269         reassociating a pointer type.
16270         * doc/invoke.texi (Optimize Options): Document that
16271         -fstrict-overflow applies to pointer wraparound.
16272
16273 2008-04-13  Jan Hubicka  <jh@suse.cz>
16274
16275         * m32.c (m32c_pushm_popm): Use crtl->retrun_rtx.
16276
16277 2008-04-12  Andrew Pinski  <pinskia@gmail.com>
16278
16279         * config/rs6000/rs6000.c (compute_save_world_info): Set lr_save_p if
16280         we are going to "save the world".
16281
16282 2008-04-13  Hans-Peter Nilsson  <hp@axis.com>
16283
16284         * config/cris/cris.md ("*andhi_lowpart_non_v32", "*andhi_lowpart_v32")
16285         ("*andqi_lowpart_non_v32", "*andqi_lowpart_v32"): Use "+" for the
16286         operand 0 constraint, not "=".
16287
16288 2008-04-11  James E. Wilson  <wilson@tuliptree.org>
16289
16290         * system.h: Change ASSERT_CHECKING to ENABLE_ASSERT_CHECKING.
16291
16292 2008-04-11  H.J. Lu  <hongjiu.lu@intel.com>
16293
16294         * dse.c (record_store): Use HOST_BITS_PER_WIDE_INT instead
16295         of size of positions_needed * CHAR_BIT.
16296
16297 2008-04-11  H.J. Lu  <hongjiu.lu@intel.com>
16298
16299         PR middle-end/35897
16300         * dse.c (store_info): Change positions_needed to unsigned
16301         HOST_WIDE_INT.
16302         (lowpart_bitmask): New.
16303         (record_store): Cast to unsigned HOST_WIDE_INT for
16304         positions_needed.  Assert width <= size of positions_needed *
16305         CHAR_BIT.  Call lowpart_bitmask to initialize positions_needed.
16306         (check_mem_read_rtx): Use unsigned HOST_WIDE_INT on mask.  Call
16307         lowpart_bitmask to set mask.
16308
16309 2008-04-11  Bernd Schmidt  <bernd.schmidt@analog.com>
16310
16311         * config/bfin/constraints.md: New file.
16312         * config/bfin/bfin.md: Include it.
16313         (adddi3): Use satisfies_constraint functions instead of the old macros.
16314         * config/bfin/bfin.h (REG_CLASS_FROM_LETTER, CONSTRAINT_LEN,
16315         CONST_18UBIT_IMM_P, CONST_16BIT_IMM_P, CONST_16UBIT_IMM_P,
16316         CONST_7BIT_IMM_P, CONST_7NBIT_IMM_P, CONST_5UBIT_IMM_P,
16317         CONST_4BIT_IMM_P, CONST_4UBIT_IMM_P, CONST_3BIT_IMM_P,
16318         CONST_3UBIT_IMM_P, CONST_OK_FOR_K, CONST_OK_FOR_P, CONST_OK_FOR_M,
16319         CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER,
16320         EXTRA_CONSTRAINT): Delete.
16321         * config/bfin/predicates.md (highbits_operand, reg_or_7bit_operand,
16322         reg_or_neg7bit_operand): Use satisfies_constraint functions instead
16323         of the old macros.
16324         * config/bfin/bfin.c: Include "tm-constrs.h".
16325         (bfin_secondary_reload, split_load_immediate, bfin_rtx_costs):
16326         Use satisfies_constraint functions instead of the old macros.
16327         * doc/md.texi (Blackfin Constraints): Update file name reference.
16328
16329 2008-04-11  Richard Guenther  <rguenther@suse.de>
16330
16331         PR tree-optimization/35869
16332         * tree-vrp.c (execute_vrp): Move switch statement update after
16333         jump threading.  Schedule another cfg cleanup run.
16334
16335 2008-04-11  Volker Reichelt  <v.reichelt@netcologne.de>
16336
16337         PR c/35744
16338         * attribs.c (decl_attributes): Return early on errorneous node.
16339
16340 2008-04-10  Oleg Ryjkov  <olegr@google.com>
16341
16342         * tree.h (struct tree_base): Added a new flag default_def_flag.
16343         (SSA_NAME_IS_DEFAULT_DEF): Changed to use the new flag.
16344
16345 2008-04-11  Kaz Kojima  <kkojima@gcc.gnu.org>
16346
16347         * config.gcc (need_64bit_hwint): Need 64bit hwint for sh-*-*.
16348
16349 2008-04-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
16350
16351         PR target/35768
16352         * pa.md: Define mode iterator P.  Define mode attribute dwc.
16353         (dcacheflush): Update pattern to use iterator P and attribute dwc.
16354         (icacheflush): Likewise.
16355         * pa.h (INITIALIZE_TRAMPOLINE): Use dcacheflushsi/icacheflushsi if
16356         !TARGET_64BIT, and dcacheflushdi/icacheflushdi if TARGET_64BIT.
16357
16358 2008-04-11  Ben Elliston  <bje@au.ibm.com>
16359
16360         * config/spu/spu.c (spu_init_builtins): Mark builtins as nothrow.
16361
16362 2008-04-10  Rafael Espíndola  <espindola@google.com>
16363
16364         * tree-vrp.c (extract_range_from_binary_expr): Don't handle
16365         TRUTH_ANDIF_EXPR or TRUTH_ORIF_EXPR.
16366         (extract_range_from_expr): The same.
16367
16368 2008-04-10  Adam Nemet  <anemet@caviumnetworks.com>
16369
16370         * config/mips/mips.md (GPR2): New mode iterator.
16371         (seq): Add comment.
16372         (*seq_<mode>, *seq_<mode>_mips16, *sne_<mode>, *sgt<u>_<mode>,
16373         *sgt<u>_<mode>_mips16, *sge<u>_<mode>, *slt<u>_<mode>,
16374         *slt<u>_<mode>_mips16 *sle<u>_<mode>, *sle<u>_<mode>_mips16):
16375         Rewrite these to take two modes, the mode of comparison and the
16376         mode of the destination.
16377         * config/mips/mips.c (mips_expand_scc): Instead of having
16378         paradoxical subreg as destination, expand "narrowing" scc if mode
16379         of comparison is SI and target is requested in DI mode.
16380         (mips_emit_int_order_test): Update comment.  Make mode of
16381         comparison match CMP0 rather than TARGET.  When creating inverse
16382         target use mode of TARGET.
16383
16384 2008-04-10  Adam Nemet  <anemet@caviumnetworks.com>
16385
16386         * gcov-dump.c (tag_summary): Only print summaries for the first
16387         GCOV_COUNTERS_SUMMABLE counters.
16388
16389 2008-04-10  Uros Bizjak  <ubizjak@gmail.com>
16390
16391         * config/i386/i386.md (absneg): New code iterator.
16392         (absnegprefix): New code attribute.
16393         (<code><mode>2): Macroize expander from abs<mode>2 and neg<mode>2
16394         patterns using absneg code iterator.
16395         (<code>tf2): Macroize expander from abstf2 and negtf2 patterns
16396         using absneg code iterator.
16397         (*<code><mode>2_1): Macroize insn pattern from *abs<mode>2_1 and
16398         *neg<mode>2 patterns using absneg code iterator.
16399         (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
16400         *negextendsfdf2 patterns using absneg code iterator.
16401         (*<code>extendsfxf2): Macroize insn pattern from *absextendsfxf2 and
16402         *negextendsfxf2 patterns using absneg code iterator.
16403         (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
16404         *negextendsfdf2 patterns using absneg code iterator.
16405         * config/i386/sse.md (<code><mode>2): Macroize expander from
16406         abs<mode>2 and neg<mode>2 patterns using absneg code iterator.
16407
16408 2008-04-10  Andreas Krebbel  <krebbel1@de.ibm.com>
16409
16410         * config/s390/s390.h: Remove the remains of the recent search
16411         & replace action of current_function_outgoing_args_size.
16412
16413 2008-04-10  Ira Rosen  <irar@il.ibm.com>
16414
16415         PR tree-optimization/35821
16416         * tree-vect-transform.c (vect_create_data_ref_ptr): Add check that
16417         NEW_STMT_LIST is not NULL.
16418
16419 2008-04-09  David Edelsohn  <edelsohn@gnu.org>
16420
16421         PR libstdc++/35597
16422         * toplev.c (process_options): Remove -ffunction-sections debugging
16423         warning.
16424
16425 2008-04-09  Peter Bergner  <bergner@vnet.ibm.com>
16426
16427         PR middle-end/PR28690
16428         * explow.c (break_out_memory_refs): Use simplify_gen_binary rather
16429         than gen_rtx_fmt_ee to perform more canonicalizations.
16430
16431 2008-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
16432
16433         PR driver/35665
16434         * collect2.c (write_c_file): Don't wrap in "#ifdef __cplusplus".
16435
16436 2008-04-09  Richard Guenther  <rguenther@suse.de>
16437
16438         * tree-cfg.c (verify_stmt): Print complete bogus stmt.
16439         (dump_function_to_file): Dump function arguments with types.
16440
16441 2008-04-08  Richard Guenther  <rguenther@suse.de>
16442
16443         * fold-const.c (fold_widened_comparison): Do not allow
16444         sign-changes that change the result.
16445
16446 2008-04-08  Janis Johnson  <janis187@us.ibm.com>
16447
16448         PR target/35839
16449         * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle additional
16450         kinds of indirect references.
16451
16452 2008-04-08  David Edelsohn  <edelsohn@gnu.org>
16453
16454         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Update
16455         GNU Fortran language string.
16456
16457 2008-04-08  Rafael Espíndola  <espindola@google.com>
16458
16459         * fold-canst.c (tree_call_nonnegative_warnv_p): New.
16460         (tree_invalid_nonnegative_warnv_p): Use tree_call_nonnegative_warnv_p.
16461         * tree.h (tree_call_nonnegative_warnv_p): New.
16462
16463 2008-04-08  Jan Hubicka  <jh@suse.cz>
16464
16465         * function.c (free_after_compilation): Clear out regno_reg_rtx
16466         pointer.
16467
16468 2008-04-08  Peter Bergner  <bergner@vnet.ibm.com>
16469
16470         Revert
16471         2008-04-07  Peter Bergner  <bergner@vnet.ibm.com>
16472
16473         PR middle-end/PR28690
16474         * rtlanal.c: (commutative_operand_precedence): Give SYMBOL_REF's the
16475         same precedence as REG_POINTER and MEM_POINTER operands.
16476
16477 2008-04-08  Richard Guenther  <rguenther@suse.de>
16478
16479         PR middle-end/35834
16480         * tree-ssa-address.c (create_mem_ref): Use POINTER_PLUS_EXPR
16481         for adding index to base.
16482
16483 2008-04-08  Kai Tietz  <kai.tietz@onevision.com>
16484
16485         * config/i386/mingw32.h (ENABLE_EXECUTE_STACK): New.
16486         (MINGW_ENABLE_EXECUTE_STACK): New.
16487         (IN_LIBGCC2): For libgcc include windows.h file for
16488         function declarations.
16489
16490 2008-04-08  Hans-Peter Nilsson  <hp@axis.com>
16491
16492         * config/cris/cris.c (cris_address_cost): For a PLUS, swap tem1
16493         and tem2 if tem1 is not a REG or MULT.
16494
16495 2008-04-08  Jan Hubicka  <jh@suse.cz>
16496
16497         * function.h (incomming_args): Break out of struct function.
16498         (function_subsections): Break out of struct function.
16499         (rtl_data): Add args, subsections fields. Break out outgoing_args_size,
16500         return_rtx and hard_reg_initial_vals from struct function.
16501         Kill inl_max_label_num.
16502         (current_function_pops_args, current_function_args_info,
16503         current_function_args_size, current_function_args_size,
16504         current_function_pretend_args_size,
16505         current_function_outgoing_args_size,
16506         current_function_internal_arg_pointer, current_function_return_rtx):
16507         Kill compatibility accestor macros.
16508         * builtins.c (expand_builtin_apply_args_1): Update.
16509         (expand_builtin_next_arg): Update.
16510         * df-scan.c (df_get_call_refs): Update.
16511         * dbxout.c (dbxout_function_end): Update.
16512         * dwarf2out.c (dwarf2out_switch_text_section): Update.
16513         (output_line_info): Update.
16514         (secname_for_decl): Update.
16515         (dwarf2out_var_location): Update.
16516         * function.c (free_after_compilation): Update.
16517         (assign_parm_find_stack_rtl): Update.
16518         (assign_parms): Update.
16519         (expand_dummy_function_end): Update.
16520         (expand_function_end): Update.
16521         * calls.c (mem_overlaps_already_clobbered_arg_p): Update.
16522         (expand_call): Update.
16523         (emit_library_call_value_1): Update.
16524         (store_one_arg): Update.
16525         * varasm.c (initialize_cold_section_name): Update.
16526         (unlikely_text_section): Update.
16527         (unlikely_text_section_p): Update.
16528         (assemble_start_function): Update.
16529         (assemble_end_function): Update.
16530         (default_section_type_flags): Update.
16531         (switch_to_section): Update.
16532         * integrate.c (set_decl_abstract_flags): Update.
16533         (get_hard_reg_initial_val): Update.
16534         (has_hard_reg_initial_val): Update.
16535         (allocate_initial_values): Update.
16536         * resource.c (init_resource_info): Update.
16537         * config/alpha/alpha.c (NUM_ARGS): Update.
16538         (direct_return): Update.
16539         (alpha_va_start): Update.
16540         (alpha_sa_size): Update.
16541         (alpha_initial_elimination_offset): Update.
16542         (alpha_expand_prologue): Update.
16543         (alpha_start_function): Update.
16544         (alpha_expand_epilogue): Update.
16545         (unicosmk_initial_elimination_offset):
16546         * config/alpha/alpha.md (call expander): Update.
16547         * config/s390/s390.c (s390_register_info): Update.
16548         (s390_register_info): Update.
16549         (s390_frame_info): Update.
16550         (s390_initial_elimination_offset): Update.
16551         (s390_build_builtin_va_list): Update.
16552         (s390_va_start): Update.
16553         * config/spu/spu.c (direct_return): Update.
16554         (spu_expand_prologue): Update.
16555         (spu_initial_elimination_offset): Update.
16556         (spu_build_builtin_va_list): Update.
16557         (spu_va_start): Update.
16558         * config/sparc/sparc.c (sparc_init_modes): Update.
16559         (sparc_compute_frame_size): Update.
16560         (function_value): Update.
16561         * config/m32r/m32r.c (m32r_compute_frame_size): Update.
16562         * config/i386/i386.md (return expander): Update.
16563         * config/i386/i386.c (ix86_va_start): Update.
16564         (ix86_can_use_return_insn_p): Update.
16565         (ix86_compute_frame_layout): Update.
16566         (ix86_expand_epilogue): Update.
16567         * config/sh/sh.c (output_stack_adjust): Update.
16568         (calc_live_regs): Update.
16569         (sh_expand_prologue): Update.
16570         (sh_builtin_saveregs): Update.
16571         (sh_va_start): Update.
16572         (initial_elimination_offset): Update.
16573         (sh_allocate_initial_value): Update.
16574         (sh_function_ok_for_sibcall): Update.
16575         (sh_get_pr_initial_val): Update.
16576         * config/sh/sh.md (return expander): Update.
16577         * config/avr/avr.c (frame_pointer_required_p): UPdate.
16578         * config/crx/crx.c (crx_compute_frame): UPdate.
16579         (crx_initial_elimination_offset): UPdate.
16580         * config/xtensa/xtensa.c (compute_frame_size): Update
16581         (xtensa_builtin_saveregs): Update.
16582         (xtensa_va_start): Update.
16583         (order_regs_for_local_alloc): Update.
16584         * config/stormy16/stormy16.c (xstormy16_compute_stack_layout): Update.
16585         (xstormy16_expand_builtin_va_start): Update.
16586         * config/fr30/fr30.c (fr30_compute_frame_size): Update.
16587         * config/m68hc11/m68hc11.md (return expanders): Update.
16588         * config/m68hc11/m68hc11.c (expand_prologue): Update.
16589         (expand_epilogue): Update.
16590         * config/cris/cris.c (cris_initial_frame_pointer_offset): Update.
16591         (cris_simple_epilogue): Update.
16592         (cris_expand_prologue): Update.
16593         (cris_expand_epilogue): Update.
16594         * config/iq2000/iq2000.c (iq2000_va_start): Update.
16595         (compute_frame_size): Update.
16596         * config/mt/mt.c (mt_compute_frame_size): Update.
16597         * config/mn10300/mn10300.c (expand_prologue): Update.
16598         (expand_epilogue): Update.
16599         (initial_offset): Update.
16600         (mn10300_builtin_saveregs):
16601         * config/mn10300/mn10300.md (return expander): Update.
16602         * config/ia64/ia64.c (ia64_compute_frame_size): Update.
16603         (ia64_initial_elimination_offset): Update.
16604         (ia64_initial_elimination_offset): Update.
16605         (ia64_expand_prologue): Update.
16606         * config/m68k/m68k.md (return expander): Update.
16607         * config/rs6000/rs6000.c (rs6000_va_start): Update.
16608         (rs6000_stack_info): Update.
16609         * config/mcore/mcore.c (layout_mcore_frame): Update.
16610         (mcore_expand_prolog): Update.
16611         * config/arc/arc.c (arc_compute_frame_size): Update.
16612         * config/score/score3.c (score3_compute_frame_size): Update.
16613         * config/score/score7.c (score7_compute_frame_size): Update.
16614         * config/arm/arm.c (use_return_insn): Update.
16615         (thumb_find_work_register): Update.
16616         (arm_compute_save_reg_mask): Update.
16617         (arm_output_function_prologue): Update.
16618         (arm_output_epilogue): Update.
16619         (arm_size_return_regs): Update.
16620         (arm_get_frame_offsets): Update.
16621         (arm_expand_prologue): Update.
16622         (thumb_exit): Update.
16623         (thumb_unexpanded_epilogue): Update.
16624         (thumb1_output_function_prologue): Update.
16625         * config/pa/pa.md (return expander): Update.
16626         * config/pa/pa.c (compute_frame_size): Update.
16627         (hppa_builtin_saveregs): Update.
16628         * config/mips/mips.c (mips_va_start): Update.
16629         (mips16_build_function_stub): Update.
16630         (mips_compute_frame_info): Update.
16631         (mips_restore_gp): Update.
16632         (mips_output_function_prologue): Update.
16633         (mips_expand_prologue): Update.
16634         * config/v850/v850.c (compute_frame_size): Update.
16635         (expand_prologue): * config/mmix/mmix.c (along): update.
16636         (mmix_initial_elimination_offset): update.
16637         (mmix_reorg): update.
16638         (mmix_use_simple_return): update.
16639         (mmix_expand_prologue): update.
16640         (mmix_expand_epilogue): Update.
16641         * config/bfin/bfin.c (bfin_initial_elimination_offset): Update.
16642         (emit_link_insn): Update.
16643
16644 2008-04-08  Anatoly Sokolov <aesok@post.ru>
16645
16646         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Define
16647         __AVR_HAVE_EIJMP_EICALL__ macro if device have EIJMP and EICALL
16648         instructions.
16649         * config/avr/avr.c (avr_mcu_types): Set AVR31 architecture for
16650         atmega103 device.
16651
16652 2008-04-07  Jan Hubicka  <jh@suse.cz>
16653
16654         * function.h (rtl): Rename to x_rtl.
16655         (crtl): New define.
16656         (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
16657         frame_offset, stack_check_probe_note, arg_pointer_save_area,
16658         used_temp_slots avail_temp_slots, temp_slot_level,
16659         nonlocal_goto_handler_labels): Update accesstors.
16660         (rtl): New global variable.
16661         (struct function): Move some fileds to rtl_data.
16662         (get_arg_pointer_save_area): Update prototype.
16663         * builtins.c (expand_builtin_setjmp_receiver): Update call of
16664         get_arg_pointer_save_area.
16665         * expr.c (init_expr): Update
16666         * function.c (get_frame_size): Update
16667         (assign_stack_local): Update
16668         (expand_function_end): Update.
16669         (get_art_pointer_save_area): Update
16670         * function.h
16671         * emit-rtl.c (rtl): Declare.
16672         (regno_reg_rtx): Declare.
16673         (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
16674         Update.
16675         (gen_reg_rtx): Update.
16676         * varasm.c (n_deferred_constatns): Update accestor.
16677         (init_varasm_status): Do not allocate varasm_status.
16678         (force_const_mem, get_pool_size, output_constant_pool): Update.
16679         * stmt.c (force_label_rtx): Do not use x_ prefixes.
16680         (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
16681         * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Update.
16682         * sparc/sparc.h (INIT_EXPANDERS): Update.
16683         * ia64/ia64.h (INIT_EXPANDERS): Update.
16684
16685 2008-04-07  James E. Wilson  <wilson@tuliptree.org>
16686
16687         * reload.c (push_secondary_reload): Add missing break to for loop.
16688
16689 2008-04-07  Peter Bergner  <bergner@vnet.ibm.com>
16690
16691         PR middle-end/PR28690
16692         * rtlanal.c: Update copyright years.
16693         (commutative_operand_precedence): Give SYMBOL_REF's the same precedence
16694         as REG_POINTER and MEM_POINTER operands.
16695         * emit-rtl.c (gen_reg_rtx_and_attrs): New function.
16696         (set_reg_attrs_from_value): Call mark_reg_pointer as appropriate.
16697         * rtl.h (gen_reg_rtx_and_attrs): Add prototype for new function.
16698         * gcse.c: Update copyright years.
16699         (pre_delete): Call gen_reg_rtx_and_attrs.
16700         (hoist_code): Likewise.
16701         (build_store_vectors): Likewise.
16702         (delete_store): Likewise.
16703         * loop-invariant.c (move_invariant_reg): Likewise.
16704         Update copyright years.
16705
16706 2008-04-07  Uros Bizjak  <ubizjak@gmail.com>
16707
16708         * config/i386/i386.md ("*sse_prologue_save_insn"): Use braced output
16709         control string instead of quoted.
16710
16711 2008-04-07  Kenneth Zadeck  <zadeck@naturalbridge.com>
16712
16713         * doc/rtl.texi: Rewrite of subreg section.
16714
16715 2008-04-07  Kai Tietz  <kai.tietz@onevision.com>
16716
16717         PR/35842
16718         * config/i386/i386.c (legitimize_pic_address): Add treating
16719         of dllimport SYM_REF's.
16720         (legitimize_dllimport_symbol): Add prototype.
16721
16722 2008-04-07  Eric Botcazou  <ebotcazou@adacore.com>
16723
16724         * fold-const.c (fold) <ARRAY_REF>: New case.  Try to fold constant
16725         reference in constructor with non self-referential type.
16726
16727 2008-04-07  Eric Botcazou  <ebotcazou@adacore.com>
16728
16729         Removal of Return with Depressed Stack Pointer support
16730         * tree.h (TYPE_RETURNS_STACK_DEPRESSED): Delete.
16731         (ECF_SP_DEPRESSED): Likewise.
16732         (ECF_LIBCALL_BLOCK, ECF_NOVOPS): Adjust.
16733         * calls.c (emit_call_1): Do not test ECF_SP_DEPRESSED.
16734         (flags_from_decl_or_type): Do not test TYPE_RETURNS_STACK_DEPRESSED.
16735         (expand_call): Do not test ECF_SP_DEPRESSED.
16736         * dse.c (dse_step0): Do not test TYPE_RETURNS_STACK_DEPRESSED.
16737         * function.c (keep_stack_depressed): Delete.
16738         (handle_epilogue_set): Likewise.
16739         (update_epilogue_consts): Likewise.
16740         (emit_equiv_load): Likewise.
16741         (thread_prologue_and_epilogue_insns): Remove support for Return with
16742         Depressed Stack Pointer.
16743         * print-tree.c (print_node): Do not test TYPE_RETURNS_STACK_DEPRESSED.
16744
16745 2008-04-06  Richard Guenther  <rguenther@suse.de>
16746
16747         PR tree-optimization/35400
16748         * tree-vrp.c (vrp_evaluate_conditional): Only query value-range
16749         information from SSA_NAMEs.
16750
16751 2008-04-06  Anatoly Sokolov <aesok@post.ru>
16752
16753         * config/avr/avr.h (avr_mega_p): Remove declaration.
16754         (AVR_MEGA): Remove macro.
16755         * config/avr/avr.c (avr_mega_p): Remove variable.
16756         (avr_override_options): Remove inicializion of avr_mega_p.
16757         Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
16758         (print_operand): Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
16759         (avr_jump_mode): (Ditto.).
16760         (avr_output_progmem_section_asm_op): (Ditto.).
16761         (avr_asm_init_sections): (Ditto.).
16762         (avr_asm_init_sections): (Ditto.).
16763         (avr_rtx_costs): (Ditto.).
16764         * config/avr/avr.md: (Ditto.).
16765         * config/avr/avr.h: Use '__AVR_HAVE_JMP_CALL__' instead of
16766         '__AVR_MEGA__'.
16767
16768 2008-04-06  Richard Guenther  <rguenther@suse.de>
16769
16770         PR tree-optimization/35842
16771         * tree-ssa-address.c (fixed_address_object_p): Adjust to match
16772         is_gimple_invariant_address.
16773
16774 2008-04-06  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
16775
16776         * gcc.c (default_compilers): Sync Fortran extensions list with
16777         that in fortran/lang-specs.h.
16778         * doc/invoke.texi: Likewise.
16779         * dbxout.c (get_lang_number): Use "GNU Fortran" in "GNU F95".
16780         * dwarf2out.c (gen_compile_unit_die): Likewise.
16781
16782 2008-04-06  Tom G. Christensen  <tgc@jupiterrise.com>
16783
16784         * gthr-posix95.h (__gthread_cond_wait_recursive): Add missing &.
16785
16786 2008-04-05  Uros Bizjak  <ubizjak@gmail.com>
16787
16788         PR target/12329
16789         * config/i386/i386.c (ix86_function_regparm): Error if regparm(3)
16790         attribute is used for nested functions.
16791
16792 2008-04-05  Jan Hubicka  <jh@suse.cz>
16793
16794         * emit-rtl.c (init_emit): xcalloc regno_pointer_align.
16795
16796         * tree-dump.c (dump_enable_all): Remove prototype; do not accept
16797         letter argument.
16798         (dump_files): Update.
16799         (enable_rtl_dump_file): Do not accept letter argument.
16800         * tree-pass.h (dump_file_info): Remove letter argument.
16801         * toplev.c (decode_d_option): Update -da handling.
16802         * toplev.h (enable_rtl_dump_file): Update prototype.
16803         * passes.c (register_one_dump_file): Do not accept IPA argument; work
16804         it out based on pass type.
16805         (register_dump_files_1): Likewise.
16806         (init_optimization_passes): Update register_one_dump_file calls.
16807         (execute_one_pass): Sanity check that IPA passes are called at IPA
16808         level and RTL passes at RTL level.
16809         (execute_pass_list): IPA pass can not be after or subpass of
16810         GIMPLE/RTL pass.
16811         (execute_ipa_pass_list): Handle IPA subpasses of IPA subpasses and
16812         disallov RTL subpasses of IPA subpasses.
16813
16814 2008-04-05  Ben Elliston  <bje@au.ibm.com>
16815
16816         * tree-cfg.c (need_fake_edge_p): Return false for calls to
16817         builtins that return exactly once and do not throw. Cache call to
16818         call_expr_flags.
16819
16820 2008-04-04 Andy Hutchinson <hutchinsonandy@aim.com>
16821
16822         PR rtl-optimization/34916
16823         PR middle-end/35519
16824         * combine.c (create_log_links): Do not create duplicate LOG_LINKS
16825         between instruction pairs.
16826
16827 2008-04-04  Naveen.H.S  <naveen.hs@kpitcummins.com>
16828
16829         * doc/invoke.texi: Document -mbitops for SH.
16830         * config/sh/constraints.md (K03, K12, Sbv, Sbw): New constraints.
16831         * config/sh/predicates.md (bitwise_memory_operand): New predicate.
16832         * config/sh/sh.c (print_operand): Add %t operand code.
16833         * config/sh/sh.h (GO_IF_LEGITIMATE_INDEX): Add condition for SH2A.
16834         * config/sh/sh.md (*iorsi3_compact): Fix condition for SH2A.
16835         (extendqisi2_compact): Add the alternative for SH2A 4-byte mov.b.
16836         (extendqihi2): Likewise.
16837         (movqi_i): Likewise.
16838         (insv): Use bset, bclr and bst instructions for SH2A if possible.
16839         (extv): Use bld instruction for SH2A if possible.
16840         (extzv): Likewise.
16841         (bclr_m2a, bclrmem_m2a, bset_m2a, bsetmem_m2a, bst_m2a, bld_m2a,
16842         bldsign_m2a, bld_reg, *bld_regqi, band_m2a, bandreg_m2a,
16843         bor_m2a, borreg_m2a, bxor_m2a, bxorreg_m2a): New insns.
16844         (bset.b, bclr.b): Define peepholes.
16845         * config/sh/sh.opt (mbitops): New option.
16846
16847 2008-04-04  Janis Johnson  <janis187@us.ibm.com>
16848
16849         PR target/35620
16850         * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle indirect ref
16851         and view convert expression.
16852
16853 2008-04-04  Jakub Jelinek  <jakub@redhat.com>
16854
16855         PR target/35364
16856         * tree-cfg.c (remove_useless_stmts_1): Handle OMP_* containers.
16857
16858 2008-04-04  H.J. Lu  <hongjiu.lu@intel.com>
16859
16860         * config.gcc (extra_headers): Add wmmintrin.h for x86 and x86-64.
16861
16862         * config/i386/cpuid.h (bit_AES): New.
16863         (bit_PCLMUL): Likewise.
16864
16865         * config/i386/i386.c (pta_flags): Add PTA_AES and PTA_PCLMUL.
16866         (override_options): Handle PTA_AES and PTA_PCLMUL.  Enable
16867         SSE2 if AES or PCLMUL is enabled.
16868         (ix86_builtins): Add IX86_BUILTIN_AESENC128,
16869         IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
16870         IX86_BUILTIN_AESDECLAST128, IX86_BUILTIN_AESIMC128,
16871         IX86_BUILTIN_AESKEYGENASSIST128 and IX86_BUILTIN_PCLMULQDQ128.
16872         (bdesc_sse_3arg): Add IX86_BUILTIN_PCLMULQDQ128.
16873         (bdesc_2arg): Add IX86_BUILTIN_AESENC128,
16874         IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
16875         IX86_BUILTIN_AESDECLAST128 and IX86_BUILTIN_AESKEYGENASSIST128.
16876         (bdesc_1arg): Add IX86_BUILTIN_AESIMC128.
16877         (ix86_init_mmx_sse_builtins): Define __builtin_ia32_aesenc128,
16878         __builtin_ia32_aesenclast128, __builtin_ia32_aesdec128,
16879         __builtin_ia32_aesdeclast128,__builtin_ia32_aesimc128,
16880         __builtin_ia32_aeskeygenassist128 and
16881         __builtin_ia32_pclmulqdq128.
16882         * config/i386/i386.c (ix86_expand_binop_imm_builtin): New.
16883         (ix86_expand_builtin): Use it for IX86_BUILTIN_PSLLDQI128 and
16884         IX86_BUILTIN_PSRLDQI128.  Handle IX86_BUILTIN_AESKEYGENASSIST128.
16885
16886         * config/i386/i386.h (TARGET_AES): New.
16887         (TARGET_PCLMUL): Likewise.
16888         (TARGET_CPU_CPP_BUILTINS): Handle TARGET_AES and TARGET_PCLMUL.
16889
16890         * config/i386/i386.md (UNSPEC_AESENC): New.
16891         (UNSPEC_AESENCLAST): Likewise.
16892         (UNSPEC_AESDEC): Likewise.
16893         (UNSPEC_AESDECLAST): Likewise.
16894         (UNSPEC_AESIMC): Likewise.
16895         (UNSPEC_AESKEYGENASSIST): Likewise.
16896         (UNSPEC_PCLMUL): Likewise.
16897
16898         * config/i386/i386.opt (maes): New.
16899         (mpclmul): Likewise.
16900
16901         * config/i386/sse.md (aesenc): New pattern.
16902         (aesenclast): Likewise.
16903         (aesdec): Likewise.
16904         (aesdeclast): Likewise.
16905         (aesimc): Likewise.
16906         (aeskeygenassist): Likewise.
16907         (pclmulqdq): Likewise.
16908
16909         * config/i386/wmmintrin.h: New.
16910
16911         * doc/extend.texi: Document AES and PCLMUL built-in function.
16912
16913         * doc/invoke.texi: Document -maes and -mpclmul.
16914
16915 2008-04-04  Paolo Bonzini  <bonzini@gnu.org>
16916
16917         * function.c (free_after_parsing): Replace with
16918         cxx_push_function_context from C++ front-end.
16919         (allocate_struct_function): Don't call langhook.
16920         * langhooks.h (struct lang_hooks_for_functions): Delete.
16921         (struct lang_hooks): Add back missing_noreturn_ok_p here, delete
16922         member "function".
16923         * langhooks-def.h (LANG_HOOKS_MISSING_NORETURN_OK_P): Add.
16924         (LANG_HOOKS_FUNCTION_INIT, LANG_HOOKS_FUNCTION_FINAL,
16925         LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P,
16926         LANG_HOOKS_FUNCTION_INITIALIZER): Delete.
16927         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_MISSING_NORETURN_OK_P,
16928         remove LANG_HOOKS_FUNCTION_INITIALIZER.
16929         * tree-cfg.c: Adjust call to missing_noreturn_ok_p langhook.
16930
16931         * c-objc-common.h (LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P):
16932         Rename to LANG_HOOKS_MISSING_NORETURN_OK_P.
16933
16934 2008-04-04  Jakub Jelinek  <jakub@redhat.com>
16935
16936         PR c/35440
16937         * c-pretty-print.c (pp_c_initializer_list): Handle CONSTRUCTOR
16938         for all types.
16939
16940 2008-04-04  Richard Guenther  <rguenther@suse.de>
16941
16942         PR middle-end/35823
16943         * fold-const.c (optimize_minmax_comparison): Use the correct
16944         type for the constant in the simplified comparison.
16945
16946 2008-04-04  Zuxy Meng <zuxy.meng@gmail.com>
16947
16948         * config/i386/driver-i386.c (describe_cache): Add l2_sizekb argument.
16949         Pass L2 size as "--param l2-cache-size" to the compiler.
16950         (decode_l2_cache): New function to decode L2 cache parameters using
16951         0x8000006 extended cpuid function.
16952         (detect_caches_amd): Determine parameters of L2 cache using
16953         decode_l2_caches function.
16954         (decode_caches_intel): Decode L2 cache parameters.
16955         (detect_caches_intel): Determine L2 cache parameters using
16956         decode_caches_intel and decode_l2_caches functions.
16957
16958 2008-04-03  Bob Wilson  <bob.wilson@acm.org>
16959
16960         * config/xtensa/xtensa.c (xtensa_secondary_reload_class): Use a
16961         secondary input reload for subword loads from the constant pool.
16962
16963 2008-04-03  Janis Johnson  <janis187@us.ibm.com>
16964
16965         PR target/35713
16966         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use integer
16967           constants of the appropriate size for runtime calculations.
16968
16969         PR c/35712
16970         * dfp.c (decimal_from_decnumber): Retain trailing zeroes for
16971           decimal-float literal constant zero.
16972
16973 2008-04-03  Jakub Jelinek  <jakub@redhat.com>
16974
16975         PR c/35738
16976         * c-parser.c (c_parser_omp_atomic): Call
16977         default_function_array_conversion on the RHS.
16978
16979         PR middle-end/35818
16980         * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: Don't
16981         call is_variable_sized if decl has incomplete type.
16982
16983 2008-04-03  H.J. Lu  <hongjiu.lu@intel.com>
16984
16985         * config/i386/i386-protos.h (ix86_aligned_p): Removed.
16986
16987 2008-04-03  Adam Nemet  <anemet@caviumnetworks.com>
16988
16989         * config/mips/mips.md (any_gt, any_ge, any_lt, any_le): New code
16990         iterators.
16991         (u): Add attribute values for gt, gtu, ge, geu, lt, ltu, le and leu.
16992         (sgt<u>): Merge sgt and sgtu into new expander.
16993         (sgt, sgtu): Remove expanders.
16994         (*sgt<u>_<mode>): Merge *sgt_<mode> and *sgtu_<mode> into new pattern.
16995         (*sgt_<mode>, *sgtu_<mode>): Remove patterns.
16996         (*sgt<u>_<mode>_mips16): Merge *sgt_<mode>_mips16 and
16997         *sgtu_<mode>_mips16 into new pattern.
16998         (*sgt_<mode>_mips16, *sgtu_<mode>_mips16): Remove patterns.
16999         (sge<u>): Merge sge and sgeu into new expander.
17000         (sge, sgeu): Remove expanders.
17001         (*sge<u>_<mode>): Merge *sge_<mode> and second *sge_<mode> into
17002         new pattern.
17003         (*sge_<mode>, second *sge_<mode>): Remove patterns.
17004         (slt<u>): Merge slt and sltu into new expander.
17005         (slt, sltu): Remove expanders.
17006         (*slt<u>_<mode>): Merge *slt_<mode> and *sltu_<mode> into new pattern.
17007         (*slt_<mode>, *sltu_<mode>): Remove patterns.
17008         (*slt<u>_<mode>_mips16): Merge *slt_<mode>_mips16 and
17009         *sltu_<mode>_mips16 into new pattern.
17010         (*slt_<mode>_mips16, *sltu_<mode>_mips16): Remove patterns.
17011         (sle<u>): Merge sle and sleu into new expander.
17012         (sle, sleu): Remove expanders.
17013         (*sle<u>_<mode>): Merge *sle_<mode> and *sleu_<mode> into new pattern.
17014         (*sle_<mode>, *sleu_<mode>): Remove patterns.
17015         (*sle<u>_<mode>_mips16): Merge *sle_<mode>_mips16 and
17016         *sleu_<mode>_mips16 into new pattern.
17017         (*sle_<mode>_mips16, *sleu_<mode>_mips16): Remove patterns.
17018
17019 2008-04-03  Jan Hubicka  <jh@suse.cz>
17020
17021         PR tree-optimization/35795
17022         * alpha/alpha.c (alpha_output_mi_thunk_osf): Free after compilation.
17023         * sparc/sparc.c (sparc_output_mi_thunk): Likewise.
17024         * ia64/ia64.c (ia64_output_mi_thunk): Likewise.
17025         * m68k/m68k.c (m68k_output_mi_thunk): Likewise.
17026         * score/score3.c (score3_output_mi_thunk): Likewise.
17027         * score/score7.c (score7_output_mi_thunk): Likewise.
17028         * mips/mips.c (mips_output_mi_thunk): Likewise.
17029
17030 2008-04-03  Richard Guenther  <rguenther@suse.de>
17031
17032         * tree-vrp.c (extract_range_from_unary_expr): Handle all
17033         conversions.  Simplify code.
17034
17035 2008-04-03  Kaz Kojima  <kkojima@gcc.gnu.org>
17036
17037         * config/sh/sh.c (sh_output_mi_thunk): Free cfun.
17038
17039 2008-04-03  Tom Tromey  <tromey@redhat.com>
17040             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17041
17042         * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
17043         * config/bfin/t-bfin-linux (generated_files): Add
17044         linux-sysroot-suffix.h.
17045         * doc/install.texi (Prerequisites): Require make 3.80.
17046         * doc/sourcebuild.texi (Front End Directory): Document new
17047         variable.
17048         * Makefile.in (generated_files): New variable.
17049         (ALL_HOST_OBJS): New variable.
17050         ($(ALL_HOST_OBJS)): New target.
17051
17052 2008-04-03  Paolo Bonzini  <bonzini@gnu.org>
17053
17054         * tree-inline.c (copy_generic_body, copy_decl_no_change): Export.
17055         (remap_block): Call id->transform_lang_insert_block instead
17056         of langhook.
17057         (optimize_inline_calls, unsave_expr_now, tree_function_versioning):
17058         Set id.transform_lang_insert_block to NULL.
17059         (clone_body): Move to cp/optimize.c
17060         * tree-inline.h (struct copy_body_data): Change
17061         transform_lang_insert_block to function pointer.
17062         (copy_generic_body, copy_decl_no_change): Export.
17063         * langhooks.h (struct lang_hooks_for_decls): Kill insert_block.
17064         * langhooks-def.h (LANG_HOOKS_INSERT_BLOCK): Kill.
17065         (LANG_HOOKS_DECLS): Remove LANG_HOOKS_INSERT_BLOCK.
17066
17067         * c-tree.h (insert_block): Kill.
17068         * c-decl.c (insert_block): Kill.
17069
17070 2008-04-03  Paolo Bonzini  <bonzini@gnu.org>
17071
17072         * c-objc-common.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
17073         LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
17074         * c-tree.h (c_push_function_context, c_pop_function_context): Remove
17075         argument.
17076         * c-decl.c (c_push_function_context, c_pop_function_context): Remove
17077         argument, call {push,pop}_function_context from here.
17078         * c-parser.c: Use c_{push,pop}_function_context.
17079
17080         * function.c (push_function_context_to): Move meat ...
17081         (push_function_context): ... here.  Simplify.
17082         * function.c (pop_function_context_from): Move meat ...
17083         (pop_function_context): ... here.  Simplify.
17084         * langhooks.h (struct lang_hooks_for_functions): Remove enter_nested,
17085         leave_nested).
17086         * langhooks-def.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
17087         LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
17088         (LANG_HOOKS_FUNCTION_INITIALIZER): Delete them from here.
17089         * tree.h (push_function_context_to, pop_function_context_from): Remove.
17090
17091 2008-04-03  Ben Elliston  <bje@au.ibm.com>
17092
17093         * expmed.c (extract_force_align_mem_bit_field): Remove.
17094
17095 2008-04-03  Richard Guenther  <rguenther@suse.de>
17096
17097         PR middle-end/35800
17098         * expr.h (try_casesi): Adjust prototype.
17099         * expr.c (try_casesi): Take fallback label as extra parameter.
17100         Use that for gen_casesi if default_label is NULL.
17101         * stmt.c (expand_case): Pass fallback label to try_casesi,
17102         make sure to fill gaps with a fallback label if default_label
17103         is not present.
17104
17105 2008-04-03  Dominique d'Humières <dominiq@lps.ens.fr>
17106
17107         PR target/35801
17108         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Free cfun.
17109
17110 2008-04-03  Ben Elliston  <bje@au.ibm.com>
17111
17112         * expmed.c (extract_split_bit_field): Remove if (0) code.
17113         * tree-ssa-structalias.c (do_sd_constraint): Likewise.
17114         (do_ds_constraint): Likewise.
17115
17116 2008-04-02  Joseph Myers  <joseph@codesourcery.com>
17117
17118         * doc/cppopts.texi (-dU): Document.
17119         * c-common.h (flag_dump_macros): Update comment.
17120         * c-opts.c (handle_OPT_d): Handle -dU.
17121         * c-ppoutput.c (macro_queue, define_queue, undef_queue,
17122         dump_queued_macros, cb_used_define, cb_used_undef): New.
17123         (init_pp_output): Handle -dU.
17124         (cb_line_change): Call dump_queued_macros.
17125         * toplev.c (decode_d_option): Accept -dU as preprocessor option.
17126
17127 2008-04-02  Anatoly Sokolov <aesok@post.ru>
17128
17129         * config/avr/predicates.md (io_address_operand): New predicate.
17130         * config/avr/avr-protos.h (avr_io_address_p): Remove declaration.
17131         * config/avr/avr.c (avr_io_address_p): Remove function.
17132         (out_movqi_r_mr): Use 'io_address_operand' predicate instead of
17133         'avr_io_address_p' function.
17134         (out_movhi_r_mr): (Ditto.).
17135         (out_movqi_mr_r): (Ditto.).
17136         (out_movhi_mr_r): (Ditto.).
17137         (avr_address_cost): (Ditto.).
17138
17139 2008-04-02  Uros Bizjak  <ubizjak@gmail.com>
17140
17141         * config/i386/i386.md (*float<SSEMODEI24:mode><X87MODEF:mode>2_1):
17142         Emit gen_floatdi<X87MODEF:mode>2_i387_with_xmm for DImode values
17143         in 32bit mode when XMM registers are available to avoid store
17144         forwarding stalls.
17145         (floatdi<X87MODEF:mode>2_i387_with_xmm): New insn pattern and
17146         corresponding post-reload splitters.
17147
17148 2008-04-02  H.J. Lu  <hongjiu.lu@intel.com>
17149
17150         * config/i386/i386.c (bdesc_sse_3arg): Add __builtin_ia32_shufps
17151         and __builtin_ia32_shufpd.  Provide __builtin_ia32_roundsd and
17152         __builtin_ia32_roundss.
17153         (ix86_init_mmx_sse_builtins): Remove __builtin_ia32_shufps,
17154         __builtin_ia32_shufpd, __builtin_ia32_roundsd and
17155         __builtin_ia32_roundss.
17156         (ix86_expand_builtin): Don't handle IX86_BUILTIN_SHUFPS and
17157         IX86_BUILTIN_SHUFPD here.
17158
17159 2008-04-02  H.J. Lu  <hongjiu.lu@intel.com>
17160
17161         * config/i386/i386.md (plogic): New.
17162         (plogicprefix): Likewise.
17163
17164         * config/i386/mmx.md (mmx_<code><mode>3): New.
17165         (mmx_and<mode>3): Removed.
17166         (mmx_ior<mode>3): Likewise.
17167         (mmx_xor<mode>3): Likewise.
17168
17169         * config/i386/sse.md (<code><mode>3): New.
17170         (*<code><mode>3): Likewise.
17171         (*<code><mode>3): Likewise.
17172         (<code><mode>3): Likewise.
17173         (*sse_<code><mode>3): Likewise.
17174         (*sse2_<code><mode>3): Likewise.
17175         (<code>tf3): Likewise.
17176         (*<code>tf3): Likewise.
17177         (and<mode>3): Likewise.
17178         (*and<mode>3): Likewise.
17179         (ior<mode>3): Removed.
17180         (*ior<mode>3): Likewise.
17181         (xor<mode>3): Likewise.
17182         (*xor<mode>3): Likewise.
17183         (*and<mode>3): Likewise.
17184         (*ior<mode>3): Likewise.
17185         (*xor<mode>3): Likewise.
17186         (and<mode>3): Likewise.
17187         (*sse_and<mode>3): Likewise.
17188         (*sse2_and<mode>3): Likewise.
17189         (andtf3): Likewise.
17190         (*andtf3): Likewise.
17191         (ior<mode>3): Likewise.
17192         (*sse_ior<mode>3): Likewise.
17193         (*sse2_ior<mode>3): Likewise.
17194         (iortf3): Likewise.
17195         (*iortf3): Likewise.
17196         (xor<mode>3): Likewise.
17197         (*sse_xor<mode>3): Likewise.
17198         (*sse2_xor<mode>3): Likewise.
17199         (xortf3): Likewise.
17200         (*xortf3): Likewise.
17201
17202 2008-04-02  Richard Guenther  <rguenther@suse.de>
17203
17204         PR tree-optimization/14495
17205         PR tree-optimization/34793
17206         * tree-vrp.c (struct switch_update): New structure.
17207         (to_remove_edges, to_update_switch_stmts): New VECs.
17208         (simplify_switch_using_ranges): New function.  Remove not taken
17209         case labels and edges.
17210         (simplify_stmt_using_ranges): Call it.
17211         (identify_jump_threads): Mark edges we have queued for removal
17212         so we don't thread them.
17213         (execute_vrp): Remove edges queued for removal, update SWITCH_STMT
17214         case label vector.
17215         * tree-cfg.c (group_case_labels): Deal with missing default label.
17216         (tree_verify_flow_info): Allow missing default label.
17217         * stmt.c (emit_case_bit_tests): Deal with NULL default_label.
17218         (emit_case_nodes): Likewise.
17219         (expand_case): Do not rely on the default label to be present.
17220         * expr.c (try_casesi): Deal with NULL default_label.
17221         (do_tablejump): Likewise.
17222
17223 2008-04-02  Richard Guenther  <rguenther@suse.de>
17224
17225         PR tree-optimization/14495
17226         * tree-vrp.c (vrp_visit_cond_stmt): Do not handle
17227         SWITCH_EXPR here ...
17228         (vrp_visit_switch_stmt): ... but here (new function).
17229         (find_case_label_index): New helper function.
17230         (vrp_visit_stmt): Dispatch to vrp_visit_switch_stmt.
17231
17232 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
17233
17234         * fwprop.c: Fix ISO-C99ism.
17235
17236 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
17237
17238         PR bootstrap/35752
17239         * Makefile.in (objdir): Set it here.
17240         * configure.ac: Not here.  Find dynamic linker characteristics.
17241         * exec-tool.in: Use them.
17242         * aclocal.m4: Regenerate.
17243         * configure: Regenerate.
17244
17245 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
17246
17247         * expr.c (expand_var): Delete it.
17248         * expr.h (expand_var): Delete prototype.
17249         * function.c (expand_function_start): Use expand_decl instead.
17250         * cfgexpand.c (expand_one_static_var, expand_one_var): Don't call
17251         langhook.
17252
17253 2008-04-02  Andy Hutchinson <hutchinsonamdy@aim.com>
17254
17255         PR rtl-optimization/35542
17256         * fwprop.c (forward_propagate_and_simplify): Replace
17257         loc_reg_mentioned_in_p with reg_mentioned_p.
17258
17259 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
17260
17261         PR rtl-optimization/35281
17262         * fwprop.c (PR_CAN_APPEAR, PR_HANDLE_MEM): New.
17263         (propagate_rtx_1): Handle PR_HANDLE_MEM.
17264         (propagate_rtx): Pass PR_HANDLE_MEM if appropriate.
17265         (varying_mem_p): Move above propagate_rtx.
17266         (all_uses_available_at): Do not check MEMs.
17267
17268 2008-04-02  Rafael Espíndola  <espindola@google.com>
17269
17270         * tree-vrp.c (extract_code_and_val_from_cond): Remove.
17271         (register_edge_assert_for_2): Split the cond argument.
17272         (register_edge_assert_for_1): Adjust for the change in
17273         register_edge_assert_for_2.
17274         (register_edge_assert_for): Split the cond argument.
17275         (find_switch_asserts): Adjust for the change in
17276         register_edge_assert_for.
17277
17278 2008-04-02  Kai Tietz  <kai.tietz@onevision.com>
17279
17280         * config.gcc: Add for x86_64-*-mingw* the t-crtfm to tbuild.
17281         * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Add 8 byte
17282         offsets for 64-bit mingw.
17283         * config/i386/i386.c (ix86_pass_by_reference): Correct calling
17284         abi for x86_64-pc-mingw.
17285
17286 2008-04-02  Richard Guenther  <rguenther@suse.de>
17287
17288         * tree-vrp.c (extract_range_from_assert): Make sure to not
17289         produce range min/max with TREE_OVERFOW set.
17290         If merging a anti-range and a range keep the anti-range if
17291         the range covers all values of the type.
17292         (register_edge_assert_for_2): Only allow sign-changing
17293         conversions in detecting canonical range checks.  Also
17294         register an assert for the unsigned name if useful.
17295
17296         PR tree-optimization/35787
17297         * tree-vrp.c (vrp_val_max): New function.
17298         (vrp_val_min): Likewise.
17299         (vrp_val_is_max): Move earlier, use vrp_val_{min,max}.
17300         (vrp_val_is_min): Likewise.
17301         (supports_overflow_infinity): Use vrp_val_{min,max}.
17302         (negative_overflow_infinity): Likewise.
17303         (positive_overflow_infinity): Likewise.
17304         (is_negative_overflow_infinity): Use vrp_val_is_{min,max}.
17305         (is_positive_overflow_infinity): Likewise.
17306         (is_overflow_infinity): Likewise.
17307         (avoid_overflow_infinity): Use vrp_val_{min,max} and
17308         vrp_val_is_{min,max}.
17309         (set_and_canonicalize_value_range): Canonicalize anti-ranges
17310         to ranges if possible.  Avoid empty ranges.
17311
17312 2008-04-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
17313
17314         PR middle-end/35705
17315         * fold-const.c (get_pointer_modulus_and_residue): Return modulus 1 if
17316         the expression is a function address.
17317
17318 2008-04-01  George Helffrich  <george@gcc.gnu.org>
17319
17320         PR fortran/35154, fortran/23057
17321         * dbxout.c: Emit .stabs debug info for Fortran COMMON block
17322         variables as base symbol name + offset using N_BCOMM/N_ECOMM.
17323         (is_fortran, dbxout_common_name, dbxout_common_check): New functions.
17324         (dbxout_symbol_location): Transform N_LCSYM to N_GSYM for storage
17325         in common.
17326         (dbxout_syms): Check for COMMON-based symbol and wrap in
17327         N_BCOMM/N_ECOMM stab bracket, including as many symbols as possible
17328         in bracket for efficiency.
17329
17330         * dwarf2out.c: Emit DWARF debug info for Fortran COMMON block
17331         using DW_TAG_common_block + member offset.
17332         (add_pubname_string): New function.
17333         (dw_expand_expr): New function to find block name and offset for
17334         COMMON var.
17335         (common_check): New function to check whether symbol in Fortran COMMON.
17336         (gen_variable_die): If COMMON, use DW_TAG_common_block.
17337
17338 2008-04-01  Volker Reichelt  <v.reichelt@netcologne.de>
17339
17340         PR c/35436
17341         * c-format.c (init_dynamic_gfc_info): Ignore invalid locus type.
17342
17343 2008-04-02  Ben Elliston  <bje@au.ibm.com>
17344
17345         * config/v850/v850.md (casesi): Remove if (0) code.
17346         * config/i386/uwin.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
17347         * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
17348
17349 2008-04-01  Uros Bizjak  <ubizjak@gmail.com>
17350
17351         * config/i386/i386.md (rex64suffix): New mode attribute.
17352         (floathi<mode>2): Disable expander for SSE math.
17353         (*floathi<mode>2_1): New insn insn_and_split pattern.
17354         (*floathi<mode>2_i387_with_temp): New macroized instruction pattern and
17355         corresponding post-reload splitters.
17356         (*floathi<mode>2_i387): New macroized insn pattern.
17357         (float<SSEMODEI24:mode><X87MODEF:mode>2): New macroized expander.
17358         (*float<SSEMODEI24:mode><X87MODEF:mode>2_1): New macroized
17359         insn_and_split pattern.
17360         (*floatsi<mode>2_vector_mixed_with_temp, *floatsi<mode>2_vector_mixed):
17361         New macroized instruction patterns and corresponding post-reload
17362         splitters.
17363         (*floatsi<mode>2_mixed_with_temp): New macroized instruction pattern
17364         and corresponding post-reload splitters.
17365         (*floatsi<mode>2_mixed_interunit, *floatsi<mode>2_mixed_nointerunit):
17366         New macroized instruction patterns.
17367         (*floatsi<mode>2_vector_sse_with_temp, *floatsi<mode>2_vector_sse): New
17368         macroized instruction patterns and corresponding post-reload splitters.
17369         (*floatsi<mode>2_sse_with_temp): New macroized instruction pattern and
17370         corresponding post-reload splitters.
17371         (*floatsi<mode>2_sse_interunit, *floatsi<mode>2_mixed_nointerunit):
17372         New macroized instruction patterns.
17373         (*floatsi<mode>2_i387_with_temp): New macroized instruction pattern and
17374         corresponding post-reload splitters.
17375         (*floatsi<mode>2_i387): New macroized instruction patterns.
17376
17377 2008-04-01  H.J. Lu  <hongjiu.lu@intel.com>
17378
17379         * config/i386/i386.md (smaxmin): New.
17380         (umaxmin): Likewise.
17381         (maxminiprefix): Likewise.
17382         (maxminfprefix): Likewise.
17383         (<code><mode>3): Likewise.
17384         (smin<mode>3): Removed.
17385         (smax<mode>3): Likewise.
17386
17387         * config/i386/mmx.md (mmx_<code>v2sf3): New.
17388         (mmx_<code>v4hi3): Likewise.
17389         (mmx_<code>v8qi3): Likewise.
17390         (mmx_smaxv2sf3): Removed.
17391         (mmx_sminv2sf3): Likewise.
17392         (mmx_umaxv8qi3): Likewise.
17393         (mmx_smaxv4hi3): Likewise.
17394         (mmx_uminv8qi3): Likewise.
17395         (mmx_sminv4hi3): Likewise.
17396
17397         * config/i386/sse.md (<addsub><mode>3): New.
17398         (*<addsub><mode>3): Likewise.
17399         (<sse>_vm<addsub><mode>3): Likewise.
17400         (<maxmin><mode>3): Likewise.
17401         (*<maxmin><mode>3_finite): Likewise.
17402         (*<maxmin><mode>3): Likewise.
17403         (<sse>_vm<maxmin><mode>3): Likewise.
17404         (sse3_h<addsub>v4sf3): Likewise.
17405         (sse3_h<addsub>v2df3): Likewise.
17406         (<maxmin>v16qi3): Likewise.
17407         (*<maxmin>v16qi3): Likewise.
17408         (<maxmin>v8hi3): Likewise.
17409         (*<maxmin>v8hi3): Likewise.
17410         (*sse4_1_<maxmin><mode>3): Likewise.
17411         (*sse4_1_<maxmin><mode>3): Likewise.
17412         (add<mode>3): Removed.
17413         (*add<mode>3): Likewise.
17414         (<sse>_vmadd<mode>3): Likewise.
17415         (sub<mode>3): Likewise.
17416         (*sub<mode>3): Likewise.
17417         (<sse>_vmsub<mode>3): Likewise.
17418         (smin<mode>3): Likewise.
17419         (*smin<mode>3_finite): Likewise.
17420         (*smin<mode>3): Likewise.
17421         (<sse>_vmsmin<mode>3): Likewise.
17422         (smax<mode>3): Likewise.
17423         (*smax<mode>3_finite): Likewise.
17424         (*smax<mode>3): Likewise.
17425         (<sse>_vmsmax<mode>3): Likewise.
17426         (sse3_haddv4sf3): Likewise.
17427         (sse3_haddv2df3): Likewise.
17428         (sse3_hsubv4sf3): Likewise.
17429         (sse3_hsubv2df3): Likewise.
17430         (umaxv16qi3): Likewise.
17431         (*umaxv16qi3): Likewise.
17432         (smaxv8hi3): Likewise.
17433         (*smaxv8hi3): Likewise.
17434         (*sse4_1_smax<mode>3): Likewise.
17435         (*sse4_1_umax<mode>3): Likewise.
17436         (uminv16qi3): Likewise.
17437         (*uminv16qi3): Likewise.
17438         (sminv8hi3): Likewise.
17439         (*sminv8hi3): Likewise.
17440         (*sse4_1_smin<mode>3): Likewise.
17441         (*sse4_1_umin<mode>3): Likewise.
17442
17443 2008-04-01  Rafael Espíndola  <espindola@google.com>
17444
17445         * tree-cfg.c (verify_expr): remove in_phi.
17446         (verify_stmt): Don't call walk_tree with verify_expr. Use
17447         is_gimple_min_invariant instead of is_gimple_val.
17448
17449 2008-04-01  Joseph Myers  <joseph@codesourcery.com>
17450
17451         * doc/include/gpl_v3.texi: Update for manpage generation.
17452         * doc/gcc.texi, doc/gccint.texi: Include gpl_v3.texi instead of
17453         gpl.texi.
17454         * doc/sourcebuild.texi: Document gpl_v3.texi as well as gpl.texi.
17455         * Makefile.in (TEXI_GCC_FILES, TEXI_GCCINT_FILES): Include
17456         gpl_v3.texi instead of gpl.texi.
17457         (gpl.pod): New.
17458
17459 2008-04-01  Jakub Jelinek  <jakub@redhat.com>
17460
17461         PR pch/13675
17462         * c-pch.c (c_common_read_pch): On error close (fd) resp. fclose (f).
17463
17464 2008-04-01  Rafael Espíndola  <espindola@google.com>
17465
17466         * tree-vrp.c (extract_code_and_val_from_cond_with_ops): New.
17467         (extract_code_and_val_from_cond): Use
17468         extract_code_and_val_from_cond_with_ops.
17469
17470 2008-04-01  Jan Hubicka  <jh@suse.cz>
17471
17472         * function.c (free_after_compilation): Free epilogue_delay_list.
17473         (prepare_function_start): Assert that previous compilation was freed.
17474
17475 2008-04-01  Jan Hubicka  <jh@suse.cz>
17476             Jim Wilson  <wilson@tuliptree.org>
17477             Andreas Tobler <andreast@gcc.gnu.org>
17478
17479         PR middle-end/35781
17480         * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Use
17481         rtl.emit instead cfun->emit.
17482         * sparc/sparc.h (INIT_EXPANDERS): Likewise.
17483         * ia64/ia64.h (INIT_EXPANDERS): Likewise.
17484
17485 2008-04-01  Ben Elliston  <bje@au.ibm.com>
17486
17487         * doc/c-tree.texi (Function Basics): Fix grammatical error.
17488
17489 2008-03-31  Seongbae Park <seongbae.park@gmail.com>
17490
17491         * common.opt (fprofile-dir=, fprofile-use=, fprofile-generate=):
17492         New options
17493         (fprofile-use): Add var flag_profile_use
17494         * coverage.c (coverage_begin_output): Do not open a gcno file for
17495         output only if -ftest-coverage is set.
17496         Do not add getpwd() to gcda file path.
17497         (build_gcov_info): Check the new flag
17498         flag_profile_datafile_relative_path.
17499         (coverage_init): Use profile_data_prefix.
17500         Read profile counter only if flag_profile_use is set.
17501         * opts.c (common_handle_option): New option fprofile-use=,
17502         fprofile-dir=, fprofile-generate=.
17503         * toplev.c (profile_data_prefix): New variable definition.
17504         * toplev.h (profile_data_prefix): New declaration.
17505         * doc/invoke.tex (Option Summary, Optimization Options):
17506         Add new options.
17507
17508 2008-03-31  James E. Wilson  <wilson@tuliptree.org>
17509
17510         * varasm.c (output_constant_pool_1): In LABEL_REF check,
17511         use tmp consistently.
17512
17513         PR target/35695
17514         * config/ia64/div.md (recip_approx_rf): Use UNSPEC not DIV.
17515         * config/ia64/ia64.c (rtx_needs_barrier): Handle
17516         UNSPEC_FR_RECIP_APPROX_RES.
17517         * config/ia64/ia64.md (UNSPEC_FR_RECIP_APPROX_RES): Define.
17518
17519 2008-03-31  Volker Reichelt  <v.reichelt@netcologne.de>
17520
17521         PR c/35750
17522         * c-decl.c (store_parm_decls_oldstyle): Skip invalid parameters.
17523
17524 2008-03-31  Andrew Pinski  <andrew_pinski@playstation.sony.com>
17525
17526         PR middle-end/30186
17527         * fold-const.c (fold_indirect_ref_1): Support accessing non first
17528         element of the vector via a pointer.
17529
17530 2008-03-31  Ian Lance Taylor  <iant@google.com>
17531
17532         * tlink.c (scan_linker_output): Look for symbol name in single quotes.
17533
17534 2008-03-31  Jan Hubicka  <jh@suse.cz>
17535
17536         * builtins.c (expand_builtin_setjmp_receiver): Update call of
17537         get_arg_pointer_save_area.
17538         * expr.c (init_expr): Just clear out rtl.expr.
17539         * function.c (free_after_compilation): Clear out whole RTL structure.
17540         (get_func_frame_size): Merge into ...
17541         (get_frame_size): ... this one.
17542         (assign_stack_local_1): Merge into ...
17543         (assign_stack_local): ... this one.
17544         (expand_function_end): Update call of get_arg_pointer_save_area.
17545         (get_art_pointer_save_area): Remove cfun argument.
17546         * function.h (emit_status): regno_pointer_align does not need length
17547         attribute. Move x_regno_reg_rtx to ...
17548         (regno_reg_rtx): ... new global array.
17549         (reg_rtx_no, seq_stack, REGNO_POINTER_ALIGN): Update accestors.
17550         (pending_stack_adjust, inhibit_defer_pop, saveregs_value,
17551         apply_args_value, forced_labels, stack_pointer_delta):
17552         Update accestors.
17553         (struct varasm_status): Move here from varasm.c
17554         (struct rtl_data): New. Move here some fields from struct function.
17555         (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
17556         frame_offset, stack_check_probe_note, arg_pointer_save_area,
17557         used_temp_slots avail_temp_slots, temp_slot_level,
17558         nonlocal_goto_handler_labels): Update accesstors.
17559         (rtl): New global variable.
17560         (struct function): Move some fileds to rtl_data.
17561         (get_arg_pointer_save_area): Update prototype.
17562         * emit-rtl.c (rtl): Declare.
17563         (regno_reg_rtx): Declare.
17564         (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
17565         Update.
17566         (gen_reg_rtx): Update.
17567         (init_virtual_regs): Do not tate emit_status argument.
17568         (init_emit): Do not allocate emit.
17569         * varasm.c (varasm_statuc): Move to function.h.
17570         (n_deferred_constatns): Update accestor.
17571         (init_varasm_status): Do not allocate varasm_status.
17572         (force_const_mem, get_pool_size, output_constant_pool): Update.
17573         * stmt.c (force_label_rtx): Do not use x_ prefixes.
17574         (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
17575
17576 2008-03-31  Zdenek Dvorak  <ook@ucw.cz>
17577
17578         PR rtl-optimization/35729
17579         * loop-invariant.c (check_maybe_invariant): Disallow volatile memory
17580         references.
17581
17582 2008-03-31  H.J. Lu  <hongjiu.lu@intel.com>
17583
17584         PR target/32000
17585         * config/i386/i386.md (*movti_internal): Emit unaligned SSE
17586         load/store if memory is unaligned.
17587         (*movti_rex64): Likewise.
17588
17589         * config/i386/predicates.md (misaligned_operand): New.
17590
17591 2008-03-31  Andrew Pinski  <pinskia@gmail.com>
17592
17593         PR tree-opt/35431
17594         * tree-ssa-phiopt.c (conditional_replacement): Return early for
17595         complex types.
17596
17597 2008-03-31  Jan Beulich  <jbeulich@novell.com>
17598
17599         * config/ia64/constraints.md: Add 'j' constraint.
17600         * config/ia64/ia64.md (movsi_internal): Add addp4 case.
17601         (movdi_internal): Likewise.
17602
17603 2008-03-30  Volker Reichelt  <v.reichelt@netcologne.de>
17604
17605         PR c/35748
17606         * c-typeck.c (build_c_cast): Skip invalid fields in unions.
17607
17608 2008-03-30  H.J. Lu  <hongjiu.lu@intel.com>
17609
17610         PR target/35757
17611         * config/i386/i386.c (ix86_expand_sse_4_operands_builtin): Issue
17612         proper error message for the third argument on blendpd and
17613         blendps.
17614
17615         * config/i386/sse.md (blendbits): New.
17616         (sse4_1_blendp<ssemodesuffixf2c>): Use it.
17617
17618 2008-03-30  Eric Botcazou  <ebotcazou@adacore.com>
17619
17620         * fold-const.c (fold_binary) <BIT_IOR_EXPR>: Add missing conversions.
17621
17622 2008-03-30  Richard Guenther  <rguenther@suse.de>
17623
17624         PR middle-end/31023
17625         * fold-const.c (fold_sign_changed_comparison): Do leave
17626         conversions to base-types alone.
17627
17628 2008-03-29  Andrew Pinski  <andrew_pinski@playstation.sony.com>
17629
17630         * config/rs6000/rs6000.c (rs6000_stack_info): Don't force saving of
17631         the link register if one altivec register is be saved.
17632
17633 2008-03-30  Ben Elliston  <bje@au.ibm.com>
17634
17635         * final.c (final_scan_insn): Remove if (0) code.
17636
17637 2008-03-28  Volker Reichelt  <v.reichelt@netcologne.de>
17638
17639         * c-parser.c (c_parser_next_token_is_keyword): Simplify.
17640
17641 2008-03-28  H.J. Lu  <hongjiu.lu@intel.com>
17642
17643         * config/i386/sse.md (*and<mode>3): Pass <MODE>mode instead
17644         of V4SFmode to ix86_binary_operator_ok.
17645
17646 2008-03-28  Uros Bizjak  <ubizjak@gmail.com>
17647
17648         * config/i386/i386.c (override_options): Initialize
17649         ix86_veclib_handler to ix86_veclibabi_svml when
17650         -mveclibabi=svml is used.
17651         (ix86_veclibabi_svml): New function for SVML ABI style
17652         vectorization support.
17653         * doc/invoke.texi (-mveclibabi) [svml]: Document new target option.
17654
17655 2008-03-28  Rafael Espíndola  <espindola@google.com>
17656
17657         * fold-const.c (tree_unary_nonnegative_warnv_p): Make it public.
17658         (tree_binary_nonnegative_warnv_p): Make it public.
17659         (tree_single_nonnegative_warnv_p): Make it public.
17660         (tree_invalid_nonnegative_warnv_p): Make it public.
17661         (tree_unary_nonzero_warnv_p): Make it public.
17662         (tree_binary_nonzero_warnv_p): Make it public
17663         (tree_single_nonzero_warnv_p): Make it public.
17664         * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops): New function.
17665         (extract_range_from_binary_expr): Split the expr argument.
17666         (extract_range_from_unary_expr): Split the expr argument.
17667         (extract_range_from_comparison): Split the expr argument.
17668         (extract_range_from_expr): Use the new aux functions.
17669         (vrp_evaluate_conditional_warnv): Use
17670         vrp_evaluate_conditional_warnv_with_ops.
17671         * tree.h (tree_unary_nonzero_warnv_p): Declare.
17672         (tree_binary_nonzero_warnv_p): Declare.
17673         (tree_single_nonzero_warnv_p): Declare.
17674         (tree_expr_nonzero_warnv_p): Declare.
17675         (tree_unary_nonnegative_warnv_p): Declare.
17676         (tree_binary_nonnegative_warnv_p): Declare.
17677         (tree_single_nonnegative_warnv_p): Declare.
17678         (tree_invalid_nonnegative_warnv_p): Declare.
17679
17680 2008-03-28  Richard Guenther  <rguenther@suse.de>
17681
17682         PR tree-optimization/30317
17683         PR tree-optimization/30911
17684         PR tree-optimization/34793
17685         * tree-vrp.c (set_and_canonicalize_value_range): New function.
17686         (struct assert_locus_d): New member EXPR.
17687         (register_new_assert_for): Add EXPR parameter to support
17688         ASSERT_EXPR <name, expr OP limit>.
17689         (register_edge_assert_for_1): Adjust callers.
17690         (find_assert_locations): Likewise.
17691         (process_assert_insertions_for): Build condition from expression.
17692         (extract_range_from_assert): Handle ASSERT_EXPRs
17693         of the form ASSERT_EXPR <name, expr OP limit>.
17694         (register_edge_assert_for_2): New helper registering
17695         asserts for comparisons.  Recognize range tests of the form
17696         (unsigned)i - CST1 OP CST2.
17697         (register_edge_assert_for_1): Use it.
17698         (register_edge_assert_for): Likewise.
17699         (needs_overflow_infinity): Integer sub-types
17700         do not need overflow infinities.
17701         (vrp_val_is_max): The extreme values of integer sub-types
17702         are those of the base type.
17703         (vrp_val_is_min): Likewise.
17704         * tree.def (ASSERT_EXPR): Document extra allowed conditional
17705         expressions.
17706
17707 2008-03-28  Nick Clifton  <nickc@redhat.com>
17708
17709         PR target/31110
17710         * config/mn10300/mn10300.c (mn10300_secondary_reload_class):
17711         Return GENERAL_REGS for stack adjustment reloads.
17712
17713 2008-03-28  Andrew Pinski  <andrew_pinski@playstation.sony.com>
17714
17715         PR target/31334
17716         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Create a
17717         const_vector when all the vectors are constant.
17718
17719 2008-03-27  Bob Wilson  <bob.wilson@acm.org>
17720
17721         * config/xtensa/xtensa.c (gen_float_relational): Handle unordered
17722         comparisons.
17723         * config/xtensa/xtensa.md (any_cond): Add unordered comparisons.
17724         (any_scc_sf): Add uneq, unlt, unle and unordered operators.
17725         (scc_sf): New.
17726         (s<code>_sf): Use new scc_sf attribute for opcode names.
17727
17728 2008-03-27  Tom Tromey  <tromey@redhat.com>
17729
17730         * doc/sourcebuild.texi, doc/install.texi, configure, aclocal.m4,
17731         configure.ac, Makefile.in, config/t-darwin, config/m32c/t-m32c,
17732         config/spu/t-spu-elf, config/i386/t-interix,
17733         config/i386/t-cygming, config/i386/x-i386, config/i386/t-cygwin,
17734         config/i386/x-darwin, config/i386/x-mingw32,
17735         config/i386/t-netware, config/i386/x-cygwin, config/i386/t-nwld,
17736         config/sh/t-sh, config/sh/t-symbian, config/x-linux,
17737         config/t-sol2, config/x-hpux, config/x-darwin, config/ia64/t-ia64,
17738         config/x-solaris, config/t-vxworks, config/m68k/t-uclinux,
17739         config/rs6000/x-rs6000, config/rs6000/x-darwin64,
17740         config/rs6000/x-darwin, config/rs6000/t-rs6000,
17741         config/score/t-score-elf, config/arm/t-strongarm-pe,
17742         config/arm/t-pe, config/arm/t-arm, config/arm/t-wince-pe,
17743         config/v850/t-v850, config/v850/t-v850e, config/bfin/t-bfin-linux:
17744         Revert automatic dependency patch.
17745
17746 2008-03-27  H.J. Lu  <hongjiu.lu@intel.com>
17747
17748         PR target/35657
17749         * config/i386/i386.c (ix86_function_arg_boundary): Align
17750         decimal floating point to its natural boundary.
17751
17752 2008-03-27  Richard Guenther  <rguenther@suse.de>
17753
17754         PR middle-end/35716
17755         * fold-const.c (fold_comparison): Restrict distinct decl
17756         comparison folding to VAR_DECLs and PARM_DECLs.  Do not
17757         solely rely on operand_equal_p.
17758
17759 2008-03-27  Richard Guenther  <rguenther@suse.de>
17760
17761         PR c/32511
17762         * c-common.c (handle_weak_attribute): Reject combination of
17763         weak and inline.
17764
17765 2008-03-27  Richard Guenther  <rguenther@suse.de>
17766
17767         PR tree-optimization/32810
17768         * tree-ssa-ccp.c (get_symbol_constant_value): Strip useless
17769         conversions from DECL_INITIAL.
17770         (fold_const_aggregate_ref): Likewise from constructor elements.
17771
17772 2008-03-27  Zdenek Dvorak  <ook@ucw.cz>
17773
17774         * tree-affine.h (aff_combination_expand): Declare.
17775         (get_inner_reference_aff): Likewise.
17776         * tree-affine.c (aff_combination_expand): Split out from
17777         tree_to_aff_combination_expand.
17778         (get_inner_reference_aff): New function.
17779         * tree-parloops.c (loop_parallel_p): Free vectorizer info.
17780         * tree-ssa-loop-im.c: Include tree-affine.h and pointer-set.h.
17781         (struct lim_aux_data): sm_done field removed.
17782         (mem_ref_loc_p, mem_ref_locs_p): New types.
17783         (struct mem_ref): Added id, stored, accesses_in_loop,
17784         indep_loop, dep_loop, indep_ref, dep_ref fields.
17785         Removed is_stored, locs and next fields.
17786         (memory_accesses): New variable.
17787         (movement_possibility): Do not allow moving statements
17788         that store to memory.
17789         (outermost_indep_loop, simple_mem_ref_in_stmt, mem_ref_in_stmt):
17790         New functions.
17791         (determine_max_movement): For statements with memory references,
17792         find the outermost loop in that the reference is independent.
17793         (move_computations_stmt): Mark the virtual operands for renaming.
17794         (memref_free, mem_ref_alloc, mem_ref_locs_alloc, mark_ref_stored,
17795         gather_mem_refs_stmt, gather_mem_refs_in_loops, vtoe_hash, vtoe_eq,
17796         vtoe_free, record_vop_access, get_vop_accesses, get_vop_stores,
17797         add_vop_ref_mapping, create_vop_ref_mapping_loop,
17798         create_vop_ref_mapping, analyze_memory_references,
17799         cannot_overlap_p, mem_refs_may_alias_p, rewrite_mem_ref_loc,
17800         get_all_locs_in_loop, ref_always_accessed_p,
17801         refs_independent_p, record_indep_loop, ref_indep_loop_p_1,
17802         ref_indep_loop_p, can_sm_ref_p, find_refs_for_sm,
17803         store_motion_loop, store_motion): New functions.
17804         (struct vop_to_refs_elt): New type.
17805         (record_mem_ref_loc, free_mem_ref_locs, rewrite_mem_refs,
17806         memref_hash, memref_eq, hoist_memory_references): Rewritten.
17807         (schedule_sm): Replaced by...
17808         (execute_sm): ... this.
17809         (determine_lsm_ref, hoist_memory_references,
17810         loop_suitable_for_sm, gather_mem_refs_stmt, gather_mem_refs,
17811         find_more_ref_vops, free_mem_ref, free_mem_refs,
17812         determine_lsm_loop, determine_lsm): Removed.
17813         (tree_ssa_lim_finalize): Free data structures used by store motion.
17814         (tree_ssa_lim): Call analyze_memory_references.  Use
17815         store_motion instead of determine_lsm.
17816
17817 2008-03-27  Paolo Bonzini  <bonzini@gnu.org>
17818
17819         * config.cc (m68hc11, m6811, m68hc12, m6812): Add usegas.h,
17820         rename tmake_file to m68hc11/t-m68hc11.
17821         (mcore): Set inhibit_libc to true.
17822         * config.host (alpha*-dec-*vms*): Set extra_programs.
17823         (interix3*): Don't use host_xmake_file.
17824         * configure.ac: Let config.gcc override inhibit_libc.
17825         * configure: Regenerate.
17826
17827         * config/alpha/x-vms (EXTRA_PROGRAMS): Remove.
17828         * config/t-openbsd-thread: Remove commented out lines.
17829
17830         * config/x-interix: Remove.
17831
17832         * config/m68hc11/t-m68hc11-gas: Rename to...
17833         * config/m68hc11/t-m68hc11: ... this.  Remove T_CPPFLAGS.
17834
17835         * config/mcore/t-mcore: Remove T_CFLAGS.
17836         * config/mcore/t-mcore-pe: Likewise.
17837
17838 2008-03-27  Paolo Bonzini  <bonzini@gnu.org>
17839
17840         * configure.ac: Replace custom __GNU_SOURCE test with
17841         AC_USE_SYSTEM_EXTENSIONS.  Move it earlier.
17842         * aclocal.m4: Regenerate.
17843         * configure: Regenerate.
17844         * config.in: Regenerate.
17845
17846 2008-03-27  Richard Guenther  <rguenther@suse.de>
17847
17848         * fold-const.c (target.h): Include.
17849         (fold_comparison): Fold comparison of addresses of decls
17850         that bind locally or of constants.  Consolidate address folding code.
17851         * tree-vrp.c (operand_less_p): Deal with non-INTEGER_CST
17852         results from fold_binary_to_constant.
17853         (compare_values_warnv): Likewise.
17854
17855 2008-03-27  Andrew Pinski  <pinskia@gmail.com>
17856
17857         PR middle-end/35429
17858         * fold-const.c (fold_truthop): Check for integeral types when folding
17859         a == 0 && b == 0 and a != 0 || b != 0 .
17860
17861 2008-03-26  Eric Botcazou  <ebotcazou@adacore.com>
17862
17863         * tree.c (get_unwidened): Remove code fiddling with COMPONENT_REF.
17864
17865 2008-03-26  Andreas Schwab  <schwab@suse.de>
17866
17867         * doc/invoke.texi: Fix use of @item vs. @itemx.
17868
17869 2008-03-26  Tom Tromey  <tromey@redhat.com>
17870
17871         * Makefile.in (build/gensupport.o, build/print-rtl.o,
17872         build/read-rtl.o, build/rtl.o, build/gencondmd.o, build/genattr.o,
17873         build/genattrtab.o, build/genautomata.o, build/gencheck.o,
17874         build/gencodes.o, build/genconditions.o, build/genconfig.o,
17875         build/genconstants.o, build/genemit.o, build/genextract.o,
17876         build/genflags.o, build/genmddeps.o, build/genopinit.o,
17877         build/genoutput.o, build/genpeep.o, build/genrecog.o): Depend on
17878         options.h.
17879
17880 2008-03-26  Richard Guenther  <rguenther@suse.de>
17881
17882         Revert
17883         2008-03-26  Richard Guenther  <rguenther@suse.de>
17884
17885         * fold-const.c (target.h): Include.
17886         (fold_comparison): Fold comparison of addresses of two decls
17887         that bind locally.  Consolidate address folding code.
17888
17889 2008-03-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
17890
17891         * builtins.c (expand_builtin_pow, fold_builtin_cabs,
17892         fold_builtin_sqrt, fold_builtin_cbrt, fold_builtin_logarithm,
17893         fold_builtin_hypot, fold_builtin_pow): Remove uses of dconst3,
17894         dconstsqrt2, dconstthird, dconste and/or dconst10.
17895         * config/i386/i386.c (ix86_emit_swsqrtsf): Likewise.
17896         * emit-rtl.c (dconst3, dconst10, dconstm2, dconstthird,
17897         dconstsqrt2, dconste): Delete.
17898         (init_emit_once): Likewise.  Simplify initializing dconstm1.
17899         Constify variable.
17900         * real.c (get_real_const): New.
17901         * real.h (dconst3, dconst10, dconstm2, dconstthird,
17902         dconstsqrt2, dconste): Delete.
17903         (real_value_const, get_real_const): New.
17904
17905 2008-03-26  H.J. Lu  <hongjiu.lu@intel.com>
17906
17907         * config/i386/cygming.h (BIGGEST_ALIGNMENT): Removed.
17908
17909         * config/i386/i386.c (ix86_function_arg_boundary): Check
17910         BIGGEST_ALIGNMENT instead of 128.
17911         (setup_incoming_varargs_64): Likewise.
17912
17913 2008-03-26  Tom Tromey  <tromey@redhat.com>
17914
17915         * Makefile.in (DEPFILES): Add missing '/'.
17916
17917 2008-03-26  Richard Guenther  <rguenther@suse.de>
17918
17919         * fold-const.c (target.h): Include.
17920         (fold_comparison): Fold comparison of addresses of two decls
17921         that bind locally.  Consolidate address folding code.
17922
17923 2008-03-26  Nick Clifton  <nickc@redhat.com>
17924
17925         PR target/31232
17926         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p): Do
17927         not allow INT+INT as a legitimate addressing mode.
17928
17929 2008-03-26  Richard Guenther  <rguenther@suse.de>
17930
17931         * tree-flow.h (widen_bitfield): Remove declaration.
17932         * tree-ssa-ccp.c (visit_assignment): Remove unneeded code.
17933         (widen_bitfield): Remove function.
17934         * tree-ssa-dom.c (record_equivalences_from_stmt): Remove unneeded
17935         code.
17936
17937 2008-03-25  Andrew Pinski  <andrew_pinski@playstation.sony.com>
17938
17939         PR target/31558
17940         * config/rs6000/rs6000-c.c (rs6000_builtin_type_compatible): Handle
17941         error_mark_node's.
17942
17943 2008-03-25  Richard Sandiford  <rsandifo@nildram.co.uk>
17944
17945         PR rtl-optimization/35232
17946         * reload1.c (reg_reloaded_call_part_clobbered): Clarify comment.
17947         (forget_old_reloads_1, forget_marked_reloads): Don't clear
17948         reg_reloaded_call_part_clobbered here.
17949         (reload_regs_reach_end_p): New function.
17950         (reload_reg_rtx_for_input): New variable.
17951         (reload_reg_rtx_for_output): Likewise.
17952         (emit_input_reload_insns): Use reloadreg rather than rl->reg_rtx
17953         when reassigning a pseudo register.  Load reloadreg from
17954         reload_reg_rtx_for_input, moving the mode and register
17955         calculation to...
17956         (do_input_reload): ...here.  Use the mode-adjusted reg_rtx
17957         instead of the original when deciding whether an input reload
17958         would be a no-op or whether an output reload can be deleted.
17959         (emit_output_reload_insns): Use the mode-adjusted reg_rtx
17960         when setting up new_spill_reg_store.  Load it from
17961         reload_reg_rtx_for_output, moving the mode and register
17962         calculation to...
17963         (do_output_reload): ...here.  Use the mode-adjusted reg_rtx
17964         instead of the original when deciding whether an output reload
17965         would be a no-op.  Do the same when modifying insn notes.
17966         Use rtx_equal_p instead of == to compare the registers.
17967         (inherit_piecemeal_p): Take a mode and two register numbers
17968         as argument.
17969         (emit_reload_insns): Clear new_spill_reg_store for every hard
17970         register in the reload register.  Remove spill registers
17971         from reg_reloaded_valid before considering whether to record
17972         inheritance information for them.  Use reload_reg_rtx_for_output
17973         instead of reg_rtx when recording output reloads.  Use
17974         reload_reg_rtx_for_input instead of reg_rtx when recording
17975         input reloads.  Set or clear reg_reloaded_call_part_clobbered
17976         at the same time as setting reg_reloaded_valid.
17977         (delete_output_reload): Add a new_reload_reg parameter and use it
17978         instead of rld[j].reg_rtx.
17979         (emit_input_reload_insns, do_input_reload, do_output_reload): Adjust
17980         calls accordingly.
17981
17982 2008-03-25  Tom Tromey  <tromey@redhat.com>
17983
17984         * Makefile.in (build/gensupport.o): Depend on insn-modes.h.
17985         (build/genattr.o): Likewise.
17986         (build/genattrtab.o): Likewise.
17987         (build/gencodes.o): Likewise.
17988         (build/genconfig.o): Likewise.
17989         (build/genconstants.o): Likewise.
17990         (build/genemit.o): Likewise.
17991         (build/genextract.o): Likewise.
17992         (build/genflags.o): Likewise.
17993
17994 2008-03-25  Bob Wilson  <bob.wilson@acm.org>
17995
17996         * config/xtensa/xtensa.c (xtensa_va_start): Use build_int_cst
17997         instead of size_int for integer types.
17998         (xtensa_gimplify_va_arg_expr): Likewise.  Convert index to sizetype
17999         to match type of MINUS_EXPR.
18000
18001 2008-03-25  Tom Tromey  <tromey@redhat.com>
18002
18003         * configure: Rebuilt.
18004         * configure.ac (BUILD_DEPMODE): Extract CCDEPMODE from temporary
18005         Makefile.
18006
18007 2008-03-25  Tom Tromey  <tromey@redhat.com>
18008
18009         * config/x-solaris (host-solaris.o): Update.
18010         * config/x-linux (host-linux.o): Update.
18011         * config/x-hpux (host-hpux.o): Update.
18012         * config/x-darwin (host-darwin.o): Update.
18013         * config/v850/t-v850e (v850-c.o): Update.
18014         * config/v850/t-v850 (v850-c.o): Update.
18015         * config/t-vxworks (vxworks.o): Update.
18016         * config/t-sol2 (sol2-c.o, sol2.o): Update.
18017         * config/t-darwin (darwin.o, darwin-c.o, darwin-driver.o): Update.
18018         * config/spu/t-spu-elf (spu-c.o): Update.
18019         (spu.o): Remove.
18020         * config/sh/t-symbian (sh-c.o): Update.
18021         (symbian.o): Update.
18022         * config/sh/t-sh (sh-c.o): Update.
18023         * config/score/t-score-elf (score7.o, score3.o): Update.
18024         * config/rs6000/x-rs6000 (driver-rs6000.o): Update.
18025         * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Update.
18026         * config/rs6000/x-darwin (host-ppc-darwin.o): Update.
18027         * config/rs6000/t-rs6000 (rs6000-c.o): Update.
18028         (rs6000.o): Remove.
18029         * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
18030         * config/m32c/t-m32c (m32c-pragma.o): Update.
18031         * config/ia64/t-ia64 (ia64-c.o): Update.
18032         * config/i386/x-mingw32 (host-mingw32.o): Update.
18033         * config/i386/x-i386 (driver-i386.o): Update.
18034         * config/i386/x-darwin (host-i386-darwin.o): Update.
18035         * config/i386/x-cygwin (host-cygwin.o): Update.
18036         * config/i386/t-nwld (nwld.o): Update.
18037         * config/i386/t-netware (netware.o): Update.
18038         * config/i386/t-interix (winnt.o): Update.
18039         * config/i386/t-cygwin (cygwin1.o, cygwin2.o): Update.
18040         * config/i386/t-cygming (winnt.o, winnt-cxx.o, winnt-stubs.o,
18041         msformat-c.o): Update.
18042         * config/bfin/t-bfin-linux (generated_files): Add
18043         linux-sysroot-suffix.h.
18044         * config/arm/t-wince-pe (pe.o): Update.
18045         * config/arm/t-strongarm-pe (pe.o): Update.
18046         * config/arm/t-pe (pe.o): Update.
18047         * config/arm/t-arm (arm-c.o): Update.
18048         * doc/install.texi (Prerequisites): Require make 3.80.
18049         * Makefile.in: Remove .o targets.
18050         (CCDEPMODE, DEPDIR, depcomp, BUILD_DEPMODE): New variables.
18051         (OBSTACK_H, FIBHEAP_H, PARTITION_H, MD5_H, BCONFIG_H): Remove.
18052         (simple_generated_h, simple_generated_c): Move earlier.
18053         (generated_files): New variable.
18054         (TARGET_H, MACHMODE_H, HOOKS_H, HOSTHOOKS_DEF_H, LANGHOOKS_DEF_H,
18055         TARGET_DEF_H, RTL_BASE_H, RTL_H, PARAMS_H, BUILTINS_DEF, TREE_H,
18056         BASIC_BLOCK_H, GCOV_IO_H, COVERAGE_H, DEMANGLE_H, RECOG_H,
18057         ALIAS_H, EMIT_RTL_H, FLAGS_H, FUNCTION_H, EXPR_H, OPTABS_H,
18058         REGS_H, RA_H, RESOURCE_H, SCHED_INT_H, INTEGRATE_H, CFGLAYOUT_H,
18059         CFGLOOP_H, IPA_UTILS_H, IPA_REFERENCE_H, IPA_TYPE_ESCAPE_H,
18060         CGRAPH_H, DF_H, RESOURCE_H, DDG_H, GCC_H, GGC_H, TIMEVAR_H,
18061         INSN_ATTR_H, C_COMMON_H, C_PRAGMA_H, C_TREE_H, SYSTEM_H,
18062         PREDICT_H, DECNUM_H, MKDEPS_H, SYMTAB_H, TREE_DUMP_H,
18063         TREE_GIMPLE_H, TREE_FLOW_H, TREE_SSA_LIVE_H, PRETTY_PRINT_H,
18064         DIAGNOSTIC_H, C_PRETTY_PRINT_H, SCEV_H, LAMBDA_H, TREE_DATA_REF_H,
18065         VARRAY_H, TREE_INLINE_H, REAL_H, DBGCNT_H, EBIMAP_H): Remove.
18066         (.c.o): Remove.
18067         (COMPILE.base, COMPILE): New variables.
18068         (%.o): New pattern rule.
18069         (ALL_HOST_OBJS): New variable.
18070         (xgcc$(exeext), cpp$(exeext)): Remove extra version.o.
18071         (dummy-checksum.o, cc1-checksum.o): Remove.
18072         (DRIVER_SHLIB): New variable.
18073         (DRIVER_DEFINES): Use it.
18074         (gencondmd.c): Move out of build/.
18075         (s-conditions): Update.
18076         (BUILDCOMPILE.base, BUILDCOMPILE): New variables.
18077         (ALL_BUILD_OBJS): Likewise.
18078         (build/%.o): Use BUILDCOMPILE.
18079         (build/ggc-none.o, build/ggc-none.o, build/min-insn-modes.o,
18080         build/print-rtl.o, build/read-rtl.o, build/rtl.o, build/vec.o,
18081         build/gencondmd.o, build/genattrtab.o, build/genautomata.o,
18082         build/gencheck.o, build/gencodes.o, build/genconditions.o,
18083         build/genconfig.o, build/genconstants.o, build/genemit.o,
18084         build/genextract.o, build/genflags.o, build/genmddeps.o,
18085         build/genopinit.o, build/genoutput.o, build/genpeep.o,
18086         build/genpreds.o, build/genrecog.o, build/gcov-iov.o,
18087         build/gen-protos.o, build/scan.o, build/fix-header.o,
18088         build/scan-decls.o): Simplify.
18089         (collect2.o, c-opts.o, gcc.o, gccspec.o, gcc-options.o,
18090         cppdefault.o, protoize.o, unprotoize.o, intl.o, version.o,
18091         prefix.o, toplev.o): Reduce to variable setting.
18092         (libbackend.o): Use COMPILE.  Remove most dependencies.  Move later.
18093         ($(out_object_file), gcc-options.o): New targets.
18094         ($(ALL_HOST_OBJS)): New target.  Include dependency files.
18095         * configure: Rebuilt.
18096         * configure.ac: Call ZW_CREATE_DEPDIR, ZW_PROG_COMPILER_DEPENDENCIES.
18097         * doc/sourcebuild.texi (Front End Directory): Document new variable.
18098
18099 2008-03-25  Douglas Gregor  <doug.gregor@gmail.com>
18100
18101         * c-common.c (c_sizeof_or_alignof_type): If we're not allowed to
18102         complain when we hit an error, return ERROR_MARK_NODE.
18103
18104 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
18105
18106         * config/sh/constraints.md (Pso, Psz): New constraints.
18107         * config/sh/sh.c (print_operand): Add %V and %W operand codes.
18108         * config/sh/sh.md (*andsi3_bclr, *iorsi3_bset): New insns.
18109
18110 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
18111
18112         * config/sh/sh.c (sh_expand_t_scc): Emit movrt for SH2A if possible.
18113         * config/sh/sh.md (xorsi3_movrt, movrt): New insns.
18114
18115 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
18116
18117         * config/sh/sh.md (prefetch): Add condition for SH2A target.
18118         (prefetch_sh2a): New.
18119
18120 2008-03-25  Jayant Sonar  <Jayant.sonar@kpitcummins.com>
18121             Naveen.H.S  <naveen.hs@kpitcummins.com>
18122
18123         * config/sh/constraints.md (I28): New constraint.
18124         * config/sh/sh.c (broken_move): Add support for movi20s.
18125         * config/sh/sh.md (movsi_ie): Add the alternative for movi20s.
18126
18127 2008-03-25  Anil Paranjape  <anil.paranjape@kpitcummins.com>
18128             Jayant Sonar  <Jayant.sonar@kpitcummins.com>
18129             Naveen.H.S  <naveen.hs@kpitcummins.com>
18130
18131         * config/sh/sh.c (SH_ATTRIBUTES): Define.
18132         (SYMBOL_FLAG_FUNCVEC_FUNCTION): Define.
18133         (print_operand): Handle resbank in %@ operand code.
18134         (sh_encode_section_info): New.
18135         (push_regs): Add conditions for resbank.
18136         (sh_expand_epilogue): Likewise.
18137         (sh_insert_attributes): Likewise.
18138         (sh_attribute_table): Likewise.
18139         (sh_handle_resbank_handler_attribute): New.
18140         (sh2a_handle_function_vector_handler_attribute): New.
18141         (sh2a_is_function_vector_call): New.
18142         (sh2a_get_function_vector_number): New.
18143         (sh2a_function_vector_p): New.
18144         (sh_cfun_resbank_handler_p): New.
18145         * config/sh/sh.md (calli): Emit jsr/n if possible.
18146         (calli_tbr_rel): New.
18147         (calli_pcrel): Emit jsr/n if possible.
18148         (return_i): Emit rts/n if possible.
18149         (call_valuei_tbr_rel): New.
18150         (call_valuei_pcrel): Add condition for SH2A target.
18151         (call_value): Likewise.
18152         * config/sh/sh-protos.h (sh_cfun_resbank_handler_p): Declare.
18153         (sh2a_get_function_vector_number): Likewise.
18154         (sh2a_is_function_vector_call): Likewise.
18155         * doc/extend.texi: Document TBR relative addressing of SH2A.
18156         (resbank): Add description for SH2A.
18157
18158 2008-03-24  Richard Guenther  <rguenther@suse.de>
18159
18160         PR c/22371
18161         * gimplify.c (gimplify_modify_expr): For frontend type-correct
18162         pointer assignments change conversions according to middle-end rules.
18163         (gimplify_modify_expr_rhs): Deal with NULL TARGET_EXPR_INITIAL.
18164         * configure.ac: Include type checking in yes.
18165         * configure: Regenerate.
18166
18167 2008-03-24  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
18168
18169         * diagnostic.c (diagnostic_count_diagnostic): Delete.
18170         (diagnostic_report_diagnostic): Update. Handle ICEs here.
18171
18172 2008-03-24  Nathan Sidwell  <nathan@codesourcery.com>
18173
18174         * gthr-vxworks.h (UNUSED): Define.
18175
18176 2008-03-23  H.J. Lu  <hongjiu.lu@intel.com>
18177
18178         * config/i386/i386.h (STATIC_CHAIN_REGNUM): Use R10_REG and CX_REG.
18179
18180 2008-03-23  Zuxy Meng <zuxy.meng@gmail.com>
18181
18182         * doc/extend.texi (Function Attributes): Add missing comma in the
18183         example of the "alloc_size" attribute.
18184
18185 2008-03-23  Uros Bizjak  <ubizjak@gmail.com>
18186
18187         Revert:
18188         2008-03-05  H.J. Lu  <hongjiu.lu@intel.com>
18189
18190         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
18191         32bit host.
18192
18193         2008-03-19  Uros Bizjak  <ubizjak@gmail.com>
18194
18195         PR target/35496
18196         * stor-layout.c (update_alignment_for_field): Set minimum alignment
18197         of the underlying type of a MS bitfield layout to the natural
18198         alignment of the type.
18199
18200         2008-03-22  Uros Bizjak  <ubizjak@gmail.com>
18201
18202         * config/i386/i386.c (assign_386_stack_local): Align DImode slots
18203         to their natural alignment to avoid store forwarding stalls.
18204
18205 2008-03-22  Richard Guenther  <rguenther@suse.de>
18206
18207         * tree-cfg.c (verify_expr): Recurse again for invariant addresses.
18208         For PHI nodes verify the address is invariant.
18209         * tree-ssa-ccp.c (ccp_decl_initial_min_invariant): Remove.
18210         (get_symbol_constant_value): Use is_gimple_min_invariant.
18211         (maybe_fold_stmt_indirect): Likewise.
18212
18213 2008-03-22  Richard Sandiford  <rsandifo@nildram.co.uk>
18214
18215         PR rtl-optimization/33927
18216         * Makefile.in (dse.o): Depend on $(TM_P_H).
18217         * expr.h (extract_low_bits): Declare.
18218         * expmed.c (extract_low_bits): New function.
18219         * rtlhooks.c (gen_lowpart_general): Generalize SUBREG handling.
18220         * dse.c: Include tm_p.h.
18221         (find_shift_sequence): Remove the read_reg argument and return the
18222         read value.  Emit the instructions instead of returning them.
18223         Iterate on new_mode rather than calculating it each time.
18224         Check MODES_TIEABLE_P.  Use simplify_gen_subreg to convert the
18225         source to NEW_MODE and extract_low_bits to convert the shifted
18226         value to READ_MODE.
18227         (replace_read): Allow the load and store to have different mode
18228         classes.  Use extract_low_bits when SHIFT == 0.  Create the shift
18229         or extraction instructions before trying the replacement.  Update
18230         dump-file code accordingly, avoiding use of REGNO (store_info->rhs).
18231
18232 2008-03-22  Uros Bizjak  <ubizjak@gmail.com>
18233
18234         * config/i386/i386.c (assign_386_stack_local): Align DImode slots
18235         to their natural alignment to avoid store forwarding stalls.
18236
18237 2008-03-21  Andrew Pinski  <andrew_pinski@playstation.sony.com>
18238
18239         PR target/27946
18240         * config/rs6000/rs6000.md (floatdidf2): Discouraging fprs and
18241         encouraging but not allowing gprs for input;
18242         change the input constraint to !f#r.
18243         (fix_truncdfdi2): Discouraging fprs and encouraging but not allowing
18244         gprs for output;
18245         change the output constraint to !f#r.
18246
18247 2008-03-21  Uros Bizjak  <ubizjak@gmail.com>
18248
18249         PR target/13958
18250         * config/i386/i386.md ("*floatunssi<mode2>_1"): New pattern with
18251         corresponding post-reload splitters.
18252         ("floatunssi<mode>2"): Expand to unsigned_float x87 insn pattern
18253         when x87 FP math is selected.
18254         * config/i386/i386-protos.h (ix86_expand_convert_uns_sixf_sse):
18255         New function prototype.
18256         * config/i386/i386.c (ix86_expand_convert_uns_sixf_sse): New
18257         unreachable function to ease macroization of insn patterns.
18258
18259 2008-03-21  Martin Jambor  <mjambor@suse.cz>
18260
18261         * tree-data-ref.c (dump_data_dependence_relation): Avoid data
18262         reference dumps if ddr is NULL or dependence is unknown.
18263
18264 2008-03-20  Kaz Kojima  <kkojima@gcc.gnu.org>
18265
18266         * config/sh/linux-atomic.asm (ATOMIC_TEST_AND_SET): Take
18267         unsigned extension into account.
18268         (ATOMIC_COMPARE_AND_SWAP): Likewise.
18269         (ATOMIC_FETCH_AND_OP, ATOMIC_FETCH_AND_COMBOP): Likewise.
18270         Do computations on a scratch register.
18271
18272 2008-03-21  Richard Guenther  <rguenther@suse.de>
18273
18274         * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
18275         Use is_gimple_min_invariant instead of TREE_INVARIANT.
18276         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
18277         * tree-ssa-dom.c (record_equality): Likewise.
18278         * tree-inline.c (copy_body_r): Likewise.
18279         * tree-ssa-pre.c (make_values_for_stmt): Remove test for
18280         TREE_INVARIANT.
18281
18282 2008-03-20  Kaz Kojima  <kkojima@gcc.gnu.org>
18283
18284         * config/sh/sh.c (split_branches): Pass zero to redirect_jump
18285         as 'delete_unused' argument.
18286
18287 2008-03-20  Richard Guenther  <rguenther@suse.de>
18288
18289         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Remove
18290         special casing of constant qualifiers.
18291         * tree-ssa.c (useless_type_conversion_p_1): Instead do not
18292         care about them in general.
18293         * tree-ssa-ccp.c (ccp_fold): Addresses are constant or not
18294         regardless of their type.
18295         (fold_stmt_r): Forcefully fold *& if we end up with that.
18296
18297 2008-03-20  Paul Brook  <paul@codesourcery.com>
18298
18299         * config.gcc (arm*-*-uclinux*): Remove duplicate arm/uclinux-elf.h.
18300         * config/arm/uclinux-eabi.h (SUBTARGET_EXTRA_LINK_SPEC): Add extra
18301         linker flags.
18302         * config/arm/bpabi.h (SUBTARGET_EXTRA_LINK_SPEC): Provide default
18303         definition.
18304         (LINK_SPEC): Use SUBTARGET_EXTRA_LINK_SPEC.
18305         * config/arm/unwind-arm.h (_Unwind_decode_target2): Add uClinux.
18306
18307 2008-03-20  Volker Reichelt  <v.reichelt@netcologne.de>
18308
18309         * common.opt (Wmudflap): New option.
18310         * tree-mudflap.c (mf_xform_derefs_1): Guard warning by OPT_Wmudflap.
18311         (mx_register_decls): Likewise.
18312         (mudflap_finish_file): Likewise.
18313         * doc/invoke.texi: Document -Wno-mudflap.
18314
18315 2008-03-20  Kai Tietz  <kai.tietz@onevision.com>
18316
18317         * c-format.c (replace_format_name_to_system_name): New.
18318         (cmp_attribs): New.
18319         (convert_format_name_to_system_name): New.
18320         (decode_format_attr): Add use of convert_format_name_to_system_name.
18321         (format_types_orig): Add gnu_ prefix to names.
18322         (check_format_info_main): Special treating of \0 escaped names for
18323         supporting multi-character format specifiers as I32, I64.
18324         (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): Use of user defined attributes.
18325         (gnu_target_overrides_format_attributes): New.
18326         * c-format.h: Add structure target_ovr_attr to hold
18327         system specific formatter names.
18328         * config.gcc: Add for x86&x86_64 cygwin and mingw32 targets the
18329         msformat-c.o file to c_target_objs and cxx_target_objs.
18330         * config/i386/mingw32.h (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
18331         (TARGET_OVERRIDES_FORMAT_ATTRIBUTES_COUNT): New.
18332         (TARGET_N_FORMAT_TYPES): New.
18333         * config/i386/msformat-c.c: New.
18334         * config/i386/t-cygming: Add build rule for msformat-c.o.
18335         * doc/extend.texi: Add new format names gnu_* and ms_* and
18336         further details.
18337         * doc/tm.texi: (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
18338
18339 2008-03-20  Ira Rosen  <irar@il.ibm.com>
18340
18341         * doc/invoke.texi (-O3): Add -ftree-vectorize to the list of
18342         optimizations turned on under -O3.
18343         (ftree-vectorize): Add that the flag is turned on with -O3.
18344
18345 2008-03-20  Ben Elliston  <bje@au.ibm.com>
18346
18347         * regmove.c (try_auto_increment): Fix spelling error in comment.
18348         * final.c (final_scan_insn): Likewise.
18349
18350 2008-03-20  Uros Bizjak  <ubizjak@gmail.com>
18351
18352         PR target/14552
18353         * config/i386/mmx.md (*mov<mode>_internal_rex64"): Adjust register
18354         allocator preferences for "y" and "r" class registers.
18355         ("*mov<mode>_internal"): Ditto.
18356         ("*movv2sf_internal_rex64"): Ditto.
18357         ("*movv2sf_internal"): Ditto.
18358
18359 2008-03-19  Michael Matz  <matz@suse.de>
18360
18361         PR middle-end/35616
18362         * calls.c (expand_call): Check overlap of arguments with call
18363         address for sibcalls.
18364
18365 2008-03-19  Uros Bizjak  <ubizjak@gmail.com>
18366
18367         PR target/35496
18368         * stor-layout.c (update_alignment_for_field): Set minimum alignment
18369         of the underlying type of a MS bitfield layout to the natural
18370         alignment of the type.
18371
18372 2008-03-19  Jan Hubicka  <jh@suse.cz>
18373
18374         PR other/35094
18375         * toplev.c (decode_d_option): Handle all CPP flags.
18376         * tree-vrp.c: Update tree_pass descriptors.
18377         * regrename.c: Update tree_pass descriptors.
18378         * fwprop.c: Update tree_pass descriptors.
18379         * doc/invoke.texi: Remove documentation of dropped -d? flags.
18380         * tree-into-ssa.c: Update tree_pass descriptors.
18381         * tree-dump.c: Update tree_pass descriptors.
18382         * tree-complex.c: Update tree_pass descriptors.
18383         * tree-dump.h: Update tree_pass descriptors.
18384         * see.c: Update tree_pass descriptors.
18385         * cgraphbuild.c: Update tree_pass descriptors.
18386         * tracer.c: Update tree_pass descriptors.
18387         * tree-loop-distribution.c: Update tree_pass descriptors.
18388         * cgraph.c: Update tree_pass descriptors.
18389         * postreload-gcse.c: Update tree_pass descriptors.
18390         * postreload.c: Update tree_pass descriptors.
18391         * tree-ssa-loop-ch.c: Update tree_pass descriptors.
18392         * tree-tailcall.c: Update tree_pass descriptors.
18393         * tree-pass.h (tree_opt_pass): Rename to ...
18394         (opt_pass) ... this one; add "type" field and remove letter field.
18395         (gimple_opt_pass, rtl_opt_pass, simple_ipa_opt_pass): New.
18396         (execute_pass_list, execute_ipa_pass_list, all_passes, all_ipa_passes,
18397         all_lowering_passes): Update declaration.
18398         * ipa-cp.c: Update tree_pass descriptors.
18399         * final.c: Update tree_pass descriptors.
18400         * omp-low.c: Update tree_pass descriptors.
18401         * tree-ssa-dse.c: Update tree_pass descriptors.
18402         * ipa-reference.c: Update tree_pass descriptors.
18403         * tree-ssa-uncprop.c: Update tree_pass descriptors.
18404         * auto-inc-dec.c: Update tree_pass descriptors.
18405         * reorg.c: Update tree_pass descriptors.
18406         * cgraphunit.c: Update tree_pass descriptors.
18407         * tree-ssa-copyrename.c: Update tree_pass descriptors.
18408         * tree-ssa-ccp.c: Update tree_pass descriptors.
18409         * df-core.c: Update tree_pass descriptors.
18410         * mode-switching.c: Update tree_pass descriptors.
18411         * tree-nomudflap.c: Update tree_pass descriptors.
18412         * modulo-sched.c: Update tree_pass descriptors.
18413         * ipa-pure-const.c: Update tree_pass descriptors.
18414         * cse.c: Update tree_pass descriptors.
18415         * web.c: Update tree_pass descriptors.
18416         * tree-stdarg.c: Update tree_pass descriptors.
18417         * tree-ssa-math-opts.c: Update tree_pass descriptors.
18418         * tree-ssa-dom.c: Update tree_pass descriptors.
18419         * tree-nrv.c: Update tree_pass descriptors.
18420         * tree-ssa-alias.c: Update tree_pass descriptors.
18421         * loop-init.c: Update tree_pass descriptors.
18422         * gimple-low.c: Update tree_pass descriptors.
18423         * ipa-inline.c: Update tree_pass descriptors.
18424         * tree-ssa-sink.c: Update tree_pass descriptors.
18425         * global.c: Update tree_pass descriptors.
18426         * ifcvt.c: Update tree_pass descriptors.
18427         * jump.c: Update tree_pass descriptors.
18428         * predict.c: Update tree_pass descriptors.
18429         * tree-ssa-loop.c: Update tree_pass descriptors.
18430         * recog.c: Update tree_pass descriptors.
18431         * dse.c: Update tree_pass descriptors.
18432         * tree-ssa-ifcombine.c: Update tree_pass descriptors.
18433         * tree-eh.c: Update tree_pass descriptors.
18434         * regmove.c: Update tree_pass descriptors.
18435         * local-alloc.c
18436         * function.c: Update tree_pass descriptors.
18437         * tree-vectorizer.c: Update tree_pass descriptors.
18438         * gcse.c: Update tree_pass descriptors.
18439         * ipa-type-escape.c: Update tree_pass descriptors.
18440         * tree-if-conv.c: Update tree_pass descriptors.
18441         * init-regs.c: Update tree_pass descriptors.
18442         * ipa.c: Update tree_pass descriptors.
18443         * tree-ssa-phiopt.c: Update tree_pass descriptors.
18444         * rtl-factoring.c: Update tree_pass descriptors.
18445         * lower-subreg.c: Update tree_pass descriptors.
18446         * bt-load.c: Update tree_pass descriptors.
18447         * tree-dfa.c: Update tree_pass descriptors.
18448         * except.c: Update tree_pass descriptors.
18449         * emit-rtl.c: Update tree_pass descriptors.
18450         * cfgexpand.c: Update tree_pass descriptors.
18451         * tree-cfgcleanup.c: Update tree_pass descriptors.
18452         * cfgcleanup.c: Update tree_pass descriptors.
18453         * tree-ssa-pre.c: Update tree_pass descriptors.
18454         * tree-sra.c: Update tree_pass descriptors.
18455         * tree-mudflap.c: Update tree_pass descriptors.
18456         * tree-ssa-copy.c: Update tree_pass descriptors.
18457         * cfglayout.c: Update tree_pass descriptors.
18458         * tree-ssa-forwprop.c: Update tree_pass descriptors.
18459         * tree-ssa-dce.c: Update tree_pass descriptors.
18460         * tree-ssa.c: Update tree_pass descriptors.
18461         * regclass.c: Update tree_pass descriptors.
18462         * integrate.c: Update tree_pass descriptors.
18463         * tree-optimize.c: Update tree_pass descriptors.
18464         * tree-ssa-phiprop.c: Update tree_pass descriptors.
18465         * tree-object-size.c: Update tree_pass descriptors.
18466         * combine.c: Update tree_pass descriptors.
18467         * tree-outof-ssa.c: Update tree_pass descriptors.
18468         * bb-reorder.c: Update tree_pass descriptors.
18469         * stack-ptr-mod.c: Update tree_pass descriptors.
18470         * var-tracking.c: Update tree_pass descriptors.
18471         * tree-profile.c: Update tree_pass descriptors.
18472         * tree-vect-generic.c: Update tree_pass descriptors.
18473         * reg-stack.c: Update tree_pass descriptors.
18474         * sched-rgn.c: Update tree_pass descriptors.
18475         * tree-ssa-structalias.c: Update tree_pass descriptors.
18476         * tree-cfg.c: Update tree_pass descriptors.
18477         * passes.c (current_pass): Update declaration.
18478         (finish_optimization_passes): Update.
18479         (all_passes, all_ipa_passes, all_lowering_passes): Update declaration.
18480         (register_one_dump_file, register_dump_files_1, next_pass_1):
18481         Update arguments.
18482         (init_optimization_passes): Update handling of new types.
18483         (execute_one_pass, execute_pass_list, execute_ipa_pass_list): Update.
18484         * ipa-struct-reorg.c: Update tree_pass descriptors.
18485         * tree-ssa-reassoc.c: Update tree_pass descriptors.
18486         * combine-stack-adj.c: Update tree_pass descriptors.
18487         * cfgrtl.c: Update tree_pass descriptors.
18488         * dce.c: Update tree_pass descriptors.
18489         * tree-ssanames.c: Update tree_pass descriptors.
18490
18491 2008-03-19  Richard Guenther  <rguenther@suse.de>
18492
18493         PR middle-end/35609
18494         * tree-ssa.c (walk_data): New structure.
18495         (warn_uninitialized_var): If not always_executed warn with "maybe"
18496         instead of "is".
18497         (execute_early_warn_uninitialized): Compute post-dominators.
18498         Initialize always_executed before processing each basic block.
18499
18500 2008-03-18  Mikulas Patocka  <mikulas@artax.karlin.mff.cuni.cz>
18501
18502         PR target/35504
18503         * config/i386/i386.c (x86_this_parameter): Calculate correct location
18504         of "this" pointer when "regparm = N" or "fastcall" is in effect.
18505
18506 2008-03-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18507
18508         * doc/include/texinfo.tex: Update to version 2008-03-17.10.
18509
18510 2008-03-18  Paolo Bonzini  <bonzini@gnu.org>
18511
18512         * expr.c (store_expr): Assume lang_hooks.reduce_bit_field_operations
18513         is true.
18514         (expand_expr_real_1) <REDUCE_BIT_FIELD>: Don't look at ignore.
18515         (expand_expr_real_1): Assume lang_hooks.reduce_bit_field_operations
18516         is true.  Add "&& !ignore" condition to reduce_bit_field.  Modify
18517         target after ignore has been set, and move there also the commputation
18518         of subtarget and original_target.
18519         * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Delete.
18520         (LANG_HOOKS_INITIALIZER): Remove it.
18521         * langhooks.h (struct lang_hooks): Remove reduce_bit_field_operations.
18522
18523 2008-03-18  Richard Guenther  <rguenther@suse.de>
18524
18525         * tree-ssa-sccvn.c (visit_reference_op_load): If the lookup
18526         found an expression with constants, note that in the VN for the lhs.
18527         * tree-ssa-pre.c (eliminate): Visit COND_EXPR statements and
18528         fold them to constants if possible.  Run cleanup_cfg if done so.
18529         (execute_pre): Return todo.
18530         (do_pre): Likewise.
18531         (execute_fre): Likewise.
18532         * tree-ssa-forwprop.c (can_propagate_from): Allow propagation
18533         of constants.
18534         (get_prop_source_stmt): Look through pointer conversions.
18535
18536 2008-03-18  Jan Hubicka  <jh@suse.cz>
18537
18538         * tree-pretty-print.c: Include predict.h.
18539         (dump_generic_node): Dump predictor.
18540         * tree.h (PREDICT_EXPR_OUTCOME, PREDICT_EXPR_PREDICTION): Update.
18541         * tree-gimple.c (is_gimple_stmt): Add PREDICT_EXPR.
18542         * gimple-low.c (lower_stmt): Likewise.
18543         * expr.c (expand_expr_real): Likewise.
18544         * predict.c (tree_bb_level_predictions): Use PREDICT_EXPRs and remove
18545         them.
18546         (build_predict_expr, build_predict_expr): New.
18547         * predict.h (predictor_name, build_predict_expr): Update.
18548         * c-typeck.c (c_finish_bc_stmt): Add prediction.
18549         * gimplify.c (gimplify_expr): Add PREDICT_EXPR.
18550         * predict.def (PRED_CONTINUE): Update hitrate.
18551         * tree.def (PREDICT_EXPR): Define.
18552         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark PREDICT_EXPR;
18553         do not handle BIND_EXPR.
18554         * tree-inline.c (estimate_num_insns_1): PREDICT_EXPR is free.
18555         * tree-cfg.c (verify_gimple_stmt): PREDICT_EXPR is valid.
18556         * tree-ssa-operands.c (get_expr_operands): PREDICT_EXPR takes no
18557         operands.
18558
18559 2008-03-18  Michael Matz  <matz@suse.de>
18560
18561         * gcov-io.h (__gcov_merge_ior, __gcov_fork): Mark hidden.
18562
18563 2008-03-18  Richard Guenther  <rguenther@suse.de>
18564
18565         * tree-gimple.h (is_gimple_invariant_address): Declare.
18566         (is_gimple_constant): Likewise.
18567         * tree-gimple.c (is_gimple_constant): New function.
18568         (is_gimple_invariant_address): Likewise.
18569         (is_gimple_min_invariant): Implement in terms of is_gimple_constant
18570         and is_gimple_invariant_address.
18571         * tree-ssa-loop-niter.c (expand_simple_operations): Revert
18572         previous change.
18573         * tree-data-ref.c (get_references_in_stmt): A SSA_NAME is not
18574         an addressable base.
18575
18576 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
18577
18578         PR middle-end/35611
18579         * gimplify.c (gimplify_expr): Gimplify second operand of
18580         OMP_ATOMIC_LOAD.
18581
18582 2008-03-17  Richard Guenther  <rguenther@suse.de>
18583
18584         PR tree-optimization/19637
18585         * fold-const.c (fold_unary): Remove restrictions of removing
18586         intermediate pointer-conversions (P2)(P1)P0.
18587         * tree-ssa-ccp.c (maybe_fold_stmt_addition): Recover from
18588         conversion to void pointer.
18589         (get_maxval_strlen): Handle addresses of the form &(*p)[0].
18590
18591 2008-03-16  James E. Wilson  <wilson@tuliptree.org>
18592
18593         PR debug/31510
18594         * dbxout.c (dbxout_expand_expr, case VAR_DECL): Return NULL for
18595         emulated thread local variables.
18596
18597 2008-03-16  Richard Guenther  <rguenther@suse.de>
18598
18599         PR middle-end/35607
18600         * tree-ssa-loop-niter.c (expand_simple_operations): Do not
18601         expand TREE_INVARIANT operations that are not gimple invariant.
18602
18603 2008-03-16  Hans-Peter Nilsson  <hp@axis.com>
18604
18605         * doc/extend.texi (Alignment): Say that the ABI controls
18606         the __alignof__ for non-strict-alignment targets rather
18607         than being a recommendation.
18608
18609 2008-03-15  Paul Brook  <paul@codesourcery.com>
18610
18611         * config/arm/arm.c (arm_unwind_emit): Suppress unused unwinding
18612         annotations.
18613         (arm_output_fn_unwind): Mark functions that can not be unwound.
18614
18615 2008-03-15  Paul Brook  <paul@codesourcery.com>
18616
18617         * config/arm/arm.c (arm_rtx_costs_1): Add costs for ARMv6 value
18618         extension instructions.
18619
18620 2008-03-15  Richard Guenther  <rguenther@suse.de>
18621
18622         * tree-ssa-ccp.c (ccp_fold): Also read from constant values
18623         and fold constant aggregate refs.
18624         (fold_const_aggregate_ref): Handle string constants
18625         and constructors in ARRAY_REFs.  Handle INDIRECT_REF.
18626         (evaluate_stmt): Simplify now that ccp_fold folds constant
18627         aggregate refs.
18628
18629 2008-03-15  Paul Brook  <paul@codesourcery.com>
18630
18631         * config/arm/arm.md (insv): Use gen_insv_t2 and gen_insv_zero.
18632         (extzv): Use gen_extzv_t2.
18633         (insv_t2, insv_zero, extv, extzv_t2): New patterns.
18634
18635 2008-03-15  Richard Guenther  <rguenther@suse.de>
18636
18637         * tree-ssa-ccp.c (get_symbol_constant_value): Export.
18638         (fold_const_aggregate_ref): Likewise.
18639         (get_value): Return NULL if we don't have any values.
18640         (ccp_finalize): Set const_val to NULL after freeing it.
18641         * tree-flow.h (get_symbol_constant_value): Declare.
18642         (fold_const_aggregate_ref): Likewise.
18643         * tree-ssa-sccvn.c (try_to_simplify): Use them.
18644
18645 2008-03-15  Richard Guenther  <rguenther@suse.de>
18646
18647         PR middle-end/35593
18648         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Make sure
18649         to not produce negative array indices if not allowed.  Add
18650         parameter to indicate that.
18651         (maybe_fold_offset_to_component_ref): Allow negative array
18652         indices only for the first member of a structure.
18653         (maybe_fold_offset_to_reference): Allow negative array indices.
18654         (maybe_fold_stmt_addition): Likewise.
18655
18656 2008-03-15  Bjoern Haase  <bjoern.m.haase@web.de>
18657             Anatoly Sokolov <aesok@post.ru>
18658
18659         * config/avr/avr.c (avr_arch_types): Add avr6 entry.
18660         (avr_arch): Add ARCH_AVR6.
18661         (avr_mcu_types): Add 'atmega2560' and 'atmega2561' entry.
18662         (initial_elimination_offset): Initialize and use 'avr_pc_size'
18663         instead of fixed value 2.
18664         (print_operand_address): Use gs() asm specifier instead of pm().
18665         (avr_assemble_integer): (Ditto.).
18666         (avr_output_addr_vec_elt): (Ditto.).
18667         (print_operand): Handle "!" code.
18668         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Add
18669         __AVR_3_BYTE_PC__, __AVR_2_BYTE_PC__ and __AVR_HAVE_JMP_CALL__.
18670         (AVR_HAVE_EIJMP_EICALL): Define.
18671         (AVR_3_BYTE_PC): Redefine.
18672         (AVR_2_BYTE_PC): (Ditto.).
18673         (PRINT_OPERAND_PUNCT_VALID_P): Add '!' code.
18674         (LINK_SPEC): Add atmega2560 and atmega2561.
18675         (CRT_BINUTILS_SPEC): Add atmega2560 (crtm2560.o) and atmega2561
18676         (crtm2561.o).
18677         * config/avr/avr.md (call_insn): Use eicall instead of icall
18678         for 3 byte PC devices.
18679         (call_value_insn): (Ditto.).
18680         (*tablejump_enh): Use eijmp instead of ijmp for 3 byte PC devices.
18681         (indirect_jump): Use only for for 2 byte PC devices.
18682         (*tablejump): (Ditto.).
18683         (*indirect_jump_avr6): Add insn.
18684         (*tablejump_rjmp): Don't use for 3 byte PC devices.
18685         * config/avr/libgcc.S (__prologue_saves__): Use eijmp
18686         instead of ijmp for 3 byte PC devices.
18687         (__tablejump2__): (Ditto.).
18688         * config/avr/t-avr (MULITLIB_OPTIONS): Add avr6 architecture.
18689         (MULITLIB_DIRNAMES): (Ditto.).
18690         (MULTILIB_MATCHES): Add atmega2560 and atmega2561 to list.
18691
18692 2008-03-15  Uros Bizjak  <ubizjak@gmail.com>
18693
18694         * config/i386/mmx.md ("sse2_umulv1siv2di3"): Rename from
18695         "sse2_umulsidi3".  Use V1DI mode for operand 0.
18696         ("mmx_psadbw"): Use V1DI mode for operand 0.
18697         * config/i386/i386-modes.def (V1SI): New vector mode.
18698         * config/i386/i386.c (struct builtin_description)
18699         [IX86_BUILTIN_PMULUDQ]: Use CODE_FOR_sse2_umulv1siv1di3.
18700         (v1di_ftype_v8qi_v8qi): Rename from di_ftype_v8qi_v8qi.
18701         (v1di_ftype_v2si_v2si): Rename from di_ftype_v2si_v2si.
18702         (ix86_init_mmx_sse_builtins) [__builtin_ia32_psadbw]: Use
18703         v1di_ftype_v8qi_v8qi type.
18704         [__builtin_ia32_pmuludq]: Use v1di_ftype_v2si_v2si type.
18705
18706         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psadbw,
18707         __builtin_ia32_pmuludq]: Fix the mode of return value.
18708
18709 2008-03-15  Richard Guenther  <rguenther@suse.de>
18710
18711         PR middle-end/35595
18712         * tree-ssa-pre.c (bitmap_find_leader): Handle expression
18713         being a PHI_NODE.
18714
18715 2008-03-14  Bob Wilson  <bob.wilson@acm.org>
18716
18717         * doc/invoke.texi (Option Summary, Xtensa Options): Document
18718         -mserialize-volatile and -mno-serialize-volatile Xtensa options.
18719         * config/xtensa/xtensa.c (print_operand): Do not emit MEMW instructions
18720         unless TARGET_SERIALIZE_VOLATILE is enabled.
18721         * config/xtensa/xtensa.md (*lsiu, *ssiu): Likewise.
18722         * config/xtensa/xtensa.h (TARGET_DEFAULT): Add MASK_SERIALIZE_VOLATILE.
18723         * config/xtensa/xtensa.opt (mserialize_volatile): New option.
18724
18725 2008-03-14  Richard Guenther  <rguenther@suse.de>
18726
18727         PR tree-optimization/34172
18728         * tree-flow.h (refs_may_alias_p): Declare.
18729         (get_single_def_stmt): Likewise.
18730         (get_single_def_stmt_from_phi): Likewise.
18731         (get_single_def_stmt_with_phi): Likewise.
18732         * tree-dfa.c (refs_may_alias_p): New function.
18733         (get_single_def_stmt): Likewise.
18734         (get_single_def_stmt_from_phi): Likewise.
18735         (get_single_def_stmt_with_phi): Likewise.
18736         * tree-ssa-sccvn.c (get_def_ref_stmt_vuses): New function.
18737         (vn_reference_lookup_1): New helper function.
18738         (vn_reference_lookup): Walk the virtual use-def chain to
18739         continue searching for a match if the def does not alias the
18740         reference we are looking for.
18741
18742 2008-03-14  David Edelsohn  <edelsohn@gnu.org>
18743
18744         * doc/install.texi (Binaries): Remove UCLA archive.  Add HVCC
18745         archive and Perzl.  Update The Written Word listing.
18746
18747 2008-03-14  Richard Guenther  <rguenther@suse.de>
18748
18749         PR tree-optimization/34043
18750         PR tree-optimization/33989
18751         * tree-ssa-pre.c (execute_pre): Allow SCCVN to do insertion
18752         when doing FRE.
18753         (bitmap_find_leader): Use extra argument to verify dominance
18754         relationship inside a basic-block.
18755         (can_PRE_operation): Add VIEW_CONVERT_EXPR.
18756         (find_leader_in_sets): Adjust.
18757         (create_component_ref_by_pieces): Take extra argument for
18758         dominance check, handle lookup failures.
18759         (find_or_generate_expression): Likewise.
18760         (create_expression_by_pieces): Likewise.
18761         (insert_into_preds_of_block): Adjust.
18762         (create_value_expr_from): If asked for, verify all operands
18763         are in the blocks AVAIL_OUT set.
18764         (make_values_for_stmt): Check for SSA_NAMEs that are life
18765         over an abnormal edge.
18766         (compute_avail): Remove such check.
18767         (do_SCCVN_insertion): New function.
18768         (eliminate): If we do not find a leader suitable for replacement
18769         insert a replacement expression from SCCVN if available.
18770         * tree-ssa-sccvn.h (run_scc_vn): Update prototype.
18771         (struct vn_ssa_aux): Add needs_insertion flag.
18772         * tree-ssa-sccvn.c (may_insert): New global flag.
18773         (copy_reference_ops_from_ref): Value-number union member access
18774         based on its size, not type and member if insertion is allowed.
18775         (visit_reference_op_load): For a weak match from union type
18776         punning lookup a view-converted value and insert a SSA_NAME
18777         for that value if that is not found.
18778         (visit_use): Make dumps shorter.  Do not disallow value numbering
18779         SSA_NAMEs that are life over an abnormal edge to constants.
18780         (free_scc_vn): Release inserted SSA_NAMEs.
18781         (run_scc_vn): New flag to specify whether insertion is allowed.
18782         Process SSA_NAMEs in forward order.
18783         * tree-ssa-loop-im.c (for_each_index): Handle invariant
18784         ADDR_EXPRs inside VIEW_CONVERT_EXPR.
18785         * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPRs from/to
18786         pointer type to/from integral types that do not change the
18787         precision to regular conversions.
18788
18789 2008-03-13  Uros Bizjak  <ubizjak@gmail.com>
18790
18791         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
18792         __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
18793         __builtin_ia32_psrl?i, __builtin_ia32_psra?i, __builtin_ia32_psll?128,
18794         __builtin_ia32_psrl?128, __builtin_ia32_psra?128]: Fix the mode of
18795         input arguments and the mode of return value.  Built-in functions
18796         that operate on whole 64-bit MMX register now use V1DI mode.
18797
18798 2008-03-13  Alon Dayan  <alond@il.ibm.com>
18799             Olga Golovanevsky  <olga@il.ibm.com>
18800
18801         PR tree-optimization/35041
18802         * ipa-struct-reorg.c (find_pos_in_stmt_1): Add another option
18803         to locate the right position in a statement.
18804
18805 2008-03-13  Uros Bizjak  <ubizjak@gmail.com>
18806
18807         PR target/34000
18808         PR target/35553
18809         * config/i386/xmmintrin.h:  Change all static inline functions to
18810         extern inline and add __gnu_inline__ attribute.
18811         * config/i386/bmintrin.h: Ditto.
18812         * config/i386/smmintrin.h: Ditto.
18813         * config/i386/tmmintrin.h: Ditto.
18814         * config/i386/mmintrin-common.h: Ditto.
18815         * config/i386/ammintrin.h: Ditto.
18816         * config/i386/emmintrin.h: Ditto.
18817         * config/i386/pmmintrin.h: Ditto.
18818         * config/i386/mmintrin.h: Ditto.
18819         * config/i386/mm3dnow.h: Ditto.
18820
18821 2008-03-13  Jakub Jelinek  <jakub@redhat.com>
18822
18823         PR middle-end/35185
18824         * omp-low.c (lower_regimplify, init_tmp_var, save_tmp_var): Removed.
18825         (lower_omp_2): New function.
18826         (lower_omp_1, lower_omp): Rewritten.
18827
18828 2008-03-13  Danny Smith  <dannysmith@users.sourceforge.net>
18829
18830         PR 35054
18831         * doc/extend.texi (Structure-Packing Pragmas): Replace "Win32"
18832         with the phrase "Microsoft Windows compilers".
18833         (Push/Pop Macro Pragmas): New subsection. Document
18834         #pragma push_macro and pragma pop_macro.
18835
18836 2008-03-12  Paul Brook  <paul@codesourcery.com>
18837
18838         * config/arm/arm.c (output_move_double): Prefer LDRD to LDM.
18839
18840 2008-03-12  Paul Brook  <paul@codesourcery.com>
18841
18842         * config/arm/thumb2.md: Extend peephole to cover 3-arg subs.
18843         (thumb2_alusi3_short): Exclude PLUS and MINUS.
18844         (thumb2_addsi_shortim): Rename ...
18845         (thumb2_addsi_short): ... to this.  Allow register operands.
18846         (thumb2_subsi_short): New pattern.
18847         (thumb2_one_cmplsi2_short,
18848         thumb2_negsi2_short): New patterns and peepholes.
18849
18850 2008-03-12  Paul Brook  <paul@codesourcery.com>
18851
18852         * config/arm/arm.c (arm_size_rtx_costs): Use ARM costs for Thumb-2.
18853
18854 2008-03-12  Uros Bizjak  <ubizjak@gmail.com>
18855
18856         * config/i386/i386.md (int_cond): New code iterator.
18857         (fp_cond): Ditto.
18858         ("s<code>"): Macroize expander from seq, sne, sgt, sgtu, slt, sltu,
18859         sge, sgeu, sle and sleu expanders usign int_cond code iterator.
18860         ("s<code>"): Macroize expander from sunordered, sordered, suneq, sunge,
18861         sungt, sunle, sunlt and sltgt expanders usign fp_cond code iterator.
18862         ("b<code>"): Macroize expander from beq, bne, bgt, bgtu, blt, bltu,
18863         bge, bgeu, ble and bleu expanders usign int_cond code iterator.
18864         ("b<code>"): Macroize expander from bunordered, bordered, buneq, bunge,
18865         bungt, bunle, bunlt and bltgt expanders usign fp_cond code iterator.
18866
18867 2008-03-12  Paul Brook  <paul@codesourcery.com>
18868
18869         * config/arm/arm.c (use_return_insn): Use offsets->saved_regs_mask
18870         instead of {arm,thumb}_compute_save_reg_mask.
18871         (output_return_instruction): Ditto.
18872         (thumb_unexpanded_epilogue): Ditto.
18873         (thumb1_expand_prologue): Ditto.
18874         (thumb1_output_function_prologue): Ditto.
18875         (arm_set_return_address): Ditto.
18876         (thumb_set_return_address): Ditto.
18877         (arm_get_frame_offsets): Set offsets->saved_regs_mask.  Push extra
18878         regs to achieve stack alignment.
18879         (thumb1_compute_save_reg_mask): Fix compiler warning.
18880         (arm_output_epilogue): Use offsets->saved_regs_mask.
18881         Adjust stack pointer by poping call clobered registers.
18882         (arm_expand_prologue): Use offsets->saved_regs_mask.
18883         Adjust stack pointer by pushing extra registers.
18884         * config/arm.h (arm_stack_offsets): Add saved_regs_mask.
18885
18886 2008-03-12  Paolo Bonzini  <bonzini@gnu.org>
18887
18888         PR tree-opt/35422
18889         * fold-const.c (fold_unary) <NOP_EXPR>: Distribute a narrowing
18890         conversion to the operands of a multiplication.
18891
18892 2008-03-12  Richard Guenther  <rguenther@suse.de>
18893
18894         * Makefile.in (OBJS-common): Add tree-ssa-phiprop.o
18895         (tree-ssa-phiprop.o): Copy dependencies from tree-ssa-forwprop.o.
18896         * timevar.def (TV_TREE_PHIPROP): Add.
18897         * tree-ssa-phiprop.c: Split from tree-ssa-forwprop.c, added
18898         pass description.  Use TV_TREE_PHIPROP.
18899         * tree-ssa-forwprop.c: Remove phiprop code.
18900
18901 2008-03-12  Jakub Jelinek  <jakub@redhat.com>
18902
18903         PR middle-end/35549
18904         * omp-low.c (maybe_lookup_decl): Constify first argument.
18905         (use_pointer_for_field): Change last argument from bool to
18906         omp_context *.  Disallow shared copy-in/out in nested
18907         parallel if decl is shared in outer parallel too.
18908         (build_outer_var_ref, scan_sharing_clauses,
18909         lower_rec_input_clauses, lower_copyprivate_clauses,
18910         lower_send_clauses, lower_send_shared_vars): Adjust callers.
18911
18912 2008-03-12  Victor Kaplansky  <victork@il.ibm.com>
18913             Ira Rosen  <irar@il.ibm.com>
18914
18915         * tree-vectorizer.c (free_stmt_vec_info): New function.
18916         (destroy_loop_vec_info): Move code to free_stmt_vec_info().
18917         Call free_stmt_vec_info(). Free LOOP_VINFO_STRIDED_STORES..
18918         * tree-vectorizer.h (free_stmt_vec_info): Declare.
18919         * tree-vect-transform.c (vectorizable_conversion): Free
18920         vec_oprnds0 if it was allocated.
18921         (vect_permute_store_chain): Remove unused VECs.
18922         (vectorizable_store): Free VECs that are allocated in the..
18923         function.
18924         (vect_transform_strided_load, vectorizable_load): Likewise.
18925         (vect_remove_stores): Simplify the code.
18926         (vect_transform_loop): Move code to vect_remove_stores().
18927         Call vect_remove_stores() and free_stmt_vec_info().
18928
18929 2008-03-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
18930
18931         * pa.h (TARGET_LONG_PIC_SDIFF_CALL): Conditionalize define on
18932         TARGET_HPUX.  Revise comment.
18933         (TARGET_LONG_PIC_PCREL_CALL): Revise comment.
18934         * pa.c (output_call): Update for revised TARGET_LONG_PIC_SDIFF_CALL.
18935         Use sr4 variant of `be' instruction when not generating PIC code.
18936         (attr_length_call): Adjust for above change.
18937
18938 2008-03-11  Andrew Pinski  <andrew_pinski@playstation.sony.com>
18939
18940         * ipa-reference.c (static_execute): Remove module_statics_const and
18941         associated setting code.
18942
18943 2008-03-11  Uros Bizjak  <ubizjak@gmail.com>
18944
18945         PR target/35540
18946         * config/i386/i386.md (paritysi2, paritydi2): Use register_operand
18947         predicate for operand 1.
18948         (paritysi2_cmp): Use register_operand predicate for operand 2.
18949         Use earlyclobber modifier for operand 1.  Remove support for
18950         memory operands.
18951         (paritydi2_cmp): Use register_operand predicate for operand 3.
18952         Use earlyclobber modifier for operand 1.  Remove support for
18953         memory operands.
18954
18955 2008-03-11  Paul Brook  <paul@codesourcery.com>
18956             Vladimir Prus  <vladimir@codesourcery.com>
18957
18958         * config/arm/arm.c (use_return_insn): Check TARGET_APCS_FRAME.
18959         (arm_compute_save_reg0_reg12_mask): Always
18960         check if register 11 must be saved.  Always safe hard frame pointer
18961         when frame_pointer_needeed.
18962         (arm_compute_save_reg_mask): Save IP and PC
18963         only with apcs frames.
18964         (arm_output_epilogue): Adjust Thumb2 codepath to
18965         be also invoked and work for ARM non-apcs frames.
18966         (arm_expand_prologue): Don't bother saving IP
18967         for non-apcs frame, since it's not clobbered by
18968         prologue code.  Implement non-apcs frame
18969         layout.
18970
18971 2008-03-11  Paolo Bonzini  <bonzini@gnu.org>
18972
18973         PR rtl-optimization/35281
18974         * expr.c (convert_move): Use a new pseudo for the intermediate
18975         from_mode->word_mode result.
18976
18977 2008-03-11  Paolo Bonzini  <bonzini@gnu.org>
18978
18979         * langhooks-def.h (LANG_HOOKS_CLEAR_BINDING_STACK): Delete.
18980         * langhooks.h (struct lang_hooks): Delete clear_binding_stack member.
18981         * toplev.c (compile_file): Don't call it.
18982
18983 2008-03-11  Uros Bizjak  <ubizjak@gmail.com>
18984
18985         PR middle-end/35526
18986         * expr.c (store_expr): Call emit_block_move if the mode
18987         of "temp" RTX is BLKmode.
18988
18989 2008-03-11  Andrew Pinski  <andrew_pinski@playstation.sony.com>
18990             Richard Guenther  <rguenther@suse.de>
18991
18992         PR tree-optimization/31358
18993         * tree-ssa-loop-manip.c (create_iv): Call force_gimple_operand for
18994         the step with a NULL_TREE.
18995         * tree-ssa-loop-ivopts.c (find_bivs): Convert the step
18996         to sizetype if type is a pointer type.
18997         (add_candidate_1): Don't convert the base and step to
18998         the generic type if the orginal type is a pointer type.
18999         (add_iv_value_candidates): Use sizetype for the step
19000         if type is a pointer type.
19001         (cand_value_at): Likewise.
19002         * tree-ssa-address.c (add_to_parts): Use POINTER_PLUS_EXPR
19003         for pointer types.
19004         * tree-affine.c (tree_to_aff_combination <POINTER_PLUS_EXPR>):
19005         Don't convert the tem affine to the type.
19006         (add_elt_to_tree): Use sizetype for the step if a pointer.
19007         Use POINTER_PLUS_EXPR for pointers.
19008         (aff_combination_to_tree): Use sizetype for the step if a
19009         pointer.
19010
19011 2008-03-10  Vladimir Makarov  <vmakarov@redhat.com>
19012
19013         * config/i386/sse.md (ssse3_pmaddubswv8hi3, ssse3_pmaddubswv4hi3):
19014         Remove commutativity hint.
19015
19016 2008-03-10  Jakub Jelinek  <jakub@redhat.com>
19017
19018         PR c/35438
19019         PR c/35439
19020         * c-parser.c (c_parser_omp_threadprivate): Don't add vars with
19021         errorneous type.  Check that v is a VAR_DECL.
19022
19023         PR middle-end/35099
19024         * tree-cfg.c (new_label_mapper): Update cfun->last_label_uid.
19025
19026 2008-03-10  H.J. Lu  <hongjiu.lu@intel.com>
19027
19028         PR tree-optimization/35494
19029         * tree-ssa-ccp.c (get_symbol_constant_value): Check if value
19030         may be overriden at link and run time.
19031
19032 2008-03-10  Richard Guenther  <rguenther@suse.de>
19033
19034         PR tree-optimization/34677
19035         * tree-ssa-pre.c (modify_expr_node_pool): Remove.
19036         (poolify_tree): Likewise.
19037         (modify_expr_template): Likewise.
19038         (poolify_modify_stmt): Likewise.
19039         (insert_fake_stores): Handle all component-ref style stores
19040         in addition to INDIRECT_REF.  Also handle complex types.
19041         Do not poolify the inserted load.
19042         (realify_fake_stores): Do not rebuild the tree but only
19043         make it a SSA_NAME copy.
19044         (init_pre): Remove initialzation of modify_expr_template.
19045         Do not allocate modify_expr_node_pool.
19046         (fini_pre): Do not free modify_expr_node_pool.
19047
19048 2008-03-10  Paul Brook  <paul@codesourcery.com>
19049
19050         * config/arm/arm.md (UNSPEC_STACK_ALIGN, UNSPEC_PIC_OFFSET): Renumber
19051         to avoid conflicts.
19052
19053 2008-03-10  Paul Brook  <paul@codesourcery.com>
19054             Mark Shinwell  <shinwell@codesourcery.com>
19055
19056         * config/arm/cortex-r4.md: New.
19057         * config/arm/thumb2.md (divsi3, udivsi3): Annotate with
19058         insn attributes.
19059         * config/arm/arm.md: Include cortex-r4.md.
19060         (insn): Add smmls, sdiv and udiv values.
19061         (generic_sched): Don't use generic scheduling for Cortex-R4.
19062         (arm_issue_rate): New function.
19063         (TARGET_SCHED_ISSUE_RATE): Define.
19064
19065 2008-03-10  Sebastian Pop  <sebastian.pop@amd.com>
19066
19067         * doc/invoke.texi (-ftree-loop-distribution): Add an example.
19068
19069 2008-03-10  Richard Guenther  <rguenther@suse.de>
19070
19071         * tree-ssa-pre.c (get_sccvn_value): Simplify.
19072         (compute_avail): Do not add stmt uses to AVAIL_OUT.
19073
19074 2008-03-10  Paolo Bonzini  <bonzini@gnu.org>
19075
19076         * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS):
19077         Set default to true.
19078
19079 2008-03-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19080
19081         * c.opt (Wsynth): Deprecate.
19082         * doc/invoke.texi (Option Summary, Warning Options): Document
19083         -Wno-format-contains-nul.
19084
19085 2008-03-09  Uros Bizjak  <ubizjak@gmail.com>
19086
19087         PR target/35496
19088         * config/i386/i386.c (ix86_constant_alignment): Compute alignment using
19089         ALIGN_MODE_128 for VECTOR_CST and INTEGER_CST in addition to REAL_CST.
19090
19091 2008-03-09  Ira Rosen  <irar@il.ibm.com>
19092
19093         * config/rs6000/rs6000.c (builtin_description): Rename vector
19094         left shift operations.
19095         * config/rs6000/altivec.md (UNSPEC_VSL): Remove.
19096         (altivec_vsl<VI_char>): Rename to ...
19097         (ashl<mode>3): ... new name.
19098         (mulv4sf3, mulv4si3, negv4sf2): Replace gen_altivec_vslw with
19099         gen_ashlv4si3.
19100         (absv4sf2): Convert to use ashift:V4SI instead of UNSPEC_VSL.
19101
19102 2008-03-08  Richard Guenther  <rguenther@suse.de>
19103
19104         * coverage.h (tree_coverage_counter_addr): Declare.
19105         * coverage.c (tree_coverage_counter_addr): New function.
19106         * tree-profile.c (tree_gen_edge_profiler): Unshare counter
19107         before using again.
19108         (tree_gen_pow2_profiler): Use tree_coverage_counter_addr.
19109         (tree_gen_one_value_profiler): Likewise.
19110         (tree_gen_ic_profiler): Likewise.
19111         (tree_gen_average_profiler): Likewise.
19112         (tree_gen_ior_profiler): Likewise.
19113
19114 2008-03-08  Richard Guenther  <rguenther@suse.de>
19115
19116         * tree-ssa-sccvn.h (vn_binary_op_lookup): Remove.
19117         (vn_binary_op_insert): Likewise.
19118         (vn_unary_op_lookup): Likewise.
19119         (vn_unary_op_insert): Likewise.
19120         (vn_nary_op_lookup): Declare.
19121         (vn_nary_op_insert): Likewise.
19122         * tree-ssa-sccvn.c (struct vn_tables_s): Merge unary
19123         and binary hashes, use a single obstack for unary_op_pool
19124         and binary_op_pool.
19125         (struct vn_binary_op_s, struct vn_unary_op_s): Replace with
19126         a single struct vn_nary_op_s.  Store tree code length and
19127         a variable number of operands.
19128         (struct vn_reference_op_struct): Remove unused op2.
19129         (vn_reference_op_eq): Do not compare op2.
19130         (vn_reference_op_compute_hash): Do not compute hash of op2.
19131         (vn_unary_op_hash, vn_binary_op_hash): Replace with vn_nary_op_hash.
19132         (vn_unary_op_compute_hash, vn_binary_op_compute_hash): Replace
19133         with vn_nary_op_compute_hash.
19134         (vn_unary_op_eq, vn_binary_op_eq): Replace with vn_nary_op_eq.
19135         (vn_unary_op_lookup, vn_binary_op_lookup): Replace with
19136         vn_nary_op_lookup.
19137         (vn_unary_op_insert, vn_binary_op_insert): Replace with
19138         vn_nary_op_insert.
19139         (visit_unary_op): Call nary functions.
19140         (visit_binary_op): Likewise.
19141         (process_scc): Adjust for struct vn_tables_s changes.
19142         (allocate_vn_table): Likewise.
19143         (free_vn_table): Likewise.
19144         * tree-vn.c (vn_add): Call nary functions.
19145         (vn_lookup): Likewise.
19146
19147 2008-03-08  Jakub Jelinek  <jakub@redhat.com>
19148
19149         PR target/35498
19150         * config/rs6000/rs6000.c (rs6000_expand_compare_and_swapqhi): Shift
19151         wdst back after sync_compare_and_swapqhi_internal.
19152
19153 2008-03-08  Uros Bizjak  <ubizjak@gmail.com>
19154
19155         PR target/22152
19156         * config/i386/i386-modes.def (V1DI): New vector mode.
19157         * config/i386/i386.h (VALID_MMX_REG_MODE): Add V1DImode.
19158         * config/i386/mmx.md (MMXMODEI8): New mode iterator.
19159         (MMXMODE248): Ditto.
19160         (MMXMODE): Add V1DI mode.
19161         (mmxvecsize): Change DI mode to V1DI mode.
19162         ("mov<mode>): Use MMXMODEI8 mode iterator.
19163         ("*mov<mode>_internal_rex64"): Ditto.
19164         ("*mov<mode>_internal"): Ditto.
19165         ("mmx_add<mode>3"): Ditto.  Handle V1DImode for TARGET_SSE2.
19166         ("mmx_sub<mode>3"): Ditto.
19167         ("mmx_adddi3"): Remove insn pattern.
19168         ("mmx_subdi3"): Ditto.
19169         ("mmx_ashr<mode>3"): Use SImode and "yN" constraint for operand 2.
19170         ("mmx_lshr<mode>3"): Ditto. Use MMXMODE248 mode iterator.
19171         ("mmx_ashl<mode>3"): Ditto.
19172         ("mmx_lshrdi3"): Remove insn pattern.
19173         ("mmx_ashldi3"): Ditto.
19174         * config/i386/i386.c (classify_argument): Handle V1DImode.
19175         (function_arg_advance_32): Ditto.
19176         (function_arg_32): Ditto.
19177         (struct builtin_description) [IX86_BUILTIN_PADDQ]: Use
19178         mmx_addv1di3 insn pattern.
19179         [IX86_BUILTIN_PSUBQ]: Use mmx_subv1di3 insn pattern.
19180         [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?, IX86_BUILTIN_PSRA?,
19181         IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I, IX86_BUILTIN_PSRA?I,
19182         IX86_BUILTIN_PSLL?I128, IX86_BUILTIN_PSRL?I128, IX86_BUILTIN_PSRA?I128]:
19183         Remove definitions of built-in functions.
19184         (V1DI_type_node): New node.
19185         (v1di_ftype_v1di_int): Ditto.
19186         (v1di_ftype_v1di_v1di): Ditto.
19187         (v2si_ftype_v2si_si): Ditto.
19188         (v4hi_ftype_v4hi_di): Remove node.
19189         (v2si_ftype_v2si_di): Ditto.
19190         (ix86_init_mmx_sse_builtins): Handle V1DImode.
19191         (__builtin_ia32_psll?, __builtin_ia32_psrl?, __builtin_ia32_psra?):
19192         Redefine builtins using def_builtin_const with *_ftype_*_int node.
19193         (__builtin_ia32_psll?i, __builtin_ia32_psrl?i, __builtin_ia32_psra?i):
19194         Add new builtins using def_builtin_const.
19195         (ix86_expand_builtin) [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?,
19196         IX86_BUILTIN_PSRA?, IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I,
19197         IX86_BUILTIN_PSRA?I]: Handle builtin definitions.
19198         * config/i386/mmintrin.h (__v1di): New typedef.
19199         (_mm_add_si64): Cast arguments to __v1di type.
19200         (_mm_sub_si64): Ditto.
19201         (_mm_sll_pi16): Cast __count to __v4hi type.
19202         (_mm_sll_pi32): Cast __count to __v2si type.
19203         (_mm_sll_si64): Cast arguments to __v1di type.
19204         (_mm_srl_pi16): Cast __count to __v4hi type.
19205         (_mm_srl_pi32): Cast __count to __v2si type.
19206         (_mm_srl_si64): Cast arguments to __v1di type.
19207         (_mm_sra_pi16): Cast __count to __v4hi type.
19208         (_mm_sra_pi32): Cast __count to __v2si type.
19209         (_mm_slli_pi16): Use __builtin_ia32_psllwi.
19210         (_mm_slli_pi32): Use __builtin_ia32_pslldi.
19211         (_mm_slli_si64): Use __builtin_ia32_psllqi. Cast __m to __v1di type.
19212         (_mm_srli_pi16): Use __builtin_ia32_psrlwi.
19213         (_mm_srli_pi32): Use __builtin_ia32_psrldi.
19214         (_mm_srli_si64): Use __builtin_ia32_psrlqi. Cast __m to __v1di type.
19215         (_mm_srai_pi16): Use __builtin_ia32_psrawi.
19216         (_mm_srai_pi32): Use __builtin_ia32_psradi.
19217         * config/i386/i386.md (UNSPEC_NOP): Remove unspec definition.
19218         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
19219         __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
19220         __builtin_ia32_psrl?i, __builtin_ia32_psra?i]: Add new builtins.
19221
19222 2008-03-07  Joseph Myers  <joseph@codesourcery.com>
19223
19224         * doc/include/texinfo.tex: Update to version 2008-03-07.10.
19225
19226 2008-03-07  Peter Bergner  <bergner@vnet.ibm.com>
19227
19228         PR target/35373
19229         * config/rs6000/rs6000.c (rs6000_legitimize_address): Don't generate
19230         reg+const addressing for Altivec modes.  Don't generate reg+reg
19231         addressing for TFmode or TDmode quantities.
19232
19233 2008-03-07  Paolo Bonzini  <bonzini@gnu.org>
19234
19235         * c-common.c (vector_types_convertible_p): Call langhook
19236         instead of comptypes.
19237
19238 2008-03-06  Andrew Pinski  <andrew_pinski@playstation.sony.com>
19239
19240         PR tree-opt/35402
19241         * tree-ssa-ccp.c (get_symbol_constant_value): Handle
19242         integral and scalar float variables which have a
19243         NULL DECL_INITIAL.
19244
19245 2008-03-06  Nathan Froyd  <froydnj@codesourcery.com>
19246
19247         * dwarf2out.c (dwarf2out_frame_debug_expr): Consult the
19248         dwarf_register_span hook when emitting unwind information for
19249         register-to-memory saves.
19250         * config/rs6000/rs6000.c (spe_synthesize_frame): Delete.
19251         (rs6000_frame_related): Remove call to spe_synthesize_frame.
19252
19253 2008-03-06  Jakub Jelinek  <jakub@redhat.com>
19254
19255         * gimplify.c (goa_lhs_expr_p): Allow different ADDR_EXPR nodes
19256         for the same VAR_DECL.
19257
19258 2008-03-06  Tom Tromey  <tromey@redhat.com>
19259
19260         * treelang: Delete.
19261         * doc/standards.texi (Standards): Don't mention treelang.
19262         * doc/invoke.texi (Overall Options): Don't mention treelang.
19263         * doc/install.texi (Prerequisites): Don't mention bison or
19264         treelang.
19265         (Configuration): Don't mention treelang.
19266         (Building): Likewise.
19267         * doc/frontends.texi (G++ and GCC): Don't mention treelang.
19268
19269 2008-03-06  Paolo Bonzini  <bonzini@gnu.org>
19270
19271         * simplify-rtx.c (simplify_subreg): Remove useless shifts from
19272         word-extractions out of a multi-word object.
19273
19274 2008-03-06  Richard Guenther  <rguenther@suse.de>
19275
19276         * tree.def (BIT_FIELD_REF): Constrain result type and its precision.
19277         * tree-cfg.c (verify_expr): Verify BIT_FIELD_REF constraints on
19278         result type and precision.
19279         * expr.c (get_inner_reference): Set unsignedp based on the result
19280         type of BIT_FIELD_REF.
19281         * tree.h (BIT_FIELD_REF_UNSIGNED): Remove.
19282         * tree-sra.c (instantiate_element): Do not set BIT_FIELD_REF_UNSIGNED.
19283         (try_instantiate_multiple_fields): Likewise.  Use the correct type
19284         for BIT_FIELD_REF.
19285         (sra_build_assignment): Likewise.
19286         (sra_build_elt_assignment): Likewise.
19287         (sra_explode_bitfield_assignment): Likewise.
19288         * print-tree.c (print_node): Do not check BIT_FIELD_REF_UNSIGNED.
19289         * tree-vect-transform.c (vect_create_epilog_for_reduction): Do not
19290         set BIT_FIELD_REF_UNSIGNED.
19291         (vectorizable_load): Likewise.
19292
19293 2008-03-06  Andreas Krebbel  <krebbel1@de.ibm.com>
19294
19295         * cse.c (cse_extended_basic_block): Invalidate artificial defs
19296         at bb start.
19297
19298 2008-03-06  Richard Guenther  <rguenther@suse.de>
19299
19300         * alias.c (struct alias_set_entry): Move has_zero_child field
19301         to pack with alias_set.
19302
19303 2008-03-05  H.J. Lu  <hongjiu.lu@intel.com>
19304
19305         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
19306         32bit host.
19307
19308 2008-03-05  Ian Lance Taylor  <iant@google.com>
19309
19310         * alias.h (alias_set_type): Change from HOST_WIDE_INT to int.
19311
19312 2008-03-05  Kenneth Zadeck  <zadeck@naturalbridge.com>
19313
19314         * fwprop.c (update_df): Support width and offset parameters of
19315         df_ref_create.
19316         * ra-conflict.c (mark_reg_store, clear_reg_in_live,
19317         global_conflicts): Change DF_REF_EXTRACT to either
19318         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
19319         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
19320         * df-scan.c (df_ref_record, df_defs_record,
19321         df_ref_create_structure, df_def_record_1, df_uses_record,
19322         df_get_conditional_uses, df_get_call_refs, df_insn_refs_collect,
19323         df_bb_refs_collect, df_entry_block_defs_collect,
19324         df_exit_block_uses_collect): Support new width and offset fields.
19325         (ref_extract_pool): New storage pool.
19326         (df_free_ref): New function.
19327         (df_reg_chain_unlink, df_free_collection_rec,
19328         df_sort_and_compress_refs): Call df_free_ref.
19329         (df_ref_equal_p, df_ref_compare): Compare offset and width fields
19330         of df_ref_extract.
19331         (df_ref_create_structure): Allocate df_ref_extract if offset and
19332         width fields are used.
19333         (df_def_record_1): Get offset and width from ZERO_EXTRACT.
19334         (df_uses_record): Get offset and width from ZERO_EXTRACT
19335         and SIGN_EXTRACT.
19336         * global.c (build_insn_chain): Change DF_REF_EXTRACT to either
19337         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
19338         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
19339         * df.h (df_ref_flags): Change DF_REF_EXTRACT to either
19340         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
19341         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
19342         (df_ref_extract): New structure.
19343         (DF_REF_WIDTH, DF_REF_OFFSET): New macros.
19344         (df_ref_create): Add width and offset parameters.
19345
19346 2008-03-05  Richard Guenther  <rguenther@suse.de>
19347
19348         * tree-ssa-structalias.c (get_constraint_for_component_ref):
19349         Use ranges_overlap_p.
19350         (offset_overlaps_with_access): Rename
19351         to ranges_overlap_p and move ...
19352         * tree-flow-inline.h (ranges_overlap_p): ... here.
19353
19354         * tree.h (get_inner_reference, handled_component_p): Update
19355         comments.
19356
19357         * tree.h (record_component_aliases, get_alias_set,
19358         alias_sets_conflict_p, alias_sets_must_conflict_p,
19359         objects_must_conflict_p): Move declarations ...
19360         * alias.h (record_component_aliases, get_alias_set,
19361         alias_sets_conflict_p, alias_sets_must_conflict_p,
19362         objects_must_conflict_p): ... here.
19363         Include coretypes.h.
19364         * Makefile.in (ALIAS_H): Add coretypes.h dependency.
19365
19366 2008-03-05  Aldy Hernandez  <aldyh@redhat.com>
19367
19368         * cfg.c: Include tree-flow.h.
19369         (remove_edge_raw): Call redirect_edge_var_map_clear.
19370         (redirect_edge_succ_nodup): Call redirect_edge_var_map_dup.
19371         * tree-flow-inline.h (redirect_edge_var_map_def): New.
19372         (redirect_edge_var_map_result): New.
19373         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Replace
19374         PENDING_STMT use with redirect_edge_var_map_*.
19375         * tree-ssa.c (edge_var_maps): New definition.
19376         (redirect_edge_var_map_add): New.
19377         (redirect_edge_var_map_clear): New.
19378         (redirect_edge_var_map_dup): New.
19379         (redirect_edge_var_map_vector): New.
19380         (redirect_edge_var_map_destroy): New.
19381         (ssa_redirect_edge): Replace PENDING_STMT use with
19382         redirect_edge_var_map_*.
19383         (flush_pending_stmts): Same.
19384         (delete_tree_ssa): Destroy edge var map.
19385         * tree-flow.h (struct _edge_var_map): New.
19386         Define edge_var_map vector type.
19387         Declare redirect_edge_var_map_* prototypes.
19388         * Makefile.in (cfg.o): Depend on TREE_FLOW_H.
19389         * tree-cfg.c (reinstall_phi_args): Replace
19390         PENDING_STMT use with redirect_edge_var_map_*.
19391
19392 2008-03-05  Richard Guenther  <rguenther@suse.de>
19393
19394         PR tree-optimization/35472
19395         * tree-ssa-dse.c (dse_optimize_stmt): Do not delete a store
19396         whose single use_stmt has a overlapping set of loaded and
19397         stored symbols as that use_stmt might be a noop assignment then.
19398
19399 2008-03-05  Joel Sherrill <joel.sherrill@oarcorp.com>
19400
19401         * gthr-rtems.h: Implement __gthread_mutex_destroy.
19402
19403 2008-03-05  Richard Guenther  <rguenther@suse.de>
19404
19405         PR c++/35336
19406         * tree.def (BIT_FIELD_REF): Document that operands 1 and 2
19407         should be constants.
19408         * tree-cfg.c (verify_expr): Verify it.
19409         * fold-const.c (fold_truthop): Remove code generating
19410         BIT_FIELD_REFs of structure bases.
19411         (fold_binary): Likewise.
19412         (fold_ternary): Position and size of BIT_FIELD_REFs are
19413         always host integers.
19414         (make_bit_field_ref): Remove.
19415         (optimize_bit_field_compare): Remove.
19416         (all_ones_mask_p): Remove.
19417
19418 2008-03-05  Gabor Loki  <loki@gcc.gnu.org>
19419
19420         PR gcc/33009
19421         * rtl-factoring.c (clear_regs_live_in_seq): Fix backward steps.
19422         (split_block_and_df_analyze): New. Split basic block and rebuild
19423         dataflow.
19424         (block_label_after): Use SPLIT_BLOCK_AND_DF_ANALYZE instead of
19425         SPLIT_BLOCK.
19426         (split_pattern_seq): Likewise.
19427         (erase_matching_seqs): Likewise.
19428         (split_pattern_seq): Skip return insn in case of REG_NORETURN note.
19429
19430 2008-03-04  Geoff Keating  <geoffk@apple.com>
19431
19432         * fold-const.c (tree_single_nonnegative_warnv_p): Fix mixed
19433         declaration and code.
19434         (tree_invalid_nonnegative_warnv_p): Likewise.
19435
19436 2008-03-05  Serge Belyshev  <belyshev@depni.sinp.msu.ru>
19437
19438         * doc/install.texi (Testing): Correct quoting for the RUNTESTFLAGS
19439         examples.  Truncate option-names then causing overfull hbox.
19440
19441 2008-03-04  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
19442
19443         PR target/35222
19444         * configure.ac (CONFIG_SJLJ_EXCEPTIONS): Force SJLJ exceptions
19445         on hpux10.
19446         * configure: Rebuilt.
19447
19448 2008-03-04  Rafael Espíndola  <espindola@google.com>
19449
19450         * fold-const.c (tree_simple_nonnegative_warnv_p): New.
19451         (tree_unary_nonnegative_warnv_p): New.
19452         (tree_binary_nonnegative_warnv_p): New.
19453         (tree_single_nonnegative_warnv_p): New.
19454         (tree_invalid_nonnegative_warnv_p): New.
19455         (tree_expr_nonnegative_warnv_p): Redefine in term of the new functions.
19456
19457 2008-03-04  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
19458
19459         PR 28322
19460         * opts.c (handle_option): Postpone 'unknown option' errors only for
19461         warning options.
19462
19463 2008-03-04  H.J. Lu  <hongjiu.lu@intel.com>
19464
19465         PR target/35453
19466         * config/i386/smmintrin.h (SIDD_XXX): Renamed to ...
19467         (_SIDD_XXX): This.
19468
19469 2008-03-04  Rafael Espíndola  <espindola@google.com>
19470
19471         * fold-const.c (tree_unary_nonzero_warnv_p): New.
19472         (tree_binary_nonzero_warnv_p): New.
19473         (tree_single_nonzero_warnv_p): New.
19474         (tree_expr_nonzero_warnv_p): Redefine using the new functions.
19475
19476 2008-03-04  Uros Bizjak  <ubizjak@gmail.com>
19477
19478         PR middle-end/35456
19479         * fold-const.c (fold_cond_expr_with_comparison): Prevent
19480         transformations for modes that have signed zeros.
19481         * ifcvt.c (noce_try_abs): Ditto.
19482
19483 2008-03-04  Joseph Myers  <joseph@codesourcery.com>
19484
19485         * config/i386/i386.c (override_options): Force
19486         -maccumulate-outgoing-args on if TARGET_STACK_PROBE.
19487
19488 2008-03-04  Jan Hubicka  <jh@suse.cz>
19489
19490         PR c++/35262
19491         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Fix typo
19492         in last commit.
19493
19494 2008-03-04  Danny Smith  <dannysmith@users.sourceforge.net>
19495
19496         * config/i386/i386.md (allocate_stack_worker_32): Use  __chkstk
19497         label to probe the stack.
19498
19499 2008-03-04  Danny Smith  <dannysmith@users.sourceforge.net>
19500
19501         * gthr-win32.h [__GTHREAD_HIDE_WIN32API]
19502         (__gthr_win32_mutex_destroy): Declare.
19503         [__GTHREAD_HIDE_WIN32API] (__gthread_mutex_destroy): Use
19504         __gthr_win32_mutex_destroy.
19505         * config/i386/gthr-win32.c  (__gthr_win32_mutex_destroy): Define.
19506
19507 2008-03-03  Jan Hubicka  <jh@suse.cz>
19508
19509         PR c++/35262
19510         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Be more
19511         aggressive on inlining cold calls.
19512
19513 2008-03-03  Richard Guenther  <rguenther@suse.de>
19514
19515         * tree-ssa-sccvn.c (visit_reference_op_store): Do not insert
19516         struct copies into the expression table.
19517         (simplify_unary_expression): Handle VIEW_CONVERT_EXPR.
19518         (try_to_simplify): Likewise.
19519         * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPR of
19520         integral and pointer arguments which do not change the
19521         precision to NOP_EXPRs.
19522         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Adjust
19523         VIEW_CONVERT_EXPR case.
19524
19525 2008-03-02  Sebastian Pop  <sebastian.pop@amd.com>
19526
19527         * tree-scalar-evolution.c (instantiate_parameters_1): An SSA_NAME
19528         defined in a loop at depth 0 is invariant.
19529         * tree-chrec.c (evolution_function_is_invariant_rec_p): Ditto.
19530         * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Should never
19531         be called at loop depth 0.
19532
19533 2008-03-02  Jakub Jelinek  <jakub@redhat.com>
19534
19535         PR driver/35420
19536         * gcc.c (process_command): Update copyright notice dates.
19537         * gcov.c (print_version): Likewise.
19538         * gcov-dump.c (print_version): Likewise.
19539         * mips-tfile.c (main): Likewise.
19540         * mips-tdump.c (main): Likewise.
19541
19542 2008-03-02  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
19543
19544         PR 24924
19545         * c-common.c (flag_permissive): Delete.
19546         (constant_expression_warnings): Check flags first.
19547         (constant_expression_error): New.
19548         * c-common.h (flag_permissive): Delete.
19549         (constant_expression_error): Declare.
19550         * flags.h (flag_permissive): Declare. Update description.
19551         * diagnostic.c (pedwarn): Update.
19552         (permerror): New.
19553         * diagnostic.h: (pedantic_error_kind): Rename as pedantic_warning_kind.
19554         (permissive_error_kind): New.
19555         * toplev.c (flag_permissive): Define. Update description.
19556         * toplev.h (permissive_error_kind): Declare.
19557         * c-errors.c (pedwarn_c99): Use pedantic_warning_kind.
19558         (pedwarn_c90): Use pedantic_warning_kind.
19559         * c-opts.c (c_common_post_options): flag_permissive does not affect
19560         flag_pedantic_errors.
19561
19562 2008-03-02  Joseph Myers  <joseph@codesourcery.com>
19563
19564         * libgcc2.c (__addvSI3, __addvsi3, __addvDI3, __subvSI3,
19565         __subvsi3, __subvDI3, __negvSI2, __negvsi2, __negvDI2, __absvSI2,
19566         __absvsi2, __absvDI2): Use unsigned arithmetic.
19567
19568 2008-03-02  Andi Kleen  <ak@suse.de>
19569             Richard Guenther  <rguenther@suse.de>
19570
19571         * struct-equiv.c: Remove file.
19572         * cfg_cleanup.c (condjump_equiv_p): Remove.
19573         * Makefile.in (OBJS-common): Remove struct-equiv.o.
19574         (struct-equiv.o): Remove rule.
19575         * basic-block.h (struct_equiv_checkpoint, STRUCT_EQUIV_*,
19576         insns_match_p, struct_equiv_block_eq, struct_equiv_init,
19577         rtx_equiv_p, condjump_equiv_p): Remove prototypes.
19578
19579 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
19580
19581         * ifcvt.c (noce_process_if_block): Try to handle only the then
19582         block if the else block exists but isn't suitable.
19583
19584 2008-03-01  Janne Blomqvist  <jb@gcc.gnu.org>
19585
19586         PR gcc/35063
19587         * gthr-posix.h (__gthread_mutex_destroy): Remove extra declarations.
19588         * gthr-posix95.h (__gthread_mutex_destroy): Likewise. Note this fixes
19589         regression from previous patch.
19590
19591 2008-03-01  Janne Blomqvist  <jb@gcc.gnu.org>
19592
19593         PR gcc/35063
19594         * gthr.h: Add __gthread_mutex_destroy as a function that must be
19595         implemented.
19596         * gthr-vxworks.h (__gthread_mutex_destroy): Null implementation.
19597         * gthr-single.h (__gthread_mutex_destroy): Likewise.
19598         * gthr-rtems.h (__gthread_mutex_destroy): Likewise.
19599         * gthr-mipssde.h (__gthread_mutex_destroy): Likewise.
19600         * gthr-nks.h (__gthread_mutex_destroy): Likewise.
19601         * gthr-solaris.h (__gthread_mutex_destroy): Call mutex_destroy.
19602         * gthr-win32.h (__GTHREAD_MUTEX_DESTROY_FUNCTION): Remove.
19603         (__gthread_mutex_destroy_function): Rename to
19604         __gthread_mutex_destroy.
19605         * gthr-dce.h (__gthread_mutex_destroy): Call
19606         pthread_mutex_destroy.
19607         * gthr-tpf.h (__gthread_mutex_destroy): Likewise.
19608         * gthr-posix.h (__gthread_mutex_destroy): Likewise.
19609         * gthr-posix95.h (__gthread_mutex_destroy): Likewise.
19610
19611 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
19612
19613         * df-scan.c (df_ref_chain_change_bb): Simplify.
19614         (df_insn_change_bb): Add new_bb argument.  Simplify.  Call
19615         set_block_for_insn if there's any change.
19616         * df.h ((df_insn_change_bb): Fix prototype.
19617         * cfgrtl.c (update_bb_for_insn_chain): Pass bb to
19618         df_insn_change_bb, don't call set_block_for_insn.
19619         * emit-rtl.c (reorder_insns): Likewise.
19620         * haifa-sched.c (move_insn): Likewise.
19621
19622 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
19623
19624         * rtlanal.c (loc_mentioned_in_p): Test XVECEXPs correctly.
19625
19626 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
19627
19628         * tree-flow-inline.h (next_readonly_imm_use): Return
19629         NULL_USE_OPERAND_P after the end.
19630
19631 2008-03-01  Richard Guenther  <rguenther@suse.de>
19632
19633         PR tree-optimization/35411
19634         * tree-sra.c (sra_build_assignment): Split conversion to
19635         final type to a separate statement if we are not assigning
19636         to a register.
19637
19638 2008-02-29  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
19639
19640         * fold-const.c (fold_convertible_p): Correct the logic to follow
19641         that in fold_convert().
19642
19643 2008-02-29  Douglas Gregor  <doug.gregor@gmail.com>
19644
19645         PR c++/35315
19646         * tree-inline.c (build_duplicate_type): When we make a
19647         duplicate type, make it unique in the canonical types system.
19648
19649 2008-02-29  Tom Tromey  <tromey@redhat.com>
19650
19651         * toplev.c (input_file_stack, input_file_stack_tick, fs_p,
19652         input_file_stack_history, input_file_stack_restored): Remove.
19653         (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
19654         * input.h (struct file_stack): Remove.
19655         (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
19656         (input_file_stack, input_file_stack_tick, INPUT_FILE_STACK_BITS):
19657         Likewise.
19658         * diagnostic.h (struct diagnostic_context) <last_module>: Change
19659         type.
19660         (diagnostic_last_module_changed): Add 'map' argument.
19661         (diagnostic_set_last_function): Likewise.
19662         * diagnostic.c (undiagnostic_report_current_module): Iterate using
19663         line map, not input_file_stack.
19664         * c-lex.c (fe_file_change): Don't use push_srcloc or pop_srcloc.
19665
19666 2008-02-29  Paul Brook  <paul@codesourcery.com>
19667
19668         * config/arm/arm.md (arm_addsi3): Add r/k/n alternative.
19669
19670 2008-02-29  Paul Brook  <paul@codesourcery.com>
19671
19672         * config/arm/ieee754-df.S (muldf3): Use RET macros.
19673
19674 2008-02-29  Richard Guenther  <rguenther@suse.de>
19675
19676         * tree-ssa-pre.c (get_sccvn_value): Create missing VNs via
19677         vn_lookup_or_add.
19678         * tree-ssa-sccnv.c (visit_reference_op_store): Use the rhs
19679         value for comparing for a store match.
19680         (simplify_unary_expression): Do nothing for SSA_NAMEs.
19681         (try_to_simplify): Do not do a full-blown reference lookup.
19682
19683 2008-02-29  Kaz Kojima  <kkojima@gcc.gnu.org>
19684
19685         * config/sh/sh.c (sh_scalar_mode_supported_p): New function.
19686         (TARGET_SCALAR_MODE_SUPPORTED_P): Define.
19687
19688         * config/sh/sh.h (OVERRIDE_OPTIONS): Don't warn for profiling.
19689
19690 2008-02-29  Sebastian Pop  <sebastian.pop@amd.com>
19691
19692         * tree-loop-linear.c (try_interchange_loops): Compare memory access
19693         strides against cache sizes.
19694
19695 2008-02-29  Kaz Kojima  <kkojima@gcc.gnu.org>
19696
19697         * config/sh/sh.c (sh_secondary_reload): Handle loading a float
19698         constant to fpul.
19699
19700 2008-02-28  Richard Sandiford  <rsandifo@nildram.co.uk>
19701
19702         * simplify-rtx.c (simplify_unary_operation_1): Extend the handling
19703         of SUBREG_PROMOTED_VAR_P to cope with cases where the extended value
19704         is smaller than the original promoted value.
19705         (simplify_subreg): If OP is a SUBREG, try to preserve its
19706         SUBREG_PROMOTED_VAR_P information.
19707
19708 2008-02-28  Steven Bosscher  <stevenb.gcc@gmail.com>
19709
19710         * tree-ssa-sccvn (vn_ssa_aux_obstack): New obstack.
19711         (VN_INFO_GET): Allocate new objects on the obstack.
19712         (init_scc_vn): Initialize the obstack.  Use XDELETE instead of free
19713         for rpo_numbers_temp, for consistency.
19714         (free_scc_vn): Free the obstack.
19715
19716 2008-02-28  Sebastian Pop  <sebastian.pop@amd.com>
19717
19718         * doc/invoke.texi: Document -ftree-loop-distribution.
19719         * tree-loop-distribution.c: New.
19720         * tree-pass.h (pass_loop_distribution): New.
19721         * graphds.h (struct graph): Add htab_t indices.
19722         * timevar.def (TV_TREE_LOOP_DISTRIBUTION): New.
19723         * tree-vectorizer.c (rename_variables_in_loop): Extern.
19724         (slpeel_tree_duplicate_loop_to_edge_cfg): Init PENDING_STMT to NULL.
19725         * tree-vectorizer.h (tree_duplicate_loop_on_edge): Declared.
19726         * tree-data-ref.c (debug_data_dependence_relations): New.
19727         (dump_data_dependence_relation): Also print data references.
19728         (free_data_ref): Extern.
19729         (same_access_functions): Moved...
19730         (find_vertex_for_stmt): Renamed rdg_vertex_for_stmt.
19731         (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
19732         debug_rdg_component, dump_rdg, debug_rdg, dot_rdg_1, dot_rdg,
19733         struct rdg_vertex_info, rdg_vertex_for_stmt): New.
19734         (create_rdg_edge_for_ddr, create_rdg_vertices): Cleaned up.
19735         (stmts_from_loop): Skip LABEL_EXPR.
19736         (hash_stmt_vertex_info, eq_stmt_vertex_info, hash_stmt_vertex_del):
19737         New.
19738         (build_rdg): Initialize rdg->indices htab.
19739         (free_rdg, stores_from_loop, ref_base_address,
19740         rdg_defs_used_in_other_loops_p, have_similar_memory_accesses,
19741         have_similar_memory_accesses_1, ref_base_address_1,
19742         remove_similar_memory_refs): New.
19743         * tree-data-ref.h: Depend on tree-chrec.h.
19744         (debug_data_dependence_relations, free_data_ref): Declared.
19745         (same_access_functions): ... here.
19746         (ddr_is_anti_dependent, ddrs_have_anti_deps, ddr_dependence_level):
19747         New.
19748         (struct rdg_vertex): Add has_mem_write and has_mem_reads.
19749         (RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT,
19750         RDG_MEM_WRITE_STMT, RDG_MEM_READS_STMT): New.
19751         (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
19752         debug_rdg_component, dump_rdg, debug_rdg, dot_rdg,
19753         rdg_vertex_for_stmt): Declared.
19754         (struct rdg_edge): Add level.
19755         (RDGE_LEVEL): New.
19756         (free_rdg, stores_from_loop, remove_similar_memory_refs,
19757         rdg_defs_used_in_other_loops_p, have_similar_memory_accesses):
19758         Declared.
19759         (rdg_has_similar_memory_accesses): New.
19760         * tree-vect-analyze.c: Remove unused static decls.
19761         * lambda.h (dependence_level): New.
19762         * common.opt (ftree-loop-distribution): New.
19763         * tree-flow.h (mark_virtual_ops_in_bb,
19764         slpeel_tree_duplicate_loop_to_edge_cfg,
19765         rename_variables_in_loop): Declared.
19766         * Makefile.in (TREE_DATA_REF_H): Depend on tree-chrec.h.
19767         (OBJS-common): Add tree-loop-distribution.o.
19768         (tree-loop-distribution.o): New rule.
19769         * tree-cfg.c (mark_virtual_ops_in_bb): New.
19770         (mark_virtual_ops_in_region): Use mark_virtual_ops_in_bb.
19771         * passes.c (init_optimization_passes): Schedule pass_loop_distribution.
19772
19773 2008-02-28  Joseph Myers  <joseph@codesourcery.com>
19774
19775         PR target/33963
19776         * tree.c (handle_dll_attribute): Disallow TYPE_DECLs for types
19777         other than structures and unions.
19778
19779 2008-02-28  Richard Guenther  <rguenther@suse.de>
19780
19781         Revert:
19782         2008-02-26  Richard Guenther  <rguenther@suse.de>
19783
19784         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
19785         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
19786         (lookup_decl_from_uid): Declare.
19787         (remove_decl_from_map): Likewise.
19788         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
19789         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
19790         (decl_for_uid_map): New global hashtable mapping DECL_UID
19791         to the decl tree.
19792         (init_ttree): Allocate it.
19793         (insert_decl_to_uid_decl_map): New helper function.
19794         (make_node_stat): Insert new decls into the map.
19795         (copy_node_stat): Likewise.
19796         (lookup_decl_from_uid): New function.
19797         (remove_decl_from_map): Likewise.
19798         (print_decl_for_uid_map_statistics): New helper.
19799         (dump_tree_statistics): Call it.
19800
19801         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
19802         (referenced_var_iterator): Adjust.
19803         (FOR_EACH_REFERENCED_VAR): Adjust.
19804         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
19805         (num_referenced_vars): Adjust.
19806         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
19807         (first_referenced_var): Remove.
19808         (end_referenced_vars_p): Likewise.
19809         (next_referenced_var): Likewise.
19810         (referenced_var_iterator_set): New helper function.
19811         * tree-dfa.c (referenced_var_lookup): Adjust.
19812         (referenced_var_check_and_insert): Likewise.
19813         (remove_referenced_var): Likewise.
19814         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
19815         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
19816         (verify_call_clobbering): Likewise.
19817         (verify_memory_partitions): Likewise.
19818         (init_tree_ssa): Allocate bitmap instead of hashtable for
19819         referenced_vars.
19820         (delete_tree_ssa): Adjust.
19821         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
19822         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
19823         (compute_tag_properties): Likewise.
19824         (set_initial_properties): Likewise.
19825         (find_partition_for): Likewise.
19826         (update_reference_counts): Likewise.
19827         (dump_may_aliases_for): Likewise.
19828         * tree-ssa-operands.c (add_virtual_operand): Likewise.
19829         (add_call_clobber_ops): Likewise.
19830         (add_call_read_ops): Likewise.
19831         (get_asm_expr_operands): Likewise.
19832         * tree-into-ssa.c (dump_decl_set): Likewise.
19833         (update_ssa): Likewise.
19834         * tree-sra.c (scan_function): Likewise.
19835         (decide_instantiations): Likewise.
19836         (scalarize_parms): Likewise.
19837         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
19838         (dsa_named_for): Likewise.
19839         * tree-ssa-structalias.c (update_alias_info): Likewise.
19840         (merge_smts_into): Likewise.
19841
19842 2008-02-27  David Daney  <ddaney@avtrex.com>
19843
19844         PR target/34409
19845         * config/mips/iris.h (MIPS_DEBUGGING_INFO): Define.
19846         * config/mips/openbsd.h (MIPS_DEBUGGING_INFO): Same.
19847         * config/mips/sde.h (MIPS_DEBUGGING_INFO): Remove undef.
19848         * config/mips/vxworks.h (MIPS_DEBUGGING_INFO): Same.
19849         * config/mips/mips.h (MIPS_DEBUGGING_INFO): Remove define.
19850
19851 2008-02-27  Uros Bizjak  <ubizjak@gmail.com>
19852
19853         PR target/25477
19854         * config/darwin-ppc-ldouble-patch.def (BUILT_IN_NANL): Add.
19855         (BUILT_IN_NEXTTOWARD): Remove.
19856         (BUILT_IN_NEXTTOWARDF): Ditto.
19857         * config/darwin.c (darwin_patch_builtin): Use ACONCAT instead of
19858         alloca/strcpy/strcat.  Remove commented-out code.  Fix whitespace.
19859
19860 2008-02-27  Tom Tromey  <tromey@redhat.com>
19861
19862         * tree-dump.c (dequeue_and_dump) <FUNCTION_DECL>: Check
19863         DECL_SAVED_TREE, not DECL_LANG_SPECIFIC, when dumping body.
19864
19865 2008-02-27  Jan Beulich  <jbeulich@novell.com>
19866
19867         * c-decl.c (merge_decls): Use DECL_USER_ALIGN() on olddecl to
19868         update the respective field on newdecl.
19869
19870 2008-02-27  Revital Eres  <eres@il.ibm.com>
19871
19872         PR rtl-optimization/34999
19873         * bb-reorder.c (add_labels_and_missing_jumps): Do not handle
19874         crossing edges that ends with a call insn.
19875         (fix_up_fall_thru_edges): Handle crossing edges that ends with a
19876         call insn and clear the EDGE_CROSSING flag of the crossing edge
19877         when fixing fallthru edges.
19878
19879 2008-02-27  Richard Guenther  <rguenther@suse.de>
19880
19881         PR middle-end/35390
19882         * fold-const.c (fold_unary): Return the correct argument,
19883         converted to the result type.
19884
19885 2008-02-27  Richard Guenther  <rguenther@suse.de>
19886
19887         PR middle-end/34971
19888         * expr.c (expand_expr_real_1): Assert on rotates that operate
19889         on partial modes.
19890         * fold-const.c (fold_binary): Use the types precision, not the
19891         bitsize of the mode if folding rotate expressions.  Build rotates
19892         only for full modes.
19893
19894 2008-02-27  Jakub Jelinek  <jakub@redhat.com>
19895
19896         * c-ppoutput.c (scan_translation_unit): Handle CPP_PRAGMA
19897         and CPP_PRAGMA_EOL.
19898         * c-pragma.c (pragma_ns_name): New typedef.
19899         (registered_pp_pragmas): New variable.
19900         (c_pp_lookup_pragma): New function.
19901         (c_register_pragma_1): If flag_preprocess_only, do nothing
19902         for non-expanded pragmas, for expanded ones push pragma's
19903         namespace and name into registered_pp_pragmas vector.
19904         (c_invoke_pragma_handler): Register OpenMP pragmas even when
19905         flag_preprocess_only, don't register GCC pch_preprocess
19906         pragma if flag_preprocess_only.
19907         * c-opts.c (c_common_init): Call init_pragma even if
19908         flag_preprocess_only.
19909         * c-pragma.c (c_pp_lookup_pragma): New prototype.
19910         * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Don't call
19911         cpp_register_pragma if flag_preprocess_only.
19912
19913 2008-02-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19914
19915         PR c/28800
19916         * c-parser.c (c_parser_translation_unit): Warn for empty
19917         translation unit, not empty source file.
19918
19919 2008-02-26  Paul Brook  <paul@codesourcery.com>
19920
19921         * config/arm/arm.c (thumb_set_frame_pointer): Ensure SP is first
19922         operand for Thumb-2.
19923         * config/arm/arm.h (reg_class): Add CORE_REGS.
19924         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Ditto.
19925         (BASE_REG_CLASS): Use CORE_REGS.
19926         (PREFERRED_RELOAD_CLASS): Add STACK_REG.
19927         (REGNO_MODE_OK_FOR_REG_BASE_P): Use REGNO_MODE_OK_FOR_BASE_P.
19928         (REGNO_OK_FOR_INDEX_P): Exclude SP.
19929         (ARM_REG_OK_FOR_INDEX_P): Always define.  Use
19930         ARM_REGNO_OK_FOR_INDEX_P.
19931         (ARM_PRINT_OPERAND_ADDRESS): Swap operands for [reg, sp].
19932         * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn,
19933         arm_movsi_insn, thumb1_movsi_insni, stack_tie): Add "k" alternatives.
19934         (ldm/stm peepholes): Ditto.
19935         * config/arm/thumb2.md (thumb2_movdi): Add "k" alternatives.
19936         * config/arm/vfp.md (arm_movsi_vfp, thumb2_movsi_vfp): Ditto.
19937         * config/arm/iwmmxt.md (iwmmxt_movsi_insn): Ditto.
19938         * config/arm/constraints.md: Enable "k" constraint on ARM.
19939
19940 2008-02-27  Ben Elliston  <bje@au.ibm.com>
19941
19942         * config/rs6000/rs6000.c: Annotate cache line size field in all
19943         instances of struct processor_costs.
19944
19945 2008-02-26  David Edelsohn  <edelsohn@gnu.org>
19946
19947         * dbgcnt.def (cfg_cleanup, cprop1, cprop2, dce_fast, dce_ud, dse1,
19948         dse2, gcse, if_conversion, if_after_combine, if_after_reload,
19949         jump_bypass): New counters.
19950         * cfgcleanup.c (cleanup_cfg): Add dbg_cnt.
19951         * dce.c (gate_ud_dce): Same.
19952         (gate_fast_dce): Same.
19953         * dse.c (gate_dse1): New function.
19954         (gate_dse2): New function.
19955         (gate_dse): Merge results of new gate functions.
19956         * gcse.c (gcse_main): Bracket cprop1 and cprop2 with dbg_cnt.
19957         (gate_handle_jump_bypass): Add dbg_cnt.
19958         (gate_handle_gcse): Add dbg_cnt.
19959         * ifcvt.c (gate_handle_if_conversion): Same.
19960         (gate_handle_if_after_combine): Same.
19961         (gate_handle_if_after_reload): Same.
19962         * Makefile.in: Add DBGCNT_H to cfgcleanup.o and ifcvt.o.
19963
19964 2008-02-26  Edmar Wienskoski  <edmar@freescale.com>
19965
19966         * config/rs6000/rs6000.c (processor_costs): Update e300 cache
19967         line sizes.
19968         * doc/invoke.texi: Add e300c2 and e300c3 to list of cpus.
19969
19970 2008-02-26  Jason Merrill  <jason@redhat.com>
19971
19972         PR c++/35315
19973         * attribs.c (decl_attributes): Leave ATTR_FLAG_TYPE_IN_PLACE
19974         alone if it's the naming decl for the type's main variant.
19975
19976 2008-02-26  Tom Tromey  <tromey@redhat.com>
19977
19978         * system.h (USE_MAPPED_LOCATION): Poison.
19979         * Makefile.in (GTFILES): Put CPP_ID_DATA_H first.
19980         * tree-cfg.c (make_cond_expr_edges): Remove old location code.
19981         (make_goto_expr_edges): Likewise.
19982         (remove_bb): Likewise.
19983         (execute_warn_function_return): Likewise.
19984         * basic-block.h (struct edge_def) <goto_locus>: Change type to
19985         location_t.
19986         * c-common.c (fname_decl): Remove old location code.
19987         * tree-vect-transform.c (vect_finish_stmt_generation): Remove old
19988         location code.
19989         * rtl.h (ASM_OPERANDS_SOURCE_LOCATION): Remove old-location
19990         variant.
19991         (ASM_INPUT_SOURCE_LOCATION): Likewise.
19992         (gen_rtx_ASM_INPUT): Likewise.
19993         (gen_rtx_ASM_INPUT_loc): Likewise.
19994         (get_rtx_asm_OPERANDS): Remove.
19995         * cfglayout.c (insn_locators_alloc): Remove old location code.
19996         (set_curr_insn_source_location): Likewise.
19997         (curr_insn_locator): Likewise.
19998         * print-tree.c (print_node): Remove old location code.
19999         * tree-mudflap.c (mf_varname_tree): Remove old location code.
20000         (mf_file_function_line_tree): Remove test of USE_MAPPED_LOCATION.
20001         * cfgexpand.c (expand_gimple_cond_expr): Don't use
20002         location_from_locus.
20003         (construct_exit_block): Remove old location code.
20004         * emit-rtl.c (force_next_line_note): Remove old location code.
20005         * profile.c (branch_prob): Remove old location code.
20006         * tree-vectorizer.h (LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE,
20007         LOC_LINE): Remove old-location variants.
20008         * langhooks.c (lhd_print_error_function): Remove old location
20009         code.
20010         * configure, config.in: Rebuilt.
20011         * configure.ac (--enable-mapped-location): Remove.
20012         * c-decl.c (c_init_decl_processing): Remove old location code.
20013         (finish_function): Likewise.
20014         * recog.c (decode_asm_operands): Remove old location code.
20015         * c-pch.c (c_common_read_pch): Remove old location code.
20016         * rtl.def (ASM_INPUT, ASM_OPERANDS): Remove old location
20017         variants.
20018         * gimple-low.c (lower_function_body): Remove old location code.
20019         * toplev.c (unknown_location): Remove.
20020         (push_srcloc): Remove old-location variant.
20021         (process_options): Remove old location code.
20022         (lang_dependent_init): Likewise.
20023         * input.h (UNKNOWN_LOCATION): Move definition.
20024         (location_t): Undeprecate.
20025         (source_locus): Remove.
20026         (location_from_locus): Remove.
20027         (struct location_s): Remove.
20028         Remove all old-location code.
20029         (input_line, input_filename): Remove.
20030         * final.c (final_scan_insn): Remove old location code.
20031         * diagnostic.c (diagnostic_build_prefix): Remove
20032         USE_MAPPED_LOCATION test.
20033         * tree.h (gimple_stmt) <locus>: Now a location_t.
20034         (tree_exp) <locus>: Likewise.
20035         (DECL_IS_BUILTIN): Remove old-location variant.
20036         (annotate_with_file_line, annotate_with_locus): Likewise.
20037         (expr_locus, set_expr_locus): Update.
20038         * tree.c (build1_stat): Remove old location code.
20039         (last_annotated_node): Remove.
20040         (annotate_with_file_line): Remove old-location variant.
20041         (annotate_with_locus): Likewise.
20042         (expr_location): Remove old location code.
20043         (set_expr_location): Likewise.
20044         (expr_has_location): Likewise.
20045         (expr_locus): Likewise.
20046         (set_expr_locus): Likewise.
20047         (expr_filename): Don't use location_from_locus.
20048         (expr_lineno): Likewise.
20049         * rtl-error.c (location_for_asm): Remove old location code.
20050         * c-lex.c (cb_line_change): Remove old location code.
20051         (fe_file_change): Likewise.
20052         (cb_def_pragma): Likewise.
20053         (c_lex_with_flags): Likewise.
20054         * gengtype.c (do_typedef): Don't special-case location types.
20055         (define_location_structures): Remove.
20056         (main): Don't call define_location_structures.
20057         * tree-pretty-print.c (dump_implicit_edges): Remove old location
20058         code.
20059
20060 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
20061
20062         PR 26264
20063         * builtins.def (BUILT_IN_STDARG_START): Remove.
20064         * builtins.c (expand_builtin): Remove BUILT_IN_STDARG_START.
20065         * tree-stdarg.c (execute_optimize_stdarg): Likewise.
20066         * tree-inline.c (inline_forbidden_p_1): Likewise.
20067
20068 2008-02-26  Richard Guenther  <rguenther@suse.de>
20069
20070         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
20071         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
20072         (lookup_decl_from_uid): Declare.
20073         (remove_decl_from_map): Likewise.
20074         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
20075         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
20076         (decl_for_uid_map): New global hashtable mapping DECL_UID
20077         to the decl tree.
20078         (init_ttree): Allocate it.
20079         (insert_decl_to_uid_decl_map): New helper function.
20080         (make_node_stat): Insert new decls into the map.
20081         (copy_node_stat): Likewise.
20082         (lookup_decl_from_uid): New function.
20083         (remove_decl_from_map): Likewise.
20084         (print_decl_for_uid_map_statistics): New helper.
20085         (dump_tree_statistics): Call it.
20086
20087         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
20088         (referenced_var_iterator): Adjust.
20089         (FOR_EACH_REFERENCED_VAR): Adjust.
20090         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
20091         (num_referenced_vars): Adjust.
20092         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
20093         (first_referenced_var): Remove.
20094         (end_referenced_vars_p): Likewise.
20095         (next_referenced_var): Likewise.
20096         (referenced_var_iterator_set): New helper function.
20097         * tree-dfa.c (referenced_var_lookup): Adjust.
20098         (referenced_var_check_and_insert): Likewise.
20099         (remove_referenced_var): Likewise.
20100         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
20101         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
20102         (verify_call_clobbering): Likewise.
20103         (verify_memory_partitions): Likewise.
20104         (init_tree_ssa): Allocate bitmap instead of hashtable for
20105         referenced_vars.
20106         (delete_tree_ssa): Adjust.
20107         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
20108         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
20109         (compute_tag_properties): Likewise.
20110         (set_initial_properties): Likewise.
20111         (find_partition_for): Likewise.
20112         (update_reference_counts): Likewise.
20113         (dump_may_aliases_for): Likewise.
20114         * tree-ssa-operands.c (add_virtual_operand): Likewise.
20115         (add_call_clobber_ops): Likewise.
20116         (add_call_read_ops): Likewise.
20117         (get_asm_expr_operands): Likewise.
20118         * tree-into-ssa.c (dump_decl_set): Likewise.
20119         (update_ssa): Likewise.
20120         * tree-sra.c (scan_function): Likewise.
20121         (decide_instantiations): Likewise.
20122         (scalarize_parms): Likewise.
20123         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
20124         (dsa_named_for): Likewise.
20125         * tree-ssa-structalias.c (update_alias_info): Likewise.
20126         (merge_smts_into): Likewise.
20127
20128 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
20129
20130         PR 34351
20131         * doc/invoke.texi (-Wall): Add -Wvolatile-register-var.
20132         * c-opts.c (c_common_handle_option): Wall enables
20133         Wvolatile-register-var.
20134         * common.opt: Move Wvolatile-register-var to...
20135         * c.opt: ...here.
20136
20137 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
20138
20139         * common.opt (Wlarger-than=): New.
20140         * doc/invoke.texi (Warning Options): Replace -Wlarger-than- with
20141         -Wlarger-than=.
20142         * opts.c (common_handle_option): Handle -Wlarger-than=.
20143         * optc-gen.awk: Likewise.
20144         * opth-gen.awk: Likewise.
20145         * stor-layout.c (layout_decl): Use -Wlarger-than= for warning.
20146         * tree-optimize.c (tree_rest_of_compilation): Likewise.
20147
20148 2008-02-26  Manuel Lopez-Ibanez <manu@gcc.gnu.org>
20149
20150         * c-common.c (match_case_to_enum_1): Add appropriate
20151         OPT_W* parameter to warning.
20152         (c_do_switch_warnings): Likewise.
20153         * c-typeck.c (warning_init): Add one more parameter following
20154         'warning' function.
20155         (push_init_level): Update call to warning_init.
20156         (pop_init_level): Likewise.
20157         (add_pending_init): Likewise.
20158         (output_init_element: Likewise.
20159
20160 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
20161
20162         PR 28322
20163         * toplev.c (toplev_main): If there are warnings or error, print
20164         errors for ignored options.
20165         * opts.c (ignored_options): New static variable.
20166         (postpone_unknown_option_error): New.
20167         (print_ignored_options): New.
20168         (handle_option): Postpone errors for unknown -Wno-* options.
20169         * opts.h (print_ignored_options): Declare.
20170
20171 2008-02-25  Richard Sandiford  <rsandifo@nildram.co.uk>
20172
20173         * config/mips/mips.md (loadgp_blockage, blockage): Change type
20174         to "ghost".
20175
20176 2008-02-25  Richard Guenther  <rguenther@suse.de>
20177
20178         Revert:
20179         2008-02-25  Richard Guenther  <rguenther@suse.de>
20180
20181         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
20182         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
20183         (lookup_decl_from_uid): Declare.
20184         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
20185         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
20186         (decl_for_uid_map): New global hashtable mapping DECL_UID
20187         to the decl tree.
20188         (init_ttree): Allocate it.
20189         (insert_decl_to_uid_decl_map): New helper function.
20190         (make_node_stat): Insert new decls into the map.
20191         (copy_node_stat): Likewise.
20192         (lookup_decl_from_uid): New function.
20193         (print_decl_for_uid_map_statistics): New helper.
20194         (dump_tree_statistics): Call it.
20195
20196         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
20197         (referenced_var_iterator): Adjust.
20198         (FOR_EACH_REFERENCED_VAR): Adjust.
20199         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
20200         (num_referenced_vars): Adjust.
20201         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
20202         (first_referenced_var): Remove.
20203         (end_referenced_vars_p): Likewise.
20204         (next_referenced_var): Likewise.
20205         (referenced_var_iterator_set): New helper function.
20206         * tree-dfa.c (referenced_var_lookup): Adjust.
20207         (referenced_var_check_and_insert): Likewise.
20208         (remove_referenced_var): Likewise.
20209         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
20210         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
20211         (verify_call_clobbering): Likewise.
20212         (verify_memory_partitions): Likewise.
20213         (init_tree_ssa): Allocate bitmap instead of hashtable for
20214         referenced_vars.
20215         (delete_tree_ssa): Adjust.
20216         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
20217         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
20218         (compute_tag_properties): Likewise.
20219         (set_initial_properties): Likewise.
20220         (find_partition_for): Likewise.
20221         (update_reference_counts): Likewise.
20222         (dump_may_aliases_for): Likewise.
20223         * tree-ssa-operands.c (add_virtual_operand): Likewise.
20224         (add_call_clobber_ops): Likewise.
20225         (add_call_read_ops): Likewise.
20226         (get_asm_expr_operands): Likewise.
20227         * tree-into-ssa.c (dump_decl_set): Likewise.
20228         (update_ssa): Likewise.
20229         * tree-sra.c (scan_function): Likewise.
20230         (decide_instantiations): Likewise.
20231         (scalarize_parms): Likewise.
20232         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
20233         (dsa_named_for): Likewise.
20234         * tree-ssa-structalias.c (update_alias_info): Likewise.
20235         (merge_smts_into): Likewise.
20236
20237 2008-02-25  Janne Blomqvist  <jb@gcc.gnu.org>
20238
20239         PR fortran/29549
20240         * doc/invoke.texi (-fcx-limited-range): Document new option.
20241         * toplev.c (process_options): Handle -fcx-fortran-rules.
20242         * common.opt: Add documentation for -fcx-fortran-rules.
20243
20244 2008-02-25  Janne Blomqvist  <jb@gcc.gnu.org>
20245
20246         PR c/35162
20247         * doc/invoke.texi (-fcx-limited-range): Correct to be in line with
20248         actual behaviour and C99.
20249
20250 2008-02-26  Ben Elliston  <bje@au.ibm.com>
20251
20252         * config/rs6000/rs6000.h (ASM_CPU_POWER5_SPEC): Define.
20253         (ASM_CPU_POWER6_SPEC): Likewise.
20254         (ASM_CPU_SPEC): Pass %(asm_cpu_power5) for -mcpu=power5.
20255         Likewise, pass %(asm_cpu_power6) for -mcpu=power6.
20256         (EXTRA_SPECS): Add asm_cpu_power5, asm_cpu_power6 spec strings.
20257
20258 2008-02-25  Richard Guenther  <rguenther@suse.de>
20259
20260         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
20261         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
20262         (lookup_decl_from_uid): Declare.
20263         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
20264         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
20265         (decl_for_uid_map): New global hashtable mapping DECL_UID
20266         to the decl tree.
20267         (init_ttree): Allocate it.
20268         (insert_decl_to_uid_decl_map): New helper function.
20269         (make_node_stat): Insert new decls into the map.
20270         (copy_node_stat): Likewise.
20271         (lookup_decl_from_uid): New function.
20272         (print_decl_for_uid_map_statistics): New helper.
20273         (dump_tree_statistics): Call it.
20274
20275         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
20276         (referenced_var_iterator): Adjust.
20277         (FOR_EACH_REFERENCED_VAR): Adjust.
20278         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
20279         (num_referenced_vars): Adjust.
20280         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
20281         (first_referenced_var): Remove.
20282         (end_referenced_vars_p): Likewise.
20283         (next_referenced_var): Likewise.
20284         (referenced_var_iterator_set): New helper function.
20285         * tree-dfa.c (referenced_var_lookup): Adjust.
20286         (referenced_var_check_and_insert): Likewise.
20287         (remove_referenced_var): Likewise.
20288         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
20289         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
20290         (verify_call_clobbering): Likewise.
20291         (verify_memory_partitions): Likewise.
20292         (init_tree_ssa): Allocate bitmap instead of hashtable for
20293         referenced_vars.
20294         (delete_tree_ssa): Adjust.
20295         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
20296         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
20297         (compute_tag_properties): Likewise.
20298         (set_initial_properties): Likewise.
20299         (find_partition_for): Likewise.
20300         (update_reference_counts): Likewise.
20301         (dump_may_aliases_for): Likewise.
20302         * tree-ssa-operands.c (add_virtual_operand): Likewise.
20303         (add_call_clobber_ops): Likewise.
20304         (add_call_read_ops): Likewise.
20305         (get_asm_expr_operands): Likewise.
20306         * tree-into-ssa.c (dump_decl_set): Likewise.
20307         (update_ssa): Likewise.
20308         * tree-sra.c (scan_function): Likewise.
20309         (decide_instantiations): Likewise.
20310         (scalarize_parms): Likewise.
20311         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
20312         (dsa_named_for): Likewise.
20313         * tree-ssa-structalias.c (update_alias_info): Likewise.
20314         (merge_smts_into): Likewise.
20315
20316 2008-02-25  Andreas Krebbel  <krebbel1@de.ibm.com>
20317
20318         PR target/35258
20319         * cse.c (cse_insn): Avoid creation of overlapping MEMs.
20320         * alias.c (nonoverlapping_memrefs_p): Export for use in other modules.
20321         * alias.h (nonoverlapping_memrefs_p): Likewise.
20322
20323 2008-02-25  Jan Beulich  <jbeulich@novell.com>
20324
20325         * Makefile.in: Also prefix uses of crt0.o and mcrt0.o with $(T).
20326         * config/i386/netware-libgcc.exp: Add __bswap?i2,
20327         __emultls_get_address, __emultls_register_common,
20328         __floatundi?f, and _Unwind_GetIPInfo.
20329         * config/i386/netware.c (gen_stdcall_or_fastcall_decoration):
20330         Sync with config/i386/winnt.c:gen_stdcall_or_fastcall_suffix().
20331         (gen_regparm_prefix): Likewise.
20332         (i386_nlm_encode_section_info): Sync with
20333         config/i386/winnt.c:i386_pe_encode_section_info().
20334         (i386_nlm_maybe_mangle_decl_assembler_name): New.
20335         i386_nlm_mangle_decl_assembler_name): New.
20336         (netware_override_options): New.
20337         * config/i386/netware.h (netware_override_options): Declare.
20338         (OVERRIDE_OPTIONS): Re-define to netware_override_options.
20339         (i386_nlm_mangle_decl_assembler_name): Declare.
20340         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Define.
20341
20342 2008-02-25  Ben Elliston  <bje@au.ibm.com>
20343
20344         PR other/32948
20345         * c-decl.c (grokdeclarator): Remove unused local variables
20346         `typedef_type' and `type_as_written'.
20347         * bb-reorder.c
20348         (find_rarely_executed_basic_blocks_and_crossing_edges): Remove
20349         unused local variable `has_hot_blocks'.
20350         (fix_crossing_conditional_branches): Remove unused local variable
20351         `prev_bb'.
20352
20353 2008-02-25  Uros Bizjak  <ubizjak@gmail.com>
20354
20355         PR middle-end/19984
20356         * builtins.def (BUILT_IN_NAN): Define as c99 builtin
20357         using DEF_C99_BUILTIN.
20358         (BUILT_IN_NANF): Ditto.
20359         (BUILT_IN_NANL): Ditto.
20360
20361 2008-02-25  Ayal Zaks  <zaks@il.ibm.com>
20362             Revital Eres  <eres@il.ibm.com>
20363
20364         * modulo-sched.c (calculate_must_precede_follow): Address TODO
20365         regarding the order of two dependent insns in the same row.
20366
20367 2008-02-25  Eric Botcazou  <ebotcazou@adacore.com>
20368
20369         * stor-layout.c (layout_decl): Do not bump the alignment of a
20370         bit-field to more than byte alignment if it is packed.
20371
20372 2008-02-24  David Edelsohn  <edelsohn@gnu.org>
20373
20374         * config/rs6000/rs6000.c (processor_costs): Add cache costs for
20375         e300c2 and e300c3.
20376
20377 2008-02-24  Diego Novillo  <dnovillo@google.com>
20378
20379         http://gcc.gnu.org/ml/gcc-patches/2008-02/msg01094.html
20380
20381         PR 33738
20382         * tree-vrp.c (vrp_evaluate_conditional): With
20383         -Wtype-limits, emit a warning when comparing against a
20384         constant outside the natural range of OP0's type.
20385         * c.opt (Wtype-limits): Move ...
20386         * common.opt (Wtype-limits): ... here.
20387
20388 2008-02-24  Edmar Wienskoski  <edmar@freescale.com>
20389
20390         * config.gcc (powerpc*-*-*): Add new cores e300c2 and e300c3.
20391         * config/rs6000/e300c2c3.md: New file.
20392         * config/rs6000/rs6000.c (processor_costs): Add new costs for
20393         e300c2 and e300c3.
20394         (rs6000_override_options): Add e300c2 and e300c3 cases to
20395         processor_target_table. Do not allow usage of Altivec or Spe
20396         with e300 cores. Initialize rs6000_cost for e300c2 and e300c3.
20397         (rs6000_issue_rate): Set issue rate for e300c2 and e300c3.
20398         * config/rs6000/rs6000.h (processor_type): Add
20399         PROCESSOR_PPCE300C2 and PROCESSOR_PPCE300C3.
20400         (ASM_CPU_SPEC): Add e300c2 and e300c3.
20401         * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce300c2
20402         and ppce300c3. Include e300c2c3.md.
20403
20404 2008-02-23  David Edelsohn  <edelsohn@gnu.org>
20405
20406         * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Use STRICT_ALIGNMENT
20407         instead of TARGET_STRICT_ALIGN.
20408
20409 2008-02-23  Joseph Myers  <joseph@codesourcery.com>
20410
20411         * explow.c (memory_address): Assert that the generated address is
20412         valid.
20413
20414 2008-02-23  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
20415
20416         PR target/25477
20417         * config/darwin-protos.h: Add darwin_patch_builtins prototype.
20418         * config/darwin-ppc-ldouble-patch.def: New file.
20419         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): New macro.
20420         * config/rs6000/rs6000.c (rs6000_init_builtins): Call
20421         SUBTARGET_INIT_BUILTINS if defined.
20422         * config/darwin.c (darwin_patch_builtin, darwin_patch_builtins):
20423         New functions.
20424
20425 2008-02-23  Andrew Pinski  <andrew_pinski@playstation.sony.com>
20426
20427         PR rtl-opt/33512
20428         * simplify-rtx.c (simplify_binary_operation_1): Add simplification
20429         of (and X (ior (not X) Y) and (and (ior (not X) Y) X).
20430
20431 2008-02-23  Andrew Pinski  <andrew_pinski@playstation.sony.com>
20432
20433         PR pch/35027
20434         * c-pch.c (c_common_valid_pch): Make the "too short to be a PCH
20435         file" warning condtional on -Winvalid-PCH.
20436
20437 2008-02-23  Daniel Jacobowitz  <dan@codesourcery.com>
20438
20439         * expmed.c (extract_bit_field): Always use adjust_address for MEM.
20440
20441 2008-02-23  Uros Bizjak  <ubizjak@gmail.com>
20442
20443         PR target/22076
20444         PR target/34256
20445         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use "!y" to
20446         prevent reload from using MMX registers.
20447         (*mov<mode>_internal): Ditto.
20448         (*movv2sf_internal_rex64): Ditto.
20449         (*movv2sf_internal): Ditto.
20450
20451 2008-02-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20452
20453         PR documentation/31569
20454         * doc/install.texi2html: Use makeinfo --no-number-sections.
20455
20456 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
20457
20458         * config/rs6000/rs6000.c (rs6000_legitimize_address): Check to
20459         ensure that we can address an entire entity > 8 bytes.  Don't
20460         generate reg+reg addressing for such data.
20461
20462 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
20463
20464         * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Don't overalign
20465         strings when optimizing for size, unless the target cares about
20466         alignment.
20467
20468 2008-02-22  Tom Tromey  <tromey@redhat.com>
20469
20470         * regclass.c (current_pass): Remove declaration.
20471
20472 2008-02-22  Anatoly Sokolov <aesok@post.ru>
20473
20474         * config/avr/libgcc.S (__RAMPZ__): Define.
20475         (__do_copy_data): Add for devices with 128KB code memory.
20476
20477 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
20478
20479         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
20480         Use spe_abi.
20481         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Likewise.
20482
20483 2008-02-22  Hans-Peter Nilsson  <hp@axis.com>
20484
20485         * config/cris/cris.h (REG_CLASS_FROM_LETTER): Recognize 'b' for
20486         GENNONACR_REGS.
20487
20488 2008-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20489
20490         PR c/19999
20491         * c-typeck.c (build_binary_op): Warn about floating point
20492         comparisons if FLOAT_TYPE_P, not only for REAL_TYPE.
20493
20494 2008-02-21  Janis Johnson  <janis187@us.ibm.com>
20495
20496         PR target/34526
20497         * config/rs6000/rs6000.c (rs6000_altivec_abi): Clarify comment.
20498         (rs6000_explicit_options): Split abi into spe_abi and altivec_abi,
20499         add vrsave.
20500         (rs6000_override_options): Set altivec_abi as default, not override,
20501         for 64-bit GNU/Linux; for 32-bit GNU/Linux default to altivec_abi for
20502         TARGET_ALTIVEC; default to TARGET_ALTIVEC_VRSAVE when AltiVec ABI
20503         is used; use new member spe_abi.
20504         (rs6000_handle_option): Set rs6000_explicit_options.vrsave; use
20505         spe_abi and altivec_abi.
20506
20507 2008-02-22  Tomas Bily  <tbily@suse.cz>
20508
20509         * tree-vectorizer.c (vect_is_simple_reduction): Fix comment typo.
20510
20511 2008-02-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20512
20513         PR bootstrap/35273
20514         * config.build (build_file_translate): Set to `CMD //c' only if
20515         it works.
20516         * Makefile.in (build_file_translate): Improve comment.
20517
20518 2008-02-21  Jan Hubicka  <jh@suse.cz>
20519
20520         * predict.def (PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL,
20521         PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL, PRED_CALL,
20522         PRED_TREE_EARLY_RETURN, PRED_NULL_RETURN): Update.
20523
20524 2008-02-21  Michael Matz  <matz@suse.de>
20525
20526         PR target/35264
20527         * config/i386/i386.c (ix86_expand_branch): Add missing breaks.
20528
20529 2008-02-21  Uros Bizjak  <ubizjak@gmail.com>
20530
20531         * config/i386/i386.md (mov<mode>cc): Macroize expander from movsfcc,
20532         movdfcc and movxfcc using X87MODEF mode iterator and SSE_FLOAT_MODE_P
20533         as insn constraint.
20534         * config/i386/sse.md (<sse>_movup<ssemodesuffixf2c>): Macroize insn
20535         from sse_movups adn sse2_movupd using SSEMODEF2P mode iterator and
20536         SSE_VEC_FLOAT_MODE_P as insn constraint.
20537         (<sse>_movmskp<ssemodesuffixf2c>): Ditto from similar patterns.
20538         (sse4a_movnt<mode>): Macroize insn from sse4a_movntsf and
20539         sse4a_movntdf using MODEF mode iterator.
20540         (sse4a_vmmovnt<mode>): Macroize insn form sse4a_vmmovntv2df and
20541         sse4a_vmmovntv4sf using SSEMODEF2P mode iterator.
20542         (sse4_1_blendp<ssemodesuffixf2c>): Ditto from similar patterns.
20543         (sse4_1_blendvp<ssemodesuffixf2c>): Ditto.
20544         (sse4_1_dpp<ssemodesuffixf2c>): Ditto.
20545         (sse4_1_roundp<ssemodesuffixf2c>): Ditto.
20546         (sse4_1_rounds<ssemodesuffixf2c>): Ditto.
20547
20548 2008-02-21  Richard Guenther  <rguenther@suse.de>
20549
20550         * tree.def (PAREN_EXPR): New tree code.
20551         * fold-const.c (fold_unary): Remove PAREN_EXPR around constants
20552         and PAREN_EXPR.
20553         * tree-pretty-print.c (dump_generic_node): Handle PAREN_EXPR.
20554         * expr.c (expand_expr_real_1): Likewise.
20555         * tree-inline.c (estimate_num_insns_1): Likewise.
20556         * tree-complex.c (expand_complex_move): Likewise.
20557         * tree-vectorizer.c (vect_is_simple_use): Treat PAREN_EXPR (x)
20558         as plain x.
20559
20560 2008-02-20  Kaz Kojima  <kkojima@gcc.gnu.org>
20561
20562         PR target/35225
20563         * config/sh/sh.c (find_barrier): Don't go past 'from' argument.
20564
20565 2008-02-20  Kaz Kojima  <kkojima@gcc.gnu.org>
20566
20567         PR target/35190
20568         * config/sh/sh.md (jump_compact): Disable for crossing jumps.
20569
20570         * config/sh/sh.c (find_barrier): Don't go past
20571         NOTE_INSN_SWITCH_TEXT_SECTIONS note.
20572
20573 2008-02-20  DJ Delorie  <dj@redhat.com>
20574
20575         * config/h8300/h8300.md (insv): Force source operand to be a register.
20576
20577         * config/h8300/h8300.c (h8300_expand_epilogue): Emit return insn
20578         as a jump, not as a plain insn.
20579
20580 2008-02-20  Seongbae Park <seongbae.park@gmail.com>
20581
20582         * doc/invoke.texi (Warning Options): Add new option
20583         -Wframe-larger-than=.
20584         (-Wframe-larger-than): Document.
20585
20586         * flags.h (warn_frame_larger_than, frame_larger_than_size):
20587         Add declarations for new option variables.
20588
20589         * final.c (final_start_function): Check the frame size
20590         before emission and issue a Wframe-larger-than warning.
20591
20592         * opts.c (warn_frame_larger_than, frame_larger_than_size):
20593         Add definitions for new option variables.
20594         (common_handle_option): Handle new option OPT_Wframe_larger_than_.
20595
20596         * common.opt (Wframe-larger-than=): New option.
20597
20598 2008-02-20  Uros Bizjak  <ubizjak@gmail.com>
20599
20600         * config/i386/sse.md (<sse>_vmmul<mode>3): Fix typo in asm template.
20601         (<sse>_div<mode>3): Ditto.
20602         (<sse>_vmdiv<mode>3): Ditto.
20603         (<sse>_vmsqrt<mode>2): Ditto.
20604         (*smax<mode>3): Ditto.
20605         (sse5_frcz<mode>2): Ditto.
20606         (sse5_vmfrcz<mode>2): Ditto.  Use TARGET_SSE5 instead of TARGET_ROUND
20607         as insn constraint.
20608
20609 2008-02-20  Richard Guenther  <rguenther@suse.de>
20610
20611         PR middle-end/35265
20612         * builtins.c (validate_arg): If we want an INTEGER_TYPE,
20613         be happy with INTEGRAL_TYPE_P.
20614
20615 2008-02-20  Richard Guenther  <rguenther@suse.de>
20616
20617         * fold-const.c (split_tree): Associate floatig-point expressions
20618         if flag_associative_math is set.
20619
20620 2008-02-20  Richard Guenther  <rguenther@suse.de>
20621
20622         * tree.h (fold_real_zero_addition_p): Declare.
20623         * fold-const.c (fold_real_zero_addition_p): Export.
20624         * tree-ssa-reassoc.c (eliminate_using_constants): Also handle
20625         floating-point operations with zero and one.
20626
20627 2008-02-20  Paolo Bonzini  <bonzini@gnu.org>
20628
20629         * doc/install.texi: Correct references to CFLAGS, replacing them
20630         with BOOT_CFLAGS.  Document flags used during bootstrap for
20631         target libraries.
20632
20633 2008-02-20  Uros Bizjak  <ubizjak@gmail.com>
20634
20635         * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): New define.
20636         * config/i386/i386.md (*sse_setcc<mode>): Macroize from *sse_setccsf
20637         and *sse_setccdf using MODEF mode iterator and SSE_FLOAT_MODE_P as
20638         insn constraint.
20639         (smin<mode>3): Ditto from similar patterns.
20640         (smax<mode>3): Ditto.
20641         (*ieee_smin<mode>3): Ditto.
20642         (*ieee_smax<mode>3): Ditto.
20643         * config/i386/sse.md (sse): New mode attribute.
20644         (mov<mode>): Macroize expander from movv4sf and movv2df using
20645         SSEMODEF2P mode iterator.
20646         (<sse>_movnt<mode>): Ditto from similar patterns. Use
20647         SSE_VEC_FLOAT_MODE_P as insn constraint.
20648         (storent<mode>): Ditto.
20649         (storent<mode>): Macroize expander from storentsf and storentdf using
20650         MODEF mode iterator.
20651         (neg<mode>2): Macroize from negv4sf2 and negv2df2 using SSEMODEF2P
20652         mode iterator and SSE_VEC_FLOAT_MODE_P as insn constraint.
20653         (abs<mode>2): Ditto from similar patterns.
20654         (add<mode>3, *add<mode>3, <sse>_vmadd<mode>3): Ditto.
20655         (sub<mode>3, *sub<mode>3, <sse>_vmsub<mode>3): Ditto.
20656         (<sse>_div<mode>3, <sse>_vmdiv<mode>3): Ditto.
20657         (<sse>_vmsqrt<mode>2): Ditto.
20658         (smin<mode>3, *smin<mode>3_finite, *smin<mode>3)
20659         (<sse>_vmsmin<mode>3, *ieee_smin<mode>3): Ditto.
20660         (smax<mode>3, *smax<mode>3_finite, *smax<mode>3)
20661         (<sse>_vmsmax<mode>3, *ieee_smax<mode>3): Ditto.
20662         (<sse>_maskcmp<mode>3): Macroize from sse_maskcmpv4sf3,
20663         sse_maskcmpsf3, sse2_maskcmpv2df3 and sse2_maskcmpdf3 using SSEMODEF4
20664         mode iterator. Use SSE_FLOAT_MODE_P with SSE_VEC_FLOAT_MODE_P as
20665         insn constraint.
20666         (<sse>_comi): Macroize from sse_comi and sse2_comi using MODEF mode
20667         iterator and SSE_FLOAT_MODE_P as insn constraint.
20668         (<sse>_ucomi): Ditto from similar patterns.
20669         (<sse>_vmmaskcmp<mode>3): Macroize from sse_vmmaskcmpv4sf3 and
20670         sse2_vmmaskcmpv2df3 using SSEMODEF2P mode iterator and
20671         SSE_VEC_FLOAT_MODE_P as insn constraint.
20672         (vcond<mode>): Ditto from similar patterns.
20673         (and<mode>3, *and<mode>3): Ditto.
20674         (<sse>_nand<mode>3): Ditto.
20675         (ior<mode>3, *ior<mode>3): Ditto.
20676         (xor<mode>3, *xor<mode>3): Ditto.
20677         (*and<mode>3): Macroize from *andsf3 and *anddf3 using MODEF mode
20678         iterator and SSE_FLOAT_MODE_P as insn constraint.
20679         (*nand<mode>3): Ditto from similar patterns.
20680         (*ior<mode>3): Ditto.
20681         (*xor<mode>3): Ditto.
20682
20683 2008-02-20  Ira Rosen  <irar@il.ibm.com>
20684
20685         * config/spu/spu.md (vec_unpacku_hi_v8hi, vec_unpacku_lo_v8hi,
20686         vec_unpacks_hi_v8hi, vec_unpacks_lo_v8hi, vec_unpacku_hi_v16qi,
20687         vec_unpacku_lo_v16qi, vec_unpacks_lo_v16qi): Implement.
20688
20689 2008-02-19  Jan Hubicka  <jh@suse.cz>
20690
20691         * predict.c (tree_bb_level_predictions): Remove variable next
20692         mistakely introduced by previous commit.
20693
20694 2008-02-19  Jan Hubicka  <jh@suse.cz>
20695
20696         * predict.c (predict_paths_leading_to): Rewrite.
20697         (predict_paths_for_bb): New.
20698         (tree_bb_level_predictions): Update call of predict_paths_leading_to.
20699
20700 2008-02-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20701
20702         PR bootstrap/35218
20703         * Makefile.in (build_file_translate): New.
20704         (gcc-vers.texi): Use it for translating $(abs_srcdir).
20705         * config.build (build_file_translate): Set to `CMD //c' on MinGW.
20706         * configure.ac (build_file_translate): Substitute it.
20707         * configure: Regenerate.
20708
20709 2008-02-19  Jan Hubicka  <jh@suse.cz>
20710
20711         PR rtl-optimization/34408
20712         * see.c (see_def_extension_not_merged): Copy subreg so we don't have
20713         invalid sharing.
20714
20715 2008-02-19  Jan Hubicka  <jh@suse.cz>
20716
20717         PR middle-end/28779
20718         * tree-inline.c (estimate_num_insns_1): Fix counting of cost of
20719         call_expr.
20720
20721 2008-02-19  H.J. Lu  <hongjiu.lu@intel.com>
20722
20723         PR Ada/35186
20724         * config/i386/i386-modes.def: Revert the last DI alignment
20725         change until Ada people can look into it.
20726
20727 2008-02-19  Nick Clifton  <nickc@redhat.com>
20728
20729         * opts.c (print_specific_help): Fix typo in --help text.
20730
20731 2008-02-19  Jakub Jelinek  <jakub@redhat.com>
20732
20733         PR target/35239
20734         * config/i386/cpuid.h (__cpuid, __get_cpuid_max): Use special
20735         32-bit inline asm without asm alternatives for host GCC < 3.0.
20736
20737 2008-02-19  Richard Guenther  <rguenther@suse.de>
20738
20739         PR tree-optimization/34989
20740         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Re-structure.
20741         Allow propagation to INDIRECT_REF if we can simplify only.
20742
20743 2008-02-19  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
20744
20745         * c-common.c (warn_for_collisions_1): Use appropriate option when
20746         warning.
20747
20748 2008-02-19  Nick Clifton  <nickc@redhat.com>
20749
20750         PR other/31349
20751         * opts.c (undocumented_msg): Leave blank unless checking is enabled.
20752         (handle_options): Fix indentation.
20753         (print_filtered_help): If no language-specific options were
20754         displayed tell the user how to list all the options supported by
20755         the language's front-end.
20756         (print_specific_help): Fix indentation and remove duplicate line.
20757         (common_handle_option): Handle the -v option.
20758         For --help enable the display of undocumented options if the -v
20759         switch has been included on the command line.
20760         For --help= check for overlaps in the arguments between the option
20761         classes and the language names and issue a warning when they
20762         cannot be disambiguated.
20763         * c.opt (v): Pass on to the common option handler.
20764
20765 2008-02-19  Revital Eres  <eres@il.ibm.com>
20766
20767         * modulo-sched.c (sms_schedule): Change dump message when
20768         create_ddg function fails.
20769         (try_scheduling_node_in_cycle): Rename row to cycle.
20770         (print_partial_schedule): Rename CYCLE to ROW.
20771
20772 2008-02-19  Christian Bruel  <christian.bruel@st.com>
20773             Zdenek Dvorak  <ook@ucw.cz>
20774
20775         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check step alignment.
20776
20777 2008-02-19  Uros Bizjak  <ubizjak@gmail.com>
20778
20779         PR target/33555
20780         * config/i386/i386.md (*x86_movsicc_0_m1_se): New insn pattern.
20781         (*x86_movdicc_0_m1_se): Ditto.
20782
20783 2008-02-19  Uros Bizjak  <ubizjak@gmail.com>
20784
20785         * config/i386/sfp-machine.h (__gcc_CMPtype): New typedef.
20786         (CMPtype): Define as __gcc_CMPtype.
20787         * config/rs6000/sfp-machine.h (__gcc_CMPtype): New typedef.
20788         (CMPtype): Define as __gcc_CMPtype.
20789
20790 2008-02-19  Hans-Peter Nilsson  <hp@axis.com>
20791
20792         Support valgrind 3.3 for --enable-checking=valgrind.
20793         * system.h: Consolidate ENABLE_VALGRIND_CHECKING-dependent defines
20794         here.
20795         [!VALGRIND_MAKE_MEM_NOACCESS]: Define as VALGRIND_MAKE_NOACCESS.
20796         [!VALGRIND_MAKE_MEM_DEFINED]: Define as VALGRIND_MAKE_READABLE.
20797         [!VALGRIND_MAKE_MEM_UNDEFINED]: Define as VALGRIND_MAKE_WRITABLE.
20798         * ggc-common.c: Remove ENABLE_VALGRIND_CHECKING-dependent defines.
20799         Replace use of VALGRIND_MAKE_READABLE, VALGRIND_MAKE_WRITABLE, and
20800         VALGRIND_MAKE_NOACCESS with VALGRIND_MAKE_MEM_DEFINED,
20801         VALGRIND_MAKE_MEM_UNDEFINED, and VALGRIND_MAKE_MEM_NOACCESS
20802         respectively.
20803         * ggc-zone.c: Similar.
20804         * ggc-page.c: Similar.
20805
20806 2008-02-19  Paul Brook  <paul@codesourcery.com>
20807
20808         PR target/35071
20809         * config/arm/ieee754-df.S: Fix do_it typo.
20810         * config/arm/ieee754-sf.S: Fix do_it typo.
20811
20812 2008-02-18  H.J. Lu  <hongjiu.lu@intel.com>
20813
20814         PR target/35189
20815         * config/i386/i386.c (OPTION_MASK_ISA_MMX_SET): New.
20816         (OPTION_MASK_ISA_3DNOW_SET): Likewise.
20817         (OPTION_MASK_ISA_SSE_SET): Likewise.
20818         (OPTION_MASK_ISA_SSE2_SET): Likewise.
20819         (OPTION_MASK_ISA_SSE3_SET): Likewise.
20820         (OPTION_MASK_ISA_SSSE3_SET): Likewise.
20821         (OPTION_MASK_ISA_SSE4_1_SET): Likewise.
20822         (OPTION_MASK_ISA_SSE4_2_SET): Likewise.
20823         (OPTION_MASK_ISA_SSE4_SET): Likewise.
20824         (OPTION_MASK_ISA_SSE4A_SET): Likewise.
20825         (OPTION_MASK_ISA_SSE5_SET): Likewise.
20826         (OPTION_MASK_ISA_3DNOW_A_UNSET): Likewise.
20827         (OPTION_MASK_ISA_MMX_UNSET): Updated.
20828         (OPTION_MASK_ISA_3DNOW_UNSET): Updated.
20829         (OPTION_MASK_ISA_SSE_UNSET): Likewise.
20830         (OPTION_MASK_ISA_SSE3_UNSET): Likewise.
20831         (OPTION_MASK_ISA_SSSE3_UNSET): Likewise.
20832         (OPTION_MASK_ISA_SSE4_1_UNSET): Likewise.
20833         (OPTION_MASK_ISA_SSE4_2_UNSET): Likewise.
20834         (OPTION_MASK_ISA_SSE4A_UNSET): Likewise.
20835         (OPTION_MASK_ISA_SSE5_UNSET): Likewise.
20836         (OPTION_MASK_ISA_SSE4): Removed.
20837         (ix86_handle_option): Turn on bits in ix86_isa_flags and
20838         ix86_isa_flags_explicit with OPTION_MASK_ISA_XXX_SET for -mXXX.
20839         (override_options): Don't turn on implied SSE/MMX bits in
20840         ix86_isa_flags.
20841
20842 2008-02-18  H.J. Lu  <hongjiu.lu@intel.com>
20843
20844         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
20845         32bit host.
20846
20847 2008-02-18  Joey Ye  <joey.ye@intel.com>
20848
20849         PR middle-end/34921
20850         * tree-nested.c (insert_field_into_struct): Set type alignment
20851         to field alignment if the former is less than the latter.
20852
20853 2008-02-18  Jakub Jelinek  <jakub@redhat.com>
20854
20855         * BASE-VER: Set to 4.4.0.
20856
20857 2008-02-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20858
20859         * doc/c-tree.texi: Use @dots{} and @enddots{} where appropriate.
20860         * doc/cfg.texi: Likewise.
20861         * doc/extend.texi: Likewise.
20862         * doc/gty.texi: Likewise.
20863         * doc/invoke.texi: Likewise.
20864         * doc/loop.texi: Likewise.
20865         * doc/md.texi: Likewise.
20866         * doc/passes.texi: Likewise.
20867         * doc/rtl.texi: Likewise.
20868         * doc/sourcebuild.texi: Likewise.
20869         * doc/tm.texi: Likewise.
20870         * doc/tree-ssa.texi: Likewise.
20871
20872 2008-02-17  Richard Guenther  <rguenther@suse.de>
20873
20874         PR middle-end/35227
20875         * tree-complex.c (init_parameter_lattice_values): Handle parameters
20876         without default definition.
20877
20878 2008-02-17  Richard Guenther  <rguenther@suse.de>
20879
20880         PR tree-optimization/35231
20881         * tree-vrp.c (register_edge_assert_for): Do not assume A == 0
20882         if A | B != 1.
20883
20884 2008-02-17  Uros Bizjak  <ubizjak@gmail.com>
20885
20886         Revert:
20887         2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
20888         * config/i386/sfp-machine.h (CMPtype): Define as typedef using
20889         libgcc_cmp_return mode.
20890
20891 2008-02-16  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
20892
20893         PR c/28368
20894         * doc/invoke.texi (-std): Clarify description of -std= and -ansi.
20895
20896 2008-02-16  Ralf Corsepius  <ralf.corsepius@rtems.org>
20897
20898         * config/m68k/t-rtems (M68K_MLIB_CPU): Add 5208, 5307, 5407, 5475
20899         multilibs.
20900
20901 2008-02-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20902
20903         * doc/c-tree.texi: Use `@.' where appropriate.
20904         * doc/extend.texi: Likewise.
20905         * doc/install.texi: Likewise.
20906         * doc/invoke.texi: Likewise.
20907         * doc/loop.texi: Likewise.
20908         * doc/makefile.texi: Likewise.
20909         * doc/md.texi: Likewise.
20910         * doc/passes.texi: Likewise.
20911         * doc/standards.texi: Likewise.
20912         * doc/tm.texi: Likewise.
20913
20914 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
20915
20916         PR middle-end/35196
20917         * omp-low.c (expand_omp_for_generic): Don't initialize fd->v
20918         in entry_bb.
20919         (expand_omp_for_static_nochunk): Initialize fd->v in seq_start_bb
20920         rather than in entry_bb.
20921
20922 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
20923
20924         * config/i386/sfp-machine.h (CMPtype): Define as typedef using
20925         libgcc_cmp_return mode.
20926
20927 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
20928
20929         PR middle-end/35130
20930         * tree-nested.c (convert_call_expr): Put FRAME.* vars into
20931         OMP_CLAUSE_SHARED rather than OMP_CLAUSE_FIRSTPRIVATE clause.
20932
20933 2008-02-15  Richard Guenther  <rguenther@suse.de>
20934             Zdenek Dvorak  <ook@ucw.cz>
20935
20936         PR tree-optimization/35164
20937         * tree-flow.h (stmt_references_abnormal_ssa_name): Declare.
20938         * tree-dfa.c (stmt_references_abnormal_ssa_name): New function.
20939         * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
20940         Only propagate addresses which do not have abnormal SSA_NAMEs
20941         in their operands.
20942
20943 2008-02-15  Joseph Myers  <joseph@codesourcery.com>
20944
20945         PR target/35088
20946         * config/m68k/m68k.h (DWARF_CIE_DATA_ALIGNMENT): Define.
20947
20948 2008-02-15  Jan Hubicka  <jh@suse.cz>
20949
20950         PR middle-end/35149
20951         * ipa.c (cgraph_remove_unreachable_nodes): Clear local.inlinable flag.
20952
20953 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
20954
20955         PR middle-end/34621
20956         * function.c (pad_to_arg_alignment): Remove test for STACK_BOUNDARY
20957         when calculating alignment_pad.
20958
20959 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
20960
20961         * config/i386/i386.h (CLEAR_RATIO): Use MIN macro.
20962         (WIDEST_HARDWARE_FP_SIZE): Use LONG_DOUBLE_TYPE_SIZE define.
20963         * config/i386/darwin.h (PREFERRED_STACK_BOUNDARY): Use MAX macro
20964         and STACK_BOUNDARY define.
20965
20966 2008-02-14  Danny Smith  <dannysmith@users.sourceforge.net>
20967
20968         PR preprocessor/35061
20969         * c-pragma.c (handle_pragma_pop_macro): Check that
20970         pushed_macro_table has been allocated.
20971
20972 2008-02-14  Eric Botcazou  <ebotcazou@adacore.com>
20973
20974         PR middle-end/35136
20975         * gimplify.c (force_gimple_operand_bsi): Revert 2008-02-12 change.
20976         (force_gimple_operand): Likewise.
20977         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Add new cases
20978         for TARGET_MEM_REF and CONVERT_EXPR/NON_LVALUE_EXPR/NOP_EXPR.
20979         Also recurse on the operand for regular VIEW_CONVERT_EXPRs.
20980         (find_interesting_uses_address): Check addressability and alignment
20981         of the base expression only after substituting bases of IVs into it.
20982
20983 2008-02-14  Michael Matz  <matz@suse.de>
20984
20985         PR target/34930
20986         * function.c (instantiate_virtual_regs_in_insn): Reload address
20987         before falling back to reloading the whole operand.
20988
20989 2008-02-14  Andreas Krebbel  <krebbel1@de.ibm.com>
20990
20991         * config/s390/s390.c (s390_mainpool_start): Emit the pool
20992         before the first section switch note.
20993
20994 2008-02-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20995
20996         * doc/bugreport.texi: Update copyright years.
20997         * doc/c-tree.texi: Likewise.
20998         * doc/cfg.texi: Likewise.
20999         * doc/cpp.texi: Likewise.
21000         * doc/cppinternals.texi: Likewise.
21001         * doc/fragments.texi: Likewise.
21002         * doc/frontends.texi: Likewise.
21003         * doc/gcc.texi: Likewise.
21004         * doc/gty.texi: Likewise.
21005         * doc/hostconfig.texi: Likewise.
21006         * doc/implement-c.texi: Likewise.
21007         * doc/libgcc.texi: Likewise.
21008         * doc/loop.texi: Likewise.
21009         * doc/makefile.texi: Likewise.
21010         * doc/options.texi: Likewise.
21011         * doc/passes.texi: Likewise.
21012         * doc/rtl.texi: Likewise.
21013         * doc/sourcebuild.texi: Likewise.
21014         * doc/standards.texi: Likewise.
21015         * doc/tree-ssa.texi: Likewise.
21016         * doc/trouble.texi: Likewise.
21017
21018         * doc/extend.texi: Use @: or add comma where appropriate.
21019         * doc/invoke.texi: Likewise.
21020         * doc/tm.texi: Likewise.
21021
21022 2008-02-14  Alan Modra  <amodra@bigpond.net.au>
21023
21024         PR target/34393
21025         * config/rs6000/rs6000.md (restore_stack_block): Force operands[1]
21026         to a reg.
21027
21028 2008-02-14  Jesper Nilsson  <jesper.nilsson@axis.com>
21029
21030         * doc/md.texi (clz, ctz): Add reference.
21031         * doc/rtl.texi (clz, ctz): Likewise.
21032
21033 2008-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21034
21035         PR other/35148
21036         * Makefile.in (gcc-vers.texi): Use abs_srcdir for the value of
21037         srcdir.
21038
21039 2008-02-13  Andreas Krebbel  <krebbel1@de.ibm.com>
21040
21041         * config/s390/s390.c (struct constant_pool): New field
21042         emit_pool_after added.
21043         (s390_mainpool_start): Set the emit_pool_after flag according
21044         to the section switch notes.
21045         (s390_mainpool_finish): Consider emit_pool_after when emitting
21046         the literal pool at the end of the function.
21047         (s390_chunkify_start): Force literal pool splits at section
21048         switch notes.
21049
21050 2008-02-13  Michael Matz  <matz@suse.de>
21051
21052         PR debug/35065
21053         * var-tracking.c (clobber_variable_part): Correctly traverse the
21054         list.
21055
21056 2008-02-13  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
21057
21058         PR 29673
21059         * doc/invoke.texi (Debugging Options): Remove -fdump-tree-inlined.
21060         Add -fdump-ipa-inline.
21061         * tree-dump.c (dump_files): Remove tree-inlined dump.
21062         * tree-pass.h (tree_dump_index): Remove TDI_inlined.
21063
21064 2008-02-12  Richard Guenther  <rguenther@suse.de>
21065
21066         PR tree-optimization/35171
21067         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Deal with
21068         default defs.
21069
21070 2008-02-12  Richard Guenther  <rguenther@suse.de>
21071
21072         PR middle-end/35163
21073         * fold-const.c (fold_widened_comparison): Use get_unwidened in
21074         value-preserving mode.  Disallow final truncation.
21075
21076 2008-02-12  Eric Botcazou  <ebotcazou@adacore.com>
21077
21078         PR middle-end/35136
21079         * gimplify.c (force_gimple_operand_bsi): Move SSA renaming
21080         code from here to...
21081         (force_gimple_operand): ...here.
21082
21083 2008-02-12  Jakub Jelinek  <jakub@redhat.com>
21084
21085         PR c++/35144
21086         * tree-sra.c (sra_build_assignment): fold_convert SRC if copying
21087         non-compatible pointers.
21088         (generate_element_copy): If SRC and DST are RECORD_TYPEs with
21089         different FIELD_DECLs, try harder by comparing field offsets, sizes
21090         and types.
21091
21092         PR inline-asm/35160
21093         * function.c (match_asm_constraints_1): Don't replace the same input
21094         multiple times.
21095
21096 2008-02-12  Anatoly Sokolov <aesok@post.ru>
21097
21098         * config/avr/avr.h (AVR_HAVE_RAMPZ): Define.
21099         * config/avr/avr.c (expand_prologue): Save RAMPZ register.
21100         (expand_epilogue): Restore RAMPZ register.
21101         * config/avr/avr.md (RAMPZ_ADDR): New constant.
21102
21103 2008-02-11  Kai Tietz  <kai.tietz@onevision.com>
21104
21105         * config/i386/cygwin.asm: (__alloca): Correct calling
21106         convention and alignment.
21107         (__chkstk): Force 8 byte stack alignment.
21108
21109 2008-02-11  Uros Bizjak  <ubizjak@gmail.com>
21110             Richard Guenther  <rguenther@suse.de>
21111
21112         PR tree-optimization/33992
21113         * tree-ssa-loop-im.c (rewrite_bittest): Fixup the type of
21114         the zero we compare against.
21115
21116 2008-02-10  Danny Smith  <dannysmith@users.sourceforge.net>
21117
21118         PR libfortran/35063
21119         * gthr-win32.h (__gthread_mutex_destroy_function): New function
21120         to CloseHandle after unlocking to prevent accumulation of handle
21121         count.
21122
21123 2008-02-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
21124
21125         PR middle_end/34150
21126         * pa.c (legitimize_pic_address): Add REG_EQUAL note on sets with a
21127         pic_label_operand source.  Similarly, add a REG_LABEL_OPERAND note
21128         and update LABEL_NUSES during and after reload.
21129
21130 2008-02-08  Steven Bosscher  <stevenb.gcc@gmail.com>
21131
21132         PR middle-end/34627
21133         * combine.c (simplify_if_then_else): Make sure the comparison is
21134         against const0_rtx when simplifying to (abs x) or (neg (abs X)).
21135
21136 2008-02-08  Richard Sandiford  <rsandifo@nildram.co.uk>
21137
21138         PR bootstrap/35051
21139         * double-int.h: Don't include gmp.h for GENERATOR_FILEs.
21140         (mpz_set_double_int, mpz_get_double_int): Hide from GENERATOR_FILEs.
21141         * real.h: Don't include gmp.h or mpfr.h for GENERATOR_FILEs.
21142         (real_from_mpfr, mpfr_from_real): Hide from GENERATOR_FILEs.
21143         * tree.h (get_type_static_bounds): Likewise.
21144
21145 2008-02-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21146
21147         * doc/invoke.texi (Option Summary, C++ Dialect Options)
21148         (Objective-C and Objective-C++ Dialect Options, Warning Options):
21149         Make -Wfoo language annotations match what the compiler outputs.
21150
21151 2008-02-08  Sa Liu  <saliu@de.ibm.com>
21152
21153         * config/spu/spu-builtins.def: Fixed wrong parameter type in spu
21154         intrinsics spu_convts, spu_convtu, spu_convtf.
21155
21156 2008-02-08  Hans-Peter Nilsson  <hp@axis.com>
21157
21158         * doc/extend.texi (Function Attributes) <noinline>: Mention
21159         asm ("") as method to keep calls.
21160
21161 2008-02-07  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
21162
21163         PR other/32754
21164         * doc/options.texi (Options): Replace references to opts.sh with
21165         optc-gen.awk.
21166         * opts-common.c: Likewise.
21167         * optc-gen.awk: Likewise.
21168
21169 2008-02-07  Andreas Krebbel  <krebbel1@de.ibm.com>
21170
21171         * config/s390/s390.h (FUNCTION_ARG_REGNO_P): Fix fprs for 64 bit.
21172
21173 2008-02-07  Richard Henderson  <rth@redhat.com>
21174
21175         PR rtl-opt/33410
21176         * config/alpha/alpha.c (alpha_emit_xfloating_compare): Use an
21177         EXPR_LIST for the REG_EQUAL instead of a comparison with a
21178         funny mode.
21179
21180 2008-02-07  Uros Bizjak  <ubizjak@gmail.com>
21181
21182         PR tree-optimization/35085
21183         * tree-ssa-reassoc.c (rewrite_expr_tree): Enable destructive update
21184         for operand entry oe2 in addition to operand entry oe3 in order to
21185         expose more opportunities for vectorizer sum reduction.
21186
21187 2008-02-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
21188
21189         PR other/35107
21190         * Makefile.in (LIBS): Remove $(GMPLIBS).
21191         (cc1-dummy, cc1): Add $(GMPLIBS).
21192
21193 2008-02-06  Jan Hubicka  <jh@suse.cz>
21194
21195         PR target/23322
21196         * i386.md (moddf_integer): Do not produce partial memory stalls for
21197         targets where it hurts.
21198
21199 2008-02-06  Uros Bizjak  <ubizjak@gmail.com>
21200
21201         PR target/35083
21202         * optabs.c (expand_float): Do not check for decimal modes when
21203         expanding unsigned integer through signed conversion.
21204
21205 2008-02-06  Nick Clifton  <nickc@redhat.com>
21206
21207         * config/stormy16/stormy16.md (eqbranchsi): Replace a match_dup
21208         inside the clobber with a match_operand and duplicated operand
21209         number in the constraint.
21210         (ineqbranchsi): Delete redundant comment.
21211
21212 2008-02-06  Ralf Corsepius  <ralf.corsepius@rtems.org>
21213
21214         * config/arm/rtems-elf.h (TARGET_OS_CPP_BUILTINS): Add
21215         builtin_define ("__USE_INIT_FINI__").
21216         * config/h8300/t-rtems (MULTILIB_OPTION,MULTILIB_DIRNAMES): Add
21217         -msx multilibs.
21218         * gthr-rtems.h: Remove __GTHREAD_MUTEX_INIT.
21219
21220 2008-02-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21221
21222         PR documentation/30330
21223         * doc/invoke.texi (C++ Dialect Options)
21224         (Objective-C and Objective-C++ Dialect Options, Warning Options):
21225         For each warning option -Wfoo that allows -Wno-foo, ensure both
21226         -Wfoo and -Wno-foo are listed in the option index.  Fix index
21227         entry of -Wswitch-default, index -Wnormalized= including the
21228         `=', and -Wlarger-than-@var{len} including @var{len}.
21229
21230 2008-02-05  Uros Bizjak  <ubizjak@gmail.com>
21231
21232         * config/i386/i386.md (floatunssisf2): Use
21233         ix86_expand_convert_uns_sisf_sse also for TARGET_SSE.
21234         (floatunssi<mode>2): Rename from floatunssisf2 and floatunssidf2.
21235         Macroize expander using MODEF mode iterator.
21236
21237 2008-02-05  Diego Novillo  <dnovillo@google.com>
21238
21239         http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00140.html
21240
21241         PR 33738
21242         * tree-vrp.c (vrp_evaluate_conditional): Revert fix for PR 33738.
21243
21244 2008-02-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
21245
21246         PR other/35070
21247         * toplev.c (print_version): Honor `indent' for GMP/MPFR warnings.
21248
21249 2008-02-05  H.J. Lu  <hongjiu.lu@intel.com>
21250
21251         PR target/35084
21252         * config/i386/i386.c (ix86_function_sseregparm): Add an arg
21253         to indicate if a message should be generated.
21254         (init_cumulative_args): Updated.
21255         (function_value_32): Likewise.
21256
21257 2008-02-05  Joseph Myers  <joseph@codesourcery.com>
21258
21259         * doc/include/texinfo.tex: Update to version 2008-02-04.16.
21260
21261 2008-02-05  Uros Bizjak  <ubizjak@gmail.com>
21262
21263         PR target/35083
21264         * config/i386/i386.md (floatunsisf2): Enable for TARGET_SSE_MATH only.
21265         Call ix86_expand_convert_uns_sisf_sse for TARGET_SSE2.
21266
21267 2008-02-04  Diego Novillo  <dnovillo@google.com>
21268
21269         http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00110.html
21270
21271         PR 33738
21272         * tree-vrp.c (vrp_evaluate_conditional): With
21273         -Wtype-limits, emit a warning when comparing against a
21274         constant outside the natural range of OP0's type.
21275
21276 2008-02-04  Richard Guenther  <rguenther@suse.de>
21277
21278         PR middle-end/33631
21279         * expr.c (count_type_elements): Give for unions instead of
21280         guessing.
21281
21282 2008-02-04  Richard Guenther  <rguenther@suse.de>
21283
21284         PR middle-end/35043
21285         * gimplify.c (gimplify_init_ctor_eval): Convert array indices
21286         to TYPE_DOMAINs base type instead of using bitsizetype here.
21287
21288 2008-02-03  Jason Merrill  <jason@redhat.com>
21289
21290         * print-tree.c (print_node) [CONSTRUCTOR]: Print elements.
21291
21292 2008-02-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21293
21294         PR other/29972
21295         * doc/invoke.texi (C++ Dialect Options, Optimize Options)
21296         (HPPA Options, i386 and x86-64 Options, IA-64 Options)
21297         (RS/6000 and PowerPC Options): Fix typos and markup.
21298         * doc/passes.texi (Tree-SSA passes): Likewise.
21299
21300 2008-02-02  Michael Matz  <matz@suse.de>
21301
21302         PR target/35045
21303         * postreload-gcse.c (record_last_reg_set_info_regno): Renamed
21304         from record_last_reg_set_info.
21305         (record_last_reg_set_info): Take an RTX argument, iterate over all
21306         constituent hardregs.
21307         (record_last_set_info, record_opr_changes): Change calls to
21308         new signature or to record_last_reg_set_info_regno.
21309
21310 2008-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
21311
21312         * doc/extend.texi (X86 Built-in Functions): Fix grammar.
21313
21314 2008-02-01  Hans-Peter Nilsson  <hp@axis.com>
21315
21316         PR rtl-optimization/34773
21317         * reg-notes.def (EQUAL): Mention significance of combination of
21318         REG_EQUAL and REG_RETVAL.
21319         * fwprop.c (try_fwprop_subst): Don't add REG_EQUAL to an
21320         insn that has a REG_RETVAL.
21321
21322 2008-02-01  Roger Sayle  <roger@eyesopen.com>
21323
21324         PR bootstrap/33781
21325         * configure.ac (--enable-fixed-point): Disable unless explicitly
21326         requested on IRIX.
21327         * configure: Regenerate.
21328
21329 2008-02-01  Richard Guenther  <rguenther@suse.de>
21330
21331         PR other/35042
21332         * invoke.texi (-finline-limit): Remove no longer true parts
21333         of the documentation.  Note that there is no default value.
21334
21335 2008-02-01  Andrew Pinski  <pinskia@gmail.com>
21336             Mark Mitchell  <mark@codesourcery.com>
21337             Ben Elliston  <bje@au.ibm.com>
21338
21339         PR c/29326
21340         * doc/extend.texi (Other Builtins): Document.
21341
21342 2008-01-31  Tom Browder <tom.browder@gmail.com>
21343
21344         * doc/c-tree.texi (Types): Fix grammar.
21345         (Expression trees): Ditto.
21346         * doc/passes.texi (Tree-SSA passes): Ditto.
21347
21348         * doc/configterms.texi (Configure Terms): Fix typo.
21349         * doc/cpp.texi (Common Predefined Macros): Ditto.
21350         * doc/md.texi (Machine Constraints): Ditto.
21351
21352         * doc/makefile.texi (Makefile): Add comma.
21353
21354 2008-01-31  Tom Browder  <tom.browder@gmail.com>
21355             Gerald Pfeifer  <gerald@pfeifer.com>
21356
21357         * doc/sourcebuild.texi (Front End): Remove references to CVS
21358         and CVSROOT/modules.
21359         (Texinfo Manuals): Replace reference to CVS by one to SVN.
21360         (Back End): Remove reference to CVS.
21361
21362 2008-01-31  Richard Sandiford  <rsandifo@nildram.co.uk>
21363
21364         PR target/34900
21365         * config/mips/mips.c (gen_load_const_gp): New function, taking a
21366         comment from...
21367         (mips16_gp_pseudo_reg): ...here.
21368         * config/mips/mips.md (load_const_gp): Replace with...
21369         (load_const_gp_<mode>): ...this :P-based insn.
21370
21371 2008-01-31  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
21372
21373         * doc/invoke.texi (-ansi): Mention explicitly corresponding -std=
21374         options. Minor fixes.
21375         (-std): Move reference to standards closer to where language
21376         standards are first mentioned.
21377
21378 2008-01-31  Richard Sandiford  <rsandifo@nildram.co.uk>
21379
21380         PR rtl-optimization/34995
21381         * reload.c (alternative_allows_const_pool_ref): Take an rtx
21382         parameter and return a bool.  If the rtx parameter is nonnull,
21383         check that it satisfies an EXTRA_MEMORY_CONSTRAINT.
21384         (find_reloads): Update call accordingly.  Pass the new operand
21385         if it needed no address reloads, otherwise pass null.
21386
21387 2008-01-30  Richard Henderson  <rth@redhat.com>
21388
21389         PR c/34993
21390         * tree.c (build_type_attribute_qual_variant): Skip TYPE_DOMAIN
21391         for unbounded arrays.
21392
21393 2008-01-30  Silvius Rus  <rus@google.com>
21394
21395         * config/i386/xmmintrin.h (_mm_prefetch): Add const to first arg.
21396
21397 2008-01-30  Jan Hubicka  <jh@suse.cz>
21398
21399         PR target/34982
21400         * i386.c (init_cumulative_args): Use real function declaration when
21401         calling locally.
21402
21403 2008-01-30  Richard Sandiford  <rsandifo@nildram.co.uk>
21404
21405         PR rtl-optimization/34998
21406         * global.c (build_insn_chain): Treat non-subreg_lowpart
21407         SUBREGs of pseudos as clobbering all the words covered by the
21408         SUBREG, not just all the bytes.
21409         * ra-conflict.c (clear_reg_in_live): Likewise.  Take the
21410         original df_ref rather than an extract parameter.
21411         (global_conflicts): Update call accordingly.
21412
21413 2008-01-30  Andreas Krebbel  <krebbel1@de.ibm.com>
21414
21415         * config/s390/fixdfdi.h (__fixunstfdi, __fixtfdi): Rearrange
21416         the overflow check to make it easier to read.
21417         (__fixtfdi): Change the type of the ll member in union
21418         long_double to UDItype_x.
21419
21420 2008-01-30  Jakub Jelinek  <jakub@redhat.com>
21421
21422         PR middle-end/34969
21423         * cgraph.h (cgraph_update_edges_for_call_stmt): New prototype.
21424         * cgraph.c (cgraph_update_edges_for_call_stmt): New function.
21425         * tree-inline.c (fold_marked_statements): Call
21426         cgraph_update_edges_for_call_stmt if folding a call statement.
21427         * cgraphunit.c (verify_cgraph_node): Set cfun to this_cfun for
21428         debug_generic_stmt calls, reset it back afterwards.
21429
21430         PR c/35017
21431         * c-decl.c (start_decl): Don't pedwarn about TREE_READONLY
21432         static decls.
21433         * c-typeck.c (build_external_ref): Don't pedwarn about
21434         static vars in current function's scope.
21435
21436 2008-01-29  Joseph Myers  <joseph@codesourcery.com>
21437
21438         * config.gcc (i[34567]86-*-nto-qnx*): Remove deprecation.
21439
21440 2008-01-29  Bernhard Fischer  <aldot@gcc.gnu.org>
21441
21442         PR c/35002
21443         * ipa-struct-reorg.c: Fix spelling.
21444         * params.def: Ditto.
21445
21446 2008-01-29  Richard Guenther  <rguenther@suse.de>
21447
21448         PR middle-end/35006
21449         * tree-inline.h (struct copy_body_data): Add remapping_type_depth
21450         field.
21451         * tree-inline.c (remap_type): Increment remapping_type_depth
21452         around remapping types.
21453         (copy_body_r): Only add referenced variables if they are referenced
21454         from code, not types.
21455
21456 2008-01-29  Douglas Gregor  <doug.gregor@gmail.com>
21457
21458         PR c++/34055
21459         PR c++/34103
21460         PR c++/34219
21461         PR c++/34606
21462         PR c++/34753
21463         PR c++/34754
21464         PR c++/34755
21465         PR c++/34919
21466         PR c++/34961
21467         * c-pretty-print.c (pp_c_type_qualifier_list): Don't try to print
21468         qualifiers for an ERROR_MARK_NODE or a NULL_TREE.
21469
21470 2008-01-28  Andy Hutchinson   <hutchinsonandy@netscape.net>
21471
21472         PR target/34412
21473         * config/avr/avr.c (expand_prologue): Use correct QI mode frame
21474         pointer for tiny stack.
21475
21476 2008-01-28  Bernhard Fischer  <aldot@gcc.gnu.org>
21477
21478         * doc/tree-ssa.texi: Add cindex PHI nodes and improve wording.
21479
21480 2008-01-28  Bernhard Fischer  <aldot@gcc.gnu.org>
21481
21482         * config/vx-common.h: Fix typo in comment.
21483
21484 2008-01-28  Ian Lance Taylor  <iant@google.com>
21485
21486         PR c++/34862
21487         PR c++/33407
21488         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
21489         coalesce pointers if they have different DECL_NO_TBAA_P values.
21490         * tree-ssa-copy.c (may_propagate_copy): Don't propagate copies
21491         between variables with different DECL_NO_TBAA_P values.
21492
21493 2008-01-28  Nathan Froyd  <froydnj@codesourcery.com>
21494
21495         PR 31535
21496         * config/rs6000/rs6000.c (small_data_operand): Vectors and floats
21497         are not legitimate small data references on SPE targets.
21498
21499 2008-01-28  David Daney  <ddaney@avtrex.com>
21500
21501         * doc/install.texi (mips-*-*): Recommend binutils 2.18.
21502
21503 2008-01-28  David Daney  <ddaney@avtrex.com>
21504
21505         * doc/install.texi (--disable-libgcj-bc):  Reword documentation.
21506
21507 2008-01-27  Joseph Myers  <joseph@codesourcery.com>
21508
21509         * config.gcc (strongarm*-*, ep9312*-*, xscale*-*, parisc*-*,
21510         m680[012]0-*, *-*-beos*, *-*-kaos*, *-*-linux*aout*,
21511         *-*-linux*libc1*, *-*-solaris2.[0-6], *-*-solaris2.[0-6].*,
21512         *-*-sysv*, *-*-windiss*, alpha*-*-unicosmk*, cris-*-aout,
21513         hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
21514         i[34567]86-sequent-ptx4*, i[34567]86-*-nto-qnx*,
21515         i[34567]86-*-sco3.2v5*, i[34567]86-*-uwin*, powerpc-*-chorusos*,
21516         vax-*-bsd*, vax-*-ultrix*): Mark obsolete.
21517
21518 2008-01-27  Bernhard Fischer  <aldot@gcc.gnu.org>
21519
21520         * basic-block.h (condjump_equiv_p): Fix comment.
21521
21522 2008-01-27  Bernhard Fischer  <aldot@gcc.gnu.org>
21523
21524         * tree-pretty-print.c (print_generic_decl, print_generic_stmt,
21525         print_generic_stmt_indented): Fix comment.
21526
21527 2008-01-27  Bernhard Fischer  <aldot@gcc.gnu.org>
21528
21529         * configure.ac (__stack_chk_fail): Add detecion for availability
21530         of SSP in uClibc by checking if __UCLIBC_HAS_SSP__ is defined.
21531         * configure: Regenerate.
21532
21533 2008-01-26  Maxim Kuvyrkov  <maxim@codesourcery.com>
21534
21535         PR middle-end/34688
21536         * final.c (output_addr_const): Handle TRUNCATE.
21537
21538 2008-01-26  Zdenek Dvorak  <ook@ucw.cz>
21539
21540         PR target/34711
21541         * tree-ssa-loop-ivopts.c (comp_cost): New type.
21542         (zero_cost, infinite_cost): New constants.
21543         (struct cost_pair): Change type of cost to comp_cost.
21544         (struct iv_ca): Change type of cand_use_cost and cost to comp_cost.
21545         (new_cost, add_costs, sub_costs, compare_costs, infinite_cost_p):
21546         New functions.
21547         (set_use_iv_cost, force_expr_to_var_cost, force_var_cost,
21548         split_address_cost, ptr_difference_cost, difference_cost,
21549         get_computation_cost_at, get_computation_cost,
21550         determine_use_iv_cost_generic, determine_use_iv_cost_address,
21551         determine_use_iv_cost_condition, determine_use_iv_costs,
21552         cheaper_cost_pair, iv_ca_recount_cost, iv_ca_set_no_cp,
21553         iv_ca_set_cp, iv_ca_cost, iv_ca_new, iv_ca_dump, iv_ca_extend,
21554         iv_ca_narrow, iv_ca_prune, try_improve_iv_set, find_optimal_iv_set):
21555         Change type of cost to comp_cost.
21556         (determine_iv_cost): Increase cost of non-original ivs, instead
21557         of decreasing the cost of original ones.
21558         (get_address_cost): Indicate the complexity of the addressing mode
21559         in comp_cost.
21560         (try_add_cand_for): Prefer using ivs not specific to some object.
21561         * tree-flow.h (force_expr_to_var_cost): Declaration removed.
21562
21563 2008-01-26  Peter Bergner  <bergner@vnet.ibm.com>
21564             Janis Johnson  <janis187@us.ibm.com>
21565
21566         PR target/34814
21567         * doc/tm.texi (TARGET_EXPAND_TO_RTL_HOOK): Document.
21568         (TARGET_INSTANTIATE_DECLS): Likewise.
21569         * target.h (expand_to_rtl_hook): New target hook.
21570         (instantiate_decls): Likewise.
21571         * function.c (instantiate_decl): Make non-static.  Rename to...
21572         (instantiate_decl_rtl): ... this.
21573         (instantiate_expr): Use instantiate_decl_rtl.
21574         (instantiate_decls_1): Likewise.
21575         (instantiate_decls): Likewise.
21576         (instantiate_virtual_regs: Call new instantiate_decls taget hook.
21577         * function.h (instantiate_decl_rtl): Add prototype.
21578         * cfgexpand.c (target.h): New include.
21579         (tree_expand_cfg): Call new expand_to_rtl_hook target hook.
21580         * target-def.h (TARGET_EXPAND_TO_RTL_HOOK): New define.
21581         (TARGET_INSTANTIATE_DECLS): Likewise.
21582         (TARGET_INITIALIZER): New target hooks added.
21583         * config/rs6000/rs6000-protos.h (rs6000_secondary_memory_needed_rtx):
21584         New prototype.
21585         * config/rs6000/rs6000.c (tree-flow.h): New include.
21586         (machine_function): Add sdmode_stack_slot field.
21587         (rs6000_alloc_sdmode_stack_slot): New function.
21588         (rs6000_instantiate_decls): Likewise.
21589         (rs6000_secondary_memory_needed_rtx): Likewise.
21590         (rs6000_check_sdmode): Likewise.
21591         (TARGET_EXPAND_TO_RTL_HOOK): Target macro defined.
21592         (TARGET_INSTANTIATE_DECLS): Likewise.
21593         (rs6000_hard_regno_mode_ok): Allow SDmode.
21594         (num_insns_constant): Likewise.  Handle _Decimal32 constants.
21595         (rs6000_emit_move): Handle SDmode.
21596         (function_arg_advance): Likewise.
21597         (function_arg): Likewise.
21598         (rs6000_gimplify_va_arg): Likewise.  Add special handling of
21599         SDmode var args for 32-bit compiles.
21600         (rs6000_secondary_reload_class): Handle SDmode.
21601         (rs6000_output_function_epilogue): Likewise.
21602         (rs6000_function_value): Simplify if statement.
21603         (rs6000_libcall_value): Likewise.
21604         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Handle SDmode.
21605         (SECONDARY_MEMORY_NEEDED_RTX): Add define.
21606         * config/rs6000/dfp.md (movsd): New define_expand and splitter.
21607         (movsd_hardfloat): New define_insn.
21608         (movsd_softfloat): Likewise.
21609         (movsd_store): Likewise.
21610         (movsd_load): Likewise.
21611         (extendsddd2): Likewise.
21612         (extendsdtd2): Likewise.
21613         (truncddsd2): Likewise.
21614         (movdd_hardfloat64): Fixup comment.
21615         (UNSPEC_MOVSD_LOAD): New constant.
21616         (UNSPEC_MOVSD_STORE): Likewise.
21617
21618 2008-01-26  Jakub Jelinek  <jakub@redhat.com>
21619
21620         PR c++/34965
21621         * c-pretty-print.c (pp_c_exclusive_or_expression): Handle
21622         TRUTH_XOR_EXPR.
21623         (pp_c_logical_and_expression): Handle TRUTH_AND_EXPR.
21624         (pp_c_logical_or_expression): Handle TRUTH_OR_EXPR.
21625         (pp_c_expression): Handle TRUTH_AND_EXPR, TRUTH_OR_EXPR
21626         and TRUTH_XOR_EXPR.
21627
21628 2008-01-26  David Edelsohn  <edelsohn@gnu.org>
21629
21630         PR target/34794
21631         * config.gcc: Separate AIX 5.3 from AIX 6.1.
21632         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
21633         __LONGDOUBLE128 too.
21634         * config/rs6000/aix61.h: New file.
21635
21636 2008-01-26  Richard Sandiford  <rsandifo@nildram.co.uk>
21637
21638         PR rtl-optimization/34959
21639         * optabs.c (expand_unop): In libcall notes, give ffs, clz, ctz,
21640         popcount and parity rtxes the same mode as their operand.
21641         Truncate or extend the result to the return value's mode
21642         if necessary.
21643
21644 2008-01-26  Richard Sandiford  <rsandifo@nildram.co.uk>
21645
21646         PR target/34981
21647         * config/mips/mips-protos.h (mips_expand_call): Return an rtx.
21648         * config/mips/mips.h (FIRST_PSEUDO_REGISTER): Rename FAKE_CALL_REGNO
21649         to GOT_VERSION_REGNUM.
21650         (CALL_REALLY_USED_REGISTERS): Set the GOT_VERSION_REGNUM entry to 0.
21651         (EPILOGUE_USES): Include GOT_VERSION_REGNUM if TARGET_USE_GOT.
21652         * config/mips/mips.c (mips_emit_call_insn): New function.
21653         (mips_call_tls_get_addr): Call mips_expand_call directly.
21654         (mips16_copy_fpr_return_value): Use mips_emit_call_insn rather than
21655         emit_call_insn.
21656         (mips16_build_call_stub): Likewise.  Return the call insn or null.
21657         (mips_expand_call): Update the call to mips16_build_call_stub
21658         accordingly and a remove redundant condition.  Assert that MIPS16
21659         stubs do not use lazy binding.  Use mips_emit_call_insn and return
21660         the call insn.
21661         (mips_extra_live_on_entry): Include GOT_VERSION_REGNUM if
21662         TARGET_USE_GOT.
21663         (mips_hard_regno_mode_ok_p): Allow SImode for GOT_VERSION_REGNUM.
21664         (mips_avoid_hazard): Remove hazard_set handling.
21665         * config/mips/mips.md (UNSPEC_EH_RECEIVER): Rename to...
21666         (UNSPEC_RESTORE_GP): ...this.
21667         (UNSPEC_SET_GOT_VERSION, UNSPEC_UPDATE_GOT_VERSION): New constants.
21668         (FAKE_CALL_REGNO): Rename to...
21669         (GOT_VERSION_REGNUM): ...this.
21670         (type): Add "ghost" value.  Add an associated insn reservation.
21671         (hazard_set): Remove.
21672         (exception_receiver): Rename to...
21673         (restore_gp): ...this and update the unspec identifier accordingly.
21674         (exception_receiver, nonlocal_got_receiver): New expanders.
21675         (load_call<mode>): Use GOT_VERSION_REGNUM.  Don't set
21676         FAKE_CALL_REGNO.  Remove hazard_set attribute.
21677         (set_got_version, update_got_version): New patterns.
21678
21679 2008-01-26  Danny Smith  <dannysmith@users.sourceforge.net>
21680
21681         PR target/34970
21682         * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Define.
21683
21684 2008-01-25  Joseph Myers  <joseph@codesourcery.com>
21685
21686         PR other/31955
21687         * doc/install.texi2html: Generate gcc-vers.texi.
21688
21689 2008-01-25  DJ Delorie  <dj@redhat.com>
21690
21691         * config/m32c/m32c.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
21692
21693 2008-01-25  Joseph Myers  <joseph@codesourcery.com>
21694
21695         * config/c4x: Remove directory.
21696         * config.gcc (crx-*, mt-*): Mark obsolete.
21697         (c4x-*, tic4x-*, c4x-*-rtems*, tic4x-*-rtems*, c4x-*, tic4x-*,
21698         h8300-*-rtemscoff*, ns32k-*-netbsdelf*, ns32k-*-netbsd*,
21699         sh-*-rtemscoff*): Remove cases.
21700         * defaults.h (C4X_FLOAT_FORMAT): Remove.
21701         * real.c (encode_c4x_single, decode_c4x_single,
21702         encode_c4x_extended, decode_c4x_extended, c4x_single_format,
21703         c4x_extended_format): Remove.
21704         * real.h (c4x_single_format, c4x_extended_format): Remove.
21705         * doc/extend.texi (interrupt, naked): Remove mention of attributes
21706         on C4x.
21707         (Pragmas): Remove comment about c4x pragmas.
21708         * doc/install.texi (c4x): Remove target-specific instructions.
21709         * doc/invoke.texi (TMS320C3x/C4x Options): Remove.
21710         * doc/md.texi (Machine Constraints): Remove C4x documentation.
21711         * doc/tm.texi (MEMBER_TYPE_FORCES_BLK, c_register_pragma): Do not
21712         refer to C4x source files as examples.
21713         (C4X_FLOAT_FORMAT): Remove documentation.
21714
21715 2008-01-25  Bernd Schmidt  <bernd.schmidt@analog.com>
21716
21717         * config/bfin/bfin.c (override_options): Reorder tests so that
21718         flag_pic gets enabled for -msep-data.
21719
21720 2008-01-25  Richard Guenther  <rguenther@suse.de>
21721
21722         PR middle-end/32244
21723         * expr.c (expand_expr_real_1): Reduce result of LSHIFT_EXPR
21724         to its bitfield precision if required.
21725
21726 2008-01-25  Jakub Jelinek  <jakub@redhat.com>
21727
21728         PR middle-end/33880
21729         * tree-nested.c (walk_omp_for): New function.
21730         (convert_nonlocal_reference, convert_local_reference): Call
21731         walk_omp_for on OMP_FOR.
21732         (convert_call_expr): Call walk_body on OMP_FOR's
21733         OMP_FOR_PRE_INIT_BODY.
21734
21735 2008-01-25  Richard Guenther  <rguenther@suse.de>
21736
21737         PR tree-optimization/34966
21738         * tree-ssa-math-opts.c (execute_cse_sincos_1): For all but
21739         default defs and PHI_NODEs we have to insert after the
21740         defining statement.
21741
21742 2008-01-24  Nick Clifton  <nickc@redhat.com>
21743
21744         * config/stormy16/stormy16-lib2.c (MIN_UNITS_PER_WORD):
21745         Provide a default definition.
21746         (LIBGCC2_UNITS_PER_WORD): Likewise.
21747
21748         * config/stormy16/stormy16.c: Include df.h for the prototype
21749         for df_regs_ever_live_p.
21750         (xstormy16_expand_builtin_va_start): Convert the stack offset
21751         into a component_ref and then use POINTER_PLUS_EXPR to add it
21752         to the incoming_virtual_args_rtx.
21753         (xstormy16_gimplify_va_arg_expr): Rename to
21754         xstormy16_gimplify_va_arg_expr.
21755         Use POINTER_PLUS_EXPR when performing pointer arithmetic.
21756         (TARGET_GIMPLIFY_VA_ARG_EXPR): Use renamed
21757         xstormy16_gimplify_va_arg_expr.
21758         Fix up some formatting issues.
21759
21760         * config/stormy16/stormy16.c: (xstormy16_carry_plus_operand):
21761         Move to predicates.md.
21762         (xs_hi_general_operand): Likewise.
21763         (xs_hi_nonmemory_operand): Likewise.
21764         * config/stormy16/predicates.md:
21765         (xstormy16_carry_plus_operand): New predicate.
21766         (xs_hi_general_operand): New predicate.
21767         (xs_hi_nonmemory_operand): New predicate.
21768         * config/stormy16/stormy16-protos.h:
21769         (xstormy16_carry_plus_operand): Delete prototype.
21770         (xs_hi_general_operand): Likewise.
21771         (xs_hi_nonmemory_operand): Likewise.
21772
21773         * config/storm16/stormy16.md (addhi3): Remove earlyclobber
21774         modifiers as they are no longer needed and they can trigger
21775         reload spill failures.
21776
21777         * config/storm16/stormy16.md (ineqbranchsi): Replace match_dup
21778         with a match_operand in order to help reload.
21779
21780         * config/storm16/stormy16.md (movhi_internal): Replace 'r'
21781         constraint with 'e' for the 8th alternative as this version of
21782         the mov.w instruction only accepts the lower 8 registers.
21783
21784 2008-01-25  Uros Bizjak  <ubizjak@gmail.com>
21785
21786         PR target/34856
21787         * simplifx-rtx.c (simplify_const_binary_operation) [VEC_CONCAT]:
21788         Consider only CONST_INT, CONST_DOUBLE and CONST_FIXED as constant
21789         vector elements.
21790
21791 2008-01-25  Jakub Jelinek  <jakub@redhat.com>
21792
21793         PR middle-end/33333
21794         * gimplify.c (gimplify_omp_for): Gimplify OMP_FOR_PRE_BODY.
21795
21796 2008-01-25  Golovanevsky Olga  <olga@il.ibm.com>
21797
21798         * ipa-struct-reorg.c (remove_str_allocs_in_func, remove_str_allocs):
21799         New functions.
21800         (remove_structure): Update allocations list before removing structure.
21801
21802 2008-01-25  Golovanevsky Olga  <olga@il.ibm.com>
21803
21804         * ipa-struct-reorg.c (is_safe_cond_expr,
21805         create_new_stmts_for_cond_expr): Use integer_zerop function,
21806         that recognize not only zero-pointer, but zero-integer too.
21807
21808 2008-01-25  Ben Elliston  <bje@au.ibm.com>
21809
21810         PR other/22232
21811         * fixproto: Escape "." in sed expression that strips leading "./".
21812
21813 2008-01-24  H.J. Lu  <hongjiu.lu@intel.com>
21814
21815         PR driver/34904
21816         * gcc.c (SWITCH_OK): Removed.
21817         (SWITCH_LIVE): Changed to bit.
21818         (SWITCH_FALSE): Likewise.
21819         (SWITCH_IGNORE): Likewise.
21820         (switchstr): Change live_cond to unsigned int.
21821         (process_command): Replace SWITCH_OK with 0.
21822         (do_self_spec): Likewise.
21823         (set_collect_gcc_options): Check the SWITCH_IGNORE bit.
21824         (give_switch): Likewise.
21825         (used_arg): Likewise.
21826         (do_spec_1): Set the SWITCH_IGNORE bit.
21827         (check_live_switch): Check both SWITCH_LIVE and SWITCH_FALSE
21828         bits.  Set the SWITCH_LIVE bit.
21829
21830 2008-01-24  Andreas Krebbel  <krebbel1@de.ibm.com>
21831
21832         * config/s390/s390.h (MOVE_RATIO): Define new target macro.
21833
21834 2008-01-24  Richard Sandiford  <rsandifo@nildram.co.uk>
21835
21836         PR tree-optimization/34472
21837         * ipa-struct-reorg.c (safe_cond_expr_check): Change the DATA
21838         parameter to a "bool *" and set *DATA to false if there is
21839         an unsafe access.  Do not delete the structure here.
21840         (check_cond_exprs): Delete it here instead.
21841         (check_cond_exprs, exclude_cold_structs): Do not increase
21842         I when removing a structure.
21843
21844 2008-01-24  Uros Bizjak  <ubizjak@gmail.com>
21845
21846         PR target/34856
21847         * config/i386/i386.c (ix86_expand_vector_init): Consider only
21848         CONST_INT, CONST_DOUBLE and CONST_FIXED as constant vector elements.
21849
21850 2008-01-24  Jakub Jakub Jelinek  <jakub@redhat.com>
21851
21852         PR middle-end/34934
21853         * tree-stdarg.c (reachable_at_most_once): Use VEC vector instead of
21854         a fixed vector for stack.
21855
21856 2008-01-24  Ben Elliston  <bje@au.ibm.com>
21857
21858         PR c++/25701
21859         * doc/gcc.texi (Software development): Add a direntry for g++.
21860
21861 2008-01-23  Hans-Peter Nilsson  <hp@axis.com>
21862
21863         * config/cris/cris.h (CC1PLUS_SPEC, OPTIMIZATION_OPTIONS): Drop
21864         stale and straggling -fforce-addr comments above.
21865
21866         * config/cris/cris.h (CRIS_SUBTARGET_VERSION, TARGET_VERSION): Don't
21867         define.
21868         * config/cris/linux.h (CRIS_SUBTARGET_VERSION): Don't define.
21869         * config/cris/aout.h (CRIS_SUBTARGET_VERSION): Don't define.
21870
21871 2008-01-23  Michael Matz  <matz@suse.de>
21872
21873         PR debug/34895
21874         * dwarf2out.c (force_type_die): Use modified_type_die instead of
21875         gen_type_die.
21876
21877 2008-01-23  Andreas Krebbel  <krebbel1@de.ibm.com>
21878
21879         * ipa-struct-reorg.c (create_new_malloc): Use pointer type as
21880         malloc result type.
21881
21882 2008-01-23 Anatoly Sokolov <aesok@post.ru>
21883
21884         * config/avr/avr.c (avr_current_arch): New variable.
21885         (avr_arch_types): Add 'avr31' and 'avr51' entries.
21886         (avr_arch): Add 'ARCH_AVR31' and 'ARCH_AVR51'.
21887         (avr_mcu_types): Add 'avr31' and 'avr51' architectures.
21888         (avr_override_options): Init 'avr_current_arch'.
21889         (base_arch_s): Move from here...
21890         * config/avr/avr.h (base_arch_s): ... here. Add new members
21891         'have_elpm', 'have_elpmx', 'have_eijmp_eicall', 'reserved'. Rename
21892         'mega' to 'have_jmp_call'.
21893         (TARGET_CPU_CPP_BUILTINS): Define "__AVR_HAVE_JMP_CALL__",
21894         "__AVR_HAVE_RAMPZ__", "__AVR_HAVE_ELPM__" and "__AVR_HAVE_ELPMX__"
21895         macros.
21896         (LINK_SPEC, CRT_BINUTILS_SPECS, ASM_SPEC): Add 'avr31' and 'avr51'
21897         architectures.
21898         * config/avr/t-avr (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
21899         MULTILIB_MATCHES): Ditto.
21900
21901 2008-01-23  Richard Guenther  <rguenther@suse.de>
21902
21903         PR middle-end/31529
21904         * cgraphunit.c (cgraph_reset_node): Always mark the node
21905         not reachable if it is not queued already.
21906
21907 2008-01-23  Bernd Schmidt  <bernd.schmidt@analog.com>
21908
21909         * config/bfin/bfin-protos.h (WA_RETS, ENABLE_WA_RETS): New macros.
21910         * config/bfin/bfin.c (bfin_cpus): Add WA_RETS everywhere.
21911         (cputype_selected): New static variable.
21912         (bfin_handle_option): Set it if -mcpu is used.
21913         (override_option): Select default set of workarounds if no cpu type
21914         selected on the command line.
21915         (workaround_rts_anomaly): Only run if ENABLE_WA_RETS.
21916
21917         From  Michael Frysinger  <michael.frysinger@analog.com>
21918         * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add
21919         BFIN_CPU_BF547, BFIN_CPU_BF523, BFIN_CPU_BF524, and BFIN_CPU_BF526.
21920
21921         * config/bfin/elf.h (LIB_SPEC): Use proper linker script
21922         for bf547, bf523, bf524, and bf526.
21923         * config/bfin/bfin.c (bfin_cpus[]): Add bf547,  bf523, bf524, and
21924         bf526.
21925         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
21926         __ADSPBF523__ for bf523, __ADSPBF524__ for bf524,
21927         __ADSPBF526__ for bf526, __ADSPBF52x__ for all three, as well as
21928         __ADSPBF547__ and __ADSPBF54x__ for bf547.
21929         * doc/invoke.texi (Blackfin Options): Document that
21930         -mcpu now accept bf547, bf523, bf524, and bf526.
21931
21932 2008-01-22  Eric Botcazou  <ebotcazou@adacore.com>
21933
21934         PR rtl-optimization/34628
21935         * combine.c (try_combine): Stop and undo after the first combination
21936         if an autoincrement side-effect on the first insn has effectively
21937         been lost.
21938
21939 2008-01-22  David Edelsohn  <edelsohn@gnu.org>
21940
21941         PR target/34529
21942         * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
21943         Offset addresses are not valid for Altivec or paired float modes.
21944
21945 2008-01-22  Jakub Jelinek  <jakub@redhat.com>
21946
21947         PR c++/34607
21948         * c-parser.c (c_parser_omp_for_loop): Don't call c_finish_omp_for
21949         if DECL_INITIAL (decl) is error_mark_node.
21950
21951         PR c++/34914
21952         * c-common.c (handle_vector_size_attribute): Only allow
21953         integral, scalar float and fixed point types.  Handle OFFSET_TYPE
21954         the same way as pointer, array etc. types.
21955         * tree.c (reconstruct_complex_type): Handle OFFSET_TYPE.
21956
21957         PR c++/34917
21958         * tree.c (build_type_attribute_qual_variant): Call
21959         build_qualified_type if attributes are equal, but quals are not.
21960
21961 2008-01-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
21962
21963         PR 32102
21964         * doc/invoke.texi (-Wall): -Wall enables -Wstrict-overflow=1.
21965         * flags.h (warn_strict_aliasing): Remove.
21966         (warn_strict_overflow): Remove.
21967         * opts.c (warn_strict_aliasing): Remove.
21968         (warn_strict_overflow): Remove.
21969         * c-opts.c (c_common_handle_option): -Wall only sets
21970         -Wstrict-aliasing or -Wstrict-overflow if they are uninitialized.
21971         (c_common_post_options): Give default values to -Wstrict-aliasing
21972         and -Wstrict-overflow if they are uninitialized.
21973         * common.opt (Wstrict-aliasing): Specify Var and Init.
21974         (Wstrict-overflow): Likewise.
21975
21976 2008-01-22  Kenneth Zadeck  <zadeck@naturalbridge.com>
21977
21978         PR rtl-optimization/26854
21979         PR rtl-optimization/34400
21980         PR rtl-optimization/34884
21981         * ddg.c (create_ddg_dep_from_intra_loop_link): Use
21982         DF_RD->gen.
21983         * df.h (df_changeable_flags.DF_RD_NO_TRIM): Deleted
21984         (df_rd_bb_info.expanded_lr_out): Deleted
21985         * loop_invariant.c (find_defs): Deleted DF_RD_NO_TRIM flag.
21986         * loop_iv.c (iv_analysis_loop_init): Ditto.  * df-problems.c
21987         (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
21988         df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
21989         Removed code to allocate, initialize or free expanded_lr_out.
21990         (df_rd_bb_local_compute_process_def): Restructured to make more
21991         understandable.
21992         (df_rd_confluence_n): Removed code to no apply invalidate_by_call
21993         sets if the sets are being trimmed.
21994
21995 2008-01-22  H.J. Lu  <hongjiu.lu@intel.com>
21996
21997         PR bootstrap/32287
21998         * configure.ac (ld_vers): Support GNU linker version xx.xx.*
21999         (as_vers): Likewise.
22000         * configure: Regenerated.
22001
22002 2008-01-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
22003
22004         PR middle-end/33092
22005         * tree-pass.h (pass_build_alias): New pass.
22006         * tree-ssa-alias.c (gate_build_alias): New.
22007         (pass_build_alias): New.
22008         * passes.c (init_optimization_passes): Add pass_build_alias after
22009         pass_create_structure_vars.
22010
22011 2008-01-22  Wolfgang Gellerich  <gellerich@de.ibm.com>
22012
22013         * config/s390/s390.h (S390_TDC_POSITIVE_NORMALIZED_NUMBER):
22014         Renamed to S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER.
22015         (S390_TDC_NEGATIVE_NORMALIZED_NUMBER): Renamed to
22016         S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER.
22017         (S390_TDC_POSITIVE_DENORMALIZED_NUMBER): Renamed to
22018         S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER.
22019         (S390_TDC_NEGATIVE_DENORMALIZED_NUMBER): Renamed to
22020         S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER.
22021         (S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER): New constant.
22022         (S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER): New constant.
22023         (S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER): New constant.
22024         (S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER): New constant.
22025         * config/s390/s390.md (FP_ALL): New mode iterator.
22026         (_d): New mode attribute.
22027         ("*signbit<mode>2>"): Changed mode of first operand.
22028         ("isinf<mode>2"): Changed mode of first operand.
22029         ("*TDC_insn"): Adaptation for DFP modes.
22030
22031 2008-01-22  Ben Elliston  <bje@au.ibm.com>
22032
22033         * tree.c (check_qualified_type): Improve function description.
22034
22035 2008-01-21  Jason Merrill  <jason@redhat.com>
22036
22037         PR c++/34196
22038         * tree.h (TRY_CATCH_IS_CLEANUP): New macro.
22039         * tree-eh.c (honor_protect_cleanup_actions): Strip TRY_CATCH_EXPR
22040         if it is set.
22041
22042 2008-01-21  DJ Delorie  <dj@redhat.com>
22043
22044         * doc/tm.texi (HARD_REGNO_NREGS): Note that this macro must not
22045         return zero.
22046
22047 2008-01-21  Richard Guenther  <rguenther@suse.de>
22048
22049         PR middle-end/34856
22050         * tree-cfg.c (verify_expr): Allow all invariant expressions
22051         instead of just constant class ones as reference argument.
22052         * tree-ssa-loop-im.c (for_each_index): Handle CONSTRUCTOR
22053         like any other constant.
22054         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
22055
22056 2008-01-21  H.J. Lu  <hongjiu.lu@intel.com>
22057
22058         * regmove.c (fixup_match_1): Update call crossed frequencies.
22059
22060 2008-01-21  Richard Guenther  <rguenther@suse.de>
22061
22062         PR c/34885
22063         * tree-inline.c (setup_one_parameter): Deal with mismatched
22064         types using a VIEW_CONVERT_EXPR.
22065
22066 2008-01-21  Alon Dayan  <alond@il.ibm.com>
22067             Olga Golovanevsky  <olga@il.ibm.com>
22068
22069         PR tree-optimization/34701
22070         * ipa-struct-reorg.c (gen_size): Fix the malloc parameter calculation
22071         when the structure size is not a power of 2.
22072
22073 2008-01-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
22074
22075         * doc/install.texi: Add doc for --enable-checking=df.
22076
22077 2008-01-20  Kaz Kojima  <kkojima@gcc.gnu.org>
22078
22079         PR rtl-optimization/34808
22080         * emit-rtl.c (try_split): Handle REG_RETVAL notes.
22081
22082 2008-01-20  Richard Sandiford  <rsandifo@nildram.co.uk>
22083
22084         * global.c (find_reg): Only compute EH_RETURN_DATA_REGNO once per
22085         input.
22086
22087 2008-01-19  Kenneth Zadeck  <zadeck@naturalbridge.com>
22088
22089         PR rtl-optimization/26854
22090         PR rtl-optimization/34400
22091         * ddg.c (create_ddg_dep_from_intra_loop_link): Do not use
22092         DF_RD->gen.
22093         * df.h (df_changeable_flags.DF_RD_NO_TRIM): New.
22094         (df_rd_bb_info.expanded_lr_out): New.
22095         * loop_invariant.c (find_defs): Added DF_RD_NO_TRIM flag.
22096         * loop_iv.c (iv_analysis_loop_init): Ditto.
22097         * df-problems.c (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
22098         df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
22099         Added code to allocate, initialize or free expanded_lr_out.
22100         (df_rd_bb_local_compute_process_def): Restructured to make
22101         more understandable.
22102         (df_rd_confluence_n): Add code to do nothing with fake edges and
22103         code to no apply invalidate_by_call sets if the sets are being trimmed.
22104         (df_lr_local_finalize): Renamed to df_lr_finalize.
22105         (df_live_local_finalize): Renamed to df_live_finalize.
22106
22107 2008-01-20  Richard Sandiford  <rsandifo@nildram.co.uk>
22108
22109         PR target/34831
22110         * config/mips/mips.md (div<mode>3): Use <recip_condition> when
22111         deciding whether to use reciprocal instructions.
22112
22113 2008-01-19  Uros Bizjak  <ubizjak@gmail.com>
22114
22115         * dwarf2out.c (dwarf2out_switch_text_section): Do not call
22116         dwarf2out_note_section_used if cold_text_section is NULL.
22117
22118 2008-01-19  Jakub Jelinek  <jakub@redhat.com>
22119
22120         PR gcov-profile/34610
22121         * tree-cfg.c (make_edges): Mark both outgoing edges from
22122         OMP_CONTINUE and from OMP_FOR as EDGE_ABNORMAL.
22123         * omp-low.c (expand_omp_for): Clear EDGE_ABNORMAL bits
22124         from OMP_FOR and OMP_CONTINUE outgoing edges.
22125
22126         * tree-profile.c (tree_profiling): Return early if
22127         cfun->after_tree_profile != 0.  Set cfun->after_tree_profile
22128         at the end.
22129         * omp-low.c (expand_omp_parallel): Copy after_tree_profile
22130         from cfun to child_cfun.
22131         * function.h (struct function): Add after_tree_profile bit.
22132
22133 2008-01-19 Anatoly Sokolov <aesok@post.ru>
22134
22135         * config/avr/avr.S (_exit): Disable interrupt.
22136
22137 2008-01-18  Kenneth Zadeck  <zadeck@naturalbridge.com>
22138             Steven Bosscher  <stevenb.gcc@gmail.com>
22139
22140         PR rtl-optimization/26854
22141         PR rtl-optimization/34400
22142         * df-problems.c (df_live_scratch): New scratch bitmap.
22143         (df_live_alloc): Allocate df_live_scratch when doing df_live.
22144         (df_live_reset): Clear the proper bitmaps.
22145         (df_live_bb_local_compute): Only process the artificial defs once
22146         since the order is not important.
22147         (df_live_init): Init the df_live sets only with the variables
22148         found live by df_lr.
22149         (df_live_transfer_function): Use the df_lr sets to prune the
22150         df_live sets as they are being computed.
22151         (df_live_free): Free df_live_scratch.
22152
22153 2008-01-18  Ian Lance Taylor  <iant@google.com>
22154
22155         * common.opt: Add fmerge-debug-strings.
22156         * dwarf2out.c (DEBUG_STR_SECTION_FLAGS): Test
22157         flag_merge_debug_strings rather than flag_merge_constants.
22158         * doc/invoke.texi (Option Summary): Mention
22159         -fmerge-debug-strings.
22160         (Debugging Options): Document -fmerge-debug-strings.
22161
22162 2008-01-18  Ian Lance Taylor  <iant@google.com>
22163
22164         PR c++/33407
22165         * tree.h (DECL_IS_OPERATOR_NEW): Define.
22166         (struct tree_function_decl): Add new field operator_new_flag.
22167         * tree-inline.c (expand_call_inline): When inlining a call to
22168         operator new, force the return value to go into a variable, and
22169         set DECL_NO_TBAA_P on that variable.
22170         * c-decl.c (merge_decls): Merge DECL_IS_OPERATOR_NEW flag.
22171
22172 2008-01-18  Uros Bizjak  <ubizjak@gmail.com>
22173
22174         PR debug/34484
22175         * dwarf2out.c (dwarf2out_switch_text_section): Do not guard with
22176         DWARF2_DEBUGGING_INFO.
22177         (dwarf2out_note_section_used): Ditto.  Add prototype.
22178         (have_multiple_function_sections, text_section_used,
22179         cold_text_section_used, *cold_text_sections): Move declarations
22180         before their uses.
22181
22182 2008-01-17  Bob Wilson  <bob.wilson@acm.org>
22183
22184         * config/xtensa/unwind-dw2-xtensa.h (_Unwind_FrameState): Remove pc
22185         field and add signal_ra.
22186         * config/xtensa/unwind-dw2-xtensa.c (uw_frame_state_for): Remove
22187         assignments to frame state pc.  Move end of stack check after
22188         MD_FALLBACK_FRAME_STATE_FOR.
22189         (uw_update_context_1): Use frame state signal_regs if set, instead
22190         of checking signal_frame flag.
22191         (uw_update_context): Use frame state signal_ra if set.
22192         * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Define.
22193         * config/xtensa/linux-unwind.h: New file.
22194
22195 2008-01-18  Bernhard Fischer  <aldot@gcc.gnu.org>
22196
22197         * modulo-sched.c (get_sched_window): Fix comment typo.
22198
22199 2008-01-17  Andrew MacLeod  <amacleod@redhat.com>
22200
22201         PR tree-optimization/34648
22202         * tree-ssa-sccvn.c (visit_use): Expressions which can throw are varying.
22203
22204 2008-01-17  Anatoly Sokolov <aesok@post.ru>
22205
22206         * config/avr/avr.h (LINK_SPEC): Support -mrelax and -mpmem-wrap-around.
22207         * config/avr/avr.opt (mrelax, mpmem-wrap-around): Add.
22208
22209 2008-01-17  Seongbae Park  <seongbae.park@gmail.com>
22210
22211         PR rtl-optimization/34400
22212         * df-core.c (df_worklist_dataflow_overeager,
22213         df_worklist_dataflow_doublequeue): New functions.
22214         (df_worklist_dataflow): Two different worklist solvers.
22215         * params.def (PARAM_DF_DOUBLE_QUEUE_THRESHOLD_FACTOR):
22216         New param.
22217
22218 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
22219
22220         PR testsuite/34821
22221         * doc/invoke.texi: Document the dependence on pthread for fopenmp
22222         and ftree-parallelize-loops.
22223
22224 2008-01-17  Mircea Namolaru  <namolaru@il.ibm.com>
22225
22226         PR rtl-optimization/34826
22227         * loop-doloop (doloop_modify): Update the REG_BR_PROB note.
22228
22229 2008-01-17  Andreas Krebbel  <krebbel1@de.ibm.com>
22230
22231         * global.c (find_reg): Mark the eh regs as used if necessary.
22232         * ra-conflict.c (global_conflicts): Set no_eh_reg flag.
22233         * ra.h (struct allocno): no_eh_reg field added.  Changed
22234         no_stack_reg type to bitfield.
22235
22236 2008-01-17  Eric Botcazou  <ebotcazou@adacore.com>
22237
22238         * tree.c (substitute_in_expr): Add missing 'break'.
22239
22240 2008-01-17  Richard Guenther  <rguenther@suse.de>
22241
22242         PR tree-optimization/34825
22243         * tree-ssa-math-opts.c (is_division_by): Do not recognize
22244         x / x as division to handle.
22245
22246 2008-01-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
22247
22248         * pa64-hpux.h (LIB_SPEC): Add "-lpthread" in shared links if "-mt" or
22249         "-pthread" is specified.
22250         * pa-hpux11.h (LIB_SPEC): Likewise.
22251
22252 2008-01-16  Janis Johnson  <janis187@us.ibm.com>
22253             Peter Bergner  <bergner@vnet.ibm.com>
22254
22255         PR rtl-optimization/33796
22256         * sparseset.c (sparseset_alloc): Use xcalloc rather than xmalloc.
22257
22258 2008-01-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
22259
22260         PR libgfortran/34699
22261         * pa-hpux.h (LINK_SPEC): Only search /lib/pa1.1 and /usr/lib/pa1.1 on
22262         static links.
22263         * pa-hpux10.h (LINK_SPEC): Likewise.
22264         * pa-hpux11.h (LINK_SPEC): Don't search /lib/pa1.1 and /usr/lib/pa1.1.
22265
22266 2008-01-16  Richard Guenther  <rguenther@suse.de>
22267
22268         PR middle-end/32628
22269         * fold-const.c (fold_convert_const_int_from_int): Do not
22270         set overflow if that occured only because of a sign extension
22271         change when converting from/to a sizetype with the same
22272         precision and signedness.
22273
22274 2008-01-16  Uros Bizjak  <ubizjak@gmail.com>
22275
22276         PR debug/34249
22277         * dwarf2out.c (output_call_frame_info): Move output of FDE initial
22278         location address to the correct place.  Update copyright year.
22279
22280 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
22281
22282         * lambda-code.c (lambda_transform_legal_p): Handle the case of
22283         no dependences in the dependence_relations vector.
22284
22285 2008-01-16  Jan Hubicka  <jh@suse.cz>
22286
22287         PR rtl-optimization/31396
22288         * regstat.c (regstat_bb_compute_ri): Compute FREQ_CALLS_CROSSED.
22289         * cfg.c (dump_reg_info): Print it.
22290         * regs.h (struct reg_info_t): add freq_calls_crossed.
22291         (REG_FREQ_CALLS_CROSSED): New macro.
22292         * global.c (global_alloc): Compute freq_calls_crossed for allocno.
22293         (find_reg): Update call of CALLER_SAVE_PROFITABLE.
22294         * regmove.c (optimize_reg_copy_1, optimize_reg_copy_2, fixup_match_2,
22295         regmove_optimize): Update call crossed frequencies.
22296         * local-alloc.c (struct qty): Add freq_calls_crossed.
22297         (alloc_qty): Copute freq_calls_crossed.
22298         (update_equiv_regs, combine_regs): Update REG_FREQ_CALLS_CROSSED.
22299         (find_free_reg): Update call of CALLER_SAVE_PROFITABLE.
22300         * ra.h (struct allocno): Add freq_calls_crossed.
22301
22302 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
22303
22304         * gcc.c (LINK_COMMAND_SPEC): Add includes and link options for
22305         libgomp when compiling with ftree-parallelize-loops.
22306         (GOMP_SELF_SPECS): Add -pthread for ftree-parallelize-loops.
22307
22308 2008-01-16  Richard Guenther  <rguenther@suse.de>
22309
22310         PR tree-optimization/34769
22311         * tree-data-ref.c (initialize_matrix_A): Revert fix for PR34458.
22312         * tree.c (int_cst_value): Instead make this function more
22313         permissive in what it accepts as valid input.  Document this
22314         function always sign-extends the value.
22315
22316 2008-01-16  Jakub Jelinek  <jakub@redhat.com>
22317             Richard Guenther  <rguenther@suse.de>
22318
22319         PR c/34668
22320         * gimplify.c (fold_indirect_ref_rhs): Rename to ...
22321         (gimple_fold_indirect_ref_rhs): ... this.
22322         (gimple_fold_indirect_ref): New function with foldings
22323         that preserve lvalueness.
22324         (gimplify_modify_expr_rhs): Call gimple_fold_indirect_ref_rhs.
22325         * tree-flow.h (gimple_fold_indirect_ref): Declare.
22326         * tree-inline.c (copy_body_r): Use gimple_fold_indirect_ref
22327         to fold an INDIRECT_REF, fall back to the old use of
22328         fold_indirect_ref_1.
22329
22330 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
22331
22332         * tree-data-ref.c (subscript_dependence_tester_1): Call
22333         free_conflict_function.
22334         (compute_self_dependence): Same.
22335
22336 2008-01-16  Uros Bizjak  <ubizjak@gmail.com>
22337
22338         PR debug/34249
22339         * debug.h (dwarf2out_switch_text_section): Move declaration from ...
22340         * dwarf2out.c (dwarf2out_switch_text_section): ... here.  Make
22341         function global.
22342         * final.c (final_scan_insn) [NOTE_INSN_SWITCH_TEXT_SECTIONS]:
22343         Depending on dwarf2out_do_frame, call dwarf2out_switch_text_section
22344         for DWARF2_UNWIND_INFO targets.
22345
22346 2008-01-16  Richard Guenther  <rguenther@suse.de>
22347
22348         PR c/34768
22349         * c-typeck.c (common_pointer_type): Do not merge inconsistent
22350         type qualifiers for function types.
22351
22352 2008-01-15  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
22353
22354         * tree-parloops.c (gen_parallel_loop): Fix ommision of declaration for
22355         loop_iterator li from previous commit.
22356
22357 2008-01-15  Sebastian Pop  <sebastian.pop@amd.com>
22358
22359         * tree-parloops.c (gen_parallel_loop): Free loop bound estimations.
22360
22361 2008-01-12  Sebastian Pop  <sebastian.pop@amd.com>
22362
22363         * tree-parloops.c (loop_has_blocks_with_irreducible_flag): New.
22364         (parallelize_loops): Don't parallelize irreducible components.
22365
22366 2008-01-14  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
22367
22368         PR c++/24924
22369         * c-opts (c_common_post_options): Do not enable CPP
22370         flag_pedantic_errors by default.
22371
22372 2008-01-14  Eric Botcazou  <ebotcazou@adacore.com>
22373
22374         PR rtl-optimization/31944
22375         * cse.c (remove_pseudo_from_table): New function.
22376         (merge_equiv_classes): Use above function to remove pseudo-registers.
22377         (invalidate): Likewise.
22378
22379 2008-01-13  Richard Guenther  <rguenther@suse.de>
22380
22381         PR middle-end/34601
22382         * emit-rtl.c (set_reg_attrs_for_decl_rtl): Use DECL_MODE
22383         instead of TYPE_MODE to deal with calls from expand_one_error_var.
22384
22385 2008-01-13  Uros Bizjak  <ubizjak@gmail.com>
22386
22387         * gcse.c (cprop_jump): Call validate_unshare_change instead of
22388         validate_change to unshare the source of the PC set.
22389
22390 2008-01-12  Jan Hubicka  <jh@suse.cz>
22391
22392         PR middle-end/32135
22393         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Do not construct
22394         references above array bounds.  This might trigger bounds checks for
22395         pointers to arrays.
22396
22397 2008-01-12  Sebastian Pop  <sebastian.pop@amd.com>
22398
22399         * tree-ssa-ter.c (free_temp_expr_table): Free num_in_part and
22400         new_replaceable_dependencies.
22401
22402 2008-01-12  Doug Kwan  <dougkwan@google.com>
22403
22404         * c-decl.c: (grokdeclarator): Use OPT_Wignored_qualifiers
22405         instead of OPT_Wreturn_type in warning due to ignored return type
22406         qualifiers.
22407         * c-opt.c (c_common_post_option): Add -Wignored-qualifiers to
22408         options included in -Wextra.
22409         * c.opt: New option -Wignored_qualifiers.
22410         * doc/invoke.texi (Warning Options, -Wextra): Add new option
22411         -Wignore_qualifiers.
22412         (-Wignored-qualifiers): Document.
22413         (-Wreturn-type): Remove description of functionality now handled
22414         by -Wignored-qualifiers.
22415
22416 2008-01-12  Eric Botcazou  <ebotcazou@adacore.com>
22417
22418         PR ada/33788
22419         * fold-const.c (fold_unary) <VIEW_CONVERT_EXPR>: Fold an existing
22420         NOP_EXPR if it is between integral types with the same precision.
22421
22422 2008-01-12  Jan Hubicka  <jh@suse.cz>
22423
22424         PR other/28023
22425         * invoke.texi (max-inline-recursive-depth): Fix default value.
22426
22427 2008-01-12  Zdenek Dvorak  <ook@ucw.cz>
22428
22429         * tree-parloops.c (transform_to_exit_first_loop): Cast nit to the
22430         correct type.
22431
22432 2008-01-11  Bob Wilson  <bob.wilson@acm.org>
22433
22434         * config/xtensa/xtensa.c (override_options): Set flag_shlib.
22435
22436 2008-01-11  James E. Wilson  <wilson@specifix.com>
22437
22438         PR target/26015
22439         * config/vax/elf.h (FRAME_POINTER_CFA_OFFSET): Define.
22440
22441 2008-01-11  Anatoly Sokolov <aesok@post.ru>
22442
22443         * config/avr/avr.c (expand_prologue, expand_epilogue): Don't
22444         save/restore frame pointer register and don't use 'call-prologues'
22445         optimization in function with "OS_task" attribute.
22446
22447 2008-01-11  Eric Botcazou  <ebotcazou@adacore.com>
22448
22449         PR middle-end/31309
22450         * expr.c (copy_blkmode_from_reg): Use a mode suited to the size
22451         when copying to memory.
22452
22453 2008-01-11  Steven Bosscher  <stevenb.gcc@gmail.com>
22454
22455         PR rtl-optimization/30905
22456         * cfgcleanup.c: Include dce.h
22457         (crossjumps_occured): New global variable.
22458         (try_crossjump_bb): Exit loop after finding a fallthru edge.
22459         If something changed, set crossjumps_occured to true.
22460         (try_optimize_cfg): Clear crossjumps_occured at the beginning.
22461         Don't add/remove fake edges to exit here...
22462         (cleanup_cfg): ...but do it here, when crossjumping.
22463         Run a fast DCE when successful crossjumps occured in the latest
22464         iteration of try_optimize_cfg.
22465
22466 2008-01-11  Richard Guenther  <rguenther@suse.de>
22467
22468         * tree-ssa-sccvn.c (struct vn_binary_op_s): Move hashcode near opcode.
22469         (struct vn_unary_op_s): Likewise.
22470         (vn_reference_insert): Free old reference on hash collision.
22471
22472 2008-01-10  Raksit Ashok  <raksit@google.com>
22473
22474         PR rtl-optimization/27971
22475         * combine.c (find_split_point): Split PLUS expressions which are
22476         inside a MEM rtx, and whose first operand is complex.
22477
22478 2008-01-10  DJ Delorie  <dj@redhat.com>
22479
22480         * config/m32c/m32c.c (m32c_hard_regno_nregs_1): Renamed from...
22481         (m32c_hard_regno_nregs): ...this, which is now a wrapper.
22482         (m32c_hard_regno_ok): Call the underlying function.
22483
22484 2008-01-10  Richard Guenther  <rguenther@suse.de>
22485
22486         PR middle-end/34683
22487         * tree-cfg.c (tree_merge_blocks): Do not go through the
22488         full-blown folding and stmt updating path if we just deal
22489         with virtual operands.
22490         * tree-ssa-copy.c (may_propagate_copy): Do not short-cut
22491         test for abnormal SSA_NAMEs.
22492
22493 2008-01-10  Andreas Krebbel  <krebbel1@de.ibm.com>
22494
22495         PR middle-end/34641
22496         * reload.c (push_reload): Add assertions.  All constants from
22497         reg_equiv_constant should have been used for replacing the respective
22498         pseudo earlier.
22499         (find_reloads_address): Invoke find_reloads_address_part for
22500         constant taken from the reg_equiv_constant array.
22501
22502 2008-01-10  Steven Bosscher  <stevenb.gcc@gmail.com>
22503
22504         * tree-ssa-sccvn.h (struct vn_ssa_aux): Make the most accessed
22505         field (valnum) the first in the struct.  Replace bools with
22506         unit bit fields.
22507
22508 2008-01-10  Richard Guenther  <rguenther@suse.de>
22509
22510         PR tree-optimization/34651
22511         * tree-sra.c (sra_build_assignment): Sanitize.  Use the correct
22512         types and ordering for masking and converting.
22513
22514 2008-01-09  Sebastian Pop  <sebastian.pop@amd.com>
22515
22516         PR tree-optimization/34017
22517         * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Generate code
22518         also for PHI_NODE expressions.
22519
22520 2008-01-09  Jan Hubicka  <jh@suse.cz>
22521
22522         PR tree-optimization/34708
22523         * tree-inline.c (estimate_num_insns_1): Compute cost of SWITCH_EXPR
22524         based on number of case labels.
22525         (init_inline_once): Remove switch_cost.
22526         * tree-inline.h (eni_weights_d): Remove switch_cost.
22527
22528 2008-01-09  Richard Guenther  <rguenther@suse.de>
22529         Andrew Pinski  <andrew_pinski@playstation.sony.com>
22530
22531         PR middle-end/30132
22532         * gimplify.c (gimplify_cond_expr): Do not create an addressable
22533         temporary if an rvalue is ok or an lvalue is not required.
22534
22535 2008-01-09  Richard Guenther  <rguenther@suse.de>
22536
22537         PR middle-end/34458
22538         * tree-data-ref.c (initialize_matrix_A): Use tree_low_cst,
22539         adjust return type.
22540
22541 2008-01-09  Richard Guenther  <rguenther@suse.de>
22542
22543         PR middle-end/34679
22544         * tree.c (host_integerp): Check for sizetype only if the
22545         type is an integer type.
22546
22547 2008-01-09  Steven Bosscher  <stevenb.gcc@gmail.com>
22548
22549         PR debug/26364
22550         * opts.c (decode_options): Disable inlining of functions called
22551         once if not in unit-at-a-time mode.
22552
22553 2008-01-09  Alexandre Oliva  <aoliva@redhat.com>
22554
22555         * Makefile.in (dse.o): Remove duplicate $(RECOG_H) dependency.
22556
22557 2008-01-08  Richard Guenther  <rguenther@suse.de>
22558
22559         PR middle-end/31863
22560         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Bail
22561         out early if the result will be unused.
22562
22563 2008-01-08  Uros Bizjak  <ubizjak@gmail.com>
22564
22565         PR target/34709
22566         Revert:
22567
22568         2008-01-05  Uros Bizjak  <ubizjak@gmail.com>
22569         * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
22570         for TARGET_RECIP.
22571
22572 2008-01-08  Jan Sjodin  <jan.sjodin@amd.com>
22573
22574         * config/i386/i386.c (k8_cost, amdfam10_cost): Branch costs
22575         for vectorization tuned.
22576
22577 2008-01-08  Richard Guenther  <rguenther@suse.de>
22578
22579         PR tree-optimization/34683
22580         * tree-ssa-operands.c (operand_build_cmp): Export.
22581         * tree-ssa-operands.h (operand_build_cmp): Declare.
22582         * tree-vn.c (vuses_compare): Remove.
22583         (sort_vuses): Use operand_build_cmp.
22584         (sort_vuses_heap): Likewise.
22585         * tree-ssa-sccvn.c (vuses_to_vec): Use VEC_reserve, not VEC_alloc
22586         to re-use old VEC if available.  Do not sort already sorted VUSEs.
22587         (vdefs_to_vec): Do not sort already sorted VDEFs.
22588
22589 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
22590
22591         PR middle-end/34694
22592         * omp-low.c (copy_var_decl): Copy also DECL_SOURCE_LOCATION.
22593
22594 2008-01-08  Uros Bizjak  <ubizjak@gmail.com>
22595
22596         PR target/34702
22597         * doc/invoke.texi (i386 and x86-64 Options) [mrecip]: Document
22598         limitations of reciprocal sequences on x86 targets.
22599
22600 2008-01-08  Richard Guenther  <rguenther@suse.de>
22601
22602         PR tree-optimization/34683
22603         * tree-flow-inline.h (var_ann): Remove overzealous asserts.
22604
22605 2008-01-07  Jakub Jelinek  <jakub@redhat.com>
22606
22607         PR target/34622
22608         * config/darwin.c (darwin_mergeable_string_section): Don't use
22609         .cstring if int_size_in_bytes != TREE_STRING_LENGTH.
22610
22611 2008-01-07  Uros Bizjak  <ubizjak@gmail.com>
22612
22613         PR target/34682
22614         * config/i386/i386.md (neg<mode>2): Rename from negsf2, negdf2 and
22615         negxf2.  Macroize expander using X87MODEF mode iterator.  Change
22616         predicates of op0 and op1 to register_operand.
22617         (abs<mode>2): Rename from abssf2, absdf2 and negxf2.  Macroize
22618         expander using X87MODEF mode iterator.  Change predicates of
22619         op0 and op1 to register_operand.
22620         ("*absneg<mode>2_mixed", "*absneg<mode>2_sse"): Rename from
22621         corresponding patterns and macroize using MODEF macro.  Change
22622         predicates of op0 and op1 to register_operand and remove
22623         "m" constraint. Disparage "r" alternative with "!".
22624         ("*absneg<mode>2_i387"): Rename from corresponding patterns and
22625         macroize using X87MODEF macro.  Change predicates of op0 and op1
22626         to register_operand and remove "m" constraint.  Disparage "r"
22627         alternative with "!".
22628         (absneg splitter with memory operands): Remove.
22629         ("*neg<mode>2_1", "*abs<mode>2_1"): Rename from corresponding
22630         patterns and macroize using X87MODEF mode iterator.
22631         * config/i386/sse.md (negv4sf2, absv4sf2, neg2vdf2, absv2df2):
22632         Change predicate of op1 to register_operand.
22633         * config/i386/i386.c (ix86_expand_fp_absneg_operator): Remove support
22634         for memory operands.
22635
22636 2008-01-07  Nathan Froyd  <froydnj@codesourcery.com>
22637
22638         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add clause for mcpu=8548.
22639
22640 2008-01-07  Richard Guenther  <rguenther@suse.de>
22641
22642         * basic-block.h (struct edge_def): Pair dest_idx with goto_locus
22643         fields.
22644
22645 2008-01-07  Richard Guenther  <rguenther@suse.de>
22646
22647         PR tree-optimization/34683
22648         * tree-ssa-sccvn.c (vuses_to_vec): Pre-allocate the vector of
22649         VOPs of the needed size to save memory.  Use VEC_quick_push
22650         to save compile-time.
22651         (vdefs_to_vec): Likewise.
22652
22653 2008-01-07  Sa Liu  <saliu@de.ibm.com>
22654
22655         * config/spu/spu.md (divdf3): Genetate inline code for double
22656         division.  The implementation doesn't handle INF or NAN, therefore it
22657         only applies when -ffinite-math-only is given.
22658
22659 2008-01-06  Paolo Carlini  <pcarlini@suse.de>
22660
22661         PR libstdc++/34680
22662         * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_RTTI, if appropriate.
22663         * doc/cpp.texi ([Common Predefined Macros]): Document.
22664
22665 2008-01-06  Uros Bizjak  <ubizjak@gmail.com>
22666
22667         * config/i386/i386.c (ix86_emit_swsqrtsf): Use negative constants in
22668         order to use commutative addition instead of subtraction.
22669
22670 2008-01-06  Andrew Pinski  <andrew_pinski@playstation.sony.com>
22671             Mircea Namolaru  <namolaru@il.ibm.com>
22672             Vladimir Yanovsky  <yanov@il.ibm.com>
22673             Revital Eres  <eres@il.ibm.com>
22674
22675         PR tree-optimization/34263
22676         * tree-outof-ssa.c (process_single_block_loop_latch,
22677         contains_tree_r): New functions.
22678         (analyze_edges_for_bb): Call process_single_block_loop_latch
22679         function to empty single-basic-block latch block if possible.
22680
22681 2008-01-05  Uros Bizjak  <ubizjak@gmail.com>
22682
22683         * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
22684         for TARGET_RECIP.
22685         (ix86_emit_swsqrtsf): Do not filter out infinity for rsqrt expansion.
22686
22687 2008-01-05  Richard Sandiford  <rsandifo@nildram.co.uk>
22688
22689         * c-omp.c (check_omp_for_incr_expr): Handle CONVERT_EXPR.
22690
22691 2008-01-05  Richard Sandiford  <rsandifo@nildram.co.uk>
22692
22693         * config/mips/mips.c (mips_in_small_data_p): Reinstate size > 0 check.
22694
22695 2008-01-05  Jakub Jelinek  <jakub@redhat.com>
22696
22697         PR tree-optimization/34618
22698         * tree-outof-ssa.c (create_temp): Copy over DECL_GIMPLE_REG_P
22699         flag from T.
22700
22701 2008-01-05  Uros Bizjak  <ubizjak@gmail.com>
22702
22703         PR target/34673
22704         * config/i386/i386.c (ix86_emit_swsqrtsf): Swap input operands
22705         in the call to gen_rtx_NE.  Remove unneeded VECTOR_MODE_P check.
22706         Update copyright year.
22707
22708         * config/i386/i386.md (rsqrtsf2): Enable for TARGET_SSE_MATH.
22709         Update copyright year.
22710         * config/i386/sse.md (rsqrtv4sf2): Ditto. Unconditionally expand
22711         using NR fixup.
22712
22713 2008-01-05  Zhouyi Zhou  <zhouzhouyi@FreeBSD.org>
22714
22715         * tree-vrp.c (find_conditional_asserts): Remove redundant check that
22716         edge does not point to current bb before changing need_assert.
22717
22718 2008-01-04  Richard Guenther  <rguenther@suse.de>
22719
22720         PR middle-end/34029
22721         * tree-cfg.c (verify_expr): Do not look inside ADDR_EXPRs
22722         for verifying purposes if they are is_gimple_min_invariant.
22723
22724 2008-01-04  Aldy Hernandez  <aldyh@redhat.com>
22725
22726         PR tree-optimization/34448
22727         PR tree-optimization/34465
22728         * gimplify.c (gimplify_init_constructor): Add new parameter
22729         notify_temp_creation.  Use it.
22730         (gimplify_modify_expr_rhs): Take volatiles into account when
22731         optimizing constructors.
22732         Do not optimize constructors if gimplify_init_constructor will dump to
22733         memory.
22734         * gcc.dg/tree-ssa/pr32901.c: Tests const volatiles.
22735         * gcc.c-torture/compile/pr34448.c: New.
22736
22737 2008-01-04  Jakub Jelinek  <jakub@redhat.com>
22738
22739         PR gcov-profile/34609
22740         * tree-inline.c (declare_return_variable): Set TREE_ADDRESSABLE on
22741         return_slot if result is TREE_ADDRESSABLE.
22742
22743 2008-01-04  Richard Sandiford  <rsandifo@nildram.co.uk>
22744
22745         * config/mips/mips.md (sqrt_condition): Tweak comment.
22746         (recip_condition): Likewise.  Require TARGET_FLOAT64 for DFmode.
22747
22748 2008-01-03  Tom Tromey  <tromey@redhat.com>
22749
22750         PR c/34457
22751         * c-common.c (c_type_hash): Handle VLAs.
22752
22753 2008-01-03  Jan Hubicka  <jh@suse.cz>
22754
22755         PR tree-optimization/31081
22756         * tree-inline.c (remap_ssa_name): Initialize uninitialized SSA vars to
22757         0 when inlining and not inlining to first basic block.
22758         (remap_decl): When var is initialized to 0, don't set default_def.
22759         (expand_call_inline): Set entry_bb.
22760         * tree-inline.h (copy_body_data): Add entry_bb.
22761
22762 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
22763
22764         PR c++/34619
22765         * cgraphunit.c (cgraph_build_static_cdtor): set_cfun back to NULL
22766         before returning.
22767
22768         PR tree-optimization/29484
22769         * tree-inline.c (inline_forbidden_p_2): New function.
22770         (inline_forbidden_p): Disallow inlining if some static var
22771         has an address of a local LABEL_DECL in its initializer.
22772         * doc/extend.texi (Labels as Values): Document &&foo behaviour
22773         vs. inlining.
22774
22775 2008-01-03  Sebastian Pop  <sebastian.pop@amd.com>
22776
22777         PR tree-optimization/34635
22778         * tree-data-ref.c (add_other_self_distances): Make sure that the
22779         evolution step is constant.
22780
22781 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
22782
22783         PR middle-end/34608
22784         * omp-low.c (expand_omp_parallel): Purge dead EH edges in the child fn.
22785
22786 2008-01-02  Richard Sandiford  <rsandifo@nildram.co.uk>
22787
22788         * tree-sra.c (scalarize_init): Insert the generate_element_init
22789         statements after the generate_element_zero statements.
22790
22791 2008-01-02  Richard Guenther  <rguenther@suse.de>
22792
22793         PR middle-end/34093
22794         PR middle-end/31976
22795         * tree-ssa-operands.c (ssa_operand_alloc): Also allocate a buffer
22796         for very large number of operands instead of ICEing.
22797
22798 2008-01-02  Arthur Norman <acn1@cam.ac.uk>
22799
22800         PR target/34013
22801         * config/i386/i386.c (ix86_expand_prologue): Save red-zone
22802         while stack probing.
22803
22804 2008-01-01  Douglas Gregor  <doug.gregor@gmail.com>
22805
22806         * c-opts.c (sanitize_cpp_opts): Don't warn about "long long" when
22807         in C++0x mode.
22808
22809 2008-01-01  Volker Reichelt  <v.reichelt@netcologne.de>
22810
22811         PR libmudflap/26442
22812         * tree-mudflap.c (mx_register_decls): Guard warning by
22813         !DECL_ARTIFICIAL check.
22814
22815 2008-01-01  Jakub Jelinek  <jakub@redhat.com>
22816
22817         * config/i386/sse.md (sse5_pperm, sse5_pperm_pack_v2di_v4si,
22818         sse5_pperm_pack_v4si_v8hi, sse5_pperm_pack_v8hi_v16qi,
22819         sse5_perm<mode>): Fix constraints.