PR tree-optimization/37385
[official-gcc/alias-decl.git] / gcc / ChangeLog
blob93421f7153276d54b98ed083d5417f9ea37e1c27
1 2008-09-10  Ira Rosen  <irar@il.ibm.com>
3         PR tree-optimization/37385
4         * tree-vect-transform.c (vect_create_data_ref_ptr): Add a new argument,
5         and use it as a vector type if not NULL.
6         (vectorizable_store): Call vect_create_data_ref_ptr with the type of 
7         vectorized rhs.
8         (vect_setup_realignment): Call vect_create_data_ref_ptr with additional
9         argument.
10         (vectorizable_load): Likewise.
12 2008-09-10  Jakub Jelinek  <jakub@redhat.com>
14         * config/i386/i386.md (SWI32): New mode iterator.
15         (jcc_fused_1, jcc_fused_2, jcc_fused_3, jcc_fused_4): Use it instead
16         of SWI.
18 2008-09-09  Vladimir Makarov  <vmakarov@redhat.com>
20         PR rtl-optimization/37435
21         * caller-save.c (insert_restore, insert_save): Check the mode by
22         reg_save_code.
24 2008-09-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
26         PR other/37265
27         * dwarf2asm.c (dw2_force_const_mem): Use unstripped symbol name for
28         splay tree lookup.
29         (dw2_output_indirect_constant_1): Use unstripped name in symbol
30         reference.
32 2008-09-09  Sandra Loosemore  <sandra@codesourcery.com>
34         * doc/invoke.texi (ARM Options): Correct errors in discussion 
35         of -mfloat-abi, -mhard-float, and -msoft-float.
37 2008-09-09  Jakub Jelinek  <jakub@redhat.com>
38             Jan Hubicka  <jh@suse.cz>
40         PR middle-end/37356
41         * tree-inline.c (copy_bb): Insert stmt into copy_basic_block before
42         calling gimple_regimplify_operands on it.  Iterate over all newly
43         added statements, not just the last one.
44         (insert_init_stmt): Insert stmt into seq first, then call
45         gimple_regimplify_operands on it.  Don't create new gimplification
46         context, nor find referenced vars.
48 2008-09-09  Jakub Jelinek  <jakub@redhat.com>
50         PR other/37419
51         * ipa-prop.h (ipa_propagate_indirect_call_infos): Change last argument
52         to pointer to vector pointer.
53         * ipa-prop.c (ipa_propagate_indirect_call_infos,
54         propagate_info_to_inlined_callees): Likewise.
55         (update_call_notes_after_inlining): Likewise.  Push new indirect edge
56         to *new_edges instead of new_edges.  Reread IPA_EDGE_REF after
57         ipa_check_create_edge_args.
58         * ipa-inline.c (cgraph_decide_recursive_inlining): Change last argument
59         to pointer to vector pointer.
60         (cgraph_decide_inlining_of_small_function): Adjust
61         cgraph_decide_recursive_inlining and ipa_propagate_indirect_call_infos
62         calls.
64         PR target/37438
65         * config/i386/i386.md (zero_extendqihi2_movzbl): Enable when optimizing
66         for size, not speed.
68         PR rtl-optimization/37408
69         * function.c (assign_parm_find_stack_rtl): Set correct MEM_SIZE
70         if parm is promoted.
72 2008-09-09  Sebastian Pop  <sebastian.pop@amd.com>
74         PR tree-optimization/37375
75         * tree-scalar-evolution.c (scev_info_str): Add field instantiated_below.
76         (new_scev_info_str, eq_scev_info, find_var_scev_info,
77         set_scalar_evolution, get_scalar_evolution, get_instantiated_value,
78         set_instantiated_value): Pass instantiated_below.
79         (analyze_scalar_evolution_1, analyze_scalar_evolution): Update calls to
80         above functions.
81         (instantiate_scev_1, instantiate_scev): Pass a basic block above which the
82         definitions are not instantiated.
84         * tree-scalar-evolution.h (instantiate_scev): Update declaration.
85         (block_before_loop): New.
86         * tree-data-ref.c (dr_analyze_indices): Update uses of instantiate_scev.
87         * graphite.c (block_before_scop): New.
88         (loop_affine_expr, stmt_simple_for_scop_p, harmful_stmt_in_bb): Pass a 
89         basic block, not a loop for determining the parameters.
90         (scopdet_edge_info, build_scops_1): Do not pass outermost loop in the
91         scop.
92         (idx_record_params, find_params_in_bb, find_scop_parameters,
93         build_loop_iteration_domains, add_conditions_to_domain): Update calls 
94         to instantiate_scev.
96         * Makefile.in (cfgloopmanip.o): Add missing dependency on TREE_FLOW_H.
98 2008-09-09  Vladimir Makarov  <vmakarov@redhat.com>
100         PR rtl-opt/37333
101         
102         * ira-build.c (ira_create_allocno): Setup frequency to 0.
104         * ira-color.c (update_conflict_hard_regno_costs): Remove assert.
105         Check zero freq and increase if necessary.
107 2008-09-09  Vladimir Makarov  <vmakarov@redhat.com>
109         * ira-conflicts.c (process_regs_for_copy): Check that the hard
110         regno is in the right range.  Add comments.
112 2008-09-09  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
114         * Makefile.in (mips-tfile.o-warn): Don't error out on mips-tfile.c
115         warnings.
116         * mips-tfile.c (copy_object): Cast alloca result to int *.
117         * mips-tdump.c (print_symbol): Cast xmalloc return values to
118         proper types.
119         Rename class to sclass.
120         (read_tfile): Cast read_seek return values to proper types.
121         Cast xcalloc return value to proper type.
123 2008-09-09  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
125         * config/sol2.h (REGISTER_TARGET_PRAGMAS): Move ...
126         * config/i386/sol2.h (REGISTER_SUBTARGET_PRAGMAS): ... here.
127         * config/sparc/sol2.h (REGISTER_TARGET_PRAGMAS): ... and here.
129 2008-09-09  Jan Hubicka  <jh@suse.cz>
131         * profile.c (is_edge_inconsistent): Add debug output; ignore negative count
132         on fake edges.
133         (is_inconsistent): Add debug output.
135 2008-09-09  Andrey Belevantsev  <abel@ispras.ru>
137         * haifa-sched.c (advance_one_cycle): Do not print '\n' before printing
138         dump message.
139         (choose_ready): When first insn is chosen from the ready list, also
140         dump it.
142 2008-09-09  Andrey Belevantsev  <abel@ispras.ru>
144         PR rtl-optimization/37360
145         * haifa-sched.c (max_issue): Do not assert that we never issue more
146         insns than issue_rate.  Add comment.
147         
148 2008-09-09  Richard Guenther  <rguenther@suse.de>
150         * tree-cfg.c (verify_types_in_gimple_op): Remove.
151         (verify_types_in_gimple_call): Rename to ...
152         (verify_gimple_call): ... this.  Enhance.
153         (verify_types_in_gimple_cond): Remove.
154         (verify_gimple_comparison): New function ...
155         (verify_types_in_gimple_assign): ... split out from here.
156         (verify_types_in_gimple_return): Rename to ...
157         (verify_gimple_return): ... this.  Enhance.
158         (verify_types_in_gimple_switch): Rename to ...
159         (verify_gimple_switch): ... this.  Enhance.
160         (verify_gimple_goto): New function.
161         (verify_types_in_gimple_phi): Rename to ...
162         (verify_gimple_phi): ... this.  Enhance.
163         (verify_types_in_gimple_stmt): Adjust calls to helper functions.
164         Fold in single-statement cases from verify_types_in_gimple_seq_2.
165         (verify_types_in_gimple_seq_2): Remove cases handled in
166         verify_types_in_gimple_stmt.
168 2008-09-09  Bernd Schmidt  <bernd.schmidt@analog.com>
170         * config/bfin/bfin.c (n_regs_to_save): New static variable.
171         (push_multiple_operation, pop_multiple_operation): Set it.
172         (workaround_rts_anomaly): New function.
173         (workaround_speculation): New function, broken out of bfin_reorg.
174         (bfin_reorg): Call the new functions.
176 2008-09-09  Richard Guenther  <rguenther@suse.de>
178         PR middle-end/37354
179         PR middle-end/30165
180         * gimplify.c (gimplify_conversion): Change conversions of
181         non-register type to VIEW_CONVERT_EXPRs.
182         (gimplify_addr_expr): If we need to make the operand
183         addressable make sure to use a properly initialized
184         temporary for that so it gets a valid gimple store.
186 2008-09-09  Aldy Hernandez  <aldyh@redhat.com>
188         * function.h (struct function): Add function_start_locus.
189         * cfgexpand.c (gimple_expand_cfg): Use it.
190         * c-parser.c (c_parser_declaration_or_fndef): Set it.
192 2008-09-09  Richard Guenther  <rguenther@suse.de>
194         PR tree-optimization/37433
195         * tree-ssa-ccp.c (ccp_fold): Properly guard folding of
196         function calls.
198 2008-09-09  Richard Guenther  <rguenther@suse.de>
200         PR tree-optimization/37387
201         * tree-ssa-ifcombine.c (ifcombine_iforif): Convert the name
202         and bits to a common type.
204 2008-09-09  Nick Clifton  <nickc@redhat.com>
206         * config/v850/v850.md (return): Restore frame size restriction.
208 2008-09-09  Paolo Bonzini  <bonzini@gnu.org>
210         * c-common.c (c_expand_decl): Remove.
211         * c-common.h (anon_aggr_type_p): Remove prototype.
212         (DECL_ANON_UNION_ELEMS): Remove.
213         * c-objc-common.h (LANG_HOOKS_EXPAND_DECL): Remove.
214         * c-decl.c (anon_aggr_type_p): Remove.
215         * langhooks-def.h (LANG_HOOKS_EXPAND_DECL): Remove.
216         (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_EXPAND_DECL.
217         * langhooks.h (struct lang_hooks): Remove expand_decl.
218         * langhooks.c (lhd_expand_decl): Remove.
219         * stmt.c (expand_anon_union_decl): Remove.
220         * tree.h (expand_anon_union_decl): Remove prototype.
222 2008-08-09  Andy Hutchinson  <hutchinsonandy@aim.com>
224         PR target/36609
225         * config/avr/avr.c (avr_reorg): Create RTL for reversed compare with
226         zero.
227         * config/avr/avr.md  (QISI) : Define mode iterator.
228         (negated_tst<mode>) : Redefine as split using mode macro.
229         (reversed_tstqi): Define insn as reversed compare with zero.
230         (reversed_tsthi): Ditto.
231         (reversed_tstsi): Ditto.
233 2008-09-08  Jakub Jelinek  <jakub@redhat.com>
235         PR middle-end/37393
236         * tree-inline.c (copy_bb): When replacing a gimple_call_va_arg_pack_p
237         call stmt by new_call, clear gimple_bb on stmt after gsi_replace.
239         PR middle-end/37414
240         * predict.c (optimize_function_for_size_p): Don't segfault if
241         FUN is NULL.
242         * fold-const.c (LOGICAL_OP_NON_SHORT_CIRCUIT, fold_truthop,
243         tree_swap_operands_p): Don't test cfun != NULL before calling
244         optimize_function_for_s*_p.
246 2008-09-08  Eric Botcazou  <ebotcazou@adacore.com>
248         * ira-color.c (ira_reuse_stack_slot): Set slot_num on success at the
249         end of the search.
251 2008-09-08  M R Swami Reddy <MR.Swami.Reddy@nsc.com>
253         * crx/crx.h (IRA_COVER_CLASSES): Define.
255 2008-09-08  Jakub Jelinek  <jakub@redhat.com>
257         PR middle-end/37337
258         * tree-ssa-dom.c (optimize_stmt): Call maybe_clean_or_replace_eh_stmt
259         even when a stmt has been gimple_modified_p, but after fold_stmt is
260         not any longer.  Remove unneeded may_have_exposed_new_symbols
261         initializations.
263 2008-09-08  Richard Guenther  <rguenther@suse.de>
265         PR tree-optimization/37421
266         * tree-ssa-sccvn.c (visit_copy): Make sure to fully
267         valueize the RHS.
269 2008-09-08  Jakub Jelinek  <jakub@redhat.com>
271         PR middle-end/37415
272         * opts.c (common_handle_option): Handle OPT_ftree_store_ccp.
274 2008-09-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
276         PR driver/37409
277         * pa-hpux.h (LINK_SPEC): Strip -fwhole-program.
278         * pa-hpux10.h (LINK_SPEC): Likewise.
279         * pa-hpux11.h (LINK_SPEC): Likewise.
281 2008-09-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
283         * pa32-regs.h (IRA_COVER_CLASSES): Define.
284         * pa64-regs.h (IRA_COVER_CLASSES): Define.
286 2008-09-07  Helge Deller  <deller@gmx.de>
288         * pa/linux-atomic.c: New file.
289         * pa/t-linux (LIB2FUNCS_STATIC_EXTRA): Define.
290         * pa/t-linux64 (LIB2FUNCS_STATIC_EXTRA): Define.
292 2008-09-07  Richard Guenther  <rguenther@suse.de>
293             Ira Rosen  <irar@il.ibm.com>
295         PR tree-optimization/36630
296         * tree-vect-transform.c (vect_update_ivs_after_vectorizer):
297         Call STRIP_NOPS before calling evolution_part_in_loop_num.
299 2008-09-07  Dorit Nuzman  <dorit@il.ibm.com>
300             Ira Rosen  <irar@il.ibm.com>
302         PR tree-optimization/35642
303         * config/rs6000/altivec.md (mulv8hi3): Implement.
305 2008-09-06  Jeff Law <law@redhat.com>
307         * h8300/h8300.h (IRA_COVER_CLASSES): Define.
309 2008-09-06  Jan Hubicka  <jh@suse.cz>
311         PR tree-optimization/14703
312         * tree-ssa-live.c (remove_unused_scope_block_p): Remove ignored declarations.
313         * passes.c (init_optimization_passes): Recompute inline parameters.
315 2008-09-06  Richard Sandiford  <rdsandiford@googlemail.com>
317         * config/mips/mips.c (mips_function_ok_for_sibcall): Check for
318         DECL being null.
320 2008-09-06  Richard Sandiford  <rdsandiford@goolemail.com>
321             Peter Fuerst  <post@pfrst.de>
323         * doc/invoke.texi: Document -mr10k-cache-barrier=.
324         * doc/extend.texi: Document __builtin_mips_cache.
325         * config/mips/mips-ftypes.def: Add a (VOID, SI, CVPOINTER) entry.
326         * config/mips/mips.opt (mr10k-cache-barrier=): New option.
327         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define
328         __GCC_HAVE_BUILTIN_MIPS_CACHE.
329         (TARGET_CACHE_BUILTIN, ISA_HAS_CACHE): New macros.
330         * config/mips/mips.c (mips_r10k_cache_barrier_setting): New enum.
331         (set_push_mips_isas): New variable.
332         (mips_r10k_cache_barrier): New variable.
333         (cache): New availability predicate.
334         (mips_builtins): Add an entry for __builtin_mips_cache.
335         (mips_build_cvpointer_type): New function.
336         (MIPS_ATYPE_CVPOINTER): New macro.
337         (mips_prepare_builtin_arg): Only use the insn's mode if the rtx's
338         mode is VOIDmode.
339         (r10k_simplified_address_p, r10k_simplify_address)
340         (r10k_uncached_address_p, r10k_safe_address_p)
341         (r10k_needs_protection_p_1, r10k_needs_protection_p_store)
342         (r10k_needs_protection_p_call, r10k_needs_protection_p)
343         (r10k_insert_cache_barriers): New functions.
344         (mips_reorg_process_insns): Delete cache barriers after a
345         branch-likely instruction.
346         (mips_reorg): Call r10k_insert_cache_barriers.
347         (mips_handle_option): Handle OPT_mr10k_cache_barrier_.
348         * config/mips/mips.md (UNSPEC_MIPS_CACHE): New constant.
349         (UNSPEC_R10K_CACHE_BARRIER): Likewise.
350         (mips_cache, r10k_cache_barrier): New define_insns.
352 2008-09-06  Richard Sandiford  <rdsandiford@googlemail.com>
354         * ira-int.h (ira_zero_hard_reg_set, ira_one_hard_reg_set): Delete.
355         * ira-color.c (setup_allocno_left_conflicts_num): Use
356         hard_reg_set_equal_p instead of a comparison with
357         ira_zero_hard_reg_set.
358         * ira.c (setup_reg_subclasses): Likewise.
359         (setup_cover_and_important_classes): Likewise.
360         (setup_class_translate): Likewise.
361         (setup_reg_class_intersect_union): Likewise.
362         (ira_zero_hard_reg_set, ira_one_hard_reg_set): Delete.
363         (ira_init_once): Don't initialize them.
365 2008-09-05  Vladimir Makarov  <vmakarov@redhat.com>
367         * doc/tm.texi (IRA_COVER_CLASSES): Fix a typo.
369 2008-09-05  Vladimir Makarov  <vmakarov@redhat.com>
371         * ira-color.c (ira_fast_allocation): Permit global allocno
372         allocation.
373         
374 2008-09-05  Trevor Smigiel <Trevor_Smigiel@playstation.sony.com>
376         Improved branch hints, safe hints, and scheduling.
378         * haifa-sched.c (sched_emit_insn) : Define.
379         * sched-int.h (sched_emit_insn) : Add prototype.
380         * doc/invoke.texi (-mdual-nops, -mhint-max-nops,
381         -mhint-max-distance -msafe-hints) : Document.
382         * config/spu/spu.c (spu_flag_var_tracking): New.
383         (TARGET_SCHED_INIT_GLOBAL, TARGET_SCHED_INIT,
384         TARGET_SCHED_REORDER, TARGET_SCHED_REORDER2,
385         TARGET_ASM_FILE_START): Define.
386         (TARGET_SCHED_ADJUST_PRIORITY): Remove.
387         (STOP_HINT_P, HINTED_P, SCHED_ON_EVEN_P): Define.
388         (spu_emit_branch_hint): Add blocks argument.
389         (insert_branch_hints, insert_nops): Remove.
390         (pad_bb, insert_hbrp_for_ilb_runout, insert_hbrp, in_spu_reorg,
391         uses_ls_unit, spu_sched_init_global, spu_sched_init,
392         spu_sched_reorder, asm_file_start): New functions.
393         (clock_var, spu_sched_length, pipe0_clock,
394         pipe1_clock, prev_clock_var, prev_priority,
395         spu_ls_first, prev_ls_clock): New static variables.
396         * config/spu/spu.h (TARGET_DEFAULT): Add MASK_SAFE_HINTS.
397         * config/spu.md (iprefetch): Add operand, make it clobber MEM.
398         (nopn_nv): Add a non-volatile version of nop.
399         * config/spu/spu.opt (-mdual-nops, -mhint-max-nops,
400         -mhint-max-distance, -msafe-hints): New options.
402 2008-09-05  Janis Johnson  <janis187@us.ibm.com>
403             Samuel Tardieu  <sam@rfc1149.net>
405         * opts.c (decode_options): Combine nested if statements.
407         PR target/37283
408         * opts.c (decode_options): Handle more relationships among
409         unit-at-a-time, toplevel-reorder, and section-anchors.
411 2008-09-05  David Daney  <ddaney@avtrex.com>
413         * doc/install.texi (--enable-reduced-reflection): Document new option.
415 2008-09-05  Bob Wilson  <bob.wilson@acm.org>
417         * config/xtensa/predicates.md (nonimmed_operand, mem_operand): Use
418         constantpool_mem_p.
419         (constantpool_operand): New.
420         (move_operand): Disallow sub-word modes for the constant pool.
421         * config/xtensa/xtensa.c (TARGET_SECONDARY_RELOAD): Define.
422         (xtensa_secondary_reload_class): Replace with....
423         (xtensa_secondary_reload): this function.  Remove SIGN_EXTEND check. 
424         Set icode for sub-word reloads from the constant pool.
425         * config/xtensa/xtensa.h (SECONDARY_INPUT_RELOAD_CLASS): Delete.
426         (SECONDARY_OUTPUT_RELOAD_CLASS): Delete.
427         * config/xtensa/xtensa.md (reload<mode>_literal): New.
428         * config/xtensa/xtensa-protos.h: Update prototypes.
429         
430 2008-09-05  Joseph Myers  <joseph@codesourcery.com>
432         * config/mips/mips.h (enum reg_class): Add FRAME_REGS.
433         (REG_CLASS_NAMES): Update.
434         (REG_CLASS_CONTENTS): Update.
435         * config/mips/mips.c (mips_regno_to_class): Use FRAME_REGS instead
436         of ALL_REGS for regs 77 and 78.
437         * function.c (instantiate_virtual_regs_in_insn): Assert that
438         return value of simplify_gen_subreg is not NULL.
440 2008-09-05  Paolo Bonzini  <bonzini@gnu.org>
442         * emit-rtl.c (gen_rtvec): Rewrite not using gen_rtvec_v.
443         (gen_rtvec_v): Fix coding standards.
445 2008-09-04  Jan Hubicka  <jh@suse.cz>
447         * i386.c (decide_alg): Be more conservative about optimizing for size.
449 2008-09-04  Ian Lance Taylor  <iant@google.com>
451         * varasm.c (narrowing_initializer_constant_valid_p): New
452         static function.
453         (initializer_constant_valid_p): Call it.
455 2008-09-04  Jeff Law  <law@redhat.com>
457         * fold-const.c (native_encode_real): Fix computation of WORDS.
458         (native_interpret_real): Likewise.
460 2008-09-04  Janis Johnson  <janis187@us.ibm.com>
462         * config/rs6000/t-rs6000: Remove target gt-rs6000.h.
464 2008-09-04  Vladimir Makarov  <vmakarov@redhat.com>
466         * ira-conflicts.c (process_regs_for_copy): Check insn to check
467         that the cost is already taken into account in ira-costs.c
469         * ira-int.h (ira_debug_copy, ira_debug_copies): New.
471         * ira-build.c (print_copy, print_copies, ira_debug_copy,
472         ira_debug_copies): New.
473         (ira_bulid): Call print_copies.
474         
475         * doc/tm.texi (IRA_COVER_CLASSES): Fix the description.
476         
477 2008-09-04  Samuel Tardieu  <sam@rfc1149.net>
479         PR target/32783
480         * config/rs6000/rs6000.c (optimization_options): Remove check of
481         flag_toplevel_order.
483 2008-09-04  Adam Nemet  <anemet@caviumnetworks.com>
485         * config/mips/mips.h (ISA_HAS_SEQ_SNE): New macro.
486         * config/mips/mips.c (mips_expand_scc): Also expand seq and sne if
487         second operand is a reg_imm10_operand.
488         * config/mips/mips.md (*seq_<GPR:mode><GPR2:mode>_seq,
489         *sne_<GPR:mode><GPR2:mode>_sne): New patterns.
490         (*seq_<GPR:mode><GPR2:mode>): Rename to
491         *seq_zero_<GPR:mode><GPR2:mode>.  Don't match if
492         ISA_HAS_SEQ_SNE.
493         (*seq_<GPR:mode><GPR2:mode>_mips16): Rename to
494         *seq_zero_<GPR:mode><GPR2:mode>_mip16.  Don't match if
495         ISA_HAS_SEQ_SNE.
496         (*sne_<GPR:mode><GPR2:mode>): Rename to
497         *sne_zero_<GPR:mode><GPR2:mode>.  Don't match if
498         ISA_HAS_SEQ_SNE.
500 2008-09-04  Adam Nemet  <anemet@caviumnetworks.com>
502         * config/mips/mips.h (ISA_HAS_EXTS): New macro.
503         * config/mips/mips.md (*ashr_trunc<mode>): Name the pattern
504         combining an arithmetic right shift by more than 31 and a
505         trunction.  Don't match for out-of-range shift amounts.  Set
506         attribute mode to <MODE>.
507         (*lshr32_trunc<mode>): Name the pattern combining a logical right
508         shift by 32 and and a truncation.  Set attribute mode to <MODE>.
509         (*<optab>_trunc<mode>_exts): New pattern for truncated right
510         shifts by less than 32.
511         (extv): Change predicate on first operand to accept registers.
512         Change predicate of the other operands from immediate_operand to
513         const_int_operand.  Expand exts when source is a register.
514         (extzv): Change predicate of the constant operands from
515         immediate_operand to const_int_operand.
516         (extzv<mode>): Change predicate of the constant operands from
517         immediate_operand to const_int_operand and no constraint. Also
518         remove mode.
519         (*extzv_trunc<mode>_exts): New pattern.
521 2008-09-04  Adam Nemet  <anemet@caviumnetworks.com>
523         * config/mips/mips.h (ISA_HAS_CINS): New macro.
524         * config/mips/mips-protos.h (mask_low_and_shift_p,
525         mask_low_and_shift_len): Declare.
526         * config/mips/mips.c (mask_low_and_shift_p,
527         mask_low_and_shift_len): New functions.
528         (mips_print_operand): Handle new operand prefix "m".
529         * config/mips/mips.md (*cins<mode>): New pattern.
531 2008-09-04  Bernd Schmidt  <bernd.schmidt@analog.com>
533         * config/bfin/bfin.c (gen_one_bundle): Don't create new nops when
534         optimizing for size.
536 2008-09-04  Richard Sandiford  <rdsandiford@googlemail.com>
538         * df-scan.c (df_get_entry_block_def_set): Add STACK_POINTER_REGNUM
539         regardless of epilogue_completed.
541 2008-09-04  Vladimir Makarov  <vmakarov@redhat.com>
543         PR middle-end/37359
544         * ira-lives.c (process_bb_node_lives): Check setjmp.
546 2008-09-04  Richard Sandiford  <rdsandiford@googlemail.com>
548         PR middle-end/37243
549         * ira-build.c (form_loop_tree): Reverse BB walk.
550         (create_bb_allocnos): Likewise.
551         * ira-lives.c (make_regno_born_and_dead, regs_set): Delete.
552         (mark_reg_store): Rename to...
553         (mark_ref_live): ...this and take a df_ref argument instead of
554         note_stores arguments.  Assert that we have a register.
555         (mark_reg_clobber): Delete.
556         (def_conflicts_with_inputs_p): New function.
557         (mark_reg_conflicts): Delete.
558         (mark_reg_death): Rename to...
559         (mark_ref_dead): ...this and take a df_ref argument instead of
560         a register.  Assert that we have a register.
561         (process_bb_node_lives): Hoist frequency calculation out of
562         instruction walk.  Convert from a forwards scan to a backwards scan.
563         Use DF_REF_USES and DF_REF_DEFS instead of register notes and
564         note_stores.  Remove EH_RETURN_DATA_REGNO and regs_set handling.
565         (create_allocno_live_ranges): Don't create regs_set.
567 2008-09-04  Ian Lance Taylor  <iant@google.com>
569         * rtl.h (LABEL_REF_NONLOCAL_P): Don't check for REG_LABEL_OPERAND
570         or REG_LABEL_TARGET.
571         * calls.c (emit_library_call_value_1): Use MEM_P rather than
572         comparing MODE with MEM.
573         * gimple.c (gimple_build_predict): Cast END_PREDICTORS before
574         comparing with GF_PREDICT_TAKEN.
575         (gimple_get_lhs): Change code to enum gimple_code.
576         (gimple_set_lhs): Likewise.
577         * ifcvt.c (noce_process_if_block): Correct GET_MODE to GET_CODE.
578         * omp-low.c (find_omp_clause): Change kind parameter to enum
579         omp_clause_code.
580         * tree-flow.h (find_omp_clause): Update declaration.
581         * regrename.c (clear_dead_regs): Change kind parameter to enum
582         reg_note.
583         * reload1.c (eliminate_regs_1): Use REG_NOTE_KIND rather than
584         GET_MODE.
585         * see.c (see_get_extension_data): Change return type to enum
586         entry_type.  Change UNKNOWN to NOT_RELEVANT, SIGN_EXTEND to
587         SIGNED_EXTENDED_DEF, ZERO_EXTEND to ZERO_EXTENDED_DEF.
588         (see_gen_normalized_extension): Change extension_code parameter to
589         enum entry_type.
590         (see_seek_pre_extension_expr): Change extension_code to enum
591         entry_type.
592         (see_merge_one_def_extension): Likewise.
593         (see_handle_relevant_defs): Likewise.
594         (see_handle_relevant_uses): Likewise.
595         (see_analyze_one_def): Likewise.
596         * tree-cfg.c (need_fake_edge_p): Compare gimple code with
597         GIMPLE_ASM rather than ASM_EXPR.
598         * tree-ssa-alias.c (is_escape_site): Compare gimple code with
599         GIMPLE_RETURN rather than RETURN_EXPR.
600         * tree-ssa-ccp.c (likely_value): Change code to enum gimple_code.
601         (evaluate_stmt): Likewise.
602         * tree-vect-analyze.c (vect_analyze_operations): Change relevance
603         to enum vect_relevant.
604         (vect_mark_stmts_to_be_vectorized): Change assertion to not
605         compare gimple codes with tree codes.
607 2008-09-04  Paul Brook  <paul@codesourcery.com>
609         * config/arm/arm.c (arm_size_rtx_costs): Call cost function.
611 2008-09-04  Bernd Schmidt  <bernd.schmidt@analog.com>
613         * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Restore a null
614         pointer check lost in the recent no-unit-at-a-time patch.
615         
616 2008-09-04  Jan Hubicka  <jh@suse.cz>
618         PR middle-end/37343
619         * tree-switch-conversion.c (check_final_bb): Accept only IP
620         invariants.
622 2008-09-04  Jan Hubicka  <jh@suse.cz>
624         * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
625         Break out from ...
626         (vrp_evaluate_conditional_warnv_with_ops): ... this one.  Add
627         using_ranges argument.
628         (vrp_evaluate_conditional): Avoid bogus warning for type range.
629         (vrp_visit_cond_stmt): Update call of
630         vrp_evaluate_conditional_warnv_with_ops
632 2008-09-04  Jan Hubicka  <jh@suse.cz>
634         PR tree-optimization/37345
635         PR tree-optimization/37358
636         PR tree-optimization/37357
637         * tree.c (build_function_type_skip_args): Build distinct type copy;
638         set TYPE_CONTEXT.
639         (build_function_decl_skip_args): Set type of new decl not orig decl;
640         clear DECL_VINDEX for methods turned into functions.
642 2008-09-04  Nick Clifton  <nickc@redhat.com>
644         * configure.ac (HAVE_GAS_LCOMM_WITH_ALIGNMENT): New assembler
645         check.
646         * configure: Regenerate.
647         * config.in: Regenerate.
648         * config/i386/bsd.h (ASM_OUTPUT_ALIGNED_LOCAL): Use .lcomm with an
649         alignment field, if it is supported.
651 2008-09-04  Kai Tietz  <kai.tietz@onevision.com>
653         * config/i386/t-mingw32 (SHLIB_LC): Change order of import
654         libraries.
656 2008-09-03  David Edelsohn  <edelsohn@gnu.org>
658         * config/rs6000/rs6000.c (processor_target_table): Do not
659         enable VMX for POWER6.
661 2008-09-03  Anton Blanchard  <anton@samba.org>
663         * config/rs6000/rs6000.c (rs6000_split_lock_test_and_set): Do not
664         emit memory barrier before operation.
666 2008-09-03  John David Anglin  <dave.anglin@nrc.cnrc.gc.ca>
668         PR testsuite/37325
669         * config/pa/pa64-hpux.h (ASM_OUTPUT_EXTERNAL_REAL): Call
670         default_elf_asm_output_external.
672 2008-09-03  Jeff Law  <law@redhat.com>
674         * h8300.c (expand_a_shift): Avoid invalid RTL sharing.
676 2008-09-03  Richard Henderson  <rth@redhat.com>
678         * config/alpha/alpha.c (alpha_split_lock_test_and_set): Move
679         memory barrier to below the test-and-set.
680         (alpha_split_lock_test_and_set_12): Likewise.
682 2008-09-03  Vladimir Makarov  <vmakarov@redhat.com>
684         PR rtl-opt/37243
686         * ira-int.h (ira_loop_tree_node): Rename mentioned_allocnos to
687         all_allocnos.
689         * ira-color.c (print_loop_title): Use all_allocnos.
690         (color_pass): Ditto.  Don't add border_allocnos.  Check that
691         subloop allocno in the correspdoning bitmap all_allocnos.
693         * ira-emit.c (change_loop): Use all_allocnos.
695         * ira-build.c (create_loop_tree_nodes, finish_loop_tree_node):
696         Ditto.
697         (ira_create_allocno): Set up all_allocnos bit for the created
698         allocno.
699         (create_cap_allocno): Remove setting mentioned_allocnos.
700         (create_insn_allocnos): Ditto.
701         (remove_unnecessary_allocnos): Use all_allocnos.
702         (check_allocno_creation): Check that allocnos are in the
703         corresponding bitmap all_allocnos.
704         
705 2008-09-03  Vladimir Makarov  <vmakarov@redhat.com>
707         PR rtl-opt/37243
708         
709         * ira-conflicts.c (REG_SUBREG_P, go_through_subreg): New.
710         (process_regs_for_copy): Process subregs.  Refine check when cost
711         is taken into account in ira-costs.c.
712         (process_reg_shuffles): Use REG_SUBREG_P.
713         (add_insn_allocno_copies): Ditto.  Ignore modes.
715         * ira-color.c (conflict_allocno_vec): New.
716         (COST_HOP_DIVISOR): New macro.
717         (update_copy_costs_1): Use it.
718         (update_conflict_hard_regno_costs): New function.
719         (assign_hard_reg): Use it.
720         (ira_color): Allocate and free conflict_allocno_vec.
722 2008-09-03  Vladimir Makarov  <vmakarov@redhat.com>
724         PR rtl-opt/37296
726         * ira-int.h (ira_sort_insn_chain): Remove.
728         * ira.c (basic_block_order_nums, chain_insn_order,
729         chain_freq_compare, chain_bb_compare, ira_sort_insn_chain): Remove.
730         (ira): Don't call ira_sort_insn_chain.
732         * reload1.c (reload): Don't call ira_sort_insn_chain.
734 2008-09-03  Andrew Pinski  <andrew_pinski@playstation.sony.com>
736         PR middle-end/37293
737         * cgraphunit.c (update_call_expr): Remove eh regions from statements
738         which become non throw.
739         (cgraph_function_versioning): Also clear DECL_WEAK.  Call
740         update_call_expr after updating the flags on the decl.
742 2008-09-03  Jan Hubicka  <jh@suse.cz>
744         PR tree-optimization/37315
745         * cgraph.c (cgraph_create_edge): Use gimple_has_body_p.
746         * cgraphunit.c (verify_cgraph_node): drop gimple_body check.
747         (cgraph_analyze_functions): Use node->analyzed
748         (cgraph_mark_functions_to_output): Likewise.
749         (cgraph_expand_function): All functions can be released after
750         expanding.
751         (cgraph_optimize): Use gimple_has_body_p.
752         * ipa-inline.c (cgraph_clone_inlined_nodes): Use analyzed flag.
753         (cgraph_decide_inlining_incrementally): Likewise.
754         (inline_transform): Inline transform.
755         * tree-inline.c (initialize_cfun): Do now shallow copy structure;
756         copy fields needed.
757         (inlinable_function_p): Drop gimple_body check.
758         (expand_call_inline): Use gimple_has_body_p.
759         * gimple.c (gimple_has_body_p): New.
760         * gimple.h (gimple_has_body_p): Add prototype.
761         * tree-cfg.c (execute_build_cfg): Remove gimple_body.
762         (dump_function_to_file): Use gimple_has_body_p check.
764 2008-09-03  Jakub Jelinek  <jakub@redhat.com>
766         PR c++/37346
767         * gimple.h (gimple_has_substatements): GIMPLE_OMP_CRITICAL has
768         substatements.
769         * tree-inline.c (remap_gimple_stmt): Handle GIMPLE_OMP_CRITICAL.
771 2008-09-03  Bernd Schmidt  <bernd.schmidt@analog.com>
773         From Michael Frysinger  <michael.frysinger@analog.com>
774         * config/bfin/bfin.c (bfin_cpus[]): Add 0.1 for bf522, bf523, bf524,
775         bf525, bf526, bf527, bf542, bf544, bf547, bf548, and bf549.  Add 0.2
776         for bf538.
778 2008-09-03  Hari Sandanagobalane  <hariharan@picochip.com>
780         Add picoChip port.
781         * doc/extend.texi: Document picoChip builtin functions.
782         * doc/invoke.texi: Document picoChip options.
783         * doc/contrib.texi: Add picoChip contribution.
784         * doc/md.texi: Document picoChip constraints.
785         * config.gcc: Add picochip-*-*.
786         * config/picochip/: Add new port.
788 2008-09-03  Richard Guenther  <rguenther@suse.de>
790         PR tree-optimization/37328
791         * tree-sra.c (sra_build_assignment): Gimplify properly.
792         (generate_copy_inout): Take the correct stmt as definition,
793         remove bogus assert.
795 2008-09-03  Bernd Schmidt  <bernd.schmidt@analog.com>
797         * config/bfin/bfin.c (bfin_expand_prologue): Honour no_stack_limit
798         attributes.
800         From Michael Frysinger  <michael.frysinger@analog.com>
801         * config/bfin/bfin.c (bfin_handle_option): Remove BF561 warning.
803 2008-09-03 Danny Smith  <dannysmith@usrs.sourceforge.net>
805         * gthr-win32.h (CONST_CAST2): Really make sure CONST_CAST2 is
806         defined.
807         (__gthread_setspecific): Revert 2008-08-31 change to
808         __GTHREAD_HIDE_W32API case.  Apply it to !__GTHREAD_HIDE_W32API
809         case.
811 2008-09-02  Aldy Hernandez  <aldyh@redhat.com>
813         * diagnostic.c (error_at): New.
814         * toplev.h (error_at): New prototype.
815         * c-typeck.c (build_array_ref): Call error_at instead of error.
816         Pass location to pedwarn.
818 2008-09-02  Adam Nemet  <anemet@caviumnetworks.com>
820         * sel-sched.c (sel_hard_regno_rename_ok): Mark arguments unused.
822 2008-09-02  Jakub Jelinek  <jakub@redhat.com>
824         * dwarf2out.c (tree_add_const_value_attribute): Only handle
825         VAR_DECL and CONST_DECL.
827 2008-09-02  H.J. Lu  <hongjiu.lu@intel.com>
828             Jakub Jelinek  <jakub@redhat.com>
830         * config/i386/i386.c (X86_64_VARARGS_SIZE): Removed.
831         (setup_incoming_varargs_64): Assume cum != NULL. Set/check
832         ix86_varargs_gpr_size and ix86_varargs_fpr_size.  Use
833         ix86_varargs_gpr_size instead of X86_64_REGPARM_MAX.
834         Don't set ix86_save_varrargs_registers.
835         (ix86_setup_incoming_varargs): Assume cum != NULL.
836         (ix86_va_start): Check ix86_varargs_gpr_size and
837         ix86_varargs_fpr_size instead of cfun->va_list_gpr_size and
838         cfun->va_list_fpr_size, respectively.  Subtract 8*X86_64_REGPARM_MAX
839         from frame pointer if ix86_varargs_gpr_size == 0.
840         (ix86_compute_frame_layout): Updated.
841         * config/i386/i386.h (ix86_save_varrargs_registers): Removed.
842         (ix86_varargs_gpr_size): Define.
843         (ix86_varargs_fpr_size): Likewise.
844         (machine_function): Remove save_varrargs_registers.
845         Add varargs_gpr_size and varargs_fpr_size.
847 2008-09-02  Jakub Jelinek  <jakub@redhat.com>
849         * config/alpha/alpha.c (va_list_skip_additions,
850         alpha_stdarg_optimize_hook, alpha_gimplify_va_arg_1): Tuplify.
851         (alpha_gimplify_va_arg): Call unshare_expr on second use of
852         offset_field.
854         PR tree-optimization/36766
855         * tree-cfg.c (gimple_purge_all_dead_eh_edges): Do nothing
856         for already removed basic blocks.
858         PR target/36332
859         * real.c (real_maxval): Clear a lower bit to make real_maxval
860         match get_max_float for IBM long double format.
862 2008-09-02  Andreas Schwab  <schwab@suse.de>
864         * configure.ac: Use m4_quote to quote the expansion of m4_do.
865         * configure: Regenerate.
867 2008-09-02  Richard Sandiford  <rdsandiford@googlemail.com>
869         * simplify-rtx.c (simplify_binary_operation_1): Check for CONST,
870         SYMBOL_REF and LABEL_REF when applying plus_constant, instead of
871         checking for a non-VOID CONSTANT_P.
873 2008-09-02  Jan Hubicka  <jh@suse.cz>
875         * predict.c (pass_strip_predict_hints): Avoid bugs dump file.
876         * expmed.c (expand_divmod): Fix test of smod_pow2_cheap and sdiv_pow2_cheap
878 2008-09-02  H.J. Lu  <hongjiu.lu@intel.com>
880         * expr.c (emit_group_store): Don't assert stack temp mode size.
882 2008-09-02  Sebastian Pop  <sebastian.pop@amd.com>
883             Tobias Grosser  <grosser@fim.uni-passau.de>
884             Jan Sjodin  <jan.sjodin@amd.com>
885             Harsha Jagasia  <harsha.jagasia@amd.com>
886             Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
887             Konrad Trifunovic  <konrad.trifunovic@inria.fr>
888             Adrien Eliche  <aeliche@isty.uvsq.fr>
890         Merge from graphite branch.
891         * graphite.c: New.
892         * graphite.h: New.
893         * tree-loop-linear.c (perfect_loop_nest_depth): Export.
894         * doc/invoke.texi (-floop-block, -floop-interchange,
895         -floop-strip-mine): Document new flags.
896         * tree-into-ssa.c (gimple_vec): Moved...
897         * tree-loop-distribution.c (rdg_component): Moved...
898         * cfgloopmanip.c: Include tree-flow.h.
899         (update_dominators_in_loop): New.
900         (create_empty_if_region_on_edge): New.
901         (create_empty_loop_on_edge): New.
902         (loopify): Use update_dominators_in_loop.
903         * tree-pass.h (pass_graphite_transforms): Declared.
904         * configure: Regenerate.
905         * tree-phinodes.c (make_phi_node): Export.
906         (add_phi_node_to_bb): New, split from create_phi_node.
907         * tree-chrec.c (for_each_scev_op): New.
908         * tree-chrec.h (for_each_scev_op): Declared.
909         * tree-ssa-loop-ivopts.c (get_phi_with_result): New.
910         (remove_statement): Call get_phi_with_result.
911         * config.in (HAVE_cloog): Undef.
912         * gdbinit.in (pgg): New.
913         * timevar.def (TV_GRAPHITE_TRANSFORMS): New.
914         * tree-ssa-loop.c (graphite_transforms): New.
915         (gate_graphite_transforms): New.
916         (pass_graphite_transforms): New.
917         * configure.ac (PPLLIBS, PPLINC, CLOOGLIBS, CLOOGINC,
918         HAVE_cloog): Defined.
919         * tree-vectorizer.c (rename_variables_in_bb): Export.
920         * tree-data-ref.c (dr_may_alias_p): Export.
921         (stmt_simple_memref_p): New.
922         (find_data_references_in_stmt): Export.
923         (find_data_references_in_loop): Export.
924         (create_rdg_edge_for_ddr): Initialize RDGE_RELATION.
925         (create_rdg_edges_for_scalar): Initialize RDGE_RELATION.
926         (create_rdg_vertices): Export.
927         (build_empty_rdg): New.
928         (build_rdg): Call build_empty_rdg.  Free dependence_relations.
929         * tree-data-ref.h (rdg_component): ... here.
930         (scop_p): New.
931         (struct data_reference): Add a field scop.
932         (DR_SCOP): New.
933         (find_data_references_in_loop): Declared.
934         (find_data_references_in_stmt): Declared.
935         (create_rdg_vertices): Declared.
936         (dr_may_alias_p): Declared.
937         (stmt_simple_memref_p): Declared.
938         (struct rdg_edge): Add a field ddr_p relation.
939         (build_empty_rdg): Declared.
940         * lambda.h (lambda_matrix): Declare a VEC of.
941         (find_induction_var_from_exit_cond): Declared.
942         (lambda_vector_compare): New.
943         * common.opt (fgraphite, floop-strip-mine,
944         floop-interchange, floop-block): New flags.
945         * lambda-code.c (find_induction_var_from_exit_cond): Export.
946         * cfgloop.c (is_loop_exit): New.
947         * cfgloop.h (is_loop_exit): Declared.
948         (create_empty_if_region_on_edge): Declared.
949         (create_empty_loop_on_edge): Declared.
950         * tree-flow.h (add_phi_node_to_bb): Declared.
951         (make_phi_node): Declared.
952         (rename_variables_in_bb): Declared.
953         (perfect_loop_nest_depth): Declared.
954         (graphite_transform_loops): Declared.
955         * Makefile.in (cfgloopmanip.o): Depend on TREE_FLOW_H.
956         (graphite.o-warn): Add -Wno-error.
957         (PPLLIBS, PPLINC, CLOOGLIBS, CLOOGINC): Declared.
958         (LIBS): Add GMPLIBS, CLOOGLIBS, PPLLIBS.
959         (INCLUDES): Add PPLINC, CLOOGINC.
960         (OBJS-common): Add graphite.o.
961         (graphite.o): Add rule.
962         * gimple.h (gimple_vec): ... here.
963         * tree-cfg.c (print_loops): Start printing at ENTRY_BLOCK_PTR.
964         * passes.c (init_optimization_passes): Schedule 
965         pass_graphite_transforms.
967 2008-09-02  Samuel Tardieu  <sam@rfc1149.net>
969         PR target/37283
970         * opts.c (decode_options): Move processing of -fno-unit-at-a-time
971         and -fno-toplevel-reorder after handle_options.
973 2008-09-02  Paul Brook  <paul@codesourcery.com>
975         * config/arm/arm.c (arm_tune_cortex_a9): Define.
976         (arm_override_options): Set arm_tune_cortex_a9.
977         (arm_rtx_costs_1): Make register shifts more expensive on Cortex-A9.
978         (arm_issue_rate): Handle cortexa9.
979         * config/arm/arm.h (arm_tune_cortex_a9): Declare.
980         * config/arm/arm-cores.def: Add cortex-a9.
981         * config/arm/arm-tune.md: Regenerate.
982         * config/arm/arm.md: Include cortex-a9.md.
983         (generic_sched, generic_vfp): Add cortexa9.
984         * config/arm/cortex-a9.md: New file.
986 2008-09-02  Richard Guenther  <rguenther@suse.de>
988         PR tree-optimization/37327
989         * tree-vrp.c (register_new_assert_for): Make sure to not have
990         TREE_OVERFLOW set on the bound.
992 2008-09-02  Alexander Monakov  <amonakov@ispras.ru>
994         Fixed typo in date of the 2008-09-01 MOVE_RATIO commit.
996         * config/ia64/ia64.opt (msched-ar-data-spec): Default to 1.
997         * config/ia64/ia64.c (ia64_set_sched_flags): Always initialize
998         spec_info->mask.
1000 2008-09-02  Victor Kaplansky  <victork@il.ibm.com>
1002         * gcc/config/spu/spu.md (divdf3): Removed.
1004 2008-09-02  Jakub Jelinek  <jakub@redhat.com>
1006         PR tree-optimization/37095
1007         * cgraph.c (cgraph_node): When creating new cgraph node after
1008         assembler_name_hash has been populated, record it in the hash
1009         table.
1011 2008-09-01  Paul Brook  <paul@codesourcery.com>
1013         * doc/invoke.texi: Document -mword-relocations.
1014         * config/arm/uclinux-elf.h (TARGET_DEFAULT_WORD_RELOCATIONS): Define.
1015         * config/arm/symbian.h (TARGET_DEFAULT_WORD_RELOCATIONS): Define.
1016         * config/arm/vxworks.h (TARGET_DEFAULT_WORD_RELOCATIONS): Define.
1017         * config/arm/arm.c (arm_split_constant): Use arm_emit_movpair.
1018         (arm_rtx_costs_1, arm_size_rtx_costs): Handle HIGH and LO_SUM.
1019         (arm_emit_movpair): New function.
1020         (arm_print_operand <c>): Handle sybolic addresses.
1021         * config/arm/arm.h (TARGET_USE_MOVT): Define.
1022         (TARGET_DEFAULT_WORD_RELOCATIONS): Define.
1023         * config/arm/arm-protos.h (arm_emit_movpair): Add prototype.
1024         * config/arm/arm.opt: Add -mword-relocations.
1025         * config/arm/arm.md (movsi): Use arm_emit_movpair.
1026         (arm_movt, arm_movw): New.
1028 2008-09-01  Paul Brook  <paul@codesourcery.com>
1030         * config/arm/arm.c (arm_override_options): Set arm_abi earlier.
1031         Allow Interworking on ARMv4 EABI based targets.
1032         * config/arm/bpabi.h (TARGET_FIX_V4BX_SPEC): Define.
1033         (SUBTARGET_EXTRA_ASM_SPEC, LINK_SPEC): Add TARGET_FIX_V4BX_SPEC.
1035 2008-09-01  Paul Brook  <paul@codesourcery.com>
1037         * config/arm/thumb2.md (thumb2_negscc): Match the correct operand for
1038         optimized LT0 test.  Remove optimization for GT.
1040 2008-09-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1042         * pa64-hpux.h (LIB_SPEC): Link against librt when building static
1043         openmp applications.
1044         * pa-hpux11.h (LIB_SPEC): Likewise.
1046         * ira.c (setup_eliminable_regset): Only declare i if ELIMINABLE_REGS is
1047         defined.
1049 2008-09-01  Jan Hubicka  <jh@suse.cz>
1051         * predict.c (maybe_hot_count_p, maybe_hot_edge_p): When profile is
1052         present, use only counts; when guessed use only frequencies.
1053         (estimate_bb_frequencies): Use function_frequency.
1054         * profile.c (compute_branch_probabilities): Exit early when
1055         profile reading failed. Set profile_status.
1056         (branch_prob): Do not set profile_status.
1058 2008-09-01  Aldy Hernandez  <aldyh@redhat.com>
1060         * tree.c (protected_set_expr_location): New.
1061         * tree.h (protected_set_expr_location): New prototype.
1062         * c-tree.h (build_array_ref): Add argument.
1063         (parser_build_unary_op): Same.
1064         * c-typeck.c (build_indirect_ref): Handle new location argument.
1065         (build_array_ref): Same.
1066         (parser_build_unary_op): Same.
1067         * gimplify.c (gimplify_asm_expr): Set input_location before calling
1068         error.
1069         * c-omp.c (c_finish_omp_atomic): Pass location when calling
1070         build_indirect_ref.
1071         * c-common.c (finish_label_address_expr): Handle new location
1072         argument.
1073         * c-common.h (build_indirect_ref): Add argument.
1074         (finish_label_address_expr): Same.
1075         * c-parser.c (c_parser_unary_expression): Pass location to build
1076         functions.
1077         (c_parser_postfix_expression): Same.
1079 2008-09-01  Paul Brook  <paul@codesourcery.com>
1081         * config/arm/arm.md: Include cortex-r4f.md.
1082         (attr fpu): Update type list.
1083         (attr type): Add fcpys, ffariths, ffarithd, fadds, faddd, fconsts,
1084         fconstd, fcmps and fcmpd.
1085         (attr tune_cortexr4): Define.
1086         (attr generic_sched, attr generic_vfp): Use tune_cortexr4.
1087         * config/arm/vfp.md: Document fcpys, ffariths, ffarithd, fadds, faddd,
1088         fconsts, fconstd, fcmps and fcmpd.  Use them in insn patterns.
1089         * config/arm/arm.c (arm_issue_rate): Add cortexr4f.
1090         * config/arm/arm1020e.md (v10_ffarith, v10_farith): Use new insn
1091         types.
1092         * config/arm/cortex-a8-neon.md (cortex_a8_vfp_add_sub,
1093         cortex_a8_vfp_farith: Ditto.
1094         * config/arm/vfp11.md (vfp_ffarith, vfp_farith): Ditto.
1095         * config/arm/cortex-r4.md: Use tune_cortexr4.
1096         * config/arm/cortex-r4f.md: New file.
1098 2008-09-01  Richard Guenther  <rguenther@suse.de>
1100         PR tree-optimization/37305
1101         * tree-ssa-ccp.c (ccp_fold): Do not set TREE_OVERFLOW on
1102         the result of constant conversions.
1103         (fold_gimple_assign): Likewise.
1105 2008-09-01  Andrey Belevantsev  <abel@ispras.ru>
1107         * sel-sched-ir.c (cmp_v_in_regset_pool): Surround with
1108         #ifdef ENABLE_CHECKING.
1110 2008-09-01  Andrey Belevantsev  <abel@ispras.ru>
1112         * sel-sched-dump.c: Surround with #ifdef INSN_SCHEDULING.
1113         * sched-int.h (print_insn, print_pattern, print_value): Declare also
1114         when !INSN_SCHEDULING.
1116 2008-09-01  Andreas Schwab  <schwab@suse.de>
1118         * config/ia64/ia64.c (TARGET_ADDRESS_COST): Update.
1120 2008-09-01  Paul Brook  <paul@codesourcery.com>
1122         * config/arm/arm.c (arm_no_early_mul_dep): Handle multiply-subtract.
1124 2008-09-01  Jan Hubicka  <jh@suse.cz>
1126         * config/spu/spu.c (spu_expand_block_move) Update call of MOVE_RATIO.
1128         * expr.c (MOVE_BY_PIECES_P, CLEAR_BY_PIECES_P, SET_BY_PIECES_P): Pass speed operand.
1129         * expr.h (MOVE_RATIO, CLEAR_RATIO, SET_RATIO): Update.
1130         * gimplify.c (gimplify_init_constructor): Add speed operand.
1131         * tree-sra.c (decide_block_copy): Likewise.
1132         * tree-inline.c (estimate_move_cost): Likewise.
1133         * config/alpha/alpha.h (MOVE_RATIO): Update.
1134         * config/frv/frv.c (MOVE_RATIO): Update.
1135         * config/spu/spu.h (MOVE_RATIO): Update.
1136         * config/sparc/sparc.h (MOVE_RATIO): Update.
1137         * config/i386/i386.h (MOVE_RATIO, CLEAR_RATIO): Update.
1138         * config/m68hc11/m68hc11.h (MOVE_RATIO): Update.
1139         * config/cris/cris.h (MOVE_RATIO): Update.
1140         * config/mn10300/mn10300.h (MOVE_RATIO): Update.
1141         * config/arm/arm.h (MOVE_RATIO): Update.
1142         * config/pa/pa.md: Update uses of MOVE_RATIO
1143         * config/pa/pa.h (MOVE_RATIO): Update.
1144         * config/mips/mips.h (MOVE_RATIO, MOVE_BY_PIECES, CLEAR_RATIO, SET_RATIO): Update.
1145         * config/h8300/h8300.h (MOVE_RATIO): Update.
1146         * config/v850/v850.h (MOVE_RATIO): Update.
1147         * config/bfin/bfin.h (MOVE_RATIO): Update.
1149 2008-08-31  Andrey Belevantsev  <abel@ispras.ru>
1150         Dmitry Melnik  <dm@ispras.ru>
1151         Dmitry Zhurikhin  <zhur@ispras.ru>
1152         Alexander Monakov  <amonakov@ispras.ru>
1153         Maxim Kuvyrkov  <maxim@codesourcery.com>
1155         * sel-sched.h, sel-sched-dump.h, sel-sched-ir.h, sel-sched.c,
1156         sel-sched-dump.c, sel-sched-ir.c: New files.
1157         * Makefile.in (OBJS-common): Add selective scheduling object
1158         files.
1159         (sel-sched.o, sel-sched-dump.o, sel-sched-ir.o): New entries.
1160         (SEL_SCHED_IR_H, SEL_SCHED_DUMP_H): New entries.
1161         (sched-vis.o): Add dependency on $(INSN_ATTR_H).
1162         * cfghooks.h (get_cfg_hooks, set_cfg_hooks): New prototypes.
1163         * cfghooks.c (get_cfg_hooks, set_cfg_hooks): New functions.
1164         (make_forwarder_block): Update loop latch if we have redirected
1165         the loop latch edge.
1166         * cfgloop.c (get_loop_body_in_custom_order): New function.
1167         * cfgloop.h (LOOPS_HAVE_FALLTHRU_PREHEADERS): New enum field.
1168         (CP_FALLTHRU_PREHEADERS): Likewise.
1169         (get_loop_body_in_custom_order): Declare.
1170         * cfgloopmanip.c (has_preds_from_loop): New.
1171         (create_preheader): Honor CP_FALLTHRU_PREHEADERS.
1172         Assert that the preheader edge will be fall thru when it is set.
1173         * common.opt (fsel-sched-bookkeeping, fsel-sched-pipelining,
1174         fsel-sched-pipelining-outer-loops, fsel-sched-renaming,
1175         fsel-sched-substitution, fselective-scheduling): New flags.
1176         * cse.c (hash_rtx_cb): New.
1177         (hash_rtx): Use it.
1178         * dbgcnt.def (sel_sched_cnt, sel_sched_region_cnt,
1179         sel_sched_insn_cnt): New counters.
1180         * final.c (compute_alignments): Export.  Free dominance info after loop_optimizer_finalize.
1181         * genattr.c (main): Output maximal_insn_latency prototype.
1182         * genautomata.c (output_default_latencies): New. Factor its code from ...
1183         (output_internal_insn_latency_func): ... here.
1184         (output_internal_maximal_insn_latency_func): New.
1185         (output_maximal_insn_latency_func): New.
1186         * hard-reg-set.h (UHOST_BITS_PER_WIDE_INT): Define unconditionally.
1187         (struct hard_reg_set_iterator): New.
1188         (hard_reg_set_iter_init, hard_reg_set_iter_set,
1189         hard_reg_set_iter_next): New functions.
1190         (EXECUTE_IF_SET_IN_HARD_REG_SET): New macro.
1191         * lists.c (remove_free_INSN_LIST_node,
1192         remove_free_EXPR_LIST_node): New functions.
1193         * loop-init.c (loop_optimizer_init): When LOOPS_HAVE_FALLTHRU_PREHEADERS,
1194         set CP_FALLTHRU_PREHEADERS when calling create_preheaders.
1195         (loop_optimizer_finalize): Do not verify flow info after reload.
1196         * recog.c (validate_replace_rtx_1): New parameter simplify.
1197         Default it to true.  Update all uses.  Factor out simplifying
1198         code to ...
1199         (simplify_while_replacing): ... this new function.
1200         (validate_replace_rtx_part,
1201         validate_replace_rtx_part_nosimplify): New.
1202         * recog.h (validate_replace_rtx_part,
1203         validate_replace_rtx_part_nosimplify): Declare.
1204         * rtl.c (rtx_equal_p_cb): New.
1205         (rtx_equal_p): Use it.
1206         * rtl.h (rtx_equal_p_cb, hash_rtx_cb): Declare.
1207         (remove_free_INSN_LIST_NODE, remove_free_EXPR_LIST_node,
1208         debug_bb_n_slim, debug_bb_slim,    print_rtl_slim): Likewise.
1209         * vecprim.h: Add a vector type for unsigned int.
1210         * haifa-sched.c: Include vecprim.h and cfgloop.h.
1211         (issue_rate, sched_verbose_param, note_list, dfa_state_size,
1212         ready_try, cycle_issued_insns, spec_info): Make global.
1213         (readyp): Initialize.
1214         (dfa_lookahead): New global variable.
1215         (old_max_uid, old_last_basic_block): Remove.
1216         (h_i_d): Make it a vector.
1217         (INSN_TICK, INTER_TICK, QUEUE_INDEX, INSN_COST): Make them work
1218         through HID macro.
1219         (after_recovery, adding_bb_to_current_region_p):
1220         New variables to handle correct insertion of the recovery code.
1221         (struct ready_list): Move declaration to sched-int.h.
1222         (rgn_n_insns): Removed.
1223         (rtx_vec_t): Move to sched-int.h.
1224         (find_insn_reg_weight): Remove.
1225         (find_insn_reg_weight1): Rename to find_insn_reg_weight.
1226         (haifa_init_h_i_d, haifa_finish_h_i_d):
1227         New functions to initialize / finalize haifa instruction data.
1228         (extend_h_i_d, init_h_i_d): Rewrite.
1229         (unlink_other_notes): Move logic to add_to_note_list.  Handle
1230         selective scheduler.
1231         (ready_lastpos, ready_element, ready_sort, reemit_notes,
1232         find_fallthru_edge): Make global, remove static prototypes.
1233         (max_issue): Make global.  Add privileged_n and state parameters.  Use
1234         them.
1235         (extend_global, extend_all): Removed.
1236         (init_before_recovery): Add new param.  Fix the handling of the case
1237         when we insert a recovery code before the EXIT which has a predecessor
1238         with a fallthrough edge to it.
1239         (create_recovery_block): Make global.  Rename to
1240         sched_create_recovery_block.  Update.
1241         (change_pattern): Rename to sched_change_pattern.  Make global.
1242         (speculate_insn): Rename to sched_speculate_insn.  Make global.
1243         Split haifa-specific functionality into ...
1244         (haifa_change_pattern): New static function.
1245         (sched_extend_bb): New static function.
1246         (sched_init_bbs): New function.
1247         (current_sched_info): Change type to struct haifa_sched_info.
1248         (insn_cost): Adjust for selective scheduling.
1249         (dep_cost_1): New function.  Move logic from ...
1250         (dep_cost): ... here.
1251         (dep_cost): Use dep_cost_1.
1252         (contributes_to_priority_p): Use sched_deps_info instead of
1253         current_sched_info.
1254         (priority): Adjust to work with selective scheduling.  Process the
1255         corner case when all dependencies don't contribute to priority.
1256         (rank_for_schedule): Use ds_weak instead of dep_weak.
1257         (advance_state): New function.  Move logic from ...
1258         (advance_one_cycle): ... here.
1259         (add_to_note_list, concat_note_lists): New functions.
1260         (rm_other_notes): Make static.  Adjust for selective scheduling.
1261         (remove_notes, restore_other_notes): New functions.
1262         (move_insn): Add two arguments.  Update assert.  Don't call
1263         reemit_notes.
1264         (choose_ready): Remove lookahead variable, use dfa_lookahead.
1265         Remove more_issue, max_points.  Move the code to initialize
1266         max_lookahead_tries to max_issue.
1267         (schedule_block): Remove rgn_n_insns1 parameter.  Don't allocate
1268         ready.  Adjust use of move_insn.  Call restore_other_notes.
1269         (luid): Remove.
1270         (sched_init, sched_finish): Move Haifa-specific initialization/
1271         finalization to ...
1272         (haifa_sched_init, haifa_sched_finish): ... respectively.
1273         New functions.
1274         (setup_sched_dump): New function.
1275         (haifa_init_only_bb): New static function.
1276         (haifa_speculate_insn): New static function.
1277         (try_ready): Use haifa_* instead of speculate_insn and
1278         change_pattern.
1279         (extend_ready, extend_all): Remove.
1280         (sched_extend_ready_list, sched_finish_ready_list): New functions.
1281         (create_check_block_twin, add_to_speculative_block): Use
1282         haifa_insns_init instead of extend_global.  Update to use new
1283         initialization functions.  Change parameter.  Factor out code from
1284         create_check_block_twin to ...
1285         (sched_create_recovery_edges) ... this new function.
1286         (add_block): Remove.
1287         (sched_scan_info): New.
1288         (extend_bb): Use sched_scan_info.
1289         (init_bb, extend_insn, init_insn, init_insns_in_bb, sched_scan): New
1290         static functions for walking through scheduling region.
1291         (sched_luids): New vector variable to replace uid_to_luid.
1292         (luids_extend_insn): New function.
1293         (sched_max_luid): New variable.
1294         (luids_init_insn): New function.
1295         (sched_init_luids, sched_finish_luids): New functions.
1296         (insn_luid): New debug function.
1297         (sched_extend_target): New function.
1298         (haifa_init_insn): New static function.
1299         (sched_init_only_bb): New hook.
1300         (sched_split_block): New hook.
1301         (sched_split_block_1): New function.
1302         (sched_create_empty_bb): New hook.
1303         (sched_create_empty_bb_1): New function.
1304         (common_sched_info, ready): New global variables.
1305         (current_sched_info_var): Remove.
1306         (move_block_after_check): Use common_sched_info.
1307         (haifa_luid_for_non_insn): New static function.
1308         (init_before_recovery): Use haifa_init_only_bb instead of
1309         add_block.
1310         (increase_insn_priority): New.
1311         * modulo-sched.c: (issue_rate): Remove static declaration.
1312         (sms_sched_info): Change type to haifa_sched_info.
1313         (sms_sched_deps_info, sms_common_sched_info): New variables.
1314         (setup_sched_infos): New.
1315         (sms_schedule): Initialize them.  Call haifa_sched_init/finish.
1316         Do not call regstat_free_calls_crossed.
1317         (sms_print_insn): Use const_rtx.
1318         * params.def (PARAM_MAX_PIPELINE_REGION_BLOCKS,
1319         PARAM_MAX_PIPELINE_REGION_INSNS, PARAM_SELSCHED_MAX_LOOKAHEAD,
1320         PARAM_SELSCHED_MAX_SCHED_TIMES, PARAM_SELSCHED_INSNS_TO_RENAME,
1321         PARAM_SCHED_MEM_TRUE_DEP_COST): New.
1322         * sched-deps.c (sched_deps_info): New.  Update all relevant uses of
1323         current_sched_info to use it.
1324         (enum reg_pending_barrier_mode): Move to sched-int.h.
1325         (h_d_i_d): New variable. Initialize to NULL.
1326         ({true, output, anti, spec, forward}_dependency_cache): Initialize
1327         to NULL.
1328         (estimate_dep_weak): Remove static declaration.
1329         (sched_has_condition_p): New function.  Adjust users of
1330         sched_get_condition to use it instead.
1331         (conditions_mutex_p): Add arguments indicating which conditions are
1332         reversed.  Use them.
1333         (sched_get_condition_with_rev): Rename from sched_get_condition.  Add
1334         argument to indicate whether returned condition is reversed.  Do not
1335         generate new rtx when condition should be reversed; indicate it by
1336         setting new argument instead.
1337         (add_dependence_list_and_free): Add deps parameter.
1338         Update all users.  Do not free dependence list when
1339         deps context is readonly.
1340         (add_insn_mem_dependence, flush_pending_lists): Adjust for readonly
1341         contexts.
1342         (remove_from_dependence_list, remove_from_both_dependence_lists): New.
1343         (remove_from_deps): New. Use the above functions.
1344         (cur_insn, can_start_lhs_rhs_p): New static variables.
1345         (add_or_update_back_dep_1): Initialize present_dep_type.
1346         (haifa_start_insn, haifa_finish_insn, haifa_note_reg_set,
1347         haifa_note_reg_clobber, haifa_note_reg_use, haifa_note_mem_dep,
1348         haifa_note_dep): New functions implementing dependence hooks for
1349         the Haifa scheduler.
1350         (note_reg_use, note_reg_set, note_reg_clobber, note_mem_dep,
1351         note_dep): New functions.
1352         (ds_to_dt, extend_deps_reg_info, maybe_extend_reg_info_p): New
1353         functions.
1354         (init_deps): Initialize last_reg_pending_barrier and deps->readonly.
1355         (free_deps): Initialize deps->reg_last.
1356         (sched_analyze_reg, sched_analyze_1, sched_analyze_2,
1357         sched_analyze_insn): Update to use dependency hooks infrastructure
1358         and readonly contexts.
1359         (deps_analyze_insn): New function.  Move part of logic from ...
1360         (sched_analyze): ... here.  Also move some logic to ...
1361         (deps_start_bb): ... here.  New function.
1362         (add_forw_dep, delete_forw_dep): Guard use of INSN_DEP_COUNT with
1363         sel_sched_p.
1364         (sched_deps_init): New function.  Move code from ...
1365         (init_dependency_caches): ... here.  Remove.
1366         (init_deps_data_vector): New.
1367         (sched_deps_finish): New function.  Move code from ...
1368         (free_dependency_caches): ... here.  Remove.
1369         (init_deps_global, finish_deps_global): Adjust for use with
1370         selective scheduling.
1371         (get_dep_weak): Move logic to ...
1372         (get_dep_weak_1): New function.
1373         (ds_merge): Move logic to ...
1374         (ds_merge_1): New static function.
1375         (ds_full_merge, ds_max_merge, ds_get_speculation_types): New functions.
1376         (ds_get_max_dep_weak): New function.
1377         * sched-ebb.c (sched_n_insns): Rename to sched_rgn_n_insns.
1378         (n_insns): Rename to rgn_n_insns.
1379         (debug_ebb_dependencies): New function.
1380         (init_ready_list): Use it.
1381         (begin_schedule_ready): Use sched_init_only_bb.
1382         (ebb_print_insn): Indicate when an insn starts a new cycle.
1383         (contributes_to_priority, compute_jump_reg_dependencies,
1384         add_remove_insn, fix_recovery_cfg): Add ebb_ prefix to function names.
1385         (add_block1): Remove to ebb_add_block.
1386         (ebb_sched_deps_info, ebb_common_sched_info): New variables.
1387         (schedule_ebb): Initialize them.  Use remove_notes instead of
1388         rm_other_notes.  Use haifa_local_init/finish.
1389         (schedule_ebbs): Use haifa_sched_init/finish.
1390         * sched-int.h: Include vecprim.h, remove rtl.h.
1391         (struct ready_list): Delete declaration.
1392         (sched_verbose_param, enum sched_pass_id_t,
1393         bb_vec_t, insn_vec_t, rtx_vec_t): New.
1394         (struct sched_scan_info_def): New structure.
1395         (sched_scan_info, sched_scan, sched_init_bbs,
1396         sched_init_luids, sched_finish_luids, sched_extend_target,
1397         haifa_init_h_i_d, haifa_finish_h_i_d): Declare.
1398         (struct common_sched_info_def): New.
1399         (common_sched_info, haifa_common_sched_info,
1400         sched_emulate_haifa_p): Declare.
1401         (sel_sched_p): New.
1402         (sched_luids): Declare.
1403         (INSN_LUID, LUID_BY_UID, SET_INSN_LUID): Declare.
1404         (sched_max_luid, insn_luid): Declare.
1405         (note_list, remove_notes, restore_other_notes, bb_note): Declare.
1406         (sched_insns_init, sched_insns_finish, xrecalloc, reemit_notes,
1407         print_insn, print_pattern, print_value, haifa_classify_insn,
1408         sel_find_rgns, sel_mark_hard_insn, dfa_state_size, advance_state,
1409         setup_sched_dump, sched_init, sched_finish,
1410         sel_insn_is_speculation_check): Export.
1411         (struct ready_list): Move from haifa-sched.c.
1412         (ready_try, ready, max_issue): Export.
1413         (ebb_compute_jump_reg_dependencies, find_fallthru_edge,
1414         sched_init_only_bb, sched_split_block, sched_split_block_1,
1415         sched_create_empty_bb, sched_create_empty_bb_1,
1416         sched_create_recovery_block, sched_create_recovery_edges): Export.
1417         (enum reg_pending_barrier_mode): Export.
1418         (struct deps): New fields `last_reg_pending_barrier' and `readonly'.
1419         (deps_t): New.
1420         (struct sched_info): Rename to haifa_sched_info.  Use const_rtx for
1421         print_insn field.  Move add_block and fix_recovery_cfg to
1422         common_sched_info_def.  Move compute_jump_reg_dependencies, use_cselib  ...
1423         (struct sched_deps_info_def): ... this new structure.
1424         (sched_deps_info): Declare.
1425         (struct spec_info_def): Remove weakness_cutoff, add
1426         data_weakness_cutoff and control_weakness_cutoff.
1427         (spec_info): Declare.
1428         (struct _haifa_deps_insn_data): Split from haifa_insn_data.  Add
1429         dep_count field.
1430         (struct haifa_insn_data): Rename to struct _haifa_insn_data.
1431         (haifa_insn_data_def, haifa_insn_data_t): New typedefs.
1432         (current_sched_info): Change type to struct haifa_sched_info.
1433         (haifa_deps_insn_data_def, haifa_deps_insn_data_t): New typedefs.
1434         (h_d_i_d): New variable.
1435         (HDID): New accessor macro.
1436         (h_i_d): Change type to VEC (haifa_insn_data_def, heap) *.
1437         (HID): New accessor macro.  Rewrite h_i_d accessor macros through HID
1438         and HDID.
1439         (IS_SPECULATION_CHECK_P): Update for selective scheduler.
1440         (enum SCHED_FLAGS): Update for selective scheduler.
1441         (enum SPEC_SCHED_FLAGS): New flag SEL_SCHED_SPEC_DONT_CHECK_CONTROL.
1442         (init_dependency_caches, free_dependency_caches): Delete declarations.
1443         (deps_analyze_insn, remove_from_deps, get_dep_weak_1,
1444         estimate_dep_weak, ds_full_merge, ds_max_merge, ds_weak,
1445         ds_get_speculation_types, ds_get_max_dep_weak, sched_deps_init,
1446         sched_deps_finish, haifa_note_reg_set, haifa_note_reg_use,
1447         haifa_note_reg_clobber, maybe_extend_reg_info_p, deps_start_bb,
1448         ds_to_dt): Export.
1449         (rm_other_notes): Delete declaration.
1450         (schedule_block): Remove one argument.
1451         (cycle_issued_insns, issue_rate, dfa_lookahead, ready_sort,
1452         ready_element, ready_lastpos, sched_extend_ready_list,
1453         sched_finish_ready_list, sched_change_pattern, sched_speculate_insn,
1454         concat_note_lists): Export.
1455         (struct region): Move from sched-rgn.h.
1456         (nr_regions, rgn_table, rgn_bb_table, block_to_bb, containing_rgn,
1457         RGN_NR_BLOCKS, RGN_BLOCKS, RGN_DONT_CALC_DEPS, RGN_HAS_REAL_EBB,
1458         BLOCK_TO_BB, CONTAINING_RGN): Export.
1459         (ebb_head, BB_TO_BLOCK, EBB_FIRST_BB, EBB_LAST_BB, INSN_BB): Likewise.
1460         (current_nr_blocks, current_blocks, target_bb): Likewise.
1461         (dep_cost_1, sched_is_disabled_for_current_region_p, sched_rgn_init,
1462         sched_rgn_finish, rgn_setup_region, sched_rgn_compute_dependencies,
1463         sched_rgn_local_init, extend_regions,
1464         rgn_make_new_region_out_of_new_block, compute_priorities,
1465         debug_rgn_dependencies, free_rgn_deps, contributes_to_priority,
1466         extend_rgns, deps_join rgn_setup_common_sched_info,
1467         rgn_setup_sched_infos, debug_regions, debug_region, dump_region_dot,
1468         dump_region_dot_file, haifa_sched_init, haifa_sched_finish): Export.
1469         (get_rgn_sched_max_insns_priority, sel_add_to_insn_priority,
1470         increase_insn_priority): Likewise.
1471         * sched-rgn.c: Include sel-sched.h.
1472         (ref_counts): New static variable.  Use it ...
1473         (INSN_REF_COUNT): ... here.  Rewrite and move closer to uses.
1474         (FED_BY_SPEC_LOAD, IS_LOAD_INSN): Rewrite to use HID accessor macro.
1475         (sched_is_disabled_for_current_region_p): Delete static declaration.
1476         (struct region): Move to sched-int.h.
1477         (nr_regions, rgn_table, rgn_bb_table, block_to_bb, containing_rgn,
1478         ebb_head): Define and initialize.
1479         (RGN_NR_BLOCKS, RGN_BLOCKS, RGN_DONT_CALC_DEPS, RGN_HAS_REAL_EBB,
1480         BLOCK_TO_BB, CONTAINING_RGN, debug_regions, extend_regions,
1481         BB_TO_BLOCK, EBB_FIRST_BB, EBB_LAST_BB): Move to
1482         sched-int.h.
1483         (find_single_block_region): Add new argument to indicate that EBB
1484         regions should be constructed.
1485         (debug_live): Delete declaration.
1486         (current_nr_blocks, current_blocks, target_bb): Remove static qualifiers.
1487         (compute_dom_prob_ps, check_live, update_live, set_spec_fed): Delete
1488         declaration.
1489         (init_regions): Delete declaration.
1490         (debug_region, bb_in_region_p, dump_region_dot_file, dump_region_dot,
1491         rgn_estimate_number_of_insns): New.
1492         (too_large): Use estimate_number_of_insns.
1493         (haifa_find_rgns): New. Move the code from ...
1494         (find_rgns): ... here.  Call either sel_find_rgns or haifa_find_rgns.
1495         (free_trg_info): New.
1496         (compute_trg_info): Allocate candidate tables here instead of ...
1497         (init_ready_list): ... here.
1498         (rgn_print_insn): Use const_rtx.
1499         (contributes_to_priority, extend_regions): Delete static declaration.
1500         (add_remove_insn, fix_recovery_cfg): Add rgn_ to function names.
1501         (add_block1): Rename to rgn_add_block.
1502         (debug_rgn_dependencies): Delete static qualifier.
1503         (new_ready): Use sched_deps_info.  Simplify.
1504         (rgn_common_sched_info, rgn_const_sched_deps_info,
1505         rgn_const_sel_sched_deps_info, rgn_sched_deps_info, rgn_sched_info): New.
1506         (region_sched_info): Rename to rgn_const_sched_info.
1507         (deps_join): New, extracted from ...
1508         (propagate_deps): ... here.
1509         (compute_block_dependences, debug_dependencies): Update for selective
1510         scheduling.
1511         (free_rgn_deps, compute_priorities): New functions.
1512         (sched_rgn_init, sched_rgn_finish, rgn_setup_region,
1513         sched_rgn_compute_dependencies): New functions.
1514         (schedule_region): Use them.
1515         (sched_rgn_local_init, sched_rgn_local_free, sched_rgn_local_finish,
1516         rgn_setup_common_sched_info, rgn_setup_sched_infos):
1517         New functions.
1518         (schedule_insns): Call new functions that were split out.
1519         (rgn_make_new_region_out_of_new_block): New.
1520         (get_rgn_sched_max_insns_priority): New.
1521         (rest_of_handle_sched, rest_of_handle_sched2): Call selective
1522         scheduling when appropriate.
1523         * sched-vis.c: Include insn-attr.h.
1524         (print_value, print_pattern): Make global.
1525         (print_rtl_slim, debug_bb_slim, debug_bb_n_slim): New functions.
1526         * target-def.h (TARGET_SCHED_ADJUST_COST_2,
1527         TARGET_SCHED_ALLOC_SCHED_CONTEXT, TARGET_SCHED_INIT_SCHED_CONTEXT,
1528         TARGET_SCHED_SET_SCHED_CONTEXT, TARGET_SCHED_CLEAR_SCHED_CONTEXT,
1529         TARGET_SCHED_FREE_SCHED_CONTEXT, TARGET_SCHED_GET_INSN_CHECKED_DS,
1530         TARGET_SCHED_GET_INSN_SPEC_DS, TARGET_SCHED_SKIP_RTX_P): New target
1531         hooks.  Initialize them to 0.
1532         (TARGET_SCHED_GEN_CHECK): Rename to TARGET_SCHED_GEN_SPEC_CHECK.
1533         * target.h (struct gcc_target): Add them.  Rename gen_check field to
1534         gen_spec_check.
1535         * flags.h (sel_sched_switch_set): Declare.
1536         * opts.c (sel_sched_switch_set): New variable.
1537         (decode_options): Unset flag_sel_sched_pipelining_outer_loops if
1538         pipelining is disabled from command line.
1539         (common_handle_option): Record whether selective scheduling is
1540         requested from command line.
1541         * doc/invoke.texi: Document new flags and parameters.
1542         * doc/tm.texi: Document new target hooks.
1543         * config/ia64/ia64.c (TARGET_SCHED_GEN_SPEC_CHECK): Define to ia64_gen_check.
1544         (dfa_state_size): Do not declare locally.
1545         * config/ia64/ia64.opt (msched-ar-data-spec): Default to 0.
1546         * config/rs6000/rs6000.c (rs6000_init_sched_context,
1547         rs6000_alloc_sched_context, rs6000_set_sched_context,
1548         rs6000_free_sched_context): New functions.
1549         (struct _rs6000_sched_context): New.
1550         (rs6000_sched_reorder2): Do not modify INSN_PRIORITY for selective
1551         scheduling.
1552         (rs6000_sched_finish): Do not run for selective scheduling.
1554 2008-08-31  Jan Hubicka  <jh@suse.cz>
1556         * frv.c (frv_rtx_costs): Update forward declaration.
1557         * spu.c (spu_rtx_costs): Likewise.
1558         * pdp11.c: Include df.h
1559         (pdp11_output_function_epilogue): Use df_set_regs_ever_live.
1560         * m68hc11.c (m68hc11_gen_highpart): Fix call of gen_rtx_SUBREG.
1561         (m68hc11_rtx_costs_1): Fix call of rtx_cost.
1562         * iq2000.c (iq2000_address_cost): Add speed argument.
1563         (iq2000_rtx_costs): Likewise.
1564         * mn10300.c (mn10300_address_cost_1): Remove speed argument;
1565         update call of mn10300_address_cost.
1566         * mcore.c: Include df.h
1567         (mcore_rtx_costs): Update prototype.
1568         * score3.c: Include df.h
1569         (score3_rtx_costs): Remove speed argument.
1570         * score7.c: Include df.h
1571         (score7_address_cost): Remove speed argument.
1572         * score-protos.h (score_address_cost): Update prototype.
1573         * score.c: Include df.h
1574         (score_rtx_costs): Update call of costs functions.
1575         * v850.c (v850_rtx_costs): Add bool argument.
1577 2008-08-31  Hans-Peter Nilsson  <hp@axis.com>
1579         * config/cris/cris.c (cris_rtx_costs): Correct call to rtx_costs.
1581 2008-08-31  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
1583         * gthr-win32.h (__gthread_setspecific): Use CONST_CAST2.
1584         * config/i386/gthr-win32.c (__gthread_setspecific): Same.
1586 2008-08-31  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
1588         * mkmap-flat.awk: Add option pe_dll.
1589         * config/i386/t-cygming (SHLIB_LINK): Support building libgcc_s.
1590         * config/i386/t-cygwin (SHLIB_LC): Add.
1591         * config/i386/t-mingw32 (SHLIB_LC): Add.
1592         * config/i386/mingw32.h (SHARED_LIBGCC_UNDEFS_SPEC): New.
1593         (SUBTARGET_EXTRA_SPECS): Use SHARED_LIBGCC_UNDEFS_SPEC.
1594         (LINK_SPEC): Support libgcc_s.
1595         (LIBGCC_SPEC): Support libgcc_s.
1596         (LIBGCC_SONAME): New.
1598 2008-08-31  Jan Hubicka  <jh@suse.cz>
1600         * predict.c (maybe_hot_bb_p, maybe_hot_edge_p): Previous commit
1601         mistakely had old version of patch.
1603         * ipa-cp.c (ipcp_need_original_clone_p): Remove.
1604         (ipcp_estimate_growth): New.
1605         (ipcp_insert_stage): Use ipcp_estimate_growth.
1606         * profile.c (branch_prob): When reading failed, do not consider
1607         profile as read.
1609 2008-08-31  Jan Hubicka  <jh@suse.cz>
1611         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Check that
1612         loop is optimized for speed.
1614 2008-08-31  Richard Guenther  <rguenther@suse.de>
1616         PR middle-end/37289
1617         * fold-const.c (fold_binary): Retain conversions in folding
1618         ~A + 1 to -A.
1620 2008-08-31  Jan Hubicka  <jh@suse.cz>
1622         * postreload-gcse.c (eliminate_partially_redundant_loads): Use optimize_bb_for_size_p.
1623         * predict.c (maybe_hot_frequency_p): Make inline.
1624         (maybe_hot_count_p): Break out from ...
1625         (maybe_hot_bb_p): ... this one.
1626         (maybe_hot_edge_p): Simplify.
1627         * basic-block.h (probably_cold_bb_p): Remove.
1629 2008-08-31  Jakub Jelinek  <jakub@redhat.com>
1631         PR target/37168
1632         * config/rs6000/rs6000-protos.h (const_vector_elt_as_int): Add
1633         prototype.
1634         * config/rs6000/rs6000.c (const_vector_elt_as_int): No longer static.
1635         * config/rs6000/altivec.md (easy_vector_constant_add_self splitter):
1636         Also split V4SFmode.
1637         * config/rs6000/predicates.md (easy_vector_constant_add_self): Handle
1638         vector float modes.
1640 2008-08-31  Jan Hubicka  <jh@suse.cz>
1642         * predict.c (PROB_VERY_LIKELY): Make small enough so things
1643         become cold.
1644         * predict.def (PRED_NORETURN_CALL, PRED_COLD_CALL): Use it.
1646 2008-08-31  Jakub Jelinek  <jakub@redhat.com>
1648         PR debug/37287
1649         * dwarf2out.c (gen_namespace_die): For DECL_EXTERNAL modules don't
1650         add source coords.
1652         * dwarf2out.c (native_encode_initializer): Subtract min_index for
1653         non-range array index.  Handle VIEW_CONVERT_EXPR and NON_LVALUE_EXPR.
1655 2008-08-31  Jan Hubicka  <jh@suse.cz>
1657         * sparc.h (BRANCH_COST): Fix macro definition.
1658         * avr.c (avr_operand_rtx_cost): Add speed argument.
1659         (avr_rtx_costs): Update calls of avr_operand_rtx_cost.
1661 2008-08-31  Richard Guenther  <rguenther@suse.de>
1663         * tree-cfg.c (verify_types_in_gimple_assign): Dump mismatched
1664         types instead of operands.  Re-instantiate verifying of
1665         binary expression operands.
1667 2008-08-30  Jan Hubicka  <jh@suse.cz>
1669         * fwprop.c (should_replace_address): Add speed attribute.
1670         (PR_OPTIMIZE_FOR_SPEED): New flag.
1671         (propagate_rtx_1): Use it.
1672         (propagate_rtx): Set it.
1673         (try_fwprop_subst): Update call of rtx_costs.
1674         (forward_propagate_and_simplify): LIkewise.
1675         * hooks.c (hook_int_rtx_bool_0): New
1676         (hook_bool_rtx_int_int_intp_false): Replace by ...
1677         (hook_bool_rtx_int_int_intp_bool_false): .. thisone.
1678         * hooks.h (hook_int_rtx_bool_0): New
1679         (hook_bool_rtx_int_int_intp_false): Replace by ...
1680         (hook_bool_rtx_int_int_intp_bool_false): .. thisone.
1681         * optabs.c (avoid_expensive_constant): UPdate call of rtx_cost.
1682         (prepare_cmp_insn): UPdate call of rtx_cost.
1683         * postreload.c (reload_cse_simplify_set): Update call of rtx_cost.
1684         (reload_cse_simplify_operands): Update call of rtx_cost.
1685         (reload_cse_move2add): call of rtx_cost.
1686         * target.h (struct gcc_target): Update rtx_costs and address_costs.
1687         * rtlanal.c (rtx_cost): Add speed argument.
1688         (address_cost): Add speed argument
1689         (default_address_cost): Likewise.
1690         (insn_rtx_cost): Likewise.
1691         * cfgloopanal.c (seq_cost): Add speed argument.
1692         (target_reg_cost, target_spill_cost): Turn to array.
1693         (init_set_costs): Update for speed.
1694         (estimate_reg_pressure_cost): Add speed argument.
1695         * auto-inc-dec.c (attempt_change): Update call of rtx_cost.
1696         * dojump.c (prefer_and_bit_test): UPdate call of rtx_cost.
1697         * tree-ssa-loop-ivopts.c (struct ivopts_data): New field speed.
1698         (seq_cost): Add speed argument.
1699         (computation_cost): Add speed arugment.
1700         (add_cost, multiply_by_const, get_address_cost): add speed argument.
1701         (force_expr_to_var_cost): Update for profile info.
1702         (force_var_cost): Likewise.
1703         (split_address_cost): Likewise.
1704         (ptr_difference_cost): Likewise.
1705         (difference_cost): Likewise.
1706         (get_computation_cost_at): Likewise.
1707         (determine_iv_cost): Likewise.
1708         (ivopts_global_cost_for_size): Likewise.
1709         (rewrite_use_address): Likewise.
1710         (tree_ssa_iv_optimize_loop): Initialize speed field.
1711         * cse.c (optimize_this_for_speed_p): New static var.
1712         (notreg_cost): Update call of rtx_cost.
1713         (cse_extended_basic_block): set optimize_this_for_speed_p.
1714         * ifcvt.c (cheap_bb_rtx_cost_p): Update call of rtx_cost.
1715         (noce_try_cmove_arith): Likewise.
1716         (noce_try_sign_mask): LIkewise.
1717         * expr.c (compress_float_constant): Update rtx_cost calls.
1718         * tree-ssa-address.c (most_expensive_mult_to_index): Add speed argument.
1719         (addr_to_parts): Likewise.
1720         (create_mem_ref): Likewise.
1721         * dse.c (find_shift_sequence): Add speed argument.
1722         (replace_read): Update call.
1723         * calls.c (precompute_register_parameters): Update call of rtx_cost.
1724         * expmed.c (sdiv_pow2_cheap, smod_pow2_cheap, zero_cost, add_cost,
1725         * neg_cost, shift_cost, shiftadd_cost,
1726         shiftsub_cost, mul_cost, sdiv_cost, udiv_cost ,mul_widen_cost,
1727         mul_highpart_cost): Increase dimension.
1728         (init_expmed): Initialize for both size and speed.
1729         (expand_shift): Use profile.
1730         (synth_mult): Use profile.
1731         (choose_mult_variant): Use profile.
1732         (expand_mult): Use profile.
1733         (expand_mult_highpart_optab): Use profile.
1734         (expand_mult_highpart): Use profile.
1735         (expand_smod_pow2): Use profile.
1736         (expand_divmod): Use profile.
1737         * simplify-rtx.c (simplify_binary_operation_1): Update call of rtx_cost.
1738         * loop-invariant.c (create_new_invariant): Use profile.
1739         (gain_for_invariant): Add speed parameter.
1740         (best_gain_for_invariant): Likewise.
1741         (find_invariants_to_move): Likewise.
1742         (move_single_loop_invariants): Set it.
1743         * target-def.h (TARGET_RTX_COSTS): Use hook.
1744         * rtl.h (rtx_cost, address_cost, insn_rtx_cost): Update prototpe.
1745         (optimize_insn_for_size_p, optimize_insn_for_speed_p): Declare.
1746         * output.h (default_address_cost): Update prototype.
1747         * combine.c (optimize_this_for_speed_p): New static var.
1748         (combine_validate_cost): Update call of rtx_cost.
1749         (combine_instructions): Set optimize_this_for_speed_p.
1750         (expand_compound_operation): Update call of rtx_cost.
1751         (make_extraction):Update call of rtx_cost.
1752         (force_to_mode):Update call of rtx_cost.
1753         (distribute_and_simplify_rtx):Update call of rtx_cost.
1754         * cfgloop.h (target_reg_cost, target_spill_cost): Turn to array.
1755         (estimate_reg_pressure_cost): Update prototype.
1756         * tree-flow.h (multiply_by_cost, create_mem_ref): Update prototype.
1757         * basic-block.h (optimize_insn_for_size_p, optimize_insn_for_speed_p):
1758         Remove.
1759         * config/alpha/alpha.c (alpha_rtx_costs): Update.
1760         (alpha_rtx_costs): Update.
1761         * config/frv/frv.c (frv_rtx_costs): Update.
1762         * config/s390/s390.c (s390_rtx_costs): Update.
1763         * config/m32c/m32c.c (m32c_memory_move_cost): Update.
1764         (m32c_rtx_costs): Update.
1765         * config/spu/spu.c (TARGET_ADDRESS_COST): Upate.
1766         (spu_rtx_costs): Update.
1767         * config/sparc/sparc.c (sparc_rtx_costs): Update.
1768         * config/m32r/m32r.c (m32r_rtx_costs): Update.
1769         * config/i386/i386.c (:ix86_address_cost): Update.
1770         (ix86_rtx_costs): Update.
1771         * config/sh/sh.c (sh_rtx_costs, sh_address_cost): Update.
1772         * config/pdp11/pdp11.c (pdp11_rtx_costs): Update.
1773         * config/avr/avr.c (avr_rtx_costs, avr_address_cost): Update.
1774         * config/crx/crx.c (crx_address_cost): Update.
1775         * config/xtensa/xtensa.c (xtensa_rtx_costs): Update.
1776         * config/stormy16/stormy16.c
1777         (xstormy16_address_cost, xstormy16_rtx_costs): Update.
1778         * config/m68hc11/m68hc11.c
1779         (m68hc11_address_cost, m68hc11_rtx_costs): Update.
1780         * config/cris/cris.c (cris_rtx_costs, cris_address_cost): Update.
1781         * config/iq2000/iq2000.c (iq2000_rtx_costs, iq2000_address_cost): Update.
1782         * config/mn10300/mn10300.c (mn10300_address_cost, mn10300_rtx_costs): Update
1783         * config/ia64/ia64.c (ia64_rtx_costs): Update.
1784         * config/m68k/m68k.c (m68k_rtx_costs): Update.
1785         * config/rs6000/rs6000.c (rs6000_rtx_costs): Update.
1786         * config/arc/arc.c (arc_rtx_costs, arc_address_cost): Update.
1787         * config/mcore/mcore.c (TARGET_ADDRESS_COST): Update.
1788         (mcore_rtx_costs): update.
1789         * config/score/score3.c (score3_rtx_costs): Update.
1790         * config/score/score7.c (score7_rtx_costs): Update.
1791         * config/score/score3.h (score3_rtx_costs):Update.
1792         * config/score/score7.h (score7_rtx_costs): Update.
1793         * config/score/score.c (score_rtx_costs): Update.
1794         * config/arm/arm.c (arm_address_cost): Update.
1795         (arm_rtx_costs_1): Update.
1796         (arm_rtx_costs_1): Update.
1797         (arm_size_rtx_costs): Update.
1798         (arm_size_rtx_costs): Update.
1799         (arm_size_rtx_costs): Update.
1800         (arm_xscale_rtx_costs): Update.
1801         (arm_thumb_address_cost): Update.
1802         * config/pa/pa.c (hppa_address_cost): Update.
1803         * config/mips/mips.c (mips_rtx_costs): Update.
1804         * config/vax/vax.c (vax_address_cost): Update.
1805         * config/h8300/h8300.c (h8300_shift_costs): Update.
1806         (h8300_rtx_costs): Update.
1807         * config/v850/v850.c (TARGET_ADDRESS_COST): Update.
1808         (v850_rtx_costs): Update.
1809         * config/mmix/mmix.c (mmix_rtx_costs, mmix_rtx_costs): Update.
1810         * config/bfin/bfin.c
1811         (bfin_address_cost): Update.
1812         (bfin_rtx_costs): Update.
1813         * stmt.c (lshift_cheap_p): Update.
1815 2008-08-30  Andrew Pinski  <andrew_pinski@playstation.sony.com>
1817         PR middle-end/36444
1818         * expmed.c (extract_bit_field_1): Check the mode size to make
1819         sure the vector modes have the same size.
1821 2008-08-29  Michael Meissner  <gnu@the-meissners.org>
1823         * dojump.c (top level): Include basic-block.h to declare
1824         optimize_insn_for_speed_p
1826         * Makefile.in (dodump.h): Add $(BASIC_BLOCK_H) dependency.
1828         * opts.h (CL_SAVE): New option class for marking options that are
1829         target specific options usable in the target attribute.
1830         (CL_MIN_OPTION_CLASS): CL_SAVE is now the minimum option.
1832         * opt-functions.awk (switch_flags): Add CL_SAVE flag so backends
1833         can easily find the target specific options that are safe to use
1834         in the attribute or pragma.
1836         * attribs.c (decl_attributes): Change #pragma GCC option to
1837         #pragma GCC target, and attribute((option(...))) to
1838         attribute((target(...))).
1840         * doc/extend.texi (target attribute): Change from option
1841         attribute.  Delete push/pop/reset.
1842         (#pragma GCC target): Change from #pragma GCC option.  Delete
1843         push/pop/reset.
1844         (#pragma GCC push_options): Document new pragma.
1845         (#pragma GCC pop_options): Document new pragma.
1846         (#pragma GCC reset_options): Document new pragma.
1848         * targhooks.c (default_target_option_valid_attribute_p): Add
1849         warning about port not supporting target attributes.
1850         (default_target_option_pragma_parse): New function, warn about
1851         #pragma GCC target not being supported.
1853         * targhooks.h (default_target_option_pragma_parse): Add
1854         declaration.
1856         * tree.h (TI_CURRENT_TARGET_PRAGMA): Rename from
1857         TI_CURRENT_OPTION_PRAGMA.
1858         (current_target_pragma): Rename from current_option_pragma.
1860         * target.h: (struct target_option): Delete booleans for changing
1861         the optimization level on hot/cold functions.  Change signature of
1862         pragma_parse hook to take a second tree.
1864         * c-tree.h (c_builtin_function_ext_scope): Add declaration.
1866         * c-decl.c (c_builtin_function_ext_scope): New function, guarantee
1867         that the declaration is done at global scope.
1869         * langhooks.c (add_builtin_function_common): Move most of the code
1870         from add_builtin_function here, calling the hook passed in.
1871         (add_builtin_function): Call add_builtin_function_common with
1872         standard builtin hook.
1873         (add_builtin_function_ext_scope): New function to add builtins to
1874         global scope.
1876         * langhooks.h (struct lang_hooks): Add builtin_function_ext_scope
1877         hook.
1878         (add_builtin_function_ext_scope): Add declaration.
1880         * c-pragma.c (handle_pragma_target): Rename from
1881         handle_pragma_option, #pragma GCC option is now #pragma GCC
1882         target.  Move warning about port not supporting target options to
1883         default pragma parse hook.  Remove push/pop/reset from this
1884         pragma.
1885         (handle_pragma_optimize): Remove push/pop/reset from this pragma.
1886         (option_stack): Delete static variable.
1887         (optimize_stack): Ditto.
1888         (optons_stack): New stack of saved target and optimization
1889         options.
1890         (handle_pragma_push_options): New function to handle pushing both
1891         target and optimization options.
1892         (handle_pragma_pop_options): New function to handle popping both
1893         target and optimization options.
1894         (handle_pragma_reset_options): New function to handle resetting
1895         both target and optimization options to their initial state.
1896         (init_pragma): Rename handle_pragma_option to
1897         handle_pragma_target.  Add support for push_options, pop_options,
1898         and reset_options pragmas.
1900         * target-def.h (TARGET_OPTION_PRAGMA_PARSE): Change default to
1901         default_target_option_pragma_parse.
1902         (TARGET_OPTION_VALID_ATTRIBUTE_P): Change default to
1903         default_target_option_valid_attribute_p.
1904         (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): Delete.
1905         (TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION): Ditto.
1906         (TARGET_OPTION_HOOKS): Delete the fields for whether to change
1907         optimization level on hot/cold functions.
1909         * tree-inline.c (tree_can_inline_p): Disable suppressing inlining
1910         if the caller and callee have different optimization levels.
1912         * c-common.c (handle_target_attribute): Rename from
1913         handle_option_attribute, attribute((option(...))) is now
1914         attribute((target(...))).  Move warning if the port does not
1915         support target attributes to the default hook.
1916         (handle_hot_attribute): Delete code to change the optimization
1917         level of hot functions.
1918         (handle_cold_attribute): Ditto.
1920         * config/i386/i386-c.c (ix86_pragma_target_parse): Take a second
1921         argument that is the binary tree options to use if there are no
1922         arguments.  Call ix86_valid_target_attribute_tree instead of
1923         ix86_valid_option_attribute_tree.
1924         (ix86_pragma_target_parse): Rename from ix86_pragma_option_parse.
1925         (ix86_register_pragmas): Use ix86_pragma_target_parse instead of
1926         ix86_pragma_option_parse.
1928         * config/i386/i386-protos.h (ix86_valid_target_attribute_tree):
1929         Rename from ix86_valid_option_attribute_tree.
1931         * config/i386/i386.c (ix86_add_new_builtins): New function to add
1932         new builtins when the ISA changes.
1933         (ix86_valid_target_attribute_tree): Rename from
1934         ix86_valid_option_attribute_tree.  Change callers.  If the
1935         function specified optimization options, use those as the starting
1936         point before setting up the target attributes.  If the
1937         optimization options were changed in the course of setting the
1938         target attributes, record the new optimization options.
1939         (ix86_valid_target_attribute_tree_inner_p): Rename from
1940         ix86_valid_option_attribute_tree_inner_p.  Change callers.  Call
1941         ix86_add_new_builtins if the ISA changed.
1942         (ix86_valid_target_attribute_p): Rename from
1943         ix86_valid_option_attribute_p.  Change callers.
1944         (enum ix86_builtins): Add IX86_BUILTIN_PCMOV to allow both
1945         __builtin_ia32_pcmov and __builtin_ia32_pcmov_v2di to be declared
1946         as delayed builtin functions.
1947         (struct builtin_isa): New structure to record builtin functions
1948         that should be delayed until the ISA for that function is used.
1949         (ix86_builtins_isa): Change from int to struct to track builtin
1950         functions we want to declare at some point.
1951         (def_builtin): If the front end can delay defining the builtin
1952         functions, don't create builtins for ISAs not part of the default
1953         options.
1954         (def_builtin_const): Ditto.
1955         (bdesc_multi_arg): Declare __builtin_ia32_pcmov and
1956         __builtin_ia32_pcmov_v2di to be different builtin functions.
1957         (ix86_expand_builtin): Changes due to ix86_builtins_isa now being
1958         a structure instead of an int.
1959         (TARGET_OPTION_VALID_ATTRIBUTE_P): Use
1960         ix86_valid_target_attribute_p, not ix86_valid_option_attribute_p.
1961         (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): Delete.
1962         (TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION): Ditto.
1964         * config/ia64/ia64.h
1965         (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): Delete.
1966         (TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION): Ditto.
1968         * langhooks-def.h (LANG_HOOKS_BUILTIN_FUNCTION_EXT_SCOPE): New
1969         hook, default to being the same as LANG_HOOKS_BUILTIN_FUNCTION.
1970         (LANG_HOOKS_INITIALIZER): Add
1971         LANG_HOOKS_BUILTIN_FUNCTION_EXT_SCOPE hook.
1973 2008-08-30  Kaz Kojima  <kkojima@gcc.gnu.org>
1975         PR target/37270
1976         * config/sh/sh.h (LEGITIMIZE_RELOAD_ADDRESS): Generate
1977         the reload address with the index register for SFmode
1978         access with a displacement.
1980 2008-08-30  Jan Hubicka  <jh@suse.cz>
1982         * optabs.c (expand_abs_nojump): Update BRANCH_COST call.
1983         * fold-cost.c (LOGICAL_OP_NON_SHORT_CIRCUIT, fold_truthop): Likewise.
1984         * dojump.c (do_jump): Likewise.
1985         * ifcvt.c (MAX_CONDITIONAL_EXECUTE): Likewise.
1986         (note-if_info): Add BRANCH_COST.
1987         (noce_try_store_flag_constants, noce_try_addcc, noce_try_store_flag_mask,
1988         noce_try_cmove_arith, noce_try_cmove_arith, noce_try_cmove_arith,
1989         noce_find_if_block, find_if_case_1, find_if_case_2): Use compuated
1990         branch cost.
1991         * expr.h (BRANCH_COST): Update default.
1992         * predict.c (predictable_edge_p): New function.
1993         * expmed.c (expand_smod_pow2, expand_sdiv_pow2, emit_store_flag):
1994         Update BRANCH_COST call.
1995         * basic-block.h (predictable_edge_p): Declare.
1996         * config/alpha/alpha.h (BRANCH_COST): Update.
1997         * config/frv/frv.h (BRANCH_COST): Update.
1998         * config/s390/s390.h (BRANCH_COST): Update.
1999         * config/spu/spu.h (BRANCH_COST): Update.
2000         * config/sparc/sparc.h (BRANCH_COST): Update.
2001         * config/m32r/m32r.h (BRANCH_COST): Update.
2002         * config/i386/i386.h (BRANCH_COST): Update.
2003         * config/i386/i386.c (ix86_expand_int_movcc): Update use of BRANCH_COST.
2004         * config/sh/sh.h (BRANCH_COST): Update.
2005         * config/pdp11/pdp11.h (BRANCH_COST): Update.
2006         * config/avr/avr.h (BRANCH_COST): Update.
2007         * config/crx/crx.h (BRANCH_COST): Update.
2008         * config/xtensa/xtensa.h (BRANCH_COST): Update.
2009         * config/stormy16/stormy16.h (BRANCH_COST): Update.
2010         * config/m68hc11/m68hc11.h (BRANCH_COST): Update.
2011         * config/iq2000/iq2000.h (BRANCH_COST): Update.
2012         * config/ia64/ia64.h (BRANCH_COST): Update.
2013         * config/rs6000/rs6000.h (BRANCH_COST): Update.
2014         * config/arc/arc.h (BRANCH_COST): Update.
2015         * config/score/score.h (BRANCH_COST): Update.
2016         * config/arm/arm.h (BRANCH_COST): Update.
2017         * config/pa/pa.h (BRANCH_COST): Update.
2018         * config/mips/mips.h (BRANCH_COST): Update.
2019         * config/vax/vax.h (BRANCH_COST): Update.
2020         * config/h8300/h8300.h (BRANCH_COST): Update.
2021         * params.def (PARAM_PREDICTABLE_BRANCH_OUTCOME): New.
2022         * doc/invoke.texi (predictable-branch-cost-outcome): Document.
2023         * doc/tm.texi (BRANCH_COST): Update.
2025 2008-08-30  Samuel Tardieu  <sam@rfc1149.net>
2027         PR target/37283
2028         * config/arm/arm.c (arm_optimization_options): Set
2029         flag_section_anchors to 2 instead of 1 to distinguish it from
2030         -fsection-anchors given explicitely on the command line.
2032 2008-08-30  Richard Sandiford  <rdsandiford@googlemail.com>
2034         * recog.c (split_insn): Consider attaching a REG_EQUAL note to the
2035         final insn of a split.
2037 2008-08-30  Jan Hubicka  <jh@suse.cz>
2039         * postreload-gcse.c (gate_handle_gcse2): Disable for functions
2040         optimized for speed.
2041         * final.c (compute_alignments): Use optimize_bb_for_size_p.
2042         * tree-call-cdce.c (gate_call_cdce): Use optimize_function_for_speed_p.
2043         * opts.c (flag_predictive_commoning_set, flag_unswitch_loops_set,
2044         flag_gcse_after_reload_set): New static vars.
2045         (common_handle_option): Enable those flags for profile-use.
2046         (decode_options): Remove optimize_size flags that are handled
2047         on higher granuality.
2048         * tree-vectorizer.c (vectorize_loops): Use
2049         optimize_loop_nest_for_speed_p.
2050         * tree-ssa-pre.c (do_pre): Use optimize_function_for_speed_p.
2051         * tree-predcom.c (tree_predictive_commoning): Use
2052         optimize_loop_for_speed_p.
2053         * varasm.c (assemble_start_function): Use optimize_function_for_speed_p.
2054         * bb-reorder.c (rest_of_handle_reorder_blocks): Likewise.
2055         * predict.c (optimize_loop_for_speed_p): Fix walk.
2057 2008-08-30  Jan Hubicka  <jh@suse.cz>
2059         * ipa-inline.c (cgraph_estimate_growth): Discover self recursive
2060         functions.
2061         (cgraph_decide_inlining_of_small_function): Use edge->count to detect
2062         profile presence locally.
2064 2008-08-29  Joseph Myers  <joseph@codesourcery.com>
2066         PR bootstrap/37086
2067         * tree-vrp.c (find_switch_asserts): Make idx volatile for GCC
2068         versions before 4.0.
2070 2008-08-29  Jan Hubicka  <jh@suse.cz>
2072         * tree-inline.c (insert_init_stmt): Insert sequence even when
2073         not in SSA form.
2075 2008-08-29  Jeff Law  <law@redhat.com>
2077         * mn10300.c (mn10300_secondary_reload_class): We need secondary
2078         reloads for AM33-2 if IN is a pseudo with an equivalent memory
2079         location and class is an FP register.
2081 2008-08-29  Jan Hubicka  <jh@suse.cz>
2083         * see.c (see_merge_one_def_extension): Silence used uninitialized
2084         warning.
2085         * matrix-reorg.c (check_allocation_function): Likewise.
2086         * config/i386/driver-i386.c (detect_caches_amd): Likewise.
2088 2008-08-29  Jakub Jelinek  <jakub@redhat.com>
2090         PR c/37261
2091         * fold-const.c (fold_binary): In (X | C1) & C2 canonicalization
2092         compute new & and | in type rather than TREE_TYPE (arg0).
2094         * dwarf2out.c (fortran_common): Update comment.
2095         (gen_variable_die): Swap com_die and var_die variables in Fortran
2096         COMMON block handling code.
2098         * dwarf2out.c (descr_info_loc): Handle VAR_DECL.
2100         * dwarf2out.c (gen_const_die): New function.
2101         (size_of_die, value_format, output_die): Output larger
2102         dw_val_class_vec using DW_FORM_block2 or DW_FORM_block4.
2103         (native_encode_initializer): New function.
2104         (tree_add_const_value_attribute): Call it.
2105         (gen_decl_die, dwarf2out_decl): Handle CONST_DECLs if is_fortran ().
2107         * dwarf2out.c (gen_formal_parameter_die, gen_variable_die): For
2108         DECL_BY_REFERENCE decls don't pass TREE_READONLY and
2109         TREE_THIS_VOLATILE to add_type_attribute.
2111         * dwarf2out.c (add_subscript_info): Stop on Fortran TYPE_STRING_FLAG
2112         types.
2113         (gen_array_type_die): Emit DW_TAG_string_type for Fortran character
2114         types.
2116         * dwarf2out.c (loc_by_reference): New function.
2117         (add_location_or_const_value_attribute): Use it.
2119         PR fortran/23057
2120         * dwarf2out.c (gen_variable_die): Represent Fortran COMMON vars
2121         as DW_TAG_variable children of DW_TAG_common_block rather than
2122         DW_TAG_member children.  Put DW_AT_external to individual
2123         DW_TAG_variable DIEs, not to DW_TAG_common_block.
2125         * dwarf2out.c (add_bound_info): If lookup_decl_die failed, try
2126         loc_descriptor_from_tree_1.
2128         PR fortran/29635
2129         PR fortran/23057
2130         * debug.h (struct gcc_debug_hooks): Add NAME and CHILD
2131         arguments to imported_module_or_decl.
2132         (debug_nothing_tree_tree): Removed.
2133         (debug_nothing_tree_tree_tree_bool): New prototype.
2134         * debug.c (do_nothing_debug_hooks): Adjust.
2135         (debug_nothing_tree_tree): Removed.
2136         (debug_nothing_tree_tree_tree_bool): New function.
2137         * dwarf2out.c (is_symbol_die): Handle DW_TAG_module.
2138         (gen_variable_die): Put all common vars for the
2139         same COMMON block under one DW_TAG_common_block.
2140         (declare_in_namespace): Return new context_die, for Fortran
2141         return the module DIE instead of adding extra declarations into
2142         the namespace.
2143         (gen_type_die_with_usage): Adjust declare_in_namespace caller.
2144         (gen_namespace_die): If is_fortran (), generate DW_TAG_module
2145         instead of DW_TAG_namespace.  If DECL_EXTERNAL is set, add
2146         DW_AT_declaration.
2147         (dwarf2out_global_decl): Don't skip Fortran global vars.
2148         (gen_decl_die): Likewise.  Adjust declare_in_namespace callers.
2149         (dwarf2out_imported_module_or_decl): Add NAME and CHILD arguments.
2150         If NAME is non-NULL, add DW_AT_name.  If CHILD is non-NULL, put
2151         DW_TAG_imported_declaration as child of previous
2152         DW_TAG_imported_module.
2153         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Adjust.
2154         * sdbout.c (sdb_debug_hooks): Likewise.
2155         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
2157 2008-08-29  Jan Hubicka  <jh@suse.cz>
2159         * cgraph.c (cgraph_remove_node): Do not remove nested nodes.
2161         * cgraph.h (cgraph_maybe_hot_edge_p): Declare.
2162         * ipa-cp.c (n_cloning_candidates): New static variable.
2163         (ipcp_print_profile_data, ipcp_function_scale_print): Forward declare.
2164         (ipcp_print_all_lattices): Improve debug output.
2165         (ipcp_cloning_candidate_p): New function.
2166         (ipcp_initialize_node_lattices): Use it.
2167         (ipcp_init_stage): Do only analyzis here; prettier debug output.
2168         (ipcp_propagate_stage): Prettier debug output.
2169         (ipcp_iterate_stage): Initialize latices here; prettier debug output.
2170         (ipcp_print_all_structures): Remove.
2171         (ipcp_need_redirect_p): Test !n_cloning_candidates.
2172         (ipcp_insert_stage): Prettier debug output; call
2173         cgraph_remove_unreachable_nodes before propagating.
2174         (pass_ipa_cp): Schedule function removal pass.
2175         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Better
2176         debug output.
2177         (cgraph_maybe_hot_edge_p): Move to ...
2178         * predict.c (cgraph_maybe_hot_edge_p) ... here.
2179         * opts.c (flag_ipa_cp_set, flag_ipa_cp_clone_set): New.
2180         (common_handle_option): Set them; enable ipa-cp when profiling.
2181         * ipa-prop.c (ipa_print_node_jump_functions): Prettier output.
2182         (ipa_print_all_jump_functions): Likewise.
2183         (ipa_print_all_tree_maps, ipa_print_node_param_flags): Remove.
2184         (ipa_print_node_params, ipa_print_all_params): New.
2185         * ipa-prop.h (ipa_print_all_tree_maps, ipa_print_node_param_flags,
2186         ipa_print_all_param_flags): Remove.
2187         (ipa_print_node_params, ipa_print_all_params): New.
2189 2008-08-29  Bob Wilson  <bob.wilson@acm.org>
2191         * config/xtensa/xtensa.c (xtensa_secondary_reload_class): Revert
2192         change from 2008-04-03.
2193         * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Define.
2195 2008-08-29  Vladimir Makarov  <vmakarov@redhat.com>
2197         PR rtl-opt/37251
2199         * ira-color.c (push_allocnos_to_stack): Truncate
2200         removed_splay_allocno_vec.
2202 2008-08-29  Vladimir Makarov  <vmakarov@redhat.com>
2204         PR rtl-opt/37243
2205         * ira-color (ira_fast_allocation): Don't assign hard registers to
2206         global allocnos.
2208 2008-08-29  Jan Hubicka  <jh@suse.cz>
2210         PR middle-end/37278
2211         * predict.c (optimize_loop_nest_for_speed_p): Do not ICE
2212         for cold internal loops.
2214 2008-08-29  Richard Guenther  <rguenther@suse.de>
2216         * tree-ssa-structalias.c (create_variable_info_for): Do not
2217         create fields for heap vars or vars with a noalias state.
2218         For NO_ALIAS_ANYTHING variables add a self-constraint, not one
2219         from ESCAPED.
2221 2008-08-29  Richard Guenther  <rguenther@suse.de>
2223         * common.opt (ftree-store-ccp): Mark as preserved for
2224         backward compatibility.
2225         * doc/invoke.texi (-ftree-store-ccp): Remove documentation.
2226         * tree-pass.h (pass_store_ccp): Remove.
2227         * tree-ssa-propagate.h (struct prop_value_d): Remove mem_ref field.
2228         (first_vdef): Remove declaration.
2229         (get_value_loaded_by): Likewise.
2230         * tree-ssa-ccp.c (do_store_ccp): Remove.
2231         (get_default_value): Simplify as do_store_ccp is always false
2232         now.  Do not initialize mem_ref.
2233         (set_value_varying): Likewise.
2234         (canonicalize_float_value): Likewise.
2235         (set_lattice_value): Likewise.
2236         (likely_value): Likewise.
2237         (surely_varying_stmt_p): Likewise.
2238         (ccp_initialize): Likewise.
2239         (ccp_lattice_meet): Likewise.
2240         (ccp_visit_phi_node): Likewise.
2241         (ccp_fold): Likewise.
2242         (evaluate_stmt): Likewise.
2243         (visit_assignment): Likewise.
2244         (ccp_visit_stmt): Likewise.
2245         (execute_ssa_ccp): Fold into ...
2246         (do_ssa_ccp): ... this.
2247         (do_ssa_store_ccp): Remove.
2248         (gate_store_ccp): Likewise.
2249         (pass_store_ccp): Likewise.
2250         * tree-ssa-copy.c (copy_prop_visit_phi_node): Do not
2251         initialize mem_ref.
2252         * tree-ssa-propagate.c (first_vdef): Remove.
2253         (get_value_loaded_by): Likewise.
2254         (replace_vuses_in): Likewise.
2255         (substitute_and_fold): Do not call replace_vuses_in.
2256         * opts.c (decode_options): Do not set flag_tree_store_ccp.
2258 2008-08-29  Richard Guenther  <rguenther@suse.de>
2260         PR middle-end/37236
2261         * tree-ssa-structalias.c (intra_create_variable_infos): Mark
2262         PARAM_NOALIAS tags with is_heapvar.
2263         * tree-ssa-operands.c (access_can_touch_variable): Offset
2264         based tests do not apply for heapvars.  Fix offset test.
2266 2008-08-29  Jan Hubicka  <jh@suse.cz>
2268         * doc/invoke.texi (-fipa-cp): Enabled by default at -O2/-Os/-O3
2269         (-fipa-cp-clone): Enabled by default at -O3.
2270         * opts.c (decode_options): Enable ipa-cp at -O2, ipa-cp-clone at -O3;
2271         make ipa-cp-clone to imply ipa-cp; disable cloning at -Os.
2273 2008-08-29  Jan Hubicka  <jh@suse.cz>
2275         * tree.c (build_function_type_skip_args, build_function_decl_skip_args):
2276         New functions.
2277         * tree.h (build_function_type_skip_args, build_function_decl_skip_args):
2278         Declare.
2279         * gimple.c (giple_copy_call_skip_args): New function.
2280         (giple_copy_call_skip_args): Declare.
2282         * cgraph.h (cgraph_function_versioning): Add skip_args arugmnet
2283         * ipa-cp.c (ipcp_node_not_modifiable_p): Rename to ...
2284         (ipcp_node_modifiable_p): ... this one; use tree_versionable_function_p.
2285         (ipcp_create_replace_map): Improve debug output.
2286         (ipcp_need_redirect_p): Return false when not clonning.
2287         (ipcp_update_callgraph): Skip args.
2288         (ipcp_insert_stage): UPdate call of !ipcp_node_modifiable_p;
2289         skip args.
2290         * cgraphunit.c (cgraph_function_versioning): Add skip_args argument.
2291         (save_inline_function_body): Update call of tree_function_versioning.
2292         * ipa-prop.c (ipa_edge_removal_hook): Do not ICE on unanalyzed nodes.
2293         * tree-inline.c (copy_arguments_for_versioning): Add skip_args argument.
2294         (tree_function_versioning): Likewise.
2295         * tree-inline.h (tree_function_versioning): Update prototype.
2297 2008-08-29  Jan Hubicka  <jh@suse.cz>
2299         * loop-unswitch.c (unswitch_single_loop): Use optimize_loop_for_speed_p.
2300         * tree-ssa-threadupdate.c (mark_threaded_blocks): Use optimize_function_for_size_p.
2301         * tracer.c (ignore_bb_p): Use optimize_bb_for_size_p.
2302         * postreload-gcse.c (eliminate_partially_redundant_load): Use optimize_bb_for_size_p.
2303         * value-prof.c (gimple_divmod_fixed_value_transform,
2304         gimple_mod_pow2_value_transform, gimple_mod_subtract_transform,
2305         gimple_stringops_transform): Use optimize_bb_for_size_p.
2306         * ipa-cp.c (ipcp_insert_stage): Use optimize_function_for_size_p.
2307         * final.c (compute_alignments): Use optimize_function_for_size_p.
2308         * builtins.c (fold_builtin_cabs): Use optimize_function_for_speed_p.
2309         (fold_builtin_strcpy, fold_builtin_fputs): Use
2310         optimize_function_for_size_p.
2311         * fold-const.c (tree_swap_operands_p): Use optimize_function_for_size_p.
2312         * recog.c (relax_delay_slots): Likewise.
2313         * tree-ssa-math-opts.c (replace_reciprocal): Use optimize_bb_for_speed_p.
2314         (execute_cse_reciprocals): Use optimize_bb_for_size_p.
2315         * ipa-inline.c (cgraph_decide_recursive_inlining): Use
2316         optimize_function_for_size_p.
2317         (cgraph_decide_inlining_of_small_function): Use
2318         optimize_function_for_size_p.
2319         * global.c (find_reg): Use optimize_function_for_size_p.
2320         * opts.c (decode_options): Do not clear flag_tree_ch, flag_inline_functions,
2321         flag_unswitch_loops, flag_unroll_loops, flag_unroll_all_loops and
2322         flag_prefetch_loop_arrays. Those can work it out from profile.
2323         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Use
2324         optimize_loop_for_speed_p.
2325         * predict.c (optimize_bb_for_size_p, optimize_bb_for_speed_p): Constify
2326         argument.
2327         (optimize_loop_nest_for_size_p, optimize_loop_nest_for_speed_p): New.
2328         * tree-parloops.c (parallelize_loops): Use optimize_loop_for_size_p.
2329         * tree-eh.c (decide_copy_try_finally): Use optimize_function_for_size_p.
2330         * local-alloc.c (block_alloc): Pass BB pointer.
2331         (find_free_reg): Add BB pointer, use optimize_bb_for_size_p.
2332         * gcse.c (gcse_main): Use optimize_function_for_size_p.
2333         * loop-unroll.c (decide_unrolling_and_peeling): Use optimize_loop_for_size_p.
2334         (decide_peel_completely): Likewise.
2335         * tree-vect-analyze.c (vect_mark_for_runtime_alias_test): Use
2336         optimize_loop_for_size_p.
2337         (vect_enhance_data_refs_alignment): Likewise.
2338         * tree-ssa-coalesce.c (coalesce_cost): Add optimize_for_size argument.
2339         (coalesce_cost_bb, coalesce_cost_edge, create_outofssa_var_map): Update call.
2340         * cfgcleanup.c (outgoing_edges_match): Use optimize_bb_for_speed_p.
2341         (try_crossjump_bb): Use optimize_bb_for_size_p.
2342         * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Use
2343         optimize_loop_for_speed_p.
2344         * bb-reorder.c (find_traces_1_round): Likewise.
2345         (copy_bb): Use optimize_bb_for_speed_p.
2346         (duplicate_computed_gotos): Likewise.
2347         * basic-block.h (optimize_loop_nest_for_size_p,
2348         optimize_loop_nest_for_speed_p): New.
2349         * stmt.c (expand_case): Use optimize_insn_for_size_p.
2351 2008-08-29  Tristan Gingold  <gingold@adacore.com>
2353         * gcov.c (main): Call expandargv.
2355 2008-08-29  Jan Hubicka  <jh@suse.cz>
2357         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Check that loop
2358         is not cold.
2359         * predict.c (optimize_bb_for_size_p, optimize_bb_for_speed_p):
2360         Constify arguments.
2361         (optimize_loop_for_size_p, optimize_loop_for_speed_p): New functions.
2362         * basic-block.h (optimize_bb_for_size_p, optimize_bb_for_speed_p):
2363         Constify.
2364         (optimize_loop_for_size_p, optimize_loop_for_speed_p): Declare.
2366 2008-08-29  Jan Hubicka  <jh@suse.cz>
2368         * tree-pass.h (pass_strip_predict_hints): Declare.
2369         * predict.c (strip_builtin_expect): Rename to ...
2370         (strip_predict_hints): ... this one; strip also GIMPLE_PREDICT.
2371         (tree_bb_level_predictions): Do not remove GIMPLE_PREDICT.
2372         (tree_estimate_probability): Do not strip builtin_expect.
2373         (pass_strip_predict_hints): New pass.
2374         * tree-inline.c (expand_call_inline): When inlining cold function, predict
2375         it as unlikely.
2376         * passes.c (init_optimization_passes): Add pass_strip_predict_hints.
2378 2008-08-29  Richard Guenther  <rguenther@suse.de>
2380         PR tree-optimization/37207
2381         * tree-vrp.c (extract_range_from_binary_expr): Also try
2382         to constant fold if only one of the operands is a constant.
2384 2008-08-29  Nick Clifton  <nickc@redhat.com>
2386         * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Treat LABEL_REFs in
2387         the same way as SYMBOL_REFs.
2389 2008-08-28  Bob Wilson  <bob.wilson@acm.org>
2391         * config/xtensa/xtensa.md (<u>mulsidi3): Use a temporary register.
2393 2008-08-28  Adam Nemet  <anemet@caviumnetworks.com>
2395         * config/mips/mips.h (ISA_HAS_BBIT): New macro.
2396         * config/mips/mips.md (branch_likely): Remove const.  Fix
2397         comment formatting.
2398         (define_delay for type "branch"): Change to only apply for branch
2399         with likely variant.
2400         (define_delay for type "branch" and "branch_likely" no).  New delay
2401         definition.
2402         (equality_op): New code iterator.
2403         (bbv, bbinv): New code attributes.
2404         (*branch_bit<bbv><mode>, *branch_bit<bbv><mode>_inverted): New
2405         patterns.
2407 2008-08-28  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
2408             Andrew Pinski  <pinskia@gcc.gnu.org>
2410         PR 18050
2411         * c-common.c (verify_tree): Fix handling of ADDR_EXPR.
2413 2008-08-28  Paolo Carlini  <paolo.carlini@oracle.com>
2415         * gtrh-posix.h: Fix uses of _POSIX_TIMEOUTS per the normal Posix
2416         rule that a symbolic constant must be defined and >= 0 for the
2417         corresponding facility to be present at compile-time.
2418         * gthr-posix.c: Likewise.
2420 2008-08-28  Adam Nemet  <anemet@caviumnetworks.com>
2422         * config/mips/mips.h (ISA_HAS_DMUL3): New macro.
2423         * config/mips/mips.md (D): New mode attribute.
2424         (mulsi3, muldi3): Merge it into ...
2425         (mul<mode>3): ... new template.  Use _mul3 ending for 3-op
2426         patterns.
2427         (muldi3_mul3): New pattern.
2428         (mulsi3_mult3): Rename to mulsi3_mul3.
2430 2008-08-28  Jan Hubicka  <jh@suse.cz>
2432         * expmed.c (store_bit_field_1): Be prepared for movstrict expander
2433         to fail.
2434         * predict.c (always_optimize_for_size_p): Rename to ...
2435         (optimize_function_for_size): ... this one; make extern.
2436         (optimize_function_for_speed_p): New.
2437         (optimize_bb_for_size_p, optimize_bb_for_size_p,
2438         optimize_edge_for_size_p,optimize_edge_for_size_p,
2439         optimize_insn_for_size_p, optimize_insn_for_size_p): Update.
2440         * basic-block.h (optimize_function_for_size_p,
2441         optimize_function_for_speed_p): Declare.
2442         * i386.md (optimize_size checks): Replace them by appropriate
2443         predicate.
2444         (standard_80387_constant_p, ix86_compute_frame_layout,
2445         ix86_expand_epilogue, ix86_decompose_address,
2446         print_operand, emit_i387_cw_initialization,
2447         inline_memory_move_cost, ix86_pad_returns,
2448         ix86_reorg): Replace optimize_size checks.
2450 2008-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
2452         * rtl.h (simplify_subreg_regno): Declare.
2453         * rtlanal.c (simplify_subreg_regno): New function, split out from...
2454         * simplify-rtx.c (simplify_subreg): ...here.
2455         * reload.c (find_reloads): Use simplify_subreg_regno instead of
2456         subreg_offset_representable_p.
2458 2008-08-28  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
2460         PR c/30949
2461         * c-typeck.c (convert_for_assignment): Give a note describing what
2462         was passed and what was expected.
2464 2008-08-28  Joey Ye  <joey.ye@intel.com>
2466         * doc/extend.texi: Document AVX built-in functions.
2467         * doc/invoke.texi: Document -mavx.
2469 2008-08-28  H.J. Lu  <hongjiu.lu@intel.com>
2470             Joey Ye  <joey.ye@intel.com>
2471             Xuepeng Guo  <xuepeng.guo@intel.com>
2473         * config.gcc (extra_headers): Add gmmintrin.h for x86 and x86-64.
2475         * config/i386/cpuid.h (bit_FMA): New.
2476         (bit_XSAVE): Likewise.
2477         (bit_OSXSAVE): Likewise.
2478         (bit_AVX): Likewise.
2480         * config/i386/gas.h (ASM_OUTPUT_OPCODE): Undefine before
2481         define.  Use ASM_OUTPUT_AVX_PREFIX.
2483         * config/i386/gmmintrin.h: New.
2485         * config/i386/i386.c (x86_64_reg_class): Add X86_64_AVX_CLASS.
2486         (OPTION_MASK_ISA_AVX_SET): New.
2487         (OPTION_MASK_ISA_FMA_SET): Likewise.
2488         (OPTION_MASK_ISA_AVX_UNSET): Likewise.
2489         (OPTION_MASK_ISA_FMA_SET): Likewise.
2490         (OPTION_MASK_ISA_SSE4_2_UNSET): Updated.
2491         (ix86_handle_option): Handle OPT_mavx and OPT_mfma.
2492         (pta_flags): Add PTA_AVX and PTA_FMA.
2493         (override_options): Handle PTA_AVX and PTA_FMA.
2494         (init_cumulative_args): Handle warn_avx.
2495         (classify_argument): Return 0 for COImode and OImode.  Return
2496         1 and X86_64_AVX_CLASS for 256bit vector types.
2497         (examine_argument): Handle X86_64_AVX_CLASS.
2498         (construct_container): Likewise.
2499         (function_arg_advance_32): Pass OImode and 256bit vector types
2500         in AVX register.
2501         (function_arg_advance_64): Take a new argument to indicate if a
2502         parameter is named.  Handle 256bit vector types.  Return
2503         immediately for unnamed 256bit vector mode parameters.
2504         (function_arg_advance): Updated.
2505         (function_arg_32): Add comments for TImode.  Handle OImode
2506         and 256bit vector types.
2507         (function_arg_64): Take a new argument to indicate if a
2508         parameter is named.  Handle 256bit vector types.  Return NULL
2509         for unnamed 256bit vector mode parameters.
2510         (function_arg): Updated.
2511         (setup_incoming_varargs_64): Support
2512         AVX encoding for *sse_prologue_save_insn.
2513         (ix86_gimplify_va_arg): Handle 256bit vector mode parameters.
2514         (standard_sse_constant_p): Return -2 for all 1s if SSE2 isn't
2515         enabled.  For all 1s in 256bit vector modes, return 3 if AVX is
2516         enabled, otherwise return -3.
2517         (standard_sse_constant_opcode): Handle AVX and 256bit vector
2518         modes.
2519         (print_reg): Support AVX registers.  Handle 'x' and 't'.
2520         Handle 'd' to duplicate the operand.
2521         (print_operand): Likewise.  Also support AVX vector compare
2522         instructions.
2523         (output_387_binary_op): Support AVX.
2524         (output_fp_compare): Likewise.
2525         (ix86_expand_vector_move_misalign): Likewise.
2526         (ix86_attr_length_vex_default): New.
2527         (ix86_builtins): Add IX86_BUILTIN_ADDPD256,
2528         IX86_BUILTIN_ADDPS256, IX86_BUILTIN_ADDSUBPD256,
2529         IX86_BUILTIN_ADDSUBPS256, IX86_BUILTIN_ANDPD256,
2530         IX86_BUILTIN_ANDPS256, IX86_BUILTIN_ANDNPD256,
2531         IX86_BUILTIN_ANDNPS256, IX86_BUILTIN_BLENDPD256,
2532         IX86_BUILTIN_BLENDPS256, IX86_BUILTIN_BLENDVPD256,
2533         IX86_BUILTIN_BLENDVPS256, IX86_BUILTIN_DIVPD256,
2534         IX86_BUILTIN_DIVPS256, IX86_BUILTIN_DPPS256,
2535         IX86_BUILTIN_HADDPD256, IX86_BUILTIN_HADDPS256,
2536         IX86_BUILTIN_HSUBPD256, IX86_BUILTIN_HSUBPS256,
2537         IX86_BUILTIN_MAXPD256, IX86_BUILTIN_MAXPS256,
2538         IX86_BUILTIN_MINPD256, IX86_BUILTIN_MINPS256,
2539         IX86_BUILTIN_MULPD256, IX86_BUILTIN_MULPS256,
2540         IX86_BUILTIN_ORPD256, IX86_BUILTIN_ORPS256,
2541         IX86_BUILTIN_SHUFPD256, IX86_BUILTIN_SHUFPS256,
2542         IX86_BUILTIN_SUBPD256, IX86_BUILTIN_SUBPS256,
2543         IX86_BUILTIN_XORPD256, IX86_BUILTIN_XORPS256,
2544         IX86_BUILTIN_CMPSD, IX86_BUILTIN_CMPSS, IX86_BUILTIN_CMPPD,
2545         IX86_BUILTIN_CMPPS, IX86_BUILTIN_CMPPD256,
2546         IX86_BUILTIN_CMPPS256, IX86_BUILTIN_CVTDQ2PD256,
2547         IX86_BUILTIN_CVTDQ2PS256, IX86_BUILTIN_CVTPD2PS256,
2548         IX86_BUILTIN_CVTPS2DQ256, IX86_BUILTIN_CVTPS2PD256,
2549         IX86_BUILTIN_CVTTPD2DQ256, IX86_BUILTIN_CVTPD2DQ256,
2550         IX86_BUILTIN_CVTTPS2DQ256, IX86_BUILTIN_EXTRACTF128PD256,
2551         IX86_BUILTIN_EXTRACTF128PS256, IX86_BUILTIN_EXTRACTF128SI256,
2552         IX86_BUILTIN_VZEROALL, IX86_BUILTIN_VZEROUPPER,
2553         IX86_BUILTIN_VZEROUPPER_REX64, IX86_BUILTIN_VPERMILVARPD,
2554         IX86_BUILTIN_VPERMILVARPS, IX86_BUILTIN_VPERMILVARPD256,
2555         IX86_BUILTIN_VPERMILVARPS256, IX86_BUILTIN_VPERMILPD,
2556         IX86_BUILTIN_VPERMILPS, IX86_BUILTIN_VPERMILPD256,
2557         IX86_BUILTIN_VPERMILPS256, IX86_BUILTIN_VPERMIL2PD,
2558         IX86_BUILTIN_VPERMIL2PS, IX86_BUILTIN_VPERMIL2PD256,
2559         IX86_BUILTIN_VPERMIL2PS256, IX86_BUILTIN_VPERM2F128PD256,
2560         IX86_BUILTIN_VPERM2F128PS256, IX86_BUILTIN_VPERM2F128SI256,
2561         IX86_BUILTIN_VBROADCASTSS, IX86_BUILTIN_VBROADCASTSD256,
2562         IX86_BUILTIN_VBROADCASTSS256, IX86_BUILTIN_VBROADCASTPD256,
2563         IX86_BUILTIN_VBROADCASTPS256, IX86_BUILTIN_VINSERTF128PD256,
2564         IX86_BUILTIN_VINSERTF128PS256, IX86_BUILTIN_VINSERTF128SI256,
2565         IX86_BUILTIN_LOADUPD256, IX86_BUILTIN_LOADUPS256,
2566         IX86_BUILTIN_STOREUPD256, IX86_BUILTIN_STOREUPS256,
2567         IX86_BUILTIN_LDDQU256, IX86_BUILTIN_LOADDQU256,
2568         IX86_BUILTIN_STOREDQU256, IX86_BUILTIN_MASKLOADPD,
2569         IX86_BUILTIN_MASKLOADPS, IX86_BUILTIN_MASKSTOREPD,
2570         IX86_BUILTIN_MASKSTOREPS, IX86_BUILTIN_MASKLOADPD256,
2571         IX86_BUILTIN_MASKLOADPS256, IX86_BUILTIN_MASKSTOREPD256,
2572         IX86_BUILTIN_MASKSTOREPS256, IX86_BUILTIN_MOVSHDUP256,
2573         IX86_BUILTIN_MOVSLDUP256, IX86_BUILTIN_MOVDDUP256,
2574         IX86_BUILTIN_SQRTPD256, IX86_BUILTIN_SQRTPS256,
2575         IX86_BUILTIN_SQRTPS_NR256, IX86_BUILTIN_RSQRTPS256,
2576         IX86_BUILTIN_RSQRTPS_NR256, IX86_BUILTIN_RCPPS256,
2577         IX86_BUILTIN_ROUNDPD256, IX86_BUILTIN_ROUNDPS256,
2578         IX86_BUILTIN_UNPCKHPD256, IX86_BUILTIN_UNPCKLPD256,
2579         IX86_BUILTIN_UNPCKHPS256, IX86_BUILTIN_UNPCKLPS256,
2580         IX86_BUILTIN_SI256_SI, IX86_BUILTIN_PS256_PS,
2581         IX86_BUILTIN_PD256_PD, IX86_BUILTIN_SI_SI256,
2582         IX86_BUILTIN_PS_PS256, IX86_BUILTIN_PD_PD256,
2583         IX86_BUILTIN_VTESTZPD, IX86_BUILTIN_VTESTCPD,
2584         IX86_BUILTIN_VTESTNZCPD, IX86_BUILTIN_VTESTZPS,
2585         IX86_BUILTIN_VTESTCPS, IX86_BUILTIN_VTESTNZCPS,
2586         IX86_BUILTIN_VTESTZPD256, IX86_BUILTIN_VTESTCPD256,
2587         IX86_BUILTIN_VTESTNZCPD256, IX86_BUILTIN_VTESTZPS256,
2588         IX86_BUILTIN_VTESTCPS256, IX86_BUILTIN_VTESTNZCPS256,
2589         IX86_BUILTIN_PTESTZ256, IX86_BUILTIN_PTESTC256,
2590         IX86_BUILTIN_PTESTNZC256, IX86_BUILTIN_MOVMSKPD256
2591         and IX86_BUILTIN_MOVMSKPS256,
2592         (ix86_special_builtin_type): Add V32QI_FTYPE_PCCHAR,
2593         V8SF_FTYPE_PCV4SF, V8SF_FTYPE_PCFLOAT, V4DF_FTYPE_PCV2DF,
2594         V4DF_FTYPE_PCDOUBLE, V8SF_FTYPE_PCV8SF_V8SF,
2595         V4DF_FTYPE_PCV4DF_V4DF, V4SF_FTYPE_PCV4SF_V4SF,
2596         V2DF_FTYPE_PCV2DF_V2DF, VOID_FTYPE_PCHAR_V32QI,
2597         VOID_FTYPE_PFLOAT_V8SF, VOID_FTYPE_PDOUBLE_V4DF,
2598         VOID_FTYPE_PV8SF_V8SF_V8SF, VOID_FTYPE_PV4DF_V4DF_V4DF,
2599         VOID_FTYPE_PV4SF_V4SF_V4SF and VOID_FTYPE_PV2DF_V2DF_V2DF,
2600         (ix86_builtin_type): Add INT_FTYPE_V8SF_V8SF_PTEST,
2601         INT_FTYPE_V4DI_V4DI_PTEST, INT_FTYPE_V4DF_V4DF_PTEST,
2602         INT_FTYPE_V4SF_V4SF_PTEST, INT_FTYPE_V2DF_V2DF_PTEST,
2603         INT_FTYPE_V8SF, INT_FTYPE_V4DF, V8SI_FTYPE_V8SF, V8SI_FTYPE_V4SI,
2604         V8SF_FTYPE_V8SF, V8SF_FTYPE_V8SI, V8SF_FTYPE_V4SF,
2605         V4SI_FTYPE_V8SI, V4SI_FTYPE_V4DF, V4DF_FTYPE_V4DF,
2606         V4DF_FTYPE_V4SI, V4DF_FTYPE_V4SF, V4DF_FTYPE_V2DF,
2607         V4SF_FTYPE_V4DF, V4SF_FTYPE_V8SF, V2DF_FTYPE_V4DF,
2608         V8SF_FTYPE_V8SF_V8SF, V8SF_FTYPE_V8SF_V8SI,
2609         V4DF_FTYPE_V4DF_V4DF, V4DF_FTYPE_V4DF_V4DI,
2610         V4SF_FTYPE_V4SF_V4SI, V2DF_FTYPE_V2DF_V2DI,
2611         V8SF_FTYPE_V8SF_INT, V4SI_FTYPE_V8SI_INT, V4SF_FTYPE_V8SF_INT,
2612         V2DF_FTYPE_V4DF_INT, V4DF_FTYPE_V4DF_INT,
2613         V8SF_FTYPE_V8SF_V8SF_V8SF, V4DF_FTYPE_V4DF_V4DF_V4DF,
2614         V8SI_FTYPE_V8SI_V8SI_INT, V8SF_FTYPE_V8SF_V8SF_INT,
2615         V4DF_FTYPE_V4DF_V4DF_INT, V4DF_FTYPE_V4DF_V2DF_INT,
2616         V8SF_FTYPE_V8SF_V8SF_V8SI_INT, V4DF_FTYPE_V4DF_V4DF_V4DI_INT,
2617         V4SF_FTYPE_V4SF_V4SF_V4SI_INT and V2DF_FTYPE_V2DF_V2DF_V2DI_INT.
2618         (bdesc_special_args): Add IX86_BUILTIN_VZEROALL,
2619         IX86_BUILTIN_VZEROUPPER. IX86_BUILTIN_VZEROUPPER_REX64,
2620         IX86_BUILTIN_VBROADCASTSS, IX86_BUILTIN_VBROADCASTSD256,
2621         IX86_BUILTIN_VBROADCASTSS256, IX86_BUILTIN_VBROADCASTPD256,
2622         IX86_BUILTIN_VBROADCASTPS256, IX86_BUILTIN_LOADUPD256,
2623         IX86_BUILTIN_LOADUPS256, IX86_BUILTIN_STOREUPD256,
2624         IX86_BUILTIN_STOREUPS256, IX86_BUILTIN_LOADDQU256,
2625         IX86_BUILTIN_STOREDQU256, IX86_BUILTIN_LDDQU256,
2626         IX86_BUILTIN_MASKLOADPD, IX86_BUILTIN_MASKLOADPS,
2627         IX86_BUILTIN_MASKLOADPD256, IX86_BUILTIN_MASKLOADPS256,
2628         IX86_BUILTIN_MASKSTOREPD, IX86_BUILTIN_MASKSTOREPS,
2629         IX86_BUILTIN_MASKSTOREPD256 and IX86_BUILTIN_MASKSTOREPS256.
2630         (ix86_builtins): Add IX86_BUILTIN_ADDPD256,
2631         IX86_BUILTIN_ADDPS256, IX86_BUILTIN_ADDSUBPD256,
2632         IX86_BUILTIN_ADDSUBPS256, IX86_BUILTIN_ANDPD256,
2633         IX86_BUILTIN_ANDPS256, IX86_BUILTIN_ANDNPD256,
2634         IX86_BUILTIN_ANDNPS256, IX86_BUILTIN_DIVPD256,
2635         IX86_BUILTIN_DIVPS256, IX86_BUILTIN_HADDPD256,
2636         IX86_BUILTIN_HSUBPS256, IX86_BUILTIN_HSUBPD256,
2637         IX86_BUILTIN_HADDPS256, IX86_BUILTIN_MAXPD256,
2638         IX86_BUILTIN_MAXPS256, IX86_BUILTIN_MINPD256,
2639         IX86_BUILTIN_MINPS256, IX86_BUILTIN_MULPD256,
2640         IX86_BUILTIN_MULPS256, IX86_BUILTIN_ORPD256,
2641         IX86_BUILTIN_ORPS256, IX86_BUILTIN_SUBPD256,
2642         IX86_BUILTIN_SUBPS256, IX86_BUILTIN_XORPD256,
2643         IX86_BUILTIN_XORPS256, IX86_BUILTIN_VPERMILVARPD,
2644         IX86_BUILTIN_VPERMILVARPS, IX86_BUILTIN_VPERMILVARPD256,
2645         IX86_BUILTIN_VPERMILVARPS256, IX86_BUILTIN_BLENDPD256,
2646         IX86_BUILTIN_BLENDPS256, IX86_BUILTIN_BLENDVPD256,
2647         IX86_BUILTIN_BLENDVPS256, IX86_BUILTIN_DPPS256,
2648         IX86_BUILTIN_SHUFPD256, IX86_BUILTIN_SHUFPS256,
2649         IX86_BUILTIN_CMPSD, IX86_BUILTIN_CMPSS, IX86_BUILTIN_CMPPD,
2650         IX86_BUILTIN_CMPPS,
2651         IX86_BUILTIN_CMPPD256,IX86_BUILTIN_CMPPS256,
2652         IX86_BUILTIN_EXTRACTF128PD256, IX86_BUILTIN_EXTRACTF128PS256,
2653         IX86_BUILTIN_EXTRACTF128SI256, IX86_BUILTIN_CVTDQ2PD256,
2654         IX86_BUILTIN_CVTDQ2PS256, IX86_BUILTIN_CVTPD2PS256,
2655         IX86_BUILTIN_CVTPS2DQ256, IX86_BUILTIN_CVTPS2PD256,
2656         IX86_BUILTIN_CVTTPD2DQ256, IX86_BUILTIN_CVTPD2DQ256,
2657         IX86_BUILTIN_CVTTPS2DQ256, IX86_BUILTIN_VPERM2F128PD256,
2658         IX86_BUILTIN_VPERM2F128PS256, IX86_BUILTIN_VPERM2F128SI256,
2659         IX86_BUILTIN_VPERMILPD, IX86_BUILTIN_VPERMILPS,
2660         IX86_BUILTIN_VPERMILPD256, IX86_BUILTIN_VPERMILPS256,
2661         IX86_BUILTIN_VPERMIL2PD, IX86_BUILTIN_VPERMILPS,
2662         IX86_BUILTIN_VPERMILPD256, IX86_BUILTIN_VPERMILPS256,
2663         IX86_BUILTIN_VPERMIL2PD, IX86_BUILTIN_VPERMIL2PS,
2664         IX86_BUILTIN_VPERMIL2PD256, IX86_BUILTIN_VPERMIL2PS256,
2665         IX86_BUILTIN_VINSERTF128PD256, IX86_BUILTIN_VINSERTF128PS256,
2666         IX86_BUILTIN_VINSERTF128SI256, IX86_BUILTIN_MOVSHDUP256,
2667         IX86_BUILTIN_MOVSLDUP256, IX86_BUILTIN_MOVDDUP256,
2668         IX86_BUILTIN_SQRTPD256, IX86_BUILTIN_SQRTPS256,
2669         IX86_BUILTIN_SQRTPS_NR256, IX86_BUILTIN_RSQRTPS256,
2670         IX86_BUILTIN_RSQRTPS_NR256, IX86_BUILTIN_RCPPS256,
2671         IX86_BUILTIN_ROUNDPD256, IX86_BUILTIN_ROUNDPS256,
2672         IX86_BUILTIN_UNPCKHPD256, IX86_BUILTIN_UNPCKLPD256,
2673         IX86_BUILTIN_UNPCKHPS256, IX86_BUILTIN_UNPCKLPS256,
2674         IX86_BUILTIN_SI256_SI, IX86_BUILTIN_PS256_PS,
2675         IX86_BUILTIN_PD256_PD, IX86_BUILTIN_SI_SI256,
2676         IX86_BUILTIN_PS_PS256, IX86_BUILTIN_PD_PD256,
2677         IX86_BUILTIN_VTESTZPD, IX86_BUILTIN_VTESTCPD,
2678         IX86_BUILTIN_VTESTNZCPD, IX86_BUILTIN_VTESTZPS,
2679         IX86_BUILTIN_VTESTCPS, IX86_BUILTIN_VTESTNZCPS,
2680         IX86_BUILTIN_VTESTZPD256, IX86_BUILTIN_VTESTCPD256,
2681         IX86_BUILTIN_VTESTNZCPD256, IX86_BUILTIN_VTESTZPS256,
2682         IX86_BUILTIN_VTESTCPS256, IX86_BUILTIN_VTESTNZCPS256,
2683         IX86_BUILTIN_PTESTZ256, IX86_BUILTIN_PTESTC256,
2684         IX86_BUILTIN_PTESTNZC256, IX86_BUILTIN_MOVMSKPD256 and
2685         IX86_BUILTIN_MOVMSKPS256.
2686         (ix86_init_mmx_sse_builtins): Support AVX builtins.
2687         (ix86_expand_args_builtin): Likewise.
2688         (ix86_expand_special_args_builtin): Likewise.
2689         (ix86_hard_regno_mode_ok): Handle AVX modes.
2690         (ix86_expand_vector_init_duplicate): Likewise.
2691         (ix86_expand_vector_init_one_nonzero): Likewise.
2692         (ix86_expand_vector_init_one_var): Likewise.
2693         (ix86_expand_vector_init_concat): Likewise.
2694         (ix86_expand_vector_init_general): Likewise.
2695         (ix86_expand_vector_set): Likewise.
2696         (ix86_vector_mode_supported_p): Likewise.
2697         (x86_extended_reg_mentioned_p): Check INSN_P before using
2698         PATTERN.
2700         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
2701         OPTION_MASK_ISA_AVX and OPTION_MASK_ISA_FMA.
2703         * config/i386/i386.h (TARGET_AVX): New.
2704         (TARGET_FMA): Likewise.
2705         (TARGET_CPU_CPP_BUILTINS): Handle TARGET_AVX and TARGET_FMA.
2706         (BIGGEST_ALIGNMENT): Set to 256 for TARGET_AVX.
2707         (VALID_AVX256_REG_MODE): New.
2708         (AVX256_VEC_FLOAT_MODE_P): Likewise.
2709         (AVX_FLOAT_MODE_P): Likewise.
2710         (AVX128_VEC_FLOAT_MODE_P): Likewise.
2711         (AVX256_VEC_FLOAT_MODE_P): Likewise.
2712         (AVX_VEC_FLOAT_MODE_P): Likewise.
2713         (ASM_OUTPUT_AVX_PREFIX): Likewise.
2714         (ASM_OUTPUT_OPCODE): Likewise.
2715         (UNITS_PER_SIMD_WORD): Add a FIXME for 32byte vectorizer
2716         support.
2717         (SSE_REG_MODE_P): Allow 256bit vector modes.
2718         (ix86_args): Add a warn_avx field.
2720         * config/i386/i386.md (UNSPEC_PCMP): New.
2721         (UNSPEC_VPERMIL): Likewise.
2722         (UNSPEC_VPERMIL2): Likewise.
2723         (UNSPEC_VPERMIL2F128): Likewise.
2724         (UNSPEC_MASKLOAD): Likewise.
2725         (UNSPEC_MASKSTORE): Likewise.
2726         (UNSPEC_CAST): Likewise.
2727         (UNSPEC_VTESTP): Likewise.
2728         (UNSPECV_VZEROALL): Likewise.
2729         (UNSPECV_VZEROUPPER): Likewise.
2730         (XMM0_REG): Likewise.
2731         (XMM1_REG): Likewise.
2732         (XMM2_REG): Likewise.
2733         (XMM3_REG): Likewise.
2734         (XMM4_REG): Likewise.
2735         (XMM5_REG): Likewise.
2736         (XMM6_REG): Likewise.
2737         (XMM8_REG): Likewise.
2738         (XMM9_REG): Likewise.
2739         (XMM10_REG): Likewise.
2740         (XMM11_REG): Likewise.
2741         (XMM12_REG): Likewise.
2742         (XMM13_REG): Likewise.
2743         (XMM14_REG): Likewise.
2744         (XMM15_REG): Likewise.
2745         (prefix): Likewise.
2746         (prefix_vex_imm8): Likewise.
2747         (prefix_vex_w): Likewise.
2748         (length_vex): Likewise.
2749         (maxmin): Likewise.
2750         (movoi): Likewise.
2751         (*avx_ashlti3): Likewise.
2752         (*avx_lshrti3): Likewise.
2753         (*avx_setcc<mode>): Likewise.
2754         (*fop_<mode>_comm_mixed_avx): Likewise.
2755         (*fop_<mode>_comm_avx): Likewise.
2756         (*fop_<mode>_1_mixed_avx): Likewise.
2757         (*fop_<mode>_1_avx): Likewise.
2758         (*avx_<code><mode>3): Likewise.
2759         (*avx_ieee_smin<mode>3): Likewise.
2760         (*avx_ieee_smax<mode>3): Likewise.
2761         (mode): Add OI, V8SF and V4DF.
2762         (length): Support VEX prefix.
2763         (*cmpfp_i_mixed): Set prefix attribute.
2764         (*cmpfp_i_sse): Likewise.
2765         (*cmpfp_iu_mixed): Likewise.
2766         (*cmpfp_iu_sse): Likewise.
2767         (*movsi_1): Support AVX.
2768         (*movdi_2): Likewise.
2769         (*movdi_1_rex64): Likewise.
2770         (*movti_internal): Likewise.
2771         (*movti_rex64): Likewise.
2772         (*movsf_1): Likewise.
2773         (*movdf_nointeger): Likewise.
2774         (*movdf_integer_rex64): Likewise.
2775         (*movtf_internal): Likewise.
2776         (zero_extendsidi2_32): Likewise.
2777         (zero_extendsidi2_rex64): Likewise.
2778         (*extendsfdf2_mixed): Likewise.
2779         (*extendsfdf2_sse): Likewise.
2780         (*truncdfsf_fast_mixed): Likewise.
2781         (*truncdfsf_fast_sse): Likewise.
2782         (*truncdfsf_mixed): Likewise.
2783         (fix_trunc<mode>di_sse): Likewise.
2784         (fix_trunc<mode>si_sse): Likewise.
2785         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit): Likewise.
2786         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit): Likewise.
2787         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit): Likewise.
2788         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit): Likewise.
2789         (*rcpsf2_sse): Likewise.
2790         (*rsqrtsf2_sse): Likewise.
2791         (*sqrt<mode>2_sse): Likewise.
2792         (sse4_1_round<mode>2): Likewise.
2793         (*sse_prologue_save_insn): Disallow REX prefix for AVX.
2794         Support AVX.  Set length attribute properly for AVX.
2796         * config/i386/i386-modes.def (VECTOR_MODES (INT, 32)): New.
2797         (VECTOR_MODES (FLOAT, 32)): Likewise.
2798         (VECTOR_MODE (INT, DI, 8)): Likewise.
2799         (VECTOR_MODE (INT, HI, 32)): Likewise.
2800         (VECTOR_MODE (INT, QI, 64)): Likewise.
2801         (VECTOR_MODE (FLOAT, DF, 8)): Likewise.
2802         (VECTOR_MODE (FLOAT, SF, 16)): Likewise.
2803         (VECTOR_MODE (INT, DI, 4)): Removed.
2804         (VECTOR_MODE (INT, SI, 8)): Likewise.
2805         (VECTOR_MODE (INT, HI, 16)): Likewise.
2806         (VECTOR_MODE (INT, QI, 32)): Likewise.
2807         (VECTOR_MODE (FLOAT, SF, 8)): Likewise.
2808         (INT_MODE (OI, 32)): Likewise.
2810         * config/i386/i386.opt (mavx): New.
2811         (mfma): Likewise.
2813         * config/i386/i386-protos.h (ix86_attr_length_vex_default): New.
2815         * config/i386/mmx.md (*mov<mode>_internal_rex64): Support AVX.
2816         (*mov<mode>_internal_avx): New.
2817         (*movv2sf_internal_rex64_avx): Likewise.
2818         (*movv2sf_internal_avx): Likewise.
2820         * config/i386/predicates.md (const_4_to_5_operand): New.
2821         (const_6_to_7_operand): Likewise.
2822         (const_8_to_11_operand): Likewise.
2823         (const_12_to_15_operand): Likewise.
2824         (avx_comparison_float_operator): Likewise.
2826         * config/i386/sse.md (AVX256MODEI): New.
2827         (AVX256MODE): Likewise.
2828         (AVXMODEQI): Likewise.
2829         (AVXMODE): Likewise.
2830         (AVX256MODEF2P): Likewise.
2831         (AVX256MODE2P): Likewise.
2832         (AVX256MODE4P): Likewise.
2833         (AVX256MODE8P): Likewise.
2834         (AVXMODEF2P): Likewise.
2835         (AVXMODEF4P): Likewise.
2836         (AVXMODEDCVTDQ2PS): Likewise.
2837         (AVXMODEDCVTPS2DQ): Likewise.
2838         (avxvecmode): Likewise.
2839         (avxvecpsmode): Likewise.
2840         (avxhalfvecmode): Likewise.
2841         (avxscalarmode): Likewise.
2842         (avxcvtvecmode): Likewise.
2843         (avxpermvecmode): Likewise.
2844         (avxmodesuffixf2c): Likewise.
2845         (avxmodesuffixp): Likewise.
2846         (avxmodesuffixs): Likewise.
2847         (avxmodesuffix): Likewise.
2848         (vpermilbits): Likewise.
2849         (pinsrbits): Likewise.
2850         (mov<mode>): Likewise.
2851         (*mov<mode>_internal): Likewise.
2852         (push<mode>1): Likewise.
2853         (movmisalign<mode>): Likewise.
2854         (avx_movup<avxmodesuffixf2c><avxmodesuffix>): Likewise.
2855         (avx_movdqu<avxmodesuffix>): Likewise.
2856         (avx_lddqu<avxmodesuffix>): Likewise.
2857         (<plusminus_insn><mode>3): Likewise.
2858         (*avx_<plusminus_insn><mode>3): Likewise.
2859         (*avx_vm<plusminus_insn><mode>3): Likewise.
2860         (mul<mode>3): Likewise.
2861         (*avx_mul<mode>3): Likewise.
2862         (*avx_vmmul<mode>3): Likewise.
2863         (divv8sf3): Likewise.
2864         (divv4df3): Likewise.
2865         (avx_div<mode>3): Likewise.
2866         (*avx_div<mode>3): Likewise.
2867         (*avx_vmdiv<mode>3): Likewise.
2868         (avx_rcpv8sf2): Likewise.
2869         (*avx_vmrcpv4sf2): Likewise.
2870         (sqrtv8sf2): Likewise.
2871         (avx_sqrtv8sf2): Likewise.
2872         (*avx_vmsqrt<mode>2): Likewise.
2873         (rsqrtv8sf2): Likewise.
2874         (avx_rsqrtv8sf2): Likewise.
2875         (*avx_vmrsqrtv4sf2): Likewise.
2876         (<code><mode>3): Likewise.
2877         (*avx_<code><mode>3_finite): Likewise.
2878         (*avx_<code><mode>3): Likewise.
2879         (*avx_vm<code><mode>3): Likewise.
2880         (*avx_ieee_smin<mode>3): Likewise.
2881         (*avx_ieee_smax<mode>3): Likewise.
2882         (avx_addsubv8sf3): Likewise.
2883         (avx_addsubv4df3): Likewise.
2884         (*avx_addsubv4sf3): Likewise.
2885         (*avx_addsubv2df3): Likewise.
2886         (avx_h<plusminus_insn>v4df3): Likewise.
2887         (avx_h<plusminus_insn>v8sf3): Likewise.
2888         (*avx_h<plusminus_insn>v4sf3): Likewise.
2889         (*avx_h<plusminus_insn>v2df3): Likewise.
2890         (avx_cmpp<avxmodesuffixf2c><mode>3): Likewise.
2891         (avx_cmps<ssemodesuffixf2c><mode>3): Likewise.
2892         (*avx_maskcmp<mode>3): Likewise.
2893         (avx_nand<mode>3): Likewise.
2894         (*avx_<code><mode>3): Likewise.
2895         (*avx_nand<mode>3): Likewise.
2896         (*avx_<code><mode>3): Likewise.
2897         (*avx_cvtsi2ss): Likewise.
2898         (*avx_cvtsi2ssq): Likewise.
2899         (*avx_cvtsi2sd): Likewise.
2900         (*avx_cvtsi2sdq): Likewise.
2901         (*avx_cvtsd2ss): Likewise.
2902         (avx_cvtss2sd): Likewise.
2903         (avx_cvtdq2ps<avxmodesuffix>): Likewise.
2904         (avx_cvtps2dq<avxmodesuffix>): Likewise.
2905         (avx_cvttps2dq<avxmodesuffix>): Likewise.
2906         (*avx_cvtsi2sd): Likewise.
2907         (*avx_cvtsi2sdq): Likewise.
2908         (avx_cvtdq2pd256): Likewise.
2909         (avx_cvtpd2dq256): Likewise.
2910         (avx_cvttpd2dq256): Likewise.
2911         (*avx_cvtsd2ss): Likewise.
2912         (*avx_cvtss2sd): Likewise.
2913         (avx_cvtpd2ps256): Likewise.
2914         (avx_cvtps2pd256): Likewise.
2915         (*avx_movhlps): Likewise.
2916         (*avx_movlhps): Likewise.
2917         (avx_unpckhps256): Likewise.
2918         (*avx_unpckhps): Likewise.
2919         (avx_unpcklps256): Likewise.
2920         (*avx_unpcklps): Likewise.
2921         (avx_movshdup256): Likewise.
2922         (avx_movsldup256): Likewise.
2923         (avx_shufps256): Likewise.
2924         (avx_shufps256_1): Likewise.
2925         (*avx_shufps_<mode>): Likewise.
2926         (*avx_loadhps): Likewise.
2927         (*avx_storelps): Likewise.
2928         (*avx_loadlps): Likewise.
2929         (*avx_movss): Likewise.
2930         (*vec_dupv4sf_avx): Likewise.
2931         (*vec_concatv2sf_avx): Likewise.
2932         (*vec_concatv4sf_avx): Likewise.
2933         (*vec_setv4sf_0_avx): Likewise.
2934         (*vec_setv4sf_avx): Likewise.
2935         (*avx_insertps): Likewise.
2936         (avx_vextractf128<mode>): Likewise.
2937         (vec_extract_lo_<mode>): Likewise.
2938         (vec_extract_hi_<mode>): Likewise.
2939         (vec_extract_lo_<mode>): Likewise.
2940         (vec_extract_hi_<mode>): Likewise.
2941         (vec_extract_lo_v16hi): Likewise.
2942         (vec_extract_hi_v16hi): Likewise.
2943         (vec_extract_lo_v32qi): Likewise.
2944         (vec_extract_hi_v32qi): Likewise.
2945         (avx_unpckhpd256): Likewise.
2946         (*avx_unpckhpd): Likewise.
2947         (avx_movddup256): Likewise.
2948         (*avx_movddup): Likewise.
2949         (avx_unpcklpd256): Likewise.
2950         (*avx_unpcklpd): Likewise.
2951         (avx_shufpd256): Likewise.
2952         (avx_shufpd256_1): Likewise.
2953         (*avx_punpckhqdq): Likewise.
2954         (*avx_punpcklqdq): Likewise.
2955         (*avx_shufpd_<mode>): Likewise.
2956         (*avx_storehpd): Likewise.
2957         (*avx_loadhpd): Likewise.
2958         (*avx_loadlpd): Likewise.
2959         (*avx_movsd): Likewise.
2960         (*vec_concatv2df_avx): Likewise.
2961         (*avx_<plusminus_insn><mode>3): Likewise.
2962         (*avx_<plusminus_insn><mode>3): Likewise.
2963         (*avx_mulv8hi3): Likewise.
2964         (*avxv8hi3_highpart): Likewise.
2965         (*avx_umulv8hi3_highpart): Likewise.
2966         (*avx_umulv2siv2di3): Likewise.
2967         (*avx_mulv2siv2di3): Likewise.
2968         (*avx_pmaddwd): Likewise.
2969         (*avx_mulv4si3): Likewise.
2970         (*avx_ashr<mode>3): Likewise.
2971         (*avx_lshr<mode>3): Likewise.
2972         (*avx_ashl<mode>3): Likewise.
2973         (*avx_<code><mode>3): Likewise.
2974         (*avx_eq<mode>3): Likewise.
2975         (*avx_gt<mode>3): Likewise.
2976         (*avx_nand<mode>3): Likewise.
2977         (*avx_nand<mode>3): Likewise.
2978         (*avx_<code><mode>3): Likewise.
2979         (*avx_<code><mode>3): Likewise.
2980         (*avx_packsswb): Likewise.
2981         (*avx_packssdw): Likewise.
2982         (*avx_packuswb): Likewise.
2983         (*avx_punpckhbw): Likewise.
2984         (*avx_punpcklbw): Likewise.
2985         (*avx_punpckhwd): Likewise.
2986         (*avx_punpcklwd): Likewise.
2987         (*avx_punpckhdq): Likewise.
2988         (*avx_punpckldq): Likewise.
2989         (*avx_pinsr<avxmodesuffixs>): Likewise.
2990         (*avx_pinsrq): Likewise.
2991         (*avx_loadld): Likewise.
2992         (*vec_extractv2di_1_rex64_avx): Likewise.
2993         (*vec_extractv2di_1_avx): Likewise.
2994         (*vec_dupv2di_avx): Likewise.
2995         (*vec_concatv2si_avx): Likewise.
2996         (*vec_concatv4si_1_avx): Likewise.
2997         (*vec_concatv2di_avx): Likewise.
2998         (*vec_concatv2di_rex64_avx): Likewise.
2999         (*avx_uavgv16qi3): Likewise.
3000         (*avx_uavgv8hi3): Likewise.
3001         (*avx_psadbw): Likewise.
3002         (avx_movmskp<avxmodesuffixf2c>256): Likewise.
3003         (*avx_phaddwv8hi3): Likewise.
3004         (*avx_phadddv4si3): Likewise.
3005         (*avx_phaddswv8hi3): Likewise.
3006         (*avx_phsubwv8hi3): Likewise.
3007         (*avx_phsubdv4si3): Likewise.
3008         (*avx_phsubswv8hi3): Likewise.
3009         (*avx_pmaddubsw128): Likewise.
3010         (*avx_pmulhrswv8hi3): Likewise.
3011         (*avx_pshufbv16qi3): Likewise.
3012         (*avx_psign<mode>3): Likewise.
3013         (*avx_palignrti): Likewise.
3014         (avx_blendp<avxmodesuffixf2c><avxmodesuffix>): Likewise.
3015         (avx_blendvp<avxmodesuffixf2c><avxmodesuffix>): Likewise.
3016         (avx_dpp<avxmodesuffixf2c><avxmodesuffix>): Likewise.
3017         (*avx_mpsadbw): Likewise.
3018         (*avx_packusdw): Likewise.
3019         (*avx_pblendvb): Likewise.
3020         (*avx_pblendw): Likewise.
3021         (avx_vtestp<avxmodesuffixf2c><avxmodesuffix>): Likewise.
3022         (avx_ptest256): Likewise.
3023         (avx_roundp<avxmodesuffixf2c>256): Likewise.
3024         (*avx_rounds<ssemodesuffixf2c>): Likewise.
3025         (*avx_aesenc): Likewise.
3026         (*avx_aesenclast): Likewise.
3027         (*avx_aesdec): Likewise.
3028         (*avx_aesdeclast): Likewise.
3029         (avx_vzeroupper): Likewise.
3030         (avx_vzeroupper_rex64): Likewise.
3031         (avx_vpermil<mode>): Likewise.
3032         (avx_vpermilvar<mode>3): Likewise.
3033         (avx_vpermil2<mode>3): Likewise.
3034         (avx_vperm2f128<mode>3): Likewise.
3035         (avx_vbroadcasts<avxmodesuffixf2c><avxmodesuffix>): Likewise.
3036         (avx_vbroadcastss256): Likewise.
3037         (avx_vbroadcastf128_p<avxmodesuffixf2c>256): Likewise.
3038         (avx_vinsertf128<mode>): Likewise.
3039         (vec_set_lo_<mode>): Likewise.
3040         (vec_set_hi_<mode>): Likewise.
3041         (vec_set_lo_<mode>): Likewise.
3042         (vec_set_hi_<mode>): Likewise.
3043         (vec_set_lo_v16hi): Likewise.
3044         (vec_set_hi_v16hi): Likewise.
3045         (vec_set_lo_v32qi): Likewise.
3046         (vec_set_hi_v32qi): Likewise.
3047         (avx_maskloadp<avxmodesuffixf2c><avxmodesuffix>): Likewise.
3048         (avx_maskstorep<avxmodesuffixf2c><avxmodesuffix>): Likewise.
3049         (avx_<avxmodesuffixp><avxmodesuffix>_<avxmodesuffixp>): Likewise.
3050         (avx_<avxmodesuffixp>_<avxmodesuffixp><avxmodesuffix>): Likewise.
3051         (vec_init<mode>): Likewise.
3052         (*vec_concat<mode>_avx): Likewise.
3053         (blendbits): Support V8SF and V4DF.
3054         (sse2_movq128): Support AVX.
3055         (<sse>_movnt<mode>): Likewise.
3056         (sse2_movntv2di): Likewise.
3057         (sse_rcpv4sf2): Likewise.
3058         (sse_sqrtv4sf2): Likewise.
3059         (sse_rsqrtv4sf2): Likewise.
3060         (<sse>_comi): Likewise.
3061         (<sse>_ucomi): Likewise.
3062         (sse_cvtss2si): Likewise.
3063         (sse_cvtss2si_2): Likewise.
3064         (sse_cvtss2siq): Likewise.
3065         (sse_cvtss2siq_2): Likewise.
3066         (sse_cvttss2si): Likewise.
3067         (sse_cvttss2siq): Likewise.
3068         (sse2_cvtsd2si): Likewise.
3069         (sse2_cvtsd2si_2): Likewise.
3070         (sse2_cvtsd2siq): Likewise.
3071         (sse2_cvtsd2siq_2): Likewise.
3072         (sse2_cvttsd2si): Likewise.
3073         (sse2_cvttsd2siq): Likewise.
3074         (sse2_cvtdq2pd): Likewise.
3075         (*sse2_cvtpd2dq): Likewise.
3076         (*sse2_cvttpd2dq): Likewise.
3077         (*sse2_cvtpd2ps): Likewise.
3078         (sse2_cvtps2pd): Likewise.
3079         (sse3_movshdup): Likewise.
3080         (sse3_movsldup): Likewise.
3081         (sse_storehps): Likewise.
3082         (*sse4_1_extractps): Likewise.
3083         (sse2_storelpd): Likewise.
3084         (vec_dupv2df_sse3): Likewise.
3085         (*vec_concatv2df_sse3): Likewise.
3086         (*sse4_1_pextrb): Likewise.
3087         (*sse4_1_pextrb_memory): Likewise.
3088         (*sse2_pextrw): Likewise.
3089         (*sse4_1_pextrw_memory): Likewise.
3090         (*sse4_1_pextrd): Likewise.
3091         (*sse4_1_pextrq): Likewise.
3092         (sse2_pshufd_1): Likewise.
3093         (sse2_pshuflw_1): Likewise.
3094         (sse2_pshufhw_1): Likewise.
3095         (*sse2_storeq_rex64): Likewise.
3096         (*vec_dupv4si): Likewise.
3097         (<sse>_movmskp<ssemodesuffixf2c>): Likewise.
3098         (sse2_pmovmskb): Likewise.
3099         (*sse2_maskmovdqu): Likewise.
3100         (*sse2_maskmovdqu_rex64): Likewise.
3101         (sse_ldmxcsr): Likewise.
3102         (sse_stmxcsr): Likewise.
3103         (abs<mode>2): Likewise.
3104         (sse4_1_movntdqa): Likewise.
3105         (sse4_1_phminposuw): Likewise.
3106         (sse4_1_extendv8qiv8hi2): Likewise.
3107         (*sse4_1_extendv8qiv8hi2): Likewise.
3108         (sse4_1_extendv4qiv4si2): Likewise.
3109         (*sse4_1_extendv4qiv4si2): Likewise.
3110         (sse4_1_extendv2qiv2di2): Likewise.
3111         (*sse4_1_extendv2qiv2di2): Likewise.
3112         (sse4_1_extendv4hiv4si2): Likewise.
3113         (*sse4_1_extendv4hiv4si2): Likewise.
3114         (sse4_1_extendv2hiv2di2): Likewise.
3115         (*sse4_1_extendv2hiv2di2): Likewise.
3116         (sse4_1_extendv2siv2di2): Likewise.
3117         (*sse4_1_extendv2siv2di2): Likewise.
3118         (sse4_1_zero_extendv8qiv8hi2): Likewise.
3119         (*sse4_1_zero_extendv8qiv8hi2): Likewise.
3120         (sse4_1_zero_extendv4qiv4si2): Likewise.
3121         (*sse4_1_zero_extendv4qiv4si2): Likewise.
3122         (sse4_1_zero_extendv2qiv2di2): Likewise.
3123         (*sse4_1_zero_extendv2qiv2di2): Likewise.
3124         (sse4_1_zero_extendv4hiv4si2): Likewise.
3125         (*sse4_1_zero_extendv4hiv4si2): Likewise.
3126         (sse4_1_zero_extendv2hiv2di2): Likewise.
3127         (*sse4_1_zero_extendv2hiv2di2): Likewise.
3128         (sse4_1_zero_extendv2siv2di2): Likewise.
3129         (*sse4_1_zero_extendv2siv2di2): Likewise.
3130         (sse4_1_ptest): Likewise.
3131         (sse4_1_roundp<ssemodesuffixf2c>): Likewise.
3132         (sse4_2_pcmpestri): Likewise.
3133         (sse4_2_pcmpestrm): Likewise.
3134         (sse4_2_pcmpistri): Likewise.
3135         (sse4_2_pcmpistrm): Likewise.
3136         (aesimc): Likewise.
3137         (aeskeygenassist): Likewise.
3139 2008-08-28  Uros Bizjak  <ubizjak@gmail.com>
3141         * config/i386/predicates.md (vzeroall_operation): New.
3143         * config/i386/sse.md (avx_vzeroall): New.
3144         (*avx_vzeroall): Likewise.
3146 2008-08-28  Paul Brook  <paul@codesourcery.com>
3147             Mark Shinwell  <shinwell@codesourcery.com>
3148             Richard Earnshaw  <richard.earnshaw@arm.com>
3150         * config/arm/arm.c (TARGET_MAX_ANCHOR_OFFSET): New.
3151         (TARGET_MIN_ANCHOR_OFFSET): New.
3152         (arm_override_options): Set correct anchor ranges for Thumb-1
3153         and Thumb-2 if required.
3154         (legitimize_pic_address): Handle case involving a TLS symbol
3155         reference with an addend.
3156         (arm_optimization_options): Enable section anchors at -O1 and
3157         above.
3158         * config/arm/arm.h (OPTIMIZATION_OPTIONS): New.
3159         * config/arm/arm-protos.h (arm_optimization_options): New.
3161 2008-08-28  Nick Clifton  <nickc@redhat.com>
3163         * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Define.
3164         * config/stormy16/stormy16.md (zero_extendqihi2): Fix length
3165         attribute.
3167         * config/v850/v850.h (IRA_COVER_CLASSES): Define.
3168         * config/v850/v850.md (return): Remove frame size restriction.
3170         * config/mcore/mcore.h (IRA_COVER_CLASSES): Define.
3172         * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Define.
3174         * config/fr30/fr30.h (IRA_COVER_CLASSES): Define.
3176         * config/m32r/m32r.h (IRA_COVER_CLASSES): Define.
3178 2008-08-28  Paul Brook  <paul@codesourcery.com>
3180         * config/arm/vfp11.md: Update license notice.
3181         * config/arm/cortex-r4.md: Ditto.
3183 2008-08-28  Richard Guenther  <rguenther@suse.de>
3185         PR tree-optimization/37207
3186         * tree-ssa-ifcombine.c (recognize_single_bit_test): Fix
3187         tuplification bug.
3189 2008-08-28  Dodji Seketeli  <dodji@redhat.com>
3191         PR c++/36741
3192         * tree.c (int_fits_type_p): Don't forget unsigned integers
3193           of type sizetype which higher end word equals -1.
3195 2008-08-28  Ira Rosen  <irar@il.ibm.com>
3197         * target.h (struct vectorize): Add new target builtin.
3198         * tree-vectorizer.c (destroy_loop_vec_info): Call
3199         vect_free_slp_instance instead of vect_free_slp_node.
3200         * tree-vectorizer.h (enum slp_load_perm_type): New.
3201         (struct _slp_instance): Add new fields.
3202         (SLP_INSTANCE_LOAD_PERMUTATION): New.
3203         (SLP_INSTANCE_LOADS): New.
3204         (vect_free_slp_tree): Remove.
3205         (vect_free_slp_instance): Declare.
3206         (SLP_TREE_LOADS_PERM_TYPE, TARG_VEC_PERMUTE_COST): New.
3207         (vectorizable_load): Add argument.
3208         (vect_transform_slp_perm_load): New.
3209         * tree-vect-analyze.c (vect_analyze_operations): Add an argument to
3210         vectorizable_load.
3211         (vect_get_place_in_interleaving_chain): New function.
3212         (vect_free_slp_tree): Make static.
3213         (vect_free_slp_instance): New function.
3214         (vect_build_slp_tree): Add new arguments. Allow load permutations and
3215         collect the load location in the interleaving chain.
3216         (vect_supported_slp_permutation_p): New function.
3217         (vect_supported_load_permutation_p): Likewise.
3218         (vect_analyze_slp_instance): In case of loads permutation, call
3219         vect_supported_load_permutation_p to check that the permutation is
3220         supported.
3221         * target-def.h (TARGET_VECTORIZE_BUILTIN_VEC_PERM): New.
3222         * tree-vect-transform.c (vect_transform_stmt): Add new argument.
3223         (vect_create_mask_and_perm): New function.
3224         (vect_get_mask_element, vect_transform_slp_perm_load): Likewise.
3225         (vectorizable_load): Add an argument. Don't keep the created vectors
3226         statements in the node if permutation is required. Call
3227         vect_transform_slp_perm_load to generate the permutation.
3228         (vect_transform_stmt): Add new argument. Call vectorizable_load with
3229         additional argument.
3230         (vect_schedule_slp_instance): In case of loads permutation, allocate
3231         vectorized statements structure for all the related SLP nodes. Call
3232         vect_transform_stmt with addditional argument.
3233         (vect_transform_loop): Call vect_transform_stmt with correct arguments.
3234         * config/spu/spu.c (spu_builtin_vec_perm): New.
3235         (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Redefine.
3236         * config/spu/spu.h (TARG_VEC_PERMUTE_COS): Define.
3237         * config/rs6000/rs6000.c (rs6000_builtin_vec_perm): New.
3238         (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Redefine.
3240 2008-08-28  Chris Fairles  <chris.fairles@gmail.com>
3242         * gthr-posix.h (__gthread_create,  __gthread_join, __gthread_detach,
3243         __gthread_mutex_timed_lock, __gthread_recursive_mutex_timed_lock,
3244         __gthread_cond_signal, __gthread_cond_timedwait,
3245         __gthread_cond_timedwait_recursive): New functions.
3246         * gthr-posix.c (pthread_mutex_timedlock, pthread_cond_timedwait):
3247         Likewise.
3248         * gthr.h: Comment on defining __GTHREADS_CXX0X macro in conforming
3249         thread interfaces.
3251 2008-08-28  Richard Guenther  <rguenther@suse.de>
3253         PR middle-end/37005
3254         * fold-const.c (maybe_canonicalize_comparison_1): Require
3255         undefined overflow only for canonicalizing A +- CST cmp CST.
3256         Make sure to not generate new constants that are not inside
3257         their TYPE_MIN/MAX_VALUE range.
3258         (maybe_canonicalize_comparison): Remove undefined overflow
3259         checking from here.
3260         (fold_binary): Remove now duplicate folding.
3262 2008-08-27  Paolo Carlini  <paolo.carlini@oracle.com>
3264         * c-typeck.c (convert_for_assignment): Adjust WARN_FOR_ASSIGNMENT
3265         use not updated in the last change.
3267 2008-08-27  Kaz Kojima  <kkojima@gcc.gnu.org>
3269         * config/sh/sh.h (REG_CLASS_CONTENTS): Drop fr32 from FPUL_REGS.
3270         (IRA_COVER_CLASSES): Add FPUL_REGS.
3272 2008-08-27  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
3274         PR 37217
3275         * c-common.c (conversion_warning): Check for null operands.
3277 2008-08-27  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
3279         PR c/31673
3280         * c-decl.c (check_for_loop_decls): Improve error message. Give
3281         hint.
3283 2008-08-27  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
3285         PR c/37186
3286         * c-typeck.c (WARN_FOR_ASSIGNMENT): Add OPT parameter.
3287         (convert_for_assignment): Pass corrent OPT_W* parameter to
3288         WARN_FOR_ASSIGNMENT.
3290 2008-08-27  Paolo Carlini  <paolo.carlini@oracle.com>
3292         PR c++/35321
3293         * c-common.c (fold_offsetof_1): Handle TARGET_EXPR like CALL_EXPR.
3295 2008-08-27  Paul Brook  <paul@codesourcery.com>
3297         * config.gcc: Loosen checks for arm uclinux eabi targets.
3299 2008-08-27  Paul Brook  <paul@codesourcery.com>
3301         * config/arm/t-arm-coff (LIB1ASMFUNCS): Add missing undescrore on
3302         _clzsi2.
3303         * config/arm/t-linux (LIB1ASMFUNCS): Ditto.
3305 2008-08-26  Douglas Gregor  <doug.gregor@gmail.com>
3307         * c-common.c (do_switch_warnings): Look through the CONST_DECLs in
3308         the enumerators of an ENUMERAL_TYPE.
3309         * dbxout.c (dbxout_type): Ditto.
3311 2008-08-26  Andrew Pinski  <andrew_pinski@playstation.sony.com>
3313         PR rtl-opt/37219
3314         * fwprop.c (fwprop): Check that the loop_father is the outer loop.
3315         (fwprop_addr): Check that the loop_father is not the outer loop.
3317 2008-08-26  Paul Brook  <paul@codesourcery.com>
3319         * config/arm/vfp.md: Document fmul{s,d} and fmac{s,d} types.
3320         Remove documentation entry for fmul type.
3321         Use fmuls to annotate single-precision multiplication patterns,
3322         fmuld to annotate double-precision multiplication patterns,
3323         fmacs to annotate single-precision multiply-accumulate patterns
3324         and fmacd to annotate double-precision multiply-accumulate patterns.
3325         * config/arm/vfp11.md: Update reservations accordingly.
3326         * config/arm/arm.md: Note that certain values of the "type"
3327         attribute are documented in vfp.md.
3328         * config/arm/arm1020e.md: Remove out of date duplicate comment.
3329         (v10_cvt): Use new fmul types.
3331 2008-08-26  Paul Brook   <paul@codesourcery.com>
3333         * config/arm/vfp.md: Move pipeline description for VFP11 to...
3334         * config/arm/vfp11.md: ...here.  New.
3335         * config/arm/arm.md: Include vfp11.md.
3337 2008-08-26  Hans-Peter Nilsson  <hp@axis.com>
3339         * opts.c (decode_options) [!IRA_COVER_CLASSES]: Add missing
3340         parameter to inform call.
3342 2008-08-26  Jeff Law  <law@redhat.com>
3344         * mn10300.md (movqi, movhi): Split i->d*a case into two cases to
3345         avoid the possibility of getting DATA_OR_ADDRESS_REGS as the
3346         preferred class when copying a constant into a partial word register.
3348 2008-08-26  Ben Elliston  <bje@au.ibm.com>
3350         * rtlanal.c: Fix uses of "it's" with "its" where appropriate.
3351         * cp/typeck.c: Likewise.
3352         * cp/tree.c: Likewise.
3353         * gimple-low.c: Likewise.
3354         * jump.c: Likewise.
3356 2008-08-26  Vladimir Makarov  <vmakarov@redhat.com>
3358         * ira-build.c, ira-color.c, ira-costs.c, ira.h, ira-lives.c,
3359         ira.c, ira-conflicts.c, ira-emit.c, ira-int.h: New files.
3361         * doc/passes.texi: Describe IRA.
3363         * doc/tm.texi (IRA_COVER_CLASSES,
3364         IRA_HARD_REGNO_ADD_COST_MULTIPLIER): Describe the new macros.
3366         * doc/invoke.texi (ira-max-loops-num): Describe the new parameter.
3367         (-fira, -fira-algorithm, -fira-coalesce, -fno-ira-move-spills,
3368         -fira-propagate-cost, -fno-ira-share-save-slots,
3369         -fno-ira-share-spill-slots, -fira-verbose): Describe new options.
3371         * flags.h (ira_algorithm): New enumeration.
3372         (flag_ira_algorithm, flag_ira_verbose): New external variable
3373         declarations.
3375         * postreload.c (gate_handle_postreload): Don't do post reload
3376         optimizations unless the reload is completed.
3378         * reload.c (push_reload, find_dummy_reload): Use DF_LR_OUT for
3379         IRA.
3381         * tree-pass.h (pass_ira): New external variable declaration.
3383         * reload.h: Add 2008 to the Copyright.
3385         * cfgloopanal.c: Include params.h.
3386         (estimate_reg_pressure_cost): Decrease cost for IRA optimization
3387         mode.
3389         * params.h (IRA_MAX_LOOPS_NUM): New macro.
3391         * toplev.c (ira.h): New include.
3392         (flag_ira_algorithm, flag_ira_verbose): New external variables.
3393         (backend_init_target): Call ira_init.
3394         (backend_init): Call ira_init_once.
3395         (finalize): Call finish_ira_once.
3397         * toplev.h (flag_ira, flag_ira_coalesce, flag_ira_move_spills,
3398         flag_ira_share_save_slots, flag_ira_share_spill_slots): New
3399         external variables.
3401         * regs.h (contains_reg_of_mode, move_cost, may_move_in_cost,
3402         may_move_out_cost): New external variable declarations.
3403         (move_table): New typedef.
3405         * caller-save.c: Include headers output.h and ira.h.
3406         (no_caller_save_reg_set): New global variable.
3407         (save_slots_num, save_slots): New variables.
3408         (reg_save_code, reg_restore_code, add_stored_regs): Add
3409         prototypes.
3410         (init_caller_save): Set up no_caller_save_reg_set.
3411         (init_save_areas): Reset save_slots_num.
3412         (saved_hard_reg): New structure.
3413         (hard_reg_map, saved_regs_num, all_saved_regs): New variables.
3414         (initiate_saved_hard_regs, new_saved_hard_reg,
3415         finish_saved_hard_regs, saved_hard_reg_compare_func): New
3416         functions.
3417         (setup_save_areas): Add code for sharing stack slots.
3418         (all_blocks): New variable.
3419         (save_call_clobbered_regs): Process pseudo-register too.
3420         (mark_set_regs): Process pseudo-register too.
3421         (insert_one_insn): Put the insn after bb note in a empty basic
3422         block.  Add insn check.
3424         * global.c (eliminable_regset): Make it external.
3425         (mark_elimination): Use DF_LR_IN for IRA.
3426         (pseudo_for_reload_consideration_p): New.
3427         (build_insn_chain): Make it external.  Don't ignore spilled
3428         pseudos for IRA.  Use pseudo_for_reload_consideration_p.
3429         (gate_handle_global_alloc): New function.
3430         (pass_global_alloc): Add the gate function.
3432         * opts.c (decode_options): Set up flag_ira.  Print the warning for
3433         -fira.
3434         (common_handle_option): Process -fira-algorithm and -fira-verbose.
3436         * timevar.def (TV_IRA, TV_RELOAD): New passes.
3438         * regmove.c (regmove_optimize): Don't do replacement of output for
3439         IRA.
3441         * hard-reg-set.h (no_caller_save_reg_set, reg_class_subclasses):
3442         New external variable declarations.
3444         * local-alloc.c (update_equiv_regs): Make it external.  Return
3445         true if jump label rebuilding should be done.  Rescan new_insn for
3446         notes.
3447         (gate_handle_local_alloc): New function.
3448         (pass_local_alloc): Add the gate function.
3450         * alias.c (value_addr_p, stack_addr_p): New functions.
3451         (nonoverlapping_memrefs_p): Use them for IRA.
3453         * common.opt (fira, fira-algorithm, fira-coalesce,
3454         fira-move-spills, fira-share-save-slots, fira-share-spill-slots,
3455         fira-verbose): New options.
3457         * regclass.c (reg_class_subclasses, contains_reg_of_mode,
3458         move_cost, may_move_in_cost, may_move_out_cost): Make the
3459         variables external.
3460         (move_table): Remove typedef.
3461         (init_move_cost): Make it external.
3462         (allocate_reg_info, resize_reg_info, setup_reg_classes): New
3463         functions.
3465         * rtl.h (init_move_cost, allocate_reg_info, resize_reg_info,
3466         setup_reg_classes): New function prototypes.
3467         (eliminable_regset): New external variable declaration.
3468         (build_insn_chain, update_equiv_regs): New function prototypes.
3470         * Makefile.in (IRA_INT_H): New definition.
3471         (OBJS-common): Add ira.o, ira-build.o, ira-costs.o,
3472         ira-conflicts.o, ira-color.o, ira-emit.o, and ira-lives.o.
3473         (reload1.o, toplev.o): Add dependence on ira.h.
3474         (cfgloopanal.o): Add PARAMS_H.
3475         (caller-save.o): Add dependence on output.h and ira.h.
3476         (ira.o, ira-build.o, ira-costs.o, ira-conflicts.o, ira-color.o,
3477         ira-emit.o, ira-lives.o): New entries.
3479         * passes.c (pass_ira): New pass.
3481         * params.def (PARAM_IRA_MAX_LOOPS_NUM): New parameter.
3483         * reload1.c (ira.h): Include the header.
3484         (changed_allocation_pseudos): New bitmap.
3485         (init_reload): Initiate the bitmap.
3486         (compute_use_by_pseudos): Permits spilled registers in FROM.
3487         (temp_pseudo_reg_arr): New variable.
3488         (reload): Allocate and free temp_pseudo_reg_arr.  Sort pseudos for
3489         IRA.  Call alter_reg with the additional parameter.  Don't clear
3490         spilled_pseudos for IRA.  Restore original insn chain for IRA.
3491         Clear changed_allocation_pseudos at the end of reload.
3492         (calculate_needs_all_insns): Call IRA's mark_memory_move_deletion.
3493         (hard_regno_to_pseudo_regno): New variable.
3494         (count_pseudo): Check spilled pseudos.  Set up
3495         hard_regno_to_pseudo_regno.
3496         (count_spilled_pseudo): Check spilled pseudos. Update
3497         hard_regno_to_pseudo_regno.
3498         (find_reg): Use better_spill_reload_regno_p.  Check
3499         hard_regno_to_pseudo_regno.
3500         (alter_reg): Set up spilled_pseudos.  Add a new parameter.  Add
3501         code for IRA.
3502         (eliminate_regs_1): Use additional parameter for alter_reg.
3503         (finish_spills): Set up pseudo_previous_regs only for spilled
3504         pseudos.  Call reassign_pseudos once for all spilled pseudos, pass
3505         more arguments.  Don't clear live_throughout and dead_or_set for
3506         spilled pseudos.  Use additional parameter for alter_reg.  Call
3507         mark_allocation_change.  Set up changed_allocation_pseudos.
3508         Remove sanity check.
3509         (emit_input_reload_insns, delete_output_reload): Use additional
3510         parameter for alter_reg.  Call mark_allocation_change.
3511         (substitute, gen_reload_chain_without_interm_reg_p): New
3512         functions.
3513         (reloads_conflict): Use gen_reload_chain_without_interm_reg_p.
3515         * testsuite/gcc.dg/20080410-1.c: New file.
3517         * config/s390/s390.h (IRA_COVER_CLASSES,
3518         IRA_HARD_REGNO_ADD_COST_MULTIPLIER): Define.
3520         * config/sparc/sparc.h (IRA_COVER_CLASSES): New macro.
3522         * config/i386/i386.h (IRA_COVER_CLASSES): Ditto.
3524         * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
3526         * config/rs6000/rs6000.h (IRA_COVER_CLASSES): Ditto.
3528         * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
3530         * config/alpha/alpha.h (IRA_COVER_CLASSES): Ditto.
3532         2008-08-24  Jeff Law  <law@redhat.com>
3533         * ira.c (setup_reg_class_intersect_union): Prefer smallest class
3534         when ignoring unavailable registers.
3536         2008-08-24  Jeff Law  <law@redhat.com>
3537         * ira-color.c (coalesced_pseudo_reg_slot_compare): Check
3538         FRAME_GROWS_DOWNWARD and STACK_GROWS_DOWNWARD.
3539         * ira.c (setup_eliminable_regset): Check stack_realign_needed.
3540         * config/mn10300/mn10300.h (IRA_COVER_CLASSES): New macro.
3542         2008-06-03 Steve Chamberlain <steve.chamberlain@gmail.com>
3543         * ira-build.c (allocno_range_compare_func): Stabilize sort.
3545         2008-05-29 Andy Hutchinson <hutchinsonandy@aim.com>
3546         * config/avr/avr.h (IRA_COVER_CLASSES): New macro.
3547         * reload1.c (find_reg): Process registers in register allocation order.
3549         2008-05-10 Richard Sandiford <rsandifo@nildram.co.uk>
3550         * toplev.c (backend_init_target): Move ira_init call from
3551         here...
3552         (lang_dependent_init_target): ...to here.
3554         2008-05-10 Richard Sandiford <rsandifo@nildram.co.uk>
3555         * ira.c (setup_class_subset_and_memory_move_costs): Don't
3556         calculate memory move costs for NO_REGS.
3558         2008-05-05 Kaz Kojima <kkojima@gcc.gnu.org>
3559         * ira-color.c (ira_fast_allocation): Use no_stack_reg_p only if
3560         STACK_REGS is defined.
3562         2008-04-08 Andrew Pinski <andrew_pinski@playstation.sony.com>
3563         * config/spu/spu.h (IRA_COVER_CLASSES): New macro.
3565         2008-04-04 Bernd Schmidt <bernd.schmidt@analog.com>
3566         * config/bfin/bfin.h (IRA_COVER_CLASSES): New macro.
3568         2008-04-04 Kaz Kojima <kkojima@gcc.gnu.org>
3569         * config/sh/sh.h (IRA_COVER_CLASSES): Define.
3570         * config/sh/sh.md (movsicc_true+3): Check if emit returns a
3571         barrier.
3573 2008-08-26  Victor Kaplansky  <victork@il.ibm.com>
3574             Dorit Nuzman  <dorit@il.ibm.com>
3576         * gcc/config/spu/spu.md (vec_extract_evenv4si,
3577         vec_extract_evenv4sf, vec_extract_evenv8hi,
3578         vec_extract_evenv16qi, vec_extract_oddv4si,
3579         vec_extract_oddv4sf, vec_extract_oddv8hi, vec_extract_oddv16qi,
3580         vec_interleave_highv4sf, vec_interleave_lowv4sf,
3581         vec_interleave_highv4si, vec_interleave_lowv4si,
3582         vec_interleave_highv8hi, vec_interleave_lowv8hi,
3583         vec_interleave_highv16qi, vec_interleave_lowv16qi,
3584         vec_pack_trunc_v8hi, vec_pack_trunc_v4si): Implement.S
3586 2008-08-25  Janis Johnson  <janis187@us.ibm.com>
3588         PR target/36756
3589         * config/rs6000/rs6000.c (optimization_options): Don't default to
3590         section anchors without toplevel reorder.
3592 2008-08-25  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3594         * config/spu/spu_mfcio.h (mfc_begin_critical_section): New function.
3595         (mfc_end_critical_section): Likewise.
3597 2008-08-25  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3599         * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute): Propagate
3600         all type qualifiers from element type to vector type.
3602 2008-08-25  David Daney  <ddaney@avtrex.com>
3604         * config/mips/mips.md (immediate_insn): Move up in file, fix
3605         comment typo, reformat.
3606         (fetchop_bit, atomic_hiqi_op memory_barrier,
3607         sync_compare_and_swap<mode>, compare_and_swap_12, sync_add<mode>,
3608         sync_<optab><mode>, sync_<optab>_12, sync_old_<optab><mode>,
3609         sync_old_<optab>_12, sync_new_<optab><mode>, sync_new_<optab>_12,
3610         sync_nand<mode>, sync_nand_12, sync_old_nand<mode>,
3611         sync_old_nand_12, sync_new_nand<mode>, sync_new_nand_12,
3612         sync_sub<mode>, sync_old_add<mode>, sync_old_sub<mode>,
3613         sync_new_add<mode>, sync_new_sub<mode>, sync_<optab><mode>,
3614         sync_old_<optab><mode>, sync_new_<optab><mode>, sync_nand<mode>,
3615         sync_old_nand<mode>, sync_new_nand<mode>,
3616         sync_lock_test_and_set<mode>, sync_lock_test_and_set<mode>,
3617         test_and_set_12): Moved to sync.md.
3618         (sync.md): Include.
3619         * config/mips/sync.md: New file.
3621 2008-08-25  Richard Henderson  <rth@redhat.com>
3623         * dwarf2out.c (def_cfa_1): Don't scale by DWARF_CIE_DATA_ALIGNMENT.
3624         (regsave): Likewise.
3625         (lookup_cfa_1): Don't rescale by DWARF_CIE_DATA_ALIGNMENT.
3626         (output_cfi_directive): Likewise.
3627         (div_data_align): New.
3628         (output_cfi): Use it.
3630 2008-08-24  Adam Nemet  <anemet@caviumnetworks.com>
3632         * config.gcc (mips64*-*-linux*): Handle mips64octeon*-*-linux*.
3633         * config/mips/mips.h (enum processor_type): Add PROCESSOR_OCTEON.
3634         (TARGET_OCTEON): New macro.
3635         (TARGET_CPU_CPP_BUILTINS): Define __OCTEON__ for Octeon.
3636         (MIPS_ISA_LEVEL_SPEC, MIPS_ARCH_FLOAT_SPEC): Handle -march=octeon.
3637         (ISA_HAS_POP): New macro.
3638         * config/mips/driver-native.c (host_detect_local_cpu): Handle
3639         Octeon.
3640         * config/mips/mips.c (mips_cpu_info_table, mips_rtx_cost_data):
3641         Handle Octeon.
3642         * config/mips/mips.md (cpu): Add octeon.
3643         (type): Add pop attribute value.
3644         (popcount<mode>2): New pattern.
3645         * doc/invoke.texi (-march=@var{arch}): Add octeon.
3647 2008-08-24  Jan Hubicka  <jh@suse.cz>
3649         * doc/invoke.texi (-fipa-cp-clone): New option.
3650         (-fipa-cp): Update docs.
3651         (--param ipcp-unit-growth):New.
3652         * ipa-cp.c: Include fibheap.h, params.h
3653         (ipcp_initialize_node_lattices): When not cloning, all externally
3654         visible functions are bottom.
3655         (ipcp_need_redirect_p): Accept clones.
3656         (ipcp_insert_stage): Use cost driven heuristics.
3657         (max_count, dead_nodes): New static vars.
3658         (ipcp_need_original_clone_p, ipcp_estimate_cloning_cost,
3659         ipcp_const_param_count): New functions.
3660         * common.opt (ipa-cp-clone): New command line option.
3661         * params.def (ipcp-unit-growth): New.
3663 2008-08-24  Jan Hubicka  <jh@suse.cz>
3665         * tree-inline.c (tree_function_versioning): Look harder
3666         for referenced vars.
3668 2008-08-24  Razya Ladelsky  <razya@il.ibm.com>
3670         PR tree-optimization/37185
3671         * matrix-reorg.c (transform_access_sites): Update changed stmt.
3673 2008-08-23  Jan Hubicka  <jh@suse.cz>
3675         * ipa-cp.c (ipcp_analyze_node): New function.
3676         (ipcp_update_cloned_node): Use it.
3677         (ipcp_init_stage): Likewise.
3678         * ipa-inline.c (function_insertion_hook_holder): New static var.
3679         (analyze_function): Break out from ....
3680         (inline_generate_summary): Here; register insertion hook.
3681         (cgraph_decide_inlining): Remove hook.
3682         (add_new_function): New function.
3684 2008-08-23  Jan Hubicka  <jh@suse.cz>
3686         * opts.c (decode_options): Revert accidental change enabling ipa-cp.
3688 2008-08-23  Jan Hubicka  <jh@suse.cz>
3690         * ipa-cp.c (constant_val_insert): Remove.
3691         (ipcp_propagate_one_const): Remove.
3692         (ipcp_create_replace_map): Always insert replacements to the map.
3693         (ipcp_insert_stage): Do not try to insert statements by hand.
3694         * tree-inline.c (insert_init_stmt): Break out from ...
3695         (setup_one_parameter): ... here; allow NULL BB pointer.
3696         (tree_function_versioning): Use setup_one_parameter to process
3697         replacement map.
3699 2008-08-23  Jan Hubicka  <jh@suse.cz>
3701         * tree.c (decl_address_ip_invariant_p): New function.
3702         * tree.h (decl_address_ip_invariant_p): Declare.
3703         * gimple.c (strip_invariant_refs): Break out from ...
3704         (is_gimple_invariant_address): ... here
3705         (is_gimple_ip_invariant_address): New function.
3706         (is_gimple_ip_invariant): New function.
3707         * gimple.h (is_gimple_ip_invariant_address, is_gimple_ip_invariant):
3708         Declare.
3710         * ipa-cp.c (ipcp_lat_is_const): Remove handling of IPA_CONST_VALUE_REF.
3711         (ipcp_lat_is_insertable): All constants are insertable.
3712         (ipcp_lattice_from_jfunc, ipcp_print_all_lattices): Remove handling of
3713         IPA_CONST_VALUE_REF.
3714         (ipcp_initialize_node_lattices): Propagate all types of operands.
3715         (build_const_val): Do not handle IPA_CONST_VALUE_REF.
3716         (ipcp_create_replace_map): Reformat.
3717         (ipcp_need_redirect_p): Simplify.
3718         (ipcp_insert_stage): Check that argument is used before clonning.
3719         * ipa-prop.c (ipa_print_node_jump_functions): Do not handle IPA_CONST_REF.
3720         (compute_scalar_jump_functions): Simplify using is_gimple_ip_invariat.
3721         (determine_cst_member_ptr): Keep wrapping ADDR_EXPR of members.
3722         (update_call_notes_after_inlining): Expect ADDR_EXPR in operand.
3723         * ipa-prop.h (jump_func_type): Remove IPA_CONST_REF.
3724         (jump_func_type): Remove IPA_CONST_VALUE_REF.
3725         * tree-inline.c (tree_function_versioning): Add variables referenced by
3726         replacing trees.
3728 2008-08-23  Jan Hubicka  <jh@suse.cz>
3730         PR target/37094
3731         * i386.c (standard_80387_constant_p): Use optimize_size.
3733 2008-08-23  Ira Rosen  <irar@il.ibm.com>
3735         PR tree-optimization/37161
3736         * tree-vectorizer.h (vect_get_smallest_scalar_type): Declare.
3737         * tree-vect-analyze.c (vect_get_smallest_scalar_type): New function.
3738         (vect_determine_vectorization_factor): Move the scalar type
3739         retrieval to vect_get_smallest_scalar_type.
3740         (vect_build_slp_tree): Call vect_get_smallest_scalar_type to get
3741         scalar type. Remove redundant computation.
3742         * tree-vect-transform.c (vect_get_constant_vectors): Add argument.
3743         (vect_get_slp_defs): Take the type of RHS into account if
3744         necessary by calling vect_get_smallest_scalar_type. Call
3745         vect_get_constant_vectors with additional argument.
3747 2008-08-23  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
3749         PR 35648
3750         * doc/invoke.texi (Wwrite-strings): Clarify description.
3752 2008-08-23  Ira Rosen  <irar@il.ibm.com>
3754         PR tree-optimization/37174
3755         * tree-vect-analyze.c (vect_get_and_check_slp_defs): Check that the
3756         def stmt is a part of the loop before accessing its stmt_vec_info.
3758 2008-08-22  Anatoly Sokolov  <aesok@post.ru>
3760         PR target/11259
3761         * config/avr/avr.md (UNSPEC_SWAP): New constants.
3762         (*swap): New insn pattern.
3763         (*ashlqi3): Rename from ashlqi3 insn pattern.
3764         (ashlqi3): New expanders.
3765         (*lshrqi3): Rename from lshrqi3 insn pattern.
3766         (lshrqi3): New expanders.
3767         (ashlqi3_const4, ashlqi3_const5, ashlqi3_const6, lshrqi3_const4,
3768         lshrqi3_const5, lshrqi3_const6): New splitters.
3769         (andi, ashlqi3_l_const4, ashlqi3_l_const5, ashlqi3_l_const6,
3770         lshrqi3_l_const4, lshrqi3_l_const5, lshrqi3_l_const6): Define
3771         peephole2 patterns.
3773 2008-08-22  Richard Guenther  <rguenther@suse.de>
3775         PR tree-optimization/37078
3776         * tree-vrp.c (extract_range_from_unary_expr): Avoid generating
3777         [+INF, +INF] ranges.
3779 2008-08-22  Richard Guenther  <rguenther@suse.de>
3781         PR tree-optimization/37143
3782         * tree-vect-transform.c (vect_create_cond_for_align_checks): Build
3783         a conversion statement instead of a copy.
3785 2008-08-22  Uros Bizjak  <ubizjak@gmail.com>
3787         PR target/37184
3788         * config/i386/i386.c (ix86_match_ccmode): Handle CCAmode,
3789         CCCmode, CCOmode and CCSmode destination modes.
3791         PR target/37191
3792         * config/i386/mmx.md (*vec_extractv2sf_0): Avoid combining registers
3793         from different units in a single alternative.
3794         (*vec_extractv2sf_1): Ditto.
3795         (*vec_extractv2si_0): Ditto.
3796         (*vec_extractv2si_1): Ditto.
3797         * config/i386/sse.md (sse2_storehpd): Ditto.
3798         (sse2_storelpd): Ditto.
3799         (sse2_loadhpd): Ditto.
3800         (sse2_loadlpd): Ditto.
3802         PR target/37197
3803         * config/i386/i386.md (clzsi2_abm): Fix operand 1 constraints.
3804         (popcountsi2): Ditto.
3805         (clzdi2_abm): Ditto.
3806         (popcountdi2): Ditto.
3807         (clzhi2_abm): Ditto.
3808         (popcounthi2): Ditto.
3810 2008-08-22  Richard Guenther  <rguenther@suse.de>
3812         PR middle-end/36548
3813         PR middle-end/37125
3814         * fold-const.c (extract_muldiv_1): Optimize (X * C1) % C2 only
3815         if the multiplication does not overflow.
3817 2008-08-21  Nathan Sidwell  <nathan@codesourcery.com>
3819         * c-ppoutput.c (init_pp_output): Initialize src_line to 1.
3821 2008-08-21  Richard Henderson  <rth@redhat.com>
3823         * configure.ac (HAVE_GAS_CFI_PERSONALITY_DIRECTIVE): Remove
3824         spurrious comma from test.
3825         * configure: Rebuild.
3827 2008-08-21  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
3829         PR 30457
3830         * builtins.c (fold_builtin_next_arg): Add warning about undefined
3831         behaviour.
3833 2008-08-21  Aldy Hernandez  <aldyh@redhat.com>
3835         * c-tree.h (grokfield): New argument.
3836         * c-decl.c (grokfield): Handle new location argument.
3837         * c-parser.c (c_parser_struct_declaration): Pass location to
3838         grokfield.
3840 2008-08-21  Richard Guenther  <rguenther@suse.de>
3842         * tree-ssa-ccp.c (ccp_fold): Fold VIEW_CONVERT_EXPRs of constants.
3844 2008-08-21  Jan Hubicka  <jh@suse.cz>
3846         * cgraph.c (first_cgraph_function_insertion_hook): New variable.
3847         (cgraph_add_function_insertion_hook,
3848         cgraph_remove_function_insertion_hook,
3849         cgraph_call_function_insertion_hooks): New functions.
3850         * cgraph.h (cgraph_add_function_insertion_hook,
3851         cgraph_remove_function_insertion_hook,
3852         cgraph_call_function_insertion_hooks): Declare.
3853         * ipa-reference.c (function_insertion_hook_holder): New variable.
3854         (check_operand, look_for_address_of): When checking late, do not care
3855         about module bitmaps.
3856         (add_new_function): New function.
3857         (generate_summary): Register hooks; zero module bitmaps.
3858         (propagate): Unregister hooks.
3859         * ipa-pure-const.c (function_insertion_hook_holder): New variable.
3860         (add_new_function): New function.
3861         (generate_summary): Register hook.
3862         (propagate): Remove hook.
3864         * ipa-cp.c (ipcp_need_redirect_p): Fix to not be constant 0.
3866         * tree-pass.h (pass_ipa_cp): Make ipa_opt_pass.
3867         * ipa-cp.c (ipcp_update_cloned_node): New function.
3868         (build_const_val): Handle functions correctly; bring type logic
3869         into sync with tree-inline.c
3870         (ipcp_init_stage):  Take care of computing stuff needed by
3871         indirect inlining; update clones.
3872         (ipcp_generate_summary): Break out of ipcp_driver.
3873         (ipcp_driver): Do only execution and transformation.
3874         (pass_ipa_cp): Make IPA_PASS.
3875         * tree-ssa-ccp.c (fold_stmt_r): Check type before trying to fold
3876         offset to address.
3877         * ipa-inline.c (inline_indirect_intraprocedural_analysis): When doing
3878         ipcp, some info is already available.
3879         * ipa-prop.c (ipa_count_arguments): Grow edge lists as needed.
3880         * tree-inline.c (remap_ssa_name): Unshare expression.
3882 2008-08-21  Richard Guenther  <rguenther@suse.de>
3884         * tree-ssa-pre.c (insert_into_preds_of_block): Before inserting
3885         a PHI ask VN if it is already available.
3886         * tree-ssa-sccvn.h (vn_phi_lookup): Declare.
3887         * tree-ssa-sccvn.c (vn_phi_lookup): Export.
3889 2008-08-21  Richard Guenther  <rguenther@suse.de>
3891         PR middle-end/36817
3892         * tree-chrec.c (chrec_apply): Always call chrec_fold_plus which
3893         makes sure to produce a result of the correct type.
3895 2008-08-21  Jan Hubicka  <jh@suse.cz>
3896         Backport from LTO branch:
3898         2008-05-05  Kenneth Zadeck <zadeck@naturalbridge.com>
3899                     Jan Hubicka  <jh@suse.cz>
3901         * ipa-pure-const.c
3902         (init_state, finish_state, set_function_state, generate_summary):
3903         New functions.
3904         (scan_stmt): Renamed from scan_function.  Changed to keep state in
3905         local static vars rather than cgraph aux field.
3906         (propagate): Renamed from static_execute. Changed to keep state in
3907         local static vars rather than cgraph aux field.
3908         (pass_ipa_pure_const): Changed from SIMPLE_IPA_PASS to IPA_PASS.
3909         * tree-pass.h (pass_ipa_pure_const): Turn into IPA_PASS.
3911         2008-07-15  Kenneth Zadeck <zadeck@naturalbridge.com>
3913         * tree-pass.h (pass_ipa_reference): Make into ipa_opt_pass.
3914         * ipa-reference.c (init_function_info, generate_summary,
3915         propagate): New functions.
3916         (analyze_function):  Call init_function_info.
3917         (static_execute): Stripped into generate_summary and propagate.
3918         (pass_ipa_reference): Made into ipa_opt_pass.
3920 2008-08-21  Richard Guenther  <rguenther@suse.de>
3922         PR tree-optimization/37181
3923         * tree-vrp.c (extract_range_from_binary_expr): Check for NULL
3924         folding result.
3925         (extract_range_from_unary_expr): Likewise.
3927 2008-08-21  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
3929         * diagnostic.c (pedwarn_at): Rename as pedwarn.
3930         (pedwarn): Delete.
3931         * toplev.h (pedwarn_at): Likewise.
3932         * builtins.c: Update all calls to pedwarn.
3933         * c-lex.c: Likewise.
3934         * toplev.c: Likewise.
3935         * c-tree.h: Likewise.
3936         * c-decl.c: Likewise.
3937         * c-errors.c: Likewise.
3938         * c-typeck.c: Likewise.
3939         * c-common.c: Likewise.
3940         * c-parser.c: Likewise.
3942 2008-08-20  Joseph Myers  <joseph@codesourcery.com>
3944         PR target/31070
3945         * config/sparc/sparc.c (function_arg_slotno): Handle structure
3946         with MODE_VECTOR_INT mode.
3948 2008-08-21  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
3950         PR middle-end/179
3951         * tree-ssa.c (warn_uninit): Do not warn for variables that can be
3952         initialized outside the current module.
3953         (warn_uninitialized_var): Ignore left-hand side when walking the
3954         trees. Ignore address expressions. Examine VUSE operands in gimple
3955         statements with a variable declaration on the right-hand side.
3957 2008-08-20  Richard Sandiford  <rdsandiford@googlemail.com>
3959         PR bootstrap/37155
3960         * rtlanal.c (subreg_offset_representable_p): Revert last change.
3962 2008-08-20  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
3964         PR 35701
3965         * c-common.c (conversion_warning): Do not warn if applying bit-and
3966         operator to unsigned constant that fits in the target type.
3968 2008-08-20  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
3970         PR c++/35602
3971         * c-common.c (conversion_warning): Do not warn for artificial
3972         expressions.
3974 2008-08-20  Richard Guenther  <rguenther@suse.de>
3976         * tree-vrp.c (op_with_constant_singleton_value_range): New function.
3977         (extract_range_from_binary_expr): Fall back to constant propagation.
3978         (extract_range_from_unary_expr): Likewise.
3980 2008-08-20  Richard Guenther  <rguenther@suse.de>
3982         * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Do not mess
3983         with TREE_THIS_VOLATILE on shared nodes.
3984         (fold_stmt_r): Likewise.
3986 2008-08-20  Jakub Jelinek  <jakub@redhat.com>
3988         PR c/37171
3989         * c-parser.c (c_parser_attributes): For keywords use canonical
3990         spelling for attr_name.
3992 2008-08-20  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
3994         * value-prof.c (check_counter): Revert wrong call to error.
3996 2008-08-20  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
3998         * profile.c: Update calls to inform.
3999         * value-prof.c: Update calls to inform.
4001 2008-08-20  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
4003         * diagnostic.c (inform): Add an explicit location_t parameter.
4004         * toplev.h (inform): Update declaration.
4005         * builtins.c: Update all calls to inform.
4006         * c-common.c: Likewise.
4007         * c-decl.c: Likewise.
4008         * c-opts.c: Likewise.
4009         * c-pch.c: Likewise.
4010         * c-pragma.c: Likewise.
4011         * c-typeck.c: Likewise.
4012         * coverage.c: Likewise.
4013         * opts.c: Likewise.
4014         * toplev.c: Likewise.
4015         * tree-cfg.c: Likewise.
4016         * tree-ssa.c: Likewise.
4018 2008-08-20  H.J. Lu  <hongjiu.lu@intel.com>
4020         PR target/37169
4021         * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): In
4022         V2DI mode, for SSE4.1, use movq instead of vector set if the
4023         second element is zero and inter-unit moves are OK.
4025 2008-08-20  Richard Guenther  <rguenther@suse.de>
4027         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): More
4028         properly handle conversion/copy chains after tuplification.
4030 2008-08-20  Richard Guenther  <rguenther@suse.de>
4032         * passes.c (init_optimization_passes): Move the second
4033         forwprop pass before alias computation.  Remove the second
4034         DCE pass.  Remove the first dominator and phi copy/const
4035         prop passes.
4037 2008-08-20  Nick Clifton  <nickc@redhat.com>
4039         * configure.ac (HAVE_GAS_CFI_DIRECTIVE): Always test for assembler
4040         support of this feature.  Do not assume that a sufficiently new
4041         assembler will support the feature regardless of the target type.
4042         (HAVE_GAS_CFI_PERSONALITY_DIRECTIVE): Likewise.
4043         * configure: Regenerate.
4045 2008-08-20  Richard Guenther  <rguenther@suse.de>
4047         * tree-vrp.c (found_in_subgraph): Remove.
4048         (live): New global static.
4049         (live_on_edge): New function.
4050         (blocks_visited): Remove.
4051         (register_edge_assert_for_2): Use live_on_edge.
4052         (find_conditional_asserts): Remove code dealing with
4053         found_in_subgraph.  Do not walk the CFG.
4054         (find_switch_asserts): Likewise.
4055         (find_assert_locations_1): Renamed from find_assert_locations.
4056         Move finding assert locations for conditional and switch
4057         statements first.  Update live bitmap.  Do not walk the CFG.
4058         (find_assert_locations): New function.
4059         (insert_range_assertions): Remove entry of CFG walk.
4060         Adjust call to find_assert_locations.
4061         * tree-ssa-pre.c (do_regular_insertion): Ignore critical edges
4062         that only can appear because of fake exit edges but assert we
4063         never try to insert on those.
4064         (fini_pre): Do not remove fake exit edges here...
4065         (execute_pre): ...but here, before committing edge inserts.
4067 2008-08-19  Richard Guenther  <rguenther@suse.de>
4069         * passes.c (init_optimization_passes): Exchange store-ccp
4070         with a ccp pass.
4072 2008-08-19  Rafael Espíndola  <espindola@google.com>
4074         * varasm.c (weak_decls): Move earlier in the file.
4075         (assemble_external): Add weak decls to the weak_decls list.
4076         (declare_weak): Don't add decls to the weak_decls list.
4078 2008-08-19  H.J. Lu  <hongjiu.lu@intel.com>
4080         PR target/37157
4081         * config/i386/sse.md (sse2_punpckhqdq, sse2_punpcklqdq): Moved
4082         before (sse2_shufpd_<mode>).
4084 2008-08-19  Jakub Jelinek  <jakub@redhat.com>
4086         PR debug/37156
4087         * pretty-print.c (pp_base_format): Deal with recursive BLOCK trees.
4088         * tree.c (block_nonartificial_location): Likewise.
4090 2008-08-19  Richard Guenther  <rguenther@suse.de>
4092         PR tree-optimization/35972
4093         PR tree-optimization/23094
4094         * tree-ssa-sccvn.h (vn_reference_lookup_pieces): Add maywalk
4095         parameter.
4096         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Properly
4097         handle MISALIGNED_INDIRECT_REF.
4098         (get_ref_from_reference_ops): New helper.
4099         (vn_reference_lookup_pieces): Walk the use-def chain using the
4100         alias-oracle if requested.
4101         * tree-ssa-pre.c (phi_translate_1): Do reference lookup with
4102         walking the use-def chain.
4103         (compute_avail): But not here.
4104         (create_component_ref_by_pieces_1): Properly handle
4105         MISALIGNED_INDIRECT_REF.
4106         (do_regular_insertion): Handle fully redundant
4107         expressions after PHI-translation also for SSA_NAME values, not
4108         only constants.  Correctly use edoubleprime for that.
4110 2008-08-19  Ira Rosen  <irar@il.ibm.com>
4112         * tree-vectorizer.c (supportable_widening_operation): Support
4113         multi-step conversion, return the number of steps in such conversion
4114         and the required intermediate types.
4115         (supportable_narrowing_operation): Likewise.
4116         * tree-vectorizer.h (vect_pow2): New function.
4117         (supportable_widening_operation): Change argument types.
4118         (supportable_narrowing_operation): Likewise.
4119         (vectorizable_type_promotion): Add an argument.
4120         (vectorizable_type_demotion): Likewise.
4121         * tree-vect-analyze.c (vect_analyze_operations): Call
4122         vectorizable_type_promotion and vectorizable_type_demotion with
4123         additional argument.
4124         (vect_get_and_check_slp_defs): Detect patterns.
4125         (vect_build_slp_tree): Add an argument, don't fail in case of multiple
4126         types.
4127         (vect_analyze_slp_instance): Don't fail in case of multiple types. Call
4128         vect_build_slp_tree with correct arguments. Calculate unrolling factor
4129         according to the smallest type in the loop.
4130         (vect_detect_hybrid_slp_stmts): Include statements from patterns.
4131         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Call
4132         supportable_widening_operation with correct arguments.
4133         * tree-vect-transform.c (vect_get_slp_defs): Allocate output vector
4134         operands lists according to the number of vector statements in left
4135         or right node, if exists.
4136         (vect_gen_widened_results_half): Remove unused argument.
4137         (vectorizable_conversion): Call supportable_widening_operation,
4138         supportable_narrowing_operation, and vect_gen_widened_results_half
4139         with correct arguments.
4140         (vectorizable_assignment): Change documentation, support multiple
4141         types in SLP.
4142         (vectorizable_operation): Likewise.
4143         (vect_get_loop_based_defs): New function.
4144         (vect_create_vectorized_demotion_stmts): Likewise.
4145         (vectorizable_type_demotion): Support loop-aware SLP and general
4146         multi-step conversion. Call vect_get_loop_based_defs and
4147         vect_create_vectorized_demotion_stmts for transformation.
4148         (vect_create_vectorized_promotion_stmts): New function.
4149         (vectorizable_type_promotion): Support loop-aware SLP and general
4150         multi-step conversion. Call vect_create_vectorized_promotion_stmts
4151         for transformation.
4152         (vectorizable_store): Change documentation, support multiple
4153         types in SLP.
4154         (vectorizable_load): Likewise.
4155         (vect_transform_stmt): Pass SLP_NODE to
4156         vectorizable_type_promotion and vectorizable_type_demotion.
4157         (vect_schedule_slp_instance): Move here the calculation of number
4158         of vectorized statements for each node from...
4159         (vect_schedule_slp): ... here.
4160         (vect_transform_loop): Call vect_schedule_slp without the last
4161         argument.
4163 2008-08-19  Dorit Nuzman  <dorit@il.ibm.com>
4165         PR bootstrap/37152
4166         * tree-vect-transform.c (vect_create_epilog_for_reduction): Change =
4167         to == in assert statement.
4168         (vectorizable_reduction): Fix typo.
4170 2008-08-18  H.J. Lu  <hongjiu.lu@intel.com>
4172         PR bootstrap/37153
4173         * value-prof.c (check_counter): Dereference pointer to overall
4174         count when printing it.
4176 2008-08-18  H.J. Lu  <hongjiu.lu@intel.com>
4178         * profile.h: Really add it.
4180 2008-08-18  H.J. Lu  <hongjiu.lu@intel.com>
4182         * mcf.c: Really add it.
4184 2008-08-18  Paul Yuan  <yingbo.com@gmail.com>
4185             Vinodha Ramasamy  <vinodha@google.com>
4187         * cgraph.c (cgraph_edge): Handle inconsistent counts when setting
4188         count_scale.
4189         * value-prof.c (check_counter): Fix the counter if
4190         flag_profile_correction is true.
4191         (tree_divmod_fixed_value_transform, tree_mod_pow2_value_transform,
4192         tree_mod_subtract_transform):
4193         Follow check_counter parameter change.
4194         * common.opt (fprofile-correction): New option.
4195         * mcf.c: New file.
4196         * profile.h: Likewise.
4197         * profile.c (edge_info, EDGE_INFO): Moved to new file profile.h.
4198         (sum_edge_counts, is_edge_inconsistent, correct_negative_edge_counts,
4199         is_inconsistent, set_bb_counts, read_profile_edge_counts): New
4200         functions.
4201         (compute_branch_probabilities): Refactored. Invokes mcf_smooth_cfg if
4202         flag_profile_correction is set.
4204 2008-08-18  Richard Sandiford  <rdsandiford@googlemail.com>
4206         * rtlanal.c (subreg_offset_representable_p): Check HARD_REGNO_MODE_OK.
4208 2008-08-18  Tomas Bily  <tbily@suse.cz>
4210         * tree.h (IS_CONVERT_EXPR_CODE_P): Renamed to CONVERT_EXPR_CODE_P.
4211         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Use
4212         CONVERT_EXPR_P.
4213         * tree-data-ref.c (split_constant_offset_1): Likewise.
4214         * tree-inline.c (estimate_operator_cost): Use CASE_CONVERT.
4215         * tree-sra.c (sra_walk_expr): Likewise.
4216         * matrix-reorg.c (ssa_accessed_in_assign_rhs): Likewise.
4217         * tree-ssa-loop-niter.c (expand_simple_operations): Likewise.
4218         * gimple.h (gimple_assign_cast_p): Use CONVERT_EXPR_CODE_P.
4219         * tree-ssa-structalias.c (find_func_aliases, find_func_aliases):
4220         Likewise.
4221         * gimple.c (gimple_assign_unary_nop_p): Likewise.
4222         * tree-vect-transform.c (vectorizable_type_demotion)
4223         (vectorizable_type_promotion): Likewise.
4224         * tree-inline.c (expand_call_inline):
4225         * tree-ssa-forwprop.c (get_prop_source_stmt, can_propagate_from)
4226         (forward_propagate_addr_expr_1, forward_propagate_comparison)
4227         (tree_ssa_forward_propagate_single_use_vars): Likewise.
4228         * expr.c (expand_expr_real_1): Likewise.
4229         * tree-ssa-dom.c (hashable_expr_equal_p, iterative_hash_hashable_expr)
4230         (gimple_assign_unary_useless_conversion_p): Likewise.
4231         * tree-stdarg.c (execute_optimize_stdarg): Likewise.
4232         * tree-ssa-ccp.c (ccp_fold, fold_gimple_assign): Likewise.
4233         * fold-const.c (fold_unary): Likewise.
4234         * tree.h (CONVERT_EXPR_P): Likewise.
4235         * tree.c (simple_cst_equal, iterative_hash_expr): Likewise.
4236         * tree-ssa-loop-im.c (rewrite_bittest): Likewise.
4237         * tree-vrp.c:
4238         (register_edge_assert_for_2, extract_range_from_unary_expr)
4239         (register_edge_assert_for_1): Likewise.
4241 2008-08-18  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
4243         * real.h (dconst_e, dconst_third, dconst_sqrt2, dconst_e_ptr,
4244         dconst_third_ptr, dconst_sqrt2_ptr): Declare.
4245         (enum real_value_const): Delete.
4246         (get_real_const): Delete.
4247         * real.c (get_real_const): Delete.
4248         (dconst_e_ptr): Define.
4249         (dconst_third_ptr): Define.
4250         (dconst_sqrt2_ptr): Define.
4251         * builtins.c: Update all callers.
4253 2008-08-18  Richard Guenther  <rguenther@suse.de>
4255         * tree-ssa-reassoc.c (reassociate_bb): Properly reset the
4256         statement iterator after statement removal.
4258 2008-08-18  Andreas Tobler  <a.tobler@schweiz.org>
4260         * config/rs6000/driver-rs6000.c (detect_caches_freebsd): New function.
4261         (detect_processor_freebsd): Likewise.
4262         (host_detect_local_cpu): Call newly added functions for FreeBSD.
4264 2008-08-18  Richard Guenther  <rguenther@suse.de>
4266         * tree-cfg.c (verify_types_in_gimple_assign): Verify copies
4267         and loads have the correct types.
4269 2008-08-18  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
4271         PR cpp/7263
4272         * c-opts.c (cpp_opts): Remove static.
4273         * c-parser.c (cpp_opts): Declare it extern.
4274         (disable_extension_diagnostics): Handle cpp options.
4275         (enable_extension_diagnostics): Likewise.
4277 2008-08-18  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
4279         * diagnostics.c (permerror_at): Rename as permerror.
4280         (permerror): Delete.
4281         * toplev.h: Likewise.
4283 2008-08-18  Richard Guenther  <rguenther@suse.de>
4285         * passes.c (init_optimization_passes): Remove cleanup_cfg1,
4286         sdse1 and addressables2 passes.  Replace dce1 with cddce1.
4287         Move call_cdce before build_alias.  Move copyrename2,
4288         cunrolli and ccp2 beafore build_alias.  Re-add addressable2
4289         right after final inlining.
4290         * tree-cfg.c (build_gimple_cfg): Do not dump function here.
4291         (pass_build_cfg): But instead via TODO_dump_func.
4293 2008-08-18  Richard Guenther  <rguenther@suse.de>
4295         * tree-sra.c (generate_element_init_1): Deal with NULL constructor
4296         element index.
4297         (scalarize_init): If we failed to generate some initializers
4298         do not generate zeros for not instantiated members.  Instead
4299         rely on the copy out.
4300         * tree-ssa-operands.c (get_addr_dereference_operands): Warn
4301         about missing flow-sensitive alias info only if we have
4302         aliases computed.
4304 2008-08-17  Nick Clifton  <nickc@redhat.com>
4306         * doc/extend.texi (Function Attributes): Fix typo in description
4307         if hot function attribute.
4309 2008-08-17  Daniel Jacobowitz  <dan@codesourcery.com>
4310             Richard Sandiford  <rdsandiford@googlemail.com>
4312         * doc/install.texi (--with-mips-plt): Document.
4313         * doc/invoke.texi (-mplt, -mno-plt): Document.
4314         * config.gcc (mips*-*-*): Add mips-plt to supported_defaults
4315         and handle ${with_mips_plt}.
4316         * config/mips/mips.opt (mplt): New option.
4317         * config/mips/mips.h (TARGET_ABICALLS_PIC0): New macro.
4318         (TARGET_ABICALLS_PIC2): Likewise.
4319         (TARGET_GPWORD): Return false for TARGET_ABSOLUTE_ABICALLS.
4320         (OPTION_DEFAULT_SPECS): Add a mips-plt entry.
4321         (ASM_SPEC): Use !mabi=* instead of !mabi*.
4322         (MIPS_CALL): Use TARGET_ABICALLS_PIC2 instead of TARGET_ABICALLS
4323         to decide whether to output ".option picX" directives.
4324         * config/mips/linux.h (SUBTARGET_ASM_SPEC): Remove -mabi=64 handling.
4325         Pass -call_nonpic rather than -KPIC for -mplt.
4326         (BASE_DRIVER_SELF_SPECS): Remove -mplt if -mno-shared is not present
4327         on the command line.  Also remove it when -mabi=64 is used without
4328         -msym32.
4329         * config/mips/linux64.h (SUBTARGET_ASM_SPEC): Delete.
4330         * config/mips/mips.c (mips_use_pic_fn_addr_reg_p): Handle
4331         TARGET_ABICALLS_PIC0.
4332         (mips_classify_symbol): Use TARGET_ABICALLS_PIC2 instead of
4333         TARGET_ABICALLS.
4334         (mips16_build_function_stub): Only output ".option pic" directives
4335         and PIC stubs if TARGET_ABICALLS_PIC2.  Call through $25 instead of $1.
4336         (mips16_build_call_stub): Fix comment and remove redundant
4337         ".set at"/"set .noat" directives.
4338         (mips_function_rodata_section): Use the default behaviour for
4339         TARGET_ABSOLUTE_ABICALLS.
4340         (mips_file_start): Emit ".option pic0" for TARGET_ABICALLS_PIC0.
4341         (mips_global_pointer): Handle TARGET_ABICALLS_PIC0.
4342         (mips_restore_gp): Do nothing if the current function doesn't use
4343         a global pointer.
4344         (mips_expand_prologue): Only save $gp if the current function uses it.
4345         Use a normal move for TARGET_ABICALLS_PIC0.
4346         (mips_override_options): Only set flag_pic if TARGET_ABICALLS_PIC2.
4348 2008-08-17  Richard Sandiford  <rdsandiford@googlemail.com>
4350         * config/mips/mips.c (mips_save_reg_p): Don't short-circuit rest
4351         of function when handling GLOBAL_POINTER_REGNUM.
4353 2008-08-16  Eric Botcazou  <ebotcazou@adacore.com>
4355         PR ada/20548
4356         * common.opt (-fstack-check): Do not declare the variable here.
4357         (-fstack-check=): New option variant.
4358         * doc/invoke.texi (Code Gen Options): Document it.
4359         * expr.h (STACK_OLD_CHECK_PROTECT): New macro.
4360         (STACK_CHECK_PROTECT): Bump to 3 pages if DWARF-2 EH is used.
4361         (STACK_CHECK_STATIC_BUILTIN): New macro.
4362         * doc/tm.texi (Stack Checking): Document STACK_CHECK_STATIC_BUILTIN.
4363         * opts.c: Include expr.h.
4364         (common_handle_option) <OPT_fold_stack_check_>: New case.
4365         <OPT_fstack_check>: Likewise.
4366         * calls.c (initialize_argument_information): Use TYPE_SIZE_UNIT
4367         consistently in the test for variable-sized types.  Adjust for
4368         new behaviour of flag_stack_check.
4369         * explow.c: Include except.h.
4370         (allocate_dynamic_stack_space): Do not take into account
4371         STACK_CHECK_MAX_FRAME_SIZE for static builtin stack checking.
4372         * function.c (gimplify_parameters): Use DECL_SIZE_UNIT in the test
4373         for variable-sized parameters.  Treat all parameters whose size is
4374         greater than STACK_CHECK_MAX_VAR_SIZE as variable-sized if generic
4375         stack checking is enabled.
4376         * gimplify.c (gimplify_decl_expr): Treat non-static objects whose
4377         size is greater than STACK_CHECK_MAX_VAR_SIZE as variable-sized
4378         if generic stack checking is enabled.
4379         (expand_function_end): Adjust for new behaviour of flag_stack_check.
4380         * reload1.c (reload): Likewise.
4381         * stmt.c (expand_decl): Assert that all automatic variables have
4382         fixed size at this point and remove dead code.
4383         * flags.h (stack_check_type): New enumeration type.
4384         (flag_stack_check): Declare.
4385         * toplev.c (flag_stack_check): New global variable.
4386         * Makefile.in (opts.o): Add dependency on EXPR_H.
4387         (explow.o): Add dependency on except.h.
4389 2008-08-16  Andy Hutchinson  <hutchinsonandy@aim.com>
4391         * config/avr/avr.c (avr_override_options): Reduce value of
4392         PARAM_INLINE_CALL_COST.
4394 2008-08-15  Eric Botcazou  <ebotcazou@adacore.com>
4396         * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: When converting
4397         to BLKmode, try to fetch an inner memory reference.  Use 'mode' in
4398         lieu of TYPE_MODE (type) throughout.
4400 2008-08-15  Joseph Myers  <joseph@codesourcery.com>
4402         * config/arm/arm.c (add_minipool_backward_ref): Check for
4403         8-byte-aligned entries in second case of forcing insertion after a
4404         particular entry.  Change third case to avoid inserting
4405         non-8-byte-aligned entries before 8-byte-aligned ones.
4407 2008-08-15  Richard Guenther  <rguenther@suse.de>
4409         * tree-ssa-ccp.c (maybe_fold_offset_to_reference): Do not
4410         strip components for unknown size accesses.
4412 2008-08-15  Wolfgang Gellerich  <gellerich@de.ibm.com>
4414         * config/s390/2097.md New file.
4415         * config/s390/s390.md ("z10prop" attribute): Define none,
4416         z10_super, z10_super_E1, z10_super_A1, z10_super_c,
4417         z10_super_c_E1, z10_fwd, z10_fwd_A1, z10_fwd_A3, z10_fwd_E1,
4418         z10_rec, z10_fr, z10_fr_A3, z10_fr_E1, z10_c, and z10_cobra as
4419         possible values and apply them to insns as appropriate.
4420         ("type" attribute): Removed itof and added ftrunctf,ftruncdf,
4421         ftruncsd, ftruncdd, itoftf, itofdf, itofsf, itofdd, itoftd,
4422         fdivdd, fdivtd, floaddd, floadsd, fmuldd, fmultd, fsimpdd,
4423         fsimpsd, fsimptd, fstoredd, fstoresd, ftoidfp as possible
4424         values.
4425         ("bfp" mode attribute): Removed.  Every occurence replaced
4426         with <mode>.
4427         * config/s390/s390.c (struct "z10_cost"): Updated entries.
4428         * config/s390/2084.md (insn_reservation "x_itof"): Updated
4429           type attribute.
4431 2008-08-14  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
4433         PR c/28152
4434         * c-parser.c (c_lex_one_token): Do not store the canonical spelling
4435         for keywords.
4437 2008-08-14  Dorit Nuzman  <dorit@il.ibm.com>
4439         * tree-vect-transform.c (vect_create_epilog_for_reduction): Takes an
4440         additional argument. Support reduction when duplication is needed due
4441         to data-types of different sizes in the loop.
4442         (get_initial_def_for_induction): Fix printout.
4443         (vect_get_vec_def_for_stmt_copy): Support case where the
4444         vec_stmt_for_operand is a phi node.
4445         (vectorizable_reduction): Support reduction when duplication is needed
4446         due to data-types of different sizes in the loop.
4447         (vectorizable_call): Remove restriction to not vectorize in case we
4448         have data-types of different sizes in the loop.
4449         (vectorizable_conversion): Likewise.
4450         (vectorizable_operation): Likewise.
4451         (vectorizable_type_demotion): Likewise.
4452         (vectorizable_type_promotion): Likewise.
4453         (vectorizable_induction): Add restriction to not vectorize in case
4454         we have data-types of different sizes in the loop.
4456 2008-08-14  Christophe Saout  <christophe@saout.de>
4457             Uros Bizjak  <ubizjak@gmail.com>
4459         PR target/37101
4460         * config/i386/sse.md (vec_concatv2di): Remove movlps alternative.
4461         (*vec_concatv2di_rex64_sse4_1): Ditto.
4462         (*vec_concatv2di_rex64_sse): Ditto.
4464 2008-08-14  Jakub Jelinek  <jakub@redhat.com>
4466         PR middle-end/37103
4467         * fold-const.c (fold_widened_comparison): Do not allow
4468         sign changes that change the result even if shorter type
4469         is wider than arg1_unw's type.
4471 2008-08-13  Kazu Hirata  <kazu@codesourcery.com>
4473         * gcc.dg/arm-g2.c, gcc.dg/arm-mmx-1.c, gcc.dg/arm-scd42-2.c:
4474         Skip if the multilib testing specifies -march that does not
4475         agree with the one specified in the testcase.
4477 2008-08-13  Joseph Myers  <joseph@codesourcery.com>
4479         * config/sparc/sparc.c (emit_soft_tfmode_cvt): Explicitly sign or
4480         zero extend SImode values being converted to TFmode before passing
4481         to libcalls.
4483 2008-08-13  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4485         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Predefine
4486         __PPU__ when targeting the Cell/B.E. PPU processor.
4488 2008-08-13  Eric Botcazou  <ebotcazou@adacore.com>
4490         * gimple.h (gimple_call_set_chain): Accept SSA variables.
4491         * tree-ssa-pre.c (create_component_ref_by_pieces_1) <CALL_EXPR>:
4492         Rematerialize the static chain, if any.
4493         * tree-ssa-sccvn.c (copy_reference_ops_from_call): Also copy the
4494         static chain.
4496 2008-08-13  H.J. Lu  <hongjiu.lu@intel.com>
4498         * dwarf2out.c (dwarf_stack_op_name): Remove prototype.
4499         (new_loc_descr): Likewise.
4500         (add_loc_descr): Likewise.
4501         (size_of_loc_descr): Likewise.
4502         (size_of_locs): Likewise.
4503         (output_loc_operands): Likewise.
4504         (output_loc_sequence): Likewise.
4505         (new_reg_loc_descr): New.
4506         (build_cfa_loc): Use it.
4507         (build_cfa_aligned_loc): Likewise.
4508         (one_reg_loc_descriptor): Likewise.
4509         (based_loc_descr): Likewise.
4511 2008-08-13  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
4513         PR 30551
4514         * doc/invoke.texi (Wmain): Update.
4515         * c-decl.c (start_decl): warn_main is only 0 or 1.
4516         (start_function): Likewise. Fix formatting.
4517         (finish_function): Delete redundant warning.
4518         * c.opt (Wmain): Add Var(warn_main) and Init(-1).
4519         * c-opts (c_common_handle_option): -Wall only has effect if
4520         warn_main is uninitialized. OPT_Wmain is automatically
4521         handled. -pedantic also enables Wmain.
4522         (c_common_post_options): Handle all logic for Wmain here.
4523         * c-common.c (warn_main): Delete.
4524         (check_main_parameter_types): Make pedwarns conditional on
4525         OPT_Wmain.
4526         * c-common.h (warn_main): Delete.
4528 2008-08-13  H.J. Lu  <hongjiu.lu@intel.com>
4530         PR middle-end/36701
4531         * expr.c (emit_group_store): Allocate stack temp with the
4532         largest alignment when copying from register to stack.
4534 2008-08-13  Richard Guenther  <rguenther@suse.de>
4536         * tree.h (maybe_fold_offset_to_address): Declare.
4537         * tree-ssa-ccp.c (surely_varying_stmt_p): Fix typo in last commit.
4538         (ccp_fold): Handle pointer conversions the same as fold_stmt.
4539         Likewise for POINTER_PLUS_EXPR.
4540         (maybe_fold_offset_to_reference): Enable disabled code.
4541         (maybe_fold_offset_to_address): New function.
4542         (fold_stmt_r): Use it.
4543         (fold_gimple_assign): Likewise.
4544         * gimplify.c (gimplify_conversion): Use maybe_fold_offset_to_address.
4545         (gimplify_expr): Likewise.
4547 2008-08-13  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
4549         * toplev.h (pedwarn_at): Fix declaration.
4551 2008-08-13  Joseph Myers  <joseph@codesourcery.com>
4553         * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
4554         LINK_SPEC): Use %R in -Y P argument.
4556 2008-08-13  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
4558         PR c/15236
4559         * diagnostic.c (pedwarn_at): New.
4560         * toplev.h (pedwarn_at): Declare.
4561         * c-tree.h (build_enumerator): Update declaration.
4562         * c-decl.c (finish_enum): Update comment.
4563         (build_enumerator): Take a location parameter. Give a pedwarn but do
4564         not perform any conversion.
4565         * c-parser.c (c_parser_enum_specifier): Set correct location for
4566         enumerator.
4568 2008-08-13  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
4570         PR 35635
4571         * c-common.c (conversion_warning): Use a switch. Ignore boolean
4572         expressions except for conversions to signed:1 bitfields. Handle
4573         COND_EXPR with constant operands.
4575 2008-08-13  Richard Guenther  <rguenther@suse.de>
4577         PR tree-optimization/15255
4578         * tree-ssa-reassoc.c (linearize_expr_tree): Declare.
4579         (struct oecount_s): New struct and VEC types.
4580         (cvec): New global.
4581         (oecount_hash): New function.
4582         (oecount_eq): Likewise.
4583         (oecount_cmp): Likewise.
4584         (zero_one_operation): New function.
4585         (build_and_add_sum): Likewise.
4586         (undistribute_ops_list): Perform un-distribution of multiplication
4587         and division on the chain of summands.
4588         (should_break_up_subtract): Also break up subtracts for factors.
4589         (reassociate_bb): Delete dead visited statements.
4590         Call undistribute_ops_list.  Re-sort and optimize if it did something.
4591         * passes.c (init_optimization_passes): Move DSE before
4592         reassociation.
4593         * tree-ssa-loop-niter.c (stmt_dominates_stmt_p): Correctly handle
4594         PHI nodes.
4596 2008-08-12  Janis Johnson  <janis187@us.ibm.com>
4598         * doc/invoke.texi (-fipa-pta): Say the option is experimental.
4600         * doc/invoke.texi: Revert unintended checkin.
4602 2008-08-12  Nathan Froyd  <froydnj@codesourcery.com>
4604         PR libgomp/26165
4605         * gcc.c (include_spec_function): Tweak call to find_a_file.
4607 2008-08-12  Jakub Jelinek  <jakub@redhat.com>
4609         PR middle-end/37014
4610         * expr.c (expand_expr_real_1): Handle TRUTH_ANDIF_EXPR
4611         and TRUTH_ORIF_EXPR.
4612         * dojump.c (do_jump): Likewise.
4614         PR tree-optimization/37084
4615         * tree-inline.c (copy_bb): Call gimple_regimplify_operands
4616         if id->regimplify, don't assume stmt is a cast assignment.
4618 2008-08-12  Anatoly Sokolov  <aesok@post.ru>
4620         * final.c (final_scan_insn): Use app_enable/app_disable functions.
4622 2008-08-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4624         PR bootstrap/37097
4625         * builtins.c (do_mpfr_bessel_n): Fix copy-and-paste bug introduced
4626         by last change.
4628 2008-08-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4630         * defaults.h (TARGET_FLOAT_FORMAT): Remove.
4631         (UNKNOWN_FLOAT_FORMAT, IEEE_FLOAT_FORMAT, VAX_FLOAT_FORMAT): Remove.
4633         * config/alpha/alpha.h (TARGET_FLOAT_FORMAT): Remove.
4634         * config/iq2000/iq2000.h (TARGET_FLOAT_FORMAT): Remove.
4635         * config/pdp11/pdp11.h (TARGET_FLOAT_FORMAT): Remove.
4636         * config/score/score.h (TARGET_FLOAT_FORMAT): Remove.
4637         * config/vax/vax.h (TARGET_FLOAT_FORMAT): Remove.
4639         * doc/tm.texi (Storage Layout): Remove documentation for
4640         TARGET_FLOAT_FORMAT.
4642         * simplify-rtx.c (simplify_binary_operation_1): Replace
4643         TARGET_FLOAT_FORMAT check by appropriate HONOR_... checks.
4645 2008-08-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4647         * real.h (struct real_format): New member has_sign_dependent_rounding.
4648         * real.c (ieee_single_format, mips_single_format, motorola_single_format,
4649         spu_single_format, ieee_double_format, mips_double_format,
4650         motorola_double_format, ieee_extended_motorola_format,
4651         ieee_extended_intel_96_format, ieee_extended_intel_128_format,
4652         ieee_extended_intel_96_round_53_format, ibm_extended_format,
4653         mips_extended_format, ieee_quad_format, mips_quad_format,
4654         vax_f_format, vax_d_format, vax_g_format): Initialize it.
4655         * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
4657         * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES,
4658         MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): Remove.
4659         * config/spu/spu.h (MODE_HAS_NANS, MODE_HAS_INFINITIES,
4660         MODE_HAS_SIGN_DEPENDENT_ROUNDING): Remove.
4661         (ROUND_TOWARDS_ZERO): Likewise.
4663         * real.h (REAL_MODE_FORMAT): Protect MODE against macro expansion.
4664         (FLOAT_MODE_FORMAT): New macro.
4665         (REAL_MODE_FORMAT_COMPOSITE_P): Remove, replace by ...
4666         (MODE_COMPOSITE_P): ... this new macro.
4667         (MODE_HAS_NANS, MODE_HAS_INFINITIES, MODE_HAS_SIGNED_ZEROS,
4668         MODE_HAS_SIGN_DEPENDENT_ROUNDING): New macros.
4669         * machmode.h (GET_MODE_INNER): Cast result to enum machine_mode.
4671         * flags.h: Include "real.h".
4673         * fold-const.c (const_binop): Use MODE_COMPOSITE_P instead of
4674         REAL_MODE_FORMAT_COMPOSITE_P.
4675         * simplify-rtx.c (simplify_const_binary_operation): Likewise.
4677         * doc/tm.texi (Storage Layout): Remove documentation of
4678         MODE_HAS_NANS, MODE_HAS_INFINITIES, MODE_HAS_SIGNED_ZEROS,
4679         MODE_HAS_SIGN_DEPENDENT_ROUNDING.  Update documentation of
4680         ROUND_TOWARDS_ZERO and LARGEST_EXPONENT_IS_NORMAL to clarify
4681         they only apply to libgcc2.a.
4683 2008-08-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4685         * config/spu/float_disf.c: New file.
4686         * config/spu/float_unsdisf.c: New file.
4687         * config/spu/t-elf (LIB2FUNCS_STATIC_EXTRA): Add them.
4688         (LIB2FUNCS_EXCLUDE): Define.
4690 2008-08-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4691             Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
4693         * real.h (struct real_format): New member round_towards_zero.
4694         * real.c (round_for_format): Respect fmt->round_towards_zero.
4695         (ieee_single_format, mips_single_format, motorola_single_format,
4696         spu_single_format, ieee_double_format, mips_double_format,
4697         motorola_double_format, ieee_extended_motorola_format,
4698         ieee_extended_intel_96_format, ieee_extended_intel_128_format,
4699         ieee_extended_intel_96_round_53_format, ibm_extended_format,
4700         mips_extended_format, ieee_quad_format, mips_quad_format,
4701         vax_f_format, vax_d_format, vax_g_format): Initialize it.
4702         * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
4704         * builtins.s (do_mpfr_arg1): Consider round_towards_zero member of
4705         real_format to choose rounding mode when calling MPFR functions.
4706         (do_mpfr_arg2, do_mpfr_arg3, do_mpfr_sincos): Likewise.
4707         (do_mpfr_bessel_n, do_mpfr_remquo, do_mpfr_lgamma_r): Likewise.
4709         * real.h (real_to_decimal_for_mode): Add prototype.
4710         * real.c (real_to_decimal_for_mode): Renames old real_to_decimal.
4711         Respect target rounding mode when generating decimal representation.
4712         (real_to_decimal): New stub for backwards compatibility.
4713         * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Use
4714         real_to_decimal_for_mode instead of real_to_decimal.
4716         * config/spu/spu.md ("floatdisf2", "floatunsdisf2"): New.
4718 2008-08-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4719             Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
4721         * real.c (spu_single_format): New variable.
4722         * real.h (spu_single_format): Declare.
4724         * config/spu/spu.c (spu_override_options): Install SFmode format.
4725         (spu_split_immediate): Use integer mode to operate on pieces of
4726         floating-point values in all cases.
4728         * config/spu/spu.md (UNSPEC_FLOAT_EXTEND, UNSPEC_FLOAT_TRUNCATE): New.
4729         ("extendsfdf2"): Use UNSPEC_FLOAT_EXTEND instead of FLOAT_EXTEND.
4730         ("truncdfsf2"): Use UNSPEC_FLOAT_TRUNCATE instead of FLOAT_TRUNCATE.
4732 2008-08-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4734         * config/spu/spu.c (spu_safe_dma): Respect TARGET_SAFE_DMA.
4736 2008-08-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4738         * config/spu/spu.h (DWARF_FRAME_RETURN_COLUMN): Define.
4740 2008-08-12  Jakub Jelinek  <jakub@redhat.com>
4742         PR c++/36688
4743         * gimplify.c (gimplify_modify_expr_rhs): Test TREE_READONLY
4744         on the VAR_DECL instead of TYPE_READONLY on its type.
4746 2008-08-12  Ira Rosen  <irar@il.ibm.com>
4748         * tree-vectorizer.c: Depend on langhooks.h.
4749         (supportable_widening_operation): Add two arguments. Support double
4750         type conversions.
4751         (supportable_narrowing_operation): Likewise.
4752         * tree-vectorizer.h (supportable_widening_operation): Add two
4753         arguments.
4754         (supportable_narrowing_operation): Likewise.
4755         * tree-vect-patterns.c (vect_recog_widen_mult_pattern) : Call
4756         supportable_widening_operation with correct arguments.
4757         * tree-vect-transform.c (vectorizable_conversion): Likewise.
4758         (vectorizable_type_demotion): Support double type conversions.
4759         (vectorizable_type_promotion): Likewise.
4760         * Makefile.in (tree-vectorizer.o): Depend on langhooks.h.
4762 2008-08-11  Michael Matz  <matz@suse.de>
4764         * i386/i386.c (override_options): Move initialisation from
4765         flag_schedule_insns_after_reload to here from ...
4766         (optimization_options): ... here.
4768 2008-08-11  Jakub Jelinek  <jakub@redhat.com>
4770         PR rtl-optimization/36998
4771         * dwarf2out.c (compute_barrier_args_size_1,
4772         compute_barrier_args_size): Temporarily remove assertions.
4774 2008-08-10  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
4776         PR middle-end/20644
4777         * tree-ssa.c (struct walk_data): Add new flag
4778         warn_possibly_uninitialized.
4779         (warn_uninitialized_var): Use it.
4780         (warn_uninitialized_vars): New.
4781         (execute_early_warn_uninitialized): Call it.
4782         (execute_late_warn_uninitialized): Likewise.
4784 2008-08-09  Andrew Pinski  <andrew_pinski@playstation.sony.com>
4786         PR middle-end/36238
4787         * reload1.c (gen_reload): Guard calls to get_secondary_mem
4788         for memory subregs.
4790 2008-08-09  Jan Hubicka  <jh@suse.cz>
4792         PR target/37055
4793         * optabs.c (maybe_emit_unop_insn): Remove produced code if
4794         expansion failed.
4795         (expand_fix): Be prepared for expansion to fail.
4796         (expand_sfix_optab): Remove instructions if expansion failed.
4798 2008-08-09  Anatoly Sokolov  <aesok@post.ru>
4800         * config/avr/avr.c (avr_mcu_types): Move the AT43USB320 device to
4801         avr31 architecture.
4802         * config/avr/avr.h (CRT_BINUTILS_SPECS): (Ditto.).
4803         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
4805 2008-08-09  Richard Sandiford  <rdsandiford@googlemail.com>
4807         * config.gcc (mips*-*-linux*, mips64*-*-linux*): Add
4808         mips/t-libgcc-mips16 to tmake_file.
4809         * config/mips/mips-protos.h (mips_call_type): New enum.
4810         (mips_pic_base_register, mips_got_load): Declare.
4811         (mips_restore_gp): Take an rtx argument.
4812         (mips_use_pic_fn_addr_reg_p): Declare.
4813         (mips_expand_call): Replace the sibcall_p argument with
4814         a mips_call_type argument.  Add a lazy_p parameter.
4815         (mips_split_call): Declare.
4816         * config/mips/mips.h (MIPS16_PIC_TEMP_REGNUM): New macro.
4817         (MIPS16_PIC_TEMP): Likewise.
4818         (reg_class): Delete M16_NA_REGS.
4819         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update accordingly.
4820         (SYMBOL_FLAG_BIND_NOW, SYMBOL_REF_BIND_NOW_P): New macros.
4821         (mips_split_hi_p): Declare.
4822         * config/mips/mips.c (mips_split_hi_p): New array.
4823         (mips_regno_to_class): Change M16_NA_REGS entries to M16_REGS.
4824         (mips_got_symbol_type_p): New function.
4825         (mips_global_symbol_p): Check SYMBOL_REF_EXTERNAL_P.
4826         (mips16_stub_function_p): New function.
4827         (mips16_local_function_p): Likewise.
4828         (mips_use_pic_fn_addr_reg_p): Likewise.
4829         (mips_cannot_force_const_mem): Return false for HIGHs.
4830         Extend CONST_INT and symbolic handling to MIPS16, using
4831         mips_symbol_insns to check that the base symbol type is a
4832         legitimate constant.  Reject GOT-based constants if
4833         TARGET_MIPS16_PCREL_LOADS.
4834         (mips_const_insns): Check targetm.cannot_force_const_mem when
4835         decomposing a symbolic base and a large offset.
4836         (mips_emit_call_insn): Add ORIG_ADDR and ADDR parameters.
4837         When calling a function that needs $25 from MIPS16 code,
4838         move the target address into $25 separately and add a USE
4839         to the call insn.
4840         (mips16_gp_pseudo_reg): Insert the initializer immediately
4841         before the first real insn.
4842         (mips_pic_base_register, mips_got_load): New functions.
4843         (mips_split_symbol): Generalize the name of the LO_SUM_OUT
4844         parameter to LOW_OUT.  Say that it can be any valid SET_SRC
4845         when splitting a load-address operation.  Split SYMBOL_GOT_DISP
4846         constants and highs of SYMBOL_GOT_PAGE_OFST constants.
4847         (mips_call_tls_get_addr): Update the call to mips_expand_call,
4848         also passing NULL_RTX rather than const0_rtx as the aux argument.
4849         (mips_rewrite_small_data_p): Check mips_lo_relocs and mips_split_p
4850         instead of TARGET_EXPLICIT_RELOCS.
4851         (mips_ok_for_lazy_binding_p): Check SYMBOL_REF_BIND_NOW_P.
4852         (mips_load_call_address): Replace the sibcall_p argument with
4853         a mips_call_type argument.  Use mips_got_load.
4854         (mips16_local_alias): New structure.
4855         (mips16_local_aliases): New variable.
4856         (mips16_local_aliases_hash): New function.
4857         (mips16_local_aliases_eq): Likewise.
4858         (mips16_local_alias): Likewise.
4859         (mips16_stub_function): Likewise.
4860         (mips16_build_function_stub): Create a local alias for the target
4861         function.  Handle TARGET_ABICALLS.  For PIC abicalls, emit a
4862         .cpload directive and an R_MIPS_NONE relocation for the target
4863         function, then load the alias rather than the function itself.
4864         Wrap the non-PIC abicalls version in ".option pic0/.option pic2".
4865         (mips16_copy_fpr_return_value): Use mips16_stub_function and
4866         mips_expand_call.  Set SYMBOL_REF_BIND_NOW on the symbol.
4867         (mips16_build_call_stub): Replace the FN parameter with an
4868         FN_PTR parameter.  Force the address into a register if it
4869         isn't a call_insn_operand; don't rely on the caller to do this.
4870         If a call to a locally-defined and locally-binding MIPS16
4871         function must be made indirectly, redirect the call to the
4872         function's local alias.  Use mips16_stub_function_p,
4873         mips16_stub_function, mips_expand_call and use_reg.
4874         Set SYMBOL_FLAG_BIND_NOW on __mips_call_* symbols.
4875         Use explicit %hi and %lo accesses where possible.
4876         Use MIPS_CALL to generate the correct code form of a
4877         jal instruction.  Add clobbers of $18 instead of uses.
4878         Update the call to mips_emit_call_insn.
4879         (mips_expand_call): Replace the SIBCALL_P argument with a
4880         mips_call_type argument and handle the new MIPS_CALL_EPILOGUE value.
4881         Take a LAZY_P parameter.  Call mips16_build_call_stub first,
4882         allowing it to modify the call address.  Update the calls to
4883         mips_load_call_address and mips_emit_call_insn.
4884         (mips_split_call): New function.
4885         (mips_init_relocs): Clear mips_split_hi_p.  Only use %gp_rel if
4886         !TARGET_MIPS16.  Split SYMBOL_GOT_DISP, and the high parts of
4887         SYMBOL_GOT_PAGE_OFST, for MIPS16 code.
4888         (mips_global_pointer): Check mips16_cfun_returns_in_fpr_p.
4889         (mips_extra_live_on_entry): Include MIPS16_PIC_TEMP_REGNUM
4890         if TARGET_MIPS16.
4891         (mips_cprestore_slot): New function.
4892         (mips_restore_gp): Take a TEMP parameter.  Handle TARGET_MIPS16
4893         and use mips_cprestore_slot.
4894         (mips_output_function_prologue): Handle TARGET_MIPS16 for
4895         LOADGP_OLDABI.
4896         (mips_emit_loadgp): Move into MIPS16_PIC_TEMP for MIPS16,
4897         then use a copygp_mips16 instruction to set up $28.
4898         (mips_expand_prologue): Initialize the cprestore slot for MIPS16 too.
4899         (mips16_lay_out_constants): Call split_all_insns_noflow.
4900         (mips_reorg_process_insns): Explicitly set all_noreorder_p to
4901         false if TARGET_MIPS16.
4902         (mips_reorg): Don't call vr4130_align_insns if TARGET_MIPS16.
4903         (mips_output_mi_thunk): Use mips_got_symbol_type_p.  Use the
4904         mips_dangerous_for_la25_p approach for MIPS16 PIC calls too.
4905         (mips_set_mips16_mode): Always set MASK_EXPLICIT_RELOCS for
4906         MIPS16 code.  Allow MIPS16 o32 PIC.
4907         (mips_override_options): Allow MIPS16 o32 PIC.
4908         * config/mips/mips.md: Lower CONST_GP_P moves into register moves
4909         after reload if TARGET_USE_GOT.
4910         (UNSPEC_COPYGP): New constant.
4911         (length): Use a default length of 8 for MIPS16 GOT loads.
4912         (*got_disp<mode>): Check mips_split_p instead of TARGET_XGOT.
4913         (*got_page<mode>): Check mips_split_hi_p.
4914         (*got_disp<mode>, *got_page<mode>): Use mips_got_load.
4915         (unspec_got<mode>, unspec_call<mode>): New expanders.
4916         (load_got<mode>, load_call<mode>): Remove the length attributes.
4917         Use a got attribute instead of a type attribute.
4918         (copygp_mips16): New insn.
4919         (restore_gp): Add a scratch clobber and pass it to mips_restore_gp.
4920         (load_call<mode>): Use a "d" constraint instead of an "r" constraint.
4921         (sibcall, sibcall_value, call, call_value): Update the calls
4922         to mips_expand_call.
4923         (call_internal, call_value_internal): Use mips_split_call.
4924         (call_value_multiple_internal): Likewise.
4925         (call_split): Move after call_internal (the insn it is split from).
4926         (call_internal_direct, call_value_internal_direct): Turn into
4927         define_insn_and_splits.  Split if TARGET_SPLIT_CALLS.
4928         (call_direct_split, call_value_direct_split): New patterns.
4929         * config/mips/constraints.md (c): Handle TARGET_MIPS16 first
4930         and use M16_REGS instead of M16_NA_REGS.
4931         * config/mips/predicates.md (const_call_insn_operand): Replace
4932         the TARGET_ABSOLUTE_ABICALLS-based check with a more general
4933         mips_use_pic_fn_addr_reg_p check.
4934         (move_operand): Reject HIGHs if mips_split_hi_p.
4935         * config/mips/mips16.S: Assembly as empty if the ABI is not suitable.
4936         (__mips16_floatunsisf): Inline __mips16_floatsisf.
4937         (CALL_STUB_NO_RET, CALL_STUB_REG): Copy the target register to $25.
4938         * config/mips/libgcc-mips16.ver: New file.
4939         * config/mips/t-libgcc-mips16 (SHLIB_MAPFILES): Add
4940         $(srcdir)/config/mips/libgcc-mips16.ver.
4942 2008-08-09  Richard Sandiford  <rdsandiford@googlemail.com>
4944         * config/mips/mips.c (mips_unspec_address_offset): Move earlier in file.
4945         (mips_unspec_address, mips_unspec_offset_high): Likewise.
4946         (mips_ok_for_lazy_binding_p, mips_load_call_address): Likewise.
4947         (mips16_cfun_returns_in_fpr_p): Likewise.
4949 2008-08-09  Richard Sandiford  <rdsandiford@googlemail.com>
4951         * config/mips/mips.h (MASK_RETURN_ADDR): Expand commentary.
4952         * config/mips/linux-unwind.h (mips_fallback_frame_state): Add 2
4953         rather than 4 to PC.
4955 2008-08-09  Richard Sandiford  <rdsandiford@googlemail.com>
4957         * config/mips/mips.h (STATIC_CHAIN_REGNUM): Remap to $15.
4958         (FUNCTION_PROFILER): Save the static chain pointer into $2
4959         beforehand and restore it aftewards.
4960         (TRAMPOLINE_TEMPLATE): Adjust accordingly.  Load the target
4961         address directly into $25 and call the function through $25;
4962         do not clobber $3.  Pad the DImode version to cover the space
4963         left by the deleted $25 <- $3 move.
4964         (TRAMPOLINE_SIZE): Adjust the size of the SImode version after
4965         the removal of the $25 <- $3 move.
4966         (INITIALIZE_TRAMPOLINE): Update offsets accordingly.
4967         * config/mips/sdemtk.h (FUNCTION_PROFILER): As for mips.h.
4969 2008-08-09  Richard Sandiford  <rdsandiford@googlemail.com>
4970             Daniel Jacobowitz  <dan@codesourcery.com>
4972         * config/mips/mips.h (FUNCTION_NAME_ALREADY_DECLARED): Delete.
4973         * config/mips/linux.h (ASM_DECLARE_FUNCTION_NAME): Delete.
4974         (ASM_DECLARE_FUNCTION_SIZE, FUNCTION_NAME_ALREADY_DECLARED): Delete.
4975         * config/mips/mips.c (mips_start_function_definition): New function.
4976         (mips_end_function_definition): Likewise.
4977         (mips_output_function_prologue): Use mips_start_function_definition.
4978         (mips_output_function_epilogue): Use mips_end_function_definition.
4979         (build_mips16_function_stub): Use mips_start_function_definition
4980         and mips_end_function_definition.
4981         (build_mips16_call_stub): Likewise.
4983 2008-08-09  Richard Guenther  <rguenther@suse.de>
4985         * gimple.c (gimple_build_call_1): Deal with FUNCTION_DECL fn.
4986         * gimple.h (gimple_call_fn): Adjust comment.
4987         (gimple_call_set_fndecl): New function.
4988         (gimple_call_fndecl): Adjust for GIMPLE_CALL no
4989         longer having bare FUNCTION_DECL operand.
4990         (gimple_call_return_type): Likewise.
4991         * tree-cfg.c (verify_stmt): Verify function operand of a GIMPLE_CALL.
4993         * value-prof.c (gimple_divmod_fixed_value): Do not emit labels.
4994         (gimple_mod_pow2): Likewise.
4995         (gimple_mod_subtract): Likewise.
4996         (gimple_ic): Likewise.
4997         (gimple_stringop_fixed_value): Likewise.
4998         (gimple_indirect_call_to_profile): Fix for GIMPLE_CALL no
4999         longer having bare FUNCTION_DECL operand.
5000         * ipa-cp.c (ipcp_update_callgraph): Use gimple_call_set_fndecl.
5001         * omp-low.c (optimize_omp_library_calls): Likewise.
5002         * cgraphunit.c (update_call_expr): Likewise.
5003         * tree-ssa-math-opts.c (execute_cse_reciprocals): Likewise.
5004         (execute_convert_to_rsqrt): Likewise.
5005         * cfgexpand.c (gimple_to_tree): Simplify.
5006         (release_stmt_tree): Fix for GIMPLE_CALL no longer having
5007         bare FUNCTION_DECL operand.
5008         * tree-nested.c (init_tmp_var_with_call): Use gimple_call_return_type.
5009         (convert_gimple_call): Use gimple_call_fndecl.
5010         * c-common.c (c_warn_unused_result): Likewise.
5012 2008-08-09  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
5014         PR c/17880
5015         * c-typeck.c (digest_init): Call verify_sequence_points from here.
5016         (c_finish_return): Likewise.
5017         (c_start_case): Likewise.
5018         * c-common.c (warn_for_collisions_1): Use explicit location in
5019         warning.
5020         * c-parser.c (c_parser_condition): New. Call
5021         verify_sequence_points.
5022         (c_parser_paren_condition): Call c_parser_condition.
5023         (c_parser_for_statement): Call c_parser_condition.
5025 2008-08-09  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
5027         PR 36901
5028         * diagnostic.def (DK_PEDWARN, DK_PERMERROR): New.
5029         * diagnostic.c (pedantic_warning_kind, permissive_error_kind):
5030         Moved from diagnostic.h
5031         (diagnostic_report_diagnostic): Return bool. Handle DK_PEDWARN and
5032         DK_PERMERROR.
5033         (emit_diagnostic): New.
5034         (warning0, pedwarn0): Delete.
5035         (warning, warning_at, pedwarn, permerror): Return bool.
5036         * diagnostic.h (pedantic_warning_kind, permissive_error_kind):
5037         Moved to diagnostic.c.
5038         (struct diagnostic_context): Use correct type for
5039         classify_diagnostic.
5040         (diagnostic_report_diagnostic): Update declaration.
5041         (emit_diagnostic): Declare.
5042         * errors.c (warning): Return bool.
5043         * errors.h (warning): Update declaration.
5044         * toplev.h (warning0, pedwarn0): Delete.
5045         (warning, warning_at, pedwarn, permerror): Return bool.
5046         * c-errors.c (pedwarn_c99, pedwarn_c90): Use DK_PEDWARN.
5047         * c-decl.c (locate_old_decl): Delete 'diag' argument. Always use
5048         inform. Update all calls.
5049         (diagnose_mismatched_decls): Check return value of warning/pedwarn
5050         before giving informative note.
5051         (implicit_decl_warning): Likewise.
5052         * c-typeck.c (build_function_call): Likewise.
5053         * tree-sssa.c (warn_uninit): Likewise.
5054         * builtins.c (gimplify_va_arg_expr): Likewise.
5056 2008-08-09  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
5058         PR 7651
5059         * doc/invoke.texi (-Wextra): Move warning from here...
5060         (-Wuninitialized): ... to here.
5062 2008-08-08  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
5064         PR 28875
5065         * flags.h (set_Wunused): Delete
5066         * toplev.c (process_options): Handle Wunused flags here.
5067         * opts.c (maybe_warn_unused_parameter): Delete.
5068         (common_handle_option): Replace set_Wunused by warn_unused.
5069         (set_Wextra): Do not handle Wunused-parameter here.
5070         (set_Wunused): Delete.
5071         * c-opts.c (c_common_handle_option): Replace set_Wunused by
5072         warn_unused.
5073         * common.opt (Wunused): Add Var and Init.
5074         (Wunused-function): Likewise.
5075         (Wunused-label): Likewise.
5076         (Wunused-parameter): Likewise.
5077         (Wunused-value): Likewise.
5078         (Wunused-variable): Likewise.
5080 2008-08-08  Peter Bergner  <bergner@vnet.ibm.com>
5082         * doc/invoke.texi: Add cpu_type power7.
5083         * config.in (HAVE_AS_VSX): New.
5084         * config.gcc: Add cpu_type power7.
5085         * configure.ac (HAVE_AS_VSX): Check for assembler support of the
5086         VSX instructions.
5087         * configure: Regenerate.
5088         * config/rs6000/rs6000.c (rs6000_override_options): Alias power7 to
5089         power5.
5090         * config/rs6000/rs6000.h (ASM_CPU_POWER7_SPEC): Define.
5091         (ASM_CPU_SPEC): Pass %(asm_cpu_power7) for -mcpu=power7.
5092         (EXTRA_SPECS): Add asm_cpu_power7 spec string.
5094 2008-08-08  Dorit Nuzman  <dorit@il.ibm.com>
5096         * tree-vect-transform.c (vectorizable_conversion): Pass the integral
5097         type to vectorize.builtin_conversion.
5098         (vectorizable_conversion): Likewise.
5099         * config/i386/i386.c (ix86_vectorize_builtin_conversion): Always takes
5100         integral type as input.
5101         * config/rs6000/rs6000.c (rs6000_builtin_conversion): Add case for
5102         FIX_TRUNC_EXPR.
5103         (rs6000_expand_builtin): Add case for ALTIVEC_BUILTIN_VCTUXS
5104         and ALTIVEC_BUILTIN_VCTSXS.
5105         (rs6000_builtin_mul_widen_even. rs6000_builtin_mul_widen_odd): Fix
5106         formatting.
5108 2008-08-08  Richard Guenther  <rguenther@suse.de>
5110         * tree-ssa-ccp.c (likely_value): Calls are not all varying.
5111         (surely_varying_stmt_p): Calls are varying only if they are
5112         non-builtin and not indirect or have no result.
5113         (ccp_fold): Re-instantiate code before the tuples merge.
5115 2008-08-08  Richard Guenther  <rguenther@suse.de>
5117         PR tree-optimization/37056
5118         * gimple.h (gimple_assign_rhs_class): New helper function.
5119         * tree-ssa-loop-niter.c (get_val_for): Fix tuplification, handle
5120         unary operations properly.
5122 2008-08-07  Jan Hubicka  <jh@suse.cz>
5124         * i386.h (ix86_size_cost): Declare.
5125         (ix86_cur_cost): New function macro.
5126         * i386.md (peepholes expanding size and splitters): Predicate by
5127         optimize_insn_for_speed_p.
5128         (peepholes reduce size and splitters): Predicate by
5129         optimize_insn_for_size_p.
5130         * i386.c (ix86_size_cost): Rename from ...
5131         (size_cost): This one.
5132         (override_options): Update.
5133         (decide_alg): Likewise.
5134         (ix86_expand_clear): Use RTL profile.
5135         (ix86_pad_returns): Use RTL profile.
5137 2008-08-07  Jan Hubicka  <jh@suse.cz>
5139         * recog.c (split_all_insns): Set RTL profile
5140         (peephole2_optimize): Likewise.
5141         * function.c (thread_prologue_and_epilogue_insns): Likewise.
5142         * combine.c (combine_instructions): Likewise.
5144 2008-08-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5146         * c-common.c (c_common_reswords): Also warn about keyword "bool".
5148 2008-08-07  Bob Wilson  <bob.wilson@acm.org>
5150         * config/xtensa/xtensa.c (xtensa_copy_incoming_a7): Copy incoming
5151         value in a6 after the set_frame_ptr insn.
5153 2008-08-07  Richard Henderson  <rth@redhat.com>
5155         PR debug/37033
5156         * gcc.c (cpp_options): Pass along -g*.
5158 2008-08-07  Joseph Myers  <joseph@codesourcery.com>
5160         * config/arm/arm.c (output_move_neon): Update comment describing
5161         big-endian vector layout.
5162         (arm_assemble_integer): Do not handle big-endian NEON vectors
5163         specially.
5164         * config/arm/neon.md (vec_set<mode>_internal, vec_extract<mode>,
5165         neon_vget_lane<mode>_sext_internal,
5166         neon_vget_lane<mode>_zext_internal, neon_vget_lane<mode>): Adjust
5167         element indices for big-endian.
5169 2008-08-07  Richard Henderson  <rth@redhat.com>
5171         * configure.ac (HAVE_GAS_CFI_PERSONALITY_DIRECTIVE): New.
5172         * configure, config.in: Rebuild.
5173         * debug.h (dwarf2out_do_cfi_asm): Declare.
5174         * c-cppbuiltin.c (c_cpp_builtins): Use it.
5175         * dwarf2out.c (dwarf2out_do_cfi_asm): New.
5176         (dwarf2out_cfi_label, add_fde_cfi, output_call_frame_info,
5177         dwarf2out_begin_prologue, dwarf2out_end_epilogue): Use it.
5179 2008-08-07  Joseph Myers  <joseph@codesourcery.com>
5181         * config/arm/iwmmxt.md (movv8qi_internal, movv4hi_internal,
5182         movv2si_internal): Combine into mov<mode>_internal.
5183         (movv2si_internal_2): Remove.
5185 2008-08-07  Jan Hubicka  <jh@suse.cz>
5187         PR target/37048
5188         * i386.md (single stringop patterns): Enable unconditionally.
5190 2008-08-07  H.J. Lu  <hongjiu.lu@intel.com>
5192         PR target/36992
5193         * config/i386/emmintrin.h (_mm_move_epi64): Use
5194         __builtin_ia32_movq128.
5196         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MOVQ128.
5197         (bdesc_args): Add IX86_BUILTIN_MOVQ128.
5199         * config/i386/sse.md (sse2_movq128): New.
5201         * doc/extend.texi: Document __builtin_ia32_movq128.
5203 2008-08-07  Richard Guenther  <rguenther@suse.de>
5205         PR middle-end/37042
5206         * tree-ssa-alias-warnings.c (nonstandard_alias_p): Ref-all
5207         pointers can access anything.
5209 2008-08-06  Jan Hubicka  <jh@suse.cz>
5211         * optabs.c (emit_unop_insn): Break out to ...
5212         (maybe_emit_unop_insn): ... this one.
5213         (expand_sfix_optab): Use maybe variant.
5214         * optabs.h (maybe_emit_unop_insn): Declare.
5216         * i386.md (mov0 patterns): Enable by default.
5217         (FP conversion expanders): Disable expansion of code expanding
5218         sequences when instruction should be optimized for size.
5219         (single strinop patterns): Enable when optimizing for size.
5220         (string expanders): Disable expanding of code expanding sequences
5221         when optimizning instruction for size.
5222         * i386.c (ix86_expand_vector_move_misalign): Do code size optimization
5223         per BB basis.
5224         (ix86_fp_comparison_sahf_cost): Likewise.
5225         (ix86_expand_branch): Likewise.
5226         (ix86_expand_ashl_const): Likewise.
5227         (ix86_split_ashl): Likewise.
5228         (ix86_expand_strlen): Likewise.
5229         (ix86_emit_fp_unordered_jump): Likewie.
5231 2008-08-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5233         * c-common.c: Fix typo.
5234         (c_common_reswords): Activate more C++ keyword warnings.
5236         * matrix-reorg.c (compute_offset): Avoid C++ keywords.
5238 2008-08-06  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
5240         PR 26785
5241         * diagnostic.c (permerror_at): New.
5242         * toplev.h (permerror_at): Declare.
5244 2008-08-06  Victor Kaplansky  <victork@il.ibm.com>
5245             Ira Rosen  <irar@il.ibm.com>
5247         * tree-vect-transform.c (vect_model_simple_cost): Return
5248         immediately if stmt is pure SLP.
5249         (vect_model_store_cost): Ditto.
5250         (vect_model_load_cost): Ditto.
5251         (vectorizable_store): Remove PURE_SLP check before call
5252         to vect_model_store_cost.
5253         (vect_model_store_cost): When checking whether stmt describe
5254         strided access, add a check that it is not slp_node.
5256 2008-08-06  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
5258         PR 8715
5259         * c-common.c (warn_for_sign_compare): New. Handle separately the
5260         case that 'constant' is zero.
5261         * c-typeck.c (build_binary_op): Move code to c-common.c
5263 2008-08-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5265         * config/alpha/alpha.c (alpha_preferred_reload_class,
5266         alpha_secondary_reload, alpha_emit_set_const_1, function_value,
5267         alpha_output_mi_thunk_osf): Avoid C++ keywords.
5268         * config/arm/arm.c (output_move_vfp, output_move_neon): Likewise.
5269         * config/arm/arm.md: Likewise.
5270         * config/avr/avr-protos.h (preferred_reload_class,
5271         test_hard_reg_class, avr_simplify_comparison_p,
5272         out_shift_with_cnt, class_max_nregs): Likewise.
5273         * config/avr/avr.c (class_max_nregs, avr_simplify_comparison_p,
5274         output_movqi, output_movhi, output_movsisf, out_shift_with_cnt,
5275         preferred_reload_class, test_hard_reg_class): Likewise.
5276         * config/bfin/bfin.c (legitimize_pic_address, hard_regno_mode_ok,
5277         bfin_memory_move_cost, bfin_secondary_reload,
5278         bfin_output_mi_thunk): Likewise.
5279         * config/crx/crx.c (crx_secondary_reload_class,
5280         crx_memory_move_cost): Likewise.
5281         * config/frv/frv-protos.h (frv_secondary_reload_class,
5282         frv_class_likely_spilled_p, frv_class_max_nregs): Likewise.
5283         * config/frv/frv.c (frv_override_options, frv_alloc_temp_reg,
5284         frv_secondary_reload_class, frv_class_likely_spilled_p,
5285         frv_class_max_nregs): Likewise.
5286         * config/h8300/h8300.c (h8300_classify_operand,
5287         h8300_unary_length, h8300_bitfield_length, h8300_asm_insn_count):
5288         Likewise.
5289         * config/i386/winnt.c (i386_pe_declare_function_type): Likewise.
5290         * config/ia64/ia64.c (ia64_preferred_reload_class,
5291         ia64_secondary_reload_class, ia64_output_mi_thunk): Likewise.
5292         * config/iq2000/iq2000.c (gen_int_relational): Likewise.
5293         * config/m32c/m32c.c (class_can_hold_mode, m32c_output_compare):
5294         Likewise.
5295         * config/m68hc11/m68hc11.c (preferred_reload_class,
5296         m68hc11_memory_move_cost): Likewise.
5297         * config/mcore/mcore.c (mcore_secondary_reload_class,
5298         mcore_reload_class): Likewise.
5299         * config/mips/mips.c (mips_hard_regno_mode_ok_p,
5300         mips_class_max_nregs, mips_cannot_change_mode_class,
5301         mips_preferred_reload_class, mips_secondary_reload_class,
5302         mips_output_mi_thunk): Likewise.
5303         * config/mmix/mmix.c (mmix_preferred_reload_class,
5304         mmix_preferred_output_reload_class, mmix_secondary_reload_class):
5305         Likewise.
5306         * config/mn10300/mn10300.c (mn10300_secondary_reload_class):
5307         Likewise.
5308         * config/pa/pa.c (pa_secondary_reload, pa_combine_instructions,
5309         pa_can_combine_p, pa_cannot_change_mode_class): Likewise.
5310         * config/pa/pa.h (LEGITIMIZE_RELOAD_ADDRESS): Likewise.
5311         * config/rs6000/rs6000.c (paired_expand_vector_init,
5312         rs6000_secondary_reload_class, rs6000_output_mi_thunk,
5313         compare_section_name, rs6000_memory_move_cost): Likewise.
5314         * config/s390/s390.c (s390_emit_compare_and_swap,
5315         s390_preferred_reload_class, s390_secondary_reload,
5316         legitimize_pic_address, legitimize_tls_address,
5317         legitimize_reload_address, s390_expand_cs_hqi, s390_expand_atomic,
5318         s390_class_max_nregs): Likewise.
5319         * config/s390/s390.h (LEGITIMIZE_RELOAD_ADDRESS): Likewise.
5320         * config/s390/s390.md: Likewise.
5321         * config/score/score-protos.h (score_secondary_reload_class,
5322         score_preferred_reload_class): Likewise.
5323         * config/score/score.c (score_preferred_reload_class,
5324         score_secondary_reload_class): Likewise.
5325         * config/score/score3.c (score3_output_mi_thunk,
5326         score3_preferred_reload_class, score3_secondary_reload_class,
5327         score3_hard_regno_mode_ok): Likewise.
5328         * config/score/score3.h (score3_preferred_reload_class,
5329         score3_secondary_reload_class): Likewise.
5330         * config/score/score7.c (score7_output_mi_thunk,
5331         score7_preferred_reload_class, score7_secondary_reload_class,
5332         score7_hard_regno_mode_ok): Likewise.
5333         * config/score/score7.h (score7_preferred_reload_class,
5334         score7_secondary_reload_class): Likewise.
5335         * config/sh/sh.c (prepare_move_operands, output_far_jump,
5336         output_branchy_insn, add_constant, gen_block_redirect,
5337         sh_insn_length_adjustment, sh_cannot_change_mode_class,
5338         sh_output_mi_thunk, replace_n_hard_rtx, sh_secondary_reload):
5339         Likewise.
5340         * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
5341         * config/stormy16/stormy16.c (xstormy16_output_cbranch_hi,
5342         xstormy16_output_cbranch_si, xstormy16_secondary_reload_class,
5343         xstormy16_preferred_reload_class): Likewise.
5344         * config/xtensa/xtensa.c (xtensa_expand_compare_and_swap,
5345         xtensa_expand_atomic, override_options,
5346         xtensa_preferred_reload_class, xtensa_secondary_reload_class):
5347         Likewise.
5348         * reorg.c (try_merge_delay_insns): Likewise.
5349         * tree.c (merge_dllimport_decl_attributes): Likewise.
5351         * config/frv/frv.c (frv_print_operand): Change isalpha to ISALPHA.
5353 2008-08-06  Michael Matz  <matz@suse.de>
5355         * Makefile.in (write_entries_to_file): Quote words.
5356         * gengtype.c: (read_input_line): Skip over leading white-space.
5358 2008-08-06  Marc Gauthier  <marc@tensilica.com>
5360         * config.gcc: Match more processor names for Xtensa.
5361         * configure.ac: Likewise.
5362         * doc/install.texi (Specific): Likewise.
5363         * configure: Regenerate.
5365 2008-08-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5367         * builtins.c (expand_builtin_profile_func): Avoid C++ keywords.
5368         * calls.c (avoid_likely_spilled_reg): Likewise.
5369         * cfgexpand.c (gimple_assign_rhs_to_tree): Likewise.
5370         * cgraph.c (cgraph_clone_edge, cgraph_clone_node): Likewise.
5371         * config/i386/i386.c (ix86_expand_special_args_builtin,
5372         ix86_secondary_reload): Likewise.
5373         * except.c (struct eh_region, gen_eh_region_catch,
5374         remove_unreachable_regions, duplicate_eh_regions,
5375         assign_filter_values, build_post_landing_pads,
5376         sjlj_find_directly_reachable_regions, remove_eh_handler,
5377         reachable_next_level, foreach_reachable_handler,
5378         can_throw_internal_1, can_throw_external_1,
5379         collect_one_action_chain): Likewise.
5380         * expr.c (expand_expr_real_1, vector_mode_valid_p): Likewise.
5381         * fold-const.c (twoval_comparison_p, eval_subst): Likewise.
5382         * function.c (update_temp_slot_address, instantiate_new_reg,
5383         instantiate_virtual_regs_in_rtx,
5384         instantiate_virtual_regs_in_insn): Likewise.
5385         * gimple.c (extract_ops_from_tree, gimple_seq_copy): Likewise.
5386         * gimplify.c (gimplify_call_expr, gimplify_init_constructor,
5387         gimplify_cleanup_point_expr): Likewise.
5388         * ipa-cp.c (ipcp_lattice_changed): Likewise.
5389         * passes.c (next_pass_1): Likewise.
5390         * print-tree.c (print_node_brief, print_node): Likewise.
5391         * profile.c (branch_prob): Likewise.
5392         * tree-dump.c (dump_register): Likewise.
5393         * tree-eh.c (replace_goto_queue_cond_clause, lower_catch):
5394         Likewise.
5395         * tree-inline.c (remap_ssa_name, remap_type_1, remap_blocks,
5396         copy_statement_list, remap_gimple_op_r, copy_tree_body_r,
5397         copy_edges_for_bb, copy_cfg_body, copy_tree_r,
5398         copy_arguments_for_versioning, copy_static_chain): Likewise.
5399         * tree-into-ssa.c (names_replaced_by, add_to_repl_tbl,
5400         add_new_name_mapping, register_new_name_mapping): Likewise.
5401         * tree-mudflap.c (mf_xform_derefs): Likewise.
5402         * tree-predcom.c (struct chain, dump_chain, replace_ref_with,
5403         get_init_expr, combine_chains): Likewise.
5404         * tree-pretty-print.c (dump_generic_node): Likewise.
5405         * tree-ssa-structalias.c (create_variable_info_for): Likewise.
5406         * tree-vrp.c (simplify_cond_using_ranges): Likewise.
5407         * tree.c (substitute_in_expr, iterative_hash_expr): Likewise.
5408         * value-prof.c (gimple_duplicate_stmt_histograms): Likewise.
5410 2008-08-06  H.J. Lu  <hongjiu.lu@intel.com>
5412         PR middle-end/37010
5413         * calls.c (expand_call): Use the biggest preferred stack
5414         boundary.
5416 2008-08-06  Michael Matz  <matz@suse.de>
5418         PR target/36613
5419         * reload.c (push_reload): Merge in,out,in_reg,out_reg members
5420         for reused reload, instead of overwriting them.
5422 2008-08-06  H.J. Lu  <hongjiu.lu@intel.com>
5424         PR middle-end/37009
5425         * cfgexpand.c (expand_stack_alignment): Check parm_stack_boundary
5426         for incoming stack boundary.
5428         * function.c (assign_parm_find_entry_rtl): Update
5429         parm_stack_boundary.
5431         * function.h (rtl_data): Add parm_stack_boundary.
5433         * config/i386/i386.c (ix86_finalize_stack_realign_flags): Check
5434         parm_stack_boundary for incoming stack boundary.
5436 2008-08-06  Joseph Myers  <joseph@codesourcery.com>
5438         * jump.c (rtx_renumbered_equal_p): Do not call subreg_regno_offset
5439         for unrepresentable subregs or treat them as equal to other regs
5440         or subregs with the same register number.
5442 2008-08-06  Aldy Hernandez  <aldyh@redhat.com>
5444         PR middle-end/35432
5445         * gimplify.c (gimplify_modify_expr): Do not optimize zero-sized types
5446         if want_value.
5448 2008-08-06  Jan Hubicka  <jh@suse.cz>
5450         * predict.c (maybe_hot_frequency_p): When profile is absent, all
5451         frequencies might be hot.
5453 2008-08-06  Andreas Krebbel  <krebbel1@de.ibm.com>
5455         * reload.c (find_reloads): Force constants into literal pool
5456         also if they are wrapped in a SUBREG.
5458 2008-08-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
5460         PR target/35659
5461         * haifa-sched.c (sched_insn_is_legitimate_for_speculation_p): Move ...
5462         * sched-deps.c (sched_insn_is_legitimate_for_speculation_p): ... here.
5463         Don't allow predicated instructions for data speculation.
5464         * sched-int.h (sched_insn_is_legitimate_for_speculation_p): Move
5465         declaration.
5467 2008-08-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
5469         * haifa-sched.c (extend_global): Split to extend_global_data and
5470         extend_region_data.  Update all uses.
5471         (extend_all): Rename to extend_block_data.
5473 2008-08-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
5475         * sched-rgn.c (new_ready): Check if instruction can be
5476         speculatively scheduled before attempting speculation.
5477         (debug_rgn_dependencies): Remove wrongful assert.
5479 2008-08-05  Bob Wilson  <bob.wilson@acm.org>
5481         * config/xtensa/t-xtensa: Remove dependency for gt-xtensa.h.
5483 2008-08-05  Bob Wilson  <bob.wilson@acm.org>
5485         * config/xtensa/xtensa.c (xtensa_va_start): Unshare valist.
5486         (xtensa_gimplify_va_arg_expr): Unshare valist, orig_ndx, ndx, array,
5487         va_size, and type_size.
5489 2008-08-04  Jason Merrill  <jason@redhat.com>
5491         PR c++/37016
5492         * tree-ssa.c (useless_type_conversion_p_1): Call langhook
5493         if TYPE_STRUCTURAL_EQUALITY_P is true for both types.
5495 2008-08-05  Richard Henderson  <rth@redhat.com>
5497         * configure.ac (HAVE_GAS_CFI_DIRECTIVE): Check .cfi_personality.
5498         * configure: Rebuild.
5500 2008-08-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>
5502         PR tree-opt/37024
5503         * tree-tailcall.c (process_assignment): Use gimple_assign_cast_p
5504         instead of IS_CONVERT_EXPR_CODE_P for seeing if the assignment
5505         is a conversion.
5507 2008-08-05  Richard Henderson  <rth@redhat.com>
5509         * Makefile.in (c-cppbuiltin.o): Depend on debug.h.
5510         * c-cppbuiltin.c (c_cpp_builtins): Define __GCC_HAVE_DWARF2_CFI_ASM.
5511         * doc/cpp.texi (__GCC_HAVE_DWARF2_CFI_ASM): Document it.
5512         * common.opt (fdwarf2-cfi-asm): New.
5513         * configure.ac (HAVE_GAS_CFI_DIRECTIVE): New.
5514         * config.in, configure: Rebuild.
5515         * dwarf2asm.c (dw2_asm_output_data_raw): New.
5516         (dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_sleb128_raw): New.
5517         (dw2_force_const_mem): Externalize.
5518         * dwarf2asm.h: Update.
5519         * dwarf2out.c (dwarf2out_cfi_label): If flag_dwarf2_cfi_asm, don't
5520         generate a real label.
5521         (output_cfi_directive): New.
5522         (add_fde_cfi): If flag_dwarf2_cfi_asm, use it.
5523         (output_call_frame_info): Do nothing if flag_dwarf2_cfi_asm.
5524         (dwarf2out_begin_prologue): Emit .cfi_startproc, .cfi_personality,
5525         and .cfi_lsda.
5526         (dwarf2out_end_epilogue): Emit .cfi_endproc.
5527         (output_loc_operands_raw, output_loc_sequence_raw): New.
5528         (output_cfa_loc_raw): New.
5530 2008-08-05  Paul Brook  <paul@codesourcery.com>
5532         * doc/invoke.texi: Document new ARM -mfpu= and -mcpu= options.
5533         * config/arm/arm.c (all_fpus): Add vfpv3 and vfpv3-d16.
5534         (fp_model_for_fpu): Add entry for FPUTYPE_VFP3D16.
5535         (arm_file_start): Add FPUTYPE_VFP3D16.  Rename vfp3 to vfpv3.
5536         * config/arm/arm.h (TARGET_VFPD32): Define.
5537         (TARGET_VFP3): Use TARGET_VFPD32.
5538         (fputype): Add FPUTYPE_VFP3D16.
5539         (LAST_VFP_REGNUM): Use TARGET_VFPD32.
5540         * config/arm/constraints.md ("w"): Use TARGET_VFPD32.
5541         * config/arm/arm-cores.def: Add cortex-r4f.
5542         * config/arm/arm-tune.md: Regenerate.
5544 2008-08-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5546         * config/spu_spu_mfcio.h: Wrap in extern "C" if __cplusplus.
5547         Reword some comments throughout the file.
5549         (MFC_MIN_DMA_LIST_ELEMENTS): New define.
5550         (MFC_MAX_DMA_LIST_ELEMENTS): Likewise.
5551         (MFC_MIN_DMA_LIST_SIZE): Redefine in terms of MFC_MIN_DMA_LIST_ELEMENTS.
5552         (MFC_MAX_DMA_LIST_SIZE): Redefine in terms of MFC_MAX_DMA_LIST_ELEMENTS.
5554         (MFC_START_ENABLE): Remove PPU-only define.
5555         (MFC_PUTS_CMD, MFC_PUTFS_CMD, MFC_PUTBS_CMD): Likewise.
5556         (MFC_GETS_CMD, MFC_GETFS_CMD, MFC_GETBS_CMD): Likewise.
5558         (MFC_PUTB_CMD, MFC_PUTF_CMD): Reimplement using symbolic constants.
5559         (MFC_PUTL_CMD, MFC_PUTLB_CMD, MFC_PUTLF_CMD): Likewise.
5560         (MFC_PUTR_CMD, MFC_PUTRB_CMD, MFC_PUTRF_CMD): Likewise.
5561         (MFC_PUTRL_CMD, MFC_PUTRLB_CMD, MFC_PUTRLF_CMD): Likewise.
5562         (MFC_GETB_CMD, MFC_GETF_CMD): Likewise.
5563         (MFC_GETL_CMD, MFC_GETLB_CMD, MFC_GETLF_CMD): Likewise.
5564         (MFC_SNDSIGB_CMD, MFC_SNDSIGF_CMD): Likewise.
5566         (MFC_SDCRT_CMD, MFC_SDCRTST_CMD): New defines.
5567         (MFC_SDCRZ_CMD, MFC_SDCRST_CMD, MFC_SDCRF_CMD): Likewise.
5568         (mfc_sdcrt, mfc_sdcrtst): Likewise.
5569         (mfc_sdcrz, mfc_sdcrst, mfc_sdcrf): Likewise.
5571         (spu_read_machine_status): Fix typo.
5573 2008-08-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5575         * config/spu/spu.h (CANNOT_CHANGE_MODE_CLASS): Allow (multi)word-sized
5576         SUBREG of multi-word hard register.
5577         * config/spu/spu.c (valid_subreg): Likewise.
5578         (adjust_operand): Handle SUBREGs of multi-word hard registers.
5580 2008-08-04  Richard Guenther  <rguenther@suse.de>
5582         * tree-ssa-loop-ivopts.c (add_iv_value_candidates): Also add
5583         the candidate with the stripped base if that base is different
5584         from the original base even for offset zero.
5586 2008-08-04  Richard Guenther  <rguenther@suse.de>
5588         PR middle-end/36691
5589         * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Correctly
5590         check for no_overflow.
5592 2008-08-04  Richard Guenther  <rguenther@suse.de>
5594         * tree-vect-transform.c (vectorizable_call): Fix tuplification.
5596 2008-08-04  Paul Brook  <paul@codesourcery.com>
5598         * cofig/arm/arm.c (thumb_core_reg_alloc_order): New.
5599         (arm_order_regs_for_local_alloc): New function.
5600         * config/arm/arm-protos.h (arm_order_regs_for_local_alloc): Add
5601         prototype.
5602         * config/arm/arm.h (ORDER_REGS_FOR_LOCAL_ALLOC): Define.
5604 2008-08-04  H.J. Lu  <hongjiu.lu@intel.com>
5606         PR target/37012
5607         * config/i386/i386.c (ix86_expand_prologue): Use UNITS_PER_WORD
5608         instead of STACK_BOUNDARY / BITS_PER_UNIT to align stack.
5609         (ix86_expand_epilogue): Likewise.
5611 2008-08-04  H.J. Lu  <hongjiu.lu@intel.com>
5613         * config/i386/i386.c (ix86_compute_frame_layout): Fix a typo
5614         in comments.
5616 2008-08-03  Uros Bizjak  <ubizjak@gmail.com>
5618         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use Yi instead of x
5619         to avoid inter-unit moves for !TARGET_INTER_UNIT_MOVES.
5620         (*movv2sf_internal_rex64): Ditto.
5622 2008-08-03  Jan Hubicka  <jh@suse.cz>
5624         * optabs.c (expand_binop, expand_builtin_pow, expand_builtin_powi,
5625         expand_builtin_strcat): Upse optimize_insn_for_speed predicate.
5626         * expmed.c (expand_smod_pow2): Likewise.
5628 2008-08-03  Uros Bizjak  <ubizjak@gmail.com>
5630         PR target/36992
5631         * config/i386/sse.md (vec_concatv2di): Add Y2 constraint to
5632         alternative 0 of operand 1.
5633         (*vec_concatv2di_rex64_sse): Ditto.
5634         (*vec_concatv2di_rex64_sse4_1): Add x constraint to alternative 0
5635         of operand 1.
5636         (*sse2_storeq_rex64): Penalize allocation of "r" registers.
5637         * config/i386/mmx.md (*mov<mode>_internal_rex64): Penalize allocation
5638         of "Y2" registers to avoid SSE <-> MMX conversions for DImode moves.
5639         (*movv2sf_internal_rex64): Ditto.
5641 2008-08-02  Richard Guenther  <rguenther@suse.de>
5643         PR target/35252
5644         * config/i386/sse.md (SSEMODE4S, SSEMODE2D): New mode iterators.
5645         (ssedoublesizemode): New mode attribute.
5646         (sse_shufps): Call gen_sse_shufps_v4sf.
5647         (sse_shufps_1): Macroize.
5648         (sse2_shufpd): Call gen_Sse_shufpd_v2df.
5649         (sse2_shufpd_1): Macroize.
5650         (vec_extract_odd, vec_extract_even): New expanders.
5651         (vec_interleave_highv4sf, vec_interleave_lowv4sf,
5652         vec_interleave_highv2df, vec_interleave_lowv2df): Likewise.
5653         * i386.c (ix86_expand_vector_init_one_nonzero): Call
5654         gen_sse_shufps_v4sf instead of gen_sse_shufps_1.
5655         (ix86_expand_vector_set): Likewise.
5656         (ix86_expand_reduc_v4sf): Likewise.
5658 2008-08-01  Doug Kwan  <dougkwan@google.com>
5660         * matrix-reorg.c: Re-enable all code.
5661         (struct malloc_call_data): Change CALL_STMT to gimple type.
5662         (collect_data_for_malloc_call): Tuplify.
5663         (struct access_site_info): Change STMT to gimple type.
5664         (struct matrix_info): Change MIN_INDIRECT_LEVEL_ESCAPE_STMT,
5665         and MALLOC_FOR_LEVEL to gimple and gimple pointer type.
5666         (struct free_info): Change STMT to gimple type.
5667         (struct matrix_access_phi_node):  Change PHI to gimple type.
5668         (get_inner_of_cast_expr): Remove.
5669         (may_flatten_matrices_1): Tuplify.
5670         (may_flatten_matrices): Ditto.
5671         (mark_min_matrix_escape_level): Ditto.
5672         (ssa_accessed_in_tree): Refactor statement RHS related code into ...
5673         (ssa_accessed_in_call_rhs): New
5674         (ssa_accessed_in_assign_rhs): New
5675         (record_access_alloc_site_info): Tuplify.
5676         (add_allocation_site): Ditto.
5677         (analyze_matrix_allocation_site): Ditto.
5678         (analyze_transpose): Ditto.
5679         (get_index_from_offset): Ditto.
5680         (update_type_size): Ditto.
5681         (analyze_accesses_for_call_expr): Tuplify and renamed into ...
5682         (analyze_accesses_for_call_stmt): New. Also handle LHS of a call.
5683         (analyze_accesses_for_phi_node): Tuplify.
5684         (analyze_accesses_for_modify_stmt): Tuplify and renamed into ...
5685         (analyze_accesses_for_assign_stmt): Remove code for handling call LHS.
5686         (analyze_matrix_accesses): Tuplify.
5687         (check_var_data): New call-back type for check_var_notmodified_p.
5688         (check_var_notmodified_p): Tuplify and use call-back struct to
5689         return statement found.
5690         (can_calculate_expr_before_stmt): Factor out statement related code
5691         into ...
5692         (can_calculate_stmt_before_stmt): New.
5693         (check_allocation_function): Tuplify.
5694         (find_sites_in_func): Ditto.
5695         (record_all_accesses_in_func): Ditto.
5696         (transform_access_sites): Ditto.
5697         (transform_allocation_sites): Ditto.
5698         (matrix_reorg): Re-enable.
5699         (gate_matrix_reorg): Re-enable.
5701 2008-08-01  Jakub Jelinek  <jakub@redhat.com>
5703         * dwarf2out.c (compute_barrier_args_size): Set barrier_args_size
5704         for labels for which it hasn't been set yet.  If it has been set,
5705         stop walking insns and continue with next worklist item.
5706         (dwarf2out_stack_adjust): Don't call compute_barrier_args_size
5707         if the only BARRIER is at the very end of a function.
5709 2008-08-01  H.J. Lu  <hongjiu.lu@intel.com>
5711         * cfgexpand.c (expand_stack_alignment): Assert that
5712         stack_realign_drap and drap_rtx must match.
5714         * function.c (instantiate_new_reg): If DRAP is used to realign
5715         stack, replace virtual_incoming_args_rtx with internal arg
5716         pointer.
5718 2008-08-01  Richard Guenther  <rguenther@suse.de>
5720         * tree-ssa-pre.c (fini_pre): Take in_fre parameter.  Free
5721         loop information only if we initialized it.
5722         (execute_pre): Call fini_pre with in_fre.
5723         * tree-ssa-loop-ivcanon (try_unroll_loop_completely): Dump
5724         if we do not unroll because we hit max-completely-peeled-insns.
5725         Use our estimation for consistency, do allow shrinking.
5727 2008-08-01  H.J. Lu  <hongjiu.lu@intel.com>
5729         * config/i386/i386.c (override_options): Replace ABI_STACK_BOUNDARY
5730         with MIN_STACK_BOUNDARY.
5731         (ix86_update_stack_boundary): Likewise.
5732         (ix86_expand_prologue): Assert MIN_STACK_BOUNDARY instead of
5733         STACK_BOUNDARY.
5735         * config/i386/i386.h (ABI_STACK_BOUNDARY): Renamed to ...
5736         (MIN_STACK_BOUNDARY): This.
5738 2008-08-01  Richard Guenther  <rguenther@suse.de>
5740         PR middle-end/36997
5741         * gimplify.c (gimplify_call_expr): Set error_mark_node on GS_ERROR.
5743 2008-08-01  Richard Guenther  <rguenther@suse.de>
5745         PR tree-optimization/36988
5746         * tree-ssa-ccp.c (ccp_fold): Conversions of constants only
5747         do not matter if that doesn't change volatile qualification.
5749 2008-08-01  Paolo Bonzini  <bonzini@gnu.org>
5751         * configure.ac: Do not generate libada-mk.  Do not subst
5752         host_cc_for_libada.
5753         * libada-mk.in: Remove.
5754         * Makefile.in: Pass TARGET_LIBGCC2_CFLAGS to libgcc.mvars.
5755         * configure: Regenerate.
5757 2008-08-01  Basile Starynkevitch  <basile@starynkevitch.net>
5759         * tree-pass.h: Added comment about not dumping passes with name
5760         starting with star in struct opt_pass.
5761         * passes.c (register_dump_files_1): Don't do dump for a pass with
5762         name starting with star.
5763         * doc/passes.texi (Pass manager): Mention pass names and special
5764         meaning of star prefix to avoid dump.
5766 2008-07-31  Adam Nemet  <anemet@caviumnetworks.com>
5768         * config.gcc (mipsisa64r2*-*-linux*): New configuration.  Set ISA
5769         to MIPS64r2.
5770         * config/mips/mips.h (GENERATE_MIPS16E): Update comment.
5771         (ISA_MIPS64R2): New macro.
5772         (TARGET_CPU_CPP_BUILTINS, MULTILIB_ISA_DEFAULT): Handle it.
5773         (ISA_HAS_64BIT_REGS, ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE,
5774         ISA_HAS_8CC, ISA_HAS_FP4, ISA_HAS_PAIRED_SINGLE,
5775         ISA_HAS_MADD_MSUB, ISA_HAS_NMADD4_NMSUB4, ISA_HAS_CLZ_CLO,
5776         ISA_HAS_ROR, ISA_HAS_PREFETCH, ISA_HAS_PREFETCHX, ISA_HAS_SEB_SEH,
5777         ISA_HAS_EXT_INS, ISA_HAS_MXHC1, ISA_HAS_HILO_INTERLOCKS,
5778         ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Return true for ISA_MIPS64R2.
5779         (MIPS_ISA_LEVEL_SPEC, ASM_SPEC, LINK_SPEC): Handle -mips64r2.
5780         (TARGET_LOONGSON_2E, TARGET_LOONGSON_2F, TARGET_LOONGSON_2EF):
5781         Move up to keep list alphabetically sorted.
5782         (TUNE_20KC, TUNE_24K, TUNE_74K, TUNE_LOONGSON_2EF): Likewise.
5783         * config/mips/mips.c (mips_cpu_info_table): Add default MIPS64r2
5784         processor.
5785         * doc/invoke.texi (MIPS Options): Add -mips64r2.
5786         (-march=@var{arch}): Add mips64r2.
5788 2008-07-31  H.J. Lu  <hongjiu.lu@intel.com>
5790         * config/i386/darwin.h (MAIN_STACK_BOUNDARY): Define to 128.
5792 2008-07-31  Steve Ellcey  <sje@cup.hp.com>
5794         * expr.c (expand_assignment): Check for complete type.
5796 2008-07-31  H.J. Lu  <hongjiu.lu@intel.com>
5798         PR debug/36977
5799         * cfgexpand.c (expand_stack_alignment): Set stack_realign_tried.
5801         * dwarf2out.c (based_loc_descr): Check crtl->stack_realign_tried
5802         for stack alignment.
5804         * function.h (rtl_data): Add stack_realign_tried.  Update comments.
5806 2008-07-31  Kaz Kojima  <kkojima@gcc.gnu.org>
5808         * config/sh/sh.c (sh_canonical_va_list_type): Remove.
5809         (TARGET_CANONICAL_VA_LIST_TYPE): Remove.
5811 2008-07-31  Jakub Jelinek  <jakub@redhat.com>
5813         PR rtl-optimization/36419
5814         * dwarf2out.c (barrier_args_size): New variable.
5815         (compute_barrier_args_size, compute_barrier_args_size_1): New
5816         functions.
5817         (dwarf2out_stack_adjust): For BARRIERs call compute_barrier_args_size
5818         if not called yet in the current function, use barrier_args_size
5819         array to find the new args_size value.
5820         (dwarf2out_frame_debug): Free and clear barrier_args_size.
5822 2008-07-31  H.J. Lu  <hongjiu.lu@intel.com>
5824         PR debug/36980
5825         * dwarf2out.c (dwarf2out_frame_debug_expr): Move rule 17 before
5826         rule 19.
5828 2008-07-31  H.J. Lu  <hongjiu.lu@intel.com>
5830         PR debug/36976
5831         * dwarf2out.c (dwarf2out_args_size_adjust): New.
5832         (dwarf2out_stack_adjust): Use it.
5833         (dwarf2out_frame_debug_expr): Likewise.
5835 2008-07-31  Richard Guenther  <rguenther@suse.de>
5837         PR tree-optimization/36978
5838         * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): Do not fold
5839         the generated condition.
5841 2008-07-31  Richard Guenther  <rguenther@suse.de>
5843         * passes.c (init_optimization_passes): Always call
5844         pass_early_warn_uninitialized.
5845         * opts.c (decode_options): Do not warn about -Wuninitialized at -O0.
5846         * doc/invoke.texi (-Wuninitialized): Correct for enabling at -O0.
5847         * doc/passes.texi (Warn for uninitialized variables): Adjust.
5849 2008-07-31  Jakub Jelinek  <jakub@redhat.com>
5851         PR c/36970
5852         * builtins.c (maybe_emit_free_warning): New function.
5853         (expand_builtin): Process BUILT_IN_FREE even at -O0.  Call
5854         maybe_emit_free_warning for BUILT_IN_FREE.
5856         PR debug/36278
5857         * dwarf2out.c (get_context_die): New function.
5858         (force_decl_die, force_type_die): Use it.
5859         (dwarf2out_imported_module_or_decl): Likewise.  If base_type_die
5860         returns NULL, force generation of DW_TAG_typedef and put that into
5861         DW_AT_import.
5863         PR preprocessor/36649
5864         * c-pch.c (c_common_read_pch): Save and restore
5865         line_table->trace_includes across PCH restore.
5867 2008-07-30  Eric Botcazou  <ebotcazou@adacore.com>
5869         PR ada/36554
5870         * dwarf2out.c (is_subrange_type): Deal with BOOLEAN_TYPE.
5872 2008-07-30  Rafael Ávila de Espíndola  <espindola@google.com>
5874         PR 36974
5875         * final.c (call_from_call_insn): Handle COND_EXEC.
5877 2008-07-30  H.J. Lu  <hongjiu.lu@intel.com>
5879         * builtins.c (std_gimplify_va_arg_expr): Replace
5880         PREFERRED_STACK_BOUNDARY with MAX_SUPPORTED_STACK_ALIGNMENT.
5881         * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
5883 2008-07-30  Joey Ye  <joey.ye@intel.com>
5884             H.J. Lu  <hongjiu.lu@intel.com>
5886         * builtins.c (expand_builtin_setjmp_receiver): Replace
5887         virtual_incoming_args_rtx with crtl->args.internal_arg_pointer.
5888         (expand_builtin_apply_args_1): Likewise.
5889         (expand_builtin_longjmp): Need DRAP for stack alignment.
5890         (expand_builtin_apply): Likewise.
5892         * caller-save.c (setup_save_areas): Call assign_stack_local_1
5893         instead of assign_stack_local to allow alignment reduction.
5895         * calls.c (emit_call_1): Need DRAP for stack alignment if
5896         return pops.
5897         (expand_call): Replace virtual_incoming_args_rtx with
5898         crtl->args.internal_arg_pointer.
5899         * stmt.c (expand_nl_goto_receiver): Likewise.
5901         * cfgexpand.c (get_decl_align_unit): Estimate stack variable
5902         alignment and store to stack_alignment_estimated and
5903         max_used_stack_slot_alignment.
5904         (expand_one_var): Likewise.
5905         (expand_stack_alignment): New function.
5906         (tree_expand_cfg): Initialize max_used_stack_slot_alignment
5907         and stack_alignment_estimated fields in rtl_data.  Call
5908         expand_stack_alignment at end.
5910         * defaults.h (INCOMING_STACK_BOUNDARY): New.
5911         (MAX_STACK_ALIGNMENT): Likewise.
5912         (MAX_SUPPORTED_STACK_ALIGNMENT): Likewise.
5913         (SUPPORTS_STACK_ALIGNMENT): Likewise.
5915         * emit-rtl.c (gen_reg_rtx): Estimate stack alignment for
5916         stack alignment when generating virtual registers.
5918         * function.c (assign_stack_local): Renamed to ...
5919         (assign_stack_local_1): This.  Add a parameter to indicate
5920         if it is OK to reduce alignment.
5921         (assign_stack_local): Use it.
5922         (instantiate_new_reg): Instantiate virtual incoming args rtx
5923         to vDRAP if stack realignment and DRAP is needed.
5924         (assign_parms): Collect parameter/return type alignment and
5925         contribute to stack_alignment_estimated.
5926         (locate_and_pad_parm): Likewise.
5927         (get_arg_pointer_save_area): Replace virtual_incoming_args_rtx
5928         with crtl->args.internal_arg_pointer.
5930         * function.h (rtl_data): Add new field drap_reg,
5931         max_used_stack_slot_alignment, stack_alignment_estimated,
5932         stack_realign_needed, need_drap, stack_realign_processed and
5933         stack_realign_finalized.
5934         (stack_realign_fp): New macro.
5935         (stack_realign_drap): Likewise.
5937         * global.c (compute_regsets): Frame pointer is needed when
5938         stack is realigned.  Can eliminate frame pointer when stack is
5939         realigned and dynamic realigned argument pointer isn't used.
5941         * reload1.c (update_eliminables):  Frame pointer is needed
5942         when stack is realigned.
5943         (init_elim_table): Can eliminate frame pointer when stack is
5944         realigned and dynamic realigned argument pointer isn't used.
5946         * rtl.h (assign_stack_local_1): Declare new funtion.
5948         * target-def.h (TARGET_UPDATE_STACK_BOUNDARY): New.
5949         (TARGET_GET_DRAP_RTX): Likewise.
5950         (TARGET_CALLS): Add TARGET_UPDATE_STACK_BOUNDARY and
5951         TARGET_GET_DRAP_RTX.
5953         * target.h (gcc_target): Add update_stack_boundary and get_drap_rtx.
5955         * tree-vectorizer.c (vect_can_force_dr_alignment_p): Replace
5956         STACK_BOUNDARY with MAX_STACK_ALIGNMENT.
5958 2008-07-30  Xuepeng Guo  <xuepeng.guo@intel.com>
5959             H.J. Lu  <hongjiu.lu@intel.com>
5961         * dwarf2out.c (dw_fde_struct): Add stack_realignment, drap_reg,
5962         vdrap_reg, stack_realign and drap_reg_saved.
5963         (add_cfi): Don't allow redefining CFA when DRAP is used.
5964         (reg_save): Handle stack alignment.
5965         (dwarf2out_frame_debug_expr): Add rules 16-20 to handle stack
5966         alignment.  Don't generate DWARF information for (set fp sp)
5967         when DRAP is used.
5968         (dwarf2out_begin_prologue): Initialize drap_reg and vdrap_reg
5969         to INVALID_REGNUM.
5970         (int_loc_descriptor): Move prototype forward.  Also define if
5971         DWARF2_UNWIND_INFO is true.
5972         (output_cfa_loc): Handle DW_CFA_expression.
5973         (build_cfa_aligned_loc): New.
5974         (based_loc_descr): Update assert for stack realign.  For local
5975         variables, use sp+offset when stack is aligned without drap and
5976         fp+offset when stack is aligned with drap.  For arguments, use
5977         cfa+offset when drap is used to align stack.
5979 2008-07-30  Joey Ye  <joey.ye@intel.com>
5980             H.J. Lu  <hongjiu.lu@intel.com>
5982         * config/i386/i386.c (ix86_force_align_arg_pointer_string):
5983         Break long line.
5984         (ix86_gen_andsp): New.
5985         (ix86_user_incoming_stack_boundary): Likewise.
5986         (ix86_default_incoming_stack_boundary): Likewise.
5987         (ix86_incoming_stack_boundary): Likewise.
5988         (ix86_can_eliminate): Likewise.
5989         (find_drap_reg): Likewise.
5990         (ix86_update_stack_boundary): Likewise.
5991         (ix86_get_drap_rtx): Likewise.
5992         (ix86_finalize_stack_realign_flags): Likewise.
5993         (TARGET_UPDATE_STACK_BOUNDARY): Likewise.
5994         (TARGET_GET_DRAP_RTX): Likewise.
5995         (override_options): Overide option value for new options.
5996         (ix86_function_ok_for_sibcall): Remove check for
5997         force_align_arg_pointer.
5998         (ix86_handle_cconv_attribute): Likewise.
5999         (ix86_function_regparm): Likewise.
6000         (setup_incoming_varargs_64): Don't set stack_alignment_needed here.
6001         (ix86_va_start): Replace virtual_incoming_args_rtx with
6002         crtl->args.internal_arg_pointer.
6003         (ix86_select_alt_pic_regnum): Check DRAP register.
6004         (ix86_save_reg): Replace force_align_arg_pointer with drap_reg.
6005         (ix86_compute_frame_layout): Compute frame layout wrt stack
6006         realignment.
6007         (ix86_internal_arg_pointer): Just return virtual_incoming_args_rtx.
6008         (ix86_expand_prologue): Decide if stack realignment is needed
6009         and generate prologue code accordingly.
6010         (ix86_expand_epilogue): Generate epilogue code wrt stack
6011         realignment is really needed or not.
6013         * config/i386/i386.h (MAIN_STACK_BOUNDARY): New.
6014         (ABI_STACK_BOUNDARY): Likewise.
6015         (PREFERRED_STACK_BOUNDARY_DEFAULT): Likewise.
6016         (STACK_REALIGN_DEFAULT): Likewise.
6017         (INCOMING_STACK_BOUNDARY): Likewise.
6018         (MAX_STACK_ALIGNMENT): Likewise.
6019         (ix86_incoming_stack_boundary): Likewise.
6020         (FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN): Removed.
6021         (REAL_PIC_OFFSET_TABLE_REGNUM): Updated to use BX_REG.
6022         (CAN_ELIMINATE): Defined with ix86_can_eliminate.
6023         (machine_function): Remove force_align_arg_pointer.
6025         * config/i386/i386.md (BX_REG): New.
6026         (R13_REG): Likewise.
6028         * config/i386/i386.opt (mforce_drap): New.
6029         (mincoming-stack-boundary): Likewise.
6030         (mstackrealign): Add Init(-1).
6032         * config/i386/i386-protos.h (ix86_can_eliminate): New
6034 2008-07-30  H.J. Lu  <hongjiu.lu@intel.com>
6036         * doc/extend.texi: Update force_align_arg_pointer.
6038         * doc/invoke.texi: Document -mincoming-stack-boundary.  Update
6039         -mstackrealign.
6041         * doc/tm.texi (MAX_STACK_ALIGNMENT): Add macro.
6042         (INCOMING_STACK_BOUNDARY): Likewise.
6043         (TARGET_UPDATE_STACK_BOUNDARY): New target hook.
6044         (TARGET_GET_DRAP_RTX): Likewise.
6046 2008-07-30  Andreas Schwab  <schwab@suse.de>
6048         PR rtl-optimization/36929
6049         * dse.c (replace_inc_dec): Use emit_insn_before instead of
6050         add_insn_before and fix argument order.
6051         (replace_inc_dec_mem): Handle NULL rtx.
6053 2008-07-30  Andrew Jenner  <andrew@codesourcery.com>
6055         * config/arm/arm.c (arm_compute_static_chain_stack_bytes): New
6056         function.
6057         (arm_compute_initial_elimination_offset): Use it.
6058         (arm_compute_save_reg_mask): Include static chain save slot when
6059         calculating alignment.
6060         (arm_get_frame_offsets): Ditto.
6061         (thumb1_compute_save_reg_mask): Ensure we have a low register saved
6062         that we can use to decrement the stack when the stack decrement
6063         could be too big for an immediate value in a single insn.
6064         (thumb1_expand_prologue): Avoid using r12 for stack decrement.
6066 2008-07-30  Richard Guenther  <rguenther@suse.de>
6068         PR tree-optimization/36967
6069         * tree-predcom.c (remove_stmt): Use gimple_assign_ssa_name_copy_p.
6070         Release defs of statements we remove.
6072 2008-07-30  Nathan Froyd  <froydnj@codesourcery.com>
6074         * config/arm/arm.c (arm_expand_prologue): Use 0-length rtvec
6075         instead of NULL_RTVEC.
6077 2008-07-30  Nathan Froyd  <froydnj@codesourcery.com>
6079         PR target/35866
6081         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Add clause for
6082         vector modes.
6084 2008-07-30  Rafael Ávila de Espíndola  <espindola@google.com>
6086         * final.c (call_from_call_insn): New.
6087         (final_scan_insn): Call assemble_external on FUNCTION_DECLs.
6089 2008-07-30  Paolo Bonzini  <bonzini@gnu.org>
6091         * configure.ac: Substitute ADA_CFLAGS.
6092         * configure: Regenerate.
6093         * config.host: Remove mention of pa/x-ada and pa/x-ada-hpux10 files.
6094         * Makefile.in: Remove mention of X_* variables.
6095         * config/pa/x-ada-hpux10: Remove.
6096         * config/pa/x-ada: Remove.
6098         * doc/fragments.texi: Update.
6100 2008-07-30  Olivier Hainque  <hainque@adacore.com>
6102         * config/mips/irix-crti.asm: .hide __gcc_init and __gcc_fini.
6103         * config/mips/iris6.h (IRIX_SUBTARGET_LINK_SPEC, irix ld): Hide
6104         __dso_handle explicitly here.
6106 2008-07-30  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
6108         PR 34389
6109         * c-typeck.c (build_binary_op): Encapsulate code into...
6110         * c-common.c (shorten_binary_op): ...this new function.
6111         (conversion_warning): Use the new function. Handle non-negative
6112         constant in bitwise-and.
6113         * c-common.h (shorten_binary_op): Declare.
6115 2008-07-30  Olivier Hainque  <hainque@adacore.com>
6117         * scan.c (make_sstring_space): Add explicit conversions of
6118         allocator's return value.
6119         * fix-header.c (recognized_function): Likewise.
6121 2008-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6123         * doc/cpp.texi: Update to GFDL 1.2.
6124         * doc/gcc.texi: Do not list GPL as Invariant Section.
6125         * doc/gccint.texi: Likewise.  Update copyright years.
6126         * doc/install.texi: Update copyright years.
6128 2008-07-30  Alan Modra  <amodra@bigpond.net.au>
6130         PR target/36955
6131         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add
6132         a use of pic_offset_table_rtx for -msecure-plt __tls_get_addr calls.
6134 2008-07-29  Jan Hubicka  <jh@suse.cz>
6136         * c-decl.c (merge_decls): Do not handle DECL_INLINE.
6137         (grokdeclarator): Likewise.
6138         * langhooks.c (lhd_warn_unused_global_decl): Use
6139         DECL_DECLARED_INLINE_P.
6140         * print-tree.c (print_node): Remove DECL_INLINE check.
6142 2008-07-29  Richard Guenther  <rguenther@suse.de>
6144         PR tree-optimization/36945
6145         * tree-ssa-sccvn.h (copy_reference_ops_from_ref): Declare.
6146         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Export.
6147         Record invariant addresses un-decomposed.
6148         (copy_reference_ops_from_call): Record reference call
6149         arguments properly.  Simplify.
6150         * tree-ssa-pre.c (create_component_ref_by_pieces_1): New
6151         helper split out from ...
6152         (create_component_ref_by_pieces): ... here.  Simplify.
6153         Prepare for recursive invocation for call arguments.
6154         (create_expression_by_pieces): Adjust call to
6155         create_component_ref_by_pieces.
6156         (compute_avail): Process operand 2 of reference ops.
6158 2008-07-29  Richard Guenther  <rguenther@suse.de>
6160         * gimplify.c (gimplify_expr): Clear TREE_SIDE_EFFECTS for OBJ_TYPE_REF.
6162 2008-07-29  Jakub Jelinek  <jakub@redhat.com>
6164         * c-format.c (check_format_types): Revert unwanted checkin.
6166 2008-07-29  Jan Hubicka  <jh@suse.cz>
6168         * flags.h (flag_really_no_inline): Remove.
6169         * cgraph.c (cgraph_function_possibly_inlined_p): Simplify.
6170         * toplev.c (flag_really_no_inline): Remove.
6171         * c-cppbuiltin.c (c_cpp_builtins): Use flag_no_inline.
6172         * ipa-inline.c (cgraph_decide_inlining): Do not check flag_no_inline.
6173         (cgraph_decide_inlining_incrementally): Likewise.
6174         (compute_inline_parameters): Likewise.
6175         * opts.c (decode_options): Simplify.
6176         * c-opts.c (c_common_post_options): Do not set flag_no_inline.
6177         * common.opt (finline): Initialize to 1.
6178         * tree-inline.c (inlinable_function_p): Check flag_no_inline.
6180 2008-07-29  Jan Hubicka  <jh@suse.cz>
6182         * predict.c (always_optimize_for_size_p): New function.
6183         (optimize_bb_for_size_p, optimize_bb_for_speed_p,
6184         optimize_edge_for_size_p, optimize_edge_for_speed_p,
6185         optimize_insn_for_size_p, optimize_insn_for_speed_p): New global
6186         functions.
6187         (rtl_profile_for_bb, rtl_profile_for_edge, rtl_default_profile): New.
6188         * function.c (prepare_function_start): Set default profile.
6189         * function.h (rtl_data): Add maybe_hot_insn_p.
6190         * cfgexpand.c (expand_gimple_basic_block): Set RTL profile.
6191         (construct_exit_block): Likewise.
6192         (tree_expand_cfg): Likewise.
6193         * basic-block.h
6194         (optimize_bb_for_size_p, optimize_bb_for_speed_p,
6195         optimize_edge_for_size_p, optimize_edge_for_speed_p,
6196         optimize_insn_for_size_p, optimize_insn_for_speed_p): Declare.
6197         (rtl_profile_for_bb, rtl_profile_for_edge, default_rtl_profile):
6198         Declare.
6200 2008-07-29  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
6202         PR 34985
6203         * c-decl.c (merge_decls): Merge USED flags.
6205 2008-07-29  Kaz Kojima  <kkojima@gcc.gnu.org>
6207         * config/sh/sh.c (sh_gimplify_va_arg_expr): Unshare the addr,
6208         valist, next_fp, next_fp_tmp, next_fp_limit, next_o, next_o_limit,
6209         next_stack, lab_false and lab_over trees.
6211 2008-07-28  Richard Guenther  <rguenther@suse.de>
6213         PR tree-optimization/36957
6214         * tree-flow.h (tree_ssa_useless_type_conversion): Remove.
6215         (useless_type_conversion_p): Remove.
6216         (types_compatible_p): Remove.
6217         * gimple.h (tree_ssa_useless_type_conversion): Declare.
6218         (useless_type_conversion_p): Declare.
6219         (types_compatible_p): Declare.
6220         (gimple_expr_type): Return the base type only if it is
6221         trivially convertible to the subtype.
6223 2008-07-28  Andreas Tobler  <a.tobler@schweiz.org>
6225         * configure.ac: Use the m4_do macro to concatenate the warnings into
6226         one string in ACX_PROG_CC_WARNING_OPTS,
6227         ACX_PROG_CC_WARNING_ALMOST_PEDANTIC and ACX_PROG_CC_WARNINGS_ARE_ERRORS.
6228         * configure: Regenerate.
6230 2008-07-28  Richard Guenther  <rguenther@suse.de>
6232         * tree-ssa-pre.c (insert_into_preds_of_block): Remove dead code.
6233         (insert_fake_stores): Remove.
6234         (realify_fake_stores): Likewise.
6235         (execute_pre): Remove dead code.
6236         * tree-ssa-structalias.c (get_constraint_for_1): Remove tcc_unary case.
6237         (find_func_aliases): Deal with it here instead.
6238         Re-enable gcc_unreachable call.
6240 2008-07-28  Richard Guenther  <rguenther@suse.de>
6242         Merge from gimple-tuples-branch.
6244         * ChangeLog.tuples: ChangeLog from gimple-tuples-branch.
6245         * gimple.def: New file.
6246         * gsstruct.def: Likewise.
6247         * gimple-iterator.c: Likewise.
6248         * gimple-pretty-print.c: Likewise.
6249         * tree-gimple.c: Removed.  Merged into ...
6250         * gimple.c: ... here.  New file.
6251         * tree-gimple.h: Removed.  Merged into ...
6252         * gimple.h: ... here.  New file.
6254         * Makefile.in: Add dependencies on GIMPLE_H and tree-iterator.h.
6255         * configure.ac: Added support for ENABLE_GIMPLE_CHECKING and the
6256         --enable-checking=gimple flag.
6257         * config.in: Likewise.
6258         * configure: Regenerated.
6260         * tree-ssa-operands.h: Tuplified.
6261         * tree-vrp.c: Likewise.
6262         * tree-loop-linear.c: Likewise.
6263         * tree-into-ssa.c: Likewise.
6264         * tree-ssa-loop-im.c: Likewise.
6265         * tree-dump.c: Likewise.
6266         * tree-complex.c: Likewise.
6267         * cgraphbuild.c: Likewise.
6268         * tree-ssa-threadupdate.c: Likewise.
6269         * tree-ssa-loop-niter.c: Likewise.
6270         * tree-pretty-print.c: Likewise.
6271         * tracer.c: Likewise.
6272         * gengtype.c: Likewise.
6273         * tree-loop-distribution.c: Likewise.
6274         * tree-ssa-loop-unswitch.c: Likewise.
6275         * cgraph.c: Likewise.
6276         * cgraph.h: Likewise.
6277         * tree-ssa-loop-manip.c: Likewise.
6278         * value-prof.c: Likewise.
6279         * tree-ssa-loop-ch.c: Likewise.
6280         * tree-tailcall.c: Likewise.
6281         * value-prof.h: Likewise.
6282         * tree.c: Likewise.
6283         * tree.h: Likewise.
6284         * tree-pass.h: Likewise.
6285         * ipa-cp.c: Likewise.
6286         * tree-scalar-evolution.c: Likewise.
6287         * tree-scalar-evolution.h: Likewise.
6288         * target.h: Likewise.
6289         * lambda-mat.c: Likewise.
6290         * tree-phinodes.c: Likewise.
6291         * diagnostic.h: Likewise.
6292         * builtins.c: Likewise.
6293         * tree-ssa-alias-warnings.c: Likewise.
6294         * cfghooks.c: Likewise.
6295         * fold-const.c: Likewise.
6296         * cfghooks.h: Likewise.
6297         * omp-low.c: Likewise.
6298         * tree-ssa-dse.c: Likewise.
6299         * ipa-reference.c: Likewise.
6300         * tree-ssa-uncprop.c: Likewise.
6301         * toplev.c: Likewise.
6302         * tree-gimple.c: Likewise.
6303         * tree-gimple.h: Likewise.
6304         * tree-chrec.c: Likewise.
6305         * tree-chrec.h: Likewise.
6306         * tree-ssa-sccvn.c: Likewise.
6307         * tree-ssa-sccvn.h: Likewise.
6308         * cgraphunit.c: Likewise.
6309         * tree-ssa-copyrename.c: Likewise.
6310         * tree-ssa-ccp.c: Likewise.
6311         * tree-ssa-loop-ivopts.c: Likewise.
6312         * tree-nomudflap.c: Likewise.
6313         * tree-call-cdce.c: Likewise.
6314         * ipa-pure-const.c: Likewise.
6315         * c-format.c: Likewise.
6316         * tree-stdarg.c: Likewise.
6317         * tree-ssa-math-opts.c: Likewise.
6318         * tree-ssa-dom.c: Likewise.
6319         * tree-nrv.c: Likewise.
6320         * tree-ssa-propagate.c: Likewise.
6321         * ipa-utils.c: Likewise.
6322         * tree-ssa-propagate.h: Likewise.
6323         * tree-ssa-alias.c: Likewise.
6324         * gimple-low.c: Likewise.
6325         * tree-ssa-sink.c: Likewise.
6326         * ipa-inline.c: Likewise.
6327         * c-semantics.c: Likewise.
6328         * dwarf2out.c: Likewise.
6329         * expr.c: Likewise.
6330         * tree-ssa-loop-ivcanon.c: Likewise.
6331         * predict.c: Likewise.
6332         * tree-ssa-loop.c: Likewise.
6333         * tree-parloops.c: Likewise.
6334         * tree-ssa-address.c: Likewise.
6335         * tree-ssa-ifcombine.c: Likewise.
6336         * matrix-reorg.c: Likewise.
6337         * c-decl.c: Likewise.
6338         * tree-eh.c: Likewise.
6339         * c-pretty-print.c: Likewise.
6340         * lambda-trans.c: Likewise.
6341         * function.c: Likewise.
6342         * langhooks.c: Likewise.
6343         * ebitmap.h: Likewise.
6344         * tree-vectorizer.c: Likewise.
6345         * function.h: Likewise.
6346         * langhooks.h: Likewise.
6347         * tree-vectorizer.h: Likewise.
6348         * ipa-type-escape.c: Likewise.
6349         * ipa-type-escape.h: Likewise.
6350         * domwalk.c: Likewise.
6351         * tree-if-conv.c: Likewise.
6352         * profile.c: Likewise.
6353         * domwalk.h: Likewise.
6354         * tree-data-ref.c: Likewise.
6355         * tree-data-ref.h: Likewise.
6356         * tree-flow-inline.h: Likewise.
6357         * tree-affine.c: Likewise.
6358         * tree-vect-analyze.c: Likewise.
6359         * c-typeck.c: Likewise.
6360         * gimplify.c: Likewise.
6361         * coretypes.h: Likewise.
6362         * tree-ssa-phiopt.c: Likewise.
6363         * calls.c: Likewise.
6364         * tree-ssa-coalesce.c: Likewise.
6365         * tree.def: Likewise.
6366         * tree-dfa.c: Likewise.
6367         * except.c: Likewise.
6368         * except.h: Likewise.
6369         * cfgexpand.c: Likewise.
6370         * tree-cfgcleanup.c: Likewise.
6371         * tree-ssa-pre.c: Likewise.
6372         * tree-ssa-live.c: Likewise.
6373         * tree-sra.c: Likewise.
6374         * tree-ssa-live.h: Likewise.
6375         * tree-predcom.c: Likewise.
6376         * lambda.h: Likewise.
6377         * tree-mudflap.c: Likewise.
6378         * ipa-prop.c: Likewise.
6379         * print-tree.c: Likewise.
6380         * tree-ssa-copy.c: Likewise.
6381         * ipa-prop.h: Likewise.
6382         * tree-ssa-forwprop.c: Likewise.
6383         * ggc-page.c: Likewise.
6384         * c-omp.c: Likewise.
6385         * tree-ssa-dce.c: Likewise.
6386         * tree-vect-patterns.c: Likewise.
6387         * tree-ssa-ter.c: Likewise.
6388         * tree-nested.c: Likewise.
6389         * tree-ssa.c: Likewise.
6390         * lambda-code.c: Likewise.
6391         * tree-ssa-loop-prefetch.c: Likewise.
6392         * tree-inline.c: Likewise.
6393         * tree-inline.h: Likewise.
6394         * tree-iterator.c: Likewise.
6395         * tree-optimize.c: Likewise.
6396         * tree-ssa-phiprop.c: Likewise.
6397         * tree-vect-transform.c: Likewise.
6398         * tree-object-size.c: Likewise.
6399         * tree-outof-ssa.c: Likewise.
6400         * cfgloop.c: Likewise.
6401         * system.h: Likewise.
6402         * tree-profile.c: Likewise.
6403         * cfgloop.h: Likewise.
6404         * c-gimplify.c: Likewise.
6405         * c-common.c: Likewise.
6406         * tree-vect-generic.c: Likewise.
6407         * tree-flow.h: Likewise.
6408         * c-common.h: Likewise.
6409         * basic-block.h: Likewise.
6410         * tree-ssa-structalias.c: Likewise.
6411         * tree-switch-conversion.c: Likewise.
6412         * tree-ssa-structalias.h: Likewise.
6413         * tree-cfg.c: Likewise.
6414         * passes.c: Likewise.
6415         * ipa-struct-reorg.c: Likewise.
6416         * ipa-struct-reorg.h: Likewise.
6417         * tree-ssa-reassoc.c: Likewise.
6418         * cfgrtl.c: Likewise.
6419         * varpool.c: Likewise.
6420         * stmt.c: Likewise.
6421         * tree-ssanames.c: Likewise.
6422         * tree-ssa-threadedge.c: Likewise.
6423         * langhooks-def.h: Likewise.
6424         * tree-ssa-operands.c: Likewise.
6425         * config/alpha/alpha.c: Likewise.
6426         * config/frv/frv.c: Likewise.
6427         * config/s390/s390.c: Likewise.
6428         * config/m32c/m32c.c: Likewise.
6429         * config/m32c/m32c-protos.h: Likewise.
6430         * config/spu/spu.c: Likewise.
6431         * config/sparc/sparc.c: Likewise.
6432         * config/i386/i386.c: Likewise.
6433         * config/sh/sh.c: Likewise.
6434         * config/xtensa/xtensa.c: Likewise.
6435         * config/stormy16/stormy16.c: Likewise.
6436         * config/ia64/ia64.c: Likewise.
6437         * config/rs6000/rs6000.c: Likewise.
6438         * config/pa/pa.c: Likewise.
6439         * config/mips/mips.c: Likewise.
6441 2008-07-28  Simon Baldwin  <simonb@google.com>
6443         * c-pragma.c (handle_pragma_message): New function.
6444         (init_pragma): Register handle_pragma_message.
6445         * doc/extend.texi (Diagnostic Pragmas): Added #pragma message
6446         documentation.
6448 2008-07-27  Victor Kaplansky  <victork@il.ibm.com>
6450         PR tree-optimization/35252
6451         * tree-vect-analyze.c (vect_build_slp_tree): Make IMAGPART_EXPR and
6452         REALPART_EXPR to be considered as same load operation.
6454 2008-07-27  Eric Botcazou  <ebotcazou@adacore.com>
6456         PR tree-optimization/36830
6457         * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Hash operand #2.
6458         (expressions_equal_p): Return false if only one operand is null.
6460 2008-07-26  Gerald Pfeifer  <gerald@pfeifer.com>
6462         * doc/install.texi (powerpc-*-netbsd*): Remove redundant texinfo
6463         version requirements.
6465 2008-07-26  Olivier Hainque  <hainque@adacore.com>
6467         * collect2.c (symkind): New enum.  Symbol kinds we care about.
6468         (is_ctor_dtor): Return symkind instead of int.  Adjust prototype,
6469         code and head comment accordingly.
6470         (scan_prog_file): Use symkind names instead of bare integers.
6472 2008-07-25  Jan Hubicka  <jh@suse.cz>
6474         * cgraph.c (cgraph_function_possibly_inlined_p): Do not rely on
6475         DECL_INLINE.
6476         * cgraphunit.c (record_cdtor_fn): Do not initialize DECL_INLINE
6477         (cgraph_preserve_function_body_p): Do not rely on DECL_INLINE.
6478         * dojump.c (clear_pending_stack_adjust): Likewise.
6479         * print-tree.c (print_node): Ignore DECL_INLINE.
6480         * tree-inline.c (inlinable_function_p): Likewise.
6482 2008-07-25  Michael Meissner  <gnu@the-meissners.org>
6484         * doc/extend.texi (hot attribute): Document that the hot attribute
6485         turns on -O3 for some ports.
6486         (cold attribute): Document that the cold attribute turns on -Os
6487         for some ports
6489         * doc/tm.texi (OPTIMIZATION_OPTIONS): Update documentation to
6490         reflect function specific option support.
6492         * target.h (struct target_option_hooks): Add fields to say whether
6493         the cold attribute implies -Os and the hot attribute implies -O3.
6495         * target-def.h (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION):
6496         By default, do not turn on -Os for cold functions.
6497         (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): By default, do
6498         not turn on -O3 for hot functions.
6500         * c-common.c (handle_hot_attribute): Use target hook to determine
6501         if hot functions should enable -O3.
6502         (handle_cold_attribute): Use target hook to determine if cold
6503         functions should enable -Os.
6505         * config/i386/i386.c (ix86_target_string): Add -m3dnowa support.
6506         (override_options): Move disable scheduling to
6507         optimization_options.
6508         (optimization_options): Disable scheduling here, not
6509         override_options.
6510         (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): Define.
6511         (TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION): Define.
6513         * config/ia64/ia64.c (ia64_override_options): Move setting
6514         scheduling flags to ia64_optimization_options.
6515         (ia64_optimization_options): Disable scheduling options here, and
6516         not in ia64_override_options.
6517         (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): Define.
6518         (TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION): Define.
6520 2008-07-25  H.J. Lu  <hongjiu.lu@intel.com>
6522         PR target/36936
6523         * config/i386/i386.c (override_options): Don't clear TARGET_CMOVE.
6525 2008-07-25  Martin Jambor  <mjambor@suse.cz>
6527         PR tree-optimization/36926
6528         * ipa-prop.c (ipa_analyze_call_uses): Call
6529         ipa_is_ssa_with_stmt_def instead of SSA_NAME_IS_DEFAULT_DEF.
6531 2008-07-25  Joseph Myers  <joseph@codesourcery.com>
6533         * config/arm/iwmmxt.md (movv8qi_internal, movv4hi_internal,
6534         movv2si_internal): Add mem = reg alternative.
6536 2008-07-25  Andreas Tobler  <a.tobler@schweiz.org>
6538         PR bootstrap/36918
6539         * config/sparc/sparc.h (DEFAULT_PCC_STRUCT_RETURN): Define
6540         DEFAULT_PCC_STRUCT_RETURN to 127.
6542 2008-07-24  Jan Hubicka  <jh@suse.cz>
6544         * cgraphbuild.c (record_reference): Drop non-unit-at-a-time code.
6545         (build_cgraph_edges): Likewise.
6546         * cgraph.c (cgraph_node): Do not update assembler hash.
6547         (cgraph_remove_node): Drop non-unit-at-a-time code.
6548         * tree-pass.h (pass_O0_always_inline): Remove.
6549         * ipa-reference.c (gate_reference): Remove unit-at-a-time check.
6550         * toplev.c (process_options): Flag unit-at-a-time does not imply
6551         no section anchors.
6552         * cgraphunit.c: Update comments.
6553         (decide_is_function_needed): Drop non-unit-at-a-time mode.
6554         (cgraph_assemble_pending_functions): Remove.
6555         (cgraph_reset_node): Drop non-unit-at-a-time code.
6556         (cgraph_finalize_function): Likewise.
6557         (cgraph_analyze_function): Likewise.
6558         (cgraph_finalize_compilation_unit): Likewise.
6559         (cgraph_expand_function): Likewise.
6560         (cgraph_optimize): Likesise.
6561         (save_inline_function_body): Likewise.
6562         * ipa-pure-const.c (gate_pure_const): Drop flag_unit_at_a_time check.
6563         * tree-ssa-alias.c (maybe_be_aliased): Likewise.
6564         * ipa-inline.c: Update comments.
6565         (enum inlining_mode): remove INLINE_SPEED.
6566         (cgraph_clone_inlined_nodes): Drop unit-at-a-time check.
6567         (cgraph_mark_inline_edge): Likewise.
6568         (try_inline): Likewise.
6569         (cgraph_decide_inlining_incrementally): Likewise.
6570         (cgraph_gate_inlining): Remove.
6571         (cgraph_early_inlining): Remove flag_unit_at_a_time checks.
6572         (cgraph_gate_early_inlining): Likewise.
6573         (gate_inline_passes): Remove.
6574         (pass_inline_parameters, pass_ipa_inline): Remove gates.
6575         (cgraph_gate_O0_always_inline, cgraph_O0_always_inline,
6576         pass_O0_always_inline): Remove.
6577         * c-pch.c (c_pch_matching): Remove -funit-at-a-time.
6578         * dwarf2out.c (reference_to_unused): Remove flag_unit_at_a_time check.
6579         * opts.c (no_unit_at_a_time_default): Remove.
6580         (decode_options): Remove flag_unit_at_a_time reset and warning.
6581         * opts.h (no_unit_at_a_time_default): Remove.
6582         * c-decl.c (diagnose_mismatched_decls): Do not require inline keyword
6583         early in GNU dialect.
6584         (merge_decls): Update comment; drop unit-at-a-time check.
6585         (finish_decl): Likewise.
6586         (grok_declaration): Remove flag_inline_trees code.
6587         (finish_functions): Return on function returning non-void on all
6588         statics.
6589         * ipa-tye-escape.c (gate_type_escape_vars): Remove.
6590         * cfgexpand.c (expand_one_static_var): Remove.
6591         (expand_one_var): Remove expand_one_static_var call.
6592         (expand_used_vars_for_block): Remove flag_unit_a_time check.
6593         * c-opts.c (c_common_post_options): Remove flag_inline_trees code
6594         and flag_unit_at_a-time compatibility checks.
6595         * varasm.c (assemble_alias): Remove flag_unit_at_a_time check.
6596         * tree-inline.c (flag_inline_trees): Remove.
6597         (inlinable_function_p): Don't check it.
6598         (expand_call_inline): Remove non-unit-at-a-time code.
6599         * tree-inline.h (flag_inline_trees): Remove.
6600         * tree-optimize.c (execute_early_local_optimizations): Remove
6601         unit-at-a-time checks.
6602         (tree_rest_of_compilation): Likewise.
6603         * combine.c (setup_incoming_promotions): Likewise.
6604         * tree-profile.c (tree_gen_ic_func_profiler): Likewise.
6605         * tree-ssa-structalias.c (delete_points_to_sets): Likewise.
6606         * passes.c (pass_inline_parameters): Update comments; remove
6607         O0_alwaysinline pass.
6608         (execute_one_ipa_transform_pass): Do not reset in_gimple_form.
6609         (execute_one_pass): Likewise.
6610         * i386.c (ix86_function_regparm): Remove unit-at-a-time check.
6611         (ix86_function_sseregparm): Likewise.
6612         * arm.c (arm_function_in_section_p): Likewise.
6613         * bfin.c (bfin_load_pic_reg, bfin_function_ok_for_sibcall): Likewise.
6614         * varpool.c: Update comments.
6615         (decide_is_variable_needed): Remove unit-at-a-time checks.
6616         (varpool_finalize_decl): Likewise.
6618 2008-07-24  Kaz Kojima  <kkojima@gcc.gnu.org>
6620         * config/sh/sh.h (OPTIMIZATION_OPTIONS): Set flag_omit_frame_pointer
6621         to 2 instead of -1.
6622         (OVERRIDE_OPTIONS): Check if flag_omit_frame_pointer is equal to 2.
6624 2008-07-24  Kai Tietz  <kai.tietz@onevision.com>
6626         * config/i386/i386.c (get_dllimport_decl): Treat user_label_prefix for
6627         imp symbol extension.
6629         2008-07-23  Ian Lance Taylor  <iant@google.com>
6631         * tree-vrp.c (infer_value_range): Ignore asm statements when
6632         looking for memory accesses for -fdelete-null-pointer-checks.
6634 2008-07-24  Ben Elliston  <bje@au.ibm.com>
6636         * config/spu/spu-c.c (__vector_keyword): New variable.
6637         (vector_keyword): Likewise.
6638         (spu_categorize_keyword): New function.
6639         (spu_macro_to_expand): Likewise.
6640         (spu_cpu_cpp_builtins): Enable context-sensitive macros if not
6641         compiling an ISO C dialect.
6643 2008-07-24  Ben Elliston  <bje@au.ibm.com>
6645         * config/rs6000/rs6000-c.c: Move GTY(()) markers to match
6646         conventional usage.
6648 2008-07-23  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
6650         * configure: Regenerate.
6651         * configure.ac: Require texinfo 4.7.
6652         * doc/install.texi: Document texinfo 4.7 requirement.
6654 2008-07-23  Martin Jambor  <mjambor@suse.cz>
6656         * ipa-cp.c (ipcp_print_edge_profiles): Test for node->analyzed
6657         rather than for DECL_SAVED_TREE.
6658         * ipa-prop.c: Include diagnostic.h.
6659         (ipa_check_stmt_modifications): Check LHS of GIMPLE_MODIFY_EXPRs
6660         thoroughly.
6661         (ipa_detect_param_modifications): Function rewritten from scratch.
6662         (ipa_compute_jump_functions): Changed accesses to modification flags.
6663         (ipa_free_node_params_substructures): Update flags destruction.
6664         (ipa_node_duplication_hook): Update flags duplication.
6665         (ipa_print_all_params_modified): Updated flag access.
6666         * ipa-prop.h (struct ipa_param_flags): New structure.
6667         (struct ipa_node_params): New field modification_analysis_done,
6668         modified_flags changed into param_flags.
6669         (ipa_is_ith_param_modified): Changed to use new flags.
6670         * Makefile.in (ipa-prop.o): Add $(DIAGNOSTIC_H) to dependencies.
6672         * ipa-prop.c (ipa_print_all_jump_functions): Moved here from
6673         ipa-cp.c and split into two functions.
6674         (ipa_print_node_jump_functions): New function.
6675         (compute_scalar_jump_functions): New function.
6676         (type_like_member_ptr_p): New function.
6677         (compute_pass_through_member_ptrs): New function.
6678         (fill_member_ptr_cst_jump_function): New function.
6679         (determine_cst_member_ptr): New function.
6680         (compute_cst_member_ptr_arguments): New function.
6681         (ipa_compute_jump_functions): Complete rewrite.
6682         * ipa-prop.h (enum jump_func_type): Make explicit that we depend
6683         on IPA_UNKNOWN being zero. Added value IPA_CONST_MEMBER_PTR.
6684         (struct ipa_member_ptr_cst): New structure.
6685         (union jump_func_value): New field member_cst.
6686         * ipa-cp.c (ipcp_lat_is_insertable): New function.
6687         (ipcp_lattice_from_jfunc): Produces bottom lattices for unhandled
6688         jump function types.
6689         (ipcp_print_all_lattices): Slight fprintf rearrangement.
6690         (ipcp_print_all_structures): Call ipa_print_all_jump_functions
6691         instead of ipcp_print_all_jump_functions.
6692         (ipcp_insert_stage): Use ipcp_lat_is_insertable, create replace maps
6693         only for replacable scalars.
6695         * doc/invoke.texi (Optimize options): Add description of
6696         -findirect-inlining.
6697         * common.opt (flag_indirect_inlining): New flag.
6698         * opts.c (decode_options): Set flag_indirect_inlining when
6699         optimize >= 3.
6701         * ipa-inline.c: Include ipa-prop.h.
6702         (inline_indirect_intraprocedural_analysis): New function.
6703         (inline_generate_summary): Allocate parameter and argument info
6704         structures, call inline_indirect_intraprocedural_analysis on each
6705         node when doing indirect inlining and deallocate indirect inlining
6706         data structures in the end.
6707         * ipa-prop.c (ipa_create_param_decls_array): Return if already done.
6708         (free_all_ipa_structures_after_iinln): New function.
6709         (free_all_ipa_structures_after_ipa_cp): Checks whether iinln will be
6710         done.
6711         * Makefile.in (ipa-inline.o): Added $(IPA_PROP_H) to dependencies.
6713         * cgraphbuild.c (compute_call_stmt_bb_frequency): New function.
6714         (build_cgraph_edges): Call compute_call_stmt_bb_frequency instead
6715         of computing the frequency separately.
6716         (rebuild_cgraph_edges): Call compute_call_stmt_bb_frequency instead
6717         of computing the frequency separately.
6718         * ipa-cp.c (ipcp_print_all_structures): Replace a call to
6719         ipa_print_all_param_modified with a call to ipa_print_all_param_flags.
6720         * ipa-prop.c (ipa_get_member_ptr_load_param): New function.
6721         (ipa_get_stmt_member_ptr_load_param): New function.
6722         (ipa_is_ssa_with_stmt_def): New function.
6723         (ipa_note_param_call): New function.
6724         (ipa_analyze_call_uses): New function.
6725         (ipa_analyze_stmt_uses): New function.
6726         (ipa_analyze_params_uses): New function.
6727         (ipa_free_node_params_substructures): Also free the param_calls linked
6728         list.
6729         (ipa_node_duplication_hook): Also duplicate the param_calls linked list.
6730         (ipa_print_node_param_flags): New function.
6731         (ipa_print_all_params_modified): Renamed to ipa_print_all_param_flags.
6732         (ipa_print_all_param_flags): Calls ipa_print_node_param_flags.
6733         * ipa-prop.h (struct ipa_param_flags): New field called.
6734         (struct ipa_param_call_note): New structure.
6735         (struct ipa_node_params): New fields param_calls and
6736         uses_analysis_done.
6737         (ipa_is_ith_param_called): New function.
6738         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
6739         ipa_analyze_params_uses and dump parameter flags.
6741         * ipa-inline.c (cgraph_decide_recursive_inlining): Call
6742         ipa_propagate_indirect_call_infos if performing indirect inlining,
6743         pass a new parameter new_edges to it.
6744         (add_new_edges_to_heap): New fucntion.
6745         (cgraph_decide_inlining_of_small_functions): New vector
6746         new_indirect_edges for newly found indirect edges , call
6747         ipa_propagate_indirect_call_infos after inlining.
6748         (cgraph_decide_inlining): Call ipa_propagate_indirect_call_infos after
6749         inlining if performing indirect inlining.  Call
6750         free_all_ipa_structures_after_iinln when doing so too.
6751         (inline_generate_summary): Do not call
6752         free_all_ipa_structures_after_iinln here.
6753         * ipa-prop.c (update_jump_functions_after_inlining): New function.
6754         (print_edge_addition_message): New function.
6755         (update_call_notes_after_inlining): New function.
6756         (propagate_info_to_inlined_callees): New function.
6757         (ipa_propagate_indirect_call_infos): New function.
6758         * ipa-prop.h: Include cgraph.h
6759         (struct ipa_param_call_note): Fields reordered, new field processed.
6760         * cgraph.h (cgraph_edge): Shrink loop_nest field to 31 bits, add a new
6761         flag indirect_call.
6762         * cgraphunit.c (verify_cgraph_node): Allow indirect edges not to have
6763         rediscovered call statements.
6764         * cgraph.c (cgraph_create_edge): Initialize indirect_call to zero.
6765         (dump_cgraph_node): Dump also the indirect_call flag.
6766         (cgraph_clone_edge): Copy also the indirect_call flag.
6767         * tree-inline.c (copy_bb): Do not check for fndecls from call
6768         expressions, check for edge availability when moving clones.
6769         (get_indirect_callee_fndecl): New function.
6770         (expand_call_inline): If callee declaration is not apprent from
6771         the statement, try calling get_indirect_callee_fndecl.  Do not
6772         issue warnings or call sorry when not inlinings an indirect edge.
6773         * Makefile.in (IPA_PROP_H): Added $(CGRAPH_H) to dependencies.
6775         * ipa-prop.c (ipa_print_node_param_flags): Make the dump format a
6776         bit more frandly to matching.
6777         * testsuite/g++.dg/ipa/iinline-1.C: New testcase.
6778         * testsuite/gcc.dg/ipa/iinline-1.c: New testcase.
6779         * testsuite/gcc.dg/ipa/modif-1.c: New testcase.
6781 2008-07-23  Michael Meissner  <gnu@the-meissners.org>
6783         PR 36907
6784         * opth-gen.awk: Suppress function specific features when building
6785         target libraries.
6786         * optc-gen.awk: Ditto.
6788 2008-07-23  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
6790         PR 35058
6791         * diagnostic.c (pedwarn): Add opt parameter.
6792         (pedwarn0): New.
6793         * c-tree.h (pedwarn_init): Add opt parameter.
6794         (pedwarn_c90): Likewise.
6795         (pedwarn_c99): Likewise.
6796         * c-errors.c (pedwarn_c99): Likewise.
6797         (pedwarn_c90): Likewise.
6798         * toplev.h (pedwarn): Update declaration.
6799         (pedwarn0): Declare.
6800         * c-lex.c: All calls to pedwarn changed.
6801         * builtins.c: All calls to pedwarn changed.
6802         * toplev.c: All calls to pedwarn changed.
6803         * c-decl.c: All calls to pedwarn changed.
6804         * c-typeck.c: All calls to pedwarn changed.
6805         * c-common.c: All calls to pedwarn changed.
6806         * c-parser.c: All calls to pedwarn changed.
6808 2008-07-23  Michael Meissner  <gnu@the-meissners.org>
6809             Karthik Kumar  <karthikkumar@gmail.com>
6811         * attribs.c (file scope): Include c-common.h.
6812         (decl_attributes): Add support for #pragma GCC optimize and
6813         #pragma GCC option.
6815         * targhooks.c (default_can_inline_p): New function that is the
6816         default for the TARGET_CAN_INLINE_P target hook.
6818         * targhooks.h (default_can_inline_p): Add declaration.
6820         * tree.c (cl_optimization_node): New static tree for building
6821         OPTIMIZATION_NODE tree.
6822         (cl_target_option_node): New static tree for building
6823         TARGET_OPTION_NODE tree.
6824         (cl_option_hash_table): New hash table for hashing
6825         OPTIMIZATION_NODE and TARGET_OPTION_NODE trees.
6826         (cl_option_hash_hash): New function to provide the hash value for
6827         OPTIMIZATION_NODE and TARGET_OPTION_NODE trees.
6828         (cl_option_hash_eq): New function to provide an equality test for
6829         OPTIMIZATION_NODE and TARGET_OPTION_NODE trees.
6830         (tree_code_size): Add support for OPTIMIZATION_NODE and
6831         TARGET_OPTION_NODE trees.
6832         (tree_code_structure): Add support for OPTIMIZATION_NODE and
6833         TARGET_OPTION_NODE trees.
6834         (build_optimization_node): Build a tree that has all of the
6835         current optimization options.
6836         (build_target_option_node): Build a tree that has the target
6837         options that might be changed on a per function basis.
6839         * tree.h (file scope): Include options.h.
6840         (DECL_FUNCTION_SPECIFIC_TARGET): New accessor macro.
6841         (DECL_FUNCTION_SPECIFIC_OPTIMIZATION): Ditto.
6842         (TREE_OPTIMIZATION): Ditto.
6843         (TREE_TARGET_SPECIFIC): Ditto.
6844         (struct tree_function_decl): Add fields for remembering the
6845         current optimization options and target specific options.
6846         (struct tree_optimization_option): New tree variant that remembers
6847         the optimization options.
6848         (struct tree_target_option): New tree variant that remembers the
6849         target specific flags that might change for compiling a particular
6850         function.
6851         (union tree_node): Include tree_optimization_option and
6852         tree_target_option fields.
6853         (enum tree_index): Add TI_OPTIMIZATION_DEFAULT,
6854         TI_OPTIMIZATION_CURRENT, TI_OPTIMIZATION_COLD,
6855         TI_OPTIMIZATION_HOT, TI_TARGET_OPTION_DEFAULT,
6856         TI_TARGET_OPTION_CURRENT, TI_CURRENT_OPTION_PRAGMA,
6857         TI_CURRENT_OPTIMIZE_PRAGMA entries for saving function specific
6858         optimization and target options.
6859         (optimization_default_node): New macro to refer to global_trees
6860         field.
6861         (optimization_current_node): Ditto.
6862         (optimization_cold_node): Ditto.
6863         (optimization_hot_node): Ditto.
6864         (target_option_default_node): Ditto.
6865         (target_option_current_node): Ditto.
6866         (current_option_pragma): Ditto.
6867         (current_optimize_pragma): Ditto.
6869         * target.h (struct gcc_target): Add valid_option_attribute_p,
6870         target_option_save, target_option_restore, target_option_print,
6871         target_option_pragma_parse, and can_inline_p hooks.
6873         * toplev.h (parse_optimize_options): Add declaration.
6874         (fast_math_flags_struct_set_p): Ditto.
6876         * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): New function to
6877         adjust the current __OPTIMIZE__, etc. macros when #pragma GCC
6878         optimize is used.
6880         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Call
6881         tree_can_inline_p hook to see if one function can inline another.
6882         (cgraph_decide_inlining): Ditto.
6883         (cgraph_decide_inlining_incrementally): Ditto.
6885         * opts.c (decode_options): Add support for running multiple times
6886         to allow functions with different target or optimization options
6887         than was specified on the command line.
6888         (fast_math_flags_struct_set_p): New function that is similar to
6889         fast_math_flags_set_p, except it uses the values in the
6890         cl_optimization structure instead of global variables.
6892         * optc-gen.awk: Add support for TargetSave to allow a back end to
6893         declare new fields that need to be saved when using function
6894         specific options.  Include flags.h and target.h in the options.c
6895         source.  Add support for Save to indicate which options can be set
6896         for individual functions.  Generate cl_optimize_save,
6897         cl_optimize_restore, cl_optimize_print, cl_target_option_save,
6898         cl_target_option_restore, cl_target_option_print functions to
6899         allow functions to use different optimization or target options.
6901         * opt-functions.awk (var_type_struct): Return the type used for
6902         storing the field in a structure.
6904         * opth-gen.awk: Add support for TargetSave to allow a back end to
6905         declare new fields that need to be saved when using function
6906         specific options.  Add support for Save to indicate which options
6907         can be set for individual functions.  Only generate one extern for
6908         Mask fields.  Generate cl_optimization and cl_target_option
6909         structures to remember optimization and target options.
6911         * treestruct.def (TS_OPTIMIZATION): Add support for garbage
6912         collecting new tree nodes.
6913         (TS_TARGET_OPTION): Ditto.
6915         * c-decl.c (merge_decls): Merge function specific target and
6916         optimization options.
6918         * function.c (invoke_set_current_function_hook): If the function
6919         uses different optimization options, change the global variables
6920         to reflect this.
6922         * coretypes.h (struct cl_optimization): Add forward reference.
6923         (struct cl_target_option): Ditto.
6925         * c-pragma.c (option_stack): New static vector to remember the
6926         current #pragma GCC option stack.
6927         (handle_pragma_option): New function to support #pragma GCC option
6928         to change target options.
6929         (optimize_stack): New static vector to remember the current
6930         #pragma GCC optimize stack.
6931         (handle_pragma_optimize): New function to support #pragma GCC
6932         optimize to change optimization options.
6933         (init_pragma): Add support for #pragma GCC optimize and #pragma
6934         GCC option.
6936         * tree.def (OPTIMIZATION_NODE): New tree code for remembering
6937         optimization options.
6938         (TARGET_OPTION_NODE): New tree code for remembering certain target
6939         options.
6941         * print-tree.c (print_node): Add support for OPTIMIZATION_NODE and
6942         TARGET_OPTION_NODE trees.
6944         * common.opt (-O): Add Optimization flag.
6945         (-Os): Ditto.
6946         (-fmath-errno): Ditto.
6947         (-falign-functions): Add UInteger flag to make sure flag gets full
6948         int in cl_optimization structure.
6949         (-falign-jumps): Ditto.
6950         (-falign-labels): Ditto.
6951         (-falign-loops): Ditto.
6952         (-fsched-stalled-insns): Ditto.
6953         (-fsched-stalled-insns-dep): Ditto.
6955         * target-def.h (TARGET_VALID_OPTION_ATTRIBUTE_P): Add default
6956         definition.
6957         (TARGET_OPTION_SAVE): Ditto.
6958         (TARGET_OPTION_RESTORE): Ditto.
6959         (TARGET_OPTION_PRINT): Ditto.
6960         (TARGET_OPTION_PRAGMA_PARSE): Ditto.
6961         (TARGET_CAN_INLINE_P): Ditto.
6962         (TARGET_INITIALIZER): Add new hooks.
6964         * tree-inline.c (tree_can_inline_p): New function to determine
6965         whether one function can inline another.  Check if the functions
6966         use compatible optimization options, and also call the backend
6967         can_inline_p hook.
6969         * tree-inline.h (tree_can_inline_p): Add declaration.
6971         * c-common.c (c_common_attribute): Add support for option and
6972         optimize attributes.
6973         (handle_option_attribute): Add support for the option attribute to
6974         allow the user to specify different target options for compiling a
6975         specific function.
6976         (handle_optimize_attribute): Add support for the optimize
6977         attribute to allow the user to specify different optimization
6978         options for compiling a specific function.
6979         (handle_hot_attribute): Turn on -O3 optimization for this one
6980         function if it isn't the default optimization level.
6981         (handle_cold_attribute): Turn on -Os optimization for this one
6982         function if it insn't the default optimization.
6983         (const_char_p): New const char * typedef.
6984         (optimize_args): New static vector to remember the optimization
6985         arguments.
6986         (parse_optimize_options): New function to set up the optimization
6987         arguments from either the optimize attribute or #pragma GCC optimize.
6989         * c-common.h (c_cpp_builtins_optimize_pragma): Add declaration.
6990         (builtin_define_std): Ditto.
6992         * config.gcc (i[3467]86-*-*): Add i386-c.o to C/C++ languages.
6993         Add t-i386 Makefile fragment to add i386-c.o and i386.o dependencies.
6994         (x86_64-*-*): Ditto.
6996         * Makefile.in (TREE_H): Add options.h.
6997         (options.o): Add $(TARGET_H) $(FLAGS_H) dependencies.
6999         * doc/extend.texi (option attribute): Document new attribute.
7000         (optimize attribute): Ditto.
7001         (hot attribute): Document hot attribute sets -O3.
7002         (cold attribute): Document cold attribute sets -Os.
7003         (#pragma GCC option): Document new pragma.
7004         (#pragma GCC optimize): Ditto.
7006         * doc/options.texi (TargetSave): Document TargetSave syntax.
7007         (UInteger): Document UInteger must be used for certain flags.
7008         (Save): Document Save option to create target specific options
7009         that can be saved/restored on a function specific context.
7011         * doc/c-tree.texi (DECL_FUNCTION_SPECIFIC_TARGET): Document new macro.
7012         (DECL_FUNCTION_SPECIFIC_OPTIMIZATION): Ditto.
7014         * doc/tm.texi (TARGET_VALID_OPTION_ATTRIBUTE_P): Document new hook.
7015         (TARGET_OPTION_SAVE): Ditto.
7016         (TARGET_OPTION_RESTORE): Ditto.
7017         (TARGET_OPTION_PRINT): Ditto.
7018         (TARGET_OPTION_PRAGMA_PARSE): Ditto.
7019         (TARGET_CAN_INLINE_P): Ditto.
7021         * doc/invoke.texi (-mfpmath=sse+387): Document as an alias for
7022         -mfpmath=sse,387.
7023         (-mfpmath=both): Ditto.
7025 2008-07-23  Michael Meissner  <gnu@the-meissners.org>
7026             Karthik Kumar  <karthikkumar@gmail.com>
7028         * config/i386/i386.h (TARGET_ABM): Move switch into ix86_isa_flags.
7029         (TARGET_POPCNT): Ditto.
7030         (TARGET_SAHF): Ditto.
7031         (TARGET_AES): Ditto.
7032         (TARGET_PCLMUL): Ditto.
7033         (TARGET_CMPXCHG16B): Ditto.
7034         (TARGET_RECIP): Move switch into target_flags.
7035         (TARGET_FUSED_MADD): Ditto.
7036         (ix86_arch_features): Make an unsigned char type.
7037         (ix86_tune_features): Ditto.
7038         (OVERRIDE_OPTIONS): Add bool argument to override_options call.
7039         (TARGET_CPU_CPP_BUILTINS): Move into ix86_target_macros.
7040         (REGISTER_TARGET_PRAGMAS): Define, call ix86_register_pragmas.
7042         * config/i386/i386.opt (arch): New TargetSave field to define
7043         fields that need to be saved for function specific option support.
7044         (tune): Ditto.
7045         (fpmath): Ditto.
7046         (branch_cost): Ditto.
7047         (ix86_isa_flags_explicit): Ditto.
7048         (tune_defaulted): Ditto.
7049         (arch_specified): Ditto.
7050         (-m128-long-double): Add Save flag to save option for target
7051         specific option support.
7052         (-m80387): Ditto.
7053         (-maccumulate-outgoing-args): Ditto.
7054         (-malign-double): Ditto.
7055         (-malign-stringops): Ditto.
7056         (-mfancy-math-387): Ditto.
7057         (-mhard-float): Ditto.
7058         (-mieee-fp): Ditto.
7059         (-minline-all-stringops): Ditto.
7060         (-minline-stringops-dynamically): Ditto.
7061         (-mms-bitfields): Ditto.
7062         (-mno-align-stringops): Ditto.
7063         (-mno-fancy-math-387): Ditto.
7064         (-mno-push-args): Ditto.
7065         (-mno-red-zone): Ditto.
7066         (-mpush-args): Ditto.
7067         (-mred-zone): Ditto.
7068         (-mrtd): Ditto.
7069         (-msseregparm): Ditto.
7070         (-mstack-arg-probe): Ditto.
7071         (-m32): Ditto.
7072         (-m64): Ditto.
7073         (-mmmx): Ditto.
7074         (-m3dnow): Ditto.
7075         (-m3dnowa): Ditto.
7076         (-msse): Ditto.
7077         (-msse2): Ditto.
7078         (-msse3): Ditto.
7079         (-msse4.1): Ditto.
7080         (-msse4.2): Ditto.
7081         (-msse4): Ditto.
7082         (-mno-sse4): Ditto.
7083         (-msse4a): Ditto.
7084         (-msse5): Ditto.
7085         (-mrecip): Move flag into target_flags.
7086         (-mcld): Ditto.
7087         (-mno-fused-madd): Ditto.
7088         (-mfused-madd): Ditto.
7089         (-mabm): Move flag into ix86_isa_flags.
7090         (-mcx16): Ditto.
7091         (-mpopcnt): Ditto.
7092         (-msahf): Ditto.
7093         (-maes): Ditto.
7094         (-mpclmul): Ditto.
7096         * config/i386/i386-c.c: New file for #pragma support.
7097         (ix86_target_macros_internal): New function to #define or #undef
7098         target macros based when the user uses the #pragma GCC option to
7099         change target options.
7100         (ix86_pragma_option_parse): New function to add #pragma GCC option
7101         support.
7102         (ix86_target_macros): Move defining the target macros here from
7103         TARGET_CPU_CPP_BUILTINS in i386.h.
7104         (ix86_register_pragmas): Register the #pragma GCC option hook.  If
7105         defined, initialize any subtarget #pragmas.
7107         * config/i386/darwin.h (REGISTER_SUBTARGET_PRAGMAS): Rename from
7108         REGISTER_TARGET_PRAGMAS.
7110         * config/i386/t-i386: New file for x86 dependencies.
7111         (i386.o): Make dependencies mirror the include files used.
7112         (i386-c.o): New file, add dependencies.
7114         * config/i386/i386-protos.h (override_options): Add bool argument.
7115         (ix86_valid_option_attribute_tree): Add declaration.
7116         (ix86_target_macros): Ditto.
7117         (ix86_register_macros): Ditto.
7119         * config/i386/i386.c (ix86_tune_features): Move initialization of
7120         the target masks to initial_ix86_tune_features to allow functions
7121         to have different target options.  Make type unsigned char,
7122         instead of unsigned int.
7123         (initial_ix86_tune_features): New static vector to hold processor
7124         masks for the tune variables.
7125         (ix86_arch_features): Move initialization of the target masks to
7126         initial_ix86_arch_features to allow functions to have different
7127         target options.  Make type unsigned char, instead of unsigned int.
7128         (initial_ix86_arch_features): New static vector to hold processor
7129         masks for the arch variables.
7130         (enum ix86_function_specific_strings): New enum to describe the
7131         string options used for attribute((option(...))).
7132         (ix86_target_string): New function to return a string that
7133         describes the target options.
7134         (ix86_debug_options): New function to print the current options in
7135         the debugger.
7136         (ix86_function_specific_save): New function hook to save the
7137         function specific global variables in the cl_target_option structure.
7138         (ix86_function_specific_restore): New function hook to restore the
7139         function specific variables from the cl_target_option structure to
7140         the global variables.
7141         (ix86_function_specific_print): New function hook to print the
7142         target specific options in the cl_target_option structure.
7143         (ix86_valid_option_attribute_p): New function hook to validate
7144         attribute((option(...))) arguments.
7145         (ix86_valid_option_attribute_tree): New function that is common
7146         code between attribute((option(...))) and #pragma GCC option
7147         support that parses the options and returns a tree holding the options.
7148         (ix86_valid_option_attribute_inner_p): New helper function for
7149         ix86_valid_option_attribute_tree.
7150         (ix86_can_inline_p): New function hook to decide if one function
7151         can inline another on a target specific basis.
7152         (ix86_set_current_function); New function hook to switch target
7153         options if the user used attribute((option(...))) or #pragma GCC
7154         option.
7155         (ix86_tune_defaulted): Move to static file scope from
7156         override_options.
7157         (ix86_arch_specified): Ditto.
7158         (OPTION_MASK_ISA_AES_SET): New macro for moving switches into
7159         ix86_isa_flags.
7160         (OPTION_MASK_ISA_PCLMUL_SET): Ditto.
7161         (OPTION_MASK_ISA_ABM_SET): Ditto.
7162         (OPTION_MASK_ISA_POPCNT_SET): Ditto.
7163         (OPTION_MASK_ISA_CX16_SET): Ditto.
7164         (OPTION_MASK_ISA_SAHF_SET): Ditto.
7165         (OPTION_MASK_ISA_AES_UNSET): Ditto.
7166         (OPTION_MASK_ISA_PCLMUL_UNSET): Ditto.
7167         (OPTION_MASK_ISA_ABM_UNSET): Ditto.
7168         (OPTION_MASK_ISA_POPCNT_UNSET): Ditto.
7169         (OPTION_MASK_ISA_CX16_UNSET): Ditto.
7170         (OPTION_MASK_ISA_SAHF_UNSET): Ditto.
7171         (struct ptt): Move to static file scope from override_options.
7172         (processor_target_table): Ditto.
7173         (cpu_names): Ditto.
7174         (ix86_handle_option): Add support for options that are now isa options.
7175         (override_options): Add support for declaring functions that
7176         support different target options than were specified on the
7177         command line.  Move struct ptt, processor_target_table, cpu_names,
7178         ix86_tune_defaulted, ix86_arch_specified to static file scope.
7179         Add bool argument.  Fix up error messages so the appropriate error
7180         is given for either command line or attribute.
7181         (ix86_previous_fndecl): New static to remember previous function
7182         declaration to see if we need to change target options.
7183         (ix86_builtins_isa): New array to record the ISA of each builtin
7184         function.
7185         (def_builtin): Always create the builtin function, even if the
7186         current ISA doesn't support it.
7187         (ix86_init_mmx_sse_builtins): Remove TARGET_AES and TARGET_PCLMUL
7188         tests for those builtins.
7189         (ix86_init_builtins): Remove TARGET_MMX test for calling
7190         ix86_init_mmx_sse_builtins.
7191         (ix86_expand_builtin): If the current ISA doesn't support a given
7192         builtin, signal an error.
7193         (TARGET_VALID_OPTION_ATTRIBUTE_P): Set target hook.
7194         (TARGET_SET_CURRENT_FUNCTION): Ditto.
7195         (TARGET_OPTION_SAVE): Ditto.
7196         (TARGET_OPTION_RESTORE): Ditto.
7197         (TARGET_OPTION_PRINT): Ditto.
7198         (TARGET_CAN_INLINE_P): Ditto.
7200 2008-07-22  Rafael Ávila de Espíndola  <espindola@google.com>
7202         * c-typeck.c (build_external_ref): Don't call assemble_external.
7203         * final.c (output_operand): Call assemble_external.
7205 2008-07-21  DJ Delorie  <dj@redhat.com>
7207         * config/h8300/h8300.c (h8300_hard_regno_scratch_ok): New.
7208         (TARGET_HARD_REGNO_SCRATCH_OK): Define.
7210 2008-07-21  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7212         * config/spu/spu.md ("div<mode>3"): Convert into expander, move
7213         original insn and splitter contents into ...
7214         ("*div<mode>3_fast"): ... this new pattern.  Enable only if
7215         flag_unsafe_math_optimizations.  Add dummy scratch register.
7216         ("*div<mode>3_adjusted"): New insn and splitter.  Enable only if
7217         !flag_unsafe_math_optimizations.  Returns number with next
7218         highest magnitude if this is still less or equal to the true
7219         quotient in magnitude.
7221 2008-07-21  Rafael Ávila de Espíndola  <espindola@google.com>
7223         * Makefile.in: Replace toplev.h with TOPLEV_H.
7224         * c-decl.c (merge_decls): Don't set DECL_IN_SYSTEM_HEADER.
7225         * c-lex.c (fe_file_change): Don't set in_system_header.
7226         * c-parser.c (c_token): Remove in_system_header.
7227         (c_lex_one_token): Don't set in_system_header.
7228         (c_parser_set_source_position_from_token): Don't set in_system_header.
7229         * diagnostic.c (diagnostic_report_diagnostic): Use location from
7230         diagnostic_info.
7231         (warning_at): New.
7232         * diagnostic.h (diagnostic_report_warnings_p): Add LOC argument.
7233         * flags.h (in_system_header): Remove.
7234         * function.c (saved_in_system_header): Remove.
7235         (push_cfun): Don't set in_system_header.
7236         (pop_cfun): Don't set in_system_header.
7237         (push_struct_function): Don't set in_system_header.
7238         * input.h (expanded_location): Add sysp.
7239         (in_system_header_at): New.
7240         (in_system_header): New.
7241         * toplev.c (in_system_header): Remove.
7242         * toplev.h: Include input.h
7243         (warning_at): New.
7244         * tree-cfg.c (execute_warn_function_return): Call warning_at.
7245         * tree-ssa.c (warn_uninit): Call warning_at.
7246         (warn_uninitialized_var): Update calls to warn_uninit.
7247         (warn_uninitialized_phi): Update calls to warn_uninit.
7248         * tree.c (make_node_stat): Don't set DECL_IN_SYSTEM_HEADER.
7249         (expand_location): Initialize xloc.sysp.
7250         * tree.h (DECL_IN_SYSTEM_HEADER): Use in_system_header_at.
7251         (tree_decl_with_vis): Remove in_system_header_flag.
7253 2008-07-21  Andreas Krebbel  <krebbel1@de.ibm.com>
7255         PR target/36822
7256         * recog.c (asm_operand_ok): Change the order of the extra
7257         memory constraint checks.
7259 2008-07-20  Andrew Pinski  <andrew_pinski@playstation.sony.com>
7261         PR tree-opt/36879
7262         * tree-switch-conversion.c (build_one_array): Call
7263         varpool_mark_needed_node and varpool_finalize_decl
7264         instead of assemble_variable.
7266 2008-07-19  Jan Hubicka  <jh@suse.cz>
7268         * cgraph.c (cgraph_add_new_function): Do early local passes.
7269         * tree-nrv.c (gate_pass_return_slot): New gate.
7270         (pass_nrv): Add the gate.
7271         * tree-ssa-coalese.c (hash_ssa_name_by_var, eq_ssa_name_by_var): New
7272         functions.
7273         (coalesce_ssa_name): Coalesce SSA names.
7274         * tree-ssa-live.c (remove_unused_locals): Be more conservative when
7275         not optimizing so unused user vars remains visible.
7276         * common.opt (flag_tree_ter): Always enable by default.
7277         * tree-ssa-ter.c: Include flags.h
7278         (is_replaceable_p): Check that locations match; when aliasing is missing
7279         be conservative about loads.
7280         * tree-optimize.c (gate_init_datastructures): Remove.
7281         (pass_init_datastructures): New.
7282         * passes.c: Reorder passes so we always go into SSA.
7284 2008-07-19  Jan Hubicka  <jh@suse.cz>
7286         * doc/extend.texi (flatten attribute): Remove note about unit-at-a-time
7287         * doc/invoke.texi (--combine): Likewise.
7288         (-finline-functions-called-once): Update levels when enabled.
7289         (-funit-at-a-time): Document new behaviour.
7290         (-ftoplevel-reorder): Document that it is enabled -O0 and imply
7291         -fno-section-anchors when disabled explicitly.
7292         (inline params): They are not ignored now.
7293         (precompiled headers): Remove unit-at-a-time as being incompatible.
7294         * opts.c (decode_options): Handle unit-at-a-time as alias;
7295         imply -fno-section-anchors when toplevel reorder is disabled
7296         explicitly.
7297         * common.opt (ftoplevel-reorder): Set default value to 2.
7298         (funit-at-a-time): Set default value to 1.
7299         * config/rs6000/rs6000.c (optimization_options): Set section anchors
7300         to 2.
7302 2008-07-19  Jan Hubicka  <jh@suse.cz>
7304         * builtins.c (expand_builtin_int_roundingfn,
7305         expand_builtin_int_roundingfn_2): Do not take subtarget argument;
7306         it is not useful.
7308 2008-07-19  Richard Guenther  <rguenther@suse.de>
7310         PR bootstrap/36864
7311         * tree-ssa-sccvn.h (get_constant_value_id): Declare.
7312         * tree-ssa-sccvn.c (get_constant_value_id): New function.
7313         * tree-ssa-pre.c (get_expr_value_id): For newly created
7314         constant value-ids make sure to add the expression to its
7315         expression-set.
7317 2008-07-19  Jakub Jelinek  <jakub@redhat.com>
7319         PR middle-end/36877
7320         * omp-low.c (expand_omp_atomic_fetch_op): Make sure the
7321         return value of the builtin is ignored.
7323 2008-07-19  Olivier Hainque  <hainque@adacore.com>
7325         * doc/tm.texi (MALLOC_ABI_ALIGNMENT): New macro. Alignment, in
7326         bits, a C conformant malloc implementation has to provide.
7327         * defaults.h (MALLOC_ABI_ALIGNMENT): Default to BITS_PER_WORD.
7329 2008-07-19  Joseph Myers  <joseph@codesourcery.com>
7331         PR target/36780
7332         PR target/36827
7333         * reload.c (find_reloads_subreg_address): Only reload address if
7334         reloaded == 0, not for reloaded != 1.
7336         Revert:
7337         2008-07-16  Joseph Myers  <joseph@codesourcery.com>
7338         * config/m32c/m32c.c (BIG_FB_ADJ): Move definition earlier.
7339         (m32c_legitimate_address_p): Handle "++rii" addresses created by
7340         m32c_legitimize_reload_address.
7342         2008-07-15  Kaz Kojima  <kkojima@gcc.gnu.org>
7343         * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Allow
7344         (plus (plus (reg) (const_int)) (const_int)) when reload_in_progress.
7346 2008-07-19  Olivier Hainque  <hainque@adacore.com>
7348         * dwarf2out.c (add_subscript_info): New explicit COLLAPSE_P
7349         argument, saying whether nested array are to be collapsed
7350         into a single array type DIE with multiple subscripts.
7351         (gen_array_type_die): Factorize comments about the MIPS_DEBUG_INFO
7352         issues, centralize the nested array types collapsing control and
7353         disable the transformation for Ada.
7355 2008-07-18  Uros Bizjak  <ubizjak@gmail.com>
7357         PR target/36786
7358         * config/i386/i386.md (x86_64_shift_adj_1): Rename from
7359         x86_64_shift_adj.
7360         (x86_64_shift_adj_2): New expander.
7361         (x86_64_shift_adj_3): Ditto.
7362         * config/i386/i386.c (ix86_split_ashr): Use gen_x86_64_shift_adj_3
7363         to split TImode operands.
7364         (ix86_split_ashl): Use gen_x86_64_shift_adj_2 to split TImode operands.
7365         (ix86_split_lshr): Ditto.
7367 2008-07-18  Kris Van Hees  <kris.van.hees@oracle.com>
7369         * c-common.c (c_stddef_cpp_builtins): Define __CHAR16_TYPE__
7370         and __CHAR32_TYPE__.
7371         * c-typeck.c (digest_init): Support char16_t and char32_t.
7372         (set_nonincremental_init_from_string): Idem.
7374 2008-07-18  H.J. Lu  <hongjiu.lu@intel.com>
7376         PR middle-end/36859
7377         * builtins.c (std_gimplify_va_arg_expr): Limit alignment to
7378         PREFERRED_STACK_BOUNDARY.
7379         * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
7381 2008-07-18  H.J. Lu  <hongjiu.lu@intel.com>
7383         PR middle-end/36858
7384         * function.c (locate_and_pad_parm): Cap boundary earlier.
7386 2008-07-17  Julian Brown  <julian@codesourcery.com>
7388         * config/arm/arm.c (arm_cxx_determine_class_data_visibility): Make
7389         no-op for targets which don't use DLLs.
7391 2008-07-17  Martin Jambor  <mjambor@suse.cz>
7393         * ipa-cp.c (ipcp_print_all_lattices): New variable info, check
7394         that nodes are relevant by examining the node->analyzed flag.
7395         (ipcp_init_stage): Check which nodes are relevant, assert that the
7396         relevant ones are also required.
7397         (ipcp_propagate_stage): Check on the side arrays are properly
7398         allocated.
7399         (ipcp_print_all_jump_functions): Make sure not to touch any node
7400         that is not analyzed or an edge that does not have a corresponding
7401         entry in the on-the-side vectors.
7402         (ipcp_function_scale_print): Likewise.
7403         (ipcp_update_callgraph): Check that the node is relevant.
7404         (ipcp_insert_stage): Check that the node is relevant.  Check there is
7405         an info for every node and edge.
7406         * ipa-prop.c (ipa_init_func_list): Check the nodes are relevant.
7407         (ipa_print_all_tree_maps): Likewise and a new variable info.
7408         (ipa_print_all_params_modified): Likewise.
7409         * ipa-prop.h (ipa_edge_args_info_available_for_edge_p): New function.
7411 2008-07-17  Roman Zippel <zippel@linux-m68k.org>
7413         PR target/25343
7414         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for __mc68000__.
7416 2008-07-17  Paolo Bonzini  <bonzini@gnu.org>
7418         PR rtl-optimization/36753
7419         * fwprop.c (use_killed_between): Don't shortcut
7420         single-definition global registers.
7422 2008-07-16  Jan Hubicka  <jh@suse.cz>
7424         * cgraph.h (varpool_empty_needed_queue): Declare.
7425         * cgraphunit.c (output_in_order): Mark all variables as needed;
7426         empty the queue.
7427         * varpool.c (varpool_assemble_node): Update debug queue.
7428         (varpool_assemble_pending_decls): Don't do it here.
7429         (varpool_empty_needed_queue):  New function.
7431 2008-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7433         * recog.c (peephole2_optimize): Fix formatting.
7435 2008-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7437         * c-pch.c (get_ident): Avoid C++ keywords.
7438         * combine-stack-adj.c (single_set_for_csa): Likewise.
7439         * final.c (asm_insn_count, final_scan_insn, alter_subreg,
7440         output_asm_insn): Likewise.
7441         * reload.c (push_secondary_reload, find_reusable_reload,
7442         push_reload, combine_reloads, find_reloads,
7443         debug_reload_to_stream): Likewise.
7444         * reload.h (struct reload): Likewise.
7445         * reload1.c (reload_reg_class_lower, find_reg, find_reload_regs,
7446         allocate_reload_reg, choose_reload_regs, emit_input_reload_insns,
7447         emit_output_reload_insns): Likewise.
7448         * targhooks.c (default_secondary_reload): Likewise.
7449         * varasm.c (section_entry_eq, object_block_entry_eq): Likewise.
7451 2008-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7453         * recog.c (validate_change_1, validate_change,
7454         validate_unshare_change, validate_replace_rtx_1, struct
7455         funny_match, constrain_operands, peephole2_optimize): Avoid C++
7456         keywords.
7457         * reload.c (push_secondary_reload, secondary_reload_class,
7458         scratch_reload_class, find_valid_class, find_reusable_reload,
7459         push_reload, find_dummy_reload, find_reloads_address_1,
7460         find_reloads_address_part, find_equiv_reg): Likewise.
7461         * reload1.c (spill_failure, eliminate_regs_1, allocate_reload_reg,
7462         choose_reload_regs): Likewise.
7463         * rtlanal.c (replace_rtx, nonzero_bits1, num_sign_bit_copies1):
7464         Likewise.
7465         * rtlhooks.c (gen_lowpart_if_possible): Likewise.
7466         * sched-ebb.c (add_deps_for_risky_insns): Likewise.
7467         * sched-rgn.c (concat_INSN_LIST): Likewise.
7468         * stor-layout.c (mode_for_size, mode_for_size_tree,
7469         smallest_mode_for_size): Likewise.
7471 2008-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7473         * cfg.c (dump_reg_info): Avoid C++ keywords.
7474         * dwarf2asm.c (dw2_force_const_mem,
7475         dw2_asm_output_encoded_addr_rtx): Likewise.
7476         * except.c (gen_eh_region, add_action_record, output_ttype): Likewise.
7477         * expmed.c (expand_shift): Likewise.
7478         * global.c (find_reg): Likewise.
7479         * graph.c (draw_edge): Likewise.
7480         * local-alloc.c (reg_meets_class_p, find_free_reg): Likewise.
7481         * optabs.c (expand_binop, expand_twoval_unop, expand_twoval_binop,
7482         widen_clz, widen_bswap, expand_parity, expand_unop,
7483         emit_cmp_and_jump_insn_1): Likewise.
7484         * postreload.c (reload_cse_simplify_operands): Likewise.
7485         * ra.h (add_neighbor): Likewise.
7486         * reg-stack.c (remove_regno_note, change_stack): Likewise.
7487         * regclass.c (memory_move_secondary_cost, dump_regclass, regclass,
7488         record_reg_classes, copy_cost, record_address_regs,
7489         invalid_mode_change_p): Likewise.
7490         * regrename.c (regrename_optimize, scan_rtx_reg,
7491         dump_def_use_chain, find_oldest_value_reg,
7492         replace_oldest_value_reg, copyprop_hardreg_forward_1): Likewise.
7494 2008-07-16  David Edelsohn  <edelsohn@gnu.org>
7496         * config/rs6000/rs6000.c (processor_target_table): Remove duplicate
7497         MASK_POWERPC64 for power4 in previous commit.
7499 2008-07-16  Olivier Hainque  <hainque@adacore.com>
7501         * collect2.c (scan_prog_file, COFF version): Use CONST_CAST
7502         instead of bare conversion to cast const-ness away.
7504 2008-07-16  Anatoly Sokolov  <aesok@post.ru>
7506         * config/xtensa/xtensa.h (FUNCTION_OUTGOING_VALUE,
7507         XTENSA_FUNCTION_VALUE, XTENSA_FUNCTION_VALUE): Remove.
7508         * config/xtensa/xtensa.c (xtensa_function_value): New function.
7509         (TARGET_FUNCTION_VALUE): Define.
7511 2008-07-16  David Edelsohn  <edelsohn@gnu.org>
7513         * config/rs6000/rs6000.c (processor_target_table): Add
7514         MASK_PPC_GPOPT for power4, power5, power5+, power6, and power6x.
7516 2008-07-16  Joseph Myers  <joseph@codesourcery.com>
7518         PR target/36827
7519         * config/m32c/m32c.c (BIG_FB_ADJ): Move definition earlier.
7520         (m32c_legitimate_address_p): Handle "++rii" addresses created by
7521         m32c_legitimize_reload_address.
7523 2007-07-16  Rafael Ávila de Espíndola  <espindola@google.com>
7525         * c-decl.c (merge_decls): Keep DECL_SOURCE_LOCATION and
7526         DECL_IN_SYSTEM_HEADER in sync.
7528 2008-07-15  Daniel Berlin  <dberlin@dberlin.org>
7530         * tree-ssa-sccvn.c (expressions_equal_p): Check type equality.
7531         * tree-ssa-pre.c (pre_expr_eq): Ditto
7532         (get_constant_for_value_id): Take a type as an argument.
7533         (fully_constant_expression): Pass in type.
7534         (find_or_generate_expression): Short circuit constant case.
7535         (create_expression_by_pieces): Remove special casing of
7536         pointer_plus.
7537         (do_regular_insertion): Short circuit constant case.
7538         (do_partial_partial_insertion): Ditto.
7540 2008-07-15  Kaz Kojima  <kkojima@gcc.gnu.org>
7542         PR target/36782
7543         * config/sh/sh.md (symGOT_load): Don't add REG_EQUAL note.
7545 2008-07-15  Bob Wilson  <bob.wilson@acm.org>
7547         * config/xtensa/libgcc-xtensa.ver: New file.
7548         * config/xtensa/t-linux (SHLIB_MAPFILES): Append libgcc-xtensa.ver.
7550 2008-07-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7552         * df-problems.c (df_set_note): Avoid C++ keywords.
7553         * df-scan.c (df_ref_change_reg_with_loc_1): Likewise.
7554         * dse.c (record_store, remove_useless_values): Likewise.
7555         * emit-rtl.c (gen_reg_rtx, update_reg_offset, gen_rtx_REG_offset,
7556         gen_reg_rtx_offset, operand_subword, change_address_1,
7557         change_address, adjust_address_1, offset_address,
7558         widen_memory_access, emit_copy_of_insn_after): Likewise.
7559         * explow.c (round_push, allocate_dynamic_stack_space): Likewise.
7560         * fwprop.c (should_replace_address, propagate_rtx_1,
7561         propagate_rtx, try_fwprop_subst, forward_propagate_and_simplify):
7562         Likewise.
7563         * gcse.c (cprop_jump, find_implicit_sets, bypass_block,
7564         gcse_emit_move_after, update_ld_motion_stores): Likewise.
7565         * lcm.c (compute_insert_delete, pre_edge_lcm,
7566         compute_rev_insert_delete, pre_edge_rev_lcm): Likewise.
7567         * lower-subreg.c (resolve_reg_notes): Likewise.
7568         * mode-switching.c (optimize_mode_switching): Likewise.
7570 2008-07-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7572         * bt-load.c (add_btr_def, migrate_btr_def,
7573         branch_target_load_optimize): Avoid C++ keywords.
7574         * caller-save.c (insert_restore, insert_save, insert_one_insn):
7575         Likewise.
7576         * combine.c (subst, simplify_set, make_extraction,
7577         make_compound_operation, known_cond, simplify_shift_const_1): Likewise.
7578         * cse.c (make_regs_eqv, merge_equiv_classes, validate_canon_reg,
7579         fold_rtx, equiv_constant, cse_insn, cse_process_notes_1): Likewise.
7581 2008-07-15  Richard Guenther  <rguenther@suse.de>
7583         PR middle-end/36369
7584         * c-common.c (strict_aliasing_warning): Do not warn for
7585         TYPE_REF_CAN_ALIAS_ALL pointers.
7586         (c_common_get_alias_set): may_alias types are not special.
7587         * tree.c (build_pointer_type_for_mode): Look up the may_alias
7588         attribute and set can_ref_all accordingly.
7589         (build_reference_type_for_mode): Likewise.
7590         * doc/extend.texi (may_alias): Clarify.
7592 2008-07-15  Kaz Kojima  <kkojima@gcc.gnu.org>
7594         PR target/36780
7595         * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Allow
7596         (plus (plus (reg) (const_int)) (const_int)) when reload_in_progress.
7598 2008-07-15  Andrew Pinski  <andrew_pinski@playstation.sony.com>
7600         PR target/31568
7601         * config/rs6000/rs6000.c (print_operand <case 'y'>): Don't use
7602         gcc_assert, instead call output_operand_lossage.
7604 2008-07-15  Kai Tietz  <kai.tietz@onevision.com>
7606         * builtins.c (std_canonical_va_list): Treat structure based
7607         va_list types.
7609 2008-07-15  Ben Elliston  <bje@au.ibm.com>
7611         * emit-rtl.c (set_mem_attributes_minus_bitpos): Improve comment.
7613 2007-07-14  Rafael Ávila de Espíndola  <espindola@google.com>
7615         * c-decl.c (diagnose_mismatched_decls): Don't warn if TREE_NO_WARNING
7616         is set.
7618 2008-07-14  Jan Hubicka  <jh@suse.cz>
7620         * i386.md (sse5 cmov pattern): Update call of ix86_sse5_valid_op_p
7621         * sse.md (sse5 patterns): Update call of ix86_sse5_valid_op_p;
7622         fix predicates and constraints.
7623         * i386.c (ix86_sse5_valid_op_p): Add commutative parameter.
7624         * i386-protos.h (ix86_sse5_valid_op_p): Update declaration.
7626 2008-07-14  Doug Kwan  <dougkwan@google.com>
7628         * config.gcc (arm*-*-eabi*): Include arm/eabi.h and use
7629         additional option file arm/eabi.opt.
7630         * config/arm/eabi.h (File): New configuration file for EABI targets.
7631         * config/arm/elf.h (SUBTARGET_EXTRA_SPECS): Add
7632         SUBSUBTARGET_EXTRA_SPECS.
7633         (SUBSUBTARGET_EXTRA_SPECS): Provide empty default.
7634         * config/arm/unknown-elf.h (UNKNOWN_ELF_STARTFILE_SPEC): Renamed
7635         from STARTFILE_SPEC so that it can be referenced in an override.
7636         (STARTFILE_SPEC): Use UNKNOWN_ELF_STARTFILE_SPEC.
7637         (UNKNOWN_ELF_ENDFILE_SPEC): Renamed from ENDFILE_SPEC so that it
7638         can be referenced in an override.
7639         (ENDFILE_SPEC): Use UNKNOWN_ELF_ENDFILE_SPEC.
7640         * config/arm/bpabi.h (BPABI_LINK_SPEC): Renamed from LINK_SPEC
7641         so that it can be referenced in an override.
7642         (LINK_SPEC): Use BPABI_LINK_SPEC.
7643         * config/arm/eabi.opt (File): New.
7645 2008-07-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7647         * Makefile.in (TARGET_DEF_H): Add targhooks.h.
7648         (FIXED_VALUE_H): New variable.
7649         (RTL_BASE_H): Use $(INPUT_H) and $(FIXED_VALUE_H) instead of
7650         input.h, fixed-value.h.
7651         (TREE_H): Use $(INPUT_H), add $(SYMTAB_H).
7652         (BASIC_BLOCK_H): Use $(BITMAP_H).
7653         (FUNCTION_H): Add varray.h.
7654         (IPA_REFERENCE_H): Use $(BITMAP_H).
7655         (CGRAPH_H): Add $(BASIC_BLOCK_H).
7656         (DF_H): Use $(BITMAP_H).
7657         (GGC_H): Add statistics.h.
7658         (INSN_ADDR_H): New.
7659         (INSN_ATTR_H): Use it.
7660         (SYSTEM_H): Add safe-ctype.h, filenames.h.
7661         (INPUT_H): New.
7662         (SYMTAB_H): Add $(OBSTACK_H).
7663         (CPP_INTERNAL_H): New.
7664         (TREE_DUMP_H): Add tree-pass.h.
7665         (TREE_FLOW_H): Use $(BITMAP_H)
7666         (PRETTY_PRINT_H): Use $(INPUT_H).
7667         (EBITMAP_H): Rename from typo-ed EBIMAP_H.
7668         (GSTAB_H): New.
7669         (BITMAP_H): New.
7670         (many object files): Fix lots of header dependencies throughout.
7672 2008-07-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7674         * Makefile.in (write_entries_to_file, write_entries_to_file_split):
7675         New macros.
7676         (s-gtyp-input): Use them to write tmp-gi.list.
7677         (echo_to_gi.list): Remove.
7679 2008-07-14  Richard Guenther  <rguenther@suse.de>
7681         * tree-ssa-sccvn.c (pre_info): Remove.
7682         (switch_to_PRE_table): Likewise.
7683         (free_scc_vn): Do not clear SSA_NAME_VALUE.  Do not free pre_info.
7684         (set_hashtable_value_ids): Do not create value-ids for the
7685         optimistic tables.
7686         (run_scc_vn): Remove double test.  Remove bogus special-case
7687         in value-number printing.
7688         * tree-ssa-sccvn.h (switch_to_PRE_table): Remove.
7689         * tree-ssa-ccp.c (get_symbol_constant_value): Do not look at
7690         SSA_NAME_VALUE.
7691         * tree-flow-inline.h (get_value_handle): Remove.
7692         * tree-flow.h (get_value_handle): Remove.
7694 2008-07-14  Martin Jambor  <mjambor@suse.cz>
7696         * tree-switch-conversion.c (gen_inbound_check): Make sure the type
7697         in which we generate arithmetics is not a subrange.
7699 2008-07-14  Martin Jambor  <mjambor@suse.cz>
7701         * Makefile.in (IPA_PROP_H): Added ipa-prop.h to IPA_PROP_H variable.
7703 2008-07-14  Richard Guenther  <rguenther@suse.de>
7705         * tree-ssa-pre.c (insert_into_preds_of_block): Do not call convert.
7707 2008-07-14  Andreas Krebbel  <krebbel1@de.ibm.com>
7709         PR target/36745
7710         * config/s390/s390.c: (s390_secondary_reload): Add a secondary
7711         reload for symbol refs moved to r0 with -fPIC.
7712         (legitimize_pic_address): Use the target register as temporary
7713         reg if possible.
7714         (emit_symbolic_move): Adjust comment.
7715         * config/s390/s390.md (reloadsi_PIC_addr, reloaddi_PIC_addr):
7716         New expanders.
7718 2008-07-14  Ben Elliston  <bje@au.ibm.com>
7720         * c-common.h (C_CPP_HASHNODE): New macro.
7721         * coretypes.h (struct cpp_token): Forward declare.
7722         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
7723         the context-sensitive keyword method.
7724         * config/rs6000/rs6000-c.c (__vector_keyword, vector_keyword,
7725         __pixel_keyword, pixel_keyword, __bool_keyword, bool_keyword,
7726         expand_bool_pixel): New.
7727         (altivec_categorize_keyword): New function.
7728         (init_vector_keywords): New function.
7729         (rs6000_macro_to_expand): Likewise.
7730         (rs6000_cpu_cpp_builtins): Enable context-sensitive macros if not
7731         compiling an ISO C dialect.
7733 2008-07-13  Daniel Berlin  <dberlin@dberlin.org>
7735         * tree-ssa-pre.c (fully_constant_expression): Add fold_convert calls.
7736         (create_expression_by_pieces): Fix typo.
7737         (do_regular_insertion): Use debug counter here too.
7739 2008-07-14  Hans-Peter Nilsson  <hp@axis.com>
7741         PR target/35492.
7742         * config/cris/cris.h (CRIS_CONST_OK_FOR_LETTER_P): Renamed from
7743         CONST_OK_FOR_LETTER_P.  All port-local users changed.
7744         (CONST_OK_FOR_CONSTRAINT_P): Define; implement Kc as old K,
7745         implement Kp matching power-of-two.
7746         (CONSTRAINT_LEN): Define to match.
7747         * config/cris/cris.md: Replace all use of constraint K with Kc.
7748         ("*btst*): Use Kp for operand 0 of last alternative.
7750 2008-07-13  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7752         PR testsuite/36440
7753         * tree-call-cdce.c (check_target_format): Accept MIPS single, double
7754         and quad formats.
7756 2008-07-13  Jan Hubicka  <jh@suse.cz>
7758         * tree.c (decl_assembler_name_equal): Expect assembler name of decl
7759         to be mangled too.
7761 2008-07-13  Richard Guenther  <rguenther@suse.de>
7763         PR middle-end/36811
7764         * langhooks.c (lhd_print_error_function): Deal with recursive
7765         BLOCK trees.
7767 2008-07-12  Jan Hubicka  <jh@suse.cz>
7769         * cgraph.c (assembler_name_hash): New static var.
7770         (hash_node_by_assembler_name, eq_assembler_name): New.
7771         (cgraph_node_for_asm): Use hashtable.
7772         (cgraph_remove_node): Maintain hashtable.
7773         (change_decl_assembler_name): Sanity check that names are not changing
7774         after aliasing was processed.
7775         * cgraph.h (varpoon_node): Add next GGC marker.
7776         * tree.c (decl_assembler_name_equal): Constify.
7777         (decl_assembler_name_hash): New.
7778         * tree.h (decl_assembler_name_equal): Constify.
7779         (decl_assembler_name_hash): Update.
7781 2008-07-12  David Daney  <ddaney@avtrex.com>
7783         * config/mips/driver-native.c (host_detect_local_cpu): Handle
7784         sb1 and r5000 cpus.
7786 2008-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
7788         * doc/md.texi: Document the MIPS "v" constraint.
7789         * config/mips/mips.h (reg_class): Revert last change.
7790         (REG_CLASS_NAMES): Likewise.
7791         (REG_CLASS_CONTENTS): Likewise.
7792         * config/mips/mips.c (mips_regno_to_class): Likewise.
7793         * config/mips/constraints.md (v): Likewise, but add documentation.
7794         Add a comment to say that this constraint should not be used in
7795         gcc code.
7797 2008-07-11  DJ Delorie  <dj@redhat.com>
7799         * config/h8300/h8300.md (length): Fix branch offset limit.
7801 2008-07-11  Anatoly Sokolov  <aesok@post.ru>
7803         * config/avr/avr-protos.h (avr_peep2_scratch_safe): Remove prototype.
7804         * config/avr/avr.c (avr_peep2_scratch_safe): Remove.
7805         (avr_hard_regno_scratch_ok): New function.
7806         (TARGET_HARD_REGNO_SCRATCH_OK): Define.
7807         * config/avr/avr.md (all peepholes that request a scratch register):
7808         Remove avr_peep2_scratch_safe use.
7810 2008-07-11  Tom Tromey  <tromey@redhat.com>
7811             Ian Lance Taylor  <iant@google.com>
7813         * c-common.h (enum rid): Add RID_CXX_COMPAT_WARN.
7814         (struct c_common_resword): Define.
7815         (D_CONLY, D_CXXONLY, D_C99, D_CXX0X, D_EXT, D_EXT89): Define.
7816         (D_ASM, D_OBJC, D_CXX_OBJC, D_CXXWARN): Define.
7817         (c_common_reswords, num_c_common_reswords): Declare.
7818         * c-common.c (c_common_reswords): New global const array.
7819         (num_c_common_reswords): New const int.
7820         * c-parser.c (struct resword, reswords): Don't define.
7821         (D_C89, D_EXT, D_EXT89, D_OBJC): Don't define.
7822         (c_parse_init): Clarify mask code.  Use c_common_reswords rather
7823         than reswords.  If warning about C++ keywords, give them a special
7824         RID code.
7825         (c_lex_one_token): Warn about C++ keywords.  Call
7826         objc_is_reserved_word rather than OBJC_IS_AT_KEYWORD.
7827         (c_parser_external_declaration): Look for RID_xxx rather than
7828         RID_AT_xxx, for ObjC++ keywords which are also C++ keywords.
7829         (c_parser_statement_after_labels): Likewise.
7830         (c_parser_objc_class_instance_variables): Likewise.
7831         (c_parser_objc_class_declaration): Likewise.
7832         (c_parser_objc_try_catch_statement): Likewise.
7833         * c-decl.c (c_print_identifier): Ignore RID_CXX_COMPAT_WARN.
7834         (declspecs_add_type): Likewise.
7836 2008-07-11  Angelo Graziosi  <angelo.graziosi@alice.it>
7838         * ggc-page.c (alloc_page):
7839         Substituting xmalloc, xcalloc with
7840         XNEWVEC and XCNEWVAR macros which add the
7841         needed casts.
7843 2008-07-11  Richard Guenther  <rguenther@suse.de>
7845         PR tree-optimization/36765
7846         * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Add
7847         aliases from HEAP vars to SMTs.
7849 2008-07-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7851         * Makefile.in (LOOSE_WARN, STRICT_WARN): Update comments.
7852         * configure.ac (loose_warn): Move -Wc++-compat from here...
7853         (strict_warn): ...to here.
7854         * configure: Regenerate.
7856 2008-07-10  Joseph Myers  <joseph@codesourcery.com>
7858         * config.gcc (arm-*-coff*, armel-*-coff*, h8300-*-*,
7859         i[34567]86-*-aout*, i[34567]86-*-coff*, m68k-*-aout*,
7860         m68k-*-coff*, sh-*-*, mips-sgi-irix[56]*, pdp11-*-bsd,
7861         rs6000-ibm-aix4.[12]*, powerpc-ibm-aix4.[12]*): Deprecate targets,
7862         excluding more specific h8300-*-* and sh-*-* targets.
7864 2008-07-10  Daniel Berlin  <dberlin@dberlin.org>
7866         * tree-ssa-pre.c (create_expression_by_pieces): Add fold_convert calls.
7867         (eliminate): Ditto.
7868         (execute_pre): Call loop_optimizer_finalize in early exit.
7870 2008-07-10  Jakub Jelinek  <jakub@redhat.com>
7872         PR middle-end/36790
7873         * omp-low.c (lower_omp_2): If task_shared_vars, test all DECL_P
7874         uids in the bitmap, not just VAR_DECL uids.
7876         PR rtl-optimization/36419
7877         * combine-stack-adj.c (adjust_frame_related_expr): New function.
7878         (combine_stack_adjustments_for_block): Call it if needed.  Delete
7879         correct insn.
7880         * dwarf2out.c (dwarf2out_frame_debug_expr): Adjust
7881         DW_CFA_GNU_args_size if CSA pass merged some adjustments into
7882         prologue sp adjustment.
7884 2008-07-10  Peter Maydell  <pmaydell@chiark.greenend.org.uk>
7886         PR other/28322
7887         * opts.c (print_ignored_options): Report postponed diagnostics for
7888         unknown -Wno-* options as warnings, not errors.
7889         (postpone_unknown_option_error): Renamed to...
7890         (postpone_unknown_option_warning): ... this.
7892 2008-07-09  Doug Kwan  <dougkwan@google.com>
7894         Revert:
7895         2008-07-08  Doug Kwan  <dougkwan@google.com>
7897         * config/arm/arm.opt (mandroid): New option.
7898         * config/arm/bpabi.h (ANDROID_LINK_SPEC): New macro.
7899         (LINK_SPEC): Enable Android specific behaviour when -mandroid is used.
7900         (CC1_SPEC): Same.
7901         (CC1PLUS_SPEC): Same.
7902         (LIB_SPEC): Same.
7903         (STARTFILE_SPEC): Same.
7904         (ENDFILE_SPEC): Same.
7905         (TARGET_BPABI_CPP_BUILTINS): Define __ANDROID__ when -mandroid is
7906         used.
7908 2008-07-09  Richard Sandiford  <rdsandiford@googlemail.com>
7910         PR target/35802
7911         * config/mips/mips.h (reg_class): Remove V1_REG.
7912         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update accordingly.
7913         * config/mips/mips.c (mips_regno_to_class): Map $3 to M16_NA_REGS
7914         instead of V1_REGS.
7915         (mips_get_tp): New function.
7916         (mips_legitimize_tls_address): Use it.
7917         * config/mips/constraints.md (v): Delete.
7918         * config/mips/mips.md (TLS_GET_TP_REGNUM): New constant.
7919         (tls_get_tp_<mode>): Allow any GPR destination and clobber $3.
7920         After reload, split into a move and ...
7921         (*tls_get_tp_<mode>_split): ...this new instruction.
7923 2008-07-09  David Daney  <ddaney@avtrex.com>
7925         * config/mips/driver-native.c: Include coretypes.h and tm.h.
7927 2008-07-09  Jakub Jelinek  <jakub@redhat.com>
7929         * gimplify.c (struct gimplify_ctx): Move to tree-gimple.h.
7930         (push_gimplify_context): Don't allocate temp_htab nor c itself here.
7931         Add c argument.
7932         (pop_gimplify_context): Check c->temp_htab instead of optimize whether
7933         htab_delete should be called.  Don't free c.
7934         (lookup_tmp_var): Create temp_htab lazily.
7935         (gimplify_scan_omp_clauses, gimplify_omp_parallel, gimplify_omp_task,
7936         gimplify_body, force_gimple_operand): Adjust push_gimplify_context
7937         callers.
7938         * omp-low.c (lower_omp_sections, lower_omp_single, lower_omp_master,
7939         lower_omp_ordered, lower_omp_critical, lower_omp_for,
7940         create_task_copyfn, lower_omp_taskreg, execute_lower_omp):
7941         * tree-ssa-ccp.c (convert_to_gimple_builtin): Likewise.
7942         * tree-sra.c (generate_element_init): Likewise.
7943         * tree-mudflap.c (execute_mudflap_function_ops,
7944         execute_mudflap_function_decls): Likewise.
7945         * tree-inline.c (setup_one_parameter, optimize_inline_calls): Likewise.
7946         * tree-gimple.h (struct gimplify_ctx): New type.
7947         (push_gimplify_context): Adjust prototype.
7949 2008-07-09  Daniel Berlin  <dberlin@dberlin.org>
7951         * tree-ssa-pre.c (phi_translate_1): Update placement of
7952         add_to_value calls.
7954 2008-07-09  Anatoly Sokolov  <aesok@post.ru>
7956         * target.h (struct gcc_target): Add hard_regno_scratch_ok field.
7957         * target-def.h (TARGET_HARD_REGNO_SCRATCH_OK): New.
7958         (TARGET_INITIALIZER): Use TARGET_HARD_REGNO_SCRATCH_OK.
7959         * targhooks.c (default_hard_regno_scratch_ok): New function.
7960         * targhooks.h (default_hard_regno_scratch_ok): Declare function.
7961         * doc/tm.texi: Document TARGET_HARD_REGNO_SCRATCH_OK hook.
7962         * recog.c:  Include "target.h".
7963         (peep2_find_free_register): Add check for global regs. Add target
7964         specific check.
7965         * Makefile.in (recog.o): Depend on target.h.
7967 2008-07-09  Kaz Kojima  <kkojima@gcc.gnu.org>
7969         * config/sh/sh.c (sh_canonical_va_list_type): New.
7970         (TARGET_CANONICAL_VA_LIST_TYPE): Define.
7972 2008-07-09  Raksit Ashok <raksit@google.com>
7974         * doc/invoke.texi (Option Summary): Mention new option
7975         -Wdisallowed-function-list=...
7976         (Warning Options): Document -Wdisallowed-function-list=...
7977         * common.opt (Wdisallowed-function-list=): New flag.
7978         * flags.h (warn_disallowed_functions): External definition of new
7979         boolean warning flag.
7980         (warn_if_disallowed_function_p): Declare new function.
7981         * opts.c (warning_disallowed_functions): New static variable.
7982         (warn_disallowed_functions): New boolean warning flag.
7983         (warn_if_disallowed_function_p): New function.
7984         (add_comma_separated_to_vector): Rename
7985         add_instrument_functions_exclude_list to this.
7986         (common_handle_option): Handle new option. Rename calls to
7987         add_instrument_functions_exclude_list into calls to
7988         add_comma_separated_to_vector.
7989         * c-parser.c (c_parser_postfix_expression_after_primary): New warning
7990         based on flag warn_disallowed_functions.
7992 2008-07-09  Christian Bruel  <christian.bruel@st.com>
7994         * final.c (get_attr_length_1): Call get_attr_length_1 with fallback_fn
7995          instead of get_attr_length.
7997 2008-07-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7999         * genattrtab.c (insert_right_side, evaluate_eq_attr): Avoid C++
8000         keywords.
8001         * genemit.c (gen_insn): Likewise.
8002         * gengtype.c (note_def_vec): Likewise.
8003         * gengtype.h (note_def_vec): Likewise.
8004         * genoutput.c (struct data, output_insn_data, process_template,
8005         gen_expand, gen_split, note_constraint): Likewise.
8006         * genrecog.c (new_decision, add_to_sequence, factor_tests,
8007         make_insn_sequence): Likewise.
8008         * gensupport.c (record_insn_name): Likewise.
8010 2008-07-08  Doug Kwan  <dougkwan@google.com>
8012         * config/arm/arm.opt (mandroid): New option.
8013         * config/arm/bpabi.h (ANDROID_LINK_SPEC): New macro.
8014         (LINK_SPEC): Enable Android specific behaviour when -mandroid is used.
8015         (CC1_SPEC): Same.
8016         (CC1PLUS_SPEC): Same.
8017         (LIB_SPEC): Same.
8018         (STARTFILE_SPEC): Same.
8019         (ENDFILE_SPEC): Same.
8020         (TARGET_BPABI_CPP_BUILTINS): Define __ANDROID__ when -mandroid is
8021         used.
8023 2008-07-08  Raksit Ashok  <raksit@google.com>
8025         * expr.c (emit_block_move_via_movmem): Fix expected_align parameter.
8026         (set_storage_via_setmem): Fix expected_align parameter.
8027         * doc/invoke.texi (i386 and x86-64 Options): Add a couple of options
8028         missing from the list.
8029         * doc/md.texi (movmem): Explicitly state that expected alignment is
8030         to be expressed in bytes.
8031         (setmem): Explicitly state that expected alignment is to be expressed
8032         in bytes.
8034 2008-07-08  Joseph Myers  <joseph@codesourcery.com>
8036         * reload.c (find_reloads_subreg_address): Do not require validity
8037         of address in original mode before reloading address.
8039 2008-07-07  Tianwei Sheng  <tianweis@google.com>
8041         * df-core.c (df_remove_problem): Adjust the access to avoid out of
8042         bounds array access.
8044 2008-07-08  Jakub Jelinek  <jakub@redhat.com>
8046         * tree-sra.c (sra_build_assignment): Handle CONVERT_EXPR_P dst.
8048 2008-07-05  Daniel Berlin  <dberlin@dberlin.org>
8050         Fix PR tree-optimization/23455
8051         Fix PR tree-optimization/35286
8052         Fix PR tree-optimization/35287
8053         * Makefile.in (OBJS-common): Remove tree-vn.o.
8054         (tree-vn.o): Remove.
8055         * dbgcnt.def: Add treepre_insert debug counter.
8056         * gcc/tree-flow.h (add_to_value): Updated for other changes.
8057         (debug_value_expressions): Ditto.
8058         (print_value_expressions): Ditto.
8059         * tree-pretty-print.c (dump_generic_node): Updated for
8060         VALUE_HANDLE removal.
8061         * tree-ssa-dom.c (record_equality): Ditto.
8062         (cprop_operand): Ditto.
8063         (lookup_avail_expr): Ditto.
8064         * tree-ssa-threadedge.c
8065         (record_temporary_equivalences_from_stmts_at_dest): Ditto.
8066         (simplify_control_stmt_condition): Ditto.
8067         * tree.c (tree_code_size): Ditto.
8068         (tree_node_structure): Ditto.
8069         (iterative_hash_expr): Ditto.
8070         * tree.def: Ditto.
8071         * tree.h (VALUE_HANDLE_ID): Ditto.
8072         (VALUE_HANDLE_EXPR_SET): Ditto.
8073         (struct tree_value_handle): Ditto.
8074         (union tree_node): Ditto.
8075         * treestruct.def: Ditto.
8076         * tree-vn.c: Removed.
8077         * tree-ssa-pre.c: Rewritten entirely.
8078         * tree-ssa-sccvn.c (constant_to_value_id): New hashtable.
8079         (constant_value_ids): Ditto.
8080         (vn_nary_op_t): Moved to header.
8081         (vn_phi_t): Ditto.
8082         (vn_reference_op_t): Ditto
8083         (vn_reference_t): Ditto.
8084         (next_value_id): New variable.
8085         (VN_INFO): Add an assert.
8086         (vn_constant_eq): New function.
8087         (vn_constant_hash): Ditto.
8088         (get_or_alloc_constant_value_id): Ditto.
8089         (value_id_constant_p): Ditto.
8090         (vn_reference_compute_hash): De-staticify.
8091         (copy_reference_ops_from_ref): Don't use get_callee_fndecl.
8092         Disable some code with a FIXME.  Remove VALUE_HANDLE use.
8093         (valueize_refs): Update opcode if it changes from ssa name to constant.
8094         (vn_reference_lookup_1): Add new argument.
8095         (vn_reference_lookup):  Ditto.
8096         (vn_reference_lookup_pieces): New function.
8097         (vn_reference_insert): Add return type. Modify to deal with value ids.
8098         (vn_reference_insert_pieces):  New function.
8099         (vn_nary_op_compute_hash): De-staticify.
8100         (vn_nary_op_eq): Ditto.
8101         (vn_nary_op_lookup_pieces): New function.
8102         (vn_nary_op_lookup): Add new argument.
8103         (vn_nary_op_insert_pieces): New function.
8104         (vn_nary_op_insert): Add return type. Modify to deal with value ids.
8105         (vn_phi_insert): Ditto.
8106         (visit_unary_op): Update for callee changes.
8107         (visit_binary_op): Ditto.
8108         (visit_reference_op_load): Ditto.
8109         (visit_reference_op_store): Ditto.
8110         (init_scc_vn): Init next_value_id, constant_to_value_id and
8111         constant_value_ids.
8112         (free_scc_vn): Free them.
8113         (set_hashtable_value_ids): New function.
8114         (run_scc_vn): Use it.
8115         (get_max_value_id): New function.
8116         (get_next_value_id): Ditto.
8117         (expressions_equal_p): Moved from tree-vn.c
8118         (sort_vuses): Ditto.
8119         (sort_vuses_heap): Ditto.
8120         * tree-ssa-sccvn.h: Structures moved from tree-ssa-sccvn.c (noted
8121         above).
8122         * tree.c (iterative_hash_hashval_t): Made non-static
8123         * tree.h (iterative_hash_hashval_t): Declare it.
8125 2008-07-08  Martin Jambor  <mjambor@suse.cz>
8127         * ipa-cp.c (ipcp_init_cloned_node): Call ipa_check_create_node_params
8128         instead of ipa_create_node_params.
8129         (ipcp_driver): Allocate infos with ipa_check_create_node_params and
8130         ipa_check_create_edge_args, free them with
8131         free_all_ipa_structures_after_ipa_cp, call ipa_register_cgraph_hooks.
8133         * ipa-prop.c: Include flags.h and tree-inline.h.
8134         (ipa_node_params_vector): New variable.
8135         (ipa_edge_args_vector): New variable.
8136         (edge_removal_hook_holder): New variable.
8137         (node_removal_hook_holder): New variable.
8138         (edge_duplication_hook_holder): New variable.
8139         (node_duplication_hook_holder): New variable.
8140         (ipa_detect_param_modifications): Check for presence of modified flags.
8141         (ipa_compute_jump_functions): Check for presence of jump functions.
8142         (ipa_free_edge_args_substructures): New function.
8143         (ipa_create_node_params): Removed.
8144         (ipa_free_all_edge_args): Changed to deallocate the on-the-side vector.
8145         (ipa_free_node_params_substructures): New function.
8146         (ipa_free_all_node_params): Changed to deallocate the on-the-side
8147         vector.
8148         (ipa_edge_removal_hook): New function.
8149         (ipa_node_removal_hook): New function.
8150         (duplicate_array): New function.
8151         (ipa_edge_duplication_hook): New function.
8152         (ipa_node_duplication_hook): New function.
8153         (ipa_register_cgraph_hooks): New function.
8154         (ipa_unregister_cgraph_hooks): New function.
8155         (free_all_ipa_structures_after_ipa_cp): New function.
8157         * ipa-prop.h: Include vec.h.
8158         (ipa_node_params_t): New typedef with vector types for it.
8159         (ipa_edge_args_t):  New typedef with vector types for it.
8160         (IPA_NODE_REF): Changed to access an on-the-side vector.
8161         (IPA_EDGE_REF): Changed to access an on-the-side vector.
8162         (ipa_check_create_node_params): New function.
8163         (ipa_check_create_edge_args): New function.
8165         * Makefile.in (IPA_PROP_H): New variable for ipa-prop.h.  Converted
8166         all users.
8168 2008-07-07  Tom Tromey  <tromey@redhat.com>
8170         * configure, config.in: Rebuilt.
8171         * configure.ac: Don't check for scandir or alphasort.
8173 2008-07-07  Joseph Myers  <joseph@codesourcery.com>
8175         * config/arm/arm.c (arm_init_neon_builtins): Register built-in
8176         types immediately after creating them.
8178 2008-07-07  Joseph Myers  <joseph@codesourcery.com>
8180         * config/arm/aout.h (DOLLARS_IN_IDENTIFIERS): Remove.
8182 2008-07-07  Fernando Pereira <fernando@cs.ucla.edu>
8184         * tree-ssa-structalias.c (compute_points_to_sets): Add call to
8185         dump_constraint_graph.
8186         (dump_constraint_edge): New function.
8187         (dump_constraint_graph): New function.
8188         (debug_constraint_graph): New function.
8189         (dump_constraint): Removed useless comparison.
8190         * tree-ssa-structalias.h (dump_constraint_edge): Declare.
8191         (dump_constraint_graph): Declare.
8192         (debug_constraint_graph): Declare.
8193         * tree-dump.c (struct dump_option_value_info): Declare TDF_GRAPH.
8195 2008-07-07  Kai Tietz  <kai.tietz@onevision.com>
8197         * config/i386/i386.c (is_va_list_char_pointer): New.
8198         (ix86_va_start): Replace compare with ms_va_list_type_node
8199         by is_va_list_char_pointer.
8200         (ix86_gimplify_va_arg): Likewise.
8202 2008-07-07  Martin Jambor  <mjambor@suse.cz>
8204         * cgraph.c (cgraph_edge_max_uid): New variable.
8205         (struct cgraph_edge_hook_list): New type.
8206         (struct cgraph_node_hook_list): New type.
8207         (struct cgraph_2edge_hook_list): New type.
8208         (struct cgraph_2node_hook_list): New type.
8209         (first_cgraph_edge_removal_hook): New variable.
8210         (first_cgraph_node_removal_hook): New variable.
8211         (first_cgraph_edge_duplicated_hook): New variable.
8212         (first_cgraph_node_duplicated_hook): New variable.
8213         (cgraph_add_edge_removal_hook): New function.
8214         (cgraph_remove_edge_removal_hook): New function.
8215         (cgraph_call_edge_removal_hooks):  New function.
8216         (cgraph_add_node_removal_hook):  New function.
8217         (cgraph_remove_node_removal_hook):  New function.
8218         (cgraph_call_node_removal_hooks):  New function.
8219         (cgraph_add_edge_duplication_hook):  New function.
8220         (cgraph_remove_edge_duplication_hook):  New function.
8221         (cgraph_call_edge_duplication_hooks):  New function.
8222         (cgraph_add_node_duplication_hook):  New function.
8223         (cgraph_remove_node_duplication_hook):  New function.
8224         (cgraph_call_node_duplication_hooks):  New function.
8225         (cgraph_create_edge): Assign to edge uid.
8226         (cgraph_remove_edge): Call edge removal hooks.
8227         (cgraph_node_remove_callees): Call edge removal hooks.
8228         (cgraph_node_remove_callers): Call edge removal hooks.
8229         (cgraph_remove_node): Call node removal hooks.
8230         (cgraph_clone_edge): Call edge duplication hooks.
8231         (cgraph_clone_node): Call node duplication hooks.
8233         * cgraph.h (cgraph_edge): New field uid.
8234         (cgraph_edge_hook): New type.
8235         (cgraph_node_hook): New type.
8236         (cgraph_2edge_hook): New type.
8237         (cgraph_2node_hook): New type.
8239 2008-07-07  Andreas Tobler  <a.tobler@schweiz.org>
8241         * config.in: Regenerate.
8243 2008-07-07  Vladimir Prus  <vladimir@codesourcery.com>
8245         * gcc.c (print_sysroot): New.
8246         (option_map, display_help, process_command): Handle the
8247         -print-sysroot option.
8248         (main): Print the sysroot if requested.
8249         * doc/invoke.texi (Debugging Options): Document -print-sysroot.
8251 2008-07-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8253         PR target/34780
8254         * unwind-pe.h (size_of_encoded_value): add attribute unused.
8256 2008-07-07  Daniel Jacobowitz  <dan@codesourcery.com>
8258         * function.c (assign_parm_remove_parallels): Check mode of entry_parm.
8259         (assign_parm_setup_block_p): Also check mode of entry_parm.
8261 2008-07-07  Richard Guenther  <rguenther@suse.de>
8263         * tree-ssa-structalias.h (set_used_smts): Remove.
8264         * tree-ssa-structalias.c (used_smts): Likewise.
8265         (set_used_smts): Likewise.
8266         * tree-ssa-alias.c (compute_flow_sensitive_aliasing): Remove
8267         call to set_used_smts.
8269 2008-07-07  Richard Guenther  <rguenther@suse.de>
8271         * tree-ssa-structalias.c (struct variable_info): Add is_full_var flag.
8272         (new_var_info): Set it to false.
8273         (solution_set_add): Correctly handle pointers outside a var and
8274         inside a field.
8275         (type_safe): Treat variables with is_full_var properly.
8276         (do_sd_constraint): Likewise.
8277         (do_ds_constraint): Likewise.
8278         (process_constraint): Remove zeroing offset for !use_field_sensitive.
8279         (get_constraint_for_ptr_offset): New function.
8280         (get_constraint_for_component_ref): For addresses at least include
8281         the last field of the variable.  Handle is_full_vars properly.
8282         (get_constraint_for_1): Factor common code, handle POINTER_PLUS_EXPR.
8283         (handle_ptr_arith): Remove.
8284         (find_func_aliases): Simplify assignment handling.
8285         (create_function_info_for): For parameter and result varinfos set
8286         is_full_var flag.
8287         (create_variable_info_for): Set is_full_var flag whenever we
8288         just created a single varinfo for a decl.
8289         (init_alias_vars): Initialize use_field_sensitive from
8290         max-fields-for-field-sensitive parameter.
8292 2008-07-07  Richard Guenther  <rguenther@suse.de>
8294         PR tree-optimization/36713
8295         * tree-flow-inline.h (is_call_used): New function.
8296         * tree-nrv.c (dest_safe_for_nrv_p): Use it.
8297         * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
8298         * tree-outof-ssa.c (create_temp): Set call-used flag if required.
8300 2008-07-07  Maxim Kuvyrkov  <maxim@codesourcery.com>
8302         * config/m68k/m68k.c (m68k_return_in_memory): Fix arguments types.
8304 2008-07-07  Mark Shinwell  <shinwell@codesourcery.com>
8306         * config/m68k/lb1sf68.asm: Add PIC macros for Linux targets.
8308 2008-07-07  Maxim Kuvyrkov  <maxim@codesourcery.com>
8309             Nathan Sidwell  <nathan@codesourcery.com>
8311         * config.gcc (m68k-*-linux*): Add with_arch.  Add sysroot-suffix.h
8312         to tm_file.  Add m68k/t-floatlib, m68k/t-linux & m68k/t-mlibs to
8313         tmake_file.
8314         * config/m68k/t-linux: New.
8315         * doc/install.texi: Document m68k-*-linux is now multilibbed by
8316         default.
8318 2008-07-07  Nathan Sidwell  <nathan@codesourcery.com>
8320         * config/m68k/t-cf (MULTILIB_EXTRA_OPTS): Add no-mac.
8321         * config/m68k/m68k-devices.def: Remove multilibs that only differ
8322         by MAC/EMAC.
8324 2008-07-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8326         * gcc.c (execute): Fix -Wc++-compat warning.
8328 2008-07-06  H.J. Lu  <hongjiu.lu@intel.com>
8330         PR target/36720
8331         * config/ia64/ia64.c (ia64_split_tmode): Fix typo in TImode
8332         constant for little endian.
8334 2008-07-06  Richard Sandiford  <rdsandiford@googlemail.com>
8336         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Check
8337         mips_base_mips16 instead of TARGET_MIPS16.
8338         (mips_base_mips16): Declare.
8339         * config/mips/mips.c (mips_base_mips16): Make global.
8340         (was_mips16_p): Remove GTY marker.
8341         (was_mips16_pch_p): New variable.
8342         (mips_set_mips16_mode): Check both was_mips16_p and was_mips16_pch_p.
8343         (mips_override_options): Force to non-MIPS16 mode initially.
8344         Do not complain about MIPS16 PIC incompatibilities here.
8345         Only allow -mgpopt if -mexplicit-relocs is in force for
8346         non-MIPS16 code.
8348 2008-07-06  Andreas Tobler  <a.tobler@schweiz.org>
8350         * configure.ac: Check for caddr_t, define to char * if not defined.
8351         * configure: Regenerate.
8352         * ggc-common.c (mmap_gt_pch_get_address): Fix -Wc++-compat warnings.
8353         (mmap_gt_pch_use_address): Likewise.
8354         * config/host-solaris.c (sol_gt_pch_use_address): Likewise.
8356 2008-07-06  Richard Guenther  <rguenther@suse.de>
8358         * tree-ssa-structalias.c (struct variable_info): Remove has_union.
8359         (new_var_info): Deal with it.
8360         (solution_set_add): Likewise.
8361         (bitpos_of_field): Make signed, fix.
8362         (struct fieldoff): Remove type and decl fields.  Make size field
8363         unsigned HOST_WIDE_INT.  Add has_unknown_size and may_have_pointers
8364         flags.
8365         (fieldoff_compare): Deal with it.
8366         (push_fields_onto_fieldstack): Remove has_union argument, glob
8367         adjacent non-pointer fields together.
8368         (create_function_info_for): Do not set has_union.
8369         (create_variable_info_for): Simplify.
8371 2008-07-06  Kai Tietz  <kai.tietz@onevision.com>
8373         * config.gcc (extra_headers): Add cross-stdarg.h for target
8374         x86_64-*-* and i?86-*-*.
8375         * config/i386/cross-stdarg.h: New.
8376         * builtins.c (std_fn_abi_va_list): New.
8377         (std_canonical_va_list_type): New.
8378         (stabilize_va_list): Replace va_list_type_node use by
8379         mtarget.canonical_va_list_type.
8380         (gimplify_va_arg_expr): Likewise.
8381         (expand_builtin_va_copy): Replace va_list_type_node use by
8382         mtarget.fn_abi_va_list.
8383         * tree-sra.c (is_va_list_type): New helper.
8384         (decl_can_be_decomposed_p): Replace
8385         va_list_type_node use by is_va_list_type.
8386         * tree-ssa-ccp.c (optimize_stdarg_builtin): Likewise.
8387         * tree-stdarg.c (execute_optimize_stdarg): Likewise.
8388         * c-common.c (c_common_nodes_and_builtins): Use TARGET_ENUM_VA_LIST.
8389         * config/i386/i386-protos.h (ix86_get_valist_type): New.
8390         (ix86_enum_va_list): New.
8391         * config/i386/i386.c (sysv_va_list_type_node): New.
8392         (ms_va_list_type_node): New.
8393         (ix86_function_type_abi): Remove sorry.
8394         (ix86_build_builtin_va_list_abi): New.
8395         (ix86_build_builtin_va_list): Call ix86_build_builtin_va_list_abi
8396         for 64-bit targets.
8397         (ix86_va_start): Replace va_list_type_node by sysv_va_list_type_node.
8398         (ix86_init_builtins_va_builtins_abi): New.
8399         (ix86_init_builtins): Use ix86_init_builtins_va_builtins_abi
8400         for 64-bit targets.
8401         (ix86_handle_abi_attribute): New.
8402         (attribute_spec): Add sysv_abi and ms_abi.
8403         (ix86_fn_abi_va_list): New.
8404         (ix86_canonical_va_list_type): New.
8405         (ix86_enum_va_list): New.
8406         (TARGET_FN_ABI_VA_LIST): New.
8407         (TARGET_CANONICAL_VA_LIST_TYPE): New.
8408         * config/i386/i386.h (TARGET_ENUM_VA_LIST): New.
8409         * doc/tm.texi (TARGET_FN_ABI_VA_LIST): New.
8410         (TARGET_CANONICAL_VA_LIST_TYPE): New.
8411         (TARGET_ENUM_VA_LIST): New.
8412         * expr.h (std_fn_abi_va_list): New.
8413         (std_canonical_va_list_type): New.
8414         * target-def.h (TARGET_FN_ABI_VA_LIST): New.
8415         (TARGET_CANONICAL_VA_LIST_TYPE): New.
8416         (TARGET_INITIALIZER): Add TARGET_FN_ABI_VA_LIST and
8417         TARGET_CANONICAL_VA_LIST_TYPE.
8418         * target.h (struct gcc_target): Add fn_abi_va_list hook
8419         and canonical_va_list_type hook.
8421 2008-07-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>
8423         * fold-const.c (fold_convert_const): Treat OFFSET_TYPE the same as
8424         integral and pointer types.
8426 2008-07-04  Roger Sayle  <roger@eyesopen.com>
8428         * config/rs6000/host-darwin.c (darwin_rs6000_extra_signals): Cast
8429         the "void*" result of xmalloc to "char*" to fix bootstrap breakage.
8431 2008-07-04  Kaz Kojima  <kkojima@gcc.gnu.org>
8433         PR target/36684
8434         * config/sh/sh.h (OVERRIDE_OPTIONS): Disable -fschedule-insns for PIC.
8436 2008-07-04  Jakub Jelinek  <jakub@redhat.com>
8438         * tree-switch-conversion.c (build_one_array, gen_def_assigns): Use
8439         build_gimple_modify_stmt.
8440         (build_arrays, gen_inbound_check): Likewise.  Force RHS to be
8441         gimple operand.  Use fold_build* instead of build*.
8443 2008-07-04  Richard Guenther  <rguenther@suse.de>
8445         * tree-ssa-structalias.c (lookup_vi_for_tree): Declare.
8446         (do_sd_constraint): Handle a dereference of ESCAPED and CALLUSED
8447         properly to compute the reachability set if we do field-sensitive PTA.
8448         * invoke.texi (max-fields-for-field-sensitive): Document default.
8449         * opts.c (decode_options): Set max-fields-for-field-sensitive to
8450         100 for optimize >= 2.
8452 2008-07-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8454         * ggc-zone.c (lookup_page_table_if_allocated,
8455         set_page_table_entry, zone_find_object_size, alloc_small_page,
8456         alloc_large_page, ggc_free, gt_ggc_m_S, ggc_marked_p, init_ggc,
8457         new_ggc_zone, init_ggc_pch, ggc_pch_this_base, ggc_pch_read): Fix
8458         -Wc++-compat and/or -Wcast-qual warnings.
8460 2008-07-04  Alan Modra  <amodra@bigpond.net.au>
8462         PR target/36634
8463         * config/rs6000/rs6000.md (call, call_value): Don't arrange for
8464         pic_offset_table_rtx to be marked as used here.
8465         (call_nonlocal_sysv, call_value_nonlocal_sysv): Add split for
8466         TARGET_SECURE_PLT to "use" pic_offset_table_rtx.
8467         (call_nonlocal_sysv_secure, call_value_nonlocal_sysv_secure): New insn.
8468         (sibcall_nonlocal_sysv, sibcall_value_nonlocal_sysv): Assert
8469         !TARGET_SECURE_PLT.
8471 2008-07-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8473         * alloc-pool.c (hash_descriptor, eq_descriptor,
8474         alloc_pool_descriptor): Fix -Wc++-compat warnings.
8475         * bitmap.c (hash_descriptor, eq_descriptor, bitmap_descriptor):
8476         Likewise.
8477         * ggc-common.c (hash_descriptor, eq_descriptor, hash_ptr, eq_ptr,
8478         loc_descriptor, ggc_prune_ptr, ggc_free_overhead,
8479         final_cmp_statistic, cmp_statistic, dump_ggc_loc_statistics): Likewise.
8480         * varray.c (hash_descriptor, eq_descriptor, varray_descriptor):
8481         Likewise.
8483 2008-07-03  Eric Botcazou  <ebotcazou@adacore.com>
8485         * tree-flow.h (loop_only_exit_p): Declare.
8486         * tree-ssa-loop-niter.c (loop_only_exit_p): Make public.
8487         * tree-ssa-loop-ivopts.c (may_eliminate_iv): Reinstate direct check on
8488         the number of iterations if it is constant.  Otherwise, if this is the
8489         only possible exit of the loop, use the conservative estimate on the
8490         number of iterations of the entire loop if available.
8492 2008-07-03  Richard Sandiford  <rdsandiford@googlemail.com>
8494         * Makefile.in (libgcc.mvars): Add LIBGCC_SYNC and LIBGCC_SYNC_CFLAGS.
8495         * libgcc-std.ver (GCC_4.4.0): New version, inherited from GCC_4.3.0.
8496         Add synchronization functions.
8497         * config/sync.c: New file.
8498         * config/mips/t-libgcc-mips16 (LIBGCC_SYNC): Define.
8499         (LIBGCC_SYNC_CFLAGS): Likewise.
8501 2008-07-03  Uros Bizjak  <ubizjak@gmail.com>
8503         PR target/36710
8504         * config/i386/i386.md (mode): Add TF to "mode" attribute.
8505         (*pushtf_sse): New insn pattern.
8506         (pushtf splitters): New splitters.
8508 2008-07-03  Michael Meissner  <gnu@the-meissners.org>
8510         PR middle-end/35736
8511         * predict.c (build_predict_expr): Use void_type_node for the tree
8512         type, instead of NULL_TREE.
8514 2008-07-03  H.J. Lu  <hongjiu.lu@intel.com>
8516         * config/i386/i386.c (contains_aligned_value_p): Return true
8517         for TCmode.
8518         (ix86_data_alignment): Align TCmode to 128bits.
8519         (ix86_local_alignment): Likewise.
8521 2008-07-03  Andrew Haley  <aph@redhat.com>
8523         PR bootstrap/33304
8524         * vec.h (VEC_TA): New.
8525         (DEF_VEC_I, DEF_VEC_P, DEF_VEC_ALLOC_I, DEF_VEC_ALLOC_P,
8526         DEF_VEC_O, DEF_VEC_ALLOC_O: Use VEC_TA.
8527         * c-common.c (C_COMMON_FIXED_TYPES_SAT): New macro.
8528         (C_COMMON_FIXED_MODE_TYPES_SAT): New macro.
8529         (C_COMMON_FIXED_TYPES): Remove first arg.
8530         (C_COMMON_FIXED_MODE_TYPES): Likewise.
8531         * tree.c (MAKE_FIXED_TYPE_NODE): Break into two macros,
8532         MAKE_FIXED_TYPE_NODE and MAKE_FIXED_TYPE_NODE_WIDTH in order
8533         not to use empty macro arguments.
8535 2008-07-02  Joseph Myers  <joseph@codesourcery.com>
8537         * config/alpha/vms_tramp.asm, config/arm/crti.asm,
8538         config/arm/crtn.asm, config/bfin/crti.s, config/bfin/crtlibid.s,
8539         config/bfin/crtn.s, config/fr30/crti.asm, config/fr30/crtn.asm,
8540         config/frv/lib1funcs.asm, config/i386/sol2-c1.asm,
8541         config/i386/sol2-ci.asm, config/i386/sol2-cn.asm,
8542         config/i386/sol2-gc1.asm, config/ia64/crti.asm,
8543         config/ia64/crtn.asm, config/m68hc11/larith.asm,
8544         config/m68hc11/m68hc11-crt0.S, config/m68k/crti.s,
8545         config/m68k/crtn.s, config/mcore/crti.asm, config/mcore/crtn.asm,
8546         config/rs6000/crtresfpr.asm, config/rs6000/crtresgpr.asm,
8547         config/rs6000/crtresxfpr.asm, config/rs6000/crtresxgpr.asm,
8548         config/rs6000/crtsavfpr.asm, config/rs6000/crtsavgpr.asm,
8549         config/rs6000/crtsavres.asm, config/rs6000/e500crtres32gpr.asm,
8550         config/rs6000/e500crtres64gpr.asm,
8551         config/rs6000/e500crtres64gprctr.asm,
8552         config/rs6000/e500crtrest32gpr.asm,
8553         config/rs6000/e500crtrest64gpr.asm,
8554         config/rs6000/e500crtresx32gpr.asm,
8555         config/rs6000/e500crtresx64gpr.asm,
8556         config/rs6000/e500crtsav32gpr.asm,
8557         config/rs6000/e500crtsav64gpr.asm,
8558         config/rs6000/e500crtsav64gprctr.asm,
8559         config/rs6000/e500crtsavg32gpr.asm,
8560         config/rs6000/e500crtsavg64gpr.asm,
8561         config/rs6000/e500crtsavg64gprctr.asm, config/rs6000/eabi-ci.asm,
8562         config/rs6000/eabi-cn.asm, config/rs6000/eabi.asm,
8563         config/rs6000/sol-ci.asm, config/rs6000/sol-cn.asm,
8564         config/rs6000/tramp.asm, config/sparc/sol2-ci.asm,
8565         config/sparc/sol2-cn.asm: Remove .file directives.
8567 2008-07-02  Richard Sandiford  <rdsandiford@googlemail.com>
8569         * resource.c (mark_referenced_resources): Look inside
8570         UNSPEC_VOLATILEs and ASM_INPUTs.
8572 2008-07-02  Ian Lance Taylor  <iant@google.com>
8574         * rtlanal.c (add_reg_note): New function.
8575         * rtl.h (add_reg_note): Declare.
8576         * auto-inc-dec.c (attempt_change): Use add_reg_note.
8577         * bb-reorder.c (add_reg_crossing_jump_notes): Likewise.
8578         * builtins.c (expand_builtin_longjmp): Likewise.
8579         (expand_builtin_nonlocal_goto): Likewise.
8580         * calls.c (emit_call_1, expand_call): Likewise.
8581         * cfgexpand.c (add_reg_br_prob_note): Likewise.
8582         * cfglayout.c (fixup_reorder_chain): Likewise.
8583         * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
8584         (commit_one_edge_insertion): Likewise.
8585         * combine.c (move_deaths, distribute_notes): Likewise.
8586         * df-problems.c (df_set_note): Likewise.
8587         * emit-rtl.c (link_cc0_insns, try_split): Likewise.
8588         (set_unique_reg_note): Likewise.
8589         (emit_copy_of_insn_after): Likewise.
8590         * expr.c (expand_expr_real): Likewise.
8591         * gcse.c (add_label_notes): Likewise.
8592         * haifa-sched.c (create_check_block_twin): Likewise.
8593         * jump.c (mark_jump_label_1): Likewise.
8594         * loop-doloop.c (add_test, doloop_modify): Likewise.
8595         * loop-unswitch.c (compare_and_jump_seq): Likewise.
8596         * lower-subreg.c (move_eh_region_note): Likewise.
8597         * optabs.c (emit_libcall_block): Likewise.
8598         * predict.c (predict_insn): Likewise.
8599         (combine_predictions_for_insn): Likewise.
8600         * recog.c (peephole2_optimize): Likewise.
8601         * regmove.c (try_auto_increment): Likewise.
8602         * reg-stack.c (emit_pop_insn, move_for_stack_reg): Likewise.
8603         * reload.c (find_reloads): Likewise.
8604         * reload1.c (fixup_eh_region_note): Likewise.
8605         (reload_as_needed, add_auto_inc_notes, copy_eh_notes): Likewise.
8606         * reorg.c (delete_prior_computation): Likewise.
8607         (delete_computation, dbr_schedule): Likewise.
8608         * config/pa/pa.c (legitimize_pic_address): Likewise.
8609         * config/sh/sh.c (sh_reorg): Likewise.
8611 2008-07-02  H.J. Lu  <hongjiu.lu@intel.com>
8613         PR target/36669
8614         * config/libgcc-glibc.ver: Add %exclude.
8615         * config/m32r/libgcc-glibc.ver: Likwise.
8616         * config/s390/libgcc-glibc.ver: Likwise.
8617         * config/sh/libgcc-glibc.ver: Likwise.
8618         * config/sparc/libgcc-sparc-glibc.ver: Likwise.
8620         * config/i386/libgcc-glibc.ver: New.
8622         * config/i386/libgcc-x86_64-glibc.ver: Removed.
8624 2008-07-02  H.J. Lu  <hongjiu.lu@intel.com>
8626         * config.gcc: Remove i386/t-fprules-softfp64 soft-fp/t-softfp
8627         from tmake_file from i[34567]86-*-darwin*, x86_64-*-darwin*,
8628         i[34567]86-*-linux*, x86_64-*-linux*.  Add
8629         i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file for
8630         i[34567]86-*-darwin*, x86_64-*-darwin*, i[34567]86-*-linux*,
8631         x86_64-*-linux*.  Add i386/t-linux to tmake_file for
8632         i[34567]86-*-linux*, x86_64-*-linux*.
8634         * libgcc-std.ver: Add empty GCC_4.4.0.
8636         * mkmap-symver.awk: Support multiple versions per symbol.
8638         * config/i386/i386.c (ix86_init_builtins): Always define
8639         __builtin_fabsq and __builtin_copysignq with fallbacks.
8640         (ix86_expand_builtin): Emit normal call for __builtin_fabsq
8641         and __builtin_copysignq if SSE2 isn't available.
8643         * config/i386/linux.h (LIBGCC2_HAS_TF_MODE): Defined.
8644         (LIBGCC2_TF_CEXT): Likwise.
8645         (TF_SIZE): Likwise.
8647         * config/i386/linux64.h (LIBGCC2_HAS_TF_MODE): Defined as 1.
8649         * config/i386/sfp-machine.h: Moved to libgcc.
8651         * config/i386/sfp-machine.h: New.
8652         * config/i386/t-linux: Likwise.
8654         * config/i386/t-darwin: Remove softfp_wrap_start and
8655         softfp_wrap_end.
8656         * config/i386/t-darwin64: Likewise.
8658         * config/i386/t-fprules-softfp64: Renamed to ...
8659         * config/i386/t-fprules-softfp: This.
8661         * config/i386/t-linux64: Remove SHLIB_MAPFILES, softfp_wrap_start
8662         and softfp_wrap_end.
8664 2008-07-02  Jason Merrill  <jason@redhat.com>
8666         * tree.c (ctor_to_list): Use FOR_EACH_CONSTRUCTOR_ELT.
8668         * tree.c (ctor_to_list): New fn.
8669         * tree.h: Declare it.
8670         (CONSTRUCTOR_ELT): New macro.
8671         (CONSTRUCTOR_NELTS): New macro.
8673 2008-07-02  Richard Guenther  <rguenther@suse.de>
8675         * tree-ssa-structalias.c (struct variable_info): Reorder
8676         to fill padding on 64bit hosts.  Make collapsed_to an int.
8677         (get_varinfo_fc): Deal with that.
8678         (new_var_info): Likewise.
8679         (collapse_rest_of_var): Likewise.
8681 2008-07-02  Joshua Sumali  <jsumali@redhat.com>
8683         * doc/install.texi (--enable-java-home): Document.
8684         (--enable-aot-compile-rpm): Likewise.
8685         (--with-arch-directory): Likewise.
8686         (--with-os-directory): Likewise.
8687         (--with-origin-name): Likewise.
8688         (--with-arch-suffix): Likewise.
8689         (--with-jvm-root-dir): Likewise.
8690         (--with-jvm-jar-dir): Likewise.
8691         (--with-python-dir): Likewise.
8693 2008-07-02  Richard Guenther  <rguenther@suse.de>
8695         * tree-ssa-forwprop.c (can_propagate_from): Exclude loads
8696         from decls explicitly.  Merge operand checking from tuples.
8698 2008-07-02  Martin Jambor  <mjambor@suse.cz>
8700         * tree-switch-conversion.c: Included timevar.h which I forgot before.
8702 2008-07-02  Martin Jambor  <mjambor@suse.cz>
8704         * tree-switch-conversion.c: Included timevar.h
8705         (pass_convert_switch): Added a timevar id (TV_TREE_SWITCH_CONVERSION).
8707         * timevar.def: Added TV_TREE_SWITCH_CONVERSION.
8709 2008-07-02  Martin Jambor  <mjambor@suse.cz>
8711         * tree-switch-conversion.c: Corrected various comments and
8712         whitespace issues
8713         (build_constructors): Fixed minor formatting mistakes.
8715         * invoke.texi (Optimize Options): Corrected the
8716         switch-conversion-max-branch-ratio parameter.
8718 2008-07-02  Mark Shinwell  <shinwell@codesourcery.com>
8720         * final.c (asm_insn_count): Return zero for an empty asm body.
8722 2008-07-02  Richard Guenther  <rguenther@suse.de>
8724         * bitmap.h (bitmap_set_bit): Return bool.
8725         (bitmap_clear_bit): Likewise.
8726         * bitmap.c (bitmap_set_bit): Return if the bit changed.  Only
8727         write to the bitmap if it would.
8728         (bitmap_clear_bit): Likewise.
8729         * tree-ssa-structalias.c (add_implicit_graph_edge): Use
8730         bitmap_set_bit return value.
8731         (add_pred_graph_edge): Likewise.
8732         (add_graph_edge): Likewise.
8733         (do_sd_constraint): Likewise.
8734         (do_ds_constraint): Likewise.
8736 2008-07-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8738         * config/alpha/alpha.c (alpha_need_linkage, alpha_use_linkage):
8739         Fix -Wc++-compat and/or -Wcast-qual warnings.
8740         * config/i386/netware.c (gen_stdcall_or_fastcall_decoration,
8741         gen_regparm_prefix): Likewise.
8742         * vmsdbgout.c (write_modbeg, lookup_filename,
8743         vmsdbgout_source_line, vmsdbgout_init): Likewise.
8745 2008-07-02  Danny Smith  <dannysmith@users.sourceforge.net>
8747         * config/i386/mingw32.h (TARGET_USE_JCR_SECTION): Undef to let
8748         defaults.h definition apply.
8750 2008-07-01  Daniel Jacobowitz  <dan@codesourcery.com>
8752         * function.c (assign_parm_remove_parallels): New.
8753         (assign_parm_setup_block_p): Do not return true for non-BLKmode
8754         PARALLELs.
8755         (assign_parm_setup_block): Do not handle them.
8756         (assign_parm_setup_reg, assign_parm_setup_stack): Call
8757         assign_parm_remove_parallels.
8759 2008-07-01  Daniel Jacobowitz  <dan@codesourcery.com>
8761         * c-typeck.c (convert_for_assignment): Use
8762         vector_targets_convertible_p.
8763         * c-common.c (vector_targets_convertible_p): New.
8764         * c-common.h (vector_targets_convertible_p): New prototype.
8765         * config/rs6000/rs6000.c (rs6000_is_opaque_type): Do not check
8766         opaque_p_V2SI_type_node.
8768 2008-07-01  Steve Ellcey  <sje@cup.hp.com>
8770         * config/ia64/ia64.c (ia64_cannot_force_const_mem): Do not allow
8771         RFmode constants.
8773 2008-07-01  Uros Bizjak  <ubizjak@gmail.com>
8775         * config/i386/i386.c (ix86_build_signbit_mask): Generate TImode and
8776         TFmode constants via two element DImode vector for hosts with
8777         HOST_BITS_PER_WIDE_INT < 64.
8778         (ix86_init_builtins): Define __builtin_fabsq and __builtin_copysignq
8779         also for HOST_BITS_PER_WIDE_INT < 64.
8781 2008-07-01  Richard Guenther  <rguenther@suse.de>
8783         PR tree-optimization/36666
8784         * tree-ssa-structalias.c (get_constraint_for_1): Declare.
8785         (get_constraint_exp_from_ssa_var): Split into ...
8786         (get_constraint_exp_for_temp): ... this ...
8787         (get_constraint_for_ssa_var): ... and that.
8788         Return constraint expressions for all touched sub-fields
8789         if the results address is not taken.
8790         (process_constraint): Remove assertion that aggregate
8791         assignments do not happen at this place.
8792         (get_constraint_for_component_ref): Add address_p argument.
8793         Return constraint expressions for all touched sub-fields
8794         if the results address is not taken.
8795         (do_deref): Use get_constraint_exp_for_temp.
8796         (get_constraint_for_1): Rename from ...
8797         (get_constraint_for): ... this.  Add the old function as wrapper.
8798         (do_structure_copy): Use get_constraint_for_1.
8800 2008-07-01  Martin Jambor  <mjambor@suse.cz>
8802         * Makefile.in (tree-switch-conversion.o): Add.
8803         (OBJS-common): Add tree-swtch-conversion.o.
8804         * passes.c (init_optimization_passes): Add pass_convert_switch.
8805         * tree-pass.h: (pass_convert_switch): Add.
8806         * tree-switch-conversion.c: New file.
8807         * gcc.dg/tree-ssa/cswtch.c: New testcase.
8808         * common.opt (ftree-cswtch): New option.
8809         * params.h (PARAM_SWITCH_CONVERSION_BRANCH_RATIO): New parameter.
8810         * params.def (PARAM_SWITCH_CONVERSION_BRANCH_RATIO): New parameter.
8811         * opts.c (decode_options): Set flag_tree_switch_conversion when
8812         optimization level is >= 2.
8813         * doc/invoke.texi (Optimize Options): Added description of
8814         -ftree-swtch-conversion and switch-conversion-max-branch-ratio.
8816 2008-06-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8818         * config/darwin-driver.c (darwin_default_min_version): Fix
8819         -Wc++-compat warnings.
8821 2008-06-30  Uros Bizjak  <ubizjak@gmail.com>
8823         * config/i386/i386.md (*movti_rex64): Add "!" to "r" constraint
8824         of operand 0.
8826 2008-06-30  Kenneth Zadeck <zadeck@naturalbridge.com>
8828         * ifcvt.c (cond_move_process_if_block): Free vectors on false return.
8830 2008-06-30  Kenneth Zadeck <zadeck@naturalbridge.com>
8832         PR rtl-optimization/34744
8833         * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): New macros.
8834         (df_scan_free_internal): Free data structures not
8835         allocated in storage pools.
8836         (df_mw_hardreg_chain_delete_eq_uses): Use df_scan_free_mws_vec.
8837         (df_refs_add_to_chains): Use df_scan_free_ref_vec and
8838         df_scan_free_mws_vec.
8839         * dse.c (dse_step6): Free offset_map_p and offset_map_n
8840         unconditionally.
8842 2008-06-30  H.J. Lu  <hongjiu.lu@intel.com>
8844         * config/i386/i386.c (contains_aligned_value_p): Return true
8845         for __float128.
8846         (ix86_function_arg_boundary): Return its natural boundary
8847         for __float128.
8848         (return_in_memory_32): Don't check TDmode.
8849         (ix86_split_to_parts): Support splitting into 4 parts and
8850         support TFmode for 32bit target.
8851         (ix86_split_long_move): Support splitting into 4 parts.
8852         (bdesc_args): Enable IX86_BUILTIN_FABSQ and IX86_BUILTIN_COPYSIGNQ
8853         for SSE2.
8854         (ix86_init_mmx_sse_builtins): Move __float80 and __float128 to ...
8855         (ix86_init_builtins): Here.
8856         (ix86_scalar_mode_supported_p): Always return true for TFmode.
8857         (ix86_c_mode_for_suffix): Always return TFmode and XFmode for
8858         'q' and 'w', respectively.
8860         * config/i386/i386.md (movtf): Check TARGET_SSE2 instead of
8861         TARGET_64BIT.
8862         (movtf_internal): Likewise.
8863         (<code>tf2): Likewise.
8864         (*absnegtf2_sse): Likewise.
8865         (copysign<mode>3): Likewise.
8866         (copysign<mode>3_const): Likewise.
8867         (copysign<mode>3_var): Likewise.
8868         (define_split UNSPEC_COPYSIGN): Likewise.
8869         * config/i386/sse.md (*nandtf3): Likewise.
8870         (<code>tf3): Likewise.
8871         (*<code>tf3): Likewise.
8873 2008-06-30  Joey Ye  <joey.ye@intel.com>
8874             H.J. Lu  <hongjiu.lu@intel.com>
8876         * global.c (compute_regsets): Set frame_pointer_needed here.
8877         * reload1.c (init_elim_table): Don't set frame_pointer_needed here.
8879 2008-06-30  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
8881         * doc/install.texi (specific): Expand Windows build notes.
8883 2008-06-30  Ira Rosen  <irar@il.ibm.com>
8885         PR tree-optimization/36648
8886         * tree-vect-transform.c (vect_do_peeling_for_loop_bound): Divide
8887         number of prolog iterations by step. Fix the comment.
8889 2008-06-30  Richard Guenther  <rguenther@suse.de>
8891         PR middle-end/36671
8892         * tree-ssa-structalias.c (handle_lhs_call): Add flags argument,
8893         handle calls from ECF_MALLOC functions.
8894         (handle_pure_call): ECF_MALLOC functions do not return
8895         call-used memory.
8896         (find_func_aliases): Handle all calls, adjust calls to handle_lhs_call.
8898 2008-06-29  Andreas Schwab  <schwab@suse.de>
8900         * config/m68k/m68k.c (print_operand): Always print a float
8901         constant in hex.
8902         * config/m68k/m68k.h (ASM_OUTPUT_FLOAT_OPERAND)
8903         (ASM_OUTPUT_DOUBLE_OPERAND, ASM_OUTPUT_LONG_DOUBLE_OPERAND):
8904         Remove macros.
8906         * config/rs6000/x-linux64: Remove never used file.
8908 2008-06-29  Richard Guenther  <rguenther@suse.de>
8910         * tree-ssa-structalias.h (compute_points_to_sets): Adjust
8911         prototype.
8912         (struct alias_info): Move ...
8913         * tree-ssa-alias.c: ... here.
8914         (update_alias_info): Declare.
8915         (compute_may_aliases): Call it.
8916         (update_alias_info): New function.
8917         * tree-ssa-structalias.c (update_alias_info): Move ...
8918         * tree-ssa-alias.c (update_alias_info_1): ... here.
8919         * tree-ssa-structalias.c (process_constraint_1): Remove
8920         unused from_call argument.  Rename to ...
8921         (process_constraint): ... this.  Delete old wrapper.
8922         (make_constraint_to): Adjust callers.
8923         (handle_const_call): Likewise.
8924         (handle_pure_call): Likewise.
8925         (init_base_vars): Likewise.
8926         (handle_lhs_call): Likewise.  Remove unnecessary constraint.
8927         (find_func_aliases): We don't need structure copies for
8928         complex types.
8929         (make_constraint_from_anything): Remove.
8930         (create_variable_info_for): For globals make constraints
8931         from escaped, not from anything.
8932         (compute_points_to_sets): Do not call update_alias_info.
8933         (ipa_pta_execute): Use make_constraint_from.
8935 2008-06-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8937         * Makefile.in (CXX_COMPAT_WARN, cxx_compat_warn): Delete.
8938         (bitmap.o-warn, dominance.o-warn): New.
8939         * configure.ac (cxx_compat_warn): Delete.
8940         (loose_warn): Add -Wcast-qual and -Wc++-compat.
8941         * system.h: Remove #pragma diagnostic for -Wcast-qual and
8942         -Wc++-compat.
8943         * configure: Regenerate.
8945         * optabs.c (libfunc_decl_hash, libfunc_decl_eq): Fix -Wcast-qual
8946         warnings.
8948 2008-06-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8950         * alloc-pool.c (create_alloc_pool): Fix -Wc++-compat warnings.
8951         * df-scan.c (df_notes_rescan): Likewise.
8952         * ggc-page.c (set_page_table_entry): Likewise.
8953         * intl.c (gcc_gettext_width): Likewise.
8954         * varasm.c (get_unnamed_section, get_noswitch_section,
8955         get_section): Likewise.
8957 2008-06-28  Andrew Jenner  <andrew@codesourcery.com>
8959         * regrename.c (build_def_use): Don't copy RTX.
8961 2008-06-28  Sandra Loosemore  <sandra@codesourcery.com>
8963         * doc/extend.texi (Variable Attributes): Use @ref instead of @xref.
8964         (Type Attributes): Fix nesting of @table and @subsection.  Adjust
8965         punctuation.  Use @ref instead of @xref.
8966         (Function Names): Remove stray @display/@end display.
8967         (C++ Attributes): Use @ref instead of @xref.
8968         (Deprecated Features): Fix punctuation around @xref.
8969         (Backwards Compatibility): Likewise.
8970         * doc/rtl.texi (Incdec): Remove stray @table/@end table.
8972 2008-06-28  Joseph Myers  <joseph@codesourcery.com>
8974         * config/rs6000/predicates.md (easy_fp_constant): Reject TFmode
8975         constants for E500 double.
8977 2008-06-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8979         * doc/rtl.texi (const_vector): Document const_fixed as legitimate
8980         element type of const_vector.
8982 2008-06-28  Uros Bizjak  <ubizjak@gmail.com>
8984         * config/i386/i386.md (addti3, adddi3, addsi3, addhi3, addqi3):
8985         Remove FLAGS_REG clobber from expander pattern.
8986         (subti3, subdi3, subsi3, subhi3, subqi3): Ditto.
8987         (anddi3, andsi3, andhi3, andqi3): Ditto.
8988         (iordi3, iorsi3, iorhi3, iorqi3): Ditto.
8989         (xordi3, xorsi3, xorhi3, xorqi3): Ditto.
8990         (negti2, negdi2, negsi2, neghi2, negqi2): Ditto.
8991         (ashlsi3, ashlhi3, ashlqi3): Ditto.
8992         (ashrsi3, ashrhi3, ashrqi3): Ditto.
8993         (lshrsi3, lshrhi3, lshrqi3): Ditto.
8994         (rotldi3, rotlsi3, rotlhi3, rotlqi3): Ditto.
8995         (rotrdi3, rotrsi3, rotrhi3, rotrqi3): Ditto.
8997 2008-06-28  Richard Guenther  <rguenther@suse.de>
8999         * tree-ssa-structalias.c (callused_id, var_callused,
9000         callused_tree): Add.
9001         (handle_pure_call): New function.
9002         (find_func_aliases): Call it.
9003         (find_what_p_points_to): Handle the call-used set.
9004         (clobber_what_escaped): Likewise.
9005         (compute_call_used_vars): New function.
9006         (init_base_vars): Init the call-used variable.
9007         (do_sd_constraint): Do not propagate the solution from CALLUSED
9008         but use CALLUSED as a placeholder.
9009         (solve_graph): Likewise.
9010         * tree-flow-inline.h (gimple_call_used_vars): New function.
9011         * tree-flow.h (struct gimple_df): Add call_used_vars bitmap.
9012         (compute_call_used_vars): Declare.
9013         * tree-ssa-alias.c (set_initial_properties): Call
9014         compute_call_used_vars.
9015         (reset_alias_info): Clear call-used variables.
9016         (add_call_clobber_ops): Assert we are not called for const/pure
9017         functions.  Remove handling of them.
9018         (add_call_read_ops): Handle pure functions by adding the
9019         call-used set of variables as VUSEs.
9020         * tree-ssa.c (init_tree_ssa): Allocate call-used bitmap.
9021         (delete_tree_ssa): Free it.
9022         * tree-dfa.c (remove_referenced_var): Clear the var from the
9023         call-used bitmap.
9025 2008-06-28  Kai Tietz  <kai.tietz@onevision.com>
9027         * tree.c (build_varargs_function_type_list): New.
9028         (build_function_type_list_1): New.
9029         (build_function_type_list): Use build_function_type_list_1.
9030         * tree.h (build_varargs_function_type_list): New.
9032 2008-06-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9034         PR target/34856
9035         * config/spu/spu.c (spu_builtin_splats): Do not generate
9036         invalid CONST_VECTOR expressions.
9037         (spu_expand_vector_init): Likewise.
9039 2008-06-28  Richard Sandiford  <rdsandiford@googlemail.com>
9041         * optabs.c (libfunc_decls): New variable.
9042         (libfunc_decl_hash, libfunc_decl_eq): New functions.
9043         (init_one_libfunc): Reuse decls and SYMBOL_REFs when asked
9044         for the same function twice.
9046 2008-06-27  Uros Bizjak  <ubizjak@gmail.com>
9048         * config/i386/i386.md (ashlti3, ashrti3, lshrti3): Expand using
9049         ix86_expand_binary_operator directly.
9050         (*ashlti3_1): Rename from ashlti3_1.  Use nonmemory_operand predicate
9051         for operand 2.
9052         (*ashrti3_1): Ditto.
9053         (*lshrti3_1): Ditto.
9054         (*ashlti3_2, *ashrti3_2, *lshrti3_2): Remove insn patterns.
9055         (ashlti, ashrti and lshrti splitters): Handle nonmemory operand 2
9056         using only one splitter.  Conditionaly execute splitter before or
9057         after peephole2 pass.
9058         (ashlti, ashrti and lshrti peephole2): Define peephole2 patterns.
9059         (x86_shld): Rename from x86_shld_1.  Compress operand 2 constraints.
9060         Use only one alternative in asm template.
9061         (x86_64_shld): Compress operand 2 constraints. Use only one alternative
9062         in asm template.
9063         (*ashldi3_cmp_rex64): Use const_1_to_63_operand operand predicate and
9064         "J" operand constraint for operand 2.
9065         (*ashldi3_cconly_rex64): Ditto.
9066         (*ashrdi3_cmp_rex64): Ditto.
9067         (*ashrdi3_cconly_rex64): Ditto.
9068         (*lshrdi3_cmp_rex64): Ditto.
9069         (*lshrdi3_cconly_rex64): Ditto.
9070         * config/i386/predicates.md (const_1_to_63_operand): New predicate.
9071         * config/i386/i386.md (print_operand) ['s']: Print ", " using fputs.
9072         (split_ashr, split_ashl, split_lshr): Use gen_x86_shrd instead of
9073         gen_x86_shrd_1.
9075 2008-06-27  Jakub Jelinek  <jakub@redhat.com>
9077         * gimplify.c (omp_is_private): Don't return true if decl is not
9078         already private on #pragma omp for or #pragma omp parallel for.
9080         PR debug/36617
9081         * tree-cfg.c (struct move_stmt_d): Replace block field with
9082         orig_block and new_block fields.
9083         (move_stmt_r): Only set TREE_BLOCK to p->new_block if
9084         if it used to be NULL, p->orig_block or if p->orig_block is NULL.
9085         (move_block_to_fn): Replace vars_map and new_label_map arguments
9086         with struct move_stmt_d pointer.
9087         (replace_block_vars_by_duplicates): New function.
9088         (move_sese_region_to_fn): Add ORIG_BLOCK argument.  Adjust
9089         move_block_to_fn caller.  If ORIG_BLOCK is non-NULL, move over
9090         all subblocks of ORIG_BLOCK to the new function.  Call
9091         replace_block_vars_by_duplicates.
9092         * tree-flow.h (move_sese_region_to_fn): Adjust prototype.
9093         * omp-low.c (expand_omp_taskreg): Set TREE_USED on DECL_INITIAL
9094         BLOCK of the new function.  Adjust move_sese_region_to_fn caller.
9095         Prune vars with original DECL_CONTEXT from child_cfun->local_decls.
9096         (expand_omp): Temporarily set input_location to the location of
9097         region's controlling stmt.
9098         (lower_omp_sections, lower_omp_for): Add a BLOCK into outermost
9099         BIND_EXPR, push ctx->block_vars and gimplification vars into
9100         the BIND_EXPR and its block's BLOCK_VARS instead of directly
9101         into dest function.
9102         (lower_omp_single): Set TREE_USED on the BIND_EXPR's BLOCK if
9103         there are any BLOCK_VARS.
9104         (lower_omp_taskreg): Set BLOCK on a BIND_EXPR containing the
9105         OMP_PARALLEL or OMP_TASK stmt.
9106         (lower_omp): Save and restore input_location around the lower_omp_1
9107         call.
9109 2008-06-27  Richard Guenther  <rguenther@suse.de>
9111         PR tree-optimization/36400
9112         PR tree-optimization/36373
9113         PR tree-optimization/36344
9114         * tree-ssa-structalias.c (var_escaped, escaped_tree, escaped_id,
9115         var_nonlocal, nonlocal_tree, nonlocal_id): New globals
9116         (update_alias_info): Remove call clobbering code.
9117         (make_constraint_to): New helper function.
9118         (make_escape_constraint): Likewise.
9119         (handle_rhs_call): Use it on all pointer containing arguments.
9120         Also mark the static chain escaped.
9121         (handle_lhs_call): Make constraints from NONLOCAL and ESCAPED
9122         instead of ANYTHING.
9123         (make_constraint_from): New helper split out from ...
9124         (make_constraint_from_anything): ... here.
9125         (find_func_aliases): Add constraints for escape sites.
9126         (intra_create_variable_infos): Make constraints from NONLOCAL
9127         for parameters.
9128         (find_what_p_points_to): Interpret NONLOCAL and ESCAPED the same
9129         as ANYTHING.
9130         (clobber_what_p_points_to): Remove.
9131         (clobber_what_escaped): New function.
9132         (init_base_vars): Init NONLOCAL and ESCAPED.
9133         (do_sd_constraint): Do not propagate the solution from ESCAPED
9134         but use ESCAPED as a placeholder.
9135         (solve_graph): Likewise.
9136         * tree-flow.h (clobber_what_p_points_to): Remove.
9137         (clobber_what_escaped): Declare.
9138         * tree-ssa-alias.c (set_initial_properties): Call it.
9139         Remove code clobbering escaped pointers.
9141 2008-06-27  Richard Sandiford  <rdsandiford@googlemail.com>
9143         * function.c (allocate_struct_function): Only allocate a unique
9144         funcdef_no if the decl is nonzero.
9146 2008-06-27  Richard Sandiford  <rdsandiford@googlemail.com>
9148         * config/mips/mips-protos.h (mips_split_const_insns): Declare.
9149         * config/mips/mips.c (mips_split_const_insns): New function.
9150         * config/mips/mips.md (move_type): New attribute.
9151         (mode): Move attribute definition earlier in file.  Add "TI" and "TF".
9152         (dword_mode): New attribute.
9153         (type): Avoid long line.  Map "move_type"s to "type"s,
9154         choosing "multi" for doubleword moves if appropriate.
9155         Swap MTC/MFC comments to match their declaration order.
9156         (extended_mips16): Default to "yes" if "move_type" is "sll0",
9157         "type" is "branch" or "jal" is "direct".
9158         (length): Handle "extended_mips16" first.  Make the default
9159         "0" for "ghost" instructions.  Set the length from "move_type".
9160         (truncdisi2, truncdihi2, truncdiqi2): Use "move_type" instead
9161         of "type", with "sll0" for the register alternative.  Remove the
9162         "extended_mips16" attribute.
9163         (zero_extendsidi2, *clear_upper32): Use "move_type" instead
9164         of "type", with "shift_shift" for the register alternative.
9165         Remove the "length" attribute.
9166         (*extend<SHORT:mode><GPR:mode>2, *extendqihi2): Likewise.
9167         (*zero_extend<SHORT:mode><GPR:mode>2): Use "move_type" instead
9168         of "type", with "andi" for the register alternative.
9169         (*zero_extendqihi2): Likewise.
9170         (*zero_extend<SHORT:mode><GPR:mode>2_mips16e): Use a "move_type"
9171         of "andi" instead of a "type" of "arith".
9172         (*zero_extend<SHORT:mode><GPR:mode>2_mips16): Use "move_type"
9173         instead of "type".
9174         (*zero_extendqihi2_mips16, mov_<load>l, mov_<load>r, mov_<store>l)
9175         (mov_<store>r, *mov<mode>_ra): Likewise.
9176         (extendsidi2): Use "move_type" instead of "type", with "move"
9177         for the register alternative.
9178         (*extend<SHORT:mode><GPR:mode>2_mips16e): Use "move_type" instead
9179         of "type", with "signext" for the register alternative.
9180         (*extend<SHORT:mode><GPR:mode>2_se<SHORT:size>): Likewise.
9181         (*extendqihi2_mips16e, *extendqihi2_seb): Likewise.
9182         (fix_truncdfsi2_insn, fix_truncsfsi2_insn, fix_truncdfdi2)
9183         (fix_truncsfdi2, floatsidf2, floatdidf2, floatsisf2, floatdisf2)
9184         (floatdisf2, *branch_equality<mode>_mips16): Likewise.
9185         (unnamed branch insn): Likewise.
9186         (*movdi_gp32_fp64): Fold into...
9187         (*movdi_32bit): ...here.
9188         (*movdf_hardfloat_64bit, *movdf_hardfloat_32bit): Combine into...
9189         (*movdf_hardfloat): ...this new pattern.
9190         (*movdf_softfloat): Remove redundant FPR alternatives.
9191         (*movti, *movti_mips16, *movtf, *movtf_mips16): Add "mode" attributes.
9192         (*movv2sf_hardfloat_64bit, *movv2sf_hardfloat_32bit): Combine into...
9193         (*movv2sf): ...this new pattern.  Use "DF" rather than "SF" for
9194         the "move" attribute.
9195         (*movdi_32bit): Use "move_type" instead of "type" and remove the
9196         "length" attribute.  Use "fpload" and "fpstore" instead of "load"
9197         and "store" for COP loads and stores.
9198         (*movdi_32bit_mips16, *movdi_64bit, *movsi_internal, movcc)
9199         (*movhi_internal, *movhi_mips16, *movqi_internal, *movqi_mips16)
9200         (*movsf_hardfloat, *movsf_softfloat, *movsi_mips16, *movdf_hardfloat)
9201         (*movdf_softfloat, *movdf_mips16, *movti, *movti_mips16, *movtf)
9202         (*movtf_mips16, *movv2sf): Likewise.
9203         (mfhi<GPR:mode>_<HILO:mode>, mflo<GPR:mode>_<HILO:mode>)
9204         (load_low<mode>, load_high<mode>, store_word<mode>, mthc1<mode>)
9205         (mfhc1<mode>): Use "move_type" instead of "move".
9206         (*low<mode>_mips16): Use "extended_mips16" instead of "length".
9207         (loadgp_blockage): Remove the "length" attribute.
9208         (blockage, set_got_version, update_got_version): Likewise.
9209         (call_internal): Remove the "extended_mips16" attribute.
9210         (call_value_internal, call_value_multiple_internal): Likewise.
9211         * config/mips/loongson.md (mov<mode>_internal): Use "move_type"
9212         instead of "move".
9213         * config/mips/mips-dsp.md (mips_lbux, mips_lhx, mips_lwx): Remove
9214         the "length" attribute.
9216 2008-06-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9218         * c-format.c (handle_format_attribute): Fix -Wc++-compat and/or
9219         -Wcast-qual warnings.
9220         * c-pragma.c (dpm_eq, handle_pragma_push_macro,
9221         handle_pragma_pop_macro): Likewise.
9222         * collect2.c (resolve_lib_name): Likewise.
9223         * config/arc/arc.c (arc_init): Likewise.
9224         * config/arm/arm.c (neon_builtin_compare,
9225         locate_neon_builtin_icode): Likewise.
9226         * config/arm/pe.c (arm_mark_dllexport, arm_pe_unique_section): Likewise.
9227         * config/bfin/bfin.c (bfin_init_machine_status,
9228         bfin_optimize_loop): Likewise.
9229         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Likewise.
9230         * config/cris/cris.c (cris_init_expanders): Likewise.
9231         * config/darwin-c.c (frameworks_in_use, add_framework): Likewise.
9232         * config/darwin.c (machopic_indirection_eq,
9233         machopic_indirection_name, machopic_output_indirection): Likewise.
9234         * config/frv/frv.c (frv_init_machine_status, frv_compare_insns,
9235         frv_io_check_address, frv_io_handle_set, frv_io_handle_use_1,
9236         frv_optimize_membar): Likewise.
9237         * config/i386/cygwin.h (mingw_scan,
9238         GCC_DRIVER_HOST_INITIALIZATION): Likewise.
9239         * config/i386/cygwin1.c (mingw_scan): Likewise.
9240         * config/i386/i386.c (machopic_output_stub): Likewise.
9241         * config/i386/winnt.c (gen_stdcall_or_fastcall_suffix,
9242         i386_pe_unique_section): Likewise.
9243         * config/ia64/ia64.c (ia64_init_machine_status,
9244         ia64_h_i_d_extended, get_free_bundle_state, bundling, ia64_reorg):
9245         Likewise.
9246         * config/iq2000/iq2000.c, iq2000_init_machine_status): Likewise.
9247         * config/m68hc11/m68hc11.c (m68hc11_encode_label): Likewise.
9248         * config/m68k/m68k.c (m68k_handle_option,
9249         m68k_sched_md_init_global): Likewise.
9250         * config/mcore/mcore.c (mcore_mark_dllexport, mcore_mark_dllimport,
9251         mcore_unique_section): Likewise.
9252         * config/mips/mips.c (mips_block_move_straight,
9253         mips16_rewrite_pool_refs, mips_sim_wait_regs_2, mips_sim_record_set):
9254         Likewise.
9255         * config/mmix/mmix.c (mmix_init_machine_status,
9256         mmix_encode_section_info): Likewise.
9257         * config/pa/pa.c (pa_init_machine_status, hppa_encode_label): Likewise.
9258         * config/rs6000/rs6000.c (rs6000_init_machine_status,
9259         print_operand_address, output_toc, redefine_groups,
9260         rs6000_elf_encode_section_info, machopic_output_stub): Likewise.
9261         * config/s390/s390.c (s390_init_machine_status): Likewise.
9262         * config/score/score.c (score_block_move_straight,
9263         score_block_move_loop_body): Likewise.
9264         * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
9265         * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
9266         * emit-rtl.c (find_auto_inc): Likewise.
9267         * gcc.c (translate_options, process_command): Likewise.
9268         * reorg.c (dbr_schedule): Likewise.
9269         * sdbout.c (sdbout_start_source_file, sdbout_init): Likewise.
9270         * xcoffout.c (xcoffout_declare_function): Likewise.
9272 2008-06-27  Daniel Berlin  <dberlin@dberlin.org>
9274         * tree-ssa-structalias.c (find_func_aliases): Trivial fix to get
9275         ipa-pta working again.
9277 2008-06-27  David Edelsohn  <edelsohn@gnu.org>
9279         * config/rs6000/t-aix52: Append large data option to LDFLAGS for
9280         genautomata.
9282 2008-06-27  Edmar Wienskoski  <edmar@freescale.com>
9284         * config.gcc (powerpc*-*-*): Add new core e500mc.
9285         * config/rs6000/e500mc.md: New file.
9286         * config/rs6000/rs6000.c (processor_costs): Add new costs for
9287         e500mc.
9288         (rs6000_override_options): Add e500mc case to
9289         processor_target_table. Altivec and Spe options not allowed
9290         with e500mc. Add isel instruction to e500mc by
9291         default. Initialize rs6000_cost for e500mc.
9292         (rs6000_issue_rate): Set issue rate for e500mc.
9293         * config/rs6000/rs6000.h (processor_type): Add
9294         PROCESSOR_PPCE500MC.
9295         (ASM_CPU_SPEC): Add e500mc.
9296         Set TARGET_ISEL to rs6000_isel.
9297         * config/rs6000/e500.h: Remove redefinition of TARGET_ISEL.
9298         (CHECK_E500_OPTIONS): Remove TARGET_ISEL.
9299         * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce500mc.
9300         Include e500mc.md.
9301         * doc/invoke.texi: Add e500mc to list of cpus.
9303 2008-06-27  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
9305         PR c/34867
9306         * c-lex.c (lex_charconst): Initialize unsignedp.
9308 2008-06-27  Olivier Hainque  <hainque@adacore.com>
9310         * gimplify.c (gimplify_modify_expr_to_memset): Assert our
9311         documented assumptions.
9313 2008-06-26  H.J. Lu  <hongjiu.lu@intel.com>
9315         * dwarf2out.c: Remove trailing white spaces.  Break long line
9316         in comments.
9318 2008-06-26  Richard Sandiford  <rdsandiford@googlemail.com>
9320         * libfuncs.h (LTI_synchronize): New libfunc_index.
9321         (synchronize_libfunc): Declare.
9322         * builtins.c (expand_builtin_synchronize): Consider using
9323         synchronize_libfunc before falling back on an asm blockage.
9324         * config/mips/mips.c: Include libfuncs.h
9325         (mips_init_libfuncs): Initialize synchronize_libfunc for TARGET_MIPS16.
9327 2008-06-26  Nathan Froyd  <froydnj@codesourcery.com>
9329         * config/rs6000/rs6000.c (emit_allocate_stack): Add copy_r11
9330         parameter.  Copy stack_reg to r11 where appropriate.
9331         (no_global_regs_above): Add gpr parameter.
9332         (rs6000_stack_info): Only add padding for SPE save area if we
9333         are saving SPE GPRs and CR.
9334         (saveres_routine_syms): New variable.
9335         (FIRST_SAVRES_REGISTER, LAST_SAVRES_REGISTER, N_SAVRES_REGISTERS):
9336         Define.
9337         (rs6000_savres_routine_sym): New function.
9338         (rs6000_emit_stack_reset, rs6000_restore_saved_cr): New functions,
9339         split out of...
9340         (rs6000_emit_epilogue): ...here.  Use rs6000_use_multiple_p and
9341         rs6000_savres_strategy.  Restore GPRs out-of-line if appropriate.
9342         Tweak FPR out-of-line saving.
9343         (rs6000_make_savres_rtx): New function.
9344         (rs6000_use_multiple_p): New function.
9345         (rs6000_savres_strategy): New function.
9346         (rs6000_emit_prologue): Use rs6000_savres_strategy.  Save GPRs
9347         out-of-line if appropriate.
9348         * config/rs6000/sysv4.h (FP_SAVE_INLINE): Save FPRs out-of-line
9349         if we are optimizing for size.
9350         (GP_SAVE_INLINE): Define.
9351         (SAVE_FP_SUFFIX, RESTORE_FP_SUFFIX): Only use _l on 64-bit targets.
9352         * config/rs6000/darwin.h (GP_SAVE_INLINE): Define.
9353         * config/rs6000/aix.h (GP_SAVE_INLINE): Define.
9354         * config/rs6000/rs6000.md (*save_gpregs_<mode>): New insn.
9355         (*save_fpregs_<mode>): Add use of r11.
9356         (*restore_gpregs_<mode>): New insn.
9357         (*return_and_restore_gpregs_<mode>): New insn.
9358         (*return_and_restore_fpregs_<mode>): Adjust to clobber LR and
9359         use r11.
9360         * config/rs6000/spe.md (*save_gpregs_spe): New insn.
9361         (*restore_gpregs_spe): New insn.
9362         (*return_and_restore_gpregs_spe): New insn.
9363         * config/rs6000/predicates.md (save_world_operation): Fix check.
9365 2008-06-26  Steven Bosscher  <steven@gcc.gnu.org>
9367         * tree-into-ssa (insert_phi_nodes_for): 'var' must be a DECL at
9368         this point, so assert that.
9370 2008-06-26  Steven Bosscher  <steven@gcc.gnu.org>
9372         * cfganal.c: Include vec.h and vecprim.h.
9373         (compute_idf): Import from...
9374         * tree-into-ssa (compute_idf): ...here.
9375         * basic-block.h (compute_idf): Export.
9377 2008-06-26  Joseph Myers  <joseph@codesourcery.com>
9379         * c-decl.c (merge_decls): Use !current_function_decl to check for
9380         extern declaration of C99 inline function being at file scope.
9382 2008-06-25  John David Anglin  <dave.anglin@gcc-cnrc.gc.ca>
9384         * config.gcc (hppa[12]*-*-hpux10*): Don't use fixproto.
9386 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9388         * alias.c (record_alias_subset, init_alias_analysis): Fix
9389         -Wc++-compat and/or -Wcast-qual warnings.
9390         * attribs.c (lookup_attribute_spec): Likewise.
9391         * bb-reorder.c (find_traces, rotate_loop, find_traces_1_round,
9392         copy_bb, connect_traces,
9393         find_rarely_executed_basic_blocks_and_cr): Likewise.
9394         * bt-load.c (find_btr_def_group, add_btr_def, new_btr_user,
9395         note_btr_set, migrate_btr_defs): Likewise.
9396         * builtins.c (result_vector, expand_builtin_memcpy,
9397         expand_builtin_mempcpy_args, expand_builtin_strncpy,
9398         builtin_memset_read_str, expand_builtin_printf,
9399         fold_builtin_memchr, rewrite_call_expr, fold_builtin_printf):
9400         Likewise.
9401         * caller-save.c (mark_set_regs): Likewise.
9402         * calls.c (expand_call, emit_library_call_value_1): Likewise.
9403         * cgraph.c (cgraph_edge): Likewise.
9404         * combine.c (likely_spilled_retval_1): Likewise.
9405         * coverage.c (htab_counts_entry_hash, htab_counts_entry_eq,
9406         htab_counts_entry_del, get_coverage_counts): Likewise.
9407         * cselib.c (new_elt_list, new_elt_loc_list, entry_and_rtx_equal_p,
9408         new_cselib_val): Likewise.
9409         * dbgcnt.c (dbg_cnt_process_opt): Likewise.
9410         * dbxout.c (dbxout_init, dbxout_type, output_used_types_helper):
9411         Likewise.
9412         * df-core.c (df_compact_blocks): Likewise.
9413         * df-problems.c (df_grow_bb_info, df_chain_create): Likewise.
9414         * df-scan.c (df_grow_reg_info, df_ref_create,
9415         df_insn_create_insn_record, df_insn_rescan, df_notes_rescan,
9416         df_ref_compare, df_ref_create_structure, df_bb_refs_record,
9417         df_record_entry_block_defs, df_record_exit_block_uses,
9418         df_bb_verify): Likewise.
9419         * df.h (DF_REF_EXTRACT_WIDTH_CONST, DF_REF_EXTRACT_OFFSET_CONST,
9420         DF_REF_EXTRACT_MODE_CONST): New.
9421         * dominance.c (get_immediate_dominator, get_dominated_by,
9422         nearest_common_dominator, root_of_dom_tree,
9423         iterate_fix_dominators, first_dom_son, next_dom_son): Fix
9424         -Wc++-compat and/or -Wcast-qual warnings.
9425         * dse.c (clear_alias_set_lookup, get_group_info, gen_rtx_MEM,
9426         record_store, replace_read, check_mem_read_rtx, scan_insn,
9427         dse_step1, dse_record_singleton_alias_set): Likewise.
9428         * dwarf2asm.c (dw2_force_const_mem): Likewise.
9430 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9432         * dwarf2out.c (new_cfi, queue_reg_save, dwarf2out_begin_prologue,
9433         dwarf2out_frame_init, new_loc_descr, new_die, lookup_decl_die,
9434         lookup_decl_loc, add_var_loc_to_decl, compute_section_prefix,
9435         assign_symbol_names, htab_cu_hash, htab_cu_eq, htab_cu_del,
9436         build_abbrev_table, new_loc_list, output_comp_unit, add_arange,
9437         add_ranges_num, add_ranges_by_labels, file_info_cmp,
9438         file_name_acquire, output_file_names, add_const_value_attribute,
9439         premark_used_types_helper, file_table_eq, file_table_hash,
9440         lookup_filename, dwarf2out_var_location, dwarf2out_source_line,
9441         dwarf2out_init, file_table_relative_p): Fix -Wc++-compat and/or
9442         -Wcast-qual warnings.
9443         * ebitmap.c (ebitmap_array_grow, ebitmap_array_init,
9444         ebitmap_alloc, ebitmap_ior, ebitmap_and_compl): Likewise.
9445         * emit-rtl.c (get_mem_attrs, get_reg_attrs, gen_rtvec,
9446         gen_reg_rtx, start_sequence, init_emit): Likewise.
9447         * et-forest.c (et_new_occ, et_new_tree): Likewise.
9448         * except.c (init_eh_for_function, gen_eh_region,
9449         remove_unreachable_regions, add_ehl_entry, duplicate_eh_regions_1,
9450         arh_to_landing_pad, arh_to_label, add_action_record,
9451         add_call_site, switch_to_exception_section): Likewise.
9452         * expmed.c (synth_mult): Likewise.
9453         * expr.c (gen_group_rtx, emit_group_load, emit_group_store,
9454         store_expr): Likewise.
9455         * final.c (shorten_branches, final_scan_insn, debug_queue_symbol):
9456         Likewise.
9457         * function.c (assign_stack_temp_for_type,
9458         allocate_struct_function, match_asm_constraints_1): Likewise.
9459         * gcov-io.c (gcov_allocate): Likewise.
9460         * gcse.c (GNEW, GCNEW, GNEWVEC, GCNEWVEC, GRESIZEVEC, GNEWVAR,
9461         GCNEWVAR, GRESIZEVAR, GOBNEW, GOBNEWVAR): New.
9462         (gcse_main, alloc_gcse_mem, alloc_gcse_mem, alloc_reg_set_mem,
9463         record_one_set, insert_expr_in_table, insert_set_in_table,
9464         dump_hash_table, compute_hash_table_work, alloc_hash_table,
9465         pre_ldst_expr_hash, pre_ldst_expr_eq, find_rtx_in_ldst,
9466         reg_set_info, reg_clear_last_set): Fix -Wc++-compat and/or
9467         -Wcast-qual warnings.
9469 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9471         * cse.c (approx_reg_cost_1, cse_insn): Fix -Wc++-compat and/or
9472         -Wcast-qual warnings.
9473         * gcc.c (process_command): Likewise.
9474         * genattrtab.c (oballoc): Use XOBNEW.
9475         (oballocvec): Define.
9476         (attr_hash_add_rtx, attr_hash_add_string, attr_string,
9477         get_attr_value, fill_attr, make_length_attrs, gen_attr, gen_insn,
9478         gen_delay, find_attr, gen_insn_reserv, gen_bypass_1): Fix
9479         -Wc++-compat and/or -Wcast-qual warnings.
9480         * genautomata.c (XCREATENODE, XCREATENODEVEC, XCREATENODEVAR,
9481         XCOPYNODE, XCOPYNODEVEC, XCOPYNODEVAR): New.
9482         (gen_cpu_unit, gen_query_cpu_unit, gen_bypass, gen_excl_set,
9483         gen_presence_absence_set, gen_automaton, gen_regexp_el,
9484         gen_regexp_repeat, gen_regexp_allof, gen_regexp_oneof,
9485         gen_regexp_sequence, gen_reserv, gen_insn_reserv, process_excls,
9486         add_excls, process_presence_absence_names,
9487         process_presence_absence_patterns, add_presence_absence,
9488         process_regexp, add_advance_cycle_insn_decl, get_free_alt_state,
9489         get_free_state, add_arc, get_free_automata_list_el,
9490         form_reserv_sets_list, copy_insn_regexp, transform_1, transform_2,
9491         transform_3, cache_presence, create_ainsns, create_automata,
9492         create_state_ainsn_table, dfa_insn_code_enlarge,
9493         output_trans_func, output_min_issue_delay_func,
9494         output_dead_lock_func, output_reset_func,
9495         output_get_cpu_unit_code_func, output_dfa_start_func,
9496         expand_automata): Likewise.
9497         * genextract.c (gen_insn): Likewise.
9498         * gengtype-lex.l: Likewise.
9499         * gengtype.c (read_input_list, adjust_field_type,
9500         process_gc_options): Likewise.
9501         * genoutput.c (note_constraint): Likewise.
9502         * genpreds.c (mangle, add_constraint): Likewise.
9503         * genrecog.c (process_define_predicate, new_decision,
9504         add_to_sequence): Likewise.
9505         * gensupport.c (record_insn_name): Likewise.
9507 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9509         * config/i386/driver-i386.c (detect_caches_amd,
9510         detect_caches_intel, host_detect_local_cpu): Fix -Wc++-compat
9511         and/or -Wcast-qual warnings.
9512         *ggc-common.c (ggc_mark_roots, gt_pch_note_object,
9513         gt_pch_note_reorder, relocate_ptrs, write_pch_globals,
9514         gt_pch_save): Likewise.
9515         * ggc-page.c (push_depth, push_by_depth, alloc_anon, alloc_page,
9516         gt_ggc_m_S, clear_marks, ggc_pch_read): Likewise.
9517         * global.c (compute_regsets): Likewise.
9518         * graph.c (print_rtl_graph_with_bb, clean_graph_dump_file,
9519         finish_graph_dump_file): Likewise.
9520         * haifa-sched.c (schedule_block, extend_h_i_d, extend_ready,
9521         unlink_bb_notes): Likewise.
9522         * integrate.c (get_hard_reg_initial_val): Likewise.
9523         * ipa-prop.c (ipa_push_func_to_list): Likewise.
9524         * ipa-struct-reorg.c (gen_var_name, gen_cluster_name): Likewise.
9525         * local-alloc.c (update_equiv_regs): Likewise.
9526         * loop-invariant.c (check_invariant_table_size,
9527         hash_invariant_expr, eq_invariant_expr, find_or_insert_inv):
9528         Likewise.
9529         * loop-iv.c (check_iv_ref_table_size, analyzed_for_bivness_p,
9530         altered_reg_used, mark_altered): Likewise.
9531         * loop-unroll.c (si_info_eq, ve_info_eq, allocate_basic_variable,
9532         insert_var_expansion_initialization,
9533         combine_var_copies_in_loop_exit, apply_opt_in_copies,
9534         release_var_copies): Likewise.
9535         * matrix-reorg.c (mat_acc_phi_hash, mat_acc_phi_eq, mtt_info_eq,
9536         analyze_matrix_decl, add_allocation_site, analyze_transpose,
9537         analyze_accesses_for_phi_node, check_var_notmodified_p,
9538         check_allocation_function, find_sites_in_func,
9539         record_all_accesses_in_func, transform_access_sites,
9540         transform_allocation_sites): Likewise.
9541         * omp-low.c (new_omp_region, create_omp_child_function_name,
9542         check_omp_nesting_restrictions, check_combined_parallel,
9543         lower_omp_2, diagnose_sb_1, diagnose_sb_2): Likewise.
9544         * optabs.c (no_conflict_move_test, gen_libfunc, gen_fp_libfunc,
9545         gen_intv_fp_libfunc, gen_interclass_conv_libfunc,
9546         gen_intraclass_conv_libfunc, set_optab_libfunc, set_conv_libfunc):
9547         Likewise.
9548         * opts-common.c (prune_options): Likewise.
9549         * opts.c (add_input_filename, print_filtered_help,
9550         get_option_state): Likewise.
9551         * params.c (add_params): Likewise.
9552         * passes.c (set_pass_for_id, next_pass_1,
9553         do_per_function_toporder, pass_fini_dump_file): Likewise.
9554         * postreload.c (reload_cse_simplify_operands): Likewise.
9555         * predict.c (tree_predicted_by_p, tree_predict_edge,
9556         clear_bb_predictions, combine_predictions_for_bb): Likewise.
9558 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9560         * ra.h (add_neighbor): Fix -Wc++-compat and/or -Wcast-qual
9561         warnings.
9562         * recog.c (check_asm_operands, validate_change_1): Likewise.
9563         * reg-stack.c (check_asm_stack_operands, subst_asm_stack_regs,
9564         subst_asm_stack_regs): Likewise.
9565         * regclass.c (regclass, som_hash, som_eq, record_subregs_of_mode,
9566         cannot_change_mode_set_regs, invalid_mode_change_p): Likewise.
9567         * regmove.c (reg_is_remote_constant_p): Likewise.
9568         * regrename.c (regrename_optimize, scan_rtx_reg,
9569         kill_clobbered_value, kill_set_value, kill_autoinc_value):
9570         Likewise.
9571         * regstat.c (regstat_init_n_sets_and_refs, regstat_compute_ri,
9572         regstat_compute_calls_crossed): Likewise.
9573         * reload1.c (init_reload, new_insn_chain,
9574         has_nonexceptional_receiver, reload, copy_reloads,
9575         calculate_needs_all_insns, init_elim_table): Likewise.
9576         * rtl-factoring.c (compute_rtx_cost, fill_hash_bucket): Likewise.
9577         * rtl.c (shallow_copy_rtx_stat): Likewise.
9578         * rtlanal.c (parms_set): Likewise.
9579         * sbitmap.c (sbitmap_alloc, sbitmap_alloc_with_popcount,
9580         sbitmap_resize, sbitmap_vector_alloc): Likewise.
9581         * sched-ebb.c (earliest_block_with_similiar_load,
9582         add_deps_for_risky_insns): Likewise.
9583         * sched-rgn.c (find_rgns, gather_region_statistics, extend_rgns,
9584         schedule_region): Likewise.
9585         * see.c (eq_descriptor_pre_extension,
9586         hash_descriptor_pre_extension, hash_del_pre_extension,
9587         eq_descriptor_properties, hash_descriptor_properties,
9588         hash_del_properties, see_seek_pre_extension_expr,
9589         see_initialize_data_structures, see_print_register_properties,
9590         see_print_pre_extension_expr, see_delete_merged_def_extension,
9591         see_delete_unmerged_def_extension, see_emit_use_extension,
9592         see_pre_delete_extension, see_map_extension, see_commit_changes,
9593         see_analyze_merged_def_local_prop,
9594         see_analyze_merged_def_local_prop,
9595         see_analyze_unmerged_def_local_prop, see_analyze_use_local_prop,
9596         see_set_prop_merged_def, see_set_prop_unmerged_def,
9597         see_set_prop_unmerged_use, see_print_one_extension,
9598         see_merge_one_use_extension, see_merge_one_def_extension,
9599         see_store_reference_and_extension, see_update_uses_relevancy,
9600         see_update_defs_relevancy): Likewise.
9601         * statistics.c (hash_statistics_hash, hash_statistics_eq,
9602         hash_statistics_free, curr_statistics_hash): Likewise.
9603         * stmt.c (parse_output_constraint, decl_overlaps_hard_reg_set_p,
9604         expand_asm_operands, expand_return, case_bit_test_cmp,
9605         expand_case): Likewise.
9606         * stor-layout.c (start_record_layout): Likewise.
9607         * stringpool.c (ggc_alloc_string, gt_pch_n_S,
9608         gt_pch_save_stringpool): Likewise.
9609         * tree-data-ref.c (hash_stmt_vertex_info,
9610         have_similar_memory_accesses_1, ref_base_address_1): Likewise.
9611         * tree-ssa-phiopt.c (name_to_bb_hash): Likewise.
9613 2008-06-25  Uros Bizjak  <ubizjak@gmail.com>
9615         PR target/36627
9616         * config/i386/i386.md : Change constraints of HImode and QImode
9617         immediate operands from "i" to "n".  Change SImode "ni" constraint to
9618         "i" and SImode "rmi" constraint to "g".  Remove all constraints
9619         from const0_operand and const1_operand predicated operands.
9620         (i): Change QImode and HImode attribute from "i" to "n".
9621         (*subqi_2): Change HImode operands to QImode.
9622         (*subqi_3): Ditto.
9624 2008-06-25  Olivier Hainque  <hainque@adacore.com>
9626         * Makefile.in (GTFILES_H): Use | instead of ; as separator in
9627         sed substitutions.
9629 2008-06-25  Richard Guenther  <rguenther@suse.de>
9631         * tree-ssa-structalias.c (fieldoff_compare): Make sure to
9632         not overflow the result type.
9634 2008-06-25  Richard Guenther  <rguenther@suse.de>
9636         * tree-vn.c (vn_add): Handle TRUTH_*_EXPR.
9637         (vn_lookup): Likewise.
9639 2008-06-25  Richard Guenther  <rguenther@suse.de>
9641         PR tree-optimization/35518
9642         * fold-const.c (fold_ternary): Strip trivial BIT_FIELD_REFs.
9643         * tree-sra.c (instantiate_element): Use fold_build3 to build
9644         BIT_FIELD_REFs.
9645         (try_instantiate_multiple_fields): Likewise.
9647 2008-06-24  Andrew Pinski  <andrew_pinski@playstation.sony.com>
9649         * config/rs6000/rs6000.md: Change all string instruction's clobber to
9650         be early clobbers.
9652 2008-06-24  Andrew Pinski  <andrew_pinski@playstation.sony.com>
9654         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Set
9655         use_backchain_to_restore_sp to true
9656         if the offset of the link register save area would go over the 32k - 1
9657         offset limit of the load
9658         instructions.
9660 2008-06-25  Hans-Peter Nilsson  <hp@axis.com>
9662         * doc/invoke.texi (Optimize Options) <fstrict-aliasing>: Add
9663         anchor for the type-punning blurb.  Cross-reference "Structures
9664         unions enumerations and bit-fields implementation".  Provide a
9665         cast-through-pointer example.  Make final sentence self-contained.
9666         * doc/implement-c.texi (Structures unions enumerations and
9667         bit-fields implementation): Cross-reference the type-punning blurb
9668         in the -fstrict-aliasing documentation.
9670 2008-06-24  Andrew Pinski  <andrew_pinski@playstation.sony.com>
9672         PR middle-end/36594
9673         * builtins.c (expand_builtin_nonlocal_goto): Stabilize the address of
9674         the memory instead of the memory itself for the save area.
9676 2008-06-24  Olivier Hainque  <hainque@adacore.com>
9677             Nicolas Roche  <roche@adacore.com>
9679         * gengtype.c (srcdir_len): size_t instead of int.
9680         (get_file_realbasename): New function.  For F a filename, the real
9681         basename of F, with all the path components stripped.
9682         (get_file_srcdir_relative_path): New function.  For F a filename, the
9683         relative path to F from $(srcdir).
9684         (get_file_basename): Rewrite using get_file_srcdir_relative_path and
9685         get_file_realbasename.  Adjust the head comment.
9686         (get_prefix_langdir_index): New function. For F a filename, return the
9687         lang_dir_names[] relative index of the language directory that is
9688         a prefix in F.
9689         (get_file_langdir): For F a filename, return the name of the language
9690         directory where F is located.
9691         (get_file_gtfilename): New function. The gt- output file name for an
9692         input filename F.
9693         (get_output_file_with_visibility): Replace in-line computations with
9694         uses of get_file_gtfilename and get_prefix_langdir_index.
9695         * Makefile.in (GTFILES_H): Adjust to match what gengtype generates.
9697 2008-06-24  Jakub Jelinek  <jakub@redhat.com>
9699         PR tree-optimization/36504
9700         * tree-ssa-loop-prefetch.c (gather_memory_references_ref): Skip
9701         references without base address.
9703 2008-06-23  Uros Bizjak  <ubizjak@gmail.com>
9705         PR middle-end/36584
9706         * calls.c (expand_call): Increase alignment for recursive functions.
9708 2008-06-23  Anatoly Sokolov  <aesok@post.ru>
9710         * config/avr/avr.c (avr_function_value): Add new 'outgoing' argument.
9711         (TARGET_FUNCTION_VALUE): New define.
9712         * config/avr/avr-protos.h (avr_function_value): Remove declaration.
9713         * config/avr/avr.h (FUNCTION_VALUE): Remove.
9715 2008-06-23  Uros Bizjak  <ubizjak@gmail.com>
9717         * config/i386/i386.md (fmodxf3): Change sequence of move instructions.
9718         (fmod<mode>3): Ditto.
9719         (remainderxf3): Ditto.
9720         (remainder<mode>3): Ditto.
9722 2008-06-23  Jakub Jelinek  <jakub@redhat.com>
9724         PR target/36533
9725         * emit-rtl.c (set_reg_attrs_from_value): Do nothing if
9726         REG is a hard register.
9728         PR tree-optimization/36508
9729         * tree-ssa-pre.c (compute_antic): Allow num_iterations up to
9730         499, don't check it at all in release compilers.
9732 2008-06-23  Uros Bizjak  <ubizjak@gmail.com>
9734         * config/i386/i386.md (*fop_<mode>_1_i387): Use SSE_FLOAT_MODE_P
9735         together with SSE_TARGET_MATH to disable insn pattern.
9736         (*fop_<MODEF:mode>_2_i387): Ditto.
9737         (*fop_<MODEF:mode>_3_i387): Ditto.
9739 2008-06-22  Andy Hutchinson  <hutchinsonandy@aim.com>
9741         * config/avr/avr.h (SUPPORTS_INIT_PRIORITY): Define.
9743 2008-06-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
9745         PR middle-end/34906
9746         * gimplify.c (gimplify_asm_expr): Check the return code of
9747         parse_output_constraint call, set function return and is_inout
9748         value if it failed.
9750 2008-06-22  Ian Lance Taylor  <iant@google.com>
9752         * c-lex.c (narrowest_unsigned_type): Change itk to int.
9753         (narrowest_signed_type): Likewise.
9754         * c-typeck.c (c_common_type): Change local variable mclass to enum
9755         mode_class, twice.
9756         (parser_build_binary_op): Compare the TREE_CODE_CLASS with
9757         tcc_comparison, not the tree code itself.
9758         * c-common.c (def_fn_type): Pass int, not an enum, to va_arg.
9759         (c_expand_expr): Cast modifier to enum expand_modifier.
9760         * c-common.h (C_RID_CODE): Add casts.
9761         (C_SET_RID_CODE): Define.
9762         * c-parser.c (c_parse_init): Use C_SET_RID_CODE.
9763         (c_lex_one_token): Add cast to avoid warning.
9764         (c_parser_objc_type_name): Rename local typename to type_name.
9765         (check_no_duplicate_clause): Change code parameter to enum
9766         omp_clause_code.
9767         (c_parser_omp_var_list_parens): Change kind parameter to enum
9768         omp_clause_code.
9769         (c_parser_omp_flush): Pass OMP_CLAUSE_ERROR, not 0, to
9770         c_parser_omp_list_var_parens.
9771         (c_parser_omp_threadprivate): Likewise.
9772         * cp/lex.c (init_reswords): Use C_SET_RID_CODE.
9773         * cp/parser.c (cp_lexer_get_preprocessor_token): Likewise.
9774         * c-format.c (NO_FMT): Define.
9775         (printf_length_specs): Use NO_FMT.
9776         (asm_fprintf_length_specs): Likewise.
9777         (gcc_diag_length_specs): Likewise.
9778         (scanf_length_specs): Likewise.
9779         (strfmon_length_specs): Likewise.
9780         (gcc_gfc_length_specs): Likewise.
9781         (printf_flag_specs): Change 0 to STD_C89.
9782         (asm_fprintf_flag_specs): Likewise.
9783         (gcc_diag_flag_specs): Likewise.
9784         (gcc_cxxdiag_flag_specs): Likewise.
9785         (scanf_flag_specs): Likewise.
9786         (strftime_flag_specs): Likewise.
9787         (strfmon_flag_specs): Likewise.
9788         (print_char_table): Likewise.
9789         (asm_fprintf_char_table): Likewise.
9790         (gcc_diag_char_table): Likewise.
9791         (gcc_tdiag_char_table): Likewise.
9792         (gcc_cdiag_char_table): Likewise.
9793         (gcc_cxxdiag_char_table): Likewise.
9794         (gcc_gfc_char_table): Likewise.
9795         (scan_char_table): Likewise.
9796         (time_char_table): Likewis.
9797         (monetary_char_table): Likewise.
9798         * c-format.h (BADLEN): Likewise.
9800 2008-06-21  Ian Lance Taylor  <iant@google.com>
9802         * tree.h (enum tree_code): Include all-tree.def, not tree.def.
9803         Define END_OF_BASE_TREE_CODES around inclusion.
9804         * tree.c (tree_code_type): New global array.
9805         (tree_code_length, tree_code_name): Likewise.
9806         * Makefile.in (TREE_H): Add all-tree.def, c-common.def, and
9807         $(lang_tree_files).
9808         (all-tree.def, s-alltree): New targets.
9809         (gencheck.h, s-gencheck): Remove.
9810         (tree.o): Depend upon all-tree.def.
9811         (build/gencheck.o): Remove gencheck.h dependency.
9812         (mostlyclean): Don't remove gencheck.h.
9813         * c-common.h (enum c_tree_code): Remove.
9814         * c-lang.c (tree_code_type): Remove.
9815         (tree_code_length, tree_code_name): Remove.
9816         * gencheck.c (tree_codes): Include all-tree.def, rather than
9817         tree.def, c-common.def, and gencheck.h.  Undefined DEFTREECODE
9818         after it is used.
9819         * tree-browser.c (tb_tree_codes): Include all-tree.def, rather
9820         than tree.def.
9821         * cp/cp-tree.h (enum cplus_tree_code): Remove.
9822         (operator_name_info): Size to MAX_TREE_CODES.
9823         (assignment_operator_name_info): Likewise.
9824         * cp/cp-lang.c (tree_code_type): Remove.
9825         (tree_code_length, tree_code_name): Remove.
9826         * cp/lex.c (operator_name_info): Size to MAX_TREE_CODES.
9827         (assignment_operator_name_info): Likewise.
9828         * cp/decl.c (grok_op_properties): Change LAST_CPLUS_TREE_CODE to
9829         MAX_TREE_CODES.
9830         * cp/mangle.c (write_expression): Likewise.
9831         * cp/Make-lang.in (CXX_TREE_H): Remove cp/cp-tree.def.
9832         * fortran/f95-lang.c (tree_code_type): Remove.
9833         (tree_code_length, tree_code_name): Remove.
9834         * java/java-tree.h (enum java_tree_code): Remove.
9835         * java/lang.c (tree_code_type): Remove.
9836         (tree_code_length, tree_code_name): Remove.
9837         * java/Make-lang.in (JAVA_TREE_H): Remove java/java-tree.def.
9838         * objc/objc-act.h (enum objc_tree_code): Remove.
9839         * objc/objc-lang.c (tree_code_type): Remove.
9840         (tree_code_length, tree_code_name): Remove.
9841         * objcp/objcp-lang.c (tree_code_type): Remove.
9842         (tree_code_length, tree_code_name): Remove.
9843         * ada/ada-tree.h (enum gnat_tree_code): Remove.
9844         * ada/Make-lang.in (ADA_TREE_H): Remove ada/ada-tre.def.
9845         * ada/misc.c (tree_code_type): Remove.
9846         (tree_code_length, tree_code_name): Remove.
9848 2008-06-21  Bernhard Fischer  <aldot@gcc.gnu.org>
9850         * tree-ssa-pre.c (fini_antic): Bitmap_sets have to be freed before
9851         the grand_bitmap_obstack.
9853 2008-06-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9855         * ggc.h (GGC_RESIZEVAR): New, reorder macros.
9856         * tracer.c (tail_duplicate): Fix for -Wc++-compat.
9857         * tree-affine.c (aff_combination_expand, free_name_expansion): Likewise.
9858         * tree-cfg.c (replace_by_duplicate_decl, replace_ssa_name,
9859         move_stmt_r, new_label_mapper): Likewise.
9860         * tree-complex.c (cvc_lookup): Likewise.
9861         * tree-dfa.c (create_function_ann): Likewise.
9862         * tree-dump.c (dump_register): Likewise.
9863         * tree-if-conv.c (tree_if_conversion, add_to_predicate_list,
9864         find_phi_replacement_condition): Likewise.
9865         * tree-inline.c (copy_phis_for_bb, estimate_num_insns_1,
9866         tree_function_versioning): Likewise.
9867         * tree-into-ssa.c (cmp_dfsnum): Likewise.
9868         * tree-iterator.c (tsi_link_before, tsi_link_after): Likewise.
9869         * tree-nested.c (lookup_field_for_decl, lookup_tramp_for_decl,
9870         get_nonlocal_debug_decl, convert_nonlocal_reference,
9871         convert_nonlocal_omp_clauses, get_local_debug_decl,
9872         convert_local_reference, convert_local_omp_clauses,
9873         convert_nl_goto_reference, convert_nl_goto_receiver,
9874         convert_tramp_reference, convert_call_expr): Likewise.
9875         * tree-outof-ssa.c (contains_tree_r): Likewise.
9876         * tree-parloops.c (reduction_phi, initialize_reductions,
9877         eliminate_local_variables_1, add_field_for_reduction,
9878         add_field_for_name, create_phi_for_local_result,
9879         create_call_for_reduction_1, create_loads_for_reductions,
9880         create_stores_for_reduction, create_loads_and_stores_for_name):
9881         Likewise.
9882         * tree-phinodes.c (allocate_phi_node): Likewise.
9883         * tree-predcom.c (order_drefs, execute_pred_commoning_cbck): Likewise.
9884         * tree-sra.c (sra_elt_hash, sra_elt_eq, lookup_element): Likewise.
9885         * tree-ssa-alias.c (get_mem_sym_stats_for): Likewise.
9886         * tree-ssa-coalesce.c (compare_pairs): Likewise.
9887         * tree-ssa-loop-im.c (mem_ref_in_stmt, memref_hash, memref_eq,
9888         memref_free, gather_mem_refs_stmt, vtoe_hash, vtoe_eq, vtoe_free,
9889         record_vop_access, get_vop_accesses, get_vop_stores): Likewise.
9890         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Likewise.
9891         * tree-ssa-sccvn.c (VN_INFO_GET, free_phi, free_reference,
9892         vn_nary_op_insert): Likewise.
9893         * tree-ssa.c (redirect_edge_var_map_add,
9894         redirect_edge_var_map_clear, redirect_edge_var_map_dup): Likewise.
9895         * tree-vectorizer.c (vectorize_loops): Likewise.
9896         * tree.c (make_node_stat, copy_node_stat, build_int_cst_wide,
9897         build_fixed, build_real, make_tree_binfo_stat, make_tree_vec_stat,
9898         tree_cons_stat, build1_stat, build_variant_type_copy,
9899         decl_init_priority_lookup, decl_fini_priority_lookup,
9900         decl_priority_info, decl_restrict_base_lookup,
9901         decl_restrict_base_insert, decl_debug_expr_lookup,
9902         decl_debug_expr_insert, decl_value_expr_lookup,
9903         decl_value_expr_insert, type_hash_eq, type_hash_lookup,
9904         type_hash_add, get_file_function_name, tree_check_failed,
9905         tree_not_check_failed, tree_range_check_failed,
9906         omp_clause_range_check_failed, build_omp_clause,
9907         build_vl_exp_stat): Likewise.
9908         * value-prof.c (gimple_histogram_value,
9909         gimple_duplicate_stmt_histograms): Likewise.
9910         * var-tracking.c (attrs_list_insert, attrs_list_copy,
9911         unshare_variable, variable_union_info_cmp_pos, variable_union,
9912         dataflow_set_different_1, dataflow_set_different_2,
9913         vt_find_locations, variable_was_changed, set_variable_part,
9914         emit_notes_for_differences_1, emit_notes_for_differences_2): Likewise.
9915         * varasm.c (prefix_name, emutls_decl, section_entry_eq,
9916         section_entry_hash, object_block_entry_eq,
9917         object_block_entry_hash, create_block_symbol,
9918         initialize_cold_section_name, default_function_rodata_section,
9919         strip_reg_name, set_user_assembler_name, const_desc_eq,
9920         build_constant_desc, output_constant_def, lookup_constant_def,
9921         const_desc_rtx_hash, const_desc_rtx_eq, const_rtx_hash_1,
9922         create_constant_pool, force_const_mem, compute_reloc_for_rtx_1,
9923         default_internal_label): Likewise.
9924         * varray.c (varray_init, varray_grow): Likewise.
9925         * vec.c (vec_gc_o_reserve_1, vec_heap_o_reserve_1): Likewise.
9927 2008-06-20  Uros Bizjak  <ubizjak@gmail.com>
9929         * config/i386/i386.md (*jcc_fused_1): Handle all valid compare
9930         operators for "test" insn.  Macroize insn using SWI mode macro.
9931         (*jcc_fused_2): Ditto.
9932         (*jcc_fused_3): Macroize insn using SWI mode macro.
9933         (*jcc_fused_4): Ditto.
9935 2008-06-20  Bernhard Fischer  <aldot@gcc.gnu.org>
9937         * tree-ssa-pre.c: Fix typo in comment.
9938         (init_antic, fini_antic): Add explicit funtions for
9939         initializing and deinitializing ANTIC and AVAIL sets.
9940         (create_expression_by_pieces): Fix typo in comment.
9941         Remove redundant set of new_stuff and use NULL_TREE instead of NULL.
9942         (execute_pre): Eventually dump details about ANTIC_IN.
9944 2008-06-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9946         * collect2.c (main, add_to_list): Fix for -Wc++-compat.
9947         * gcc.c (translate_options, init_spec, store_arg, read_specs,
9948         add_to_obstack, file_at_path, find_a_file, execute,
9949         add_preprocessor_option, add_assembler_option, add_linker_option,
9950         process_command, insert_wrapper, do_option_spec, do_self_spec,
9951         spec_path, do_spec_1, is_directory, main, used_arg,
9952         getenv_spec_function): Likewise.
9953         * tlink.c (symbol_hash_lookup, file_hash_lookup,
9954         demangled_hash_lookup, symbol_push, file_push, frob_extension):
9955         Likewise.
9957 2008-06-19  Kenneth Zadeck <zadeck@naturalbridge.com>
9959         * doc/rtl.texi: Updated subreg section.
9961 2008-06-19  Jakub Jelinek  <jakub@redhat.com>
9963         PR c++/36523
9964         * cgraphunit.c (cgraph_process_new_functions): Don't clear
9965         node->needed and node->reachable.
9966         * cgraphbuild.c (record_reference): Handle OMP_PARALLEL and OMP_TASK.
9967         * omp-low.c (delete_omp_context): Call finalize_task_copyfn.
9968         (expand_task_call): Don't call expand_task_copyfn.
9969         (expand_task_copyfn): Renamed to...
9970         (finalize_task_copyfn): ... this.
9972 2008-06-19  Jan Hubicka  <jh@suse.cz>
9974         * builtins.c (expand_builtin_nonlocal_goto): Stabilize r_sp before
9975         clobbering framepointer.
9977 2008-06-19  Jan Hubicka  <jh@suse.cz>
9979         * tree-optimize.c (execute_early_local_optimizations): Set
9980         cgraph_state only at first invocation.
9982 2008-06-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9984         * system.h (-Wc++-compat): Activate as a warning, no an error.
9986 2008-06-19  Uros Bizjak  <ubizjak@gmail.com>
9988         * config/i386/i386.md (*jcc_fused_1): Use ASM_COMMENT_START
9989         instead of "#" in insn asm template.
9990         (*jcc_fused_2): Ditto.
9992 2008-06-19  Uros Bizjak  <ubizjak@gmail.com>
9994         * config/i386/i386.h (ix86_tune_indices)
9995         [X86_TUNE_FUSE_CMP_AND_BRANCH]: New.
9996         (TARGET_FUSE_CMP_AND_BRANCH): New define.
9997         * config/i386/i386.md (*jcc_fused_1): New insn pattern
9998         (*jcc_fused_2): Ditto.
9999         * config/i386/i386.c (ix86_tune_features): Add m_CORE2 to
10000         X86_TUNE_FUSE_CMP_AND_BRANCH targets.
10001         (print operand): Handle 'E' and 'e' code.
10003 2008-06-19  Anatoly Sokolov  <aesok@post.ru>
10005         * config/avr/avr.c (avr_mcu_t): Add attiny13a.
10006         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
10007         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
10009 2008-06-19  Bernhard Fischer  <aldot@gcc.gnu.org>
10011         * cgraphunit.c (cgraph_finalize_function): Remove redundant setting of
10012         node->decl.
10013         (cgraph_expand_function): Use local copy of decl.
10014         (cgraph_expand_all_functions): Remove redundant initialization of
10015         order_pos.
10016         (cgraph_optimize): Reword internal_error message.
10018 2008-06-19  Chung-Lin Tang  <ctang@marvell.com>
10020         * arm-protos.h (arm_return_in_memory): Remove public
10021         arm_return_in_memory() prototype.
10022         * arm.c (arm_return_in_memory): Add static prototype, add target
10023         hook macro, change definition and comments.
10024         * arm.h (TARGET_RETURN_IN_MEMORY): Remove.
10026 2008-06-19  Ben Elliston  <bje@au.ibm.com>
10028         * dfp.h, dfp.c, config/dfp-bit.h, config/dfp-bit.c, real.h,
10029         real.c: Remove references to IEEE 754R.
10030         * doc/install.texi (Configuration): IEEE 754R -> IEEE 754-2008.
10031         * doc/libgcc.texi (Decimal float library routines): Likewise.
10033 2008-06-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10035         * targhooks.h (struct gcc_target): New member unwind_word_mode.
10036         (default_unwind_word_mode): Add prototype.
10037         * targhooks.c (default_unwind_word_mode): New function.
10038         (default_eh_return_filter_mode): Return targetm.unwind_word_mode ()
10039         instead of word_mode.
10040         * target-def.h (TARGET_UNWIND_WORD_MODE): New macro.
10041         (TARGET_INITIALIZER): Use it.
10043         * c-common.c (handle_mode_attribute): Support "unwind_word"
10044         mode attribute.
10045         * unwind-generic.h (_Unwind_Word, _Unwind_Sword): Use it.
10047         * except.c (init_eh): Use targetm.unwind_word_mode () instead of
10048         word_mode to access SjLj_Function_Context member "data".
10049         (sjlj_emit_dispatch_table): Likewise.  Also, perform type
10050         conversion from targetm.eh_return_filter_mode () to
10051         targetm.unwind_word_mode () if they differ.
10053         * builtin-types.def (BT_UNWINDWORD): New primitive type.
10054         (BT_FN_UNWINDWORD_PTR): New function type.
10055         (BT_FN_WORD_PTR): Remove.
10056         * builtins.def (BUILT_IN_EXTEND_POINTER): Use BT_FN_UNWINDWORD_PTR.
10057         * except.c (expand_builtin_extend_pointer): Convert pointer to
10058         targetm.unwind_word_mode () instead of word_mode.
10060         * config/spu/spu-protos.h (spu_eh_return_filter_mode): Remove.
10061         * config/spu/spu.c (spu_eh_return_filter_mode): Remove.
10062         (spu_unwind_word_mode): New function.
10063         (TARGET_EH_RETURN_FILTER_MODE): Do not define.
10064         (TARGET_UNWIND_WORD_MODE): Define.
10065         * config/spu/t-spu-elf (TARGET_LIBGCC2_CFLAGS): Remove -D__word__=SI.
10067 2008-06-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10069         * config/spu/spu.c (reg_align): Remove.
10070         (regno_aligned_for_load): Also accept ARG_POINTER_REGNUM.
10071         (spu_split_load): Use regno_aligned_for_load instead of reg_align.
10072         (spu_split_store): Likewise.
10074 2008-06-18  Bernhard Fischer  <aldot@gcc.gnu.org>
10076         * gcc/tree-vn.c: Fix typo in comment.
10078 2008-06-18  Jan Hubicka  <jh@suse.cz>
10080         * cgraphunit.c (cgraph_optimize): Output debug info when doing
10081         toplevel reorder too.
10083 2008-06-18  Jan Hubicka  <jh@suse.cz>
10085         * c-opts.c (c_common_post_options): PCH is not compatible with
10086         no-unit-at-a-time.
10087         * opts.c (handle_options): Enable unit-at-a-time at O0 along with
10088         -fno-toplevel-reorder by default now.
10090 2008-06-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10092         PR documentation/30739
10093         * doc/install.texi (Prerequisites): Document dependency on awk.
10095 2008-06-18  Uros Bizjak  <ubizjak@gmail.com>
10096             Ian Lance Taylor  <iant@google.com>
10098         PR rtl-optimization/35604
10099         * jump.c (redirect_exp_1): Skip the condition of an IF_THEN_ELSE. We
10100         only want to change jump destinations, not eventual label comparisons.
10102 2008-06-16  Jan Hubicka  <jh@suse.cz>
10104         * cgraphunit.c (cgraph_expand_pending_functions): Give up at
10105         syntax errors.
10106         (cgraph_analyze_function): Likewise.
10108 2008-06-16  Jan Hubicka  <jh@suse.cz>
10110         * cgraph.h (cgraph_mark_if_needed): New function.
10111         * cgraphunit.c (cgraph_mark_if_needed): New function.
10112         * c-decl.c (duplicate_decl): Use it.
10114 2008-06-16  Jan Hubicka  <jh@suse.cz>
10116         * cgraph.c (cgraph_add_new_function): When in expansion state, do
10117         lowering.
10119 2008-06-16  Jan Hubicka  <jh@suse.cz>
10121         * tree-outof-ssa.c (pass_out_of_ssa): Do not depend on PROP_alias.
10123 2008-06-16  Daniel Jacobowitz  <dan@codesourcery.com>
10124             Kazu Hirata  <kazu@codesourcery.com>
10125             Maxim Kuvyrkov  <maxim@codesourcery.com
10127         * config.gcc (mips64el-st-linux-gnu): Use mips/st.h and mips/t-st.
10128         * config.host: Use driver-native.o and mips/x-native for mips*-linux*.
10129         * config/mips/linux.h (host_detect_local_cpu): Declare, add to
10130         EXTRA_SPEC_FUNCTIONS.
10131         (MARCH_MTUNE_NATIVE_SPECS, BASE_DRIVER_SELF_SPECS): New macros.
10132         (DRIVER_SELF_SPECS): Adjust.
10133         * config/mips/linux64.h (DRIVER_SELF_SPECS): Update.
10134         * config/mips/st.h, config/mips/t-st: New.
10135         * config/mips/driver-native.c, config/mips/x-native: New.
10136         * doc/invoke.texi (MIPS): Document 'native' value for -march and
10137         -mtune options.
10139 2008-06-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
10141         * config/mips/mips.h (ISA_HAS_CONDMOVE): Slice ISA_HAS_FP_CONDMOVE
10142         from it.
10143         (ISA_HAS_FP_CONDMOVE): New macro.
10144         (ISA_HAS_FP_MADD4_MSUB4, ISA_HAS_FP_MADD3_MSUB3): New macros.
10145         (ISA_HAS_NMADD_NMSUB): Rename to ISA_HAS_NMADD4_NMSUB4.
10146         (ISA_HAS_NMADD3_NMSUB3): New macro.
10147         * config/mips/mips.c (mips_rtx_costs): Update.
10148         * config/mips/mips.md (MOVECC): Don't use FP conditional moves when
10149         compiling for ST Loongson 2E/2F.
10150         (madd<mode>): Rename to madd4<mode>.  Update.
10151         (madd3<mode>): New pattern.
10152         (msub<mode>): Rename to msub4<mode>.  Update.
10153         (msub3<mode>): New pattern.
10154         (nmadd<mode>): Rename to nmadd4<mode>.  Update.
10155         (nmadd3<mode>): New pattern.
10156         (nmadd<mode>_fastmath): Rename to nmadd4<mode>_fastmath.  Update.
10157         (nmadd3<mode>_fastmath): New pattern.
10158         (nmsub<mode>): Rename to nmsub4<mode>.  Update.
10159         (nmsub3<mode>): New pattern.
10160         (nmsub<mode>_fastmath): Rename to nmsub4<mode>_fastmath.  Update.
10161         (nmsub3<mode>_fastmath): New pattern.
10162         (mov<SCALARF:mode>_on_<MOVECC:mode>, mov<mode>cc): Update.
10164 2008-06-18  Steven Bosscher  <steven@gcc.gnu.org>
10166         * df.h (struct df_ref): Replace 'insn' field with 'insn_info' field.
10167         (DF_REF_INSN_INFO): New.
10168         (DF_REF_INSN, DF_REF_INSN_UID): Rewrite macros using DF_REF_INSN_INFO.
10169         (DF_REF_IS_ARTIFICIAL): Artificial refs are now identified as refs
10170         with a NULL DF_REF_INSN_INFO.
10171         (DF_INSN_INFO_GET, DF_INSN_INFO_SET): Renamed from DF_INSN_GET and
10172         DF_INSN_SET.
10173         (DF_INSN_INFO_LUID, DF_INSN_INFO_DEFS, DF_INSN_INFO_USES,
10174         DF_INSN_INFO_EQ_USES): New.
10175         (DF_INSN_LUID, DF_INSN_DEFS, DF_INSN_USES, DF_INSN_EQ_USES,
10176         DF_INSN_UID_LUID, DF_INSN_UID_DEFS, DF_INSN_UID_USES,
10177         DF_INSN_UID_EQ_USES): Rewrite using DF_INSN_INFO_* macros.
10178         * df-core.c: Update comment for above changes.
10179         (df_insn_debug_regno): Use DF_INSN_INFO_GET instead of INSN_UID and
10180         DF_INSN_UID_* macros.
10181         (df_ref_debug): Check for NULL DF_REF_INSN_INFO.
10182         * df-scan.c (df_ref_record): Take a df_insn_info instead of an
10183         insn rtx.  Update all callers.
10184         (df_def_record_1, df_defs_record, df_uses_record, df_get_call_refs,
10185         df_ref_create_structure, df_insn_refs_collect): Likewise.
10186         (df_ref_equal_p): Compare DF_REF_INSN_INFO pointers for the refs.
10187         * df-problems.c (df_chain_dump): Test for non-NULL DF_REF_INSN_INFO.
10188         (df_live_bb_local_compute): Retrieve DF_INSN_INFO, use DF_INSN_INFO_*
10189         macros to access the insn refs.
10190         (df_chain_top_dump, df_chain_bottom_dump, df_byte_lr_alloc): Likewise.
10191         * fwprop.c (use_killed_between): Use DF_REF_INSN accessor macro.
10192         (all_uses_available): Retrieve DF_INSN_INFO for def_insn, and use it
10193         for accessing the refs.
10194         (try_fwprop_subst): Likewise.
10195         * ddg.c (add_cross_iteration_register_deps): Use DF_REF_INSN macro.
10196         * web.c (union_defs): Retrieve DF_INSN_INFO for def_insn, and use it
10197         for accessing the refs.
10198         * loop-invariant.c (invariant_for_use): Use DF_REF_BB macro.
10199         (check_dependencies): Use DF_INSN_INFO_GET, use DF_INSN_INFO_* macros
10200         to look at the insn refs.
10201         (record_uses): Likewise.
10202         * dce.c (deletable_insn_p): Don't tolerate artificial DEFs in this
10203         function anymore.
10204         (mark_artificial_uses): Don't mark_insn for artificial refs.
10205         (mark_reg_rependencies): Likewise.
10207         * doc/rtl.texi: Remove documentation of ADDRESSOF.
10209 2008-06-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10211         * configure: Regenerate.
10213 2008-06-17  Eric B. Weddington  <eric.weddington@atmel.com>
10215         * config/avr/avr.c (avr_mcu_t): Remove atmega32hvb.
10216         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
10217         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
10219 2008-06-17  Eric B. Weddington  <eric.weddington@atmel.com>
10221         * config/avr/avr.c (avr_mcu_t): Add attiny167.
10222         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
10223         * gcc/config/avr/t-avr (MULTILIB_MATCHES): Likewise.
10225 2008-06-17  Eric B. Weddington  <eric.weddington@atmel.com>
10227         * config/avr/avr.c (avr_mcu_t): Add atmega32u4.
10228         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
10229         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
10231 2008-06-17  Bernhard Fischer  <aldot@gcc.gnu.org>
10233         * tree-ssa-sccvn.c: Fix format of comments.
10235 2008-06-17  Bernhard Fischer  <aldot@gcc.gnu.org>
10237         * cgraph.c: Remove unneeded forward declarations of eq_node()
10238         and hash_node().
10240 2008-06-17  Steven Bosscher  <steven@gcc.gnu.org>
10242         * see.c (see_analyse_one_def): Do not look for REG_LIBCALL and
10243         REG_RETVAL notes.
10244         (see_update_relevancy): Likewise.
10245         * fwprop.c (try_fwprop_subst): Likewise.
10246         * rtlanal.c (noop_move_p): Likewise.
10247         * builtins.c (expand_buitlin_mathfn): Don't try to add REG_EQUAL
10248         notes to non-existing libcall blocks.
10249         * cse.c (cse_insn): Change prototype.  Don't update libcall notes.
10250         Remove orig_set.
10251         (cse_extended_basic_block): Don't track libcall and no-conflict notes.
10252         (dead_libcall_p): Remove.
10253         (delete_trivially_dead_insns): Don't use it.
10254         * web.c (union_defs): Remove comment about keeping nops.
10255         * gcse.c (hash_scan_insn): Don't take libcall pointers.
10256         (compute_hash_table_work): Don't track libcall notes.
10257         (do_local_cprop): Don't take libcall pointers.  Don't update
10258         libcall notes.
10259         (adjust_libcall_notes): Deleted.
10260         (local_cprop_pass): Remove stack for nested libcalls (which shouldn't
10261         ever have existed in the first place).
10262         (replace_store_insn): Don't try to remove libcall notes.
10263         * lower-subreg.c (move_libcall_note, move_retval_note): Deleted.
10264         (resolve_reg_notes): Don't call them.
10265         (resolve_simple_move): Likewise.
10266         (decompose_multiword_subregs): Remove block handling REG_RETVAL notes.
10267         Don't remove REG_RETVAL notes.
10268         * emit-rtl.c (try_split): Don't update libcall notes.
10269         (emit_copy_of_insn_after): Dito.
10270         * cselib.c (cselib_current_insn_in_libcall): Remove.
10271         (cselib_process_insn): Don't set/clear it.
10272         (new_elt_loc_list): Don't record it.
10273         (cselib_init): Don't initialize it.
10274         * cselib.c (struct elt_loc_list): Remove in_libcall field.
10275         * loop-invariant.c (find_invariant_insn): Don't look for libcall
10276         notes.
10277         * sched-deps.c (sched_analyze_insn): Don't group libcall blocks.
10278         (sched_analyze): Don't set up deps->libcall_block_tail_insn.
10279         (init_deps): Don't initialize it.
10280         * sched-int.h (struct deps): Rremove libcall_block_tail_insn field.
10281         * combine.c (delete_noop_moves): Don't update libcall notes.
10282         (can_combine_p): Remove now pointless #if 0 block.
10283         (try_combine): Remove another obsolete #if 0 block.
10284         (distribute_notes): Don't distribute libcall notes.
10285         * reg-notes.def (REG_LIBCALL, REG_RETVAL): Remove.
10286         * dce.c (libcall_dead_p): Remove.
10287         (delete_unmarked_insns): Don't handle libcall blocks.
10288         (preserve_libcall_for_dce): Remove.
10289         (prescan_insns_for_dce): Don't special-case libcall block insns.
10290         * reload1 (reload): Don't handle libcall notes.
10291         * doc/rtl.texi (REG_LIBCALL, REG_RETVAL, REG_LIBCALL_ID): Remove
10292         documentation.
10294 2008-06-16  Eric B. Weddington  <eric.weddington@atmel.com>
10296         * config/avr/avr.c (avr_mcu_t): Add atmega32c1.
10297         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
10298         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
10300 2008-06-16  Eric B. Weddington  <eric.weddington@atmel.com>
10302         * config/avr/avr.c (avr_mcu_t): Add atmega32m1.
10303         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
10304         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
10306 2008-06-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10308         * Makefile.in (FLAGS_TO_PASS): Add $(datarootdir).
10310 2008-06-16  Ira Rosen  <irar@il.ibm.com>
10312         PR tree-optimization/36493
10313         * tree-vect-transform.c (vect_create_data_ref_ptr): Remove TYPE from
10314         the arguments list. Use VECTYPE to create vector pointer.
10315         (vectorizable_store): Fail if accesses through a pointer to vectype
10316         do not alias the original memory reference operands.
10317         Call vect_create_data_ref_ptr without the removed argument.
10318         (vectorizable_load): Likewise.
10319         (vect_setup_realignment): Call vect_create_data_ref_ptr without the
10320         removed argument.
10322 2008-06-015  Andy Hutchinson  <hutchinsonandy@aim.com>
10324         PR target/36336
10325         * config/avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Add check for
10326         reg_equiv_constant.
10328 2008-06-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
10330         * config/mips/loongson2ef.md: New file.
10331         * config/mips/mips.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
10332         (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
10333         (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
10334         (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): New constants.
10335         (define_attr "cpu"): Rename loongson2e and loongson2f to loongson_2e
10336         and loongson_2f.
10337         (loongson2ef.md): New include.
10338         * config/mips/loongson.md (vec_pack_ssat_<mode>, vec_pack_usat_<mode>)
10339         (add<mode>3, paddd, ssadd<mode>3, usadd<mode>3)
10340         (loongson_and_not_<mode>, loongson_average_<mode>, loongson_eq_<mode>)
10341         (loongson_gt_<mode>, loongson_extract_halfword)
10342         (loongson_insert_halfword_0, loongson_insert_halfword_2)
10343         (loongson_insert_halfword_3, loongson_mult_add, smax<mode>3)
10344         (umax<mode>3, smin<mode>3, umin<mode>3, loongson_move_byte_mask)
10345         (umul<mode>3_highpart, smul<mode>3_highpart, loongson_smul_lowpart)
10346         (loongson_umul_word, loongson_pasubub, reduc_uplus_<mode>)
10347         (loongson_psadbh, loongson_pshufh, loongson_psll<mode>)
10348         (loongson_psra<mode>, loongson_psrl<mode>, sub<mode>3, psubd)
10349         (sssub<mode>3, ussub<mode>3, vec_interleave_high<mode>)
10350         (vec_interleave_low<mode>): Define type attribute.
10351         * config/mips/mips.c (mips_ls2): New static variable.
10352         (mips_issue_rate): Update to handle tuning for Loongson 2E/2F.
10353         (mips_ls2_init_dfa_post_cycle_insn, mips_init_dfa_post_cycle_insn)
10354         (sched_ls2_dfa_post_advance_cycle, mips_dfa_post_advance_cycle):
10355         Implement target scheduling hooks.
10356         (mips_multipass_dfa_lookahead): Update to handle tuning for
10357         Loongson 2E/2F.
10358         (mips_sched_init): Initialize data for Loongson scheduling.
10359         (mips_ls2_variable_issue): New static function.
10360         (mips_variable_issue): Update to handle tuning for Loongson 2E/2F.
10361         Add sanity check.
10362         (TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN)
10363         (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Override target hooks.
10364         * config/mips/mips.h (TUNE_LOONGSON_2EF): New macros.
10365         (ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY, ISA_HAS_HILO_INTERLOCKS):
10366         Handle ST Loongson 2E/2F cores.
10367         (CPU_UNITS_QUERY): Define macro to enable querying of DFA units.
10369 2008-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10371         * omp-low.c (extract_omp_for_data): Fix comment typo.
10372         * c.opt: Fix typo.
10374 2008-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10376         * doc/sourcebuild.texi (Config Fragments): Remove obsolete
10377         FIXME note about gcc/config.guess.
10378         * doc/options.texi (Option file format): Remove non-ASCII bytes.
10379         * doc/cpp.texi: Expand TABs, drop indentation outside examples.
10380         * doc/cppopts.texi: Likewise.
10381         * doc/extend.texi: Likewise.
10382         * doc/gcc.texi: Likewise.
10383         * doc/gccint.texi: Likewise.
10384         * doc/gcov.texi: Likewise.
10385         * doc/gty.texi: Likewise.
10386         * doc/hostconfig.texi: Likewise.
10387         * doc/install.texi: Likewise.
10388         * doc/invoke.texi: Likewise.
10389         * doc/loop.texi: Likewise.
10390         * doc/makefile.texi: Likewise.
10391         * doc/md.texi: Likewise.
10392         * doc/passes.texi: Likewise.
10393         * doc/tm.texi: Likewise.
10394         * doc/tree-ssa.texi: Likewise.
10395         * doc/trouble.texi: Likewise.
10397 2008-06-15  Mark Shinwell  <shinwell@codesourcery.com>
10398             Nathan Sidwell  <nathan@codesourcery.com>
10399             Maxim Kuvyrkov  <maxim@codesourcery.com>
10400             Richard Sandiford  <rdsandiford@googlemail.com>
10402         * config/mips/mips-modes.def: Add V8QI, V4HI and V2SI modes.
10403         * config/mips/mips-protos.h (mips_expand_vector_init): New.
10404         * config/mips/mips-ftypes.def: Add function types for Loongson-2E/2F
10405         builtins.
10406         * config/mips/mips.c (mips_split_doubleword_move): Handle new modes.
10407         (mips_hard_regno_mode_ok_p): Allow 64-bit vector modes for Loongson.
10408         (mips_vector_mode_supported_p): Add V2SImode, V4HImode and
10409         V8QImode cases.
10410         (LOONGSON_BUILTIN, LOONGSON_BUILTIN_ALIAS): New.
10411         (CODE_FOR_loongson_packsswh, CODE_FOR_loongson_packsshb,
10412         (CODE_FOR_loongson_packushb, CODE_FOR_loongson_paddw,
10413         (CODE_FOR_loongson_paddh, CODE_FOR_loongson_paddb,
10414         (CODE_FOR_loongson_paddsh, CODE_FOR_loongson_paddsb)
10415         (CODE_FOR_loongson_paddush, CODE_FOR_loongson_paddusb)
10416         (CODE_FOR_loongson_pmaxsh, CODE_FOR_loongson_pmaxub)
10417         (CODE_FOR_loongson_pminsh, CODE_FOR_loongson_pminub)
10418         (CODE_FOR_loongson_pmulhuh, CODE_FOR_loongson_pmulhh)
10419         (CODE_FOR_loongson_biadd, CODE_FOR_loongson_psubw)
10420         (CODE_FOR_loongson_psubh, CODE_FOR_loongson_psubb)
10421         (CODE_FOR_loongson_psubsh, CODE_FOR_loongson_psubsb)
10422         (CODE_FOR_loongson_psubush, CODE_FOR_loongson_psubusb)
10423         (CODE_FOR_loongson_punpckhbh, CODE_FOR_loongson_punpckhhw)
10424         (CODE_FOR_loongson_punpckhwd, CODE_FOR_loongson_punpcklbh)
10425         (CODE_FOR_loongson_punpcklhw, CODE_FOR_loongson_punpcklwd): New.
10426         (mips_builtins): Add Loongson builtins.
10427         (mips_loongson_2ef_bdesc): New.
10428         (mips_bdesc_arrays): Add mips_loongson_2ef_bdesc.
10429         (mips_builtin_vector_type): Handle unsigned versions of vector modes.
10430         (MIPS_ATYPE_UQI, MIPS_ATYPE_UDI, MIPS_ATYPE_V2SI, MIPS_ATYPE_UV2SI)
10431         (MIPS_ATYPE_V4HI, MIPS_ATYPE_UV4HI, MIPS_ATYPE_V8QI, MIPS_ATYPE_UV8QI):
10432         New.
10433         (mips_expand_vector_init): New.
10434         * config/mips/mips.h (HAVE_LOONGSON_VECTOR_MODES): New.
10435         (TARGET_CPU_CPP_BUILTINS): Define __mips_loongson_vector_rev
10436         if appropriate.
10437         * config/mips/mips.md: Add unspec numbers for Loongson
10438         builtins.  Include loongson.md.
10439         (MOVE64): Include Loongson vector modes.
10440         (SPLITF): Include Loongson vector modes.
10441         (HALFMODE): Handle Loongson vector modes.
10442         * config/mips/loongson.md: New.
10443         * config/mips/loongson.h: New.
10444         * config.gcc: Add loongson.h header for mips*-*-* targets.
10445         * doc/extend.texi (MIPS Loongson Built-in Functions): New.
10447 2008-06-14  Joseph Myers  <joseph@codesourcery.com>
10449         * config.gcc (arc-*-elf*, avr-*-*, fr30-*-elf, frv-*-elf,
10450         h8300-*-elf*, h8300-*-*, i[34567]86-*-elf*, x86_64-*-elf*,
10451         i[34567]86-*-aout*, i[34567]86-*-coff*, ia64*-*-elf*,
10452         iq2000*-*-elf*, m32r-*-elf*, m32rle-*-elf*, m32r-*-linux*,
10453         m32rle-*-linux*, m68hc11-*-*|m6811-*-*, m68hc12-*-*|m6812-*-*,
10454         m68k-*-coff*, mcore-*-elf, mcore-*-pe*, mipsisa64sr71k-*-elf*,
10455         mipsisa64sb1-*-elf* | mipsisa64sb1el-*-elf*, mips-*-elf* |
10456         mipsel-*-elf*, mips64-*-elf* | mips64el-*-elf*, mips64vr-*-elf* |
10457         mips64vrel-*-elf*, mips64orion-*-elf* | mips64orionel-*-elf*,
10458         mipstx39-*-elf* | mipstx39el-*-elf*, mn10300-*-*, pdp11-*-,
10459         powerpc-*-elf*, powerpcle-*-elf*, sh-*-elf* | sh[12346l]*-*-elf* |
10460         sh-*-symbianelf* | sh[12346l]*-*-symbianelf* | sh-*-linux* |
10461         sh[2346lbe]*-*-linux* | sh-*-netbsdelf* | shl*-*-netbsdelf* |
10462         sh5-*-netbsd* | sh5l*-*-netbsd* | sh64-*-netbsd* |
10463         sh64l*-*-netbsd*, sh-*-*, sparc-*-elf*, sparc64-*-elf*,
10464         v850e1-*-*, v850e-*-*, v850-*-*, xstormy16-*-elf, m32c-*-elf*):
10465         Remove use_fixproto=yes.
10466         (ia64*-*-hpux*): Remove comment about using fixproto.
10467         (m68k-*-uclinuxoldabi*, m68k-*-uclinux*): Remove use_fixproto=no.
10469 2008-06-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10471         * configure.ac: Update gthr-default.h lazily, to avoid unneeded
10472         library rebuilds.
10473         * configure: Regenerate.
10475 2008-06-13  Eric Botcazou  <ebotcazou@adacore.com>
10477         PR middle-end/36520
10478         * builtins.c (get_memory_rtx): Test for the presence of DECL_SIZE_UNIT
10479         before evaluating it.
10481 2008-06-13  Jakub Jelinek  <jakub@redhat.com>
10483         PR c/36507
10484         * c-decl.c (merge_decls): Don't clear DECL_EXTERNAL for
10485         nested inline functions.
10486         (start_decl, start_function): Don't invert DECL_EXTERNAL
10487         for nested inline functions.
10489 2008-06-13  Richard Sandiford  <rdsandiford@googlemail.com>
10491         * config/mips/mips.md: Remove TARGET_DEBUG_D_MODE conditions from
10492         splits that must be made for correctness.
10494 2008-06-13  Richard Sandiford  <rdsandiford@googlemail.com>
10496         * config/mips/mips.c (BUILTIN_AVAIL_NON_MIPS16): New macro.
10497         (AVAIL_NON_MIPS16): Likewise.
10498         (mips_builtin_description): Replace target_flags with a predicate.
10499         (paired_single, sb1_paired_single, mips3d, dsp, dspr2, dsp_32)
10500         (dspr2_32): New availability predicates.
10501         (MIPS_BUILTIN): New macro.
10502         (DIRECT_BUILTIN, CMP_SCALAR_BUILTINS, CMP_PS_BUILTINS)
10503         (CMP_4S_BUILTINS, MOVTF_BUILTINS, CMP_BUILTINS)
10504         (DIRECT_NO_TARGET_BUILTIN, BPOSGE_BUILTIN): Use it.
10505         Replace the TARGET_FLAGS parameters with AVAIL parameters.
10506         (mips_ps_bdesc, mips_sb1_bdesc, mips_dsp_bdesc)
10507         (mips_dsp_32only_bdesc): Merge into...
10508         (mips_builtins): ...this new array.
10509         (mips_bdesc_map, mips_bdesc_arrays): Delete.
10510         (mips_init_builtins): Update after above changes.
10511         (mips_expand_builtin_1): Merge into...
10512         (mips_expand_builtin): ...here and update after above changes.
10514 2008-06-12  Paul Brook  <paul@codesourcery.com>
10516         * longlong.h (__arm__): Define count_leading_zeros.
10517         * config/arm/lib1funcs.asm (xxh, xxl, yyh, yyl): Define.
10518         (clzsi2, clzdi2): New functions.
10519         * config/arm/bpabi-v6m.S (xxh, xxl, yyh, yyl): Remove.
10520         * config/arm/bpabi.S (xxh, xxl, yyh, yyl): Remove.
10521         * config/arm/t-strongarm-elf (LIB1ASMFUNCS): Ditto.
10522         * config/arm/t-vxworks (LIB1ASMFUNCS): Ditto.
10523         * config/arm/t-pe (LIB1ASMFUNCS): Ditto.
10524         * config/arm/t-arm-elf (LIB1ASMFUNCS): Ditto.
10525         * config/arm/t-arm-coff (LIB1ASMFUNCS): Ditto.
10526         * config/arm/t-linux (LIB1ASMFUNCS): Ditto.
10527         * config/arm/t-symbian (LIB1ASMFUNCS): Ditto.
10528         * config/arm/t-wince-pe (LIB1ASMFUNCS): Ditto.
10530 2008-06-12  Kazu Hirata  <kazu@codesourcery.com>
10532         * config/m68k/m68k.c (m68k_tune_flags): New.
10533         (override_options): Compute m68k_tune_flags.
10534         (MULL_COST, MULW_COST): Update for various variants of CFV2.
10535         * config/m68k/m68k.h (TUNE_MAC, TUNE_EMAC): New.
10537 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
10539         PR middle-end/36506
10540         * omp-low.c (expand_omp_sections): Initialize l2 to avoid bogus warning.
10542 2008-06-12  Eric Botcazou  <ebotcazou@adacore.com>
10544         * tree-inline.c (copy_body_r): Copy TREE_SIDE_EFFECTS along with
10545         TREE_THIS_VOLATILE on INDIRECT_REF nodes.
10547 2008-06-12  Eric Botcazou  <ebotcazou@adacore.com>
10549         * expr.c (store_field): Do a block copy from BLKmode to BLKmode-like.
10550         (get_inner_reference): Use BLKmode for byte-aligned BLKmode bitfields.
10552 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
10554         PR middle-end/36506
10555         * omp-low.c (expand_omp_sections): Handle #pragma omp sections with
10556         reductions.
10558 2008-06-12  Richard Guenther  <rguenther@suse.de>
10560         PR tree-optimization/36345
10561         * tree-flow.h (struct ptr_info_def): Align escape_mask,
10562         add memory_tag_needed flag.
10563         (may_alias_p): Declare.
10564         * tree-ssa-alias.c (may_alias_p): Export.
10565         (set_initial_properties): Use memory_tag_needed flag.
10566         (update_reference_counts): Likewise.
10567         (reset_alias_info): Reset memory_tag_needed flag.
10568         (create_name_tags): Check memory_tag_needed flag.
10569         (dump_points_to_info_for): Dump it.
10570         * tree-ssa-structalias.c (struct variable_info): Remove
10571         directly_dereferenced flag.
10572         (new_var_info): Do not initialize it.
10573         (process_constraint_1): Do not set it.
10574         (update_alias_info): Set is_dereferenced flag.
10575         (set_uids_in_ptset): Use may_alias_p.
10576         (set_used_smts): Check memory_tag_needed flag.
10577         (find_what_p_points_to): Likewise.  Pass is_dereferenced flag.
10578         * tree-ssa-alias.c (verify_flow_sensitive_alias_info): Check
10579         memory_tag_needed flag.
10580         * tree-ssa-alias-warnings.c (dsa_named_for): Try to recover
10581         from broken design.
10583 2008-06-12  Kai Tietz  <kai.tietz@onevision.com>
10585         * config/i386/i386.c (ix86_compute_frame_layout): Disable
10586         red zone for w64 abi.
10587         (ix86_expand_prologue): Likewise.
10588         (ix86_force_to_memory): Likewise.
10589         (ix86_free_from_memory): Likewise.
10591 2008-06-11  Edmar Wienskoski  <edmar@freescale.com>
10593         PR target/36425
10594         * config/rs6000/rs6000.c (rs6000_override_options): Set
10595         rs6000_isel conditionally to the absence of comand line override.
10596         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
10597         Remove duplicate rs6000_isel setting.
10598         * config/rs6000/eabispe.h: Ditto.
10600 2008-06-11  Richard Guenther  <rguenther@suse.de>
10602         * alias.c (get_alias_set): Use the element alias-set for arrays.
10603         (record_component_aliases): For arrays and vectors do nothing.
10604         * c-common.c (strict_aliasing_warning): Handle the cases
10605         of alias set zero explicitly.
10606         * Makefile.in (dfp.o-warn): Add -Wno-error.
10608 2008-06-11  Joseph Myers  <joseph@codesourcery.com>
10610         * config.gcc (all_defaults): Add arch_32 arch_64 cpu_32 cpu_64
10611         tune_32 tune_64.
10612         (i[34567]86-*-* | x86_64-*-*): Add arch_32 arch_64 cpu_32 cpu_64
10613         tune_32 tune_64 to supported_defaults.  Allow values not
10614         supporting 64-bit mode for arch_32, cpu_32 and tune_32 for
10615         x86_64.  Do not override cpu_32 or cpu_64 values from target name.
10616         (i[34567]86-*-linux*, i[34567]86-*-solaris2.1[0-9]*): Only default
10617         with_cpu_64 to generic for 64-bit-supporting configurations, not
10618         with_cpu.  Remove FIXMEs.
10619         * doc/install.texi (--with-cpu-32, --with-cpu-64, --with-arch-32,
10620         --with-arch-64, --with-tune-32, --with-tune-64): Document.
10621         * config/i386/i386.h (OPT_ARCH32, OPT_ARCH64): Define.
10622         (OPTION_DEFAULT_SPECS): Add tune_32, tune_64, cpu_32, cpu_64,
10623         arch_32 and arch_64.
10625 2008-06-11  Eric Botcazou  <ebotcazou@adacore.com>
10626             Olivier Hainque  <hainque@adacore.com>
10628         * builtins.c (get_memory_rtx): Accept byte-addressable bitfields.
10629         Use DECL_SIZE_UNIT to retrieve the size of the field.
10631 2008-06-11  Joseph Myers  <joseph@codesourcery.com>
10633         * config/arm/arm.c (arm_init_neon_builtins): Move initialization
10634         with function calls after declarations.  Lay out
10635         neon_float_type_node before further use.
10637 2008-06-11  Richard Guenther  <rguenther@suse.de>
10639         * tree-flow.h (may_point_to_global_var): Declare.
10640         * tree-ssa-alias.c (may_point_to_global_var): New function.
10641         * tree-ssa-sink.c (is_hidden_global_store): Use it.
10643 2008-06-10  Kazu Hirata  <kazu@codesourcery.com>
10645         * configure.ac: Teach that fido supports .debug_line.
10646         * configure: Regenerate.
10648 2008-06-10  Tom Tromey  <tromey@redhat.com>
10650         * c-lex.c (fe_file_change): Pass SOURCE_LINE to start_source_file
10651         debug hook.
10653 2008-06-10  Joseph Myers  <joseph@codesourcery.com>
10655         * dfp.c (WORDS_BIGENDIAN): Define to 0 if not defined.
10656         (encode_decimal64, decode_decimal64, encode_decimal128,
10657         decode_decimal128): Reverse order of 32-bit parts of value if host
10658         and target endianness differ.
10660 2008-06-10  Vinodha Ramasamy  <vinodha@google.com>
10662         * value_prob.c (tree_divmod_fixed_value_transform): Use gcov_type.
10663         Avoid division by 0.
10664         (tree_mod_pow2_value_transform): Likewise.
10665         (tree_ic_transform): Likewise.
10666         (tree_stringops_transform): Likewise.
10667         (tree_mod_subtract_transform): Likewise.
10668         * tree-inline-c (copy_bb): Corrected int type to gcov_type.
10669         (copy_edges_for_bb): Likewise.
10670         (initialize_cfun): Likewise.
10672 2008-06-10  Uros Bizjak  <ubizjak@gmail.com>
10674         * config/i386/i386.md (*btdi_rex64): Change operand 1 predicate to
10675         nonmemory_operand. Add "N" operand constraint.
10676         (*btsi): Ditto.
10677         (*jcc_btdi_mask_rex64): New instruction and split pattern.
10678         (*jcc_btsi_mask): Ditto.
10679         (*jcc_btsi_mask_1): Ditto.
10681 2008-06-10  Joseph Myers  <joseph@codesourcery.com>
10683         * config/rs6000/rs6000.c (build_opaque_vector_type): Set
10684         TYPE_CANONICAL for copied element type.
10686 2008-06-10  Uros Bizjak  <ubizjak@gmail.com>
10688         PR target/36473
10689         * config/i386/i386.c (ix86_tune_features) [TUNE_USE_BT]:
10690         Add m_CORE2 and m_GENERIC.
10691         * config/i386/predicates.md (bt_comparison_operator): New predicate.
10692         * config/i386/i386.md (*btdi_rex64): New instruction pattern.
10693         (*btsi): Ditto.
10694         (*jcc_btdi_rex64): New instruction and split pattern.
10695         (*jcc_btsi): Ditto.
10696         (*jcc_btsi_1): Ditto.
10697         (*btsq): Fix Intel asm dialect operand order.
10698         (*btrq): Ditto.
10699         (*btcq): Ditto.
10701 2008-06-09  Andy Hutchinson  <hutchinsonandy@aim.com>
10703         PR middle-end/36447
10704         * simplify-rtx.c (simplify_subreg): Add check for shift count
10705         greater than size.
10707 2008-06-09  Richard Sandiford  <rdsandiford@googlemail.com>
10709         * doc/md.texi: Synchronize with later constraints.md change.
10710         * longlong.h (umul_ppmm): Replace the MIPS asm implementation
10711         with a C implementation.
10712         * config/mips/mips.c (mips_legitimize_move): Remove MFHI and
10713         MFLO handling.
10714         (mips_subword): Assume TImode for CONST_INTs if TARGET_64BIT.
10715         (mips_split_doubleword_move): Use special MTHI and MFHI instructions
10716         when moving to and from MD_REGNUM.
10717         (mips_output_move): Don't handle moves from GPRs to HI_REGNUM.
10718         Handle moves from LO_REGNUM to GPRs using MFLO, MACC or DMACC.
10719         Handle byte and halfword moves.
10720         (mips_hard_regno_mode_ok_p): Handle MD_REGS and DSP_ACC_REGS
10721         separately.
10722         * config/mips/constraints.md (h): Turn into NO_REGS.
10723         (l, x): Update documentation.
10724         * config/mips/mips.md (UNSPEC_MFHILO): Delete.
10725         (UNSPEC_MFHI, UNSPEC_MTHI, UNSPEC_SET_HILO): New.
10726         (UNSPEC_TLS_LDM, UNSPEC_TLS_GET_TP): Renumber.
10727         (HILO): New mode iterator.
10728         (MOVE128): Add TI.
10729         (any_div): New code iterator.
10730         (u): Extend code attribute to div and udiv.
10731         (*add<mode>3_mips16, *movdi_64bit_mips16, *movsi_mips16): Use
10732         d_operand in the splitters.  Remove redundant CONST_INT checks.
10733         (mulsi3_mult3, mul<mode>3_internal, mul<mode>3_r4000, *mul_acc_si)
10734         (*macc, *msac, *msac_using_macc, *macc2, *msac2, *mul_sub_si)
10735         (*muls): Remove "=h" clobbers.  Adjust peephole2s and define_splits
10736         accordingly, using normal moves instead of unspecs to move LO into
10737         a GPR.  Use d_operand and lo_operand instead of *_REG_P checks.
10738         (<u>mulsidi3): Handle expansion in C code.
10739         (<u>mulsidi3_32bit_internal): Rename to...
10740         (<u>mulsidi3_32bit): ...this.
10741         (<u>mulsidi3_32bit_r4000): Fix insn separator.
10742         (*<u>mulsidi3_64bit): Rename to...
10743         (<u>mulsidi3_64bit): ...this.  Combine DImode "=h" and "=l" clobbers
10744         into a TImode "=x" clobber.  In the split, use an UNSPEC_SET_HILO
10745         to set LO and HI to the multiplication result.  Use a normal move
10746         for MFLO and an unspec for MFHI.
10747         (*<u>mulsidi3_64bit_parts): Replace with...
10748         (<u>mulsidi3_64bit_hilo): ...this new instruction.
10749         (<su>mulsi3_highpart): Extend to TARGET_FIX_R4000.
10750         (<su>mulsi3_highpart_internal): Turn into a define_insn_and_split
10751         and extend it to TARGET_FIX_R4000.  Store the destination in a GPR
10752         instead of HI.  Split the instruction into a separate multiplication
10753         and MFHI if !TARGET_FIX_R4000.
10754         (<su>muldi3_highpart): Likewise.
10755         (<su>mulsi3_highpart_mulhi_internal): Remove the first alternative
10756         and the "=h" clobber.
10757         (*<su>mulsi3_highpart_neg_mulhi_internal): Likewise.
10758         (<u>mulditi3): New expander.
10759         (<u>mulditi3_internal, <u>mulditi3_r4000): New patterns.
10760         (madsi): Remove "=h" clobber.
10761         (divmod<mode>4, udivmod<mode>4): Turn into define_insn_and_splits.
10762         Force the modulus result to be a GPR and split the instruction into
10763         a division followed by an MFHI after reload.
10764         (<u>divmod<GPR:mode>4_hilo_<HILO:mode>): New instruction.
10765         (*lea_high64): Use d_operand in the define_peephole2.  Likewise
10766         the MIPS16 HIGH define_split.
10767         (*movdi_32bit, *movdi_gp32_fp64, *movdi_32bit_mips16): Change type
10768         of acc<->gpr moves to "multi".
10769         (*movdi_64bit): Replace the single "x" alternative with
10770         alternatives for moving into and out of "a".
10771         (*movhi_internal, *movqi_internal): Likewise.  Use mips_output_move.
10772         (*movsi_internal): Extend the "d<-A" alternative to "d<-a".
10773         (*movdi_64bit_mips16, *movsi_mips16): Add d<-a alternatives.
10774         Use d_operand in the splitters.  Remove redundant CONST_INT checks.
10775         (*movhi_mips16, *movqi_mips16): Likewise.  Use mips_output_move.
10776         (movti): New expander.
10777         (*movti, *movti_mips16): New insns.
10778         (mfhilo_<mode>, *mfhilo_<mode>, *mfhilo_<mode>_macc): Delete.
10779         (mfhi<GPR:mode>_<HILO:mode>): New pattern.
10780         (mthi<GPR:mode>_<HILO:mode>): Likewise.
10781         * config/mips/predicates.md (fpr_operand): Delete.
10782         (d_operand): New predicate.
10784 2008-06-09  Michael Meissner  <michael.meissner@amd.com>
10786         * config.gcc (i[34567]86-*-*): Put test in quotes to prevent
10787         failure on some Bourne shells.
10788         (x86_64-*-*): Ditto.
10790 2008-06-09  Kai Tietz  <kai.tietz@onevision.com>
10792         * config/i386/cygming.h (TARGET_SUBTARGET64_DEFAULT): New.
10794 2008-06-09  Eric Botcazou  <ebotcazou@libertysurf.fr>
10796         * doc/install.texi (*-*-solaris2*): Remove obsolete contents.
10797         (sparc-sun-solaris2*): Likewise.
10799 2008-06-09  Arnaud Charlet  <charlet@adacore.com
10801         * doc/install.texi: Update requirements to build the Ada compiler.
10803 2008-06-08  Steven Bosscher  <stevenb.gcc@gmail.com>
10805         * df-scan.c (struct df_scan_problem_data): Remove the
10806         mw_link_pool alloc pool.
10807         (df_scan_free_internal): Don't free it.
10808         (df_scan_alloc): Don't allocate it.
10809         * df.h (struct df_link): Update comment.
10811 2008-06-08  Nathan Sidwell  <nathan@codesourcery.com>
10813         * except.h: Correct checks for when SJLJ exceptions must be used.
10815 2008-06-08  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
10817         * doc/invoke.texi (Wenum-compare): Mention that it is enabled by
10818         default.
10820 2008-06-08  Joseph Myers  <joseph@codesourcery.com>
10822         PR tree-optimization/36218
10823         * configure.ac: Use LDFLAGS="${LDFLAGS_FOR_BUILD}" when running
10824         configure for the build system.
10825         (BUILD_LDFLAGS): Define.
10826         * configure: Regenerate.
10827         * Makefile.in (BUILD_LDFLAGS): Define to @BUILD_LDFLAGS@.
10829 2008-07-08  Anatoly Sokolov  <aesok@post.ru>
10831         PR target/36424
10832         * config/avr/avr.h (HARD_REGNO_RENAME_OK): Define.
10833         * config/avr/avr.c (avr_hard_regno_rename_ok): New function.
10834         * config/avr/avr-protos.h (avr_hard_regno_rename_ok): New prototype.
10836 2008-06-07  Danny Smith  <dannysmith@users.sourceforge.net>
10838         * config/i386/cygming.h (MAYBE_UWIN_CPP_BUILTINS): Remove.
10840 2008-06-07  Joseph Myers  <joseph@codesourcery.com>
10842         * config.gcc (Obsolete configurations): Remove list of
10843         configurations.
10844         (Unsupported targets list): Add *-*-linux*aout*, *-*-linux*libc1*,
10845         *-*-solaris2.[0-6], *-*-solaris2.[0-6].*, *-*-sysv*.  Remove other
10846         targets matched by those patterns.
10847         (strongarm*-*-*, ep9312*-*-*, xscale-*-*, parisc*-*-*,
10848         m680[012]0-*-*, *-*-linux*libc1*, *-*-linux*aout*,
10849         alpha*-*-unicosmk*, strongarm*-*-freebsd*, ep9312-*-elf,
10850         arm*-*-kaos*, cris-*-aout, parisc*64*-*-linux*, parisc*-*-linux*,
10851         hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
10852         i[34567]86-sequent-ptx4*, i[34567]86-sequent-sysv4*,
10853         i[34567]86-*-beoself*, i[34567]86-*-beos*, i[34567]86-*-sco3.2v5*,
10854         i[34567]86-*-sysv5*, i[34567]86-*-sysv4*, i[34567]86-*-uwin*,
10855         i[34567]86-*-kaos*, m68020-*-elf*, m68010-*-netbsdelf*,
10856         mips-wrs-windiss, mt-*-elf, powerpc-*-beos*, powerpc-*-chorusos*,
10857         powerpc-wrs-windiss*, powerpcle-*-sysv*, powerpc-*-kaos*,
10858         powerpcle-*-kaos*, sh*-*-kaos*, sparc-*-sysv4*, strongarm-*-elf*,
10859         strongarm-*-pe, strongarm-*-kaos*, vax-*-bsd*, vax-*-sysv*,
10860         vax-*-ultrix*, xscale-*-elf, xscale-*-coff,
10861         i[34567]86-*-linux*aout*, i[34567]86-*-linux*libc1): Remove.
10862         Make code for Solaris 7 and greater unconditional for Solaris.
10863         (ep9312-*-*, parisc1*, m680[012]0-*-*, parisc*-*-*, mt-*-*):
10864         Remove --with-* handling.
10865         * config/rs6000/sysv4.h (-mwindiss): Remove from all specs.
10866         (LIB_WINDISS_SPEC, CPP_OS_WINDISS_SPEC, STARTFILE_WINDISS_SPEC,
10867         ENDFILE_WINDISS_SPEC, LINK_START_WINDISS_SPEC,
10868         LINK_OS_WINDISS_SPEC): Remove.
10869         * config/rs6000/sysv4.opt (mwindiss): Remove.
10870         * configure.ac (strongarm*-*-*, xscale*-*-*): Remove.
10871         * configure: Regenerate.
10872         * doc/cpp.texi: Don't mention BeOS.
10873         * doc/extend.texi (interrupt): Don't mention MS1.
10874         * doc/install.texi: (i386-@var{any}-sysv, m68k-bull-sysv,
10875         m68k-hp-hpux, m68000-hp-hpux, m68000-att-sysv,
10876         alphaev5-cray-unicosmk*, xscale-*-*, i?86-*-linux*aout,
10877         i?86-*-sco3.2v5*, i?86-*-udk, m68k-hp-hpux, powerpc-*-sysv4,
10878         powerpc-*-sysv4, powerpcle-*-sysv4, *-*-sysv*, vax-dec-ultrix):
10879         Remove.
10880         * doc/invoke.texi (MT Options): Remove.
10881         (-mwindiss): Remove.
10882         (CRIS Options): Remove cris-axis-aout references.
10883         (HPPA Options): Don't mention hppa1.1-*-pro.
10884         * doc/md.texi: (MorphoTech family): Remove.
10885         * libgcc2.c: Don't handle UWIN.
10886         * config/alpha/t-unicosmk: Remove.
10887         * config/alpha/unicosmk.h: Remove.
10888         * config/arm/kaos-arm.h: Remove.
10889         * config/arm/kaos-strongarm.h: Remove.
10890         * config/arm/strongarm-coff.h: Remove.
10891         * config/arm/strongarm-elf.h: Remove.
10892         * config/arm/strongarm-pe.h: Remove.
10893         * config/arm/t-strongarm-pe: Remove.
10894         * config/arm/t-xscale-coff: Remove.
10895         * config/arm/t-xscale-elf: Remove.
10896         * config/arm/xscale-coff.h: Remove.
10897         * config/arm/xscale-elf.h: Remove.
10898         * config/chorus.h: Remove.
10899         * config/cris/aout.h: Remove.
10900         * config/cris/aout.opt: Remove.
10901         * config/cris/t-aout: Remove.
10902         * config/i386/beos-elf.h: Remove.
10903         * config/i386/kaos-i386.h: Remove.
10904         * config/i386/ptx4-i.h: Remove.
10905         * config/i386/sco5.h: Remove.
10906         * config/i386/sco5.opt: Remove.
10907         * config/i386/sysv4-cpp.h: Remove.
10908         * config/i386/sysv5.h: Remove.
10909         * config/i386/t-beos: Remove.
10910         * config/i386/t-sco5: Remove.
10911         * config/i386/t-uwin: Remove.
10912         * config/i386/uwin.asm: Remove.
10913         * config/i386/uwin.h: Remove.
10914         * config/kaos.h: Remove.
10915         * config/mips/windiss.h: Remove.
10916         * config/mt: Remove directory.
10917         * config/pa/pa-osf.h: Remove.
10918         * config/pa/pa-pro-end.h: Remove.
10919         * config/pa/t-pro: Remove.
10920         * config/ptx4.h: Remove.
10921         * config/rs6000/beos.h: Remove.
10922         * config/rs6000/kaos-ppc.h: Remove.
10923         * config/rs6000/t-beos: Remove.
10924         * config/rs6000/windiss.h: Remove.
10925         * config/sh/kaos-sh.h: Remove.
10926         * config/sol2-6.h: Remove.
10927         * config/sparc/sol26-sld.h: Remove.
10928         * config/sparc/sysv4-only.h: Remove.
10929         * config/vax/bsd.h: Remove.
10930         * config/vax/t-memfuncs: Remove.
10931         * config/vax/ultrix.h: Remove.
10932         * config/vax/vaxv.h: Remove.
10933         * config/windiss.h: Remove.
10935 2008-06-06  Uros Bizjak <ubizjak@gmail.com>
10937         PR rtl-optimization/36438
10938         * cse.c (fold_rtx) [ASHIFT, LSHIFTRT, ASHIFTRT]: Break out early
10939         for vector shifts with constant scalar shift operands.
10941 2008-06-06  Sandip Matte  <sandip@rmicorp.com>
10943         * doc/invoke.texi: Document -march=xlr.
10944         * config/mips/xlr.md: New file.
10945         * config/mips/mips.md: Include it.
10946         (cpu): Add "xlr".
10947         * config/mips/mips.h (PROCESSOR_XLR): New processor_type.
10948         * config/mips/mips.c (mips_cpu_info_table): Add an XLR entry.
10949         (mips_rtx_cost_data): Likewise.
10951 2008-06-06  Nathan Froyd  <froydnj@codesourcery.com>
10953         * config/rs6000/rs6000.c (rs6000_mode_dependent_address): Remove
10954         PRE_INC and PRE_DEC cases.
10956 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
10958         PR rtl-optimization/36419
10959         * except.c (expand_resx_expr): Call do_pending_stack_adjust () before
10960         the emitting jump insn.
10962         PR target/36362
10963         * gimplify.c (gimplify_expr) <case TRUTH_NOT_EXPR>: If *expr_p type
10964         is not bool, boolify the whole *expr_p and convert to the desired type.
10966 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
10968         * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP value to 200805.
10969         * langhooks.h (struct lang_hooks_for_decls): Add omp_finish_clause.
10970         Add omp_private_outer_ref hook, add another argument to
10971         omp_clause_default_ctor hook.
10972         * langhooks-def.h (LANG_HOOKS_OMP_FINISH_CLAUSE): Define.
10973         (LANG_HOOKS_OMP_PRIVATE_OUTER_REF): Define.
10974         (LANG_HOOKS_OMP_CLAUSE_DEFAULT_CTOR): Change to
10975         hook_tree_tree_tree_tree_null.
10976         (LANG_HOOKS_DECLS): Add LANG_HOOKS_OMP_FINISH_CLAUSE and
10977         LANG_HOOKS_OMP_PRIVATE_OUTER_REF.
10978         * hooks.c (hook_tree_tree_tree_tree_null): New function.
10979         * hooks.h (hook_tree_tree_tree_tree_null): New prototype.
10980         * tree.def (OMP_TASK): New tree code.
10981         * tree.h (OMP_TASK_COPYFN, OMP_TASK_ARG_SIZE, OMP_TASK_ARG_ALIGN,
10982         OMP_CLAUSE_PRIVATE_OUTER_REF, OMP_CLAUSE_LASTPRIVATE_STMT,
10983         OMP_CLAUSE_COLLAPSE_ITERVAR, OMP_CLAUSE_COLLAPSE_COUNT,
10984         OMP_TASKREG_CHECK, OMP_TASKREG_BODY, OMP_TASKREG_CLAUSES,
10985         OMP_TASKREG_FN, OMP_TASKREG_DATA_ARG, OMP_TASK_BODY,
10986         OMP_TASK_CLAUSES, OMP_TASK_FN, OMP_TASK_DATA_ARG,
10987         OMP_CLAUSE_COLLAPSE_EXPR): Define.
10988         (enum omp_clause_default_kind): Add OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.
10989         (OMP_DIRECTIVE_P): Add OMP_TASK.
10990         (OMP_CLAUSE_COLLAPSE, OMP_CLAUSE_UNTIED): New clause codes.
10991         (OMP_CLAUSE_SCHEDULE_AUTO): New schedule kind.
10992         * tree.c (omp_clause_code_name): Add OMP_CLAUSE_COLLAPSE
10993         and OMP_CLAUSE_UNTIED entries.
10994         (omp_clause_num_ops): Likewise.  Increase OMP_CLAUSE_LASTPRIVATE
10995         num_ops to 2.
10996         (walk_tree_1): Handle OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
10997         Walk OMP_CLAUSE_LASTPRIVATE_STMT.
10998         * tree-pretty-print.c (dump_omp_clause): Handle
10999         OMP_CLAUSE_SCHEDULE_AUTO, OMP_CLAUSE_UNTIED, OMP_CLAUSE_COLLAPSE,
11000         OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.
11001         (dump_generic_node): Handle OMP_TASK and collapsed OMP_FOR loops.
11002         * c-omp.c (c_finish_omp_for): Allow pointer iterators.  Remove
11003         warning about unsigned iterators.  Change decl/init/cond/incr
11004         arguments to TREE_VECs, check arguments for all collapsed loops.
11005         (c_finish_omp_taskwait): New function.
11006         (c_split_parallel_clauses): Put OMP_CLAUSE_COLLAPSE clause to
11007         ws_clauses.
11008         * c-parser.c (c_parser_omp_for_loop): Parse collapsed loops.  Call
11009         default_function_array_conversion on init.  Add par_clauses argument.
11010         If decl is present in parallel's lastprivate clause, change it to
11011         shared and add lastprivate clause for decl to OMP_FOR_CLAUSES.
11012         Add clauses argument, on success set OMP_FOR_CLAUSES to it.  Look up
11013         collapse count in clauses.
11014         (c_parser_omp_for, c_parser_omp_parallel): Adjust
11015         c_parser_omp_for_loop callers.
11016         (OMP_FOR_CLAUSE_MASK): Add 1 << PRAGMA_OMP_CLAUSE_COLLAPSE.
11017         (c_parser_pragma): Handle PRAGMA_OMP_TASKWAIT.
11018         (c_parser_omp_clause_name): Handle collapse and untied clauses.
11019         (c_parser_omp_clause_collapse, c_parser_omp_clause_untied): New
11020         functions.
11021         (c_parser_omp_clause_schedule): Handle schedule(auto).
11022         Include correct location in the error message.
11023         (c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_COLLAPSE
11024         and PRAGMA_OMP_CLAUSE_UNTIED.
11025         (OMP_TASK_CLAUSE_MASK): Define.
11026         (c_parser_omp_task, c_parser_omp_taskwait): New functions.
11027         (c_parser_omp_construct): Handle PRAGMA_OMP_TASK.
11028         * tree-nested.c (convert_nonlocal_omp_clauses,
11029         convert_local_omp_clauses): Handle OMP_CLAUSE_LASTPRIVATE_STMT,
11030         OMP_CLAUSE_REDUCTION_INIT, OMP_CLAUSE_REDUCTION_MERGE,
11031         OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
11032         Don't handle TREE_STATIC or DECL_EXTERNAL VAR_DECLs in
11033         OMP_CLAUSE_DECL.
11034         (conver_nonlocal_reference, convert_local_reference,
11035         convert_call_expr): Handle OMP_TASK the same as OMP_PARALLEL.  Use
11036         OMP_TASKREG_* macros rather than OMP_PARALLEL_*.
11037         (walk_omp_for): Adjust for OMP_FOR_{INIT,COND,INCR} changes.
11038         * tree-gimple.c (is_gimple_stmt): Handle OMP_TASK.
11039         * c-tree.h (c_begin_omp_task, c_finish_omp_task): New prototypes.
11040         * c-pragma.h (PRAGMA_OMP_TASK, PRAGMA_OMP_TASKWAIT): New.
11041         (PRAGMA_OMP_CLAUSE_COLLAPSE, PRAGMA_OMP_CLAUSE_UNTIED): New.
11042         * c-typeck.c (c_begin_omp_task, c_finish_omp_task): New functions.
11043         (c_finish_omp_clauses): Handle OMP_CLAUSE_COLLAPSE and
11044         OMP_CLAUSE_UNTIED.
11045         * c-pragma.c (init_pragma): Init omp task and omp taskwait pragmas.
11046         * c-common.h (c_finish_omp_taskwait): New prototype.
11047         * gimple-low.c (lower_stmt): Handle OMP_TASK.
11048         * tree-parloops.c (create_parallel_loop): Create 1 entry
11049         vectors for OMP_FOR_{INIT,COND,INCR}.
11050         * tree-cfg.c (remove_useless_stmts_1): Handle OMP_* containers.
11051         (make_edges): Handle OMP_TASK.
11052         * tree-ssa-operands.c (get_expr_operands): Handle collapsed OMP_FOR
11053         loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
11054         * tree-inline.c (estimate_num_insns_1): Handle OMP_TASK.
11055         * builtin-types.def (BT_PTR_ULONGLONG, BT_PTR_FN_VOID_PTR_PTR,
11056         BT_FN_BOOL_ULONGLONGPTR_ULONGLONGPTR,
11057         BT_FN_BOOL_BOOL_ULL_ULL_ULL_ULLPTR_ULLPTR,
11058         BT_FN_BOOL_BOOL_ULL_ULL_ULL_ULL_ULLPTR_ULLPTR,
11059         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT): New.
11060         * omp-builtins.def (BUILT_IN_GOMP_TASK, BUILT_IN_GOMP_TASKWAIT,
11061         BUILT_IN_GOMP_LOOP_ULL_STATIC_START,
11062         BUILT_IN_GOMP_LOOP_ULL_DYNAMIC_START,
11063         BUILT_IN_GOMP_LOOP_ULL_GUIDED_START,
11064         BUILT_IN_GOMP_LOOP_ULL_RUNTIME_START,
11065         BUILT_IN_GOMP_LOOP_ULL_ORDERED_STATIC_START,
11066         BUILT_IN_GOMP_LOOP_ULL_ORDERED_DYNAMIC_START,
11067         BUILT_IN_GOMP_LOOP_ULL_ORDERED_GUIDED_START,
11068         BUILT_IN_GOMP_LOOP_ULL_ORDERED_RUNTIME_START,
11069         BUILT_IN_GOMP_LOOP_ULL_STATIC_NEXT,
11070         BUILT_IN_GOMP_LOOP_ULL_DYNAMIC_NEXT,
11071         BUILT_IN_GOMP_LOOP_ULL_GUIDED_NEXT,
11072         BUILT_IN_GOMP_LOOP_ULL_RUNTIME_NEXT,
11073         BUILT_IN_GOMP_LOOP_ULL_ORDERED_STATIC_NEXT,
11074         BUILT_IN_GOMP_LOOP_ULL_ORDERED_DYNAMIC_NEXT,
11075         BUILT_IN_GOMP_LOOP_ULL_ORDERED_GUIDED_NEXT,
11076         BUILT_IN_GOMP_LOOP_ULL_ORDERED_RUNTIME_NEXT): New builtins.
11077         * gimplify.c (gimplify_omp_for): Allow pointer type for decl,
11078         handle POINTER_PLUS_EXPR.  If loop counter has been replaced and
11079         original iterator is present in lastprivate clause or if
11080         collapse > 1, set OMP_CLAUSE_LASTPRIVATE_STMT.  Handle collapsed
11081         OMP_FOR loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
11082         (gimplify_expr): Handle OMP_SECTIONS_SWITCH and OMP_TASK.
11083         (enum gimplify_omp_var_data): Add GOVD_PRIVATE_OUTER_REF.
11084         (omp_notice_variable): Set GOVD_PRIVATE_OUTER_REF if needed,
11085         if it is set, lookup var in outer contexts too.  Handle
11086         OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.  Handle vars that are supposed
11087         to be implicitly determined firstprivate for task regions.
11088         (gimplify_scan_omp_clauses): Set GOVD_PRIVATE_OUTER_REF if needed,
11089         if it is set, lookup var in outer contexts too.  Set
11090         OMP_CLAUSE_PRIVATE_OUTER_REF if GOVD_PRIVATE_OUTER_REF is set.
11091         Handle OMP_CLAUSE_LASTPRIVATE_STMT, OMP_CLAUSE_COLLAPSE and
11092         OMP_CLAUSE_UNTIED.  Take region_type as last argument
11093         instead of in_parallel and in_combined_parallel.
11094         (gimplify_omp_parallel, gimplify_omp_for, gimplify_omp_workshare):
11095         Adjust callers.
11096         (gimplify_adjust_omp_clauses_1): Set OMP_CLAUSE_PRIVATE_OUTER_REF if
11097         GOVD_PRIVATE_OUTER_REF is set.  Call omp_finish_clause langhook.
11098         (new_omp_context): Set default_kind to
11099         OMP_CLAUSE_DEFAULT_UNSPECIFIED for OMP_TASK regions.
11100         (omp_region_type): New enum.
11101         (struct gimplify_omp_ctx): Remove is_parallel and is_combined_parallel
11102         fields, add region_type.
11103         (new_omp_context): Take region_type as argument instead of is_parallel
11104         and is_combined_parallel.
11105         (gimple_add_tmp_var, omp_firstprivatize_variable, omp_notice_variable,
11106         omp_is_private, omp_check_private): Adjust ctx->is_parallel and
11107         ctx->is_combined_parallel checks.
11108         (gimplify_omp_task): New function.
11109         (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_COLLAPSE and
11110         OMP_CLAUSE_UNTIED.
11111         * omp-low.c (extract_omp_for_data): Use schedule(static)
11112         for schedule(auto).  Handle pointer and unsigned iterators.
11113         Compute fd->iter_type.  Handle POINTER_PLUS_EXPR increments.
11114         Add loops argument.  Extract data for collapsed OMP_FOR loops.
11115         (expand_parallel_call): Assert sched_kind isn't auto,
11116         map runtime schedule to index 3.
11117         (struct omp_for_data_loop): New type.
11118         (struct omp_for_data): Remove v, n1, n2, step, cond_code fields.
11119         Add loop, loops, collapse and iter_type fields.
11120         (workshare_safe_to_combine_p): Disallow combined for if
11121         iter_type is unsigned long long.  Don't combine collapse > 1 loops
11122         unless all bounds and steps are constant.  Adjust extract_omp_for_data
11123         caller.
11124         (expand_omp_for_generic): Handle pointer, unsigned and long long
11125         iterators.  Handle collapsed OMP_FOR loops.  Adjust
11126         for struct omp_for_data changes.  If libgomp function doesn't return
11127         boolean_type_node, add comparison of the return value with 0.
11128         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk): Handle
11129         pointer, unsigned and long long iterators.  Adjust for struct
11130         omp_for_data changes.
11131         (expand_omp_for): Assert sched_kind isn't auto, map runtime schedule
11132         to index 3.  Use GOMP_loop_ull*{start,next} if iter_type is
11133         unsigned long long.  Allocate loops array, pass it to
11134         extract_omp_for_data.  For collapse > 1 loops use always
11135         expand_omp_for_generic.
11136         (omp_context): Add sfield_map and srecord_type fields.
11137         (is_task_ctx, lookup_sfield): New functions.
11138         (use_pointer_for_field): Use is_task_ctx helper.  Change first
11139         argument's type from const_tree to tree.  Clarify comment.
11140         In OMP_TASK disallow copy-in/out sharing.
11141         (build_sender_ref): Call lookup_sfield instead of lookup_field.
11142         (install_var_field): Add mask argument.  Populate both record_type
11143         and srecord_type if needed.
11144         (delete_omp_context): Destroy sfield_map, clear DECL_ABSTRACT_ORIGIN
11145         in srecord_type.
11146         (fixup_child_record_type): Also remap FIELD_DECL's DECL_SIZE{,_UNIT}
11147         and DECL_FIELD_OFFSET.
11148         (scan_sharing_clauses): Adjust install_var_field callers.  For
11149         firstprivate clauses on explicit tasks allocate the var by value in
11150         record_type unconditionally, rather than by reference.
11151         Handle OMP_CLAUSE_PRIVATE_OUTER_REF.  Scan OMP_CLAUSE_LASTPRIVATE_STMT.
11152         Use is_taskreg_ctx instead of is_parallel_ctx.
11153         Handle OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
11154         (create_omp_child_function_name): Add task_copy argument, use
11155         *_omp_cpyfn* names if it is true.
11156         (create_omp_child_function): Add task_copy argument, if true create
11157         *_omp_cpyfn* helper function.
11158         (scan_omp_parallel): Adjust create_omp_child_function callers.
11159         Rename parallel_nesting_level to taskreg_nesting_level.
11160         (scan_omp_task): New function.
11161         (lower_rec_input_clauses): Don't run constructors for firstprivate
11162         explicit task vars which are initialized by *_omp_cpyfn*.
11163         Pass outer var ref to omp_clause_default_ctor hook if
11164         OMP_CLAUSE_PRIVATE_OUTER_REF or OMP_CLAUSE_LASTPRIVATE.
11165         Replace OMP_CLAUSE_REDUCTION_PLACEHOLDER decls in
11166         OMP_CLAUSE_REDUCTION_INIT.
11167         (lower_send_clauses): Clear DECL_ABSTRACT_ORIGIN if in task to
11168         avoid duplicate setting of fields.  Handle
11169         OMP_CLAUSE_PRIVATE_OUTER_REF.
11170         (lower_send_shared_vars): Use srecord_type if non-NULL.  Don't
11171         copy-out if TREE_READONLY, only copy-in.
11172         (expand_task_copyfn): New function.
11173         (expand_task_call): New function.
11174         (struct omp_taskcopy_context): New type.
11175         (task_copyfn_copy_decl, task_copyfn_remap_type, create_task_copyfn):
11176         New functions.
11177         (lower_omp_parallel): Rename to...
11178         (lower_omp_taskreg): ... this.  Use OMP_TASKREG_* macros where needed.
11179         Call create_task_copyfn if srecord_type is needed.  Adjust
11180         sender_decl type.
11181         (task_shared_vars): New variable.
11182         (check_omp_nesting_restrictions): Warn if work-sharing,
11183         barrier, master or ordered region is closely nested inside OMP_TASK.
11184         Add warnings for barrier if closely nested inside of work-sharing,
11185         ordered, or master region.
11186         (scan_omp_1): Call check_omp_nesting_restrictions even for
11187         GOMP_barrier calls.  Rename parallel_nesting_level to
11188         taskreg_nesting_level.  Handle OMP_TASK.
11189         (lower_lastprivate_clauses): Even if some lastprivate is found on a
11190         work-sharing construct, continue looking for them on parent parallel
11191         construct.
11192         (lower_omp_for_lastprivate): Add lastprivate clauses
11193         to the beginning of dlist rather than end.  Adjust for struct
11194         omp_for_data changes.
11195         (lower_omp_for): Add rec input clauses before OMP_FOR_PRE_BODY,
11196         not after it.  Handle collapsed OMP_FOR loops, adjust for
11197         OMP_FOR_{INIT,COND,INCR} changes, adjust extract_omp_for_data caller.
11198         (get_ws_args_for): Adjust extract_omp_for_data caller.
11199         (scan_omp_for): Handle collapsed OMP_FOR
11200         loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
11201         (lower_omp_single_simple): If libgomp function doesn't return
11202         boolean_type_node, add comparison of the return value with 0.
11203         (diagnose_sb_1, diagnose_sb_2): Handle collapsed OMP_FOR
11204         loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.  Handle OMP_TASK.
11205         (parallel_nesting_level): Rename to...
11206         (taskreg_nesting_level): ... this.
11207         (is_taskreg_ctx): New function.
11208         (build_outer_var_ref, omp_copy_decl): Use is_taskreg_ctx instead
11209         of is_parallel_ctx.
11210         (execute_lower_omp): Rename parallel_nesting_level to
11211         taskreg_nesting_level.
11212         (expand_omp_parallel): Rename to...
11213         (expand_omp_taskreg): ... this.  Use OMP_TASKREG_* macros where needed.
11214         Call omp_task_call for OMP_TASK regions.
11215         (expand_omp): Adjust caller, handle OMP_TASK.
11216         (lower_omp_1): Adjust lower_omp_taskreg caller, handle OMP_TASK.
11218         * bitmap.c (bitmap_default_obstack_depth): New variable.
11219         (bitmap_obstack_initialize, bitmap_obstack_release): Do nothing
11220         if argument is NULL and bitmap_default_obstack is already initialized.
11221         * ipa-struct-reorg.c (do_reorg_1): Call bitmap_obstack_release
11222         at the end.
11223         * matrix-reorg.c (matrix_reorg): Likewise.
11225 2008-06-06  Uros Bizjak  <ubizjak@gmail.com>
11227         * config/i386/i386.md (*indirect_jump): Macroize using P
11228         mode iterator.  Remove !TARGET_64BIT from insn constraints.
11229         (*tablejump_1): Ditto.
11230         (*indirect_jump_rex64): Remove insn pattern.
11231         (*tablejump_1_rex64): Ditto.
11232         (eh_return_<mode>): Macroize using P mode iterator from eh_return_di
11233         and eh_return_si insn patterns.
11235 2008-06-06  Richard Guenther  <rguenther@suse.de>
11237         * tree-ssa-structalias.c (merge_smts_into): Remove.
11238         (find_what_p_points_to): Do not bother to compute the
11239         points-to set for pt_anything pointers.
11240         * tree-ssa-operands.c (get_addr_dereference_operands): No NMT
11241         for pt_anything pointers is ok.
11243 2008-06-06  Jan Hubicka  <jh@suse.cz>
11245         * passes.c (execute_ipa_pass_list): Do not regenerate summaries.
11247 2008-06-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11249         * cgraph.c: Fix typos in comments.
11250         (cgraph_availability_names): Fix string typo.
11251         * fold-const.c: Fix typos in comments.
11252         (fold_binary): Fix typo in warning.
11253         * genautomata.c: Fix typos in comments.
11254         (check_presence_pattern_sets): Fix typo in local variable.
11255         (output_description): Fix typo in output.
11256         * ggc-zone.c (ggc_pch_finish): Fix typo in error message.
11257         * hwint.h: Likewise.
11258         * matrix-reorg.c (check_allocation_function): Likewise.
11259         * omega.c (smooth_weird_equations): Likewise.
11260         * auto-inc-dec.c: Fix typos in comments.
11261         * bb-reorder.c: Likewise.
11262         * builtins.c: Likewise.
11263         * c-common.c: Likewise.
11264         * c-cppbuiltin.c: Likewise.
11265         * c-parser.c: Likewise.
11266         * c-pretty-print.c: Likewise.
11267         * cfgcleanup.c: Likewise.
11268         * cfgexpand.c: Likewise.
11269         * cfghooks.c: Likewise.
11270         * cfglayout.c: Likewise.
11271         * cfgloopmanip.c: Likewise.
11272         * cgraphunit.c: Likewise.
11273         * coverage.c: Likewise.
11274         * dbxout.c: Likewise.
11275         * df-byte-scan.c: Likewise.
11276         * df-core.c: Likewise.
11277         * df-problems.c: Likewise.
11278         * df-scan.c: Likewise.
11279         * dfp.c: Likewise.
11280         * dominance.c: Likewise.
11281         * domwalk.c: Likewise.
11282         * dse.c: Likewise.
11283         * dwarf2out.c: Likewise.
11284         * emit-rtl.c: Likewise.
11285         * et-forest.c: Likewise.
11286         * function.c: Likewise.
11287         * function.h: Likewise.
11288         * gcc.c: Likewise.
11289         * gcov-io.c: Likewise.
11290         * gcov.c: Likewise.
11291         * gcse.c: Likewise.
11292         * genattrtab.c: Likewise.
11293         * ggc-page.c: Likewise.
11294         * gimplify.c: Likewise.
11295         * gthr-lynx.h: Likewise.
11296         * haifa-sched.c: Likewise.
11297         * ipa-cp.c: Likewise.
11298         * ipa-inline.c: Likewise.
11299         * ipa-prop.h: Likewise.
11300         * ipa-pure-const.c: Likewise.
11301         * ipa-struct-reorg.c: Likewise.
11302         * ipa-struct-reorg.h: Likewise.
11303         * ipa-type-escape.c: Likewise.
11304         * ipa.c: Likewise.
11305         * loop-doloop.c: Likewise.
11306         * mips-tfile.c: Likewise.
11307         * mkmap-flat.awk: Likewise.
11308         * mkmap-symver.awk: Likewise.
11309         * modulo-sched.c: Likewise.
11310         * omp-low.c: Likewise.
11311         * optabs.c: Likewise.
11312         * optabs.h: Likewise.
11313         * opts.c: Likewise.
11314         * passes.c: Likewise.
11315         * postreload-gcse.c: Likewise.
11316         * postreload.c: Likewise.
11317         * predict.c: Likewise.
11318         * pretty-print.h: Likewise.
11319         * profile.c: Likewise.
11320         * protoize.c: Likewise.
11321         * ra-conflict.c: Likewise.
11322         * real.c: Likewise.
11323         * recog.c: Likewise.
11324         * regclass.c: Likewise.
11325         * regs.h: Likewise.
11326         * reload.c: Likewise.
11327         * rtl-error.c: Likewise.
11328         * rtlanal.c: Likewise.
11329         * scan.h: Likewise.
11330         * sched-rgn.c: Likewise.
11331         * see.c: Likewise.
11332         * stmt.c: Likewise.
11333         * target.h: Likewise.
11334         * tree-dfa.c: Likewise.
11335         * tree-eh.c: Likewise.
11336         * tree-flow-inline.h: Likewise.
11337         * tree-inline.c: Likewise.
11338         * tree-into-ssa.c: Likewise.
11339         * tree-loop-distribution.c: Likewise.
11340         * tree-nested.c: Likewise.
11341         * tree-parloops.c: Likewise.
11342         * tree-pass.h: Likewise.
11343         * tree-pretty-print.c: Likewise.
11344         * tree-profile.c: Likewise.
11345         * tree-scalar-evolution.c: Likewise.
11346         * tree-sra.c: Likewise.
11347         * tree-ssa-alias-warnings.c: Likewise.
11348         * tree-ssa-ccp.c: Likewise.
11349         * tree-ssa-coalesce.c: Likewise.
11350         * tree-ssa-dom.c: Likewise.
11351         * tree-ssa-dse.c: Likewise.
11352         * tree-ssa-forwprop.c: Likewise.
11353         * tree-ssa-live.c: Likewise.
11354         * tree-ssa-live.h: Likewise.
11355         * tree-ssa-loop-im.c: Likewise.
11356         * tree-ssa-loop-ivopts.c: Likewise.
11357         * tree-ssa-loop-niter.c: Likewise.
11358         * tree-ssa-loop-prefetch.c: Likewise.
11359         * tree-ssa-phiopt.c: Likewise.
11360         * tree-ssa-phiprop.c: Likewise.
11361         * tree-ssa-sccvn.c: Likewise.
11362         * tree-ssa-ter.c: Likewise.
11363         * tree-ssa-threadupdate.c: Likewise.
11364         * tree-ssa.c: Likewise.
11365         * tree-vect-analyze.c: Likewise.
11366         * tree-vect-transform.c: Likewise.
11367         * tree-vectorizer.c: Likewise.
11368         * tree-vn.c: Likewise.
11369         * tree-vrp.c: Likewise.
11370         * tree.c: Likewise.
11371         * tree.def: Likewise.
11372         * tree.h: Likewise.
11373         * unwind-dw2-fde.c: Likewise.
11374         * unwind.inc: Likewise.
11375         * value-prof.c: Likewise.
11376         * vmsdbgout.c: Likewise.
11378 2008-06-05  David Edelsohn  <edelsohn@gnu.org>
11380         * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Do not
11381         always place FP constants in the TOC for TARGET_POWERPC64.
11382         * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Same.
11384 2008-06-05  Joseph Myers  <joseph@codesourcery.com>
11386         * config.gcc (powerpc-*-linux*spe*): Use t-dfprules.
11387         * config/rs6000/dfp.md (negdd2, absdd2, negtd2, abstd2): Do not
11388         enable for TARGET_E500_DOUBLE.
11389         (*movdd_softfloat32): Also enable for !TARGET_FPRS.
11390         * config/rs6000/rs6000.c (invalid_e500_subreg): Treat decimal
11391         floating-point modes like integer modes for E500 double.
11392         (rs6000_legitimate_offset_address_p): Likewise.
11393         (rs6000_legitimize_address): Likewise.  Do not allow REG+REG
11394         addressing for DDmode for E500 double.
11395         (rs6000_hard_regno_nregs): Do not treat decimal floating-point
11396         modes as using 64-bits of registers for E500 double.
11397         (spe_build_register_parallel): Do not handle DDmode or TDmode.
11398         (rs6000_spe_function_arg): Do not handle DDmode or TDmode
11399         specially for E500 double.
11400         (function_arg): Do not call rs6000_spe_function_arg for DDmode or
11401         TDmode for E500 double.
11402         (rs6000_gimplify_va_arg): Only handle SDmode in registers
11403         specially if TARGET_HARD_FLOAT && TARGET_FPRS.
11404         (rs6000_split_multireg_move): Do not handle TDmode specially for
11405         E500 double.
11406         (spe_func_has_64bit_regs_p): Do not treat DDmode or TDmode as
11407         using 64-bit registers for E500 double.
11408         (emit_frame_save): Do not handle DDmode specially for E500 double.
11409         (gen_frame_mem_offset): Likewise.
11410         (rs6000_function_value): Do not call spe_build_register_parallel
11411         for DDmode or TDmode.
11412         (rs6000_libcall_value): Likewise.
11413         * config/rs6000/rs6000.h (LOCAL_ALIGNMENT, MEMBER_TYPE_FORCES_BLK,
11414         DATA_ALIGNMENT, CLASS_MAX_NREGS): Do not handle DDmode specially
11415         for E500 double.
11417 2008-06-04  H.J. Lu  <hongjiu.lu@intel.com>
11419         * config/i386/i386.c (setup_incoming_varargs_64): Fix a typo
11420         in comments.
11422 2008-06-04  Junjie Gu <jgu@tensilica.com>
11424         * config/xtensa/lib2funcs.S (__xtensa_nonlocal_goto): Use unsigned
11425         comparison for frame pointers.
11427 2008-06-04  Andy Hutchinson  <hutchinsonandy@aim.com>
11429         PR target/27386
11430         * config/avr/avr.h (PUSH_ROUNDING): Remove.
11432 2008-06-04  Andy Hutchinson  <hutchinsonandy@aim.com>
11434         PR target/30243
11435         * builtins.c (expand_builtin_signbit): Don't take lowpart when
11436         register is already smaller or equal to required mode.
11438 2008-06-04  Xinliang David Li  <davidxl@google.com>
11440         * tree-call-cdce.c: New file.
11441         (cond_dead_built_in_calls): New static variable.
11442         (input_domain): New struct.
11443         (check_pow): New function.
11444         (check_builtin_call): Ditto.
11445         (check_target_format): Ditto.
11446         (is_call_dce_candidate): Ditto.
11447         (gen_one_condition): Ditto.
11448         (gen_conditions_for_domain): Ditto.
11449         (get_domain): Ditto.
11450         (gen_conditions_for_pow_cst_base): Ditto.
11451         (gen_conditions_for_pow_int_base): Ditto.
11452         (gen_conditions_for_pow): Ditto.
11453         (get_no_error_domain): Ditto.
11454         (gen_shrink_wrap_conditions): Ditto.
11455         (shrink_wrap_one_built_in_call): Ditto.
11456         (shink_wrap_conditional_dead_built_in_calls): Ditto.
11457         (tree_call_cdce): Ditto.
11458         (gate_call_cdce): Ditto.
11459         (pass_call_cdce): New gimple pass.
11460         * passes.c: (init_optimization_passes): New pass.
11461         * tree-pass.h: New pass declaration.
11462         * opts.c (decode_options): New flag setting.
11463         * common.opt: Add -ftree-builtin-call-dce flag.
11464         * Makefile.in: Add new source file.
11465         * tempvar.def: New tv_id.
11466         * doc/invoke.texi (-ftree-builtin-call-dce): New flag.
11468 2008-06-04  Richard Guenther  <rguenther@suse.de>
11470         * tree-flow-inline.h (is_global_var): Do not check TREE_STATIC on MTAGs.
11471         (is_call_clobbered): Always check var_ann->call_clobbered.
11472         (mark_call_clobbered): Always set var_ann->call_clobbered.
11473         (clear_call_clobbered): Always clear var_ann->call_clobbered.
11474         * tree-ssa-alias.c (mark_non_addressable): Use clear_call_clobbered.
11475         (reset_alias_info): Clear call clobbering info on MTAGs and
11476         globals as well.
11477         (set_pt_anything): Set pt_global_mem.
11478         (create_tag_raw): Adjust comment.
11479         (may_be_aliased): Do not check TREE_PUBLIC on MTAGs.
11481 2008-06-04  Joseph Myers  <joseph@codesourcery.com>
11482             Maxim Kuvyrkov  <maxim@codesourcery.com>
11484         * config/m68k/m68k.opt (mxgot): New option.
11485         * config/m68k/m68k.c (legitimize_pic_address): Handle -mxgot.
11486         (m68k_output_addr_const_extra): New.
11487         * config/m68k/m68k.h (OUTPUT_ADDR_CONST_EXTRA): New.
11488         * config/m68k/m68k-protos.h (m68k_output_addr_const_extra): Declare.
11489         * config/m68k/m68k.md (UNSPEC_GOTOFF): Define.
11490         * doc/invoke.texi (M680x0 Options): Document -mxgot.
11492 2008-06-04  Richard Guenther  <rguenther@suse.de>
11494         * tree-ssa-structalias.c (handle_ptr_arith): Correctly handle
11495         negative or non-representable offsets.
11497 2008-06-03  H.J. Lu  <hongjiu.lu@intel.com>
11499         * config/i386/i386.c (ix86_gen_leave): New.
11500         (ix86_gen_pop1): Likewise.
11501         (ix86_gen_add3): Likewise.
11502         (ix86_gen_sub3): Likewise.
11503         (ix86_gen_sub3_carry): Likewise.
11504         (ix86_gen_one_cmpl2): Likewise.
11505         (ix86_gen_monitor): Likewise.
11506         (override_options): Initialize ix86_gen_leave, ix86_gen_pop1,
11507         ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
11508         ix86_gen_one_cmpl2 and ix86_gen_monitor.
11509         (ix86_file_end): Use mov%z0 instead of mov{q}/mov{l}.
11510         (output_set_got): Use mov%z0, pop%z0 and add%z0 instead of
11511         mov{q}/mov{l}, pop{q}/pop{l} and add{q}/add{l}.
11512         (ix86_expand_epilogue): Updated.
11513         (print_operand): Handle integer register operand for 'z'.
11514         (ix86_expand_strlensi_unroll_1): Likewise.
11515         (ix86_expand_strlen): Likewise.
11516         (ix86_expand_builtin): Likewise.
11517         (x86_output_mi_thunk): Use mov%z1 and add%z1 instead of
11518         mov{q}/mov{l} and add{q}/add{l}.
11520 2008-06-03  Kai Tietz  <kai.tietz@onevision.com>
11522         * config/i386/i386.md (P): New mode iterator.
11523         (SFmode push_operand splitter): Macroize DImode and SImode pushes
11524         using P mode iterator.
11525         (DFmode push_operand splitter): Ditto.
11526         (XFmode push_operand splitter): Ditto.
11527         (DFmode float_extend SFmode push_operand splitter): Ditto.
11528         (XFmode float_extend SFmode push_operand splitter): Do not generate
11529         SImode pushes for 64bit target.  Macroize Dimode and SImode
11530         pushes using P mode iterator.
11531         (XFmode float_extend DFmode push_operand splitter): Ditto.
11533 2008-06-03  Kai Tietz  <kai.tietz@onevision.com>
11535         * config/i386/i386-protos.h (ix86_reg_parm_stack_space): New.
11536         * config/i386/i386.h (ix86_reg_parm_stack_space): Removed prototype.
11537         * config/i386/i386.c (ix86_reg_parm_stack_space): Changed
11538         return type to int.
11539         (ix86_call_abi_override): Remove check for call_used_regs.
11541 2008-06-03  Richard Guenther  <rguenther@suse.de>
11543         * tree-ssa-structalias.c (find_func_aliases): Add constraints
11544         for the lhs of calls if the return type contains pointers.
11546 2008-06-03  Kai Tietz  <kai.tietz@onevision.com>
11548         * doc/tm.texi (OVERRIDE_ABI_FORMAT): New.
11549         * doc/extend.texi (ms_abi,sysv_abi): New attribute description.
11550         * function.c (allocate_struct_function): Use of OVERRIDE_ABI_FORMAT.
11551         * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Make use
11552         of cfun and DEFAULT_ABI to deceide abi mode.
11553         (DEFAULT_ABI): New.
11554         (REG_PARM_STACK_SPACE): Removed.
11555         (OUTGOING_REG_PARM_STACK_SPACE): Removed.
11556         (STACK_BOUNDARY): Use default target to deceide stack boundary.
11557         * config/i386/i386-protos.h (ix86_cfun_abi): New.
11558         (ix86_function_abi): Likewise.
11559         (ix86_function_type_abi): Likewise.
11560         (ix86_call_abi_override): Likewise.
11561         * confid/i386/i386.md (SSE_REGPARM_MAX): Replaced by abi
11562         specific define X86_64_SSE_REGPARM_MAX/X64_SSE_REGPARM_MAX.
11563         * config/i386/i386.c (override_options): Replace TARGET_64BIT_MS_ABI.
11564         (X86_64_VARARGS_SIZE): Replace REGPARM_MAX and SSE_REGPARM_MAX by abi
11565         specific defines.
11566         (X86_64_REGPARM_MAX): New.
11567         (X86_64_SSE_REGPARM_MAX): New.
11568         (X64_REGPARM_MAX): New.
11569         (X64_SSE_REGPARM_MAX): New.
11570         (X86_32_REGPARM_MAX): New.
11571         (X86_32_SSE_REGPARM_MAX): New.
11572         (ix86_handle_cconv_attribute): Replace TARGET_64BIT_MS_ABI.
11573         (ix86_function_regparm): Handle user calling abi.
11574         (ix86_function_arg_regno_p): Replace TARGET_64BIT_MS_ABI
11575         by DEFAULT_ABI versus SYSV_ABI check.
11576         (ix86_reg_parm_stack_space): New.
11577         (ix86_function_type_abi): New.
11578         (ix86_call_abi_override): New.
11579         (ix86_function_abi): New.
11580         (ix86_cfun_abi): New.
11581         (init_cumulative_args): Call abi specific initialization.
11582         (function_arg_advance): Remove TARGET_64BIT_MS_ABI.
11583         (function_arg_64): Extend SSE_REGPARM_MAX check.
11584         (function_arg (): Remove TARGET_64BIT_MS_ABI.
11585         (ix86_pass_by_reference): Likewise.
11586         (ix86_function_value_regno_p): Likewise.
11587         (function_value_64): Replace REGPARM_MAX, and SSE_REGPARM_MAX.
11588         (ix86_function_value_1): Replace TARGET_64BIT_MS_ABI.
11589         (return_in_memory_ms_64): Replace TARGET_64BIT_MS_ABI.
11590         (ix86_build_builtin_va_list): Replace TARGET_64BIT_MS_ABI.
11591         (setup_incoming_varargs_64): Adjust regparm for call abi.
11592         (ix86_setup_incoming_varargs): Replace TARGET_64BIT_MS_ABI.
11593         (ix86_va_start): Likewise.
11594         (ix86_gimplify_va_arg): Likewise.
11595         (ix86_expand_prologue): Likewise.
11596         (output_pic_addr_const): Likewise.
11597         (ix86_init_machine_status): Initialize call_abi by DEFAULT_ABI.
11598         (x86_this_parameter): Replace TARGET_64BIT_MS_ABI.
11599         (x86_output_mi_thunk): Likewise.
11600         (x86_function_profiler): Likewise.
11601         * config/i386/i386.h (TARGET_64BIT_MS_ABI): Use ix64_cfun_abi.
11602         (SYSV_ABI, MS_ABI): New constants.
11603         (DEFAULT_ABI): New.
11604         (init_regs): Add prototype of function in regclass.c file.
11605         (OVERRIDE_ABI_FORMAT): New.
11606         (CONDITIONAL_REGISTER_USAGE): Remove TARGET_64BIT_MS_ABI part.
11607         (REG_PARM_STACK_SPACE): Use ix86_reg_parm_stack_space.
11608         (OUTGOING_REG_PARM_STACK_SPACE): New.
11609         (ix86_reg_parm_stack_space): New prototype.
11610         (CUMULATIVE_ARGS): Add call_abi member.
11611         (machine_function): Add call_abi member.
11612         * config/i386/mingw32.h (EXTRA_OS_CPP_BUILTINS): Replace
11613         TARGET_64BIT_MS_ABI by DEFAULT_ABI compare to MS_ABI.
11615 2008-06-02  Andy Hutchinson  <hutchinsonandy@aim.com>
11617         PR target/34879
11618         * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Redefine.
11619         (avr_builtin_setjmp_frame_value): New function.
11620         * config/avr/avr.md (nonlocal_goto_receiver): Define.
11621         (nonlocal_goto): Define.
11623 2008-06-02  Richard Sandiford  <rdsandiford@googlemail.com>
11625         * config/mips/mips.c (mips_emit_loadgp): Return early if
11626         there is nothing do to, otherwise emit a blockage if
11627         !TARGET_EXPLICIT_RELOCS || crtl->profile.
11628         * config/mips/mips.md (loadgp_blockage): Use SI rather than DI.
11630 2008-06-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11632         * configure.ac: Drop unneeded backslash ending up in config.in.
11633         * acinclude.m4: Likewise.
11634         * config.in: Regenerate.
11636 2008-05-26  Jan Hubicka  <jh@suse.cz>
11638         * predict.c (maybe_hot_frequency_p): Break out of...
11639         (maybe_hot_bb_p): ... here.
11640         (maybe_hot_edge_p): New.
11641         * tree-ssa-coalesce.c (coalesce_cost_edge): Compute cost based on edge.
11642         * basic-block.h (maybe_hot_edge_p): Declare.
11644 2008-05-31  Uros Bizjak  <ubizjak@gmail.com>
11646         * config/i386/i386.md (*cmpfp_<mode>): Enable for optimize_size.
11647         (*cmpfp_<mode>_cc): Ditto.
11648         (*fp_jcc_8<mode>_387): Ditto.
11649         (*fop_<MODEF:mode>_2_i387): Ditto.
11650         (*fop_<MODEF:mode>_3_i387): Ditto.
11651         (*fop_xf_2_i387): Ditto.
11652         (*fop_xf_3_i387): Ditto.
11654 2008-06-02  Tomas Bily  <tbily@suse.cz>
11656         * tree-ssa-ifcombine.c (get_name_for_bit_test): Use CONVERT_EXPR_P.
11658 2008-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
11660         * config/mips/mips.c (mips_valid_offset_p): New function.
11661         (mips_valid_lo_sum_p): Likewise.
11662         (mips_classify_address): Use them.
11663         (mips_force_address): New function.
11664         (mips_legitimize_address): Use it.
11665         * config/mips/mips.md (MOVE128): New mode iterator.
11666         (movtf): Require TARGET_64BIT.  Remove empty strings.
11667         (*movtf_internal): Rename to...
11668         (*movtf): ...this and require !TARGET_MIPS16.  Use "m" instead
11669         of "R" and use {,fp}{load,store} attributes instead of "multi".
11670         Use a separate define_split.
11671         (*movtf_mips16): New pattern.
11673 2008-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
11675         * config/mips/mips-protos.h (mips_expand_before_return): Declare.
11676         * config/mips/mips.c (mips_expand_before_return): New function.
11677         (mips_expand_epilogue): Call it.
11678         * config/mips/mips.md (return): Turn into a define_expand.
11679         (*return): New insn.
11681 2008-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
11683         * rtl.h (emit_clobber, gen_clobber, emit_use, gen_use): Declare.
11684         * emit-rtl.c (emit_clobber, gen_clobber, emit_use, gen_use): New
11685         functions.  Do not emit uses and clobbers of CONCATs; individually
11686         use and clobber their operands.
11687         * builtins.c (expand_builtin_setjmp_receiver): Use emit_clobber,
11688         gen_clobber, emit_use and gen_use.
11689         (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
11690         (expand_builtin_return): Likewise.
11691         * cfgbuild.c (count_basic_blocks): Likewise.
11692         * cfgrtl.c (rtl_flow_call_edges_add): Likewise.
11693         * explow.c (emit_stack_restore): Likewise.
11694         * expmed.c (extract_bit_field_1): Likewise.
11695         * expr.c (convert_move, emit_move_complex_parts): Likewise.
11696         (emit_move_multi_word, store_constructor): Likewise.
11697         * function.c (do_clobber_return_reg, do_use_return_reg): Likewise.
11698         (thread_prologue_and_epilogue_insns): Likewise.
11699         * lower-subreg.c (resolve_simple_move): Likewise.
11700         * optabs.c (widen_operand, expand_binop): Likewise.
11701         (expand_doubleword_bswap, emit_no_conflict_block): Likewise.
11702         * reload.c (find_reloads): Likewise.
11703         * reload1.c (eliminate_regs_in_insn): Likewise.
11704         * stmt.c (expand_nl_goto_receiver): Likewise.
11705         * config/alpha/alpha.md (builtin_longjmp): Likewise.
11706         * config/arc/arc.md (*movdi_insn, *movdf_insn): Likewise.
11707         * config/arm/arm.c (arm_load_pic_register): Likewise.
11708         (thumb1_expand_epilogue, thumb_set_return_address): Likewise.
11709         * config/arm/arm.md (untyped_return): Likewise.
11710         * config/arm/linux-elf.h (PROFILE_HOOK): Likewise.
11711         * config/avr/avr.c (expand_prologue): Likewise.
11712         * config/bfin/bfin.c (do_unlink): Likewise.
11713         * config/bfin/bfin.md (<optab>di3, adddi3, subdi3): Likewise.
11714         * config/cris/cris.c (cris_expand_prologue): Likewise.
11715         * config/darwin.c (machopic_indirect_data_reference): Likewise.
11716         (machopic_legitimize_pic_address): Likewise.
11717         * config/frv/frv.c (frv_frame_access, frv_expand_epilogue): Likewise.
11718         (frv_ifcvt_modify_insn, frv_expand_mdpackh_builtin): Likewise.
11719         * config/i386/i386.c (ix86_expand_vector_move_misalign): Likewise.
11720         (ix86_expand_convert_uns_didf_sse): Likewise.
11721         (ix86_expand_vector_init_general): Likewise.
11722         * config/ia64/ia64.md (eh_epilogue): Likewise.
11723         * config/iq2000/iq2000.c (iq2000_expand_epilogue): Likewise.
11724         * config/m32c/m32c.c (m32c_emit_eh_epilogue): Likewise.
11725         * config/m32r/m32r.c (m32r_reload_lr): Likewise.
11726         (config/iq2000/iq2000.c): Likewise.
11727         * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
11728         (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
11729         (builtin_longjmp): Likewise.
11730         * config/mn10300/mn10300.md (call, call_value): Likewise.
11731         * config/pa/pa.md (nonlocal_goto, nonlocal_longjmp): Likewise.
11732         * config/pdp11/pdp11.md (abshi2): Likewise.
11733         * config/rs6000/rs6000.c (rs6000_emit_move): Likewise.
11734         * config/s390/s390.c (s390_emit_prologue): Likewise.
11735         * config/s390/s390.md (movmem_long, setmem_long): Likewise.
11736         (cmpmem_long, extendsidi2, zero_extendsidi2, udivmoddi4): Likewise.
11737         (builtin_setjmp_receiver, restore_stack_nonlocal): Likewise.
11738         * config/sh/sh.c (prepare_move_operands): Likewise.
11739         (output_stack_adjust, sh_expand_epilogue): Likewise.
11740         (sh_set_return_address, sh_expand_t_scc): Likewise.
11741         * config/sparc/sparc.c (load_pic_register): Likewise.
11742         * config/sparc/sparc.md (untyped_return, nonlocal_goto): Likewise.
11743         * config/spu/spu.c (spu_expand_epilogue): Likewise.
11744         * config/v850/v850.c (expand_epilogue): Likewise.
11746 2008-05-31  Anatoly Sokolov  <aesok@post.ru>
11748         * config/avr/avr.md (UNSPECV_WRITE_SP_IRQ_ON): New constants.
11749         (UNSPECV_WRITE_SP_IRQ_OFF): (Ditto.).
11750         (movhi_sp_r_irq_off, movhi_sp_r_irq_on): New insn.
11751         * config/avr/avr.c (expand_prologue, expand_epilogue): Use
11752         movhi_sp_r_irq_off and movhi_sp_r_irq_on insns for writing to the
11753         stack pointer register.
11754         (output_movhi): Remove code for interrupt specific writing to the
11755         stack pointer register.
11757 2008-05-31  Richard Guenther  <rguenther@suse.de>
11759         PR tree-optimization/34244
11760         * fold-const.c (tree_expr_nonnegative_warnv_p): Do not ask VRP.
11761         (tree_expr_nonzero_warnv_p): Likewise.
11762         * tree-vrp.c (vrp_expr_computes_nonnegative): Call
11763         ssa_name_nonnegative_p.
11764         (vrp_expr_computes_nonzero): Call ssa_name_nonzero_p.
11765         (extract_range_from_unary_expr): Use vrp_expr_computes_nonzero,
11766         not tree_expr_nonzero_warnv_p.
11768         PR tree-optimization/36262
11769         Revert
11770         2007-11-29  Zdenek Dvorak  <ook@ucw.cz>
11772         PR tree-optimization/34244
11773         * tree-vrp.c (adjust_range_with_scev): Clear scev cache.
11774         (record_numbers_of_iterations): New function.
11775         (execute_vrp): Cache the numbers of iterations of loops.
11776         * tree-scalar-evolution.c (scev_reset_except_niters):
11777         New function.
11778         (scev_reset): Use scev_reset_except_niters.
11779         * tree-scalar-evolution.h (scev_reset_except_niters): Declare.
11781 2008-05-31  Bernd Schmidt  <bernd.schmidt@analog.com>
11783         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
11784         __WORKAROUND_RETS when appropriate.
11786 2008-05-31  Uros Bizjak  <ubizjak@gmail.com>
11788         * config/i386/i386.md (*fop_<mode>_comm_mixed): Macroize from
11789         *fop_sf_comm_mixed and *fop_df_comm_mixed insn patterns using MODEF
11790         mode iterator.
11791         (*fop_<mode>_comm_sse): Macroize from *fop_sf_comm_sse and
11792         *fop_df_comm_sse insn patterns using MODEF mode iterator.
11793         (*fop_<mode>_comm_i387): Macroize from *fop_sf_comm_i387 and
11794         *fop_df_comm_i387 insn patterns using MODEF mode iterator.
11795         (*fop_<mode>_1_mixed): Macroize from *fop_sf_1_mixed and
11796         *fop_df_1_mixed insn patterns using MODEF mode iterator.
11797         (*fop_<mode>_1_sse): Macroize from *fop_sf_1_sse and
11798         *fop_df_1_sse insn patterns using MODEF mode iterator.
11799         (*fop_<mode>_1_i387): Macroize from *fop_sf_1_i387 and
11800         *fop_df_1_i387 insn patterns using MODEF mode iterator.
11801         (*fop_<MODEF:mode>_2_i387): Macroize from *fop_sf_2<mode>_i387 and
11802         *fop_df_2<mode>_i387 insn patterns using MODEF mode iterator.
11803         (*fop_<MODEF:mode>_3_i387): Macroize from *fop_sf_3<mode>_i387 and
11804         *fop_df_3<mode>_i387 insn patterns using MODEF mode iterator.
11805         (*fop_xf_2_i387): Rename from *fop_xf_2<mode>_i387.
11806         (*fop_xf_3_i387): Rename from *fop_xf_3<mode>_i387.
11807         (*fop_xf_4_i387): Use <MODE> for mode attribute.
11808         (*fop_xf_5_i387): Ditto.
11809         (*fop_xf_6_i387): Ditto.
11811 2008-05-30  Richard Guenther  <rguenther@suse.de>
11813         * builtins.c (build_string_literal): Avoid generating
11814         a non-gimple_val result.
11816 2008-05-30  DJ Delorie  <dj@redhat.com>
11818         * exec-tool.in: Use an environment variable (private) instead of a
11819         file (shared) as a semaphore, so as to not break parallel builds.
11821 2008-05-30  Steven Bosscher  <stevenb.gcc@gmail.com>
11823         * optabs.c (maybe_encapsulate_block): Remove.
11824         (emit_libcall_block): Adjust accordingly.
11825         * optabs.h (maybe_encapsulate_block): Remove prototype.
11827         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address):
11828         Don't use maybe_encapsulate_block.
11830 2008-05-30  Steven Bosscher  <stevenb.gcc@gmail.com>
11832         * config/rs6000/rs6000.c (rs6000_legitimize_address,
11833         rs6000_legitimize_reload_address, rs6000_emit_move): Make sure an
11834         rtx is a SYMBOL_REF before calling get_pool_constant.
11836 2008-05-30  Eric Botcazou  <ebotcazou@adacore.com>
11838         * fold-const.c (fold_unary) <CASE_CONVERT>: Add ??? comment.
11840 2008-05-30  Danny Smith  <dannysmith@users.sourceforge.net>
11842         * incpath.c: Use HOST_LACKS_INODE_NUMBERS conditional
11843         rather than OS names to choose INO_T_EQ definition.
11844         (DIRS_EQ) [!INO_T_EQ]: Don't worry about case in comparison.
11845         (add_path) [!INO_T_EQ]: Use lrealpath to fill canonical_name field.
11847 2008-05-29  Daniel Franke  <franke.daniel@gmail.com>
11849         PR target/36348
11850         * config/darwin-f.c: New.
11851         * config/t-darwin: Added rule to build darwin-f.o.
11852         * config.gcc: Defined new variable, fortran_target_objs.
11853         (*-*-darwin*): Set fortran_target_objs.
11854         * Makefile.in: Defined new variable FORTRAN_TARGET_OBJS.
11855         * configure.ac: Substitute fortran_target_objs, set FORTRAN_TARGET_OBJS.
11856         * configure: Regenerated.
11858 2008-05-29  H.J. Lu  <hongjiu.lu@intel.com>
11860         PR target/35771
11861         * config/i386/i386.c (ix86_function_arg_boundary): Convert to
11862         canonical type if needed.
11864 2008-05-29  Eric Botcazou  <ebotcazou@adacore.com>
11866         * tree-nested.c (check_for_nested_with_variably_modified): Fix typo.
11868 2008-05-29  Richard Guenther  <rguenther@suse.de>
11870         PR tree-optimization/36343
11871         PR tree-optimization/36346
11872         PR tree-optimization/36347
11873         * tree-flow.h (clobber_what_p_points_to): Declare.
11874         * tree-ssa-structalias.c (set_uids_in_ptset): Whether the
11875         pointed-to variable is dereferenced is irrelevant to whether
11876         the pointer can access the pointed-to variable.
11877         (clobber_what_p_points_to): New function.
11878         * tree-ssa-alias.c (set_initial_properties): Use it.
11879         * tree-ssa.c (verify_flow_sensitive_alias_info): Adjust
11880         call clobber check for NMTs.
11882 2008-05-28  Seongbae Park  <seongbae.park@gmail.com>
11884         * value-prof.c (tree_ic_transform): Use HOST_WIDEST_INT_PRINT_DEC
11885         for printing gcov_type.
11887 2008-05-28  Seongbae Park  <seongbae.park@gmail.com>
11889         * tree-ssa-propagate.c (set_rhs): Preserve the histogram
11890         and the eh region information.
11891         * value-prof.c (gimple_move_stmt_histograms): New function.
11892         * value-prof.h (gimple_move_stmt_histograms): New function declaration.
11894 2008-05-28  Andreas Tobler  <a.tobler@schweiz.org>
11896         * config/pa/pa.md: Remove extern frame_pointer_needed declaration.
11898 2008-05-28  Seongbae Park <seongbae.park@gmail.com>
11900         * value-prof.c (tree_ic_transform): Print counts.
11901         * tree-profile.c (tree_gen_ic_func_profiler):
11902         Clear __gcov_indreict_call_callee variable to avoid misattribution
11903         of the profile.
11905 2008-05-28  Rafael Espíndola  <espindola@google.com>
11907         * see.c (see_def_extension_not_merged): Use copy_rtx_if_shared to avoid
11908         invalid sharing.
11910 2008-05-28  Richard Guenther  <rguenther@suse.de>
11912         PR tree-optimization/36339
11913         * tree-ssa-alias.c (set_initial_properties): Move pt_anything
11914         and clobbering code out of the loop.
11916 2008-05-28  Andreas Krebbel  <krebbel1@de.ibm.com>
11918         * config/s390/constraints.md ('b', 'C', 'D', 'e'): New constraint
11919         letters defined.
11921         * config/s390/s390.c (s390_compare_and_branch_condition_mask,
11922         s390_contiguous_bitmask_p, s390_symref_operand_p,
11923         s390_check_symref_alignment, s390_reload_larl_operand,
11924         s390_reload_symref_address): New functions.
11925         (s390_branch_condition_mnemonic): Support compare and branch
11926         instructions.
11927         (s390_mem_constraint): Avoid symrefs to accepted by the 'T'
11928         and 'W' constraints.
11929         (s390_secondary_reload): Add secondary reloads for unaligned
11930         symbol refs or symbol refs to floating point or QI/TI mode
11931         integer values.
11932         (legitimate_address_p): Accept symbol references as addresses.
11933         (s390_expand_insv): Use rotate and insert selected bits
11934         instruction for insv when building for z10.
11935         (print_operand_address): Handle symbol ref addresses.
11936         (print_operand): Output modifier 'c' added for signed byte values.
11937         (s390_encode_section_info): Mark symbol refs with
11938         SYMBOL_FLAG_NOT_NATURALLY_ALIGNED if appropriate.
11940         * config/s390/s390.md (SIL,RRS,RIS): New instruction formats added.
11941         (length attribute): RRF, RRR have 4 byte length.
11942         (FPALL, INTALL): New mode iterators added.
11943         (*tstdi_sign, *cmpdi_ccs_sign, *cmpsi_ccs_sign,
11944         *cmp<mode>_ccs, *cmpdi_ccu_zero, *cmpdi_ccu, *cmpsi_ccu, *cmphi_ccu,
11945         *movdi_64, *movsi_zarch, *movhi, movmem<mode>, *movmem_short,
11946         *extendsidi2, *extendhidi2_extimm, *extendhisi2_extimm,
11947         *zero_extendsidi2, adddi3, *adddi3_31z, *adddi3_31, addsi3,
11948         *add<mode>3, *add<mode>3_carry1_cc, *add<mode>3_carry2_cc,
11949         *add<mode>3_cc, *add<mode>3_imm_cc, *muldi3_sign, muldi3,
11950         *mulsi3_sign, mulsi3, mulsidi3): Patterns enhanced with z10
11951         instructions.
11952         (*cmphi_ccs_z10, *cmpdi_ccs_signhi_rl, *cmpsi_ccu_zerohi_rlsi,
11953         *cmp<GPR:mode>_ccu_zerohi_rldi, *cmp_and_br_signed_<mode>,
11954         *cmp_and_br_unsigned_<mode>, reload<INTALL:mode><P:mode>_tomem_z10,
11955         reload<INTALL:mode><P:mode>_toreg_z10,
11956         reload<FPALL:mode><P:mode>_tomem_z10,
11957         reload<FPALL:mode><P:mode>_toreg_z10,
11958         reload<P:mode>_larl_odd_addend_z10, *execute_rl, *insv<mode>_z10,
11959         *insv<mode>_z10_noshift, *insv<mode>_or_z10_noshift,
11960         *zero_extendhi<mode>2_z10, *cmp_and_trap_signed_int<mode>,
11961         *cmp_and_trap_unsigned_int<mode>, prefetch): New pattern or expander
11962         definition.
11963         (movmem, clrmem, cmpmem): New splitters added.
11965         * config/s390/predicates.md (larl_operand): Use
11966         SYMBOL_REF_FLAGS (op) & SYMBOL_FLAG_ALIGN1 replaced with
11967         SYMBOL_REF_ALIGN1_P.
11968         (s390_signed_integer_comparison,
11969         s390_unsigned_integer_comparison): New predicates.
11971         * config/s390/s390-protos.h (s390_check_symref_alignment,
11972         s390_contiguous_bitmask_p, s390_reload_larl_operand,
11973         s390_reload_symref_address,
11974         s390_compare_and_branch_condition_mask): Prototypes added.
11976         * config/s390/s390.h (TARGET_MEM_CONSTRAINT,
11977         SYMBOL_REF_ALIGN1_P, SYMBOL_FLAG_NOT_NATURALLY_ALIGNED,
11978         SYMBOL_REF_NOT_NATURALLY_ALIGNED_P): Macro definition added.
11980 2008-05-28  Andreas Krebbel  <krebbel1@de.ibm.com>
11982         * config/s390/s390.c (z10_cost): New cost function for z10.
11983         (s390_handle_arch_option, override_options): Support -march=z10 switch.
11984         (s390_issue_rate): Adjust issue rate for z10.
11985         * config/s390/s390.h (processor_type): Add PROCESSOR_2097_Z10.
11986         (processor_flags): Add PF_Z10.
11987         (TARGET_CPU_Z10, TARGET_Z10): New macro definitions.
11988         * config/s390/s390.md (cpu, cpu_facility attributes): Add z10.
11989         * gcc/config.gcc: Add z10.
11991 2008-05-28  Richard Guenther  <rguenther@suse.de>
11993         PR tree-optimization/36291
11994         * tree-flow. h (struct gimple_df): Remove var_anns member.
11995         * tree-flow-inline.h (gimple_var_anns): Remove.
11996         (var_ann): Simplify.
11997         * tree-dfa.c (create_var_ann): Simplify.
11998         (remove_referenced_var): Clear alias info from var_anns of globals.
11999         * tree-ssa.c (init_tree_ssa): Do not allocate var_anns.
12000         (delete_tree_ssa): Clear alias info from var_anns of globals.
12001         Do not free var_anns.
12002         (var_ann_eq): Remove.
12003         (var_ann_hash): Likewise.
12005 2008-05-28  Mark Shinwell  <shinwell@codesourcery.com>
12007         * config/mips/mips.c (mips_cpu_info_table): Add loongson2e
12008         and loongson2f entries.
12009         (mips_rtx_cost_data): Add entries for Loongson-2E/2F.
12010         * config/mips/mips.h (processor_type): Add Loongson-2E
12011         and Loongson-2F entries.
12012         (TARGET_LOONGSON_2E, TARGET_LOONGSON_2F, TARGET_LOONGSON_2EF): New.
12013         (MIPS_ISA_LEVEL_SPEC): Handle Loongson-2E/2F.
12014         * config/mips/mips.md (define_attr cpu): Add loongson2e and loongson2f.
12015         * doc/invoke.texi (MIPS Options): Document loongson2e
12016         and loongson2f processor names.
12018 2008-05-27  H.J. Lu  <hongjiu.lu@intel.com>
12020         PR target/35767
12021         PR target/35771
12022         * config/i386/i386.c (ix86_function_arg_boundary): Use
12023         alignment of canonical type.
12024         (ix86_expand_vector_move): Check unaligned memory access for
12025         all SSE modes.
12027 2008-05-27  H.J. Lu  <hongjiu.lu@intel.com>
12029         * dwarf2out.c (current_fde): Change return type to dw_fde_ref.
12030         Moved to the front of file.
12032 2008-05-27  Xuepeng Guo  <xuepeng.guo@intel.com>
12033             H.J. Lu  <hongjiu.lu@intel.com>
12035         * dwarf2out.c (current_fde): New.
12036         (add_cfi): Use it.
12037         (lookup_cfa:): Likewise.
12038         (dwarf2out_end_epilogue): Likewise.
12039         (dwarf2out_note_section_used): Likewise.
12041 2008-05-27  Michael Matz  <matz@suse.de>
12043         PR c++/27975
12044         * c.opt (Wenum-compare): New warning option.
12045         * doc/invoke.texi  (Warning Options): Document -Wenum-compare.
12047 2008-05-27  Michael Matz  <matz@suse.de>
12049         PR middle-end/36326
12050         * tree-gimple.c (is_gimple_mem_rhs): Remove work-around for
12051         non-BLKmode types.
12052         * tree-tailcall.c (find_tail_calls): Don't mark calls storing
12053         into memory as tail calls.
12055 2008-05-27  Richard Guenther  <rguenther@suse.de>
12057         PR tree-optimization/36339
12058         * tree-ssa-alias.c (set_initial_properties): Escaped pt_anything
12059         pointers cause all addressable variables to be call clobbered.
12061 2008-05-27  Richard Guenther  <rguenther@suse.de>
12063         PR tree-optimization/36245
12064         * tree-ssa-address.c (add_to_parts): Deal with non-pointer bases.
12066 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
12068         * config/s390/s390.md: Replace all occurences of the 'm'
12069         constraint with 'RT'.
12071 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
12073         * config/s390/s390.md ("cpu_facility", "enabled"): Attribute
12074         definitions added.
12075         ("*movdi_64dfp", "*movdi_64extimm", "*movdi_64"): Merged into
12076         "*movdi_64".
12077         ("*anddi3_extimm", "*anddi3"): Merged into "*anddi3".
12078         ("*iordi3_extimm", "*iordi3"): Merged into "*iordi3".
12079         ("*xordi3_extimm", "*xordi3"): Merged into "*xordi3".
12081 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
12083         * reload.c: (find_reloads): Skip alternatives according to the
12084         "enabled" attribute. Constify the constraint variable.
12085         * recog.c (get_attr_enabled): Add default implementation.
12086         (extract_insn): Set the alternative_enabled_p array
12087         in the recog_data struct.
12088         (preprocess_constraints, constrain_operands): Skip
12089         alternatives according to the "enabled" attribute
12090         * recog.h (struct recog_data): New field alternative_enabled_p.
12091         (skip_alternative): New inline function.
12092         * regclass.c: (record_operand_costs): Check the "enabled" attribute.
12093         (record_reg_classes): Skip alternative according to the
12094         "enabled" attribute.
12096         * doc/md.texi: Add documention for the "enabled" attribute.
12098 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
12100         * defaults.h (TARGET_MEM_CONSTRAINT): New target macro added.
12101         * postreload.c (reload_cse_simplify_operands): Replace 'm'
12102         constraint with TARGET_MEM_CONSTRAINT.
12103         * recog.c (asm_operand_ok, preprocess_constraints,
12104         constrain_operands): Likewise.
12105         * regclass.c (record_reg_classes): Likewise.
12106         * reload.c (find_reloads, alternative_allows_const_pool_ref): Likewise.
12107         * reload1.c (maybe_fix_stack_asms): Likewise.
12108         * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
12109         * recog.h: Adjust comment.
12110         * genpreds.c (generic_constraint_letters): Remove 'm' constraint.
12111         * genoutput.c (note_constraint): Don't emit error for 'm' constraint.
12112         * doc/md.texi: Add a note to description of 'm' constraint.
12113         * doc/tm.texi: Document the new TARGET_MEM_CONSTRAINT macro.
12115 2008-05-27  Eric Botcazou  <ebotcazou@adacore.com>
12117         * tree-sra.c (sra_type_can_be_decomposed_p) <RECORD_TYPE>: Make sure
12118         that the bitfield is of integral type before testing its precision.
12120 2008-05-27  Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
12121             Sa Liu  <saliu@de.ibm.com>
12123         * config/spu/spu.c (spu_init_libfuncs): Add __multi3, __divti3,
12124         __modti3, __udivti3, __umodti3 and __udivmodti4.
12125         * config/spu/t-spu-elf (LIB2FUNCS_STATIC_EXTRA): Add files
12126         that implement TImode mul and div functions.
12127         * config/spu/multi3.c: New. Implement __multi3.
12128         * config/spu/divmodti4.c: New. Implement _udivmodti4 and others.
12129         * testsuite/gcc.target/spu/muldivti3.c: New. Test TImode mul and div
12130         functions on SPU.
12132 2008-05-26  Steven Bosscher  <stevenb.gcc@gmail.com>
12134         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Generate
12135         new tls_gd_* and tls_ld_* insns instead of an insn sequence.
12136         * config/rs6000/rs6000.md (TLSmode, tls_abi_suffix, tls_insn_suffix,
12137         tls_sysv_suffix): New mode and mode attribute iterators.
12138         (tls_gd_32, tls_gd_64, tls_ld_32, tls_ld_64): Remove.
12139         (lts_gd_aix*, tls_gd_sysv*, tls_ld_aix*, tls_ld_sysv*): New patterns.
12140         (tls_dtprel_*, tls_dtprel_ha_*, tls_dtprel_lo_*, tls_got_dtprel_*,
12141         tls_tprel_*, tls_tprel_ha_*, tls_tprel_lo_*, tls_got_tprel_*,
12142         tls_tls_*): Merge 32 bit and 64 bit variants using aforementioned
12143         iterators.
12145 2008-05-26  Eric Botcazou  <ebotcazou@adacore.com>
12147         PR tree-optimization/36329
12148         * tree.h (CALL_CANNOT_INLINE_P): Add access check.
12149         * tree-gimple.h (CALL_STMT_CANNOT_INLINE_P): New macro.
12150         * cgraphbuild.c (initialize_inline_failed): Use the latter
12151         macro in lieu of the former.
12152         * ipa-inline.c (cgraph_mark_inline): Likewise.
12153         (cgraph_decide_inlining_of_small_function): Likewise.
12154         (cgraph_decide_inlining): Likewise.
12155         (cgraph_decide_inlining_incrementally): Likewise.
12157 2008-05-26  Tristan Gingold  <gingold@adacore.com>
12158             Anatoly Sokolov  <aesok@post.ru>
12160         * config/avr/avr.md ("call_prologue_saves"): Use hi8(gs())/lo8(gs())
12161         instead of pm_lo8/pm_hi8 to makes this call working on avr6.
12162         * config/avr/avr.c (expand_prologue): Tune "call_prologue"
12163         optimization for 'avr6' architecture.
12165 2008-05-26  Andy Hutchinson  <hutchinsonandy@aim.com>
12167         PR target/34932
12168         * config/avr/avr.md (*addhi3_zero_extend2): Remove.
12170 2008-05-26  Richard Guenther  <rguenther@suse.de>
12172         * tree-ssa-sccvn.c (expr_has_constants): Declare.
12173         (visit_reference_op_load): Initialize VN_INFO->has_constants properly.
12175 2008-05-26  H.J. Lu  <hongjiu.lu@intel.com>
12177         PR middle-end/36253
12178         * caller-save.c (insert_restore): Verify alignment of spill space.
12179         (insert_save): Likewise.
12180         * cfgexpand.c (LOCAL_ALIGNMENT): Removed.
12181         * defaults.h (LOCAL_ALIGNMENT): New. Provide default.
12182         (STACK_SLOT_ALIGNMENT): Likewise.
12183         * function.c (LOCAL_ALIGNMENT): Removed.
12184         (get_stack_local_alignment): New.
12185         (assign_stack_local): Use it.  Set alignment on stack slot.
12186         (assign_stack_temp_for_type): Use get_stack_local_alignment.
12187         * config/i386/i386.h (LOCAL_ALIGNMENT): Updated.
12188         (STACK_SLOT_ALIGNMENT): New.
12189         * config/i386/i386.c (ix86_local_alignment): Handle caller-save
12190         stack slot in XFmode.
12192         * doc/tm.texi (STACK_SLOT_ALIGNMENT): New.
12194 2008-05-26  Kai Tietz  <kai.tietz@onevision.com>
12196         PR/36321
12197         * config/i386/i386.md (allocate_stack_worker_64): Make sure
12198         argument operand in rax isn't removed.
12200 2008-05-26  Richard Guenther  <rguenther@suse.de>
12202         PR middle-end/36300
12203         * fold-const.c (extract_muldiv_1): Use TYPE_OVERFLOW_WRAPS,
12204         not TYPE_UNSIGNED.  Use TYPE_PRECISION instead of GET_MODE_SIZE.
12206 2008-05-26  Daniel Franke  <franke.daniel@gmail.com>
12208         PR bootstrap/36331
12209         * c-cppbuiltin.c (define__GNUC__): Re-add definition of __GNUG__.
12211 2008-05-26  Dominique Dhumieres  <dominiq@lps.ens.fr>
12213         * config/darwin-c.c: Include "incpath.h" instead of "c-incpath.h".
12214         * config/t-darwin: Use "incpath.h" instead of "c-incpath.h".
12216 2008-05-25  Eric Botcazou  <ebotcazou@adacore.com>
12218         * tree-nested.c (convert_tramp_reference) <ADDR_EXPR>: Do not
12219         build a trampoline if we don't want one.
12220         * varasm.c (initializer_constant_valid_p) <ADDR_EXPR>: Do not
12221         return zero for nested functions if we don't want a trampoline.
12223 2008-05-26  Daniel Franke  <franke.daniel@gmail.com>
12225         * doc/invoke.texi: Added f77, f77-cpp-input to list of file types.
12227 2008-05-26  Daniel Franke  <franke.daniel@gmail.com>
12229         PR fortran/18428
12230         * c.opt: Removed undocumented option '-lang-fortran'.
12231         * c-common.h: Removed global variable 'lang_fortran'.
12232         * c-opts.c (c_common_handle_option): Removed code to handle
12233         option '-lang-fortran'. Updated includes.
12234         * c-cppbuiltin.c (c_cpp_builtins): Removed conditional
12235         definition of '__GFORTRAN__'.
12236         (define__GNUC__): Reimplemented to use BASEVER and
12237         cpp_define_formatted.
12238         (builtin_define_with_value_n): Removed.
12239         * c-incpath.h: Renamed to ...
12240         * incpath.h: ... this.
12241         * c-incpath.c: Renamed to ...
12242         * incpath.c: ... this. Updated includes.
12243         * fix-header.c: Updated includes.
12244         * Makefile.in: Replaced c-incpath.[ch] by incpath.[ch].
12245         (c-cppbuiltin.o): Added dependency on and definition of BASEVER.
12246         (OBJ-archive): Added cppdefault.o, incpath.o and prefix.o.
12248 2008-05-25  Eric Botcazou  <ebotcazou@adacore.com>
12250         * tree.h: Update the table of flags used on tree nodes.
12251         (TREE_NO_TRAMPOLINE): New accessor for static_flag.
12252         (SAVE_EXPR_RESOLVED_P): Use automatically-built access check.
12253         (FORCED_LABEL): Add access check.
12254         (CALL_EXPR_RETURN_SLOT_OPT): Likewise.
12255         (ASM_INPUT_P): Likewise.
12256         (ASM_VOLATILE_P): Likewise.
12257         (EH_FILTER_MUST_NOT_THROW): Access static_flag directly.
12258         (OMP_SECTION_LAST): Access private_flag directly.
12259         (OMP_RETURN_NOWAIT): Likewise.
12260         (OMP_PARALLEL_COMBINED): Likewise.
12261         (OMP_CLAUSE_PRIVATE_DEBUG): Access public_flag directly.
12262         (OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE): Likewise.
12263         * tree-ssa-propagate.c (STMT_IN_SSA_EDGE_WORKLIST): Access
12264         deprecated_flag directly.
12266 2008-05-25  H.J. Lu  <hongjiu.lu@intel.com>
12268         * final.c (frame_pointer_needed): Removed.
12269         * flags.h (frame_pointer_needed): Likewise.
12271         * function.h (rtl_data): Add frame_pointer_needed.
12272         (frame_pointer_needed): New.
12274 2008-05-25  Arthur Loiret  <arthur.loiret@u-psud.fr>
12276         * config.gcc (sh2[lbe]*-*-linux*): Allow target.
12278 2008-05-25  Steven Bosscher  <stevenb.gcc@gmail.com>
12280         * gcse.c (hash_scan_set): Do not pick up a REG_EQUAL value if
12281         SRC is a REG.
12283 2008-05-25  Alan Modra  <amodra@bigpond.net.au>
12285         * c-common.c (strip_array_types): Move function to..
12286         * tree.c: ..here.
12287         (get_inner_array_type): Delete.
12288         * c-common.h (strip_array_types): Move declaration to..
12289         * tree.h: ..here.
12290         (get_inner_array_type): Delete.
12291         * config/i386/i386.c (x86_field_alignment): Use strip_array_types.
12292         * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Likewise.
12293         * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
12294         * config/pa/pa.c (emit_move_sequence): Likewise.
12296 2008-05-24  H.J. Lu  <hongjiu.lu@intel.com>
12298         * config/i386/i386.md (*sse_prologue_save_insn): Set length
12299         attribute to 34.
12301 2008-05-24  Andy Hutchinson  <hutchinsonandy@aim.com>
12303         * function.c: Include target hook for nonlocal_goto frame value.
12305 2008-05-24  Richard Guenther  <rguenther@suse.de>
12307         * tree-dfa.c (refs_may_alias_p): Re-instantiate case that a scalar
12308         variable can be only accessed through a pointer or a union.
12310 2008-05-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12312         * builtins.c (fold_builtin_fpclassify): Fix spelling of FP_INFINITE.
12313         * doc/extend.texi: Likewise.
12315 2008-05-23  DJ Delorie  <dj@redhat.com>
12317         * config/m32c/jump.md (untyped_call): Add.
12319         * config/m32c/m32c.c (m32c_return_addr_rtx): Change pointer type
12320         for A24 to PSImode.
12321         (m32c_address_cost): Detail costs for indirect offsets.
12323 2008-05-23  Rafael Espíndola  <espindola@google.com>
12325         * see.c (see_get_extension_data): Don't use SUBREG_REG to test
12326         if a node is a SUBREG.
12327         (see_analyze_one_def): Don't use SUBREG_REG to test if a node
12328         is a SUBREG.
12330 2008-05-23  Paul Brook  <paul@codesourcery.com>
12331             Carlos O'Donell  <carlos@codesourcery.com>
12333         * doc/extend.texi: Clarify use of __attribute__((naked)).
12334         * doc/tm.texi: Document TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS.
12335         * target.h (gcc_target): Add allocate_stack_slots_for_args.
12336         * function.c (use_register_for_decl): Use
12337         targetm.calls.allocate_stack_slots_for_args.
12338         * target-def.h (TARGET_CALLS): Add TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS.
12339         * config/arm/arm.c (arm_allocate_stack_slots_for_args): New function.
12340         (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Define.
12342 2008-05-23  Eric Botcazou  <ebotcazou@adacore.com>
12344         * expr.c (highest_pow2_factor) <BIT_AND_EXPR>: New case.
12346 2008-05-23  Steven Munroe  <sjmunroe@us.ibm.com>
12348         * config/rs6000/darwin-ldouble.c (fmsub): Eliminate the full
12349         PACK/UNPACK between FP_SUB_Q and FD_TRUNC so that the result
12350         is only rounded once.
12352 2008-05-23  Richard Guenther  <rguenther@suse.de>
12354         * tree-ssa-operands.c (mark_difference_for_renaming): Use bitmap_xor.
12356 2008-05-23  Uros Bizjak  <ubizjak@gmail.com>
12357             Jakub Jelinek  <jakub@redhat.com>
12359         PR target/36079
12360         * configure.ac: Handle --enable-cld.
12361         * configure: Regenerated.
12362         * config.gcc: Add USE_IX86_CLD to tm_defines for x86 targets.
12363         * config/i386/i386.h (struct machine_function): Add needs_cld field.
12364         (ix86_current_function_needs_cld): New define.
12365         * config/i386/i386.md (UNSPEC_CLD): New unspec volatile constant.
12366         (cld): New isns pattern.
12367         (strmov_singleop, rep_mov, strset_singleop, rep_stos, cmpstrnqi_nz_1,
12368         cmpstrnqi_1, strlenqi_1): Set ix86_current_function_needs_cld flag.
12369         * config/i386/i386.opt (mcld): New option.
12370         * config/i386/i386.c (ix86_expand_prologue): Emit cld insn if
12371         TARGET_CLD and ix86_current_function_needs_cld.
12372         (override_options): Use -mcld by default for 32-bit code if
12373         USE_IX86_CLD.
12375         * doc/install.texi (Options specification): Document --enable-cld.
12376         * doc/invoke.texi (Machine Dependent Options)
12377         [i386 and x86-64 Options]: Add -mcld option.
12378         (Intel 386 and AMD x86-64 Options): Document -mcld option.
12380 2008-05-23  Kai Tietz  <kai.tietz@onevison.com>
12381         * config/i386/i386.c (return_in_memory_32): Add ATTRIBUTE_UNUSED.
12382         (return_in_memory_64): Likewise.
12383         (return_in_memory_ms_64): Likewise.
12385 2008-05-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12387         * builtin-types.def (BT_FN_INT_INT_INT_INT_INT_INT_VAR): New.
12388         * builtins.c (fold_builtin_fpclassify): New.
12389         (fold_builtin_varargs): Handle BUILT_IN_FPCLASSIFY.
12390         * builtins.def (BUILT_IN_FPCLASSIFY): New.
12391         * c-common.c (handle_type_generic_attribute): Adjust to accept
12392         fixed arguments before an elipsis.
12393         (check_builtin_function_arguments): Handle BUILT_IN_FPCLASSIFY.
12394         * doc/extend.texi: Document __builtin_fpclassify.
12396 2008-05-22  Aldy Hernandez  <aldyh@redhat.com>
12398         * omp-low.c (gate_expand_omp_ssa): Remove.
12399         (pass_expand_omp_ssa): Remove.
12400         (gate_expand_omp): Do not check for flag_openmp_ssa.
12401         * common.opt (-fopenmp-ssa): Remove.
12402         * passes.c (init_optimization_passes): Remove pass_expand_omp_ssa.
12404 2008-05-22  Kaz Kojima  <kkojima@gcc.gnu.org>
12406         * config/sh/sh.opt (mfixed-range): New option.
12407         * config/sh/sh-protos.h (sh_fix_range): Declare.
12408         * config/sh/sh.c (sh_fix_range): New function.
12409         * config/sh/sh.h (sh_fixed_range_str): Declare.
12410         (OVERRIDE_OPTIONS): Call sh_fix_range if sh_fixed_range_str
12411         is not empty.
12412         * doc/invoke.texi (SH Options): Document -mfixed-range.
12414 2008-05-22  Kai Tietz  <kai.tietz@onevision.com>
12416         * config/i386/sol2-10.h (SUBTARGET_RETURN_IN_MEMORY): Undefine
12417         it before the redeclaration.
12419 2008-05-22  Anatoly Sokolov <aesok@post.ru>
12421         * config/avr/avr.c (get_sequence_length): Add new function.
12422         (expand_prologue, expand_epilogue): Remove duplicate code.
12424 2008-05-22  Rafael Espíndola  <espindola@google.com>
12426         * see.c (see_pre_insert_extensions): Use copy_rtx to avoid invalid rtx
12427         sharing.
12429 2008-05-22  H.J. Lu  <hongjiu.lu@intel.com>
12431         * defaults.h (UNITS_PER_SIMD_WORD): Add scalar mode as argument.
12432         * doc/tm.texi (UNITS_PER_SIMD_WORD): Likewise.
12434         * tree-vect-analyze.c (vect_compute_data_ref_alignment): Replace
12435         UNITS_PER_SIMD_WORD with GET_MODE_SIZE (TYPE_MODE (vectype)).
12436         (vect_update_misalignment_for_peel): Likewise.
12437         (vector_alignment_reachable_p): Likewise.
12438         * tree-vect-transform.c (vectorizable_load): Likewise.
12439         * tree-vectorizer.c (vect_supportable_dr_alignment): Likewise.
12440         (get_vectype_for_scalar_type): Pass mode of scalar_type
12441         to UNITS_PER_SIMD_WORD.
12443         * config/arm/arm.h (UNITS_PER_SIMD_WORD): Updated.
12444         * config/i386/i386.h (UNITS_PER_SIMD_WORD): Likewise.
12445         * config/mips/mips.h (UNITS_PER_SIMD_WORD): Likewise.
12446         * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Likewise.
12447         * config/sparc/sparc.h (UNITS_PER_SIMD_WORD): Likewise.
12449 2008-05-22  Ira Rosen  <irar@il.ibm.com>
12451         PR tree-optimization/36293
12452         * tree-vect-transform.c (vect_transform_strided_load): Don't check
12453         if the first load must be skipped because of a gap.
12455 2008-05-22  Richard Guenther  <rguenther@suse.de>
12457         * tree-dfa.c (refs_may_alias_p): Exit early if possible.  Handle
12458         more cases of offset disambiguation that is possible if
12459         strict-aliasing rules apply.
12460         * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use refs_may_alias_p
12461         for basic offset and type-based disambiguation.
12463 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
12465         * config/i386/i386.c (ix86_expand_vector_init_one_var): Use
12466         ix86_expand_vector_set on V16QImode for SSE4.1.
12468 2008-05-21  Tom Tromey  <tromey@redhat.com>
12470         * c.opt (Wimport): Mark as undocumented.
12471         * doc/invoke.texi (Option Summary): Don't mention -Wimport or
12472         -Wno-import.
12473         (Warning Options): Likewise.
12474         * doc/cppopts.texi: Don't mention -Wimport.
12476 2008-05-21  Sebastian Pop  <sebastian.pop@amd.com>
12478         PR tree-optimization/36287
12479         PR tree-optimization/36286
12480         * lambda-code.c (build_access_matrix): Do not use the loop->num
12481         for computing the number of induction variables: use the loop depth
12482         instead.
12484 2008-05-21  Kai Tietz  <kai.tietz@onevision.com>
12486         PR/36280
12487         * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Honor
12488         option -f(no-)leading-underscore.
12490 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
12492         * config/i386/i386.c (ix86_expand_vector_init_general): Use
12493         GET_MODE_NUNITS (mode).
12495 2008-05-21  Peter Bergner  <bergner@vnet.ibm.com>
12497         * doc/invoke.texi: Add cpu_type's 464 and 464fp.
12498         (-mmulhw): Add 464 to description.
12499         (-mdlmzb): Likewise.
12500         * config.gcc: Handle --with-cpu=464 and --with-cpu=464fp.
12501         * config/rs6000/rs6000.c (processor_target_table): Add 464 and
12502         464fp entries.
12503         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add 464 and 464fp support.
12504         * config/rs6000/t-fprules (MULTILIB_MATCHES_FLOAT): Include -mcpu=464.
12505         * config/rs6000/rs6000.md: Update comments for 464.
12507 2008-05-21  Janis Johnson  <janis187@us.ibm.com>
12509         * doc/sourcebuild.texi (Test Directives): Add dg-xfail-run-if.
12511 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
12513         * config/i386/sse.md (vec_extractv4sf): Removed.
12514         (vec_extractv2df): Likewise.
12515         (vec_extractv2di): Likewise.
12516         (vec_extractv4si): Likewise.
12517         (vec_extractv8hi): Likewise.
12518         (vec_extractv16qi): Likewise.
12519         (vec_extract<mode>): New.
12521 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
12523         * config/i386/sse.md (vec_setv4sf): Removed.
12524         (vec_setv2df): Likewise.
12525         (vec_setv2di): Likewise.
12526         (vec_setv4si): Likewise.
12527         (vec_setv8hi): Likewise.
12528         (vec_setv16qi): Likewise.
12529         (vec_set<mode>): New.
12531 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
12533         * config/i386/i386.c (ix86_expand_vector_init_general): Remove
12534         goto for vec_concat and vec_interleave.
12536 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
12538         * config/i386/sse.md (vec_initv4sf): Removed.
12539         (vec_initv2df): Likewise.
12540         (vec_initv2di): Likewise.
12541         (vec_initv4si): Likewise.
12542         (vec_initv8hi): Likewise.
12543         (vec_initv16qi): Likewise.
12544         (vec_init<mode>): New.
12546 2008-05-21  Joseph Myers  <joseph@codesourcery.com>
12548         * collect2.c (find_a_file): Use IS_ABSOLUTE_PATH.
12550 2008-05-21  Tom Tromey  <tromey@redhat.com>
12552         * ggc-zone.c (lookup_page_table_if_allocated): New function.
12553         (zone_find_object_offset): Likewise.
12554         (gt_ggc_m_S): Likewise.
12555         (highest_bit): Likewise.
12556         * ggc-page.c (gt_ggc_m_S): New function.
12557         * stringpool.c (string_stack): Remove.
12558         (init_stringpool): Update.
12559         (ggc_alloc_string): Use ggc_alloc.
12560         (maybe_delete_ident): New function.
12561         (ggc_purge_stringpool): Likewise.
12562         (gt_ggc_m_S): Remove.
12563         * ggc-common.c (ggc_protect_identifiers): New global.
12564         (ggc_mark_roots): Call ggc_purge_stringpool.  Use
12565         ggc_protect_identifiers.
12566         * ggc.h (ggc_protect_identifiers): Declare.
12567         (gt_ggc_m_S): Update.
12568         (ggc_purge_stringpool): Declare.
12569         * toplev.c (compile_file): Set and reset ggc_protect_identifiers.
12570         * gengtype.c (write_types_process_field) <TYPE_STRING>: Remove
12571         special case.
12572         (write_root): Cast gt_ggc_m_S to gt_pointer_walker.
12574 2008-05-21  David S. Miller  <davem@davemloft.net>
12576         * config.gcc (sparc-*-linux*): Always include sparc/t-linux in
12577         tmake_file.
12579 2008-05-21  Eric Botcazou  <ebotcazou@adacore.com>
12581         * cfgexpand.c (tree_expand_cfg): Zap the EH throw statement table
12582         once finished.
12584 2008-05-20  David Daney  <ddaney@avtrex.com>
12586         * config/mips/mips.md (UNSPEC_SYNC_NEW_OP_12,
12587         UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE_12): New define_constants.
12588         (UNSPEC_SYNC_EXCHANGE, UNSPEC_MEMORY_BARRIER, UNSPEC_SET_GOT_VERSION,
12589         UNSPEC_UPDATE_GOT_VERSION): Renumber.
12590         (optab, insn): Add 'plus' and 'minus' to define_code_attr.
12591         (atomic_hiqi_op): New define_code_iterator.
12592         (sync_compare_and_swap<mode>): Call mips_expand_atomic_qihi instead of
12593         mips_expand_compare_and_swap_12.
12594         (compare_and_swap_12): Use MIPS_COMPARE_AND_SWAP_12 instead of
12595         MIPS_COMPARE_AND_SWAP_12_0.  Pass argument to MIPS_COMPARE_AND_SWAP_12.
12596         (sync_<optab><mode>, sync_old_<optab><mode>,
12597         sync_new_<optab><mode>, sync_nand<mode>, sync_old_nand<mode>,
12598         sync_new_nand<mode>): New define_expands for HI and QI mode operands.
12599         (sync_<optab>_12, sync_old_<optab>_12, sync_new_<optab>_12,
12600         sync_nand_12, sync_old_nand_12, sync_new_nand_12): New insns.
12601         (sync_lock_test_and_set<mode>): New define_expand for HI and QI modes.
12602         (test_and_set_12): New insn.
12603         (sync_old_add<mode>, sync_new_add<mode>, sync_old_<optab><mode>,
12604         sync_new_<optab><mode>, sync_old_nand<mode>,
12605         sync_new_nand<mode>, sync_lock_test_and_set<mode>):  Add early
12606         clobber to operand 0 for SI and DI mode insns.
12607         * config/mips/mips-protos.h (mips_gen_fn_6, mips_gen_fn_5,
12608         mips_gen_fn_4): New typedefs.
12609         (mips_gen_fn_ptrs): Define new union type.
12610         (mips_expand_compare_and_swap_12): Remove declaration.
12611         (mips_expand_atomic_qihi): Declare function.
12612         * config/mips/mips.c (mips_expand_compare_and_swap_12): Rename to...
12613         (mips_expand_atomic_qihi): ... this.  Use new generator function
12614         parameter.
12615         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP_12): Add OPS parameter.
12616         (MIPS_COMPARE_AND_SWAP_12_0): Delete macro.
12617         (MIPS_COMPARE_AND_SWAP_12_ZERO_OP, MIPS_COMPARE_AND_SWAP_12_NONZERO_OP,
12618         MIPS_SYNC_OP_12, MIPS_SYNC_OP_12_NOT_NOP,
12619         MIPS_SYNC_OP_12_NOT_NOT, MIPS_SYNC_OLD_OP_12,
12620         MIPS_SYNC_OLD_OP_12_NOT_NOP, MIPS_SYNC_OLD_OP_12_NOT_NOP_REG,
12621         MIPS_SYNC_OLD_OP_12_NOT_NOT, MIPS_SYNC_OLD_OP_12_NOT_NOT_REG,
12622         MIPS_SYNC_NEW_OP_12, MIPS_SYNC_NEW_OP_12_NOT_NOP,
12623         MIPS_SYNC_NEW_OP_12_NOT_NOT, MIPS_SYNC_EXCHANGE_12,
12624         MIPS_SYNC_EXCHANGE_12_ZERO_OP, MIPS_SYNC_EXCHANGE_12_NONZERO_OP):
12625         New macros.
12627 2008-05-20  H.J. Lu  <hongjiu.lu@intel.com>
12629         * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Add
12630         the missing break.
12632 2008-05-20  Anatoly Sokolov <aesok@post.ru>
12634         * config/avr/avr.h (machine_function): Add 'is_OS_main' field.
12635         * config/avr/avr.c (avr_OS_main_function_p): Add new function.
12636         (avr_attribute_table): Add 'OS_main' function attribute.
12637         (avr_regs_to_save, expand_prologue, expand_epilogue): Handle
12638         functions with 'OS_main' attribute.
12640 2008-05-20  Richard Guenther  <rguenther@suse.de>
12642         PR tree-optimization/35204
12643         * tree-ssa-sccvn.c (extract_and_process_scc_for_name): New
12644         helper, split out from ...
12645         (DFS): ... here.  Make the DFS walk non-recursive.
12647 2008-05-20  Sebastian Pop  <sebastian.pop@amd.com>
12648             Jan Sjodin  <jan.sjodin@amd.com>
12650         PR tree-optimization/36181
12651         * tree-parloops.c (loop_has_vector_phi_nodes): New.
12652         (parallelize_loops): Don't parallelize when the loop has vector
12653         phi nodes.
12655 2008-05-20  Jan Sjodin  <jan.sjodin@amd.com>
12656             Sebastian Pop  <sebastian.pop@amd.com>
12658         * tree-loop-linear.c (gather_interchange_stats): Look in the access
12659         matrix, and never look at the tree representation of the memory
12660         accesses.
12661         (linear_transform_loops): Computes parameters and access matrices.
12662         * tree-data-ref.c (compute_data_dependences_for_loop): Returns false
12663         when fails.
12664         (access_matrix_get_index_for_parameter): New.
12665         * tree-data-ref.h (struct access_matrix): New.
12666         (AM_LOOP_NEST_NUM, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
12667         AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
12668         AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT,
12669         am_vector_index_for_loop): New.
12670         (struct data_reference): Add field access_matrix.
12671         (DR_ACCESS_MATRIX): New.
12672         (compute_data_dependences_for_loop): Update declaration.
12673         (lambda_collect_parameters, lambda_compute_access_matrices): Declared.
12674         * lambda.h (lambda_vector_vec_p): Declared.
12675         * lambda-code.c: Depend on pointer-set.h.
12676         (lambda_collect_parameters_from_af, lambda_collect_parameters,
12677         av_for_af_base, av_for_af, build_access_matrix,
12678         lambda_compute_access_matrices): New.
12679         * Makefile.in (lambda-code.o): Depend on pointer-set.h.
12681 2008-05-20  Joseph Myers  <joseph@codesourcery.com>
12683         * doc/install.texi2html: Generate gcc-vers.texi in $DESTDIR not
12684         $SOURCEDIR/include.
12686 2008-05-20  Jan Sjodin  <jan.sjodin@amd.com>
12687             Sebastian Pop  <sebastian.pop@amd.com>
12689         PR tree-optimization/36206
12690         * tree-scalar-evolution.c: Remove enum INSERT_SUPERLOOP_CHRECS,
12691         FOLD_CONVERSIONS.
12692         (instantiate_scev_1): Rename flags to fold_conversions.
12693         Do not check for INSERT_SUPERLOOP_CHRECS, keep SSA_NAMEs defined
12694         outeside instantiation_loop.
12695         * tree-chrec.h (evolution_function_is_affine_in_loop): New.
12696         (evolution_function_is_affine_or_constant_p): Removed.
12697         * tree-data-ref.c (dr_analyze_indices): Replace resolve_mixers with
12698         instantiate_scev.
12699         (analyze_siv_subscript): Pass in the loop nest number.
12700         Call evolution_function_is_affine_in_loop instead of
12701         evolution_function_is_affine_p.
12702         (analyze_overlapping_iterations): Pass in the loop nest number.
12704 2008-05-20  Jan Sjodin  <jan.sjodin@amd.com>
12705             Sebastian Pop  <sebastian.pop@amd.com>
12707         PR tree-optimization/36206
12708         * tree-chrec.h (chrec_fold_op): New.
12709         * tree-data-ref.c (initialize_matrix_A): Traverse NOP_EXPR, PLUS_EXPR,
12710         and other trees.
12712 2008-05-20  Nathan Sidwell  <nathan@codesourcery.com>
12714         * c-incpath.c (INO_T_EQ): Do not define on non-inode systems.
12715         (DIRS_EQ): New.
12716         (remove_duplicates): Do not set inode on non-inode systems.
12717         Use DIRS_EQ.
12719 2008-05-20  Sandra Loosemore  <sandra@codesourcery.com>
12721         * config.gcc (tm_file): Update comments about relative pathnames.
12723 2008-05-20  Richard Guenther  <rguenther@suse.de>
12725         * tree-ssa-reassoc.c (fini_reassoc): Use the statistics infrastructure.
12726         * tree-ssa-sccvn.c (process_scc): Likewise.
12727         * tree-ssa-sink.c (execute_sink_code): Likewise.
12728         * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
12729         * tree-vrp.c (process_assert_insertions): Likewise.
12730         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Likewise.
12731         (perform_tree_ssa_dce): Likewise.
12732         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Likewise.
12733         (dump_dominator_optimization_stats): Likewise.
12734         * tree-vectorizer.c (vectorize_loops): Likewise.
12736 2008-05-20  Richard Guenther  <rguenther@suse.de>
12738         * tree-vn.c (vn_lookup_with_vuses): Do not use the alias oracle.
12740 2008-05-20  Kai Tietz  <kai.tietz@onevision.com>
12742         * config/i386/i386-protos.h (ix86_return_in_memory): Removed.
12743         (ix86_i386elf_return_in_memory): Likewise.
12744         (ix86_i386interix_return_in_memory): Likewise.
12745         * config/i386/i386-interix.h (TARGET_RETURN_IN_MEMORY): Removed.
12746         (SUBTARGET_RETURN_IN_MEMORY): New.
12747         * config/i386/i386elf.h: Likewise.
12748         * config/i386/ptx4-i.h: Likewise.
12749         * config/i386/sol2-10.h: Likewise.
12750         * config/i386/sysv4.h: Likewise.
12751         * config/i386/vx-common.h: Likewise.
12752         * config/i386/i386.h (TARGET_RETURN_IN_MEMORY): Removed.
12753         * config/i386/i386.c (ix86_return_in_memory): Made static and
12754         make use of optional SUBTARGET_RETURN_IN_MEMORY macro.
12755         (ix86_i386elf_return_in_memory): Removed.
12756         (ix86_i386interix_return_in_memory): Removed.
12757         (TARGET_RETURN_IN_MEMORY): Declared within i386.c only.
12758         * target-def.h (TARGET_RETURN_IN_MEMORY): Remove protection #ifdef.
12760 2008-05-20  Alexandre Oliva  <aoliva@redhat.com>
12762         * cselib.c (cselib_record_sets): Use correct mode for IF_THEN_ELSE.
12764 2008-05-19  Xinliang David Li  <davidxl@google.com>
12766         * tree-ssa-dce.c: Revert patches of 2008-05-17 and 2008-05-18.
12767         * opts.c: Ditto.
12768         * common.opt: Ditto.
12769         * doc/invoke.texi: Ditto.
12771 2008-05-19  Eric Botcazou  <ebotcazou@adacore.com>
12773         * tree.c (substitute_in_expr) <tcc_vl_exp>: Fix thinko.
12774         (substitute_placeholder_in_expr) <tcc_vl_exp>: Minor tweak.
12776 2008-05-19  H.J. Lu  <hongjiu.lu@intel.com>
12778         * config/i386/i386.c (ix86_expand_vector_init_concat): Change
12779         sizes of operand array from 8/4 to 4/2.
12780         (ix86_expand_vector_init_general): Change size of operand array
12781         from 32 to 16.  Remove op0, op1 and half_mode.
12783 2008-05-19  H.J. Lu  <hongjiu.lu@intel.com>
12785         * config/i386/i386.c (ix86_expand_vector_init_concat): New.
12786         (ix86_expand_vector_init_interleave): Likewise.
12787         (ix86_expand_vector_init_general): Use them.  Assert
12788         word_mode == SImode when n_words == 4.
12790 2008-05-19  Uros Bizjak  <ubizjak@gmail.com>
12792         * config/i386/i386.c (ix86_secondary_reload): New static function.
12793         (TARGET_SECONDARY_RELOAD): New define.
12794         * config/i386/i386.h (SECONDARY_OUTPUT_RELOAD_CLASS): Remove.
12795         * config/i386/i386.md (reload_outqi): Remove.
12797 2008-05-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12799         PR middle-end/35509
12800         * builtins.c (mathfn_built_in_1): Renamed from mathfn_built_in.
12801         Add `implicit' parameter.  Handle BUILT_IN_SIGNBIT.
12802         (mathfn_built_in): Rewrite in terms of mathfn_built_in_1.
12803         (fold_builtin_classify): Handle BUILT_IN_ISINF_SIGN.
12804         (fold_builtin_1): Likewise.
12805         * builtins.def (BUILT_IN_ISINF_SIGN): New.
12806         c-common.c (check_builtin_function_arguments): Handle
12807         BUILT_IN_ISINF_SIGN.
12808         * doc/extend.texi: Document __builtin_isinf_sign.
12809         * fold-const.c (operand_equal_p): Handle COND_EXPR.
12811 2008-05-18  Eric Botcazou  <ebotcazou@adacore.com>
12813         * tree-ssa-dom.c (tree_ssa_dominator_optimize): If some blocks need
12814         EH cleanup at the end of the pass, search for those that have been
12815         turned into forwarder blocks and do the cleanup on their successor.
12817 2008-05-18  Richard Guenther  <rguenther@suse.de>
12819         * tree-cfg.c (verify_gimple_expr): Allow conversions from
12820         pointers to sizetype and vice versa.
12822 2008-05-18 Xinliang David Li   <davidxl@google.com>
12824         * gcc/tree-ssa-dce.c: Coding style fix.
12825         (check_pow): Documentation comment.
12826         (check_log): Documenation comment. Coding style fix.
12827         (is_unnecessary_except_errno_call): Ditto.
12828         (gen_conditions_for_pow): Ditto.
12829         (gen_conditions_for_log): Ditto.
12830         (gen_shrink_wrap_conditions): Ditto.
12831         (shrink_wrap_one_built_in_calls): Ditto.
12832         * gcc/doc/invoke.texi: Better documentation string.
12833         * ChangeLog: Fix wrong change log entries from
12834         May 17 checkin on function call DCE.
12836 2008-05-17  Kaz Kojima  <kkojima@gcc.gnu.org>
12838         * config/sh/sh.c (sh_output_mi_thunk): Update the use of init_flow.
12840 2008-05-17  Kenneth Zadeck <zadeck@naturalbridge.com>
12842         * doc/rtl.texi (RTL_CONST_CALL_P, RTL_PURE_CALL_P): Fixed typos.
12843         * df-problems.c (simulation routines): Fixed block comment to
12844         properly say how to add forwards scanning functions.
12846 2008-05-17  Eric Botcazou  <ebotcazou@adacore.com>
12848         * tree-inline.c (setup_one_parameter): Remove dead code.
12850 2008-05-17  Eric Botcazou  <ebotcazou@adacore.com>
12852         * fold-const.c (fold_unary) <CASE_CONVERT>: Fold the cast into
12853         a BIT_AND_EXPR only for an INTEGER_TYPE.
12855 2008-05-17 Xinliang David Li   <davidxl@google.com>
12857         * gcc/tree-ssa-dce.c (cond_dead_built_in_calls): New static variable.
12858         (check_pow, check_log, is_unnecessary_except_errno_call): New
12859         functions to check for eliminating math functions that are pure
12860         except for setting errno.
12861         (gen_conditions_for_pow, gen_conditionas_for_log): New functions to
12862         general condition expressions for shrink-wrapping pow/log calls.
12863         (gen_shrink_wrap_conditions): Ditto.
12864         (shrink_wrap_one_built_in_call): Ditto.
12865         (shrink_wrap_conditional_dead_built_in_calls): Ditto.
12866         (mark_operand_necessary): If debugging, output if OP is necessary.
12867         (eliminate_unnecessary_stmts): Eliminate pow, log calls that are
12868         unnecessary.
12869         * gcc/opts.c (decode_options): set flag_tree_builtin_dce to 1 when
12870         opt level >= 2.
12871         * gcc/common.opt: New user flag -ftree-builtin-dce.
12872         * gcc/doc/invoke.texi (-ftree-builtin-dce): New option.
12874 2008-05-16  David S. Miller  <davem@davemloft.net>
12876         * config/sparc/linux.h (NO_PROFILE_COUNTERS): Undef before overriding.
12877         * config/sparc/linux64.h (NO_PROFILE_COUNTERS): Likewise.
12879 2008-05-16  Uros Bizjak  <ubizjak@gmail.com>
12881         PR target/36246
12882         * config/i386/i386.h (SECONDARY_MEMORY_NEEDED_MODE): New define.
12884 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
12886         * ifcvt.c (dead_or_predicable): Rename
12887         df_simulate_one_insn_backwards to df_simulate_one_insn.
12888         * recog.c (peephole2_optimize): Ditto.
12889         * rtl-factoring.c (collect_pattern_seqs, clear_regs_live_in_seq):
12890         Ditto.
12891         * df.h: Rename df_simulate_one_insn_backwards to
12892         df_simulate_one_insn.  and delete df_simulate_one_insn_forwards.
12893         * df-problems.c (df_simulate_artificial_refs_at_top) Reversed
12894         scanning of defs and uses.
12895         (df_simulate_one_insn_backwards): Renamed to df_simulate_one_insn.
12896         (df_simulate_one_insn_forwards): Removed.
12898 2008-05-16  Doug Kwan  <dougkwan@google.com>
12900         * real.c (real_to_decimal, real_to_hexadecimal): Distinguish
12901         QNaN & SNaN.
12902         (real_from_string): Handle NaNs and Inf as approriate.
12904 2008-05-16  Nathan Froyd  <froydnj@codesourcery.com>
12906         * doc/gty.texi (Source Files Containing Type Information): Note
12907         that headers should appear first in the gtfiles list.
12909 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
12911         * tree.def (COND_EXEC): Properly documented this code.
12913 2008-05-16  Diego Novillo  <dnovillo@google.com>
12915         * dwarf2asm.c (dw2_assemble_integer): Clarify comment.
12916         * tree-nested.c (get_trampoline_type): Set DECL_CONTEXT for
12917         the new field.
12919 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
12921         * tree-ssa-dse (max_stmt_uid): Removed.
12922         (get_stmt_uid, dse_possible_dead_store_p, dse_optimize_stmt,
12923         tree_ssa_dse): Encapsulate all uses of stmt_ann->uid.
12924         * tree-ssa-sccvn.c (compare_ops, init_scc_vn): Ditto.
12925         * function.h (cfun.last_stmt_uid): New field.
12926         * tree-flow-inline.h (set_gimple_stmt_uid, gimple_stmt_uid,
12927         gimple_stmt_max_uid, set_gimple_stmt_max_uid, inc_gimple_stmt_max_uid):
12928         New functions.
12929         * tree-dfa.c (renumber_gimple_stmt_uids): New function.
12930         (create_stmt_ann): Initialize the ann->uid field.
12931         * tree-ssa-pre.c (compute_avail): Encapsulate the stmt_ann->uid
12932         with new calls.
12933         * tree-flow.h (renumber_gimple_stmt_uids): New function.
12935 2008-05-16  Nathan Froyd  <froydnj@codesourcery.com>
12937         * tree-flow.h (init_empty_tree_cfg_for_function): Declare.
12938         * tree-cfg.c (init_empty_tree_cfg_for_function): Define.
12939         (init_empty_tree_cfg): Call it.
12941 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
12943         * cfg.c (init_flow): Add argument THE_FUN.  Use it instead of cfun.
12944         Update all users.
12946 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
12948         * doc/invoke.text (-fdump-tree-*-verbose): New option.
12949         * tree-dump.c (dump_options): New verbose option.
12950         * tree-pretty-print.c (dump_phi_nodes, dump_generic_bb_buff):
12951         Add verbose dump.
12952         * tree-pass.h (TDF_VERBOSE): New dump flag.
12953         * print-tree.c (print_node): Added code to be able to print PHI_NODES.
12954         (tree-flow.h): Added include.
12955         * Makefile.in (print-tree.o):  Added TREE_FLOW_H.
12957 2008-05-16  Bernd Schmidt  <bernd.schmidt@analog.com>
12959         * config/bfin/bfin.c (bfin_discover_loops): Delete empty loops.
12961         From Jie Zhang  <jie.zhang@analog.com>
12962         * config/bfin/t-bfin-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
12963         MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Remove mcpu=bf532-0.3,
12964         mcpu=bf561-none and mcpu=bf561-0.2.
12965         * config/bfin/t-bfin-uclinux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
12966         MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Likewise.
12967         * config/bfin/t-bfin-linux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
12968         MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Likewise.
12969         * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add BFIN_CPU_UNKNOWN.
12970         * config/bfin/elf.h (STARTFILE_SPEC): Use specific CRT for BF561.
12971         (LIB_SPEC): Use proper linker script for bf561.  Error if no mcpu
12972         option.
12973         * config/bfin/bfin.c (bfin_cpu_type): Set to BFIN_CPU_UNKNOWN.
12974         (cputype_selected): Remove.
12975         (bfin_handle_option): Don't use cputype_selected.
12976         (override_options): When no mcpu option, enable all workarounds.
12977         Don't use bfin_workarounds.
12978         * config/bfin/bfin.h (DRIVER_SELF_SPECS): Don't set default
12979         processor type.
12980         (DEFAULT_CPU_TYPE): Don't define.
12982 2008-05-16  Richard Guenther  <rguenther@suse.de>
12984         * tree-ssa-propagate.c (substitute_and_fold): Fix stmt walking
12985         on deletion of the last stmt.
12987 2008-05-15  H.J. Lu  <hongjiu.lu@intel.com>
12989         * config/i386/i386.c (ix86_expand_vector_init_general): Optimize
12990         V8HImode for SSE2 and V16QImode for SSE4.1.
12992 2008-05-15  Kenneth Zadeck <zadeck@naturalbridge.com>
12994         * cgraph.h (compute_inline_parameters): Made public.
12995         * tree-pass.h (ipa_opt_pass): Removed function_generate_summary,
12996         variable_generate_summary, function_write_summary,
12997         variable_write_summary, variable_read_summary.  Added generate_summary,
12998         write_summary, read_summary.
12999         * cgraphunit.c (cgraph_process_new_functions): Changed call from
13000         pass_ipa_inline.function_generate_summary, to
13001         compute_inline_parameters.
13002         * ipa-inline.c (compute_inline_parameters): Made public and added
13003         node parameter.
13004         (compute_inline_parameters_for_current): New function.
13005         (pass_inline_param): Now calls compute_inline_parameters_for_current.
13006         (inline_generate_summary): Removed parameter and made to loop over
13007         all cgraph nodes.
13008         (pass_ipa_inline): Updated for new IPA_PASS structure.
13009         * passes.c (execute_ipa_summary_passes): Now is called once per
13010         pass rather than once per node*pass.
13012 2008-05-15  Anatoly Sokolov <aesok@post.ru>
13014         * config/avr/avr.c (avr_base_arch_macro, avr_have_movw_lpmx_p,
13015         avr_have_mul_p, avr_asm_only_p): Remove variables.
13016         (avr_override_options): Remove initialization of removed variables.
13017         (avr_file_start):  Convert removed variables to fields of
13018         'struct base_arch_s *avr_current_arch'.
13019         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): (Ditto.).
13020         (AVR_HAVE_MUL): (Ditto.).
13021         (AVR_HAVE_MOVW): (Ditto.).
13022         (AVR_HAVE_LPMX): (Ditto.).
13023         (avr_base_arch_macro, avr_have_movw_lpmx_p, avr_have_mul_p,
13024         avr_asm_only_p): Remove declaration.
13026 2008-05-15  Diego Novillo  <dnovillo@google.com>
13028         * config/arm/arm.c (arm_return_in_memory): Fix return type.
13029         * config/arm/arm-protos.h (arm_return_in_memory): Likewise.
13031 2008-05-15  Adam Nemet  <anemet@caviumnetworks.com>
13033         PR middle-end/36194
13034         * combine.c (check_conversion): Rename back to check_promoted_subreg.
13035         Don't call record_truncated_value from here.
13036         (record_truncated_value): Turn it into a for_each_rtx callback.
13037         (record_truncated_values): New function.
13038         (combine_instructions): Call note_uses with record_truncated_values.
13039         Change name of check_conversion to check_promoted_subreg.
13041 2008-05-15  Janis Johnson  <janis187@us.ibm.com>
13043         * doc/sourcebuild.texi: Document support for torture tests.
13045 2008-05-15  Uros Bizjak  <ubizjak@gmail.com>
13047         * config/i386/sse.md (*vec_concatv2sf_sse4_1): Add "m" constraint
13048         to alternative 4 of operand 2.
13050 2008-05-15  Richard Guenther  <rguenther@suse.de>
13052         * tree-pass.h (current_pass): Declare.
13053         (get_pass_for_id): Likewise.
13054         * passes.c (passes_by_id, passes_by_id_size): New globals.
13055         (set_pass_for_id): New function.
13056         (get_pass_for_id): Likewise.
13057         (register_one_dump_file): Use set_pass_for_id to populate passes_by_id.
13058         (execute_function_todo): Flush per function statistics.
13059         * toplev.c (compile_file): Init statistics.
13060         (general_init): Do early statistics initialization.
13061         (finalize): Finish statistics.
13062         * statistics.h (statistics_early_init): Declare.
13063         (statistics_init): Likewise.
13064         (statistics_fini): Likewise.
13065         (statistics_fini_pass): Likewise.
13066         (statistics_counter_event): Likewise.
13067         (statistics_histogram_event): Likewise.
13068         * statistics.c: New file.
13069         * Makefile.in (OBJS-common): Add statistics.o.
13070         (statistics.o): Add dependencies.
13071         * doc/invoke.texi (-fdump-statistics): Document.
13073         * tree-ssa-pre.c (compute_antic): Use statistics_histogram_event.
13074         (insert): Likewise.
13075         (execute_pre): Use statistics_counter_event.
13076         * tree-ssa-propagate.c (struct prop_stats_d): Add num_dce field.
13077         (substitute_and_fold): Increment it.  Use statistics_counter_event.
13079 2008-05-15  Diego Novillo  <dnovillo@google.com>
13081         http://gcc.gnu.org/ml/gcc-patches/2008-05/msg00893.html
13083         * treestruct.def (TS_STRUCT_FIELD_TAG): Remove.
13084         * tree-ssa-alias.c (new_type_alias): Remove references to
13085         sub-variables from comment.
13086         * tree-ssa-operands.c (swap_tree_operands): Likewise.
13088 2008-05-15  H.J. Lu  <hongjiu.lu@intel.com>
13090         * config/i386/sse.md (*vec_concatv2sf_sse4_1): Set prefix_extra
13091         attribute to 1 only for insertps alternative.
13093 2008-05-15  Bernd Schmidt  <bernd.schmidt@analog.com>
13095         * config/bfin/bfin.md (loadbytes): New pattern.
13096         * config/bfin/bfin.c (enum bfin_builtins): Add BFIN_BUILTIN_LOADBYTES.
13097         (bfin_init_builtins): Initialize it.
13098         (bdesc_1arg): Add it.
13100 2008-05-15  Sa Liu  <saliu@de.ibm.com>
13102         * testsuite/gfortran.dg/c_kind_int128_test1.f03: New.
13103         * testsuite/gfortran.dg/c_kind_int128_test2.f03: New.
13104         * testsuite/lib/target-supports.exp: Add
13105         check_effective_target_fortran_integer_16.
13107 2008-05-15  Bernd Schmidt  <bernd.schmidt@analog.com>
13109         * config/bfin/bfin.h (TARGET_RETURN_IN_MEMORY): Don't define here.
13110         * config/bfin/bfin-protos.h (bfin_return_in_memory): Don't declare.
13111         * config/bfin/bfin.c (bfin_return_in_memory): Now static.  Return bool.
13112         (TARGET_RETURN_IN_MEMORY): Define.
13114 2008-05-15  Richard Guenther  <rguenther@suse.de>
13116         PR middle-end/36244
13117         * tree-ssa-alias.c (new_type_alias): Do not set TREE_READONLY.
13118         * tree-flow-inline.h (unmodifiable_var_p): Memory tags never
13119         represent unmodifiable vars.
13121 2008-05-15  Richard Guenther  <rguenther@suse.de>
13123         * tree-dfa.c (refs_may_alias_p): Allow all kinds of
13124         INDIRECT_REF and TARGET_MEM_REF.
13125         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
13126         TARGET_MEM_REF.
13128 2008-05-15  Uros Bizjak  <ubizjak@gmail.com>
13129             H.J. Lu  <hongjiu.lu@intel.com>
13131         * config/i386/sse.md (*vec_concatv2sf_sse4_1): New insn pattern.
13132         (*vec_concatv2si_sse4_1): Use vector_move_operand predicate
13133         for operand 2.  Remove pinsr{q,d} with 0x0 immediate operand from
13134         insn alternatives.  Add missing alternatives.
13135         (*vec_concatv2di_rex64_sse4_1): Likewise.
13136         (*vec_concatv2si_sse2): Use "x" register constraint instead of "Y2".
13137         (*vec_concatv2di_rex64_sse): Rename from *vec_concatv2di_rex64.
13138         Require TARGET_SSE.
13140 2008-05-15  Richard Guenther  <rguenther@suse.de>
13142         PR tree-optimization/36009
13143         PR tree-optimization/36204
13144         * tree-ssa-loop-im.c (tree-ssa-propagate.h): Include.
13145         (determine_invariantness_stmt): Record the loop a store is
13146         always executed in.
13147         * Makefile.in (tree-ssa-loop-im.o): Add tree-ssa-propagate.h
13148         dependency.
13150 2008-05-15  Richard Guenther  <rguenther@suse.de>
13152         PR tree-optimization/34330
13153         * tree-ssa-alias.c (get_smt_for): Only assert that accesses
13154         through the pointer will alias the SMT.
13156 2008-05-14  Andreas Tobler  <a.tobler@schweiz.org>
13158         * config/sparc/sparc.h (NO_PROFILE_COUNTERS): Define as 0.
13160 2008-05-14  H.J. Lu  <hongjiu.lu@intel.com>
13162         * config/i386/sse.md (*sse4_1_pinsrq): Make it 64bit only.
13164 2008-05-14  Michael Meissner  <michael.meissner@amd.com>
13165             Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
13167         * optabs.h (optab_index): Add OTI_vashl, OTI_vlshr, OTI_vashr,
13168         OTI_vrotl, OTI_vrotr to support vector/vector shifts.
13169         (vashl_optab): New optab for vector/vector shifts.
13170         (vashr_optab): Ditto.
13171         (vlshr_optab): Ditto.
13172         (vrotl_optab): Ditto.
13173         (vrotr_optab): Ditto.
13174         (optab_subtype): New enum for optab_for_tree_code call.
13175         (optab_for_tree_code): Add enum optab_subtype argument.
13177         * optabs.c (optab_for_tree_code): Take an additional argument to
13178         distinguish between a vector shift by a scalar and vector shift by
13179         a vector.  Make lshr/ashr/ashl/rotl/rotr optabs just vector
13180         shifted by a scalar.  Use vlshr/vashr/vashl/vrotl/vrotr for the
13181         vector shift by a vector.
13182         (expand_widen_pattern_expr): Pass additional argument to
13183         optab_for_tree_code.
13185         * genopinit.c (optabs): Add vashr_optab, vashl_optab, vlshr_optab,
13186         vrotl_optab, vrotr_optab.
13188         * expr.c (expand_expr_real_1): Update calls to
13189         optab_for_tree_code to distinguish between vector shifted by a
13190         scalar and vector shifted by a vector.
13191         * tree-vectorizer.c (supportable_widening_operation): Ditto.
13192         (supportable_narrowing_operation): Ditto.
13193         * tree-vect-analyze.c (vect_build_slp_tree): Ditto.
13194         * tree-vect-patterns.c (vect_pattern_recog_1): Ditto.
13195         * tree-vect-transform.c (vect_model_reduction_cost): Ditto.
13196         (vect_create_epilog_for_reduction): Ditto.
13197         (vectorizable_reduction): Ditto.
13198         (vectorizable_operation): Ditto.
13199         (vect_strided_store_supported): Ditto.
13200         (vect_strided_load_supported): Ditto.
13201         * tree-vect-generic.c (expand_vector_operations_1): Ditto.
13202         * expmed.c (expand_shift): Ditto.
13204         * doc/md.texi (ashl@var{m}3): Document that operand 2 is always a
13205         scalar type.
13206         (ashr@var{m}3): Ditto.
13207         (vashl@var{m}3): Document new vector/vector shift standard name.
13208         (vashr@var{m}3): Ditto.
13209         (vlshr@var{m}3): Ditto.
13210         (vrotl@var{m}3): Ditto.
13211         (vrotr@var{m}3): Ditto.
13213         * config/i386/i386.md (PPERM_SRC): Move PPERM masks here from i386.c.
13214         (PPERM_INVERT): Ditto.
13215         (PPERM_REVERSE): Ditto.
13216         (PPERM_REV_INV): Ditto.
13217         (PPERM_ZERO): Ditto.
13218         (PPERM_ONES): Ditto.
13219         (PPERM_SIGN): Ditto.
13220         (PPERM_INV_SIGN): Ditto.
13221         (PPERM_SRC1): Ditto.
13222         (PPERM_SRC2): Ditto.
13224         * config/i386/sse.md (mulv2di3): Add SSE5 support.
13225         (sse5_pmacsdql_mem): New SSE5 define_and_split that temporarily
13226         allows a memory operand to be the value being added, and split it
13227         to improve vectorization.
13228         (sse5_pmacsdqh_mem): Ditto.
13229         (sse5_mulv2div2di3_low): SSE5 32-bit multiply and extend function.
13230         (sse5_mulv2div2di3_high): Ditto.
13231         (vec_pack_trunc_v8hi): Add SSE5 pperm support.
13232         (vec_pack_trunc_v4si): Ditto.
13233         (vec_pack_trunc_v2di): Ditto.
13234         (sse5_pcmov_<mode>): Remove code that tried to use use
13235         andps/andnps instead of pcmov.
13236         (vec_widen_smult_hi_v4si): If we have SSE5, use the pmacsdql and
13237         pmacsdqh instructions.
13238         (vec_widen_smult_lo_v4si): Ditto.
13240         * config/i386/i386.c (PPERM_SRC): Move PPERM masks to i386.md.
13241         (PPERM_INVERT): Ditto.
13242         (PPERM_REVERSE): Ditto.
13243         (PPERM_REV_INV): Ditto.
13244         (PPERM_ZERO): Ditto.
13245         (PPERM_ONES): Ditto.
13246         (PPERM_SIGN): Ditto.
13247         (PPERM_INV_SIGN): Ditto.
13248         (PPERM_SRC1): Ditto.
13249         (PPERM_SRC2): Ditto.
13250         (ix86_expand_sse_movcc): Move the SSE5 test after the if
13251         true/false tests.
13252         (ix86_expand_int_vcond): If SSE5 generate all possible integer
13253         comparisons.
13254         (ix86_sse5_valid_op_p): Allow num_memory to be negative, which
13255         says ignore whether the last reference is a memory operand.
13257 2008-05-14  Michael Meissner  <michael.meissner@amd.com>
13258             Paolo Bonzini <bonzini at gnu dot org>
13260         * config/rs6000/rs6000.c (bdesc_2arg): Change the names of vector
13261         shift patterns.
13263         * config/rs6000/altivec.md (vashl<mode>3): Rename from ashl<mode>3.
13264         (vlshr<mode>3): Rename from vlshr<mode>3.
13265         (vashr<mode>3): Rename from vashr<mode>3.
13266         (mulv4sf3): Change the names of vector shift patterns.
13267         (mulv4si3): Ditto.
13268         (negv4sf2): Ditt.
13270         * config/spu/spu.c (spu_initialize_trampoline): Rename vector
13271         shift insns.
13273         * config/spu/spu-builtins.def (SI_SHLH): Rename vector shift insns.
13274         (SI_SHLHI): Ditto.
13275         (SI_SHL): Ditto.
13276         (SI_SHLI): Ditto.
13277         (SI_ROTH): Ditto.
13278         (SI_ROTHI): Ditto.
13279         (SI_ROT): Ditto.
13280         (SI_ROTI): Ditto.
13281         (SPU_RL_0): Ditto.
13282         (SPU_RL_1): Ditto.
13283         (SPU_RL_2): Ditto.
13284         (SPU_RL_3): Ditto.
13285         (SPU_RL_4): Ditto.
13286         (SPU_RL_5): Ditto.
13287         (SPU_RL_6): Ditto.
13288         (SPU_RL_7): Ditto.
13289         (SPU_SL_0): Ditto.
13290         (SPU_SL_1): Ditto.
13291         (SPU_SL_2): Ditto.
13292         (SPU_SL_3): Ditto.
13293         (SPU_SL_4): Ditto.
13294         (SPU_SL_5): Ditto.
13295         (SPU_SL_6): Ditto.
13296         (SPU_SL_7): Ditto.
13298         * config/spu/spu.md (v): New iterator macro to add v for vector types.
13299         (floatunssidf2_internal): Change vector/vector shift names.
13300         (floatunsdidf2_internal): Ditto.
13301         (mulv8hi3): Ditto.
13302         (ashrdi3): Ditto.
13303         (ashrti3): Ditto.
13304         (cgt_df): Ditto.
13305         (cgt_v2df): Ditto.
13306         (dftsv): Ditto.
13307         (vashl<mode>3): Rename from ashl<mode>3.
13308         (vashr<mode>3): Rename from ashr<mode>3.
13309         (vlshr<mode>3): Rename from lshr<mode>3.
13310         (vrotl<mode>3): Rename from rotl<mode>3.
13312 2008-05-14  Michael Meissner  <michael.meissner@amd.com>
13314         PR target/36224
13315         * config/i386/sse.md (vec_widen_smult_hi_v4si): Delete, using unsigned
13316         multiply gives the wrong value when doing widening multiplies.
13317         (vec_widen_smult_lo_v4si): Ditto.
13319 2008-05-14  Kenneth Zadeck <zadeck@naturalbridge.com>
13321         * optabs.c (prepare_cmp_insn): Changed LCT_PURE_MAKE_BLOCK to
13322         LCT_PURE and LCT_CONST_MAKE_BLOCK to LCT_CONST in calls to
13323         emit_library_call_value.
13324         * builtins.c (expand_builtin_powi, expand_builtin_memcmp): Ditto.
13325         * tree.h (ECF_LIBCALL_BLOCK): Removed.
13326         * calls.c (initialize_argument_information, precompute_arguments,
13327         expand_call, emit_library_call_value_1): Remove ECF_LIBCALL_BLOCK.
13328         (precompute_arguments): Removed flags parameter.
13329         * rtl.h (LCT_CONST_MAKE_BLOCK, LCT_PURE_MAKE_BLOCK): Removed.
13331 2008-05-14  Richard Guenther  <rguenther@suse.de>
13333         * tree-ssa-dse.c (dse_possible_dead_store_p): Remove dead code.
13334         Make sure to register the store if the use is a PHI_NODE.
13336 2008-05-14  Olivier Hainque  <hainque@adacore.com>
13338         * expr.c (expand_expr_real_1) <normal_inner_ref>: Force op0 to
13339         memory if the component is to be referenced in BLKmode according
13340         to get_inner_reference.
13342 2008-05-14  Adam Nemet  <anemet@caviumnetworks.com>
13344         * calls.c (emit_library_call_value_1): Restore code clearing
13345         ECF_LIBCALL_BLOCK to ensure that we only call end_sequence once.
13347 2008-05-14  Olivier Hainque  <hainque@adacore.com>
13348             Nicolas Roche  <roche@adacore.com>
13350         * configure.ac: Add support for a "gcc_subdir" variable in
13351         config-lang.in, to denote a subdirectory where the language/GCC
13352         integration files are to be found.
13353         * configure: Regenerate.
13355 2008-05-14  Ira Rosen  <irar@il.ibm.com>
13357         PR tree-optimization/36098
13358         * tree-vect-analyze.c (vect_analyze_group_access): Set the gap
13359         value for the first load in the group in case of a gap.
13360         (vect_build_slp_tree): Check that there are no gaps in loads.
13362 2008-05-14  Kenneth Zadeck <zadeck@naturalbridge.com>
13364         * doc/rtl.texi: Removed reference to REG_NO_CONFLICT notes.
13365         * optabs.c (expand_binop, expand_absneg_bit, expand_unop,
13366         expand_copysign_bit, ): Change call to emit_no_conflict_block to
13367         emit_insn and remove unneeded code to construct extra args.
13368         (emit_no_conflict_block): Removed.
13369         * optabls.h: (emit_no_conflict_block): Removed.
13370         * cse.c (cse_extended_basic_block): Remove search for
13371         REG_NO_CONFLICT note.
13372         * global.c: Removed incorrect comment added in revision 117.
13373         * expr.c (convert_move): Change call to emit_no_conflict_block to
13374         emit_insn.
13375         * recog.c: Change comments so that they do not mention
13376         REG_NO_CONFLICT.
13377         * local_alloc.c (combine_regs): Removed last parameter.
13378         (no_conflict_p): Removed.
13379         (block_alloc): Removed note, no_conflict_combined_regno and set
13380         local vars. Removed all code to process REG_NO_CONFLICT blocks.
13381         (combine_regs): Removed already_dead and code to look for
13382         REG_NO_CONFLICT notes.
13383         * lower_subreg (remove_retval_note): Removed code to look for
13384         REG_NO_CONFLICT block.
13385         (resolve_reg_notes): Removed REG_NO_CONFLICT case.
13386         (resolve_clobber): Remove code to process libcalls that have
13387         REG_NO_CONFLICT notes.
13388         * loop_invariant.c (find_invariant_insn): Removed REG_NO_CONFLICT
13389         case.
13390         * combine.c (can_combine_p, distribute_notes):  Removed
13391         REG_NO_CONFLICT case.
13392         * config/cris/cris.md (movdi pattern): Changed emit_no_conflict_block
13393         to emit_insns.
13394         * config/mn10300/mn10300.md (absdf2, negdf2 patterns): Ditto.
13395         * config/m68k/m68k.md (negdf2, negxf2, absdf2, absxf2 patterns):
13396         Ditto.
13397         * reg-notes.def (NO_CONFLICT): Removed.
13399 2008-05-14  David S. Miller  <davem@davemloft.net>
13401         * config/sparc/sparc.c (sparc_profile_hook): If
13402         NO_PROFILE_COUNTERS, don't generate and pass a label into mcount.
13403         * config/sparc/linux.h (NO_PROFILE_COUNTERS): Define as 1.
13404         * config/sparc/linux64.h (NO_PROFILE_COUNTERS): Likewise.
13406 2008-05-14  Andreas Krebbel  <krebbel1@de.ibm.com>
13408         * cse.c (cse_cc_succs): Invoke delete_insn_and_edges.
13410 2008-05-13  Uros Bizjak  <ubizjak@gmail.com>
13412         PR target/36222
13413         * config/i386/i386.c (ix86_expand_vector_init_general): Rearrange op0
13414         and op1 expansion before vector concat to have less live pseudos.
13416 2008-05-13  H.J. Lu  <hongjiu.lu@intel.com>
13418         * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Use
13419         ix86_expand_vector_set if supported.
13421 2008-05-13  Diego Novillo  <dnovillo@google.com>
13422             Kenneth Zadeck  <zadeck@naturalbridge.com>
13424         http://gcc.gnu.org/ml/gcc-patches/2008-05/msg00748.html
13426         * tree.h (init_phinodes, fini_phinodes, release_phi_node,
13427         phinodes_print_statistics, init_ssanames, fini_ssanames,
13428         make_ssa_name, duplicate_ssa_name, duplicate_ssa_name_ptr_info,
13429         release_ssa_name, release_defs, replace_ssa_name_symbol,
13430         ssanames_print_statistics): Move ...
13431         * tree-flow.h: ... here.
13432         * tree-ssanames.c (init_ssanames): Add arguments FN and SIZE.
13433         Use FN instead of cfun.
13434         (make_ssa_name_fn): Rename from make_ssa_name.
13435         (pass_release_ssa_names): Add TODO_dump_func to finish flags.
13436         * tree-flow-inline.h (make_ssa_name): Move from
13437         tree-ssanames.c.  Convert to static inline.  Call make_ssa_name_fn.
13438         * omp-low.c (expand_omp_parallel):
13439         * tree-flow-inline.h (redirect_edge_var_map_result):
13440         * tree-ssa.c (init_tree_ssa): Add argument FN.
13441         Use it instead of cfun.  Update all users.
13443 2008-05-13  Tom Tromey  <tromey@redhat.com>
13445         PR preprocessor/22168:
13446         * doc/cpp.texi (Top): Update menu.
13447         (Alternatives to Wrapper #ifndef): New node.
13448         (Other Directives): Document deprecation.
13449         (Obsolete Features): Remove menu.
13450         (Assertions): Merge node into Obsolete Features.
13451         (Obsolete once-only headers): Move earlier; rename to Alternatives
13452         to Wrapper #ifndef.
13453         * doc/cppopts.texi: Update.
13454         * c.opt (Wdeprecated): Enable for C and ObjC.
13455         * doc/invoke.texi (Option Summary): Move -Wno-deprecated.
13456         (C++ Dialect Options): Move -Wno-deprecated from here to...
13457         (Warning Options): ... here.
13459 2008-05-13  Richard Guenther  <rguenther@suse.de>
13461         PR middle-end/36227
13462         * fold-const.c (fold_sign_changed_comparison): Do not allow
13463         changes in pointer-ness.
13465 2008-05-12  Kaz Kojima  <kkojima@gcc.gnu.org>
13467         PR target/24713
13468         * config/sh/sh.c (sh_expand_prologue): Don't clear
13469         RTX_FRAME_RELATED_P for push insns.
13471 2008-05-12  Andy Hutchinson  <hutchinsonandy@aim.com>
13473         * config/avr/avr.h (MAX_OFILE_ALIGNMENT): Define.
13475 2008-05-12  Anatoly Sokolov <aesok@post.ru>
13477         * config/avr/avr.h (machine_function): Add 'is_leaf' field.
13478         * config/avr/avr.c (avr_regs_to_save): Compute 'machine->is_leaf'.
13479         Use 'machine->is_leaf' instead of 'leaf_func_p'.
13481 2008-05-12  H.J. Lu  <hongjiu.lu@intel.com>
13483         * config/i386/sse.md (*sse_concatv4sf): Renamed to ...
13484         (*vec_concatv4sf_sse): This.
13485         (*sse2_concatv2si): Renamed to ...
13486         (*vec_concatv2si_sse2): This.
13487         (*sse1_concatv2si): Renamed to ...
13488         (*vec_concatv2si_sse): This.
13489         (*vec_concatv2di_rex): Renamed to ...
13490         (*vec_concatv2di_rex64): This.
13491         (*vec_concatv2si_sse4_1): New.
13492         (*vec_concatv2di_rex64_sse4_1): Likewise.
13494 2008-05-12  Uros Bizjak  <ubizjak@gmail.com>
13496         PR rtl-optimization/36111
13497         * recog.c (validate_replace_rtx_1): Unshare new RTL expression
13498         that was created for swappable operands.
13500 2008-05-12  Samuel Tardieu  <sam@rfc1149.net>
13502         PR ada/36001
13503         * Makefile.in: Substitute GNATMAKE and GNATBIND.
13504         * configure.ac: Add call to ACX_PROG_GNAT.
13506 2008-05-11  Volker Reichelt  <v.reichelt@netcologne.de>
13508         * optc-gen.awk: Fix comment typo.
13510 2008-05-11  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
13512         * pretty-print.c (pp_integer_with_precision): Use
13513         HOST_LONG_LONG_FORMAT.
13515 2008-05-10  Kenneth Zadeck  <zadeck@naturalbridge.com>
13517         * gcse.c (store_killed_in_insn): Negated call to RTL_CONST_CALL_P.
13519 2008-05-10  H.J. Lu  <hongjiu.lu@intel.com>
13521         * config/i386/i386.c (bdesc_ptest): Removed.
13522         (ix86_builtin_type): Add INT_FTYPE_V2DI_V2DI_PTEST.
13523         (bdesc_args): Add __builtin_ia32_ptestz128,
13524         __builtin_ia32_ptestc128 and __builtin_ia32_ptestnzc128.
13525         (ix86_init_mmx_sse_builtins): Updated.
13526         (ix86_expand_args_builtin): Handle INT_FTYPE_V2DI_V2DI_PTEST.
13527         (ix86_expand_builtin): Updated.
13529 2008-05-10  Richard Sandiford  <rdsandiford@googlemail.com>
13531         * tree-cfg.c (valid_fixed_convert_types_p): New function.
13532         (verify_gimple_expr): Handle FIXED_CONVERT_EXPR.
13534 2008-05-10  Uros Bizjak  <ubizjak@gmail.com>
13536         * value-prof.c (interesting_stringop_to_profile): Do not
13537         return early for BUILT_IN_MEMPCPY.
13539 2008-05-09  H.J. Lu  <hongjiu.lu@intel.com>
13541         * calls.c (expand_call): Don't use callgraph to increase
13542         preferred_stack_boundary.
13544         * cgraph.h (cgraph_rtl_info): Use unsigned on
13545         preferred_incoming_stack_boundary.
13547         * final.c (rest_of_clean_state): Use unsigned on
13548         preferred_stack_boundary.
13550 2008-05-09  Tom Tromey  <tromey@redhat.com>
13552         PR preprocessor/22231:
13553         * c-opts.c (sanitize_cpp_opts): Disallow -MG if compilation is
13554         proceeding.
13556 2008-05-09  Uros Bizjak  <ubizjak@gmail.com>
13558         PR tree-optimization/36129
13559         * tree-ssa-ccp.c: Include value-prof.h.
13560         (execute_fold_all_builtins): Call gimple_remove_stmt_histograms if
13561         built-in function was folded to a constant.
13562         * Makefile.in (tree-ssa-ccp.c): Depend on value-prof.h
13564 2008-05-09  Jan Sjodin  <jan.sjodin@amd.com>
13565             Sebastian Pop  <sebastian.pop@amd.com>
13567         * tree-scalar-evolution.c: Document instantiate_scev.
13568         (instantiate_parameters_1): Renamed instantiate_scev_1.
13569         Don't use the same loop for instantiation_loop and evolution_loop.
13570         (instantiate_scev): New.
13571         (instantiate_parameters): Moved...
13572         (resolve_mixers): Update call to instantiate_scev_1 to pass the
13573         same loop twice.  Maintains the semantics for this function.
13574         * tree-scalar-evolution.h (instantiate_scev): Declare.
13575         (instantiate_parameters): ...here.  Now static inline.
13576         * tree-data-ref.c (dr_analyze_indices): Call instantiate_scev
13577         instead of resolve_mixers.
13579 2008-05-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
13581         * rtl-factoring.c (collect_pattern_seqs): Fix typo.
13583 2008-05-09  Tomas Bily  <tbily@suse.cz>
13585         * config/pa/pa.c (reloc_needed): Use CASE_CONVERT.
13586         * tree-cfg.c (verify_expr, verify_gimple_expr): Likewise.
13587         * tree-ssa-structalias.c (get_constraint_for): Likewise.
13588         * c-common.c (c_common_truthvalue_conversion): Likewise.
13589         * tree-object-size.c (compute_object_offset): Likewise.
13590         * tree-inline.c (estimate_num_insns_1): Likewise.
13591         * varasm.c (const_hash_1, compare_constant, copy_constant)
13592         (compute_reloc_for_constant, output_addressed_constants)
13593         (initializer_constant_valid_p): Likewise.
13594         * c-omp.c (check_omp_for_incr_expr): Likewise.
13595         * gimplify.c (gimplify_expr): Likewise.
13596         * c-typeck.c (c_finish_return): Likewise.
13597         * tree-vectorizer.c (supportable_widening_operation)
13598         (supportable_narrowing_operation): Likewise.
13599         * c-pretty-print.c (pp_c_cast_expression, pp_c_expression): Likewise.
13600         * matrix-reorg.c (can_calculate_expr_before_stmt): Likewise.
13601         * expr.c (highest_pow2_factor, expand_expr_real_1): Likewise.
13602         * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info)
13603         (descr_info_loc): Likewise.
13604         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
13605         * fold-const.c (operand_equal_p, make_range, extract_muldiv_1)
13606         (fold_unary): Likewise.
13607         * builtins.c (get_pointer_alignment): Likewise.
13608         * tree-scalar-evolution.c (interpret_rhs_modify_stmt)
13609         (instantiate_parameters_1): Likewise.
13610         * tree.c (expr_align, stabilize_reference): Likewise.
13611         * tree-pretty-print.c (dump_generic_node, op_prio): Likewise.
13612         * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
13613         * convert.c (strip_float_extensions): Use CONVERT_EXPR_P.
13614         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
13615         * config/alpha/alpha.c (va_list_skip_additions): Likewise.
13616         * c-common.c (c_alignof_expr, check_function_arguments_recurse):
13617         Likewise.
13618         * tree-ssa.c (tree_ssa_useless_type_conversion): Likewise.
13619         * varasm.c (initializer_constant_valid_p, output_constant): Likewise.
13620         * tree-ssa-forwprop.c (get_prop_source_stmt, can_propagate_from)
13621         (forward_propagate_addr_expr_1, forward_propagate_addr_expr)
13622         (forward_propagate_comparison)
13623         (tree_ssa_forward_propagate_single_use_vars): Likewise.
13624         * cfgexpand.c (discover_nonconstant_array_refs_r): Likewise.
13625         * emit-rtl.c (component_ref_for_mem_expr)
13626         (set_mem_attributes_minus_bitpos): Likewise.
13627         * tree-ssa-phiopt.c (conditional_replacement): Likewise.
13628         * gimplify.c (gimplify_conversion, goa_lhs_expr_p, gimplify_expr):
13629         Likewise.
13630         * c-typeck.c (default_function_array_conversion, build_indirect_ref)
13631         (build_function_call, pointer_diff, build_compound_expr)
13632         (c_finish_return): Likewise.
13633         * tree-vect-analyze.c (vect_determine_vectorization_factor): Likewise.
13634         * matrix-reorg.c (get_inner_of_cast_expr, may_flatten_matrices_1):
13635         Likewise.
13636         * tree-ssa-ifcombine.c (recognize_single_bit_test): Likewise.
13637         * expr.c (is_aligning_offset): Likewise.
13638         * tree-ssa-alias.c (is_escape_site): Likewise.
13639         * tree-stdarg.c (va_list_counter_bump, check_va_list_escapes)
13640         (check_all_va_list_escapes): Likewise.
13641         * tree-ssa-loop-ivopts.c (determine_base_object)
13642         (determine_common_wider_type): Likewise.
13643         * dojump.c (do_jump): Likewise.
13644         * tree-ssa-sccvn.c (simplify_unary_expression): Likewise.
13645         * tree-gimple.c (is_gimple_cast): Likewise.
13646         * fold-const.c (decode_field_reference, )
13647         (fold_sign_changed_comparison, fold_unary, fold_comparison)
13648         (fold_binary): Likewise.
13649         * tree-ssa-alias-warnings.c (find_alias_site_helper)
13650         (already_warned_in_frontend_p): Likewise.
13651         * builtins.c (get_memory_rtx, fold_builtin_next_arg): Likewise.
13652         * tree.c (really_constant_p, get_unwidened): Likewise.
13653         * tree-ssa-loop-niter.c (expand_simple_operations): Likewise.
13654         * tree-ssa-loop-im.c (rewrite_bittest): Likewise.
13655         * tree-vrp.c (register_edge_assert_for_2, register_edge_assert_for_1):
13656         Likewise.
13657         * tree.h (STRIP_NOPS, STRIP_SIGN_NOPS, STRIP_TYPE_NOPS): Use
13658         CONVERT_EXPR_P.
13659         (CONVERT_EXPR_P): Define.
13660         (CASE_CONVERT): Define.
13662 2008-05-08  Kenneth Zadeck  <zadeck@naturalbridge.com>
13664         PR middle-end/36117
13665         * dce.c (deletable_insn_p): Do not delete calls if df_in_progress.
13666         (delete_unmarked_insns): When deleting a call, call
13667         delete_unreachable_blocks.
13668         * rtl.texi (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
13669         RTL_CONST_OR_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P): Fixed doc.
13671 2008-05-08  Richard Guenther  <rguenther@suse.de>
13673         * doc/invoke.texi (-fdump-tree-salias): Remove documentation.
13674         (-ftree-salias): Likewise.
13675         (salias-max-implicit-fields): Remove param documentation.
13676         (salias-max-array-elements): Likewise.
13677         * tree-pass.h (pass_create_structure_vars): Remove.
13678         * params.h (SALIAS_MAX_IMPLICIT_FIELDS): Remove.
13679         (SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
13680         * tree-ssa-alias.c (create_structure_vars): Remove.
13681         (gate_structure_vars): Likewise.
13682         (pass_create_structure_vars): Likewise.
13683         (gate_build_alias): Likewise.
13684         (pass_build_alias): Adjust to run always and dump the function.
13685         * common.opt (ftree-salias): Hide.
13686         * passes.c (init_optimization_passes): Remove
13687         pass_create_structure_vars, adjust comment.
13688         * params.def (PARAM_SALIAS_MAX_IMPLICIT_FIELDS): Remove.
13689         (PARAM_SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
13690         * opts.c (decode_options): Do not set flag_tree_salias.
13691         (common_handle_option): Add OPT_ftree_salias to the backward
13692         compatibility section.
13694 2008-05-08  Richard Guenther  <rguenther@suse.de>
13696         * tree-flow-inline.h (var_can_have_subvars): Move ...
13697         * tree-ssa-structalias.c (var_can_have_subvars): ... here.
13698         * tree-flow.h (var_can_have_subvars): Remove.
13699         (push_fields_onto_fieldstack): Remove.
13700         (sort_fieldstack): Likewise.
13701         (struct fieldoff): Move ...
13702         * tree-ssa-structalias.c (struct fieldoff): ... here.  Remove
13703         alias_set and base_for_components fields.
13704         (sort_fieldstack): Make static.
13705         (push_fields_onto_fieldstack): Likewise.  Remove code that
13706         handles anything but RECORD_TYPEs.  Remove alias_set and
13707         base_for_components handling.
13708         (create_variable_info_for): Adjust.
13710 2008-05-08  Seongbae Park  <seongbae.park@gmail.com>
13712         * common.opt (Wframe-larger-than=): Shorten the help message
13713         to one line.
13714         * doc/invoke.texi (Wframe-larger-than=): Add more description.
13716 2008-05-08  Rafael Espíndola  <espindola@google.com>
13718         * tree-complex.c (expand_complex_div_wide): Don't create CONDs that
13719         trap.
13720         * tree-gimple.c (is_gimple_condexpr): Check that the expression doesn't
13721         trap and that both operands are gimple values.
13722         (canonicalize_cond_expr_cond): Use is_gimple_condexpr.
13723         * gcc/tree-eh.c (tree_could_trap_p): Correctly detect if a comparison
13724         is a fp operation.
13726 2008-05-08  Richard Sandiford  <rsandifo@nildram.co.uk>
13728         * read-rtl.c (join_c_conditions): Return the first string if the
13729         two strings are equal.
13731 2008-05-08  Richard Sandiford  <rsandifo@nildram.co.uk>
13733         * gensupport.h (pred_data): Add a "num_codes" field.
13734         (add_predicate_code): Declare.
13735         * gensupport.c (add_predicate_code): New function.
13736         (std_pred_table): Add an "allows_const_p" field.
13737         (std_preds): Set this field for predicates that allow RTX_CONST_OBJs.
13738         Remove the (incomplete) list of such codes from the codes field.
13739         (init_predicate_table): Use add_predicate_code.  Add all
13740         RTX_CONST_OBJs if allows_const_p is true.
13741         * genrecog.c (process_define_predicate): Use add_predicate_code.
13743 2008-05-08  David Daney  <ddaney@avtrex.com>
13744             Richard Sandiford  <rsandifo@nildram.co.uk>
13746         * config/mips/mips.md (mips_expand_compare_and_swap_12): Handle
13747         special case of constant zero operands.
13748         * config/mips/mips.c (mips_expand_compare_and_swap_12): Zero extend
13749         old and new values.  Special case constant zero values.
13750         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP): Skip 'sync' if compare
13751         fails.
13752         (MIPS_COMPARE_AND_SWAP_12): Handle constant zero operands.
13753         (MIPS_COMPARE_AND_SWAP_12_0): New macro.
13755 2008-05-08  Paolo Bonzini  <bonzini@gnu.org>
13757         PR target/36090
13758         * simplify-rtx.c (simplify_plus_minus): Create CONST of
13759         similar RTX_CONST_OBJ before CONST_INT.
13761 2008-05-08  Steve Ellcey  <sje@cup.hp.com>
13763         * stmt.c (expand_stack_restore): Change sa mode if needed.
13765 2008-05-08  Richard Guenther  <rguenther@suse.de>
13767         * config/i386/i386-protos.h (ix86_return_in_memory): Adjust
13768         return type to bool.
13769         (ix86_sol10_return_in_memory): Likewise.
13770         (ix86_i386elf_return_in_memory): Likewise.
13771         (ix86_i386interix_return_in_memory): Likewise.
13772         * config/i386/i386.c (ix86_return_in_memory): Likewise.
13773         (ix86_sol10_return_in_memory): Likewise.
13774         (ix86_i386elf_return_in_memory): Likewise.
13775         (ix86_i386interix_return_in_memory): Likewise.
13777 2008-05-08  Kai Tietz  <kai.tietz@onevision.com>
13779         PR bootstrap/36180
13780         * calls.c (compute_argument_block_size ): Add ATTRIBUTE_UNUSED to
13781         fndecl argument.
13782         (emit_library_call_value_1): Add ATTRIBUTE_UNUSED to variable fndecl.
13783         * target-def.h: Check that TARGET_RETURN_IN_MEMORY isn't
13784         declared in front.
13786 2008-05-08  Richard Guenther  <rguenther@suse.de>
13788         * tree-data-ref.c (dr_analyze_alias): Do not set DR_SUBVARS.
13789         * tree-data-ref.h (struct dr_alias): Remove subvars field.
13790         (DR_SUBVARS): Remove.
13791         * tree-dfa.c (dump_subvars_for): Remove.
13792         (debug_subvars_for): Likewise.
13793         (dump_variable): Do not dump subvars.
13794         (remove_referenced_var): Do not remove subvars.
13795         * tree-flow-inline.h (clear_call_clobbered): SFTs no longer exist.
13796         (lookup_subvars_for_var): Remove.
13797         (get_subvars_for_var): Likewise.
13798         (get_subvars_at): Likewise.
13799         (get_first_overlapping_subvar): Likewise.
13800         (overlap_subvar): Likewise.
13801         * tree-flow.h (subvar_t): Remove.
13802         (struct var_ann_d): Remove subvars field.
13803         * tree-ssa-alias.c (mark_aliases_call_clobbered): Remove queued
13804         argument.  Remove special handling of SFTs.
13805         (compute_tag_properties): Likewise.
13806         (set_initial_properties): Likewise.
13807         (compute_call_clobbered): Likewise.
13808         (count_mem_refs): Likewise.
13809         (compute_memory_partitions): Likewise.
13810         (compute_flow_insensitive_aliasing): Likewise.
13811         (setup_pointers_and_addressables): Likewise.
13812         (new_type_alias): Likewise.
13813         (struct used_part): Remove.
13814         (used_portions): Likewise.
13815         (struct used_part_map): Likewise.
13816         (used_part_map_eq): Likewise.
13817         (used_part_map_hash): Likewise.
13818         (free_used_part_map): Likewise.
13819         (up_lookup): Likewise.
13820         (up_insert): Likewise.
13821         (get_or_create_used_part_for): Likewise.
13822         (create_sft): Likewise.
13823         (create_overlap_variables_for): Likewise.
13824         (find_used_portions): Likewise.
13825         (create_structure_vars): Likewise.
13826         * tree.def (STRUCT_FIELD_TAG): Remove.
13827         * tree.h (MTAG_P): Adjust.
13828         (struct tree_memory_tag): Remove base_for_components and
13829         unpartitionable flags.
13830         (struct tree_struct_field_tag): Remove.
13831         (SFT_PARENT_VAR): Likewise.
13832         (SFT_OFFSET): Likewise.
13833         (SFT_SIZE): Likewise.
13834         (SFT_NONADDRESSABLE_P): Likewise.
13835         (SFT_ALIAS_SET): Likewise.
13836         (SFT_UNPARTITIONABLE_P): Likewise.
13837         (SFT_BASE_FOR_COMPONENTS_P): Likewise.
13838         (union tree_node): Remove sft field.
13839         * alias.c (get_alias_set): Remove special handling of SFTs.
13840         * print-tree.c (print_node): Remove handling of SFTs.
13841         * tree-dump.c (dequeue_and_dump): Likewise.
13842         * tree-into-ssa.c (mark_sym_for_renaming): Likewise.
13843         * tree-nrv.c (dest_safe_for_nrv_p): Remove special handling of SFTs.
13844         * tree-predcom.c (set_alias_info): Do not set subvars.
13845         * tree-pretty-print.c (dump_generic_node): Do not handle SFTs.
13846         * tree-ssa-loop-ivopts.c (get_ref_tag): Likewise.
13847         * tree-ssa-operands.c (access_can_touch_variable): Likewise.
13848         (add_vars_for_offset): Remove.
13849         (add_virtual_operand): Remove special handling of SFTs.
13850         (add_call_clobber_ops): Likewise.
13851         (add_call_read_ops): Likewise.
13852         (get_asm_expr_operands): Likewise.
13853         (get_modify_stmt_operands): Likewise.
13854         (get_expr_operands): Likewise.
13855         (add_to_addressable_set): Likewise.
13856         * tree-ssa.c (verify_ssa_name): Do not handle SFTs.
13857         * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
13858         * tree-vect-transform.c (vect_create_data_ref_ptr): Do not set subvars.
13859         * tree.c (init_ttree): Remove STRUCT_FIELD_TAG initialization.
13860         (tree_code_size): Remove STRUCT_FIELD_TAG handling.
13861         (tree_node_structure): Likewise.
13862         * tree-ssa-structalias.c (set_uids_in_ptset): Remove special
13863         handling of SFTs.
13864         (find_what_p_points_to): Likewise.
13866 2008-05-08  Sa Liu  <saliu@de.ibm.com>
13868         * config/spu/spu.md: Fixed subti3 pattern.
13870 2008-05-08  Richard Guenther  <rguenther@suse.de>
13872         PR middle-end/36154
13873         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
13874         sure to create a representative for trailing arrays for PTA.
13876 2008-05-08  Richard Guenther  <rguenther@suse.de>
13878         PR middle-end/36172
13879         * fold-const.c (operand_equal_p): Two objects which types
13880         differ in pointerness are not equal.
13882 2008-05-08  Kai Tietz  <kai.tietz@onevision.com>
13884         * calls.c (compute_argument_block_size): Add argument tree fndecl.
13885         (OUTGOING_REG_PARM_STACK_SPACE): Add function type argument.
13886         (emit_library_call_value_1): Add new variable fndecl initialized by
13887         NULL_TREE. It should be the decl type of orgfun, but this information
13888         seems not to be available here, so it uses the default calling abi.
13889         * config/arm/arm.c (arm_return_in_memory): Add fntype argumen.
13890         * config/arm/arm.h (RETURN_IN_MEMORY): Replace RETURN_IN_MEMORY
13891         by TARGET_RETURN_IN_MEMORY.
13892         * config/i386/i386-interix.h: Likewise.
13893         * config/i386/i386.h: Likewise.
13894         * config/i386/i386elf.h: Likewise.
13895         * config/i386/ptx4-i.h: Likewise.
13896         * config/i386/sol2-10.h: Likewise.
13897         * config/i386/sysv4.h: Likewise.
13898         * config/i386/vx-common.h: Likewise.
13899         * config/cris/cris.h: Removed #if 0 clause.
13900         * config/arm/arm-protos.h (arm_return_in_memory): Add fntype argument.
13901         * config/i386/i386-protos.h (ix86_return_in_memory): Add fntype
13902         argument.
13903         (ix86_sol10_return_in_memory): Likewise.
13904         (ix86_i386elf_return_in_memory): New.
13905         (ix86_i386interix_return_in_memory): New.
13906         * config/mt/mt-protos.h (mt_return_in_memory): New.
13907         * config/mt/mt.c: Likewise.
13908         * config/mt/mt.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
13909         (RETURN_IN_MEMORY):  Replace by TARGET_RETURN_IN_MEMORY.
13910         * config/bfin/bfin.h: Likewise.
13911         * config/bfin/bfin-protos.h (bfin_return_in_memory): Add fntype
13912         argument.
13913         * config/bfin/bfin.c: Likewise.
13914         * config/pa/pa.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
13915         * config/alpha/unicosmk.h: Likewise.
13916         * config/i386/cygming.h: Likewise.
13917         * config/iq2000/iq2000.h: Likewise.
13918         * config/mips/mips.h: Likewise.
13919         * config/mn10300/mn10300.h: Likewise.
13920         * config/rs6000/rs6000.h: Likewise.
13921         * config/score/score.h: Likewise.
13922         * config/spu/spu.h: Likewise.
13923         * config/v850/v850.h: Likewise.
13924         * defaults.h: Likewise.
13925         * doc/tm.texi (OUTGOING_REG_PARM_STACK_SPACE): Adjust documentation.
13926         * expr.c (emit_block_move): Adjust use of
13927         OUTGOING_REG_PARM_STACK_SPACE.
13928         * function.c (STACK_DYNAMIC_OFFSET): Adjust use of
13929         OUTGOING_REG_PARM_STACK_SPACE.
13930         * targhooks.c (default_return_in_memory): Remove RETURN_IN_MEMORY.
13932 2008-05-08  Jakub Jelinek  <jakub@redhat.com>
13934         * tree-parloops.c (create_parallel_loop): Set OMP_RETURN_NOWAIT
13935         on OMP_RETURN for OMP_FOR.
13937         PR debug/35896
13938         * dwarf2out.c (dw_expand_expr, common_check): Removed.
13939         (fortran_common): New function.
13940         (gen_variable_die): Call fortran_common instead of common_check,
13941         adjust for it returning tree instead of rtx.  Formatting.
13943 2008-05-07  Kenneth Zadeck  <zadeck@naturalbridge.com>
13945         PR rtl/7335
13946         PR rtl/33826
13947         * see.c (see_copy_insn): Copy new pure const attributes for new call.
13948         * c-decl.c (merge_decls): Ditto.
13949         * postreload.c (record_opr_changes): Change CONST_OR_PURE_CALL_P
13950         to RTL_CONST_OR_PURE_CALL_P.
13951         * tree.c (define_local_buitin): Rename DECL_IS_PURE to DECL_PURE_P.
13952         Initialized DECL_LOOPING_CONST_PURE.
13953         (process_call_operands): Set tree_side_effects properly.
13954         * tree.h (TREE_READONLY_DECL_P): Removed.
13955         (DECL_IS_PURE): Renamed to DECL_PURE_P.
13956         (DECL_LOOPING_OR_CONST_P): New macro.
13957         (struct tree_function_decl): Added looping_const_or_pure_p.
13958         (ECF_*) Renumbered.
13959         (ECF_LOOPING_OR_CONST_P): New macro.
13960         * rtlanal.c (pure_const_p): Removed.
13961         * builtins.c (expand_builtin): Rename DECL_IS_PURE to DECL_PURE_P.
13962         * reorg.c (delete_prior_computation) Changed CONST_OR_PURE_CALL_P
13963         to RTL_CONST_CALL_P.
13964         * ipa-pure-const.c (pure_const_state_e): Added looping field.
13965         (check_decl, check_tree, check_call, scan_function): Initialize
13966         looping.
13967         (analyze_function): Rename DECL_IS_PURE to DECL_PURE_P.
13968         (static_execute): Set looping true for recursive functions.
13969         Undo setting state to IPA_NEITHER for recursive functions.
13970         * cse.c (cse_insn):
13971         * ifcvt.c (noce_can_store_speculate_p): Changed
13972         CONST_OR_PURE_CALL_P and pure_call_p to RTL_CONST_CALL_P or
13973         RTL_CONST_OR_PURE_CALL_P.
13974         * dse.c (scan_insn): Ditto.
13975         * local-alloc.c (validate_equiv_mem, memref_used_between_p): Ditto.
13976         * gcse.c (oprs_not_seen_p) Changed CONST_OR_PURE_CALL_P to
13977         RTL_CONST_OR_PURE_CALL_P.
13978         (store_killed_in_insn): Changed CONST_OR_PURE_CALL_P and
13979         pure_call_p to RTL_CONST_CALL_P.
13980         * gimplify.c (gimplify_call_expr): Clear side effects for
13981         non-looping pure and constant calls.
13982         * calls.c (emit_call_1): Set rtl flags from ecf flags.
13983         (flags_from_decl_or_type): Set ecf flags from decl flags.
13984         (initialize_argument_information): Turn off
13985         ECF_LOOPING_CONST_OR_PURE when turning off ECF_CONST.
13986         Change const to pure if callee_copies is true rather than just
13987         turning off const.
13988         (expand_call): Turn off ECF_LOOPING_PURE_CONST_CALL and remove old
13989         way of marking pure calls.
13990         (emit_library_call_value_1): Turn off ECF_LOOPING_PURE_CONST_CALL.
13991         Remove hack that was supposed to fix pr7335 and remove old
13992         way of marking pure calls.
13993         * emit-rtl.c (emit_copy_of_insn_after): Copy RTL_CONST_CALL_P,
13994         RTL_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P.
13995         * cselib.c (cselib_process_insn): Changed CONST_OR_PURE_CALL_P to
13996         RTL_CONST_OR_PURE_CALL_P.
13997         * tree-ssa-pre.c (can_value_number_call): Fixed spacing.
13998         * loop-invariant.c (find_exits, find_invariant_bb): Changed
13999         CONST_OR_PURE_CALL_P to RTL_CONST_OR_PURE_CALL_P.
14000         * sched-deps.c (schedule_analyze): Ditto.
14001         * rtl.h (struct rtx_def): Use call field, unchanging field, and
14002         return_val field of calls to represent pure and const function info.
14003         (CONST_OR_PURE_CALL_P): Deleted macro.
14004         (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
14005         RTL_LOOPING_CONST_OR_PURE_CALL_P, RTL_CONST_OR_PURE_P): New macros.
14006         * tree-inline.c (copy_body_r): Changed TREE_READONLY_DECL_P to
14007         TREE_READONLY.
14008         * tree-optimize.c (execute_fixup_cfg): Added test for
14009         ECF_LOOPING_CONST_OR_PURE.
14010         * c-common.c (handle_pure_attribute): Changed DECL_IS_PURE to
14011         DECL_PURE_P.
14012         * tree-cfg.c (update_call_expr_flags): Do not clear tree side
14013         effects for looping pure or const calls.
14014         (verify_gimple_expr): Added verification code.
14015         * config/alpha/alpha.c (alpha_legitimize_address,
14016         alpha_emit_xfloating_libcall): Changed CONST_OR_PURE_CALL_P to
14017         RTL_CONST_CALL_P.
14018         * config/s390/s390.c (s390_emit_tls_call_insn): Ditto.
14019         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Ditto.
14020         * config/mips/mips.c (mips_call_tls_get_addr): Ditto.
14021         * cfgrtl.c (need_fake_edge_p): Changed CONST_OR_PURE_CALL_P to
14022         RTL_CONST_OR_PURE_CALL_P.
14023         * dce.c (deletable_insn_p): Allow non looping, non sibling, pure
14024         and const calls to be deleted.
14026 2008-05-07  Uros Bizjak  <ubizjak@gmail.com>
14028         PR target/35714
14029         * config/i386/mmx.md (mmx_subv2sf3): New expander.
14030         (*mmx_subv2sf3): Rename from mmx_subv2sf3 insn pattern.
14031         (*mmx_eqv2sf3): Rename from mmx_eqv2sf3 insn pattern.
14032         (mmx_eqv2sf3): New expander.  Use ix86_fixup_binary_operands_no_copy
14033         to handle nonimmediate operands.
14034         (*mmx_paddwd): Rename from mmx_paddwd insn pattern.
14035         (mmx_paddwd): New expander.  Use ix86_fixup_binary_operands_no_copy
14036         to handle nonimmediate operands.
14037         (*mmx_pmulhrwv4hi3): Rename from mmx_pmulhrwv4hi3 insn pattern.
14038         (mmx_pmulhrwv4hi3): New expander.  Use
14039         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14040         (*sse2_umulv1siv1di3): Rename from sse2_umulv1siv1di3 insn pattern.
14041         (sse2_umulv1siv1di3): New expander.  Use
14042         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14043         (*mmx_eq<mode>3): Rename from mmx_eq<mode>3 insn pattern.
14044         (mmx_eq<mode>3): New expander.  Use
14045         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14046         (*mmx_uavgv8qi3): Rename from mmx_uavgv8qi3 insn pattern.
14047         (mmx_uavgv8qi3): New expander.  Use
14048         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14049         (*mmx_uavgv4hi3): Rename from mmx_uavgv4hi3 insn pattern.
14050         (mmx_uavgv4hi3): New expander.  Use
14051         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14053         * config/i386/sse.md
14054         (sse_movhlps_exp): New expander.  Use ix86_fixup_binary_operands
14055         to handle nonimmediate operands.
14056         (sse_movlhps_exp): New expander.  Use ix86_fixup_binary_operands
14057         to handle nonimmediate operands.
14058         (sse_loadhps_exp): New expander.  Use ix86_fixup_binary_operands
14059         to handle nonimmediate operands.
14060         (sse_loadlps_exp): New expander.  Use ix86_fixup_binary_operands
14061         to handle nonimmediate operands.
14062         (sse2_unpckhpd_exp): New expander.  Use
14063         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14064         (sse2_unpcklpd_exp): New expander.  Use
14065         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14066         (sse_loadhpd_exp): New expander.  Use ix86_fixup_binary_operands
14067         to handle nonimmediate operands.
14068         (sse_loadlpd): New expander.  Use ix86_fixup_binary_operands
14069         to handle nonimmediate operands.
14070         (*sse2_<plusminus_insn><mode>3): Rename from
14071         sse2_<plusminus_insn><mode>3 insn pattern.
14072         (sse2_<plusminus_insn><mode>3): New expander.  Use
14073         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14074         (*sse2_umulv2siv2di3): Rename from sse2_umulv2siv2di3 insn pattern.
14075         (sse2_umulv2siv2di3): New expander.  Use
14076         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14077         (*sse4_1_mulv2siv2di3): Rename from sse4_1_mulv2siv2di3 insn pattern.
14078         (sse4_1_mulv2siv2di3): New expander.  Use
14079         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14080         (*sse2_pmaddwd): Rename from sse2_pmaddwd insn pattern.
14081         (sse2_pmaddwd): New expander.  Use
14082         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14083         (*sse2_eq<mode>3): Rename from sse2_eq<mode>3 insn pattern.
14084         (sse2_eq<mode>3): New expander.  Use
14085         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14086         (*sse4_1_eqv2di3): Rename from sse4_1_eqv2di3 insn pattern.
14087         (sse4_1_eqv2di3): New expander.  Use
14088         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14089         (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
14090         (sse2_uavgv16qi3): New expander.  Use
14091         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14092         (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
14093         (sse2_uavgv16qi3): New expander.  Use
14094         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14095         (*sse2_uavgv8hi3): Rename from sse2_uavgv8hi3 insn pattern.
14096         (sse2_uavgv8hi3): New expander.  Use
14097         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14098         (*ssse3_pmulhrswv8hi3): Rename from ssse3_pmulhrswv8hi3 insn pattern.
14099         (ssse3_pmulhrswv8hi3): New expander.  Use
14100         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14101         (*ssse3_pmulhrswv4hi3): Rename from ssse3_pmulhrswv4hi3 insn pattern.
14102         (ssse3_pmulhrswv4hi3): New expander.  Use
14103         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14105         (<sse>_vm<plusminus_insn><mode>3): Do not use ix86_binary_operator_ok.
14106         (<sse>_vmmul<mode>3): Ditto.
14107         (divv4sf3): Do not use ix86_fixup_binary_operands_no_copy.
14108         (divv2df3): Ditto.
14109         (ssse3_pmaddubsw128): Use register_operand for operand 1.
14110         (ssse3_pmaddubsw): Ditto.
14112         * config/i386/i386.c (struct_builtin_description)
14113         [IX86_BUILTIN_LOADHPS]: Use CODE_FOR_sse_loadhps_exp.
14114         [IX86_BUILTIN_STOREHPS]: Use CODE_FOR_sse_loadlps_exp.
14115         [IX86_BUILTIN_LOADHPD]: Use CODE_FOR_sse2_loadhpd_exp.
14116         [IX86_BUILTIN_LOADLPD]: Use CODE_FOR_sse2_loadlpd_exp.
14117         [IX86_BUILTIN_MOVHLPS]: Use CODE_FOR_sse_movhlps_exp.
14118         [IX86_BUILTIN_MOVLHPS]: Use CODE_FOR_sse_movlhps_exp.
14119         [IX86_BUILTIN_UNPCKHPD]: Use FOR_sse2_unpckhpd_exp.
14120         [IX86_BUILTIN_UNPCKLPD]: Use FOR_sse2_unpcklpd_exp.
14121         (ix86_fixup_binary_operands): Assert that src1
14122         and src2 must have the same mode when swapped.
14123         (ix86_expand_binop_builtin): Do not use ix86_fixup_binary_operands
14124         and ix86_binary_operator_ok.  Do not force operands in registers
14125         when optimizing.
14127 2008-05-07  Jan Hubicka  <jh@suse.cz>
14129         * cgraph.c (dump_cgraph_node): Update.
14130         * cgraph.h (cgraph_local_info): Break out inline summary.
14131         * cgraphunit.c (cgraph_process_new_functions): Use inliner analysis
14132         hook.
14133         * ipa-inline (inline_summary): New accestor function.
14134         (cgraph_clone_inlined_nodes, cgraph_check_inline_limits,
14135         cgraph_decide_inlining, compute_inline_parameters): Update.
14136         * ipa.c (cgraph_remove_unreachable_nodes): Remove statistics.
14138 2008-05-07  Maxim Kuvyrkov  <maxim@codesourcery.com>
14140         Cleanup ColdFire scheduling support and add V4 pipeline model.
14142         * config/m68k/m68k.md (UNSPEC_TIE): New constant.
14143         (define_attr cpu): Add cfv4 value.
14144         (define_attr type, define_attr type1): Merge into a single 'type'
14145         attribute.  Update all uses.
14146         (define_attr opx_type, define_attr opy_type, define_attr opx_access):
14147         Rearrange and update.  Rename value 'reg' to 'Rn', add value 'FPn'.
14148         Update all uses.
14149         (define_attr opx_mem, define_attr opy_mem): Remove.
14150         (define_attr op_mem): Clean up, update comment.
14151         (define_attr size): Use specific values instead of general int.
14152         (define_attr guess, define_attr split): Remove.  Update all uses.
14153         (movdf_internal, tstsi_internal, tsthi_internal, tstqi_internal,
14154         tst<mode>_68881, pushexthisi_const, movsi_const0_68000_10,
14155         movsi_const0_68040_60, movsi_const0, movsi_cf, movstrictqi_cf,
14156         zero_extendhisi2_cf, zero_extendqisi2_cfv4, cfv4_extendhisi2,
14157         68k_extendhisi2, extendqihi2, cfv4_extendqisi2, 68k_extendqisi2,
14158         floatsi<mode>2_68881, ftrunc<mode>2_68881, ftrunc<mode>2_cf,
14159         fix<mode>qi2_68881, fix<mode>hi2_68881, fix<mode>si2_68881,
14160         adddi_dishl32, addsi3_5200, add<mode>3_floatsi_68881,
14161         add<mode>3_floathi_68881, add<mode>3_floatqi_68881,
14162         add<mode>3_68881, add<mode>3_cf, subdi_dishl32, subsi3,
14163         sub<mode>3_floatsi_68881, sub<mode>3_floathi_68881,
14164         sub<mode>3_floatqi_68881, sub<mode>3_68881, sub<mode>3_cf,
14165         mulhi3, mulhisi3, mulhisisi3_s, mulsi3_68020, mulsi3_cf,
14166         umulhisi3, mulhisisi3_z, mul<mode>3_floatsi_68881,
14167         mul<mode>3_floathi_68881, mul<mode>3_floatqi_68881, fmul<mode>3_cf,
14168         div<mode>3_cf, sqrt<mode>2_cf, abs<mode>2_cf, clzsi2,
14169         one_cmplsi2_5200, subreghi1ashrdi_const32, ashrsi3, lshrsi3,
14170         bsetmemqi, bsetmemqi_ext, bclrmemqi, bclrmemqi_ext,
14171         beq, bne, bgt, blt, bordered, bunordered, buneq, bunge, bungt, bunle,
14172         bunlt, bltgt, tablejump_internal, call, non_symbolic_call_value,
14173         symbolic_call_value_jsr, symbolic_call_value_bsr, link):
14174         Update or set attributes.
14175         (stack_tie): New fake instruction.
14177         * config/m68k/m68k.h (TUNE_CFV4): New macro.
14178         (m68k_sched_attr_size): Update declaration.
14179         (m68k_sched_attr_type2): Remove.
14180         (m68k_sched_address_bypass_p, m68k_sched_indexed_address_bypass_p):
14181         Declare new bypass predicates.
14183         * config/m68k/m68k.c (m68k_sched_issue_rate,
14184         m68k_sched_first_cycle_multipass_dfa_lookahead): Declare hook
14185         implementations.
14186         (TARGET_SCHED_ISSUE_RATE,
14187         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Override hooks.
14188         (override_options): Handle scheduling for ColdFire V4 core.
14189         (m68k_expand_prologue): Emit stack_tie.
14190         (enum attr_op_type): Split value 'OP_TYPE_REG' to 'OP_TYPE_RN' and
14191         'OP_TYPE_FPN'.  Update all uses.
14192         (sched_guess_p): Remove.
14193         (sched_address_type): Handle symbolic addresses.
14194         (sched_get_operand): New static function.
14195         (sched_operand_type): Merge into sched_attr_op_type.
14196         (sched_attr_op_type): Handle FP registers, handle quick constants,
14197         update.
14198         (m68k_sched_attr_opx_type, m68k_sched_attr_opy_type): Update.
14199         (m68k_sched_attr_size): Update.  Move logic to ...
14200         (sched_get_attr_size_int): New static function.
14201         (sched_get_opxy_mem_type): New static function.
14202         (m68k_sched_attr_op_mem): Update.
14203         (m68k_sched_attr_type2): Remove.
14204         (sched_cfv4_bypass_data): New static variable.
14205         (m68k_sched_adjust_cost): Handle ColdFire V4 bypass.
14206         (m68k_sched_issue_rate): Implement scheduler hook.
14207         (struct _sched_ib: enabled_p): New field.
14208         (m68k_sched_variable_issue): Update.  Handle V4.
14209         (SCHED_DUMP_TODO, SCHED_DUMP_DONE, SCHED_DUMP_NOTHING,
14210         sched_dump_class_func_t, sched_dump_split_class,
14211         sched_dump_dfa_guess_unit_code, sched_dump_dfa_state,
14212         sched_dump_dfa_class, m68k_sched_dump): Remove.
14213         (m68k_sched_first_cycle_multipass_dfa_lookahead): Implement scheduler
14214         hook.
14215         (m68k_sched_init_global): Remove statisctics dumping, introduce
14216         sanity check that all instructions have pipeline reservations.  Handle
14217         ColdFire V4 core.
14218         (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
14219         Handle ColdFire V4 core.
14220         (sched_mem_operand_p, sched_get_reg_operand, sched_get_mem_operand):
14221         New static functions.
14222         (m68k_sched_address_bypass_p): New bypass predicate.
14223         (sched_get_indexed_address_scale): New static function.
14224         (m68k_sched_indexed_address_bypass_p): New bypass predicate.
14226         * cf.md: Update comments.
14227         (define_attr type2): Remove.  Use 'type' attribute instead.
14228         Update all uses.
14229         (cf_ib): Rename to cfv123_ib.  Update all uses.
14230         (cf_oep): Rename to cfv123_oep.  Update all uses.
14231         (cf_chr): Rename to cfv123_chr.  Update all uses.
14232         (cf_mem): Rename to cfv123_mem.  Update all uses.
14233         (cf_mac): Move to more appropriate place.
14234         (cfv123_guess): New automaton and cpu_unit.
14235         (cfv123_*, cfv12_*, cfv1_*, cfv2_*, cfv3_*): Use type attribute.
14236         Update uses of 'size' attribute.  Handle before reload scheduling.
14237         (cfv123_guess): New dummy reservation for unhandled instructions.
14238         (cfv4_*): Pipeline description of ColdFire V4 core.
14239         (ignore): New reservation to handle 'ignore' type.
14241 2008-05-07  Ian Lance Taylor  <iant@google.com>
14243         PR middle-end/36013
14244         * gimplify.c (find_single_pointer_decl_1): Don't look through
14245         indirections.
14246         (find_single_pointer_decl): Adjust comments.
14248 2008-05-07  Jakub Jelinek  <jakub@redhat.com>
14250         PR middle-end/36137
14251         * fold-const.c (fold_binary): Use STRIP_SIGN_NOPS instead of
14252         STRIP_NOPS on arguments even for MIN_EXPR and MAX_EXPR.
14254         PR middle-end/36106
14255         * omp-low.c (expand_omp_atomic_pipeline): Load value using the
14256         integral type rather than floating point, then VIEW_CONVERT_EXPR
14257         to the floating point type.
14259 2008-05-07  Uros Bizjak  <ubizjak@gmail.com>
14261         * config/i386/i386.c (ix86_expand_copysign): Force non-zero constant
14262         TFmode op0 to register.
14264 2008-05-07  Alan Modra  <amodra@bigpond.net.au>
14266         * c-decl.c (grokdeclarator): Comment typo.
14268 2008-05-06  Aldy Hernandez  <aldyh@redhat.com>
14270         * tree-flow.h: Remove prototype for computed_goto_p.
14271         * tree-cfg.c (computed_goto_p): Make static.
14273 2008-05-06  H.J. Lu  <hongjiu.lu@intel.com>
14275         PR target/35657
14276         * config/i386/i386.c (contains_128bit_aligned_vector_p): Renamed to ...
14277         (contains_aligned_value_p): This.  Handle _Decimal128.
14278         (ix86_function_arg_boundary): Only align _Decimal128 to its
14279         natural boundary and handle it properly.
14281 2008-05-06  Martin Jambor  <mjambor@suse.cz>
14283         * ipa-cp.c (ipcp_method_orig_node): Renamed to ipcp_get_orig_node.
14284         (ipcp_method_is_cloned): Renamed to ipcp_node_is_clone
14285         (ipcp_method_set_orig_node): Removed.
14286         (ipcp_cval_get_cvalue_type): Removed.
14287         (ipcp_method_get_scale): Renamed to ipcp_get_node_scale.
14288         (ipcp_method_set_scale): Renamed to ipcp_set_node_scale.
14289         (ipcp_cval_set_cvalue_type): Removed.
14290         (ipcp_cval_get_cvalue): Removed.
14291         (ipcp_cval_set_cvalue): Removed.
14292         (ipcp_type_is_const): Renamed to ipcp_lat_is_const.
14293         (ipcp_cval_equal_cvalues): Renamed to ipcp_lats_are_equal
14294         (ipcp_lats_are_equal): Changed parameters to two ipcp_lattice's
14295         (ipcp_cval_meet): Renamed to ipa_lattice_meet
14296         (ipcp_cval_changed): Changed to use ipcp_lat_is_const
14297         (ipcp_method_cval): Renamed to ipcp_get_ith_lattice
14298         (ipcp_get_ith_lattice): Changed parameters.
14299         (ipcp_cval_compute): Renamed to ipcp_lattice_from_jfunc
14300         (ipcp_lattice_from_jfunc): Changed parameters.
14301         (ipcp_redirect): Local lattice pointer instead of lattice type variable.
14302         (ipcp_method_cval_print): Added temporary variable info.
14303         (ipcp_redirect): Removed already unused local variable caller.
14304         (ipcp_redirect): New temporary variable orig_callee_info
14305         (ipcp_redirect): Removed newly unused local variable callee.
14306         (ipcp_redirect): Removed (a bit confusing) local variable type.
14307         (ipcp_insert_stage): Added local variable info.
14308         (ipcp_cval_changed): Renamed to ipcp_lattice_changed, parameters
14309         renamed too
14310         (ipcp_formal_create): Removed.
14311         (ipcp_method_cval_set): Removed.
14312         (ipcp_propagate_stage): Renamed lattice variables.
14313         (ipcp_method_cval_set_cvalue_type): Removed.
14314         (ipcp_method_cval_print): Renamed to ipcp_print_all_lattices
14315         (ipcp_print_all_lattices): Changed printed strings to refer to
14316         lattices rather than cvals.
14317         (ipcp_method_cval_init): Renamed to ipcp_initialize_node_lattices
14318         (ipcp_propagate_const): Changed formal parameters.
14319         (build_const_val): Changed formal parameters.
14320         (ipcp_insert_stage): Removed useless variable cvalue
14321         (build_const_val): Changed formal parameters.
14322         (ipcp_method_compute_scale): Renamed to ipcp_compute_node_scale
14323         (ipcp_after_propagate): Renamed to ipcp_change_tops_to_bottom
14324         (ipcp_callsite_param_print): Renamed to ipcp_print_all_jump_functions
14325         (ipcp_profile_mt_count_print): Renamed to ipcp_print_func_profile_counts
14326         (ipcp_print_func_profile_counts): Changed string from "method" to
14327         "function"
14328         (ipcp_profile_cs_count_print): Renamed to ipcp_print_call_profile_counts
14329         (ipcp_profile_edge_print): Renamed to ipcp_print_edge_profiles
14330         (ipcp_profile_bb_print): Renamed to ipcp_print_bb_profiles
14331         (ipcp_structures_print): Renamed to ipcp_print_all_structures
14332         (ipcp_profile_print): Renamed to ipcp_print_profile_data
14333         (ipcp_lat_is_const): Changed parameters and made inline.
14334         (ipcp_replace_map_create): Renamed to ipcp_create_replace_map
14335         (ipcp_redirect): Renamed to ipcp_need_redirect_p
14336         (ipcp_need_redirect_p): Calls ipcp_lat_is_const instead of using
14337         the predicate condition directly
14338         (ipcp_propagate_stage): Added local variable args. Removed local
14339         variable callee.  (Both are mere code simplifications.)
14340         (ipcp_method_dont_insert_const): Renamed to
14341         ipcp_node_not_modifiable_p.
14342         (ipcp_node_not_modifiable_p): Made inline.
14343         (ipcp_cloned_create): Renamed to ipcp_init_cloned_node
14344         (ipcp_propagate_const): Renamed to ipcp_propagate_one_const
14345         (ipcp_print_all_lattices): Removed variable cvalue
14346         (ipcp_method_scale_print): Renamed to ipcp_function_scale_print
14347         Updated comments.
14349 2008-05-06  Olivier Hainque  <hainque@adacore.com>
14351         * tree-sra.c (try_instantiate_multiple_fields): Early return
14352         if field has POINTER_TYPE.
14354 2008-05-06  Kai Tietz  <kai.tietz@onevision.com>
14356         * config/i386/i386.c (output_set_got): Fix for x86_64 output_emit_asm
14357         by using 'q' specifier for instruction.
14358         (ix86_file_end): Replaced case TARGET_64BIT_MS_ABI by TARGET_64BIT.
14360 2008-05-06  Anatoly Sokolov <aesok@post.ru>
14362         * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
14363         Change mode of zero_extract from QImode to HImode.
14364         (sign bit tests peepholes): (Ditto.).
14366 2008-05-06  Uros Bizjak  <ubizjak@gmail.com>
14368         * config/i386/mmx.md: Remove double backslashes from asm templates.
14369         (*mmx_addv2sf3): Rename from mmx_addv2sf3 insn pattern.
14370         (mmx_addv2sf3): New expander.  Use ix86_fixup_binary_operands_no_copy
14371         to handle nonimmediate operands.
14372         (*mmx_mulv2sf3): Rename from mmx_mulv2sf3 insn pattern.
14373         (mmx_mulv2sf3): New expander.  Use ix86_fixup_binary_operands_no_copy
14374         to handle nonimmediate operands.
14375         (*mmx_<code>v2sf3_finite): New insn pattern.
14376         (*mmx_<code>v2sf3): Rename from mmx_<code>v2sf3 insn pattern.
14377         (mmx_<code>v2sf3): New expander.  Use
14378         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14379         (mmx_<plusminus_insn><mode>3): New expander.  Use
14380         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14381         (*mmx_<plusminus_insn><mode>3): New insn pattern.
14382         (mmx_add<mode>3): Removed.
14383         (mmx_ssadd<mode>3): Ditto.
14384         (mmx_usadd<mode>3): Ditto.
14385         (mmx_sub<mode>3): Ditto.
14386         (mmx_sssub<mode>3): Ditto.
14387         (mmx_ussub<mode>3): Ditto.
14388         (*mmx_mulv4hi3): Rename from mmx_mulv4hi3 insn pattern.
14389         (mmx_mulv4hi3): New expander.  Use ix86_fixup_binary_operands_no_copy
14390         to handle nonimmediate operands.
14391         (*mmx_smulv4hi3_highpart): Rename from mmx_smulv4hi3_highpart
14392         insn pattern.
14393         (mmx_smulv4hi3_highpart): New expander.  Use
14394         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14395         (*mmx_umulv4hi3_highpart): Rename from mmx_umulv4hi3_highpart
14396         insn pattern.
14397         (mmx_umulv4hi3_highpart): New expander.  Use
14398         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14399         (*mmx_<code>v4hi3): Rename from mmx_<code>v4hi3 insn pattern.
14400         (mmx_<code>v4hi3): New expander.  Use
14401         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14402         (*mmx_<code>v8qi3): Rename from mmx_<code>v8qi3 insn pattern.
14403         (mmx_<code>v8qi3): New expander.  Use
14404         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14405         (*mmx_<code><mode>3): Rename from mmx_<code><mode>3 insn pattern.
14406         (mmx_<code><mode>3): New expander.  Use
14407         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14409 2008-05-05  Jan Hubicka  <jh@suse.cz>
14411         PR tree-optimization/36118
14412         * passes.c (pass_init_dump_file): Fix dump header.
14414 2008-05-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>
14416         PR middle-end/36141
14417         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't create
14418         VCE for function decls.
14420 2008-05-05  H.J. Lu  <hongjiu.lu@intel.com>
14422         * config/i386/sse.md (sse2_<plusminus_insn><mode>3): Fix a typo.
14424 2008-05-05  H.J. Lu  <hongjiu.lu@intel.com>
14426         * config/i386/i386.md (sat_plusminus): New.
14427         (plusminus_insn): Likewise.
14428         (plusminus_mnemonic): Likewise.
14429         (addsub): Removed.
14430         (comm): Add ss_plus, us_plus, ss_minus and us_minus.
14431         (*<addsub><mode>3_cc_overflow): Renamed to ...
14432         (*<plusminus_insn><mode>3_cc_overflow): This.
14433         (*<addsub>si3_zext_cc_overflow): Renamed to ...
14434         (*<plusminus_insn>si3_zext_cc_overflow): This.
14436         * config/i386/sse.md (<addsub><mode>3): Renamed to ...
14437         (<plusminus_insn><mode>3): This.
14438         (*<addsub><mode>3): Renamed to ...
14439         (*<plusminus_insn><mode>3): This.
14440         (<sse>_vm<addsub><mode>3): Renamed to ...
14441         (<sse>_vm<plusminus_insn><mode>3): This.
14442         (sse3_h<addsub>v4sf3): Renamed to ...
14443         (sse3_h<plusminus_insn>v4sf3): This.
14444         (sse3_h<addsub>v2df3): Renamed to ...
14445         (sse3_h<plusminus_insn>v2df3): This.
14446         (<plusminus_insn><mode>3): New.
14447         (*<plusminus_insn><mode>3): Likewise.
14448         (sse2_<plusminus_insn><mode>3): Likewise.
14449         (add<mode>): Removed.
14450         (*add<mode>3): Likewise.
14451         (sse2_ssadd<mode>3): Likewise.
14452         (sse2_usadd<mode>3): Likewise.
14453         (sub<mode>3): Likewise.
14454         (*sub<mode>3): Likewise.
14455         (sse2_sssub<mode>3): Likewise.
14456         (sse2_ussub<mode>3): Likewise.
14458 2008-05-05  Benjamin Kosnik  <bkoz@redhat.com>
14460         * gthr-single.h: Add in required interface elements as per gthr.h.
14461         Add stub types for __gthread_key_t, __gthread_once_t. Add defines
14462         for __GTHREAD_ONCE_INIT, __GTHREAD_RECURSIVE_MUTEX_INIT.
14463         Generalize UNUSED macro.
14464         (__gthread_once): Add.
14465         (__gthread_key_create): Add.
14466         (__gthread_key_delete): Add.
14467         (__gthread_getspecific): Add.
14468         (__gthread_setspecific): Add.
14470 2008-05-05  Andrew Pinski  <Andrew.Pinski@playstation.sony.com>
14472         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): If we have
14473         the same size types for the indirect reference on the rhs, then
14474         create a VCE.
14476 2008-05-05  Uros Bizjak  <ubizjak@gmail.com>
14478         * config/i386/i386.md
14479         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit): Use only
14480         one insn template instead of template series.
14481         (*xordi_1_rex64): Ditto.
14482         (*xordi_2_rex64): Ditto.
14484 2008-05-05  Ira Rosen  <irar@il.ibm.com>
14486         PR tree-optimization/36119
14487         * tree-vect-transform.c (vectorizable_assignment): Set NCOPIES to 1
14488         in case of SLP.
14490 2008-06-04  Jan Hubicka  <jh@suse.cz>
14492         tree-optimization/36100
14493         * tree-pass.h (pass_O0_always_inline): Declare.
14494         * ipa-inline.c (inline_transform): Remove dead code.
14495         (cgraph_gate_O0_always_inline, cgraph_O0_always_inline,
14496         pass_O0_always_inline): New.
14497         * passes.c (init_optimization_passes): Add pass_O0_always_inline.
14499 2008-05-04  Kai Tietz  <kai.tietz@onevision.com>
14501         * config/i386/i386.c (x86_output_mi_thunk): Use movq alternative
14502         mnemonic in this_param move for TARGET_64BIT.
14504 2008-05-04  Uros Bizjak  <ubizjak@gmail.com>
14506         * config/i386/i386.md (*strmovsi_1): Simplify asm alternatives.
14507         (*strmovsi_rex_1): Ditto.
14508         (*strsetsi_1): Ditto.
14509         (*strsetsi_rex_1): Ditto.
14511         (add<mode>cc): Macroize expander from addqicc, addhicc, addsicc and
14512         adddicc expanders using SWI mode iterator.
14514 2008-05-04  H.J. Lu  <hongjiu.lu@intel.com>
14516         PR target/36121
14517         * config/i386/i386.c (ix86_expand_special_args_builtin): Remove three
14518         argument handling.
14520 2008-05-04  David S. Miller  <davem@davemloft.net>
14522         * config.gcc (sparc*-*-*): Always set need_64bit_hwint to yes.
14523         (sparc*-*-linux*): Use linux.h in tm_file.
14524         (sparc-*-linux*): If 'enabled_targets' is 'all', build a bi-arch
14525         compiler defaulting to 32-bit.
14526         (sparc*-*-*): Remove explicit target settings of need_64bit_hwint,
14527         no longer needed.
14528         * config/sparc/linux.h: Remove definitions now obtained
14529         properly from linux.h
14530         * config/sparc/linux64.h: Likewise.
14531         (ASM_CPU_DEFAULT_SPEC): Change this to ASM_CPU64_DEFAULT_SPEC, we
14532         don't want this setting for 32-bit builds in a biarch compiler.
14533         * doc/install.texi: Add sparc-linux to list of targets
14534         supporting --enable-targets=all.
14536 2008-05-03  Andrew Pinski  <pinskia@gmail.com>
14538         * Makefile.in (tree-ssa-phiprop.o): Fix dependencies.
14540 2008-05-03  H.J. Lu  <hongjiu.lu@intel.com>
14542         * config/i386/i386.c (ix86_builtin_type): Move V4SI_FTYPE_V4SF
14543         after V4SI_FTYPE_V8HI.
14544         (ix86_init_mmx_sse_builtins): Move case V4HI_FTYPE_V4HI after
14545         case V4SI_FTYPE_V2DF.
14547 2008-05-03  Kenneth Zadeck  <zadeck@naturalbridge.com>
14549         * doc/invoke.texi (max-flow-memory-locations): Removed.
14550         * params.def (PARAM_MAX_FLOW_MEMORY_LOCATIONS): Removed.
14552 2008-05-03  Richard Guenther  <rguenther@suse.de>
14554         PR middle-end/34973
14555         * opts.c (set_Wstrict_aliasing): Handle the turn-off case.
14557 2008-05-02  David S. Miller  <davem@davemloft.net>
14559         * config.gcc (need_64bit_hwint): Document libcpp dependency.
14561 2008-05-02  Simon Baldwin <simonb@google.com>
14563         PR bootstrap/36108
14564         * c-common.h (warn_array_subscript_range): Removed.
14565         * c-common.c (warn_array_subscript_range): Ditto.
14566         * tree-vrp.c (check_array_ref): Revert to ignoring arrays with size 2.
14567         * c-typeck.c (build_array_ref): Remove warn_array_subscript_range.
14569 2008-05-02  H.J. Lu  <hongjiu.lu@intel.com>
14571         * config/i386/i386.c (ix86_special_builtin_type): New.
14572         (bdesc_special_args): Likewise.
14573         (ix86_expand_special_args_builtin): Likewise.
14574         (ix86_init_mmx_sse_builtins): Updated.
14575         (ix86_expand_builtin): Updated.
14576         (ix86_expand_store_builtin): Removed.
14577         (ix86_expand_unop_builtin): Likewise.
14579         * config/i386/mm3dnow.h (__v2sf): Moved to ...
14580         * config/i386/mmintrin.h (__v2sf): Here.
14582         * config/i386/xmmintrin.h (_mm_loadh_pi): Replace __v2si with
14583         const __v2sf.
14584         (_mm_loadl_pi): Likewise.
14585         (_mm_storeh_pi): Replace __v2si with __v2sf.
14586         (_mm_storel_pi): Likewise.
14588         * doc/extend.texi: Correct __builtin_ia32_loadhps,
14589         __builtin_ia32_loadlps, __builtin_ia32_storehps,
14590         __builtin_ia32_storelps, __builtin_ia32_loadhpd and
14591         __builtin_ia32_loadlpd.
14593 2008-05-02  H.J. Lu  <hongjiu.lu@intel.com>
14595         * config/i386/i386.c (ix86_builtin_type): Add FLOAT_FTYPE_FLOAT,
14596         V4SF_FTYPE_V4SF_VEC_MERGE and V2DF_FTYPE_V2DF_VEC_MERGE.
14597         (bdesc_args): Updated.  Add scalar SSE builtins with vec_merge.
14598         (ix86_init_mmx_sse_builtins): Updated.
14599         (ix86_expand_args_builtin): Likewise.
14600         (ix86_expand_builtin): Likewise.
14601         (ix86_expand_unop1_builtin): Renamed to ...
14602         (ix86_expand_unop_vec_merge_builtin): This.
14604 2008-05-01  Jan Hubicka  <jh@suse.cz>
14606         PR bootstrap/36100
14607         * ipa-inline.c (inline_generate_summary): Make static.
14608         (inline_transform): Do not call inlining at -O0; make static.
14609         * passes.c (execute_todo): Add sanity check.
14610         (execute_one_ipa_transform_pass): Execute proper flags.
14612 2008-05-01  Eric Botcazou  <ebotcazou@adacore.com>
14614         * tree.h (TYPE_NONALIASED_COMPONENT): Expand comment.
14615         (DECL_NONADDRESSABLE_P): Likewise.
14616         * alias.c (record_component_aliases): Fix comment.
14618 2008-05-01  Simon Baldwin <simonb@google.com>
14620         * c-common.h (warn_array_subscript_range): New function.
14621         * c-common.c (warn_array_subscript_range): Ditto.
14622         * tree-vrp.c (check_array_ref): Corrected code to agree with
14623         comment, ignoring only arrays of size 0 or size 1.
14624         * c-typeck.c (build_array_ref): Call warn_array_subscript_range.
14626 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
14628         * config/i386/i386.c (ix86_builtin_type): Replace
14629         DI_FTYPE_DI_DI_INT with V1DI2DI_FTYPE_V1DI_V1DI_INT.
14630         (bdesc_args): Updated.
14631         (ix86_init_mmx_sse_builtins): Likewise.
14632         (ix86_expand_args_builtin): Likewise.
14634         * config/i386/tmmintrin.h (_mm_alignr_pi8): Replace long long
14635         with __v1di.
14637         * doc/extend.texi: Correct __builtin_ia32_palignr.
14639 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
14641         PR target/36095
14642         * config/i386/i386.c (bdesc_crc32): Removed.
14643         (ix86_expand_crc32): Likewise.
14644         (ix86_builtin_type): Replace V2DI2TI_FTYPE_V2DI2TI_INT with
14645         V2DI2TI_FTYPE_V2DI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT with
14646         V2DI2TI_FTYPE_V2DI_V2DI_INT.  Add UINT64_FTYPE_UINT64_UINT64,
14647         UINT_FTYPE_UINT_UINT, UINT_FTYPE_UINT_USHORT and
14648         UINT_FTYPE_UINT_UCHAR.
14649         (bdesc_args): Updated. Add crc32 builtins.
14650         (ix86_init_mmx_sse_builtins): Updated.
14651         (ix86_expand_args_builtin): Updated to support subreg.
14653         * doc/extend.texi: Correct __builtin_ia32_crc32di.
14655 2008-05-01  Jan Hubicka  <jh@suse.cz>
14657         * tree-pass.h (opt_pass): Add IPA_PASS.
14658         (varpool_node, cgraph_node): Forward declare.
14659         (ipa_opt_pass): Define.
14660         (pass_ipa_inline): Turn into ipa_opt_pass.
14661         (pass_apply_inline): Remove.
14662         * ipa-inline.c (pass_ipa_inline): Turn into ipa_opt_pass.
14663         (apply_inline): Turn into ....
14664         (inline_transform): ... this one.
14665         (inline_generate_summary): New function.
14666         (pass_apply_inline): Remove.
14667         * function.h (ipa_opt_pass): Forward declare structure; typedef;
14668         vector.
14669         (struct function): Add ipa_transforms_to_apply.
14670         * passes.c (register_one_dump_file): Work on IPA_PASS.
14671         (init_optimization_passes): Remove pass_inline_parameters and
14672         pass_apply_inline.
14673         (pass_init_dump_file, pass_fini_dump_file): Break out from ....
14674         (execute_one_pass) ... here; apply transforms when possible.
14675         (add_ipa_transform_pass, execute_ipa_summary_asses,
14676         execute_one_ipa_transform_pass): New.
14677         (execute_ipa_pass_list): Update for IPA_PASS type.
14679 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
14681         * config/i386/i386.c (ix86_builtin_type): Add
14682         V2DI_FTYPE_V2DI_V16QI, V2DI_FTYPE_V2DI_UINT_UINT and
14683         V2DI_FTYPE_V2DI_V2DI_UINT_UINT.
14684         (bdesc_args): Add SSE4a builtins.
14685         (ix86_init_mmx_sse_builtins): Updated.
14686         (ix86_expand_args_builtin): Likewise.
14687         (ix86_expand_builtin): Likewise.
14689 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
14691         * config/i386/i386.c (ix86_builtin_type): Add
14692         V8HI_FTYPE_V8HI_V8HI_COUNT, V8HI_FTYPE_V8HI_SI_COUNT,
14693         V4SI_FTYPE_V4SI_V4SI_COUNT, V4SI_FTYPE_V4SI_SI_COUNT,
14694         V4HI_FTYPE_V4HI_V4HI_COUNT, V4HI_FTYPE_V4HI_SI_COUNT,
14695         V2DI_FTYPE_V2DI_V2DI_COUNT, V2DI_FTYPE_V2DI_SI_COUNT,
14696         V2SI_FTYPE_V2SI_V2SI_COUNT, V2SI_FTYPE_V2SI_SI_COUNT,
14697         V1DI_FTYPE_V1DI_V1DI_COUNT, V1DI_FTYPE_V1DI_SI_COUNT,
14698         V8HI_FTYPE_V8HI_INT, V4SI_FTYPE_V4SI_INT, V4HI_FTYPE_V4HI_INT,
14699         V2DI2TI_FTYPE_V2DI2TI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT
14700         and DI_FTYPE_DI_DI_INT.
14701         (bdesc_args): Add MMX/SSE shift, shuffle and palignr builtins.
14702         (ix86_init_mmx_sse_builtins): Updated.
14703         (ix86_expand_args_builtin): Likewise.
14704         (ix86_expand_builtin): Likewise.
14705         (ix86_expand_binop_imm_builtin): Removed.
14707         * doc/extend.texi: Correct __builtin_ia32_palignr128.
14709 2008-04-30  Richard Guenther  <rguenther@suse.de>
14711         PR tree-optimization/32921
14712         * tree-ssa-loop-im.c (mem_refs_may_alias_p): Disambiguate with TBAA.
14714 2008-04-30  Richard Sandiford  <rsandifo@nildram.co.uk>
14716         * config/arm/arm.c (arm_unwind_emit): Use
14717         crtl->all_throwers_are_sibcalls instead of
14718         cfun->all_throwers_are_sibcalls.
14719         (arm_output_fn_unwind): Likewise.
14720         * config/frv/frv.c (frv_stack_info): Use crtl->uses_pic_offset_table
14721         instead of cfun->uses_pic_offset_table.
14722         (frv_expand_prologue): Likewise.
14723         (frv_frame_pointer_required): Likewise.
14724         (frv_expand_fdpic_call): Likewise.
14725         (frv_emit_movsi): Likewise.
14726         * config/iq2000/iq2000.c (iq2000_expand_prologue): Use
14727         cfun->returns_pcc_struct instead of
14728         current_function_returns_pcc_struct.
14729         * config/m32c/m32c.c (need_to_save): Use crtl->calls_eh_return
14730         instead of cfun->calls_eh_return.
14731         (m32c_pushm_popm): Likewise.
14732         * config/xtensa/xtensa.h (cfun->calls_alloca): Remove bogus
14733         "extern" declaration.
14735 2008-04-30  Richard Guenther  <rguenther@suse.de>
14737         PR tree-optimization/21636
14738         * tree-ssa-ccp.c (ccp_fold): Handle &p->x with p being a
14739         constant address.
14740         (evaluate_stmt): Print the likely value.
14741         (ccp_visit_stmt): Avoid excessive vertical spacing.
14743 2008-04-30  Rafael Espíndola  <espindola@google.com>
14745         * builtins.c (fold_call_expr): Return realret.
14746         * tree-ssa-threadedge.c
14747         (record_temporary_equivalences_from_stmts_at_dest): Ignore calls to
14748         __builtin_object_size.
14750 2008-04-30  Seongbae Park  <seongbae.park@gmail.com>
14752         * gcc.c (wrapper_string): New variable.
14753         (insert_wrapper): New function.
14754         (execute): New option -wrapper.
14755         * doc/invoke.texi (Overall Options): New driver option -wrapper.
14757 2008-04-30  Nathan Froyd  <froydnj@codesourcery.com>
14759         * config/rs6000/crtresgpr.asm, config/rs6000/crtresxgpr.asm,
14760         config/rs6000/crtsavgpr.asm, config/rs6000/crtresfpr.asm,
14761         config/rs6000/crtresxfpr.asm, config/rs6000/crtsavfpr.asm: Break out
14762         from...
14763         * config/rs6000/crtsavres.asm: ...here.  Remove unneeded file.
14764         * config/rs6000/e500crtres32gpr.asm, config/rs6000/e500crtres64gpr.asm,
14765         config/rs6000/e500crtres64gprctr.asm,
14766         config/rs6000/e500crtrest32gpr.asm, config/rs6000/e500crtrest64gpr.asm,
14767         config/rs6000/e500crtresx32gpr.asm, config/rs6000/e500crtresx64gpr.asm,
14768         config/rs6000/e500crtsav32gpr.asm, config/rs6000/e500crtsav64gpr.asm,
14769         config/rs6000/e500crtsav64gprctr.asm,
14770         config/rs6000/e500crtsavg32gpr.asm, config/rs6000/e500crtsavg64gpr.asm,
14771         config/rs6000/e500crtsavg64gprctr.asm: New files.
14772         * config/rs6000/t-ppccomm: Add build rules for new files.
14773         (LIB2FUNCS_STATIC_EXTRA): Add new files.
14774         * config/rs6000/t-netbsd: Add build rules for new files.
14775         (LIB2FUNCS_STATIC_EXTRA): New variable.
14776         * config/rs6000/sysv4.h (ENDFILE_SPEC): Don't include crtsavres.o
14777         (CRTSAVRES_DEFAULT_SPEC): Likewise.
14778         * config/rs6000/netbsd.h (ENDFILE_SPEC): Likewise.
14780 2008-04-30  H.J. Lu  <hongjiu.lu@intel.com>
14782         * config/i386/i386.c (ix86_builtin_type): Add
14783         FLOAT128_FTYPE_FLOAT128_FLOAT128, V16QI_FTYPE_V16QI_V16QI,
14784         V16QI_FTYPE_V8HI_V8HI, V8QI_FTYPE_V8QI_V8QI,
14785         V8QI_FTYPE_V4HI_V4HI, V8HI_FTYPE_V8HI_V8HI,
14786         V8HI_FTYPE_V16QI_V16QI, V8HI_FTYPE_V4SI_V4SI,
14787         V4SI_FTYPE_V4SI_V4SI, V4SI_FTYPE_V8HI_V8HI,
14788         V4SI_FTYPE_V4SF_V4SF, V4SI_FTYPE_V2DF_V2DF,
14789         V4HI_FTYPE_V4HI_V4HI, V4HI_FTYPE_V8QI_V8QI,
14790         V4HI_FTYPE_V2SI_V2SI, V4SF_FTYPE_V4SF_V4SF,
14791         V4SF_FTYPE_V4SF_V4SF_SWAP, V4SF_FTYPE_V4SF_V2SI,
14792         V4SF_FTYPE_V4SF_V2DF, V4SF_FTYPE_V4SF_DI,
14793         V4SF_FTYPE_V4SF_SI, V2DI_FTYPE_V2DI_V2DI,
14794         V2DI_FTYPE_V16QI_V16QI, V2DI_FTYPE_V4SI_V4SI,
14795         V2DI_FTYPE_V2DF_V2DF, V2SI_FTYPE_V2SI_V2SI,
14796         V2SI_FTYPE_V4HI_V4HI, V2SI_FTYPE_V2SF_V2SF,
14797         V2DF_FTYPE_V2DF_V2DF, V2DF_FTYPE_V2DF_V2DF_SWAP,
14798         V2DF_FTYPE_V2DF_V4SF, V2DF_FTYPE_V2DF_DI,
14799         V2DF_FTYPE_V2DF_SI, V2SF_FTYPE_V2SF_V2SF,
14800         V1DI_FTYPE_V1DI_V1DI, V1DI_FTYPE_V8QI_V8QI and
14801         V1DI_FTYPE_V2SI_V2SI.
14802         (bdesc_2arg): Moved to ...
14803         (bdesc_args): Here.
14804         (ix86_init_mmx_sse_builtins): Updated.
14805         (ix86_expand_args_builtin): Updated.  Take a pointer
14806         to const struct builtin_description.  Handle comparison
14807         builtin functions.
14808         (ix86_expand_sse_compare): Take a new argument for swapping operands.
14809         (ix86_expand_builtin): Updated.
14811         * config/i386/sse.md (ssse3_pmaddubswv8hi3): Renamed to ...
14812         (ssse3_pmaddubsw128): This.
14813         (ssse3_pmaddubswv4hi3): Renamed to ...
14814         (ssse3_pmaddubsw): This.
14816         * doc/extend.texi (__builtin_ia32_packsswb128): Correct prototype.
14817         (__builtin_ia32_packssdw128): Likewise.
14818         (__builtin_ia32_packuswb128): Likewise.
14819         (__builtin_ia32_pmaddubsw): Likewise.
14820         (__builtin_ia32_pmaddubsw128): Likewise.
14822 2008-04-30  Richard Guenther  <rguenther@suse.de>
14824         PR tree-optimization/14847
14825         * tree-ssa-ifcombine.c (get_name_for_bit_test): New helper function.
14826         (recognize_bits_test): Use it.
14827         (recognize_single_bit_test): Likewise.
14829 2008-04-30  Martin Jambor  <mjambor@suse.cz>
14831         * ipa-cp.c (ipcp_init_stage): Calls ipa_set_called_with_variable_arg
14832         instead of setting number of formal parameters to zero.
14833         (ipcp_init_stage): Do not set the number of actual parameters to zero
14834         either.
14835         (ipcp_propagate_stage): Explicitly skipping all calls to nodes
14836         which are called with variable number of arguments.
14837         (ipcp_insert_stage): Explicitely skipping all nodes which are
14838         called with variable number of arguments.
14839         (ipcp_callsite_param_print): Skipps callsites to nodes with varaible
14840         number of parameters.
14842         * ipa-prop.h (struct ipa_node_params): Added flag
14843         called_with_var_arguments
14844         (ipa_set_param_count): Added.  Changed sole setter to use it.
14845         (ipa_get_param_count): Added.  All readers of param_count
14846         converted to use it instead.
14847         (ipa_set_called_with_variable_arg): Added.
14848         (ipa_is_called_with_var_arguments): Added.
14849         (ipa_get_ith_param): Added.  All readers of param_decls converted
14850         to use it instead.
14851         (ipa_set_cs_argument_count): Added, sole writer to argument_count
14852         changed to use it.
14853         (ipa_get_cs_argument_count): Added, all readers of argument_count
14854         changed to cal it.
14855         (ipa_get_ith_jump_func): Added. Accessors of jump values changed
14856         to use it.
14858         * ipa-prop.h (struct ipcp_formal): Renamed to ipcp_lattice
14859         (struct ipcp_lattice): Renamed cval_type to type
14860         (struct ipa_node_params): ipcp_cval renamed to ipcp_lattices
14862         * ipa-cp.c (ipcp_cval_get_cvalue): Changed return value to tree
14863         (ipcp_cval_set_cvalue): Changed type of parameter value to tree
14864         (ipcp_insert_stage): Changed the type of variable cvalue to tree
14865         (ipcp_replace_map_create): Changed the type of parameter cvalue to tree
14866         (build_const_val): Changed the type of parameter cvalue to tree
14867         (ipcp_propagate_const): Changed the type of parameter cvalue to tree
14868         (ipcp_method_cval_set_cvalue_type): Renamed parameter cval_type1 to type
14870         * ipa-prop.h (struct ipcp_formal): Replaced cvalue with tree called
14871         constant
14873         * ipa-prop.c (ipa_methodlist_init): Renamed to ipa_init_func_list
14874         (ipa_methodlist_not_empty): Removed, the sole user now checks directly
14875         (ipa_add_method): Renamed to ipa_push_func_to_list
14876         (ipa_remove_method): Renamed to ipa_pop_func_from_list
14877         (ipa_callsite_param_count): Removed.
14878         (ipa_callsite_param_count_set): Removed.
14879         (ipa_callsite_param): Removed.
14880         (ipa_callsite_callee): Removed.
14881         (ipa_callsite_compute_param): Renamed to ipa_compute_jump_functions
14882         (ipa_callsite_compute_count): Renamed to ipa_count_arguments
14883         (ipa_method_formal_count): Removed.
14884         (ipa_method_formal_count_set): Removed.
14885         (ipa_method_get_tree): Removed.
14886         (ipa_method_tree_map_create): Removed.
14887         (ipa_method_compute_tree_map): Renamed to ipa_create_param_decls_array
14888         (ipa_create_param_decls_array): Creates the array itself
14889         (ipa_create_param_decls_array): Temporary variable info instead of
14890         a few dereferences.
14891         (ipa_method_formal_compute_count): Renamed to ipa_count_formal_params
14892         (ipa_method_compute_modify): Renamed to ipa_detect_param_modifications
14893         (get_type): Removed.
14894         (ipa_jf_get_info_type): Removed.
14895         (ipa_node_create): Renamed to ipa_create_node_params
14896         (ipa_free): Renamed to ipa_free_all_node_params
14897         (ipa_nodes_create): Renamed to ipa_create_all_node_params
14898         (ipa_edges_create): Renamed to ipa_create_all_edge_args
14899         (ipa_edges_free): Renamed to ipa_free_all_edge_args
14900         (ipa_nodes_free): Integrated into ipa_free_all_node_params and removed
14901         (ipa_free_all_node_params): Deallocation to jump_functions moved to
14902         ipa_free_all_edge_args
14903         (ipa_method_tree_print): Renamed to ipa_print_all_tree_maps
14904         (ipa_method_modify_print): Renamed to ipa_print_all_params_modified
14905         (ipa_create_methodlist_node): Removed.
14906         (ipa_methodlist_method): Removed.
14907         (ipa_methodlist_method_set): Removed.
14908         (ipa_methodlist_next_method): Removed.
14909         (ipa_methodlist_next_method_set): Removed.
14910         (ipa_method_is_modified): Removed.
14911         (ipa_method_modify_create): Removed.
14912         (ipa_method_modify_init): Temporary variable info instead of a few
14913         dereferences.
14914         (ipa_detect_param_modifications): Temporary variable info instead of
14915         a few dereferences.
14916         (ipa_compute_jump_functions): Temporary variable info instead of
14917         a few dereferences.
14918         (ipa_method_modify_set): Removed.
14919         (ipa_method_tree_map): Renamed to ipa_get_param_decl_index
14920         (ipa_get_param_decl_index): Now accepts struct ipa_node_params rather
14921         than craph_node as the first parameter.
14922         (ipa_method_modify_stmt): Renamed to ipa_check_stmt_modifications
14923         (ipa_method_modify_init): Removed.
14924         (ipa_compute_jump_functions): Added a temp variable instead of
14925         repeatadly dereferencing the cgraph_edge.aux pointer
14926         (ipa_callsite_param_set_type): Removed.
14927         (ipa_compute_jump_functions): i renamed to index and moved to
14928         an inner block
14929         (ipa_callsite_param_set_info_type_formal): Removed.
14930         (ipa_callsite_param_set_info_type): Removed.
14931         (ipa_callsite_param_map_create): Removed.
14932         (ipa_callsite_tree): Removed.
14933         (ipa_callsite_caller): Removed.
14934         (ipa_pop_func_from_list): return_method removed to return_func
14936         * ipa-prop.h (enum cvalue_type): Renamed to ipa_lattice_type,
14937         prefixed all values with IPA_. Changed all users.
14938         (enum jump_func_type): Rnamed UNKNOWN_IPATYPE to IPA_UNKNOWN,
14939         CONST_IPATYPE to IPA_CONST, CONST_IPATYPE_REF to IPA_CONST_REF
14940         and FORMAL_IPATYPE IPA_PASS_THROUGH.
14941         (union parameter_info): Renamed to jump_func_value.
14942         (union jump_func_value): Renamed value to constant
14943         (struct ipa_jump_func): Renamed info_type to value
14944         (struct ipa_node): Renamed to ipa_node_params
14945         (struct ipa_node_params): Renamed ipa_arg_num to param_count
14946         (struct ipa_node_params): Renamed ipa_param_tree to param_decls
14947         (struct ipa_node_params): Renamed ipa_mod to modified_flags
14948         (struct ipa_edge): Renamed to ipa_edge_args
14949         (struct ipa_edge_args): Renamed ipa_param_num to argument_count
14950         (struct ipa_edge_args): Renamed ipa_param_map to jump_functions
14951         (struct ipa_methodlist): Renamed to ipa_func_list
14952         (struct ipa_func_list): method_p renamed to node, next_method
14953         renamed to next
14954         (ipa_methodlist_p): Removed, switched all users to struct pointer
14955         (IS_VALID_TREE_MAP_INDEX): Renamed to IS_VALID_JUMP_FUNC_INDEX
14957 2008-04-30  Alan Modra  <amodra@bigpond.net.au>
14959         * config/rs6000/rs6000.c (ALWAYS_RESTORE_ALTIVEC_BEFORE_POP): Define.
14960         (rs6000_emit_epilogue): Use backchain to restore only when we
14961         have a large frame.  Make use of frame pointer to restore if we
14962         have one.  Handle ALWAYS_RESTORE_ALTIVEC_BEFORE_POP.
14964 2008-04-29  Paolo Bonzini  <bonzini@gnu.org>
14966         * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
14967         Add mode to zero_extract.
14968         (sign bit tests peepholes): (Ditto.).
14970 2008-04-29  H.J. Lu  <hongjiu.lu@intel.com>
14972         * config/i386/i386.c (ix86_builtins): Replace Prescott New
14973         Instructions in comments with SSE3.
14974         (ix86_builtin_type): This.  Add FLOAT128_FTYPE_FLOAT128,
14975         INT64_FTYPE_V4SF, INT64_FTYPE_V2DF, INT_FTYPE_V16QI,
14976         INT_FTYPE_V8QI, INT_FTYPE_V4SF, INT_FTYPE_V2DF,
14977         V16QI_FTYPE_V16QI, V8HI_FTYPE_V8HI, V8HI_FTYPE_V16QI,
14978         V8QI_FTYPE_V8QI, V4SI_FTYPE_V4SI, V4SI_FTYPE_V16QI,
14979         V4SI_FTYPE_V4SF, V4SI_FTYPE_V8HI, V4SI_FTYPE_V2DF,
14980         V4HI_FTYPE_V4HI, V4SF_FTYPE_V4SF, V4SF_FTYPE_V4SI,
14981         V4SF_FTYPE_V2DF, V2DI_FTYPE_V2DI, V2DI_FTYPE_V16QI,
14982         V2DI_FTYPE_V8HI, V2DI_FTYPE_V4SI, V2DF_FTYPE_V2DF,
14983         V2DF_FTYPE_V4SI, V2DF_FTYPE_V4SF, V2DF_FTYPE_V2SI,
14984         V2SI_FTYPE_V2SI, V2SI_FTYPE_V4SF, V2SI_FTYPE_V2SF,
14985         V2SI_FTYPE_V2DF, V2SF_FTYPE_V2SF and V2SF_FTYPE_V2SI.
14986         (bdesc_sse_args): Renamed to ...
14987         (bdesc_args): This.  Add IX86_BUILTIN_PF2ID, IX86_BUILTIN_PFRCP,
14988         IX86_BUILTIN_PFRSQRT, IX86_BUILTIN_PI2FD, IX86_BUILTIN_PF2IW,
14989         IX86_BUILTIN_PSWAPDSI, IX86_BUILTIN_PSWAPDSF and
14990         IX86_BUILTIN_FABSQ.
14991         (bdesc_1arg): Moved to ...
14992         (bdesc_args): Here.
14993         (ix86_init_mmx_sse_builtins): Updated.  Replace Prescott New
14994         Instructions in comments with SSE3.
14995         (ix86_expand_sse_operands_builtin): Renamed to ...
14996         (ix86_expand_args_builtin): This.  Updated.
14997         (ix86_expand_unop1_builtin): Update comments.
14998         (ix86_expand_builtin): Updated.
15000 2008-04-29  Richard Guenther  <rguenther@suse.de>
15002         PR tree-optimization/36078
15003         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
15004         Update virtual SSA form after cleaning up the CFG.
15006 2008-04-29  Richard Guenther  <rguenther@suse.de>
15008         PR middle-end/15255
15009         * fold-const.c (fold_binary): Fold (A + A) * C to A * 2*C.
15011 2008-04-29  Richard Guenther  <rguenther@suse.de>
15013         * tree-ssa-alias.c (finalize_ref_all_pointers): Remove.
15014         (compute_may_aliases): Do not call finalize_ref_all_pointers.
15015         (compute_flow_insensitive_aliasing): Do not treat
15016         PTR_IS_REF_ALL pointers special.
15017         (get_smt_for): Likewise.
15018         (may_alias_p): Re-structure.
15019         (is_escape_site): A ref-all pointer conversion is not an escape site.
15020         * tree-ssa-structalias.c (find_what_p_points_to): Do not treat
15021         PTR_IS_REF_ALL pointers special.
15022         * tree-ssa-structalias.h (struct alias_info): Remove
15023         ref_all_symbol_mem_tag field.
15024         (PTR_IS_REF_ALL): Remove.
15026 2008-04-29  Richard Guenther  <rguenther@suse.de>
15028         PR middle-end/36077
15029         * fold-const.c (extract_muldiv_1): In combining division constants
15030         make sure to never overflow.
15032 2008-04-29  Nick Clifton  <nickc@redhat.com>
15034         * doc/tm.texi (RETURN_ADDR_RTX): Fix typo.
15036 2008-04-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15038         PR bootstrap/35169
15039         * optc-gen.awk: Work around HP-UX/IA awk bug.
15041 2008-04-28  Danny Smith  <dannysmith@users.sourceforge.net>
15043         * config/i386/cygming-crtend.c (register_frame_ctor): Revert my
15044         2008-04-25 commit.
15046 2008-04-28  Uros Bizjak  <ubizjak@gmail.com>
15048         PR target/36073
15049         * config/i386/i386.md
15050         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit):
15051         Change operand 1 predicate to nonimmediate_operand.
15053 2008-04-28  Jakub Jelinek  <jakub@redhat.com>
15055         PR debug/36060
15056         * dwarf2out.c (struct die_struct): Mark as chain_circular through
15057         die_sub field.
15058         * gengtype.c (walk_type, write_func_for_structure): Handle
15059         chain_circular.
15060         * doc/gty.texi: Document chain_circular.
15062 2008-04-28  Richard Guenther  <rguenther@suse.de>
15064         PR tree-optimization/36066
15065         * tree-vrp.c (execute_vrp): Cleanup the CFG only after finalizing
15066         SCEV and loop.
15068 2008-04-28  Uros Bizjak  <ubizjak@gmail.com>
15070         PR target/36064
15071         * config/i386/i386.md
15072         (floatdi<X87MODEF:mode>2_i387_with_xmm splitters):
15073         Use match_scratch instead of match_operand for operands 3 and 4.
15075 2008-04-27  Richard Guenther  <rguenther@suse.de>
15077         PR tree-optimization/18754
15078         PR tree-optimization/34223
15079         * tree-pass.h (pass_complete_unrolli): Declare.
15080         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Print
15081         loop size before and after unconditionally of UL_NO_GROWTH in effect.
15082         Rewrite loop into loop closed SSA form if it is not already.
15083         (tree_unroll_loops_completely): Re-structure to iterate over
15084         innermost loops with intermediate CFG cleanups.
15085         Unroll outermost loops only if requested or the code does not grow
15086         doing so.
15087         * tree-ssa-loop.c (gate_tree_vectorize): Don't shortcut if no
15088         loops are available.
15089         (tree_vectorize): Instead do so here.
15090         (tree_complete_unroll): Also unroll outermost loops.
15091         (tree_complete_unroll_inner): New function.
15092         (gate_tree_complete_unroll_inner): Likewise.
15093         (pass_complete_unrolli): New pass.
15094         * tree-ssa-loop-manip.c (find_uses_to_rename_use): Only record
15095         uses outside of the loop.
15096         (tree_duplicate_loop_to_header_edge): Only verify loop-closed SSA
15097         form if it is available.
15098         * tree-flow.h (tree_unroll_loops_completely): Add extra parameter.
15099         * passes.c (init_optimization_passes): Schedule complete inner
15100         loop unrolling pass before the first CCP pass after final inlining.
15102 2008-04-27  Nathan Sidwell  <nathan@codesourcery.com>
15104         * targhooks.h (default_emutls_var_fields,
15105         default_emutls_var_init): Declare.
15106         * tree.h (DECL_THREAD_LOCAL): Compare against TLS_MODEL_REAL.
15107         * target.h (struct gcc_target): Add struct emutls member.
15108         * target-def.h (TARGET_EMUTLS_GET_ADDRESS,
15109         TARGET_EMUTLS_REGISTER_COMMON, TARGET_EMUTLS_VAR_SECTION,
15110         TARGET_EMUTLS_TMPL_SECTION, TARGET_EMUTLS_VAR_PREFIX,
15111         TARGET_EMUTLS_TMPL_PREFIX, TARGET_EMUTLS_VAR_FIELDS,
15112         TARGET_EMUTLS_VAR_INIT, TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS,
15113         TARGET_EMUTLS_VAR_ALIGN_FIXED, TARGET_EMUTLS): New.
15114         (TARGET_INITIALIZER): Add TARGET_EMUTLS.
15115         * builtins.def (BUILT_IN_EMUTLS_GET_ADDRESS,
15116         BUILT_IN_EMUTLS_REGISTER_COMMON): Get name from targetm structure.
15117         * dwarf2out.c (loc_descriptor_from_tree_1): Check if emutls can
15118         emit debug information.
15119         * coretypes.h (tls_model): Add TLS_MODEL_EMULATED, TLS_MODEL_REAL.
15120         * varasm.c: Include targhooks.h.
15121         (emutls_object_section, emutls_tmpl_section): New.
15122         (EMUTLS_VAR_PREFIX, EMUTLS_TMPL_PREFIX): Remove.
15123         (EMUTLS_SEPARATOR): New.
15124         (prefix_name): New.
15125         (get_emutls_object_name): New.
15126         (default_emutls_var_fields): New, broken out of ...
15127         (get_emutls_object_type): ... here.  Adjust to use target hooks.
15128         (get_emutls_init_templ_addr): Adjust to use target hooks.
15129         (emutls_decl): Adjust to use target hooks.
15130         (emutls_finish): Likewise.
15131         (default_emutls_var_init): New, broken out of ...
15132         (assemble_variable): ... here.  Adjust to use target hooks.
15133         * output.h (enum section_category): Add SECCAT_EMUTLS_VAR,
15134         SECCAT_EMUTLS_TMPL.
15135         * c-common.c (handle_section_attribute): Prevent overriding
15136         sections for emulated tls with special sections.
15137         * config/i386/i386.c (x86_64_elf_select_section): Add
15138         SECCAT_EMUTLS_VAR and SECCAT_EMUTLS_TMPL.
15139         (x86_64_elf_unique_section): Likewise.
15140         * config/vxworks.c: Include tree.h.
15141         (vxworks_emutls_var_fields, vxworks_emutls_var_init): New.
15142         (vxworks_override_options): Set TLS scheme.
15143         * doc/tm.texi (Emulated TLS): New node.
15145 2008-04-26  Simon Baldwin <simonb@google.com>
15147         PR c/35652
15148         * builtins.c (c_strlen): Suppressed multiple warnings that can occur
15149         with propagated string constants.
15151 2008-04-26  Uros Bizjak  <ubizjak@gmail.com>
15153         * config/i386/i386.md (fix_trunc<mode>_i387_fisttp_with_temp): Use 'X'
15154         constraint for operand 2 when operand 0 is memory operand.
15155         (fix_truncdi_i387_with_temp): : Use 'X' constraint for operand 4 when
15156         operand 0 is memory operand.
15157         (fix_trunc<mode>_i387_with_temp): Ditto.
15158         (*floatsi<mode>2_vector_mixed_with_temp): Use 'X' constraint for
15159         operand 2 when operand 1 is memory operand.
15160         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_with_temp): Ditto.
15161         (*floatsi<mode>2_vector_sse_with_temp): Ditto.
15162         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_with_temp): Ditto.
15163         (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp): Ditto.
15164         (floatdi<X87MODEF:mode>2_i387_with_xmm): Use 'X' constraint for
15165         operands 2,3 and 4 when operand 1 is memory operand.
15166         (fistdi2_with_temp): Use 'X' constraint for operand 2 when operand 0
15167         is memory operand.
15168         (fistdi2_floor_with_temp): Ditto.
15169         (fist<mode>2_floor_with_temp): Ditto.
15170         (fistdi2_ceil_with_temp): Ditto.
15171         (fist<mode>2_ceil_with_temp): Ditto.
15172         (*truncdfsf_fast_mixed): Merge alternatives 0 and 1.
15174 2008-04-26  David Daney  <ddaney@avtrex.com>
15176         * config/mips/mips.md (UNSPEC_COMPARE_AND_SWAP_12): New
15177         unspec_volitile.
15178         (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_EXCHANGE,
15179         UNSPEC_MEMORY_BARRIER, UNSPEC_SET_GOT_VERSION,
15180         UNSPEC_UPDATE_GOT_VERSION): Renumber.
15181         (sync_compare_and_swap<mode>): New expand for QI and HI modes.
15182         (compare_and_swap_12): New insn.
15183         * config/mips/mips-protos.h (mips_expand_compare_and_swap_12): Declare.
15184         * config/mips/mips.c (mips_force_binary): New function.
15185         (mips_emit_int_order_test, mips_expand_synci_loop): Use it.
15186         (mips_expand_compare_and_swap_12): New function.
15187         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP_12): New macro.
15189 2008-04-25  Jan Hubicka  <jh@suse.cz>
15191         PR testsuite/35843
15192         * cfgexpand.c (pass_expand): Turn into RTL pass.
15193         * passes.c (execute_one_pass): Do pass typechecking after execution.
15194         * tree-pass.h (pass_expand): Turn into RTL pass.
15196         * function.h (struct rtl_data): Move here fields
15197         accesses_prior_frames, calls_eh_return, saves_all_registers,
15198         has_nonlocal_goto, has_asm_statement, is_thunk,
15199         all_throwers_are_sibcalls, limit_stack, profile, uses_const_pool,
15200         uses_pic_offset_table, uses_eh_lsda, tail_call_emit,
15201         arg_pointer_save_area_init from struct function; turn into bool.
15202         (struct function): Move
15203         calls_eh_return, saves_all_registers, has_nonlocal_goto,
15204         has_asm_statement, is_thunk, all_throwers_are_sibcalls, limit_stack,
15205         profile, uses_const_pool, uses_pic_offset_table, uses_eh_lsda,
15206         tail_call_emit, arg_pointer_save_area_init
15207         into struct rtl_data.  Remove recursive_call_emit and gimplified flags.
15208         (current_function_returns_struct, current_function_returns_pcc_struct,
15209         current_function_calls_setjmp, current_function_calls_alloca,
15210         current_function_accesses_prior_frames,
15211         current_function_calls_eh_return, current_function_is_thunk,
15212         current_function_stdarg, current_function_profile,
15213         current_function_limit_stack, current_function_uses_pic_offset_table,
15214         current_function_uses_const_pool, current_function_has_nonlocal_label,
15215         current_function_saves_all_registers,
15216         current_function_has_nonlocal_goto,
15217         current_function_has_asm_statement): Remove accesor macros.
15218         * ra-conflict.c (global_conflicts): Update.
15219         * tree-tailcall.c (suitable_for_tail_opt_p): Update.
15220         (suitable_for_tail_call_opt_p): Update.
15221         * builtins.c (expand_builtin_return_addr): Update.
15222         (expand_builtin_setjmp_setup): Update.
15223         (expand_builtin_nonlocal_goto): Update.
15224         * final.c (final_start_function): Update.
15225         (profile_function): Update.
15226         (leaf_function_p): Update.
15227         (only_leaf_regs_used): Update.
15228         * df-scan.c (df_get_exit_block_use_set): Update.
15229         * dojump.c (clear_pending_stack_adjust): Update.
15230         * tree-stdarg.c (gate_optimize_stdarg): Update.
15231         * gimple-low.c (lower_function_body): Update.
15232         * global.c (compute_regsets): Update.
15233         (global_alloc): Update.
15234         * dwarf2out.c (dwarf2out_begin_prologue): Update.
15235         * expr.c (expand_assignment): Update.
15236         * dse.c (dse_step0): Update.
15237         (dse_step1): Update.
15238         * c-decl.c (store_parm_decls): Update.
15239         * local-alloc.c (combine_regs): Update.
15240         (find_free_reg): Update.
15241         * function.c (assign_parms_augmented_arg_list): Update.
15242         (assign_parm_find_data_types): Update.
15243         (assign_parms): Update.
15244         (allocate_struct_function): Update.
15245         (expand_function_start): Update.
15246         (expand_function_end): Update.
15247         (get_arg_pointer_save_area): Update.
15248         (thread_prologue_and_epilogue_insns): Update.
15249         (rest_of_match_asm_constraints): Update.
15250         * stor-layout.c (variable_size): Update.
15251         * gcse.c (gcse_main): Update.
15252         (bypass_jumps): Update.
15253         * gimplify.c (gimplify_function_tree): Update.
15254         * calls.c (emit_call_1): Update.
15255         (expand_call): Update.
15256         * bt-load.c (compute_defs_uses_and_gen): Update.
15257         * except.c (sjlj_assign_call_site_values): Update.
15258         (sjlj_emit_function_enter): Update.
15259         (can_throw_external): Update.
15260         (set_nothrow_function_flags): Update.
15261         (expand_builtin_unwind_init): Update.
15262         (expand_eh_return): Update.
15263         (convert_to_eh_region_ranges): Update.
15264         (output_function_exception_table): Update.
15265         * emit-rtl.c (gen_tmp_stack_mem): Update.
15266         * cfgexpand.c (expand_used_vars): Update.
15267         (tree_expand_cfg): Update.
15268         * cfgcleanup.c (rest_of_handle_jump): Update.
15269         * explow.c (allocate_dynamic_stack_space): Update.
15270         * varasm.c (assemble_start_function): Update.
15271         (force_const_mem): Update.
15272         (mark_constant_pool): Update.
15273         * tree-optimize.c (tree_rest_of_compilation): Update.
15274         * stack-ptr-mod.c (notice_stack_pointer_modification): Update.
15275         * tree-cfg.c (notice_special_calls): Update.
15276         (is_ctrl_altering_stmt): Update.
15277         (tree_can_make_abnormal_goto): Update.
15278         (tree_purge_dead_abnormal_call_edges): Update.
15279         * config/alpha/predicates.md: Update.
15280         * config/alpha/alpha.c (alpha_sa_mask): Update.
15281         (alpha_sa_size): Update.
15282         (alpha_does_function_need_gp): Update.
15283         (alpha_expand_prologue): Update.
15284         (alpha_start_function): Update.
15285         (alpha_output_function_end_prologue): Update.
15286         (alpha_expand_epilogue): Update.
15287         * config/frv/frv.c (frv_stack_info): Update.
15288         (frv_expand_epilogue): Update.
15289         * config/s390/s390.c (s390_regs_ever_clobbered): Update.
15290         (s390_register_info): Update.
15291         (s390_frame_info): Update.
15292         (s390_init_frame_layout): Update.
15293         (s390_can_eliminate): Update.
15294         (save_gprs): Update.
15295         * config/spu/spu.c (spu_split_immediate): Update.
15296         (need_to_save_reg): Update.
15297         (spu_expand_prologue): Update.
15298         (spu_expand_epilogue): Update.
15299         * config/sparc/sparc.md: Update.
15300         * config/sparc/sparc.c (eligible_for_return_delay): Update.
15301         (sparc_tls_got): Update.
15302         (legitimize_pic_address): Update.
15303         (sparc_emit_call_insn): Update.
15304         (sparc_expand_prologue): Update.
15305         (output_return): Update.
15306         (print_operand): Update.
15307         (sparc_function_ok_for_sibcall): Update.
15308         * config/sparc/sparc.h (EXIT_IGNORE_STACK): Update.
15309         * config/m32r/m32r.md: Update.
15310         * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Update.
15311         (m32r_compute_frame_size): Update.
15312         (m32r_expand_prologue): Update.
15313         (m32r_expand_epilogue): Update.
15314         (m32r_legitimize_pic_address): Update.
15315         * config/m32r/m32r.h (FRAME_POINTER_REQUIRED): Update.
15316         * config/i386/linux.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
15317         * config/i386/i386.c (ix86_frame_pointer_required): Update.
15318         (gen_push): Update.
15319         (ix86_save_reg): Update.
15320         (ix86_compute_frame_layout): Update.
15321         (ix86_expand_prologue): Update.
15322         (ix86_expand_epilogue): Update.
15323         * config/sh/sh.c (output_stack_adjust): Update.
15324         (calc_live_regs): Update.
15325         (sh5_schedule_saves): Update.
15326         (sh_expand_prologue): Update.
15327         (sh_expand_epilogue): Update.
15328         (sh_setup_incoming_varargs): Update.
15329         (sh_allocate_initial_value): Update.
15330         (sh_get_pr_initial_val): Update.
15331         * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): Update.
15332         * config/sh/sh.md (label:): Update.
15333         * config/avr/avr.c (out_movhi_mr_r): Update.
15334         * config/crx/crx.h (enum): Update.
15335         * config/xtensa/xtensa.h (along): Update.
15336         * config/stormy16/stormy16.c Update.
15337         (xstormy16_compute_stack_layout): Update.
15338         * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Update.
15339         (fr30_expand_prologue): Update.
15340         * config/cris/cris.c (cris_conditional_register_usage): Update.
15341         (cris_reg_saved_in_regsave_area): Update.
15342         (cris_initial_frame_pointer_offset): Update.
15343         (cris_simple_epilogue): Update.
15344         (cris_expand_prologue): Update.
15345         (cris_expand_epilogue): Update.
15346         (cris_expand_pic_call_address): Update.
15347         (cris_asm_output_symbol_ref): Update.
15348         (cris_asm_output_label_ref): Update.
15349         * config/cris/cris.md Update.
15350         * config/iq2000/iq2000.c (compute_frame_size): Update.
15351         (iq2000_expand_epilogue): Update.
15352         * config/mt/mt.h (save_direction): Update.
15353         * config/mn10300/mn10300.c (mn10300_function_value): Update.
15354         * config/ia64/ia64.c (ia64_compute_frame_size): Update.
15355         (ia64_secondary_reload_class): Update.
15356         * config/m68k/m68k.c (m68k_save_reg): Update.
15357         (m68k_expand_prologue): Update.
15358         (m68k_expand_epilogue): Update.
15359         (legitimize_pic_address): Update.
15360         * config/rs6000/rs6000.c (rs6000_got_register): Update.
15361         (first_reg_to_save): Update.
15362         (first_altivec_reg_to_save): Update.
15363         (compute_vrsave_mask): Update.
15364         (compute_save_world_info): Update.
15365         (rs6000_stack_info): Update.
15366         (spe_func_has_64bit_regs_p): Update.
15367         (rs6000_ra_ever_killed): Update.
15368         (rs6000_emit_eh_reg_restore): Update.
15369         (rs6000_emit_allocate_stack): Update.
15370         (rs6000_emit_prologue): Update.
15371         (rs6000_emit_epilogue): Update.
15372         (rs6000_output_function_epilogue): Update.
15373         (output_profile_hook): Update.
15374         (rs6000_elf_declare_function_name): Update.
15375         * config/rs6000/rs6000.h (rs6000_args): Update.
15376         * config/rs6000/rs6000.md: Update.
15377         * config/mcore/mcore.c (mcore_expand_prolog): Update.
15378         * config/arc/arc.c (arc_output_function_epilogue): Update.
15379         * config/arc/arc.h (FRAME_POINTER_REQUIRED): Update.
15380         * config/darwin.c (machopic_function_base_name): Update.
15381         * config/score/score3.c (score3_compute_frame_size): Update.
15382         (rpush): Update.
15383         (rpop): Update.
15384         (score3_epilogue): Update.
15385         * config/score/score7.c (score7_compute_frame_size): Update.
15386         (score7_prologue): Update.
15387         (score7_epilogue): Update.
15388         * config/score/score.h (FRAME_POINTER_REQUIRED): Update.
15389         * config/arm/linux-elf.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
15390         * config/arm/arm.c (use_return_insn): Update.
15391         (require_pic_register): Update.
15392         (arm_load_pic_register): Update.
15393         (arm_compute_save_reg0_reg12_mask): Update.
15394         (arm_compute_save_reg_mask): Update.
15395         (thumb1_compute_save_reg_mask): Update.
15396         (output_return_instruction): Update.
15397         (arm_output_function_prologue): Update.
15398         (arm_output_epilogue): Update.
15399         (arm_get_frame_offsets): Update.
15400         (arm_expand_prologue): Update.
15401         (thumb_pushpop): Update.
15402         (thumb_exit): Update.
15403         (thumb1_expand_prologue): Update.
15404         (thumb1_expand_epilogue): Update.
15405         (arm_unwind_emit): Update.
15406         (arm_output_fn_unwind): Update.
15407         * config/arm/arm.h (FRAME_POINTER_REQUIRED): Update.
15408         * config/arm/arm.md: Update.
15409         * config/pa/pa.md: Update.
15410         * config/pa/pa.c (legitimize_pic_address): Update.
15411         (compute_frame_size): Update.
15412         (hppa_expand_prologue): Update.
15413         (hppa_expand_epilogue): Update.
15414         (borx_reg_operand): Update.
15415         * config/pa/pa.h (FRAME_POINTER_REQUIRED): Update.
15416         (HARD_REGNO_RENAME_OK): Update.
15417         * config/mips/mips.c (mips_global_pointer): Update.
15418         (mips_save_reg_p): Update.
15419         (mips_compute_frame_info): Update.
15420         (mips_frame_pointer_required): Update.
15421         (mips_expand_prologue): Update.
15422         (mips_expand_epilogue): Update.
15423         (mips_can_use_return_insn): Update.
15424         (mips_reorg_process_insns): Update.
15425         * config/v850/v850.c (compute_register_save_size): Update.
15426         * config/mmix/mmix.h (FRAME_POINTER_REQUIRED): Update.
15427         * config/mmix/mmix.c (along): Update.
15428         (mmix_expand_epilogue): Update.
15429         * config/bfin/bfin.c (legitimize_pic_address): Update.
15430         (must_save_p): Update.
15431         (stack_frame_needed_p): Update.
15432         (add_to_reg): Update.
15433         (bfin_expand_prologue): Update.
15434         * stmt.c (expand_asm_operands): Update.
15435         * reload1.c (reload): Update.
15436         (init_elim_table): Update.
15438 2008-04-25  Bob Wilson  <bob.wilson@acm.org>
15440         * optabs.c (expand_float): Fix REG_EQUAL for UNSIGNED_FLOAT libcall.
15442 2008-04-25  H.J. Lu  <hongjiu.lu@intel.com>
15444         * config/i386/sse.md (mov<mode>): Replace SSEMODEI with SSEMODE.
15445         (*mov<mode>_internal): Likewise.  Support V4SF and V2DF.
15446         (mov<mode>): Removed.
15447         (*movv4sf_internal): Likewise.
15448         (*movv2df_internal): Likewise.
15450 2008-04-25  Pompapathi V Gadad <Pompapathi.V.Gadad@nsc.com>
15452         * config.gcc (crx-*-elf): Remove deprecation.
15454 2008-04-25  Danny Smith  <dannysmith@users.sourceforge.net>
15456         * config/i386/cygming-crtend.c (register_frame_ctor): Register
15457         __gcc_deregister_frame with atexit.
15458         (deregister_frame_dtor): Remove.
15460 2008-04-24  Nathan Froyd  <froydnj@codesourcery.com>
15461             Nathan Sidwell  <nathan@codesourcery.com>
15463         * config/rs6000/rs6000.opt (mspe): Remove Var property.
15464         (misel): Likewise.
15465         * config/rs6000/rs6000.h (rs6000_spe): Declare.
15466         (rs6000_isel): Likewise.
15467         * config/rs6000/rs6000.c (rs6000_spe): New variable.
15468         (rs6000_isel): New variable.
15469         (rs6000_handle_option): Handle OPT_mspe and OPT_misel.
15471 2008-04-24  Jakub Jelinek  <jakub@redhat.com>
15473         PR c++/35758
15474         * c-common.c (handle_vector_size_attribute): Call
15475         lang_hooks.types.reconstruct_complex_type instead of
15476         reconstruct_complex_type.
15477         * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute): Likewise.
15478         * config/spu/spu.c (spu_handle_vector_attribute): Likewise.
15479         * langhooks.h (struct lang_hooks_for_types): Add
15480         reconstruct_complex_type hook.
15481         * langhooks-def.h (LANG_HOOKS_RECONSTRUCT_COMPLEX_TYPE): Define.
15482         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add it.
15484 2008-04-24  Richard Guenther  <rguenther@suse.de>
15486         * c-common.h (check_builtin_function_arguments): Declare.
15487         * c-common.c (validate_nargs): New function.
15488         (check_builtin_function_arguments): Likewise.
15489         * c-typeck.c (build_function_call): Call
15490         check_builtin_function_arguments.
15491         * builtins.c (fold_builtin_classify): Remove error reporting code.
15492         (fold_builtin_unordered_cmp): Likewise.
15493         (fold_builtin_1): Likewise.
15494         (fold_builtin_n): Likewise.
15496 2008-04-24  Jakub Jelinek  <jakub@redhat.com>
15498         PR tree-optimization/36008
15499         * fold-const.c (try_move_mult_to_index): If s == NULL, divide
15500         the original op1, rather than delta by step.
15502 2008-04-22  Antoniu Pop  <antoniu.pop@gmail.com>
15503             Sebastian Pop  <sebastian.pop@amd.com>
15505         * tree-parloops.c (take_address_of, eliminate_local_variables_1,
15506         eliminate_local_variables_stmt, eliminate_local_variables,
15507         separate_decls_in_loop_name, separate_decls_in_loop_stmt,
15508         separate_decls_in_loop, gen_parallel_loop): Make them work on a region
15509         of code delimited by two edges in the CFG.
15510         (separate_decls_in_loop_name): Renamed separate_decls_in_region_name.
15511         (separate_decls_in_loop_stmt): Renamed separate_decls_in_region_stmt.
15512         (separate_decls_in_loop): Renamed separate_decls_in_region.  Isolate
15513         the case of parallelisation of reductions.
15514         (expr_invariant_in_region_p): New.
15516         * tree-flow.h (gather_blocks_in_sese_region): Declared.
15517         * tree-cfg.c (gather_blocks_in_sese_region): Extern.
15519 2008-04-24  Ira Rosen  <irar@il.ibm.com>
15520             Richard Guenther  <rguenther@suse.de>
15522         PR tree-optimization/36034
15523         * tree-vect-analyze.c (vect_analyze_group_access): SLP is
15524         incapable of dealing with loads with gaps.
15526 2008-04-24  Rafael Espíndola  <espindola@google.com>
15528         * tree-flow.h (vrp_evaluate_conditional): Change signature.
15529         * tree-ssa-propagate.c (fold_predicate_in): Update call to
15530         vrp_evaluate_conditional.
15531         * tree-vrp.c (vrp_evaluate_conditional_warnv): Remove.
15532         (vrp_evaluate_conditional): Split the cond argument.
15533         (vrp_visit_cond_stmt): Use vrp_evaluate_conditional_warnv_with_ops.
15534         (simplify_stmt_for_jump_threading): Update call to
15535         vrp_evaluate_conditional.
15537 2008-04-24  Ira Rosen  <irar@il.ibm.com>
15539         PR tree-optimization/35982
15540         * tree-vect-analyze.c (vect_check_interleaving): Check that the
15541         interleaved data-refs are of the same type.
15543 2008-04-24  Danny Smith  <dannysmith@users.net>
15545         * c-format.c (check_format_info_main): Use strncmp rather than a
15546         magic prefix to handle multichar length specs.
15547         * config/i386/msformat-c.c (format_length_info ms_printf_length_specs):
15548         Don't prefix "I64" and "I32" with '\0'.
15550 2008-04-24  Jakub Jelinek  <jakub@redhat.com>
15552         PR target/36015
15553         * config/i386/i386.c (init_cumulative_args): Don't pass anything
15554         in registers for -m32 only if stdarg_p (fntype).
15556 2008-04-24  Uros Bizjak  <ubizjak@gmail.com>
15558         PR rtl-optimization/36006
15559         * expmed.c (store_fixed_bit_field): Copy op0 rtx before moving
15560         temp to op0 in order to avoid invalid rtx sharing.
15562 2008-04-23  Paolo Bonzini  <bonzini@gnu.org>
15564         * tree-cfg.c (verify_expr): Check with is_gimple_address.  Don't
15565         check TREE_INVARIANT.
15566         * tree-gimple.c (is_gimple_address): New.
15567         (is_gimple_invariant_address): Simplify using decl_address_invariant_p.
15568         * tree-gimple.h (is_gimple_address): New.
15569         * tree.h (decl_address_invariant_p): New.
15570         * tree.c (make_node_stat): Don't set TREE_INVARIANT.
15571         (build_string): Likewise.
15572         (decl_address_invariant_p): New, from is_gimple_invariant_address.
15573         (tree_invariant_p_1): Likewise.
15574         (save_expr): Use it.
15575         (tree_invariant_p): New.
15576         (skip_simple_arithmetic): Use it.
15577         (stabilize_reference_1): Use it.
15578         (recompute_tree_invariant_for_addr_expr): Don't update TREE_INVARIANT,
15579         simplify.
15580         (build1_stat): Drop code to compute TREE_INVARIANT.
15581         (build2_stat): Drop code to compute TREE_INVARIANT.
15582         (build3_stat): Drop code to compute TREE_INVARIANT.
15583         (build4_stat): Drop code to compute TREE_INVARIANT.
15584         (build5_stat): Drop code to compute TREE_INVARIANT.
15585         (build7_stat): Drop code to compute TREE_INVARIANT.
15586         (merge_dllimport_decl_attributes): Don't mention TREE_INVARIANT.
15587         * tree.h (struct tree_base): Remove invariant_flag.
15588         (TREE_INVARIANT): Remove.
15589         * builtins.c (build_string_literal): Don't set TREE_INVARIANT.
15590         (fold_builtin_expect): Check TREE_CONSTANT.
15591         * tree-ssa-ccp.c (fold_stmt_r): Adjust comment.
15592         * c-tree.h (c_expr_to_decl): Drop third parameter.
15593         * c-typeck.c (build_external_ref): Don't set TREE_INVARIANT.
15594         (build_c_cast): Don't set TREE_INVARIANT.
15595         (pop_init_level): Don't set TREE_INVARIANT.
15596         (c_objc_common_truthvalue_conversion): Don't set TREE_INVARIANT.
15597         * gimplify.c (gimplify_init_ctor_preeval): Add assertion, test
15598         TREE_CONSTANT.
15599         (gimplify_init_constructor): Don't set TREE_INVARIANT.
15600         (gimplify_addr_expr): Adjust comment.
15601         * tree-mudflap.c (mf_build_string):
15602         * print-tree.c (print_node): Don't print TREE_INVARIANT.
15603         * tree-nested.c (convert_nonlocal_reference): Adjust comment.
15604         * c-common.c (fix_string_type): Don't set TREE_INVARIANT.
15605         * langhooks-def.h (lhd_expr_to_decl): Drop third parameter.
15606         * langhooks.c (lhd_expr_to_decl): Drop third parameter.
15607         * langhooks.h (struct lang_hooks): Drop third parameter from
15608         expr_to_decl.
15610 2008-04-23  Richard Guenther  <rguenther@suse.de>
15612         PR tree-optimization/27799
15613         PR tree-optimization/32921
15614         PR tree-optimization/32624
15615         * tree-ssa-structalias.c (merge_smts_into): Only merge the
15616         SMTs aliases and the tag itself into the solution.
15617         * tree-ssa-alias.c (compute_flow_sensitive_aliasing): Do not
15618         merge the points-to solution back into the SMT aliases.
15619         (may_alias_p): Use alias_set_subset_of instead of
15620         aliases_conflict_p.  A pointer which points to
15621         memory with alias set zero may access any variable.
15623 2008-04-23  Richard Guenther  <rguenther@suse.de>
15625         * alias.c (alias_set_subset_of): Correctly handle asking
15626         if zero is a subset of an alias set with zero child.
15627         * tree-ssa-alias.c (have_common_aliases_p): Simplify logic.
15628         (compute_flow_insensitive_aliasing): Correctly walk all
15629         pointers.  Do not unnecessarily union sets.
15631 2008-04-23  Richard Guenther  <rguenther@suse.de>
15633         PR middle-end/36021
15634         * c-common.c (handle_alloc_size_attribute): Use type_num_arguments.
15636 2008-04-22  Tomas Bily  <tbily@suse.cz>
15638         * tree-cfg.c (verify_expr): Check for NON_LVALUE_EXPR as
15639         unreachable case.
15640         * tree-vrp.c (extract_range_from_unary_expr): Removed unused
15641         NON_LVALUE_EXPR.
15642         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
15643         * tree-ssa-structalias.c (get_constraint_for): Likewise.
15644         * tree-inline.c (estimate_num_insns_1): Likewise.
15645         * varasm.c (const_hash_1, compare_constant, copy_constant)
15646         (compute_reloc_for_constant, output_addressed_constants): Likewise.
15647         * emit-rtl.c (component_ref_for_mem_expr)
15648         (set_mem_attributes_minus_bitpos): Likewise.
15649         * expr.c (highest_pow2_factor, expand_expr_real_1, )
15650         (is_aligning_offset): Likewise.
15651         * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info): Likewise.
15652         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
15653         * dojump.c (do_jump): Likewise.
15654         * builtins.c (get_pointer_alignment, get_memory_rtx)
15655         (integer_valued_real_p, fold_builtin_next_arg): Likewise.
15656         * tree-scalar-evolution.c (instantiate_parameters_1): Likewise.
15658 2008-04-23  Jakub Jelinek  <jakub@redhat.com>
15660         PR rtl-optimization/36017
15661         * builtins.c (expand_errno_check): Clear CALL_EXPR_TAILCALL before
15662         expanding the library call.
15664 2008-04-22  Ian Lance Taylor  <iant@google.com>
15666         * fold-const.c (pointer_may_wrap_p): Call int_size_in_bytes rather
15667         than size_in_bytes.
15669 2008-04-22  Pat Haugen  <pthaugen@us.ibm.com>
15671         * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase cost
15672         of LR/CTR moves for Power6.
15674 2008-04-22  Kenneth Zadeck  <zadeck@naturalbridge.com>
15676         PR middle-end/36003
15677         * passes.c (init_optimization_passes): Remove
15678         pass_fast_rtl_byte_dce.
15680 2008-04-22  Uros Bizjak  <ubizjak@gmail.com>
15682         PR target/29096
15683         * config/i386/xmmintrin.h (_mm_cvtpi16_ps): Rearrange calls to
15684         builtin functions to generate faster code.
15685         (_mm_cvtpu16_ps): Ditto.
15686         (_mm_cvtpi32x2_ps): Ditto.
15688 2008-04-22  Nick Clifton  <nickc@redhat.com>
15690         * common.opt (ftree-loop-distribution): Add Optimization
15691         attribute.
15693         * config/frv/frv.c (frv_stack_info): Use crtl instead of cfun.
15694         (frv_expand_builtin_va_start): Likewise.
15696         * config/arm/arm.c (thumb_find_work_register): Fix location of
15697         argument register count.
15699 2008-04-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
15701         Support scheduling for ColdFire V1 and V3 microarchitecture.
15702         Improve scheduling of multiplication instructions.
15704         * config/m68k/m68k.md (cpu): Add cfv1 and cfv3.  Rename cf_v2 to cfv1.
15705         (mac): New instruction attribute.
15706         * config/m68k/m68k.c (override_options): Handle cfv1, cfv3 and mac.
15707         (m68k_sched_mac): New variable.
15708         (m68k_sched_attr_type2, m68k_sched_md_init_global): Update.
15709         Handle cfv1 and cfv3.
15710         (max_insn_size): New static variable.
15711         (struct _sched_ib): New type.
15712         (sched_ib): New static variable.
15713         (sched_ib_size, sched_ib_filled, sched_ib_insn): Convert variables
15714         to fields of 'struct _sched_ib sched_ib'.  Update all uses.
15715         (m68k_sched_variable_issue): Add modeling of cfv3 instruction buffer.
15716         Update.
15717         (m68k_sched_md_init_global, m68k_sched_md_finish_global,
15718         m68k_sched_md_init, m68k_sched_md_finish): Handle cfv1 and cfv3.  Init
15719         new variables.  Update.
15720         (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
15721         Add modeling of cfv3 instruction buffer.  Update.
15722         * config/m68k/m68k-protos.h (m68k_sched_mac): Declare.
15723         * config/m68k/m68k.h (TUNE_CFV3): New macro.
15724         * config/m68k/cf.md: Change substrings 'cf_v2' to 'cfv12' or 'cfv123'.
15725         (cf_* reservations): Rename to cfv12 or cfv123 to indicate cores
15726         a particular reservation applies to.
15727         (type2): Reorganize attribute values.  Rename alu to alu_reg,
15728         alu_l to alu, move_l to omove.  Join move to alu.  Split mul
15729         to mul_l and mul_w.
15730         (cf_ib_*): Simplify description of instruction buffer.
15731         (cf_ib_w0, cf_ib_w4, cf_ib_w5, cf_ib_w6): Remove.
15732         (cf_mem): Split into cf_mem1 and cf_mem2.
15733         (cf_v2_move_??): Rename to cfv12_alu_??.
15734         (cf_v2_move_l_??): Rename to cfv12_omove_??.
15735         (cf_v2_mul_??): Remove reservations.
15736         (cfv12_mul_l_??, cfv12_mul_w_??, cfv12_mac_w_??, cfv12_mac_l_??,
15737         cfv12_emac_??, cfv12_emac_w_i0): New reservations.
15738         (cfv12_rts, cfv12_call, cfv12_bcc, cfv12_bra, cfv12_jmp): Move to
15739         appropriate place.
15740         (cfv3_alu_10, cfv3_omove_10, cfv3_alu_i0, cfv3_omove_i0, cfv3_alu_01,
15741         cfv3_alu_0i, cfv3_alu_11, cfv3_omove_11, cfv3_alu_i1, cfv3_omove_i1,
15742         cfv3_alu_1i, cfv3_omove_1i, cfv3_pea_11, cfv3_pea_i1, cfv3_mul_w_10,
15743         cfv3_mul_l_10, cfv3_mul_w_i0, cfv3_mac_w_10, cfv3_mac_l_10,
15744         cfv3_mac_w_i0, cfv3_emac_10, cfv3_emac_w_i0, cfv3_rts, cfv3_call,
15745         cfv3_bcc, cfv3_bra, cfv3_jmp): New reservations.
15746         (cfv3_*_1, cfv3_*_2, cfv3_*_3): New instruction reservations that are
15747         expansions of the above reservations for instructions of sizes
15748         1, 2 and 3 words.
15750 2008-04-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
15752         * rtl-factoring.c (collect_patterns_seqs): Handle CC0 targets.
15754 2008-04-21  Adam Nemet  <anemet@caviumnetworks.com>
15756         * coverage.c: Include tree-pass.h.
15757         (coverage_counter_alloc): Print da_file_name to the dump file.
15759 2008-04-21  Kenneth Zadeck  <zadeck@naturalbridge.com>
15761         * sbitmap.c (sbitmap_range_empty_p): New function.
15762         * sbitmap.h (sbitmap_range_empty_p): New function.
15763         * bitmap.h: Now includes obstack.h.
15765 2008-04-21  Richard Sandiford  <rsandifo@nildram.co.uk>
15766             Kenneth Zadeck  <zadeck@naturalbridge.com>
15768         * dbgcnt.def (ra_byte_scan): Added.
15769         * dbgcnt.c (dbg_cnt): Added code to print message to dump_file
15770         when the last hit happens for a counter.
15771         * timevar.def (TV_DF_BYTE_LR): New variable.
15772         * tree-pass.h (pass_fast_rtl_byte_dce): New pass.
15773         * passes.c (pass_fast_rtl_byte_dce): New pass.
15774         * fwprop.c (update_df): Added mode to call df_ref_create.
15775         Renamed DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
15776         DF_REF_EXTRACT_OFFSET.
15777         * df.h (DF_BYTE_LR, DF_BYTE_LR_BB_INFO, DF_BYTE_LR_IN,
15778         DF_BYTE_LR_OUT, df_byte_lr): New macro.
15779         (df_mm): New enum.
15780         (df_ref_extract): Added mode field.
15781         (DF_REF_WIDTH, DF_REF_OFFSET) Renamed to DF_REF_EXTRACT_WIDTH and
15782         DF_REF_EXTRACT_OFFSET.
15783         (DF_REF_EXTRACT_MODE): New macro.
15784         (df_byte_lr_bb_info): New structure.
15785         (df_print_byte_regset, df_compute_accessed_bytes,
15786         df_byte_lr_add_problem, df_byte_lr_get_regno_start,
15787         df_byte_lr_get_regno_len, df_byte_lr_simulate_defs,
15788         df_byte_lr_simulate_uses,
15789         df_byte_lr_simulate_artificial_refs_at_top,
15790         df_byte_lr_simulate_artificial_refs_at_end,
15791         df_compute_accessed_bytes): New function.
15792         (df_ref_create): Add parameter.
15793         (df_byte_lr_get_bb_info): New inline function.
15794         * df-scan.c (df_ref_record, df_uses_record,
15795         df_ref_create_structure): Added mode parameter.
15796         (df_ref_create, df_notes_rescan, df_ref_record, df_def_record_1,
15797         df_defs_record, df_uses_record, df_get_conditional_uses,
15798         df_get_call_refs, df_insn_refs_collect, df_bb_refs_collect,
15799         df_entry_block_defs_collect, df_exit_block_uses_collect):
15800         Added mode parameter to calls to df_ref_record, df_uses_record,
15801         df_ref_create_structure.
15802         (df_ref_equal_p, df_ref_compare): Added test for modes.
15803         (df_ref_create_structure): Added code to set mode.  Renamed
15804         DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
15805         DF_REF_EXTRACT_OFFSET.
15806         * df-core.c (df_print_byte_regset): New function.
15807         * df-byte-scan.c: New file.
15808         * df-problems.c (df_rd_transfer_function): Removed unnecessary
15809         calls to BITMAP_FREE.
15810         (df_byte_lr_problem_data, df_problem problem_BYTE_LR): New structure.
15811         (df_byte_lr_get_regno_start, df_byte_lr_get_regno_len,
15812         df_byte_lr_set_bb_info, df_byte_lr_free_bb_info,
15813         df_byte_lr_check_regs, df_byte_lr_expand_bitmap,
15814         df_byte_lr_alloc, df_byte_lr_reset, df_byte_lr_bb_local_compute,
15815         df_byte_lr_local_compute, df_byte_lr_init,
15816         df_byte_lr_confluence_0, df_byte_lr_confluence_n,
15817         df_byte_lr_transfer_function, df_byte_lr_free,
15818         df_byte_lr_top_dump, df_byte_lr_bottom_dump,
15819         df_byte_lr_add_problem, df_byte_lr_simulate_defs,
15820         df_byte_lr_simulate_uses,
15821         df_byte_lr_simulate_artificial_refs_at_top,
15822         df_byte_lr_simulate_artificial_refs_at_end): New function.
15823         * dce.c (byte_dce_process_block): New function.
15824         (dce_process_block): au is now passed in rather than computed
15825         locally.  Changed loops that look at artificial defs to not look
15826         for conditional or partial ones, because there never are any.
15827         (fast_dce): Now is able to drive byte_dce_process_block or
15828         dce_process_block depending on the kind of dce being done.
15829         (rest_of_handle_fast_dce): Add parameter to fast_dce.
15830         (rest_of_handle_fast_byte_dce): New function.
15831         (rtl_opt_pass pass_fast_rtl_byte_dce): New pass.
15832         * Makefile.in (df-byte-scan.o, debugcnt.o): Added dependencies.
15834 2008-04-21  Daniel Franke  <franke.daniel@gmail.com>
15836         PR fortran/35019
15837         * gcc.h: Added fortran options that take arguments to
15838         DEFAULT_SWITCH_TAKES_ARG and DEFAULT_WORD_SWITCH_TAKES_ARG
15839         macros.
15841 2008-04-20  Eric Botcazou  <ebotcazou@adacore.com>
15843         * tree-sra.c (sra_walk_expr) <VIEW_CONVERT_EXPR>: Disable
15844         scalarization if on the LHS and not a full access.
15846 2008-04-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15848         * Makefile.in (s-gtyp-input): Remove tmp-gi.list before writing it.
15850 2008-04-18  Rafael Espíndola  <espindola@google.com>
15852         * tree-vrp.c (find_case_label_index): Fix the binary search.
15853         (find_case_label_range): New.
15854         (vrp_visit_switch_stmt): Use find_case_label_range.
15855         (simplify_switch_using_ranges): Use find_case_label_range.
15857 2008-04-18  Eric Botcazou  <ebotcazou@adacore.com>
15859         * gimplify.c (gimplify_modify_expr_rhs) <COND_EXPR>: Gimplify the LHS
15860         using the is_gimple_lvalue predicate instead of is_gimple_min_lval.
15862 2008-04-18  Tom Tromey  <tromey@redhat.com>
15864         PR libcpp/15500:
15865         * doc/cpp.texi (Implementation-defined behavior): Mention
15866         -finput-charset.
15868 2008-04-18  Ian Lance Taylor  <iant@google.com>
15870         * fold-const.c (pointer_may_wrap_p): New static function.
15871         (fold_comparison): Add another test for pointer overflow.  Use
15872         pointer_may_wrap_p to disable some false positives.
15874 2008-04-18  Kris Van Hees <kris.van.hees@oracle.com>
15876         * c-common.c (CHAR16_TYPE, CHAR32_TYPE): New macros.
15877         (fname_as_string): Match updated cpp_interpret_string prototype.
15878         (fix_string_type): Support char16_t* and char32_t*.
15879         (c_common_nodes_and_builtins): Add char16_t and char32_t (and
15880         derivative) nodes.  Register as builtin if C++0x.
15881         (c_parse_error): Support CPP_CHAR{16,32}.
15882         * c-common.h (RID_CHAR16, RID_CHAR32): New elements.
15883         (enum c_tree_index) <CTI_CHAR16_TYPE, CTI_SIGNED_CHAR16_TYPE,
15884         CTI_UNSIGNED_CHAR16_TYPE, CTI_CHAR32_TYPE, CTI_SIGNED_CHAR32_TYPE,
15885         CTI_UNSIGNED_CHAR32_TYPE, CTI_CHAR16_ARRAY_TYPE,
15886         CTI_CHAR32_ARRAY_TYPE>: New elements.
15887         (char16_type_node, signed_char16_type_node, unsigned_char16_type_node,
15888         char32_type_node, signed_char32_type_node, char16_array_type_node,
15889         char32_array_type_node): New defines.
15890         * c-lex.c (cb_ident): Match updated cpp_interpret_string prototype.
15891         (c_lex_with_flags): Support CPP_CHAR{16,32} and CPP_STRING{16,32}.
15892         (lex_string): Support CPP_STRING{16,32}, match updated
15893         cpp_interpret_string and cpp_interpret_string_notranslate prototypes.
15894         (lex_charconst): Support CPP_CHAR{16,32}.
15895         * c-parser.c (c_parser_postfix_expression): Support CPP_CHAR{16,32}
15896         and CPP_STRING{16,32}.
15898 2008-04-18  Paolo Bonzini  <bonzini@gnu.org>
15900         PR bootstrap/35457
15901         * aclocal.m4: Regenerate.
15902         * configure: Regenerate.
15904 2008-04-18  Jan Hubicka  <jh@suse.cz>
15906         * except.c (dw2_size_of_call_site_table,
15907         sjlj_size_of_call_site_table): Use vector API for call_site_record.
15909         * cgraphbuild.c (build_cgraph_edges): Update.
15910         * tree-pass.h: Update comment.
15911         * final.c (leaf_function_p): Update.
15912         (leaf_renumber_regs): Update.
15913         (rest_of_clean_state): Update.
15914         * omp-low.c (expand_omp_parallel): Update.
15915         * ipa-reference.c (analyze_function): Update.
15916         * reorg.c (find_end_label): Update.
15917         (optimize_skip): Update.
15918         (fill_simple_delay_slots): Update.
15919         (fill_simple_delay_slots): Update.
15920         (make_return_insns): Update.
15921         (dbr_schedule): Update.
15922         * gimple-low.c (record_vars_into): Update.
15923         * cfgbuild.c (make_edges): Update.
15924         * function.c (assign_stack_local): Update.
15925         (assign_parm_adjust_stack_rtl): Update.
15926         (locate_and_pad_parm): Update.
15927         (allocate_struct_function): Do not initialize stack_alignment_needed
15928         and preferred_stack_boundary here.
15929         (stack_protect_prologue): Update.
15930         (stack_protect_epilogue): Update.
15931         (expand_function_start): Initialize stack_alignment_needed,
15932         preferred_stack_boundary and max_jumptable_ents.
15933         (expand_function_end): Update.
15934         (free_after_compilation): Do not NULLify epilogue_delay_list.
15935         * function.h (struct rtl_data): Add stack_protect_guard,
15936         stack_alignment_needed,
15937         preferred_stack_boundary, epilogue_delay_list.
15938         (struct function): Remove value_histograms, stack_alignment_needed,
15939         preferred_stack_boundary, epilogue_delay_list, max_jumptable_ents,
15940         last_label_uid,
15941         unexpanded_var_list, stack_protect_guard.
15942         (current_function_epilogue_delay_list): Remove.
15943         * ipa-type-escape.c (analyze_function): Update.
15944         * gimplify.c (pop_gimplify_context): Update comment.
15945         * calls.c (expand_call): Update.
15946         (emit_library_call_value_1): Update.
15947         * except.c (set_nothrow_function_flags): Update.
15948         * cfgexpand.c (get_decl_align_unit): Update.
15949         (create_stack_guard): Update.
15950         (estimated_stack_frame_size): Update.
15951         (expand_used_vars): Update.
15952         (tree_expand_cfg): Free histogram earliers, init expansion variables.
15953         * explow.c (allocate_dynamic_stack_space): Update.
15954         * tree-ssa-live.c (remove_unused_locals): Update.
15955         * varasm.c (mark_constant_pool): Update.
15956         * tree-inline.c (remap_decls): Update.
15957         (initialize_cfun): Update.
15958         (declare_return_variable): Update.
15959         (inline_forbidden_p): Update.
15960         (expand_call_inline): Update.
15961         (declare_inline_vars): Update.
15962         (tree_function_versioning): Update.
15963         * tree-flow.h (value_histograms): New.
15964         (VALUE_HISTOGRAMS): New macro.
15965         * basic-block.h (control_flow_graph): Add max_jumptable_ents,
15966         last_label_uid.
15967         * tree-cfg.c (set_bb_for_stmt): Update.
15968         (replace_by_duplicate_decl): Update.
15969         (move_block_to_fn): Update.
15970         (new_label_mapper): Update.
15971         (dump_function_to_file): Update.
15972         * ipa-struct-reorg.c (build_data_structure): Update.
15973         * cfgrtl.c (print_rtl_with_bb): Update.
15974         * reload1.c (reload): Update.
15975         (reload): Update.
15976         * config/i386/i386.c (setup_incoming_varargs_64,
15977         ix86_compute_frame_layout): Update.
15978         * config/arc/arc.c (arc_output_function_epilogue): Update.
15980 2008-04-18  Marius Strobl <marius@FreeBSD.org>
15982         * gthr-posix.h (__gthread_active_p): Use the Solaris implementation
15983         for FreeBSD as well.
15984         * gthr-posix95.h: Likewise.
15986 2008-04-17  Richard Sandiford  <rsandifo@nildram.co.uk>
15988         PR rtl-optimization/35838
15989         * dse.c (find_shift_sequence): Use subreg_lowpart_offset to work
15990         out the byte offset of the first subreg.
15992 2008-04-17  Uros Bizjak  <ubizjak@gmail.com>
15994         * config/i386/i386.md (addti3 splitter): Pass arrays of 3 operands
15995         to split_ti instead of three separate calls with single member arrays.
15996         (subti3 splitter): Ditto.
15997         (adddi3 splitter): Ditto with split_di.
15998         (subdi3 splitter): Ditto.
15999         (negti2 splitter): Pass arrays of 2 operands to split_ti instead of
16000         two separate calls with single member arrays.  Swap match_dup
16001         operands 1 and 2 to better fit into the array.
16002         (negdi2 splitter): Ditto with split_di.
16003         (movdfcc splitter):  Pass arrays of 2 operands to split_di instead of
16004         two separate calls with single member arrays.  Swap match_dup operands
16005         6 and 7 to better fit into the array.
16007 2008-04-17  H.J. Lu  <hongjiu.lu@intel.com>
16009         * config/i386/i386.c (sse_builtin_type): New.
16010         (bdesc_sse_args): Likewise.
16011         (bdesc_sse_3arg): Removed.
16012         (bdesc_2arg): Remove IX86_BUILTIN_AESKEYGENASSIST128.
16013         (bdesc_1arg): Remove IX86_BUILTIN_ROUNDPD and
16014         IX86_BUILTIN_ROUNDPS.
16015         (ix86_init_mmx_sse_builtins): Handle bdesc_sse_args.  Remove
16016         bdesc_sse_3arg.  Remove IX86_BUILTIN_ROUNDPD and
16017         IX86_BUILTIN_ROUNDPS.
16018         (ix86_expand_sse_4_operands_builtin): Removed.
16019         (ix86_expand_sse_operands_builtin): New.
16020         (ix86_expand_unop_builtin): Remove CODE_FOR_sse4_1_roundpd
16021         and CODE_FOR_sse4_1_roundps.
16022         (ix86_expand_builtin): Remove IX86_BUILTIN_AESKEYGENASSIST128.
16023         Handle bdesc_sse_args.  Remove bdesc_sse_3arg.
16025 2008-04-17  Alan Modra  <amodra@bigpond.net.au>
16027         PR target/35907
16028         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Restore vr and vrsave
16029         regs before frame pop when needed.  If use_backchain_to_restore_sp
16030         then load backchain into a temp reg to restore vr and vrsave.  Add
16031         code to restore vr after frame pop if possible.
16033 2008-04-17  Richard Guenther  <rguenther@suse.de>
16035         * tree-vn.c (expressions_equal_p): Do not check type
16036         equality or compatibility before calling operand_equal_p.
16037         * fold-const.c (operand_equal_p): Check equivalence of
16038         integer constants before bailing out due to signedness or
16039         precision differences.
16040         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ignore
16041         spurious differences in type qualification.  Ignore types
16042         for COMPONENT_REFs at all.
16044 2008-04-17  Christian Bruel  <christian.bruel@st.com>
16046         * config/sh/sh.c (expand_cbranchdi4): Use original operands for
16047         msw_skip comparison.
16049 2008-04-16  Jakub Jelinek  <jakub@redhat.com>
16051         PR c/35739
16052         * tree-nrv.c (tree_nrv): Don't optimize if result_type is GIMPLE
16053         reg type.
16055         PR tree-optimization/35899
16056         * tree-inline.c (expand_call_inline): Use GIMPLE_STMT_OPERAND
16057         rather than TREE_OPERAND.
16059 2008-04-16  Uros Bizjak  <ubizjak@gmail.com>
16061         PR target/35944
16062         * config/i386/i386.md (fmodxf3): Copy operand 1 and operand 2 into
16063         temporary registers.  Change operand predicate to general_operand.
16064         (remainderxf3): Ditto.
16066 2008-04-16  Richard Guenther  <rguenther@suse.de>
16068         * Makefile.in (tree-affine.o): Add $(FLAGS_H) dependency.
16069         * tree-affine.c (aff_combination_expand): Look through some
16070         conversions.
16072 2008-04-15  Doug Kwan  <dougkwan@google.com>
16074         * dwarf2asm.c (dw2_assemble_integer): Cast to unsigned HOST_WIDE_INT
16075         for hex printing.
16076         * tree-pretty-print.c (dump_generic_node): Ditto.
16077         * final.c (output_addr_const): Ditto.
16078         * dwarf2out.c (output_cfi): Ditto.
16079         * c-pretty-print.c (pp_c_integer_constant): Ditto.
16080         * print-rtl.c (print_rtx): Ditto.
16081         * print-tree.c (print_node_brief, print_node): Ditto.
16082         * c-common.c (match_case_to_enum_1): Ditto.
16083         * sched-vis.c (print_value): Ditto.
16084         * config/i386/i386.c (print_operand): Cast to long unsigned int
16085         for hex printing.
16087 2008-04-15  Danny Smith  <dannysmith@users.sourceforge.net>
16088         * libgcc2.c [L_trampoline]: Remove  unnecessary prototype for
16089         MS Windows VirtualProtect function.
16091 2008-04-15  Jan Hubicka  <jh@suse.cz>
16093         * gengtype.c (write_root): Param_is argument is OK.
16094         * expr.c (expand_expr_real_1): Update call of get_exception_*.
16095         * function.h: Include varray.h
16096         (rtl_eh): New stucture based on except.c one.
16097         (call_site_record): New forward declaration and vector type.
16098         * calls.c (emit_call_1): Do not call
16099         note_current_region_may_contain_throw.
16100         * except.c (eh_status): Remove cur_region, try_region since they are
16101         unused.
16102         Move filter, exc_ptr, ttype_data, ehspec_data, action_record_data and
16103         exception_handler_label_map, ehr_stackadj, ehr_handler, ehr_label,
16104         sjlj_fc, sjlj_exit_after to rth_eh in function.h.
16105         Remove call_site_data_used, call_site_data_size.
16106         Turn call_site_record into vector in function.h.
16107         (note_current_region_may_contain_throw): Remove.
16108         (get_exception_pointer, get_exception_filter): Do not take struct
16109         function argument; update.
16110         (add_ehl_entry, find_exception_handler_labels, ehspec_filter_hash,
16111         add_ttypes_entry, add_ehspec_entry, assign_filter_values,
16112         build_post_landing_pads, dw2_build_landing_pads,
16113         sjlj_assign_call_site_values, sjlj_mark_call_sites,
16114         sjlj_emit_function_enter, sjlj_emit_function_enter,
16115         sjlj_emit_function_exit, sjlj_emit_dispatch_table,
16116         sjlj_build_landing_pads, finish_eh_generation,
16117         remove_exception_handler_label, remove_eh_handler,
16118         maybe_remove_eh_handler, add_reachable_handler,
16119         reachable_handlers, expand_builtin_eh_return, expand_eh_return,
16120         add_action_record, collect_one_action_chain, add_call_site,
16121         convert_to_eh_region_ranges, sjlj_size_of_call_site_table,
16122         sjlj_output_call_site_table, output_function_exception_table,
16123         * except.h (note_current_region_may_contain_throw): Remove
16124         (get_exception_pointer, get_exception_filter): Do not take struct
16125         function argument.
16126         * Makefile.in (GTFILES): Put varargs before struct function.
16128 2008-04-15  Eric Botcazou  <ebotcazou@adacore.com>
16130         * tree-ssa-structalias.c (get_constraint_for_component_ref): Do not
16131         punt for STRING_CST.
16132         (get_constraint_for): Deal with STRING_CST here instead.
16134 2008-04-15  Richard Guenther  <rguenther@suse.de>
16136         * tree-ssa-propagate.c (substitute_and_fold): Substitute
16137         statements in a basic-block with a backward walk.  Do not
16138         substitute into dead statements but instead remove those.
16140 2008-04-15  Richard Guenther  <rguenther@suse.de>
16142         * params.def (PARAM_MAX_FIELDS_FOR_FIELD_SENSITIVE): Set default
16143         to zero, thus disable creation of SFTs.
16145 2008-04-15  Eric Botcazou  <ebotcazou@adacore.com>
16147         * tree-predcom.c (suitable_reference_p): Return false if the
16148         reference can throw.
16150 2008-04-15  Jakub Jelinek  <jakub@redhat.com>
16152         PR c/35751
16153         * c-decl.c (finish_decl): If extern or static var has variable
16154         size, set TREE_TYPE (decl) to error_mark_node.
16156 2008-04-15  Rafael Espíndola  <espindola@google.com>
16158         * fold-const.c (tree_call_nonnegative_warnv_p): Remove local
16159         variable arg1.
16161 2008-04-15  Richard Guenther  <rguenther@suse.de>
16163         * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
16164         * tree-ssa-sccvn.c (vn_reference_lookup): New parameter maywalk.
16165         (visit_reference_op_load): Do walk vuse-vdef chains on
16166         vn_reference_lookup.
16167         (visit_reference_op_store): But do not here.
16168         * tree-vn.c (vn_lookup): Do not walk vuse-vdef chains on
16169         vn_reference_lookup.
16170         (vn_lookup_with_vuses): But do so here.
16172 2008-04-14  Ian Lance Taylor  <iant@google.com>
16174         * fold-const.c (fold_overflow_warning): Remove assertion.
16176 2008-04-15  Ben Elliston  <bje@au.ibm.com>
16178         * config/alpha/alpha.c (alpha_initialize_trampoline): Remove temp,
16179         temp1 local variables.
16181 2008-04-15  Zuxy Meng  <zuxy.meng@gmail.com>
16183         PR target/35661
16184         * config/i386/winnt.c (i386_pe_section_type_flags): Mark
16185         ".text.unlikely" section as executable.
16187 2008-04-14  James E. Wilson  <wilson@tuliptree.org>
16189         * config/ia64/ia64.c (rtx_needs_barrier): Handle
16190         UNSPEC_FR_SQRT_RECIP_APPROX_RES.
16191         * config/ia64/ia64.c (UNSPEC_FR_SQRT_RECIP_APPROX_RES): Define.
16192         (divsi3_internal, divdi3_internal_lat, divdi3_internal_thr,
16193         divsf3_internal_lat, sqrt_approx, sqrtsf2_internal_thr,
16194         divdf3_internal_lat, sqrtdf2_internal_thr, divxf3_internal_lat,
16195         divxf3_internal_thr, sqrtxf2_internal_thr, recip_approx): Use it.
16197 2008-04-14  Ian Lance Taylor  <iant@google.com>
16199         * flags.h (POINTER_TYPE_OVERFLOW_UNDEFINED): Define.
16200         * fold-const.c (fold_comparison): If appropriate, test
16201         POINTER_TYPE_OVERFLOW_UNDEFINED, and issue an overflow warning.
16202         (fold_binary): Test POINTER_TYPE_OVERFLOW_UNDEFINED when
16203         reassociating a pointer type.
16204         * doc/invoke.texi (Optimize Options): Document that
16205         -fstrict-overflow applies to pointer wraparound.
16207 2008-04-13  Jan Hubicka  <jh@suse.cz>
16209         * m32.c (m32c_pushm_popm): Use crtl->retrun_rtx.
16211 2008-04-12  Andrew Pinski  <pinskia@gmail.com>
16213         * config/rs6000/rs6000.c (compute_save_world_info): Set lr_save_p if
16214         we are going to "save the world".
16216 2008-04-13  Hans-Peter Nilsson  <hp@axis.com>
16218         * config/cris/cris.md ("*andhi_lowpart_non_v32", "*andhi_lowpart_v32")
16219         ("*andqi_lowpart_non_v32", "*andqi_lowpart_v32"): Use "+" for the
16220         operand 0 constraint, not "=".
16222 2008-04-11  James E. Wilson  <wilson@tuliptree.org>
16224         * system.h: Change ASSERT_CHECKING to ENABLE_ASSERT_CHECKING.
16226 2008-04-11  H.J. Lu  <hongjiu.lu@intel.com>
16228         * dse.c (record_store): Use HOST_BITS_PER_WIDE_INT instead
16229         of size of positions_needed * CHAR_BIT.
16231 2008-04-11  H.J. Lu  <hongjiu.lu@intel.com>
16233         PR middle-end/35897
16234         * dse.c (store_info): Change positions_needed to unsigned
16235         HOST_WIDE_INT.
16236         (lowpart_bitmask): New.
16237         (record_store): Cast to unsigned HOST_WIDE_INT for
16238         positions_needed.  Assert width <= size of positions_needed *
16239         CHAR_BIT.  Call lowpart_bitmask to initialize positions_needed.
16240         (check_mem_read_rtx): Use unsigned HOST_WIDE_INT on mask.  Call
16241         lowpart_bitmask to set mask.
16243 2008-04-11  Bernd Schmidt  <bernd.schmidt@analog.com>
16245         * config/bfin/constraints.md: New file.
16246         * config/bfin/bfin.md: Include it.
16247         (adddi3): Use satisfies_constraint functions instead of the old macros.
16248         * config/bfin/bfin.h (REG_CLASS_FROM_LETTER, CONSTRAINT_LEN,
16249         CONST_18UBIT_IMM_P, CONST_16BIT_IMM_P, CONST_16UBIT_IMM_P,
16250         CONST_7BIT_IMM_P, CONST_7NBIT_IMM_P, CONST_5UBIT_IMM_P,
16251         CONST_4BIT_IMM_P, CONST_4UBIT_IMM_P, CONST_3BIT_IMM_P,
16252         CONST_3UBIT_IMM_P, CONST_OK_FOR_K, CONST_OK_FOR_P, CONST_OK_FOR_M,
16253         CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER,
16254         EXTRA_CONSTRAINT): Delete.
16255         * config/bfin/predicates.md (highbits_operand, reg_or_7bit_operand,
16256         reg_or_neg7bit_operand): Use satisfies_constraint functions instead
16257         of the old macros.
16258         * config/bfin/bfin.c: Include "tm-constrs.h".
16259         (bfin_secondary_reload, split_load_immediate, bfin_rtx_costs):
16260         Use satisfies_constraint functions instead of the old macros.
16261         * doc/md.texi (Blackfin Constraints): Update file name reference.
16263 2008-04-11  Richard Guenther  <rguenther@suse.de>
16265         PR tree-optimization/35869
16266         * tree-vrp.c (execute_vrp): Move switch statement update after
16267         jump threading.  Schedule another cfg cleanup run.
16269 2008-04-11  Volker Reichelt  <v.reichelt@netcologne.de>
16271         PR c/35744
16272         * attribs.c (decl_attributes): Return early on errorneous node.
16274 2008-04-10  Oleg Ryjkov  <olegr@google.com>
16276         * tree.h (struct tree_base): Added a new flag default_def_flag.
16277         (SSA_NAME_IS_DEFAULT_DEF): Changed to use the new flag.
16279 2008-04-11  Kaz Kojima  <kkojima@gcc.gnu.org>
16281         * config.gcc (need_64bit_hwint): Need 64bit hwint for sh-*-*.
16283 2008-04-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
16285         PR target/35768
16286         * pa.md: Define mode iterator P.  Define mode attribute dwc.
16287         (dcacheflush): Update pattern to use iterator P and attribute dwc.
16288         (icacheflush): Likewise.
16289         * pa.h (INITIALIZE_TRAMPOLINE): Use dcacheflushsi/icacheflushsi if
16290         !TARGET_64BIT, and dcacheflushdi/icacheflushdi if TARGET_64BIT.
16292 2008-04-11  Ben Elliston  <bje@au.ibm.com>
16294         * config/spu/spu.c (spu_init_builtins): Mark builtins as nothrow.
16296 2008-04-10  Rafael Espíndola  <espindola@google.com>
16298         * tree-vrp.c (extract_range_from_binary_expr): Don't handle
16299         TRUTH_ANDIF_EXPR or TRUTH_ORIF_EXPR.
16300         (extract_range_from_expr): The same.
16302 2008-04-10  Adam Nemet  <anemet@caviumnetworks.com>
16304         * config/mips/mips.md (GPR2): New mode iterator.
16305         (seq): Add comment.
16306         (*seq_<mode>, *seq_<mode>_mips16, *sne_<mode>, *sgt<u>_<mode>,
16307         *sgt<u>_<mode>_mips16, *sge<u>_<mode>, *slt<u>_<mode>,
16308         *slt<u>_<mode>_mips16 *sle<u>_<mode>, *sle<u>_<mode>_mips16):
16309         Rewrite these to take two modes, the mode of comparison and the
16310         mode of the destination.
16311         * config/mips/mips.c (mips_expand_scc): Instead of having
16312         paradoxical subreg as destination, expand "narrowing" scc if mode
16313         of comparison is SI and target is requested in DI mode.
16314         (mips_emit_int_order_test): Update comment.  Make mode of
16315         comparison match CMP0 rather than TARGET.  When creating inverse
16316         target use mode of TARGET.
16318 2008-04-10  Adam Nemet  <anemet@caviumnetworks.com>
16320         * gcov-dump.c (tag_summary): Only print summaries for the first
16321         GCOV_COUNTERS_SUMMABLE counters.
16323 2008-04-10  Uros Bizjak  <ubizjak@gmail.com>
16325         * config/i386/i386.md (absneg): New code iterator.
16326         (absnegprefix): New code attribute.
16327         (<code><mode>2): Macroize expander from abs<mode>2 and neg<mode>2
16328         patterns using absneg code iterator.
16329         (<code>tf2): Macroize expander from abstf2 and negtf2 patterns
16330         using absneg code iterator.
16331         (*<code><mode>2_1): Macroize insn pattern from *abs<mode>2_1 and
16332         *neg<mode>2 patterns using absneg code iterator.
16333         (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
16334         *negextendsfdf2 patterns using absneg code iterator.
16335         (*<code>extendsfxf2): Macroize insn pattern from *absextendsfxf2 and
16336         *negextendsfxf2 patterns using absneg code iterator.
16337         (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
16338         *negextendsfdf2 patterns using absneg code iterator.
16339         * config/i386/sse.md (<code><mode>2): Macroize expander from
16340         abs<mode>2 and neg<mode>2 patterns using absneg code iterator.
16342 2008-04-10  Andreas Krebbel  <krebbel1@de.ibm.com>
16344         * config/s390/s390.h: Remove the remains of the recent search
16345         & replace action of current_function_outgoing_args_size.
16347 2008-04-10  Ira Rosen  <irar@il.ibm.com>
16349         PR tree-optimization/35821
16350         * tree-vect-transform.c (vect_create_data_ref_ptr): Add check that
16351         NEW_STMT_LIST is not NULL.
16353 2008-04-09  David Edelsohn  <edelsohn@gnu.org>
16355         PR libstdc++/35597
16356         * toplev.c (process_options): Remove -ffunction-sections debugging
16357         warning.
16359 2008-04-09  Peter Bergner  <bergner@vnet.ibm.com>
16361         PR middle-end/PR28690
16362         * explow.c (break_out_memory_refs): Use simplify_gen_binary rather
16363         than gen_rtx_fmt_ee to perform more canonicalizations.
16365 2008-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
16367         PR driver/35665
16368         * collect2.c (write_c_file): Don't wrap in "#ifdef __cplusplus".
16370 2008-04-09  Richard Guenther  <rguenther@suse.de>
16372         * tree-cfg.c (verify_stmt): Print complete bogus stmt.
16373         (dump_function_to_file): Dump function arguments with types.
16375 2008-04-08  Richard Guenther  <rguenther@suse.de>
16377         * fold-const.c (fold_widened_comparison): Do not allow
16378         sign-changes that change the result.
16380 2008-04-08  Janis Johnson  <janis187@us.ibm.com>
16382         PR target/35839
16383         * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle additional
16384         kinds of indirect references.
16386 2008-04-08  David Edelsohn  <edelsohn@gnu.org>
16388         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Update
16389         GNU Fortran language string.
16391 2008-04-08  Rafael Espíndola  <espindola@google.com>
16393         * fold-canst.c (tree_call_nonnegative_warnv_p): New.
16394         (tree_invalid_nonnegative_warnv_p): Use tree_call_nonnegative_warnv_p.
16395         * tree.h (tree_call_nonnegative_warnv_p): New.
16397 2008-04-08  Jan Hubicka  <jh@suse.cz>
16399         * function.c (free_after_compilation): Clear out regno_reg_rtx
16400         pointer.
16402 2008-04-08  Peter Bergner  <bergner@vnet.ibm.com>
16404         Revert
16405         2008-04-07  Peter Bergner  <bergner@vnet.ibm.com>
16407         PR middle-end/PR28690
16408         * rtlanal.c: (commutative_operand_precedence): Give SYMBOL_REF's the
16409         same precedence as REG_POINTER and MEM_POINTER operands.
16411 2008-04-08  Richard Guenther  <rguenther@suse.de>
16413         PR middle-end/35834
16414         * tree-ssa-address.c (create_mem_ref): Use POINTER_PLUS_EXPR
16415         for adding index to base.
16417 2008-04-08  Kai Tietz  <kai.tietz@onevision.com>
16419         * config/i386/mingw32.h (ENABLE_EXECUTE_STACK): New.
16420         (MINGW_ENABLE_EXECUTE_STACK): New.
16421         (IN_LIBGCC2): For libgcc include windows.h file for
16422         function declarations.
16424 2008-04-08  Hans-Peter Nilsson  <hp@axis.com>
16426         * config/cris/cris.c (cris_address_cost): For a PLUS, swap tem1
16427         and tem2 if tem1 is not a REG or MULT.
16429 2008-04-08  Jan Hubicka  <jh@suse.cz>
16431         * function.h (incomming_args): Break out of struct function.
16432         (function_subsections): Break out of struct function.
16433         (rtl_data): Add args, subsections fields. Break out outgoing_args_size,
16434         return_rtx and hard_reg_initial_vals from struct function.
16435         Kill inl_max_label_num.
16436         (current_function_pops_args, current_function_args_info,
16437         current_function_args_size, current_function_args_size,
16438         current_function_pretend_args_size,
16439         current_function_outgoing_args_size,
16440         current_function_internal_arg_pointer, current_function_return_rtx):
16441         Kill compatibility accestor macros.
16442         * builtins.c (expand_builtin_apply_args_1): Update.
16443         (expand_builtin_next_arg): Update.
16444         * df-scan.c (df_get_call_refs): Update.
16445         * dbxout.c (dbxout_function_end): Update.
16446         * dwarf2out.c (dwarf2out_switch_text_section): Update.
16447         (output_line_info): Update.
16448         (secname_for_decl): Update.
16449         (dwarf2out_var_location): Update.
16450         * function.c (free_after_compilation): Update.
16451         (assign_parm_find_stack_rtl): Update.
16452         (assign_parms): Update.
16453         (expand_dummy_function_end): Update.
16454         (expand_function_end): Update.
16455         * calls.c (mem_overlaps_already_clobbered_arg_p): Update.
16456         (expand_call): Update.
16457         (emit_library_call_value_1): Update.
16458         (store_one_arg): Update.
16459         * varasm.c (initialize_cold_section_name): Update.
16460         (unlikely_text_section): Update.
16461         (unlikely_text_section_p): Update.
16462         (assemble_start_function): Update.
16463         (assemble_end_function): Update.
16464         (default_section_type_flags): Update.
16465         (switch_to_section): Update.
16466         * integrate.c (set_decl_abstract_flags): Update.
16467         (get_hard_reg_initial_val): Update.
16468         (has_hard_reg_initial_val): Update.
16469         (allocate_initial_values): Update.
16470         * resource.c (init_resource_info): Update.
16471         * config/alpha/alpha.c (NUM_ARGS): Update.
16472         (direct_return): Update.
16473         (alpha_va_start): Update.
16474         (alpha_sa_size): Update.
16475         (alpha_initial_elimination_offset): Update.
16476         (alpha_expand_prologue): Update.
16477         (alpha_start_function): Update.
16478         (alpha_expand_epilogue): Update.
16479         (unicosmk_initial_elimination_offset):
16480         * config/alpha/alpha.md (call expander): Update.
16481         * config/s390/s390.c (s390_register_info): Update.
16482         (s390_register_info): Update.
16483         (s390_frame_info): Update.
16484         (s390_initial_elimination_offset): Update.
16485         (s390_build_builtin_va_list): Update.
16486         (s390_va_start): Update.
16487         * config/spu/spu.c (direct_return): Update.
16488         (spu_expand_prologue): Update.
16489         (spu_initial_elimination_offset): Update.
16490         (spu_build_builtin_va_list): Update.
16491         (spu_va_start): Update.
16492         * config/sparc/sparc.c (sparc_init_modes): Update.
16493         (sparc_compute_frame_size): Update.
16494         (function_value): Update.
16495         * config/m32r/m32r.c (m32r_compute_frame_size): Update.
16496         * config/i386/i386.md (return expander): Update.
16497         * config/i386/i386.c (ix86_va_start): Update.
16498         (ix86_can_use_return_insn_p): Update.
16499         (ix86_compute_frame_layout): Update.
16500         (ix86_expand_epilogue): Update.
16501         * config/sh/sh.c (output_stack_adjust): Update.
16502         (calc_live_regs): Update.
16503         (sh_expand_prologue): Update.
16504         (sh_builtin_saveregs): Update.
16505         (sh_va_start): Update.
16506         (initial_elimination_offset): Update.
16507         (sh_allocate_initial_value): Update.
16508         (sh_function_ok_for_sibcall): Update.
16509         (sh_get_pr_initial_val): Update.
16510         * config/sh/sh.md (return expander): Update.
16511         * config/avr/avr.c (frame_pointer_required_p): UPdate.
16512         * config/crx/crx.c (crx_compute_frame): UPdate.
16513         (crx_initial_elimination_offset): UPdate.
16514         * config/xtensa/xtensa.c (compute_frame_size): Update
16515         (xtensa_builtin_saveregs): Update.
16516         (xtensa_va_start): Update.
16517         (order_regs_for_local_alloc): Update.
16518         * config/stormy16/stormy16.c (xstormy16_compute_stack_layout): Update.
16519         (xstormy16_expand_builtin_va_start): Update.
16520         * config/fr30/fr30.c (fr30_compute_frame_size): Update.
16521         * config/m68hc11/m68hc11.md (return expanders): Update.
16522         * config/m68hc11/m68hc11.c (expand_prologue): Update.
16523         (expand_epilogue): Update.
16524         * config/cris/cris.c (cris_initial_frame_pointer_offset): Update.
16525         (cris_simple_epilogue): Update.
16526         (cris_expand_prologue): Update.
16527         (cris_expand_epilogue): Update.
16528         * config/iq2000/iq2000.c (iq2000_va_start): Update.
16529         (compute_frame_size): Update.
16530         * config/mt/mt.c (mt_compute_frame_size): Update.
16531         * config/mn10300/mn10300.c (expand_prologue): Update.
16532         (expand_epilogue): Update.
16533         (initial_offset): Update.
16534         (mn10300_builtin_saveregs):
16535         * config/mn10300/mn10300.md (return expander): Update.
16536         * config/ia64/ia64.c (ia64_compute_frame_size): Update.
16537         (ia64_initial_elimination_offset): Update.
16538         (ia64_initial_elimination_offset): Update.
16539         (ia64_expand_prologue): Update.
16540         * config/m68k/m68k.md (return expander): Update.
16541         * config/rs6000/rs6000.c (rs6000_va_start): Update.
16542         (rs6000_stack_info): Update.
16543         * config/mcore/mcore.c (layout_mcore_frame): Update.
16544         (mcore_expand_prolog): Update.
16545         * config/arc/arc.c (arc_compute_frame_size): Update.
16546         * config/score/score3.c (score3_compute_frame_size): Update.
16547         * config/score/score7.c (score7_compute_frame_size): Update.
16548         * config/arm/arm.c (use_return_insn): Update.
16549         (thumb_find_work_register): Update.
16550         (arm_compute_save_reg_mask): Update.
16551         (arm_output_function_prologue): Update.
16552         (arm_output_epilogue): Update.
16553         (arm_size_return_regs): Update.
16554         (arm_get_frame_offsets): Update.
16555         (arm_expand_prologue): Update.
16556         (thumb_exit): Update.
16557         (thumb_unexpanded_epilogue): Update.
16558         (thumb1_output_function_prologue): Update.
16559         * config/pa/pa.md (return expander): Update.
16560         * config/pa/pa.c (compute_frame_size): Update.
16561         (hppa_builtin_saveregs): Update.
16562         * config/mips/mips.c (mips_va_start): Update.
16563         (mips16_build_function_stub): Update.
16564         (mips_compute_frame_info): Update.
16565         (mips_restore_gp): Update.
16566         (mips_output_function_prologue): Update.
16567         (mips_expand_prologue): Update.
16568         * config/v850/v850.c (compute_frame_size): Update.
16569         (expand_prologue): * config/mmix/mmix.c (along): update.
16570         (mmix_initial_elimination_offset): update.
16571         (mmix_reorg): update.
16572         (mmix_use_simple_return): update.
16573         (mmix_expand_prologue): update.
16574         (mmix_expand_epilogue): Update.
16575         * config/bfin/bfin.c (bfin_initial_elimination_offset): Update.
16576         (emit_link_insn): Update.
16578 2008-04-08  Anatoly Sokolov <aesok@post.ru>
16580         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Define
16581         __AVR_HAVE_EIJMP_EICALL__ macro if device have EIJMP and EICALL
16582         instructions.
16583         * config/avr/avr.c (avr_mcu_types): Set AVR31 architecture for
16584         atmega103 device.
16586 2008-04-07  Jan Hubicka  <jh@suse.cz>
16588         * function.h (rtl): Rename to x_rtl.
16589         (crtl): New define.
16590         (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
16591         frame_offset, stack_check_probe_note, arg_pointer_save_area,
16592         used_temp_slots avail_temp_slots, temp_slot_level,
16593         nonlocal_goto_handler_labels): Update accesstors.
16594         (rtl): New global variable.
16595         (struct function): Move some fileds to rtl_data.
16596         (get_arg_pointer_save_area): Update prototype.
16597         * builtins.c (expand_builtin_setjmp_receiver): Update call of
16598         get_arg_pointer_save_area.
16599         * expr.c (init_expr): Update
16600         * function.c (get_frame_size): Update
16601         (assign_stack_local): Update
16602         (expand_function_end): Update.
16603         (get_art_pointer_save_area): Update
16604         * function.h
16605         * emit-rtl.c (rtl): Declare.
16606         (regno_reg_rtx): Declare.
16607         (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
16608         Update.
16609         (gen_reg_rtx): Update.
16610         * varasm.c (n_deferred_constatns): Update accestor.
16611         (init_varasm_status): Do not allocate varasm_status.
16612         (force_const_mem, get_pool_size, output_constant_pool): Update.
16613         * stmt.c (force_label_rtx): Do not use x_ prefixes.
16614         (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
16615         * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Update.
16616         * sparc/sparc.h (INIT_EXPANDERS): Update.
16617         * ia64/ia64.h (INIT_EXPANDERS): Update.
16619 2008-04-07  James E. Wilson  <wilson@tuliptree.org>
16621         * reload.c (push_secondary_reload): Add missing break to for loop.
16623 2008-04-07  Peter Bergner  <bergner@vnet.ibm.com>
16625         PR middle-end/PR28690
16626         * rtlanal.c: Update copyright years.
16627         (commutative_operand_precedence): Give SYMBOL_REF's the same precedence
16628         as REG_POINTER and MEM_POINTER operands.
16629         * emit-rtl.c (gen_reg_rtx_and_attrs): New function.
16630         (set_reg_attrs_from_value): Call mark_reg_pointer as appropriate.
16631         * rtl.h (gen_reg_rtx_and_attrs): Add prototype for new function.
16632         * gcse.c: Update copyright years.
16633         (pre_delete): Call gen_reg_rtx_and_attrs.
16634         (hoist_code): Likewise.
16635         (build_store_vectors): Likewise.
16636         (delete_store): Likewise.
16637         * loop-invariant.c (move_invariant_reg): Likewise.
16638         Update copyright years.
16640 2008-04-07  Uros Bizjak  <ubizjak@gmail.com>
16642         * config/i386/i386.md ("*sse_prologue_save_insn"): Use braced output
16643         control string instead of quoted.
16645 2008-04-07  Kenneth Zadeck  <zadeck@naturalbridge.com>
16647         * doc/rtl.texi: Rewrite of subreg section.
16649 2008-04-07  Kai Tietz  <kai.tietz@onevision.com>
16651         PR/35842
16652         * config/i386/i386.c (legitimize_pic_address): Add treating
16653         of dllimport SYM_REF's.
16654         (legitimize_dllimport_symbol): Add prototype.
16656 2008-04-07  Eric Botcazou  <ebotcazou@adacore.com>
16658         * fold-const.c (fold) <ARRAY_REF>: New case.  Try to fold constant
16659         reference in constructor with non self-referential type.
16661 2008-04-07  Eric Botcazou  <ebotcazou@adacore.com>
16663         Removal of Return with Depressed Stack Pointer support
16664         * tree.h (TYPE_RETURNS_STACK_DEPRESSED): Delete.
16665         (ECF_SP_DEPRESSED): Likewise.
16666         (ECF_LIBCALL_BLOCK, ECF_NOVOPS): Adjust.
16667         * calls.c (emit_call_1): Do not test ECF_SP_DEPRESSED.
16668         (flags_from_decl_or_type): Do not test TYPE_RETURNS_STACK_DEPRESSED.
16669         (expand_call): Do not test ECF_SP_DEPRESSED.
16670         * dse.c (dse_step0): Do not test TYPE_RETURNS_STACK_DEPRESSED.
16671         * function.c (keep_stack_depressed): Delete.
16672         (handle_epilogue_set): Likewise.
16673         (update_epilogue_consts): Likewise.
16674         (emit_equiv_load): Likewise.
16675         (thread_prologue_and_epilogue_insns): Remove support for Return with
16676         Depressed Stack Pointer.
16677         * print-tree.c (print_node): Do not test TYPE_RETURNS_STACK_DEPRESSED.
16679 2008-04-06  Richard Guenther  <rguenther@suse.de>
16681         PR tree-optimization/35400
16682         * tree-vrp.c (vrp_evaluate_conditional): Only query value-range
16683         information from SSA_NAMEs.
16685 2008-04-06  Anatoly Sokolov <aesok@post.ru>
16687         * config/avr/avr.h (avr_mega_p): Remove declaration.
16688         (AVR_MEGA): Remove macro.
16689         * config/avr/avr.c (avr_mega_p): Remove variable.
16690         (avr_override_options): Remove inicializion of avr_mega_p.
16691         Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
16692         (print_operand): Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
16693         (avr_jump_mode): (Ditto.).
16694         (avr_output_progmem_section_asm_op): (Ditto.).
16695         (avr_asm_init_sections): (Ditto.).
16696         (avr_asm_init_sections): (Ditto.).
16697         (avr_rtx_costs): (Ditto.).
16698         * config/avr/avr.md: (Ditto.).
16699         * config/avr/avr.h: Use '__AVR_HAVE_JMP_CALL__' instead of
16700         '__AVR_MEGA__'.
16702 2008-04-06  Richard Guenther  <rguenther@suse.de>
16704         PR tree-optimization/35842
16705         * tree-ssa-address.c (fixed_address_object_p): Adjust to match
16706         is_gimple_invariant_address.
16708 2008-04-06  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
16710         * gcc.c (default_compilers): Sync Fortran extensions list with
16711         that in fortran/lang-specs.h.
16712         * doc/invoke.texi: Likewise.
16713         * dbxout.c (get_lang_number): Use "GNU Fortran" in "GNU F95".
16714         * dwarf2out.c (gen_compile_unit_die): Likewise.
16716 2008-04-06  Tom G. Christensen  <tgc@jupiterrise.com>
16718         * gthr-posix95.h (__gthread_cond_wait_recursive): Add missing &.
16720 2008-04-05  Uros Bizjak  <ubizjak@gmail.com>
16722         PR target/12329
16723         * config/i386/i386.c (ix86_function_regparm): Error if regparm(3)
16724         attribute is used for nested functions.
16726 2008-04-05  Jan Hubicka  <jh@suse.cz>
16728         * emit-rtl.c (init_emit): xcalloc regno_pointer_align.
16730         * tree-dump.c (dump_enable_all): Remove prototype; do not accept
16731         letter argument.
16732         (dump_files): Update.
16733         (enable_rtl_dump_file): Do not accept letter argument.
16734         * tree-pass.h (dump_file_info): Remove letter argument.
16735         * toplev.c (decode_d_option): Update -da handling.
16736         * toplev.h (enable_rtl_dump_file): Update prototype.
16737         * passes.c (register_one_dump_file): Do not accept IPA argument; work
16738         it out based on pass type.
16739         (register_dump_files_1): Likewise.
16740         (init_optimization_passes): Update register_one_dump_file calls.
16741         (execute_one_pass): Sanity check that IPA passes are called at IPA
16742         level and RTL passes at RTL level.
16743         (execute_pass_list): IPA pass can not be after or subpass of
16744         GIMPLE/RTL pass.
16745         (execute_ipa_pass_list): Handle IPA subpasses of IPA subpasses and
16746         disallov RTL subpasses of IPA subpasses.
16748 2008-04-05  Ben Elliston  <bje@au.ibm.com>
16750         * tree-cfg.c (need_fake_edge_p): Return false for calls to
16751         builtins that return exactly once and do not throw. Cache call to
16752         call_expr_flags.
16754 2008-04-04 Andy Hutchinson <hutchinsonandy@aim.com>
16756         PR rtl-optimization/34916
16757         PR middle-end/35519
16758         * combine.c (create_log_links): Do not create duplicate LOG_LINKS
16759         between instruction pairs.
16761 2008-04-04  Naveen.H.S  <naveen.hs@kpitcummins.com>
16763         * doc/invoke.texi: Document -mbitops for SH.
16764         * config/sh/constraints.md (K03, K12, Sbv, Sbw): New constraints.
16765         * config/sh/predicates.md (bitwise_memory_operand): New predicate.
16766         * config/sh/sh.c (print_operand): Add %t operand code.
16767         * config/sh/sh.h (GO_IF_LEGITIMATE_INDEX): Add condition for SH2A.
16768         * config/sh/sh.md (*iorsi3_compact): Fix condition for SH2A.
16769         (extendqisi2_compact): Add the alternative for SH2A 4-byte mov.b.
16770         (extendqihi2): Likewise.
16771         (movqi_i): Likewise.
16772         (insv): Use bset, bclr and bst instructions for SH2A if possible.
16773         (extv): Use bld instruction for SH2A if possible.
16774         (extzv): Likewise.
16775         (bclr_m2a, bclrmem_m2a, bset_m2a, bsetmem_m2a, bst_m2a, bld_m2a,
16776         bldsign_m2a, bld_reg, *bld_regqi, band_m2a, bandreg_m2a,
16777         bor_m2a, borreg_m2a, bxor_m2a, bxorreg_m2a): New insns.
16778         (bset.b, bclr.b): Define peepholes.
16779         * config/sh/sh.opt (mbitops): New option.
16781 2008-04-04  Janis Johnson  <janis187@us.ibm.com>
16783         PR target/35620
16784         * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle indirect ref
16785         and view convert expression.
16787 2008-04-04  Jakub Jelinek  <jakub@redhat.com>
16789         PR target/35364
16790         * tree-cfg.c (remove_useless_stmts_1): Handle OMP_* containers.
16792 2008-04-04  H.J. Lu  <hongjiu.lu@intel.com>
16794         * config.gcc (extra_headers): Add wmmintrin.h for x86 and x86-64.
16796         * config/i386/cpuid.h (bit_AES): New.
16797         (bit_PCLMUL): Likewise.
16799         * config/i386/i386.c (pta_flags): Add PTA_AES and PTA_PCLMUL.
16800         (override_options): Handle PTA_AES and PTA_PCLMUL.  Enable
16801         SSE2 if AES or PCLMUL is enabled.
16802         (ix86_builtins): Add IX86_BUILTIN_AESENC128,
16803         IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
16804         IX86_BUILTIN_AESDECLAST128, IX86_BUILTIN_AESIMC128,
16805         IX86_BUILTIN_AESKEYGENASSIST128 and IX86_BUILTIN_PCLMULQDQ128.
16806         (bdesc_sse_3arg): Add IX86_BUILTIN_PCLMULQDQ128.
16807         (bdesc_2arg): Add IX86_BUILTIN_AESENC128,
16808         IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
16809         IX86_BUILTIN_AESDECLAST128 and IX86_BUILTIN_AESKEYGENASSIST128.
16810         (bdesc_1arg): Add IX86_BUILTIN_AESIMC128.
16811         (ix86_init_mmx_sse_builtins): Define __builtin_ia32_aesenc128,
16812         __builtin_ia32_aesenclast128, __builtin_ia32_aesdec128,
16813         __builtin_ia32_aesdeclast128,__builtin_ia32_aesimc128,
16814         __builtin_ia32_aeskeygenassist128 and
16815         __builtin_ia32_pclmulqdq128.
16816         * config/i386/i386.c (ix86_expand_binop_imm_builtin): New.
16817         (ix86_expand_builtin): Use it for IX86_BUILTIN_PSLLDQI128 and
16818         IX86_BUILTIN_PSRLDQI128.  Handle IX86_BUILTIN_AESKEYGENASSIST128.
16820         * config/i386/i386.h (TARGET_AES): New.
16821         (TARGET_PCLMUL): Likewise.
16822         (TARGET_CPU_CPP_BUILTINS): Handle TARGET_AES and TARGET_PCLMUL.
16824         * config/i386/i386.md (UNSPEC_AESENC): New.
16825         (UNSPEC_AESENCLAST): Likewise.
16826         (UNSPEC_AESDEC): Likewise.
16827         (UNSPEC_AESDECLAST): Likewise.
16828         (UNSPEC_AESIMC): Likewise.
16829         (UNSPEC_AESKEYGENASSIST): Likewise.
16830         (UNSPEC_PCLMUL): Likewise.
16832         * config/i386/i386.opt (maes): New.
16833         (mpclmul): Likewise.
16835         * config/i386/sse.md (aesenc): New pattern.
16836         (aesenclast): Likewise.
16837         (aesdec): Likewise.
16838         (aesdeclast): Likewise.
16839         (aesimc): Likewise.
16840         (aeskeygenassist): Likewise.
16841         (pclmulqdq): Likewise.
16843         * config/i386/wmmintrin.h: New.
16845         * doc/extend.texi: Document AES and PCLMUL built-in function.
16847         * doc/invoke.texi: Document -maes and -mpclmul.
16849 2008-04-04  Paolo Bonzini  <bonzini@gnu.org>
16851         * function.c (free_after_parsing): Replace with
16852         cxx_push_function_context from C++ front-end.
16853         (allocate_struct_function): Don't call langhook.
16854         * langhooks.h (struct lang_hooks_for_functions): Delete.
16855         (struct lang_hooks): Add back missing_noreturn_ok_p here, delete
16856         member "function".
16857         * langhooks-def.h (LANG_HOOKS_MISSING_NORETURN_OK_P): Add.
16858         (LANG_HOOKS_FUNCTION_INIT, LANG_HOOKS_FUNCTION_FINAL,
16859         LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P,
16860         LANG_HOOKS_FUNCTION_INITIALIZER): Delete.
16861         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_MISSING_NORETURN_OK_P,
16862         remove LANG_HOOKS_FUNCTION_INITIALIZER.
16863         * tree-cfg.c: Adjust call to missing_noreturn_ok_p langhook.
16865         * c-objc-common.h (LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P):
16866         Rename to LANG_HOOKS_MISSING_NORETURN_OK_P.
16868 2008-04-04  Jakub Jelinek  <jakub@redhat.com>
16870         PR c/35440
16871         * c-pretty-print.c (pp_c_initializer_list): Handle CONSTRUCTOR
16872         for all types.
16874 2008-04-04  Richard Guenther  <rguenther@suse.de>
16876         PR middle-end/35823
16877         * fold-const.c (optimize_minmax_comparison): Use the correct
16878         type for the constant in the simplified comparison.
16880 2008-04-04  Zuxy Meng <zuxy.meng@gmail.com>
16882         * config/i386/driver-i386.c (describe_cache): Add l2_sizekb argument.
16883         Pass L2 size as "--param l2-cache-size" to the compiler.
16884         (decode_l2_cache): New function to decode L2 cache parameters using
16885         0x8000006 extended cpuid function.
16886         (detect_caches_amd): Determine parameters of L2 cache using
16887         decode_l2_caches function.
16888         (decode_caches_intel): Decode L2 cache parameters.
16889         (detect_caches_intel): Determine L2 cache parameters using
16890         decode_caches_intel and decode_l2_caches functions.
16892 2008-04-03  Bob Wilson  <bob.wilson@acm.org>
16894         * config/xtensa/xtensa.c (xtensa_secondary_reload_class): Use a
16895         secondary input reload for subword loads from the constant pool.
16897 2008-04-03  Janis Johnson  <janis187@us.ibm.com>
16899         PR target/35713
16900         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use integer
16901           constants of the appropriate size for runtime calculations.
16903         PR c/35712
16904         * dfp.c (decimal_from_decnumber): Retain trailing zeroes for
16905           decimal-float literal constant zero.
16907 2008-04-03  Jakub Jelinek  <jakub@redhat.com>
16909         PR c/35738
16910         * c-parser.c (c_parser_omp_atomic): Call
16911         default_function_array_conversion on the RHS.
16913         PR middle-end/35818
16914         * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: Don't
16915         call is_variable_sized if decl has incomplete type.
16917 2008-04-03  H.J. Lu  <hongjiu.lu@intel.com>
16919         * config/i386/i386-protos.h (ix86_aligned_p): Removed.
16921 2008-04-03  Adam Nemet  <anemet@caviumnetworks.com>
16923         * config/mips/mips.md (any_gt, any_ge, any_lt, any_le): New code
16924         iterators.
16925         (u): Add attribute values for gt, gtu, ge, geu, lt, ltu, le and leu.
16926         (sgt<u>): Merge sgt and sgtu into new expander.
16927         (sgt, sgtu): Remove expanders.
16928         (*sgt<u>_<mode>): Merge *sgt_<mode> and *sgtu_<mode> into new pattern.
16929         (*sgt_<mode>, *sgtu_<mode>): Remove patterns.
16930         (*sgt<u>_<mode>_mips16): Merge *sgt_<mode>_mips16 and
16931         *sgtu_<mode>_mips16 into new pattern.
16932         (*sgt_<mode>_mips16, *sgtu_<mode>_mips16): Remove patterns.
16933         (sge<u>): Merge sge and sgeu into new expander.
16934         (sge, sgeu): Remove expanders.
16935         (*sge<u>_<mode>): Merge *sge_<mode> and second *sge_<mode> into
16936         new pattern.
16937         (*sge_<mode>, second *sge_<mode>): Remove patterns.
16938         (slt<u>): Merge slt and sltu into new expander.
16939         (slt, sltu): Remove expanders.
16940         (*slt<u>_<mode>): Merge *slt_<mode> and *sltu_<mode> into new pattern.
16941         (*slt_<mode>, *sltu_<mode>): Remove patterns.
16942         (*slt<u>_<mode>_mips16): Merge *slt_<mode>_mips16 and
16943         *sltu_<mode>_mips16 into new pattern.
16944         (*slt_<mode>_mips16, *sltu_<mode>_mips16): Remove patterns.
16945         (sle<u>): Merge sle and sleu into new expander.
16946         (sle, sleu): Remove expanders.
16947         (*sle<u>_<mode>): Merge *sle_<mode> and *sleu_<mode> into new pattern.
16948         (*sle_<mode>, *sleu_<mode>): Remove patterns.
16949         (*sle<u>_<mode>_mips16): Merge *sle_<mode>_mips16 and
16950         *sleu_<mode>_mips16 into new pattern.
16951         (*sle_<mode>_mips16, *sleu_<mode>_mips16): Remove patterns.
16953 2008-04-03  Jan Hubicka  <jh@suse.cz>
16955         PR tree-optimization/35795
16956         * alpha/alpha.c (alpha_output_mi_thunk_osf): Free after compilation.
16957         * sparc/sparc.c (sparc_output_mi_thunk): Likewise.
16958         * ia64/ia64.c (ia64_output_mi_thunk): Likewise.
16959         * m68k/m68k.c (m68k_output_mi_thunk): Likewise.
16960         * score/score3.c (score3_output_mi_thunk): Likewise.
16961         * score/score7.c (score7_output_mi_thunk): Likewise.
16962         * mips/mips.c (mips_output_mi_thunk): Likewise.
16964 2008-04-03  Richard Guenther  <rguenther@suse.de>
16966         * tree-vrp.c (extract_range_from_unary_expr): Handle all
16967         conversions.  Simplify code.
16969 2008-04-03  Kaz Kojima  <kkojima@gcc.gnu.org>
16971         * config/sh/sh.c (sh_output_mi_thunk): Free cfun.
16973 2008-04-03  Tom Tromey  <tromey@redhat.com>
16974             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16976         * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
16977         * config/bfin/t-bfin-linux (generated_files): Add
16978         linux-sysroot-suffix.h.
16979         * doc/install.texi (Prerequisites): Require make 3.80.
16980         * doc/sourcebuild.texi (Front End Directory): Document new
16981         variable.
16982         * Makefile.in (generated_files): New variable.
16983         (ALL_HOST_OBJS): New variable.
16984         ($(ALL_HOST_OBJS)): New target.
16986 2008-04-03  Paolo Bonzini  <bonzini@gnu.org>
16988         * tree-inline.c (copy_generic_body, copy_decl_no_change): Export.
16989         (remap_block): Call id->transform_lang_insert_block instead
16990         of langhook.
16991         (optimize_inline_calls, unsave_expr_now, tree_function_versioning):
16992         Set id.transform_lang_insert_block to NULL.
16993         (clone_body): Move to cp/optimize.c
16994         * tree-inline.h (struct copy_body_data): Change
16995         transform_lang_insert_block to function pointer.
16996         (copy_generic_body, copy_decl_no_change): Export.
16997         * langhooks.h (struct lang_hooks_for_decls): Kill insert_block.
16998         * langhooks-def.h (LANG_HOOKS_INSERT_BLOCK): Kill.
16999         (LANG_HOOKS_DECLS): Remove LANG_HOOKS_INSERT_BLOCK.
17001         * c-tree.h (insert_block): Kill.
17002         * c-decl.c (insert_block): Kill.
17004 2008-04-03  Paolo Bonzini  <bonzini@gnu.org>
17006         * c-objc-common.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
17007         LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
17008         * c-tree.h (c_push_function_context, c_pop_function_context): Remove
17009         argument.
17010         * c-decl.c (c_push_function_context, c_pop_function_context): Remove
17011         argument, call {push,pop}_function_context from here.
17012         * c-parser.c: Use c_{push,pop}_function_context.
17014         * function.c (push_function_context_to): Move meat ...
17015         (push_function_context): ... here.  Simplify.
17016         * function.c (pop_function_context_from): Move meat ...
17017         (pop_function_context): ... here.  Simplify.
17018         * langhooks.h (struct lang_hooks_for_functions): Remove enter_nested,
17019         leave_nested).
17020         * langhooks-def.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
17021         LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
17022         (LANG_HOOKS_FUNCTION_INITIALIZER): Delete them from here.
17023         * tree.h (push_function_context_to, pop_function_context_from): Remove.
17025 2008-04-03  Ben Elliston  <bje@au.ibm.com>
17027         * expmed.c (extract_force_align_mem_bit_field): Remove.
17029 2008-04-03  Richard Guenther  <rguenther@suse.de>
17031         PR middle-end/35800
17032         * expr.h (try_casesi): Adjust prototype.
17033         * expr.c (try_casesi): Take fallback label as extra parameter.
17034         Use that for gen_casesi if default_label is NULL.
17035         * stmt.c (expand_case): Pass fallback label to try_casesi,
17036         make sure to fill gaps with a fallback label if default_label
17037         is not present.
17039 2008-04-03  Dominique d'Humières <dominiq@lps.ens.fr>
17041         PR target/35801
17042         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Free cfun.
17044 2008-04-03  Ben Elliston  <bje@au.ibm.com>
17046         * expmed.c (extract_split_bit_field): Remove if (0) code.
17047         * tree-ssa-structalias.c (do_sd_constraint): Likewise.
17048         (do_ds_constraint): Likewise.
17050 2008-04-02  Joseph Myers  <joseph@codesourcery.com>
17052         * doc/cppopts.texi (-dU): Document.
17053         * c-common.h (flag_dump_macros): Update comment.
17054         * c-opts.c (handle_OPT_d): Handle -dU.
17055         * c-ppoutput.c (macro_queue, define_queue, undef_queue,
17056         dump_queued_macros, cb_used_define, cb_used_undef): New.
17057         (init_pp_output): Handle -dU.
17058         (cb_line_change): Call dump_queued_macros.
17059         * toplev.c (decode_d_option): Accept -dU as preprocessor option.
17061 2008-04-02  Anatoly Sokolov <aesok@post.ru>
17063         * config/avr/predicates.md (io_address_operand): New predicate.
17064         * config/avr/avr-protos.h (avr_io_address_p): Remove declaration.
17065         * config/avr/avr.c (avr_io_address_p): Remove function.
17066         (out_movqi_r_mr): Use 'io_address_operand' predicate instead of
17067         'avr_io_address_p' function.
17068         (out_movhi_r_mr): (Ditto.).
17069         (out_movqi_mr_r): (Ditto.).
17070         (out_movhi_mr_r): (Ditto.).
17071         (avr_address_cost): (Ditto.).
17073 2008-04-02  Uros Bizjak  <ubizjak@gmail.com>
17075         * config/i386/i386.md (*float<SSEMODEI24:mode><X87MODEF:mode>2_1):
17076         Emit gen_floatdi<X87MODEF:mode>2_i387_with_xmm for DImode values
17077         in 32bit mode when XMM registers are available to avoid store
17078         forwarding stalls.
17079         (floatdi<X87MODEF:mode>2_i387_with_xmm): New insn pattern and
17080         corresponding post-reload splitters.
17082 2008-04-02  H.J. Lu  <hongjiu.lu@intel.com>
17084         * config/i386/i386.c (bdesc_sse_3arg): Add __builtin_ia32_shufps
17085         and __builtin_ia32_shufpd.  Provide __builtin_ia32_roundsd and
17086         __builtin_ia32_roundss.
17087         (ix86_init_mmx_sse_builtins): Remove __builtin_ia32_shufps,
17088         __builtin_ia32_shufpd, __builtin_ia32_roundsd and
17089         __builtin_ia32_roundss.
17090         (ix86_expand_builtin): Don't handle IX86_BUILTIN_SHUFPS and
17091         IX86_BUILTIN_SHUFPD here.
17093 2008-04-02  H.J. Lu  <hongjiu.lu@intel.com>
17095         * config/i386/i386.md (plogic): New.
17096         (plogicprefix): Likewise.
17098         * config/i386/mmx.md (mmx_<code><mode>3): New.
17099         (mmx_and<mode>3): Removed.
17100         (mmx_ior<mode>3): Likewise.
17101         (mmx_xor<mode>3): Likewise.
17103         * config/i386/sse.md (<code><mode>3): New.
17104         (*<code><mode>3): Likewise.
17105         (*<code><mode>3): Likewise.
17106         (<code><mode>3): Likewise.
17107         (*sse_<code><mode>3): Likewise.
17108         (*sse2_<code><mode>3): Likewise.
17109         (<code>tf3): Likewise.
17110         (*<code>tf3): Likewise.
17111         (and<mode>3): Likewise.
17112         (*and<mode>3): Likewise.
17113         (ior<mode>3): Removed.
17114         (*ior<mode>3): Likewise.
17115         (xor<mode>3): Likewise.
17116         (*xor<mode>3): Likewise.
17117         (*and<mode>3): Likewise.
17118         (*ior<mode>3): Likewise.
17119         (*xor<mode>3): Likewise.
17120         (and<mode>3): Likewise.
17121         (*sse_and<mode>3): Likewise.
17122         (*sse2_and<mode>3): Likewise.
17123         (andtf3): Likewise.
17124         (*andtf3): Likewise.
17125         (ior<mode>3): Likewise.
17126         (*sse_ior<mode>3): Likewise.
17127         (*sse2_ior<mode>3): Likewise.
17128         (iortf3): Likewise.
17129         (*iortf3): Likewise.
17130         (xor<mode>3): Likewise.
17131         (*sse_xor<mode>3): Likewise.
17132         (*sse2_xor<mode>3): Likewise.
17133         (xortf3): Likewise.
17134         (*xortf3): Likewise.
17136 2008-04-02  Richard Guenther  <rguenther@suse.de>
17138         PR tree-optimization/14495
17139         PR tree-optimization/34793
17140         * tree-vrp.c (struct switch_update): New structure.
17141         (to_remove_edges, to_update_switch_stmts): New VECs.
17142         (simplify_switch_using_ranges): New function.  Remove not taken
17143         case labels and edges.
17144         (simplify_stmt_using_ranges): Call it.
17145         (identify_jump_threads): Mark edges we have queued for removal
17146         so we don't thread them.
17147         (execute_vrp): Remove edges queued for removal, update SWITCH_STMT
17148         case label vector.
17149         * tree-cfg.c (group_case_labels): Deal with missing default label.
17150         (tree_verify_flow_info): Allow missing default label.
17151         * stmt.c (emit_case_bit_tests): Deal with NULL default_label.
17152         (emit_case_nodes): Likewise.
17153         (expand_case): Do not rely on the default label to be present.
17154         * expr.c (try_casesi): Deal with NULL default_label.
17155         (do_tablejump): Likewise.
17157 2008-04-02  Richard Guenther  <rguenther@suse.de>
17159         PR tree-optimization/14495
17160         * tree-vrp.c (vrp_visit_cond_stmt): Do not handle
17161         SWITCH_EXPR here ...
17162         (vrp_visit_switch_stmt): ... but here (new function).
17163         (find_case_label_index): New helper function.
17164         (vrp_visit_stmt): Dispatch to vrp_visit_switch_stmt.
17166 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
17168         * fwprop.c: Fix ISO-C99ism.
17170 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
17172         PR bootstrap/35752
17173         * Makefile.in (objdir): Set it here.
17174         * configure.ac: Not here.  Find dynamic linker characteristics.
17175         * exec-tool.in: Use them.
17176         * aclocal.m4: Regenerate.
17177         * configure: Regenerate.
17179 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
17181         * expr.c (expand_var): Delete it.
17182         * expr.h (expand_var): Delete prototype.
17183         * function.c (expand_function_start): Use expand_decl instead.
17184         * cfgexpand.c (expand_one_static_var, expand_one_var): Don't call
17185         langhook.
17187 2008-04-02  Andy Hutchinson <hutchinsonamdy@aim.com>
17189         PR rtl-optimization/35542
17190         * fwprop.c (forward_propagate_and_simplify): Replace
17191         loc_reg_mentioned_in_p with reg_mentioned_p.
17193 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
17195         PR rtl-optimization/35281
17196         * fwprop.c (PR_CAN_APPEAR, PR_HANDLE_MEM): New.
17197         (propagate_rtx_1): Handle PR_HANDLE_MEM.
17198         (propagate_rtx): Pass PR_HANDLE_MEM if appropriate.
17199         (varying_mem_p): Move above propagate_rtx.
17200         (all_uses_available_at): Do not check MEMs.
17202 2008-04-02  Rafael Espíndola  <espindola@google.com>
17204         * tree-vrp.c (extract_code_and_val_from_cond): Remove.
17205         (register_edge_assert_for_2): Split the cond argument.
17206         (register_edge_assert_for_1): Adjust for the change in
17207         register_edge_assert_for_2.
17208         (register_edge_assert_for): Split the cond argument.
17209         (find_switch_asserts): Adjust for the change in
17210         register_edge_assert_for.
17212 2008-04-02  Kai Tietz  <kai.tietz@onevision.com>
17214         * config.gcc: Add for x86_64-*-mingw* the t-crtfm to tbuild.
17215         * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Add 8 byte
17216         offsets for 64-bit mingw.
17217         * config/i386/i386.c (ix86_pass_by_reference): Correct calling
17218         abi for x86_64-pc-mingw.
17220 2008-04-02  Richard Guenther  <rguenther@suse.de>
17222         * tree-vrp.c (extract_range_from_assert): Make sure to not
17223         produce range min/max with TREE_OVERFOW set.
17224         If merging a anti-range and a range keep the anti-range if
17225         the range covers all values of the type.
17226         (register_edge_assert_for_2): Only allow sign-changing
17227         conversions in detecting canonical range checks.  Also
17228         register an assert for the unsigned name if useful.
17230         PR tree-optimization/35787
17231         * tree-vrp.c (vrp_val_max): New function.
17232         (vrp_val_min): Likewise.
17233         (vrp_val_is_max): Move earlier, use vrp_val_{min,max}.
17234         (vrp_val_is_min): Likewise.
17235         (supports_overflow_infinity): Use vrp_val_{min,max}.
17236         (negative_overflow_infinity): Likewise.
17237         (positive_overflow_infinity): Likewise.
17238         (is_negative_overflow_infinity): Use vrp_val_is_{min,max}.
17239         (is_positive_overflow_infinity): Likewise.
17240         (is_overflow_infinity): Likewise.
17241         (avoid_overflow_infinity): Use vrp_val_{min,max} and
17242         vrp_val_is_{min,max}.
17243         (set_and_canonicalize_value_range): Canonicalize anti-ranges
17244         to ranges if possible.  Avoid empty ranges.
17246 2008-04-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
17248         PR middle-end/35705
17249         * fold-const.c (get_pointer_modulus_and_residue): Return modulus 1 if
17250         the expression is a function address.
17252 2008-04-01  George Helffrich  <george@gcc.gnu.org>
17254         PR fortran/35154, fortran/23057
17255         * dbxout.c: Emit .stabs debug info for Fortran COMMON block
17256         variables as base symbol name + offset using N_BCOMM/N_ECOMM.
17257         (is_fortran, dbxout_common_name, dbxout_common_check): New functions.
17258         (dbxout_symbol_location): Transform N_LCSYM to N_GSYM for storage
17259         in common.
17260         (dbxout_syms): Check for COMMON-based symbol and wrap in
17261         N_BCOMM/N_ECOMM stab bracket, including as many symbols as possible
17262         in bracket for efficiency.
17264         * dwarf2out.c: Emit DWARF debug info for Fortran COMMON block
17265         using DW_TAG_common_block + member offset.
17266         (add_pubname_string): New function.
17267         (dw_expand_expr): New function to find block name and offset for
17268         COMMON var.
17269         (common_check): New function to check whether symbol in Fortran COMMON.
17270         (gen_variable_die): If COMMON, use DW_TAG_common_block.
17272 2008-04-01  Volker Reichelt  <v.reichelt@netcologne.de>
17274         PR c/35436
17275         * c-format.c (init_dynamic_gfc_info): Ignore invalid locus type.
17277 2008-04-02  Ben Elliston  <bje@au.ibm.com>
17279         * config/v850/v850.md (casesi): Remove if (0) code.
17280         * config/i386/uwin.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
17281         * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
17283 2008-04-01  Uros Bizjak  <ubizjak@gmail.com>
17285         * config/i386/i386.md (rex64suffix): New mode attribute.
17286         (floathi<mode>2): Disable expander for SSE math.
17287         (*floathi<mode>2_1): New insn insn_and_split pattern.
17288         (*floathi<mode>2_i387_with_temp): New macroized instruction pattern and
17289         corresponding post-reload splitters.
17290         (*floathi<mode>2_i387): New macroized insn pattern.
17291         (float<SSEMODEI24:mode><X87MODEF:mode>2): New macroized expander.
17292         (*float<SSEMODEI24:mode><X87MODEF:mode>2_1): New macroized
17293         insn_and_split pattern.
17294         (*floatsi<mode>2_vector_mixed_with_temp, *floatsi<mode>2_vector_mixed):
17295         New macroized instruction patterns and corresponding post-reload
17296         splitters.
17297         (*floatsi<mode>2_mixed_with_temp): New macroized instruction pattern
17298         and corresponding post-reload splitters.
17299         (*floatsi<mode>2_mixed_interunit, *floatsi<mode>2_mixed_nointerunit):
17300         New macroized instruction patterns.
17301         (*floatsi<mode>2_vector_sse_with_temp, *floatsi<mode>2_vector_sse): New
17302         macroized instruction patterns and corresponding post-reload splitters.
17303         (*floatsi<mode>2_sse_with_temp): New macroized instruction pattern and
17304         corresponding post-reload splitters.
17305         (*floatsi<mode>2_sse_interunit, *floatsi<mode>2_mixed_nointerunit):
17306         New macroized instruction patterns.
17307         (*floatsi<mode>2_i387_with_temp): New macroized instruction pattern and
17308         corresponding post-reload splitters.
17309         (*floatsi<mode>2_i387): New macroized instruction patterns.
17311 2008-04-01  H.J. Lu  <hongjiu.lu@intel.com>
17313         * config/i386/i386.md (smaxmin): New.
17314         (umaxmin): Likewise.
17315         (maxminiprefix): Likewise.
17316         (maxminfprefix): Likewise.
17317         (<code><mode>3): Likewise.
17318         (smin<mode>3): Removed.
17319         (smax<mode>3): Likewise.
17321         * config/i386/mmx.md (mmx_<code>v2sf3): New.
17322         (mmx_<code>v4hi3): Likewise.
17323         (mmx_<code>v8qi3): Likewise.
17324         (mmx_smaxv2sf3): Removed.
17325         (mmx_sminv2sf3): Likewise.
17326         (mmx_umaxv8qi3): Likewise.
17327         (mmx_smaxv4hi3): Likewise.
17328         (mmx_uminv8qi3): Likewise.
17329         (mmx_sminv4hi3): Likewise.
17331         * config/i386/sse.md (<addsub><mode>3): New.
17332         (*<addsub><mode>3): Likewise.
17333         (<sse>_vm<addsub><mode>3): Likewise.
17334         (<maxmin><mode>3): Likewise.
17335         (*<maxmin><mode>3_finite): Likewise.
17336         (*<maxmin><mode>3): Likewise.
17337         (<sse>_vm<maxmin><mode>3): Likewise.
17338         (sse3_h<addsub>v4sf3): Likewise.
17339         (sse3_h<addsub>v2df3): Likewise.
17340         (<maxmin>v16qi3): Likewise.
17341         (*<maxmin>v16qi3): Likewise.
17342         (<maxmin>v8hi3): Likewise.
17343         (*<maxmin>v8hi3): Likewise.
17344         (*sse4_1_<maxmin><mode>3): Likewise.
17345         (*sse4_1_<maxmin><mode>3): Likewise.
17346         (add<mode>3): Removed.
17347         (*add<mode>3): Likewise.
17348         (<sse>_vmadd<mode>3): Likewise.
17349         (sub<mode>3): Likewise.
17350         (*sub<mode>3): Likewise.
17351         (<sse>_vmsub<mode>3): Likewise.
17352         (smin<mode>3): Likewise.
17353         (*smin<mode>3_finite): Likewise.
17354         (*smin<mode>3): Likewise.
17355         (<sse>_vmsmin<mode>3): Likewise.
17356         (smax<mode>3): Likewise.
17357         (*smax<mode>3_finite): Likewise.
17358         (*smax<mode>3): Likewise.
17359         (<sse>_vmsmax<mode>3): Likewise.
17360         (sse3_haddv4sf3): Likewise.
17361         (sse3_haddv2df3): Likewise.
17362         (sse3_hsubv4sf3): Likewise.
17363         (sse3_hsubv2df3): Likewise.
17364         (umaxv16qi3): Likewise.
17365         (*umaxv16qi3): Likewise.
17366         (smaxv8hi3): Likewise.
17367         (*smaxv8hi3): Likewise.
17368         (*sse4_1_smax<mode>3): Likewise.
17369         (*sse4_1_umax<mode>3): Likewise.
17370         (uminv16qi3): Likewise.
17371         (*uminv16qi3): Likewise.
17372         (sminv8hi3): Likewise.
17373         (*sminv8hi3): Likewise.
17374         (*sse4_1_smin<mode>3): Likewise.
17375         (*sse4_1_umin<mode>3): Likewise.
17377 2008-04-01  Rafael Espíndola  <espindola@google.com>
17379         * tree-cfg.c (verify_expr): remove in_phi.
17380         (verify_stmt): Don't call walk_tree with verify_expr. Use
17381         is_gimple_min_invariant instead of is_gimple_val.
17383 2008-04-01  Joseph Myers  <joseph@codesourcery.com>
17385         * doc/include/gpl_v3.texi: Update for manpage generation.
17386         * doc/gcc.texi, doc/gccint.texi: Include gpl_v3.texi instead of
17387         gpl.texi.
17388         * doc/sourcebuild.texi: Document gpl_v3.texi as well as gpl.texi.
17389         * Makefile.in (TEXI_GCC_FILES, TEXI_GCCINT_FILES): Include
17390         gpl_v3.texi instead of gpl.texi.
17391         (gpl.pod): New.
17393 2008-04-01  Jakub Jelinek  <jakub@redhat.com>
17395         PR pch/13675
17396         * c-pch.c (c_common_read_pch): On error close (fd) resp. fclose (f).
17398 2008-04-01  Rafael Espíndola  <espindola@google.com>
17400         * tree-vrp.c (extract_code_and_val_from_cond_with_ops): New.
17401         (extract_code_and_val_from_cond): Use
17402         extract_code_and_val_from_cond_with_ops.
17404 2008-04-01  Jan Hubicka  <jh@suse.cz>
17406         * function.c (free_after_compilation): Free epilogue_delay_list.
17407         (prepare_function_start): Assert that previous compilation was freed.
17409 2008-04-01  Jan Hubicka  <jh@suse.cz>
17410             Jim Wilson  <wilson@tuliptree.org>
17411             Andreas Tobler <andreast@gcc.gnu.org>
17413         PR middle-end/35781
17414         * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Use
17415         rtl.emit instead cfun->emit.
17416         * sparc/sparc.h (INIT_EXPANDERS): Likewise.
17417         * ia64/ia64.h (INIT_EXPANDERS): Likewise.
17419 2008-04-01  Ben Elliston  <bje@au.ibm.com>
17421         * doc/c-tree.texi (Function Basics): Fix grammatical error.
17423 2008-03-31  Seongbae Park <seongbae.park@gmail.com>
17425         * common.opt (fprofile-dir=, fprofile-use=, fprofile-generate=):
17426         New options
17427         (fprofile-use): Add var flag_profile_use
17428         * coverage.c (coverage_begin_output): Do not open a gcno file for
17429         output only if -ftest-coverage is set.
17430         Do not add getpwd() to gcda file path.
17431         (build_gcov_info): Check the new flag
17432         flag_profile_datafile_relative_path.
17433         (coverage_init): Use profile_data_prefix.
17434         Read profile counter only if flag_profile_use is set.
17435         * opts.c (common_handle_option): New option fprofile-use=,
17436         fprofile-dir=, fprofile-generate=.
17437         * toplev.c (profile_data_prefix): New variable definition.
17438         * toplev.h (profile_data_prefix): New declaration.
17439         * doc/invoke.tex (Option Summary, Optimization Options):
17440         Add new options.
17442 2008-03-31  James E. Wilson  <wilson@tuliptree.org>
17444         * varasm.c (output_constant_pool_1): In LABEL_REF check,
17445         use tmp consistently.
17447         PR target/35695
17448         * config/ia64/div.md (recip_approx_rf): Use UNSPEC not DIV.
17449         * config/ia64/ia64.c (rtx_needs_barrier): Handle
17450         UNSPEC_FR_RECIP_APPROX_RES.
17451         * config/ia64/ia64.md (UNSPEC_FR_RECIP_APPROX_RES): Define.
17453 2008-03-31  Volker Reichelt  <v.reichelt@netcologne.de>
17455         PR c/35750
17456         * c-decl.c (store_parm_decls_oldstyle): Skip invalid parameters.
17458 2008-03-31  Andrew Pinski  <andrew_pinski@playstation.sony.com>
17460         PR middle-end/30186
17461         * fold-const.c (fold_indirect_ref_1): Support accessing non first
17462         element of the vector via a pointer.
17464 2008-03-31  Ian Lance Taylor  <iant@google.com>
17466         * tlink.c (scan_linker_output): Look for symbol name in single quotes.
17468 2008-03-31  Jan Hubicka  <jh@suse.cz>
17470         * builtins.c (expand_builtin_setjmp_receiver): Update call of
17471         get_arg_pointer_save_area.
17472         * expr.c (init_expr): Just clear out rtl.expr.
17473         * function.c (free_after_compilation): Clear out whole RTL structure.
17474         (get_func_frame_size): Merge into ...
17475         (get_frame_size): ... this one.
17476         (assign_stack_local_1): Merge into ...
17477         (assign_stack_local): ... this one.
17478         (expand_function_end): Update call of get_arg_pointer_save_area.
17479         (get_art_pointer_save_area): Remove cfun argument.
17480         * function.h (emit_status): regno_pointer_align does not need length
17481         attribute. Move x_regno_reg_rtx to ...
17482         (regno_reg_rtx): ... new global array.
17483         (reg_rtx_no, seq_stack, REGNO_POINTER_ALIGN): Update accestors.
17484         (pending_stack_adjust, inhibit_defer_pop, saveregs_value,
17485         apply_args_value, forced_labels, stack_pointer_delta):
17486         Update accestors.
17487         (struct varasm_status): Move here from varasm.c
17488         (struct rtl_data): New. Move here some fields from struct function.
17489         (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
17490         frame_offset, stack_check_probe_note, arg_pointer_save_area,
17491         used_temp_slots avail_temp_slots, temp_slot_level,
17492         nonlocal_goto_handler_labels): Update accesstors.
17493         (rtl): New global variable.
17494         (struct function): Move some fileds to rtl_data.
17495         (get_arg_pointer_save_area): Update prototype.
17496         * emit-rtl.c (rtl): Declare.
17497         (regno_reg_rtx): Declare.
17498         (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
17499         Update.
17500         (gen_reg_rtx): Update.
17501         (init_virtual_regs): Do not tate emit_status argument.
17502         (init_emit): Do not allocate emit.
17503         * varasm.c (varasm_statuc): Move to function.h.
17504         (n_deferred_constatns): Update accestor.
17505         (init_varasm_status): Do not allocate varasm_status.
17506         (force_const_mem, get_pool_size, output_constant_pool): Update.
17507         * stmt.c (force_label_rtx): Do not use x_ prefixes.
17508         (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
17510 2008-03-31  Zdenek Dvorak  <ook@ucw.cz>
17512         PR rtl-optimization/35729
17513         * loop-invariant.c (check_maybe_invariant): Disallow volatile memory
17514         references.
17516 2008-03-31  H.J. Lu  <hongjiu.lu@intel.com>
17518         PR target/32000
17519         * config/i386/i386.md (*movti_internal): Emit unaligned SSE
17520         load/store if memory is unaligned.
17521         (*movti_rex64): Likewise.
17523         * config/i386/predicates.md (misaligned_operand): New.
17525 2008-03-31  Andrew Pinski  <pinskia@gmail.com>
17527         PR tree-opt/35431
17528         * tree-ssa-phiopt.c (conditional_replacement): Return early for
17529         complex types.
17531 2008-03-31  Jan Beulich  <jbeulich@novell.com>
17533         * config/ia64/constraints.md: Add 'j' constraint.
17534         * config/ia64/ia64.md (movsi_internal): Add addp4 case.
17535         (movdi_internal): Likewise.
17537 2008-03-30  Volker Reichelt  <v.reichelt@netcologne.de>
17539         PR c/35748
17540         * c-typeck.c (build_c_cast): Skip invalid fields in unions.
17542 2008-03-30  H.J. Lu  <hongjiu.lu@intel.com>
17544         PR target/35757
17545         * config/i386/i386.c (ix86_expand_sse_4_operands_builtin): Issue
17546         proper error message for the third argument on blendpd and
17547         blendps.
17549         * config/i386/sse.md (blendbits): New.
17550         (sse4_1_blendp<ssemodesuffixf2c>): Use it.
17552 2008-03-30  Eric Botcazou  <ebotcazou@adacore.com>
17554         * fold-const.c (fold_binary) <BIT_IOR_EXPR>: Add missing conversions.
17556 2008-03-30  Richard Guenther  <rguenther@suse.de>
17558         PR middle-end/31023
17559         * fold-const.c (fold_sign_changed_comparison): Do leave
17560         conversions to base-types alone.
17562 2008-03-29  Andrew Pinski  <andrew_pinski@playstation.sony.com>
17564         * config/rs6000/rs6000.c (rs6000_stack_info): Don't force saving of
17565         the link register if one altivec register is be saved.
17567 2008-03-30  Ben Elliston  <bje@au.ibm.com>
17569         * final.c (final_scan_insn): Remove if (0) code.
17571 2008-03-28  Volker Reichelt  <v.reichelt@netcologne.de>
17573         * c-parser.c (c_parser_next_token_is_keyword): Simplify.
17575 2008-03-28  H.J. Lu  <hongjiu.lu@intel.com>
17577         * config/i386/sse.md (*and<mode>3): Pass <MODE>mode instead
17578         of V4SFmode to ix86_binary_operator_ok.
17580 2008-03-28  Uros Bizjak  <ubizjak@gmail.com>
17582         * config/i386/i386.c (override_options): Initialize
17583         ix86_veclib_handler to ix86_veclibabi_svml when
17584         -mveclibabi=svml is used.
17585         (ix86_veclibabi_svml): New function for SVML ABI style
17586         vectorization support.
17587         * doc/invoke.texi (-mveclibabi) [svml]: Document new target option.
17589 2008-03-28  Rafael Espíndola  <espindola@google.com>
17591         * fold-const.c (tree_unary_nonnegative_warnv_p): Make it public.
17592         (tree_binary_nonnegative_warnv_p): Make it public.
17593         (tree_single_nonnegative_warnv_p): Make it public.
17594         (tree_invalid_nonnegative_warnv_p): Make it public.
17595         (tree_unary_nonzero_warnv_p): Make it public.
17596         (tree_binary_nonzero_warnv_p): Make it public
17597         (tree_single_nonzero_warnv_p): Make it public.
17598         * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops): New function.
17599         (extract_range_from_binary_expr): Split the expr argument.
17600         (extract_range_from_unary_expr): Split the expr argument.
17601         (extract_range_from_comparison): Split the expr argument.
17602         (extract_range_from_expr): Use the new aux functions.
17603         (vrp_evaluate_conditional_warnv): Use
17604         vrp_evaluate_conditional_warnv_with_ops.
17605         * tree.h (tree_unary_nonzero_warnv_p): Declare.
17606         (tree_binary_nonzero_warnv_p): Declare.
17607         (tree_single_nonzero_warnv_p): Declare.
17608         (tree_expr_nonzero_warnv_p): Declare.
17609         (tree_unary_nonnegative_warnv_p): Declare.
17610         (tree_binary_nonnegative_warnv_p): Declare.
17611         (tree_single_nonnegative_warnv_p): Declare.
17612         (tree_invalid_nonnegative_warnv_p): Declare.
17614 2008-03-28  Richard Guenther  <rguenther@suse.de>
17616         PR tree-optimization/30317
17617         PR tree-optimization/30911
17618         PR tree-optimization/34793
17619         * tree-vrp.c (set_and_canonicalize_value_range): New function.
17620         (struct assert_locus_d): New member EXPR.
17621         (register_new_assert_for): Add EXPR parameter to support
17622         ASSERT_EXPR <name, expr OP limit>.
17623         (register_edge_assert_for_1): Adjust callers.
17624         (find_assert_locations): Likewise.
17625         (process_assert_insertions_for): Build condition from expression.
17626         (extract_range_from_assert): Handle ASSERT_EXPRs
17627         of the form ASSERT_EXPR <name, expr OP limit>.
17628         (register_edge_assert_for_2): New helper registering
17629         asserts for comparisons.  Recognize range tests of the form
17630         (unsigned)i - CST1 OP CST2.
17631         (register_edge_assert_for_1): Use it.
17632         (register_edge_assert_for): Likewise.
17633         (needs_overflow_infinity): Integer sub-types
17634         do not need overflow infinities.
17635         (vrp_val_is_max): The extreme values of integer sub-types
17636         are those of the base type.
17637         (vrp_val_is_min): Likewise.
17638         * tree.def (ASSERT_EXPR): Document extra allowed conditional
17639         expressions.
17641 2008-03-28  Nick Clifton  <nickc@redhat.com>
17643         PR target/31110
17644         * config/mn10300/mn10300.c (mn10300_secondary_reload_class):
17645         Return GENERAL_REGS for stack adjustment reloads.
17647 2008-03-28  Andrew Pinski  <andrew_pinski@playstation.sony.com>
17649         PR target/31334
17650         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Create a
17651         const_vector when all the vectors are constant.
17653 2008-03-27  Bob Wilson  <bob.wilson@acm.org>
17655         * config/xtensa/xtensa.c (gen_float_relational): Handle unordered
17656         comparisons.
17657         * config/xtensa/xtensa.md (any_cond): Add unordered comparisons.
17658         (any_scc_sf): Add uneq, unlt, unle and unordered operators.
17659         (scc_sf): New.
17660         (s<code>_sf): Use new scc_sf attribute for opcode names.
17662 2008-03-27  Tom Tromey  <tromey@redhat.com>
17664         * doc/sourcebuild.texi, doc/install.texi, configure, aclocal.m4,
17665         configure.ac, Makefile.in, config/t-darwin, config/m32c/t-m32c,
17666         config/spu/t-spu-elf, config/i386/t-interix,
17667         config/i386/t-cygming, config/i386/x-i386, config/i386/t-cygwin,
17668         config/i386/x-darwin, config/i386/x-mingw32,
17669         config/i386/t-netware, config/i386/x-cygwin, config/i386/t-nwld,
17670         config/sh/t-sh, config/sh/t-symbian, config/x-linux,
17671         config/t-sol2, config/x-hpux, config/x-darwin, config/ia64/t-ia64,
17672         config/x-solaris, config/t-vxworks, config/m68k/t-uclinux,
17673         config/rs6000/x-rs6000, config/rs6000/x-darwin64,
17674         config/rs6000/x-darwin, config/rs6000/t-rs6000,
17675         config/score/t-score-elf, config/arm/t-strongarm-pe,
17676         config/arm/t-pe, config/arm/t-arm, config/arm/t-wince-pe,
17677         config/v850/t-v850, config/v850/t-v850e, config/bfin/t-bfin-linux:
17678         Revert automatic dependency patch.
17680 2008-03-27  H.J. Lu  <hongjiu.lu@intel.com>
17682         PR target/35657
17683         * config/i386/i386.c (ix86_function_arg_boundary): Align
17684         decimal floating point to its natural boundary.
17686 2008-03-27  Richard Guenther  <rguenther@suse.de>
17688         PR middle-end/35716
17689         * fold-const.c (fold_comparison): Restrict distinct decl
17690         comparison folding to VAR_DECLs and PARM_DECLs.  Do not
17691         solely rely on operand_equal_p.
17693 2008-03-27  Richard Guenther  <rguenther@suse.de>
17695         PR c/32511
17696         * c-common.c (handle_weak_attribute): Reject combination of
17697         weak and inline.
17699 2008-03-27  Richard Guenther  <rguenther@suse.de>
17701         PR tree-optimization/32810
17702         * tree-ssa-ccp.c (get_symbol_constant_value): Strip useless
17703         conversions from DECL_INITIAL.
17704         (fold_const_aggregate_ref): Likewise from constructor elements.
17706 2008-03-27  Zdenek Dvorak  <ook@ucw.cz>
17708         * tree-affine.h (aff_combination_expand): Declare.
17709         (get_inner_reference_aff): Likewise.
17710         * tree-affine.c (aff_combination_expand): Split out from
17711         tree_to_aff_combination_expand.
17712         (get_inner_reference_aff): New function.
17713         * tree-parloops.c (loop_parallel_p): Free vectorizer info.
17714         * tree-ssa-loop-im.c: Include tree-affine.h and pointer-set.h.
17715         (struct lim_aux_data): sm_done field removed.
17716         (mem_ref_loc_p, mem_ref_locs_p): New types.
17717         (struct mem_ref): Added id, stored, accesses_in_loop,
17718         indep_loop, dep_loop, indep_ref, dep_ref fields.
17719         Removed is_stored, locs and next fields.
17720         (memory_accesses): New variable.
17721         (movement_possibility): Do not allow moving statements
17722         that store to memory.
17723         (outermost_indep_loop, simple_mem_ref_in_stmt, mem_ref_in_stmt):
17724         New functions.
17725         (determine_max_movement): For statements with memory references,
17726         find the outermost loop in that the reference is independent.
17727         (move_computations_stmt): Mark the virtual operands for renaming.
17728         (memref_free, mem_ref_alloc, mem_ref_locs_alloc, mark_ref_stored,
17729         gather_mem_refs_stmt, gather_mem_refs_in_loops, vtoe_hash, vtoe_eq,
17730         vtoe_free, record_vop_access, get_vop_accesses, get_vop_stores,
17731         add_vop_ref_mapping, create_vop_ref_mapping_loop,
17732         create_vop_ref_mapping, analyze_memory_references,
17733         cannot_overlap_p, mem_refs_may_alias_p, rewrite_mem_ref_loc,
17734         get_all_locs_in_loop, ref_always_accessed_p,
17735         refs_independent_p, record_indep_loop, ref_indep_loop_p_1,
17736         ref_indep_loop_p, can_sm_ref_p, find_refs_for_sm,
17737         store_motion_loop, store_motion): New functions.
17738         (struct vop_to_refs_elt): New type.
17739         (record_mem_ref_loc, free_mem_ref_locs, rewrite_mem_refs,
17740         memref_hash, memref_eq, hoist_memory_references): Rewritten.
17741         (schedule_sm): Replaced by...
17742         (execute_sm): ... this.
17743         (determine_lsm_ref, hoist_memory_references,
17744         loop_suitable_for_sm, gather_mem_refs_stmt, gather_mem_refs,
17745         find_more_ref_vops, free_mem_ref, free_mem_refs,
17746         determine_lsm_loop, determine_lsm): Removed.
17747         (tree_ssa_lim_finalize): Free data structures used by store motion.
17748         (tree_ssa_lim): Call analyze_memory_references.  Use
17749         store_motion instead of determine_lsm.
17751 2008-03-27  Paolo Bonzini  <bonzini@gnu.org>
17753         * config.cc (m68hc11, m6811, m68hc12, m6812): Add usegas.h,
17754         rename tmake_file to m68hc11/t-m68hc11.
17755         (mcore): Set inhibit_libc to true.
17756         * config.host (alpha*-dec-*vms*): Set extra_programs.
17757         (interix3*): Don't use host_xmake_file.
17758         * configure.ac: Let config.gcc override inhibit_libc.
17759         * configure: Regenerate.
17761         * config/alpha/x-vms (EXTRA_PROGRAMS): Remove.
17762         * config/t-openbsd-thread: Remove commented out lines.
17764         * config/x-interix: Remove.
17766         * config/m68hc11/t-m68hc11-gas: Rename to...
17767         * config/m68hc11/t-m68hc11: ... this.  Remove T_CPPFLAGS.
17769         * config/mcore/t-mcore: Remove T_CFLAGS.
17770         * config/mcore/t-mcore-pe: Likewise.
17772 2008-03-27  Paolo Bonzini  <bonzini@gnu.org>
17774         * configure.ac: Replace custom __GNU_SOURCE test with
17775         AC_USE_SYSTEM_EXTENSIONS.  Move it earlier.
17776         * aclocal.m4: Regenerate.
17777         * configure: Regenerate.
17778         * config.in: Regenerate.
17780 2008-03-27  Richard Guenther  <rguenther@suse.de>
17782         * fold-const.c (target.h): Include.
17783         (fold_comparison): Fold comparison of addresses of decls
17784         that bind locally or of constants.  Consolidate address folding code.
17785         * tree-vrp.c (operand_less_p): Deal with non-INTEGER_CST
17786         results from fold_binary_to_constant.
17787         (compare_values_warnv): Likewise.
17789 2008-03-27  Andrew Pinski  <pinskia@gmail.com>
17791         PR middle-end/35429
17792         * fold-const.c (fold_truthop): Check for integeral types when folding
17793         a == 0 && b == 0 and a != 0 || b != 0 .
17795 2008-03-26  Eric Botcazou  <ebotcazou@adacore.com>
17797         * tree.c (get_unwidened): Remove code fiddling with COMPONENT_REF.
17799 2008-03-26  Andreas Schwab  <schwab@suse.de>
17801         * doc/invoke.texi: Fix use of @item vs. @itemx.
17803 2008-03-26  Tom Tromey  <tromey@redhat.com>
17805         * Makefile.in (build/gensupport.o, build/print-rtl.o,
17806         build/read-rtl.o, build/rtl.o, build/gencondmd.o, build/genattr.o,
17807         build/genattrtab.o, build/genautomata.o, build/gencheck.o,
17808         build/gencodes.o, build/genconditions.o, build/genconfig.o,
17809         build/genconstants.o, build/genemit.o, build/genextract.o,
17810         build/genflags.o, build/genmddeps.o, build/genopinit.o,
17811         build/genoutput.o, build/genpeep.o, build/genrecog.o): Depend on
17812         options.h.
17814 2008-03-26  Richard Guenther  <rguenther@suse.de>
17816         Revert
17817         2008-03-26  Richard Guenther  <rguenther@suse.de>
17819         * fold-const.c (target.h): Include.
17820         (fold_comparison): Fold comparison of addresses of two decls
17821         that bind locally.  Consolidate address folding code.
17823 2008-03-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
17825         * builtins.c (expand_builtin_pow, fold_builtin_cabs,
17826         fold_builtin_sqrt, fold_builtin_cbrt, fold_builtin_logarithm,
17827         fold_builtin_hypot, fold_builtin_pow): Remove uses of dconst3,
17828         dconstsqrt2, dconstthird, dconste and/or dconst10.
17829         * config/i386/i386.c (ix86_emit_swsqrtsf): Likewise.
17830         * emit-rtl.c (dconst3, dconst10, dconstm2, dconstthird,
17831         dconstsqrt2, dconste): Delete.
17832         (init_emit_once): Likewise.  Simplify initializing dconstm1.
17833         Constify variable.
17834         * real.c (get_real_const): New.
17835         * real.h (dconst3, dconst10, dconstm2, dconstthird,
17836         dconstsqrt2, dconste): Delete.
17837         (real_value_const, get_real_const): New.
17839 2008-03-26  H.J. Lu  <hongjiu.lu@intel.com>
17841         * config/i386/cygming.h (BIGGEST_ALIGNMENT): Removed.
17843         * config/i386/i386.c (ix86_function_arg_boundary): Check
17844         BIGGEST_ALIGNMENT instead of 128.
17845         (setup_incoming_varargs_64): Likewise.
17847 2008-03-26  Tom Tromey  <tromey@redhat.com>
17849         * Makefile.in (DEPFILES): Add missing '/'.
17851 2008-03-26  Richard Guenther  <rguenther@suse.de>
17853         * fold-const.c (target.h): Include.
17854         (fold_comparison): Fold comparison of addresses of two decls
17855         that bind locally.  Consolidate address folding code.
17857 2008-03-26  Nick Clifton  <nickc@redhat.com>
17859         PR target/31232
17860         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p): Do
17861         not allow INT+INT as a legitimate addressing mode.
17863 2008-03-26  Richard Guenther  <rguenther@suse.de>
17865         * tree-flow.h (widen_bitfield): Remove declaration.
17866         * tree-ssa-ccp.c (visit_assignment): Remove unneeded code.
17867         (widen_bitfield): Remove function.
17868         * tree-ssa-dom.c (record_equivalences_from_stmt): Remove unneeded
17869         code.
17871 2008-03-25  Andrew Pinski  <andrew_pinski@playstation.sony.com>
17873         PR target/31558
17874         * config/rs6000/rs6000-c.c (rs6000_builtin_type_compatible): Handle
17875         error_mark_node's.
17877 2008-03-25  Richard Sandiford  <rsandifo@nildram.co.uk>
17879         PR rtl-optimization/35232
17880         * reload1.c (reg_reloaded_call_part_clobbered): Clarify comment.
17881         (forget_old_reloads_1, forget_marked_reloads): Don't clear
17882         reg_reloaded_call_part_clobbered here.
17883         (reload_regs_reach_end_p): New function.
17884         (reload_reg_rtx_for_input): New variable.
17885         (reload_reg_rtx_for_output): Likewise.
17886         (emit_input_reload_insns): Use reloadreg rather than rl->reg_rtx
17887         when reassigning a pseudo register.  Load reloadreg from
17888         reload_reg_rtx_for_input, moving the mode and register
17889         calculation to...
17890         (do_input_reload): ...here.  Use the mode-adjusted reg_rtx
17891         instead of the original when deciding whether an input reload
17892         would be a no-op or whether an output reload can be deleted.
17893         (emit_output_reload_insns): Use the mode-adjusted reg_rtx
17894         when setting up new_spill_reg_store.  Load it from
17895         reload_reg_rtx_for_output, moving the mode and register
17896         calculation to...
17897         (do_output_reload): ...here.  Use the mode-adjusted reg_rtx
17898         instead of the original when deciding whether an output reload
17899         would be a no-op.  Do the same when modifying insn notes.
17900         Use rtx_equal_p instead of == to compare the registers.
17901         (inherit_piecemeal_p): Take a mode and two register numbers
17902         as argument.
17903         (emit_reload_insns): Clear new_spill_reg_store for every hard
17904         register in the reload register.  Remove spill registers
17905         from reg_reloaded_valid before considering whether to record
17906         inheritance information for them.  Use reload_reg_rtx_for_output
17907         instead of reg_rtx when recording output reloads.  Use
17908         reload_reg_rtx_for_input instead of reg_rtx when recording
17909         input reloads.  Set or clear reg_reloaded_call_part_clobbered
17910         at the same time as setting reg_reloaded_valid.
17911         (delete_output_reload): Add a new_reload_reg parameter and use it
17912         instead of rld[j].reg_rtx.
17913         (emit_input_reload_insns, do_input_reload, do_output_reload): Adjust
17914         calls accordingly.
17916 2008-03-25  Tom Tromey  <tromey@redhat.com>
17918         * Makefile.in (build/gensupport.o): Depend on insn-modes.h.
17919         (build/genattr.o): Likewise.
17920         (build/genattrtab.o): Likewise.
17921         (build/gencodes.o): Likewise.
17922         (build/genconfig.o): Likewise.
17923         (build/genconstants.o): Likewise.
17924         (build/genemit.o): Likewise.
17925         (build/genextract.o): Likewise.
17926         (build/genflags.o): Likewise.
17928 2008-03-25  Bob Wilson  <bob.wilson@acm.org>
17930         * config/xtensa/xtensa.c (xtensa_va_start): Use build_int_cst
17931         instead of size_int for integer types.
17932         (xtensa_gimplify_va_arg_expr): Likewise.  Convert index to sizetype
17933         to match type of MINUS_EXPR.
17935 2008-03-25  Tom Tromey  <tromey@redhat.com>
17937         * configure: Rebuilt.
17938         * configure.ac (BUILD_DEPMODE): Extract CCDEPMODE from temporary
17939         Makefile.
17941 2008-03-25  Tom Tromey  <tromey@redhat.com>
17943         * config/x-solaris (host-solaris.o): Update.
17944         * config/x-linux (host-linux.o): Update.
17945         * config/x-hpux (host-hpux.o): Update.
17946         * config/x-darwin (host-darwin.o): Update.
17947         * config/v850/t-v850e (v850-c.o): Update.
17948         * config/v850/t-v850 (v850-c.o): Update.
17949         * config/t-vxworks (vxworks.o): Update.
17950         * config/t-sol2 (sol2-c.o, sol2.o): Update.
17951         * config/t-darwin (darwin.o, darwin-c.o, darwin-driver.o): Update.
17952         * config/spu/t-spu-elf (spu-c.o): Update.
17953         (spu.o): Remove.
17954         * config/sh/t-symbian (sh-c.o): Update.
17955         (symbian.o): Update.
17956         * config/sh/t-sh (sh-c.o): Update.
17957         * config/score/t-score-elf (score7.o, score3.o): Update.
17958         * config/rs6000/x-rs6000 (driver-rs6000.o): Update.
17959         * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Update.
17960         * config/rs6000/x-darwin (host-ppc-darwin.o): Update.
17961         * config/rs6000/t-rs6000 (rs6000-c.o): Update.
17962         (rs6000.o): Remove.
17963         * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
17964         * config/m32c/t-m32c (m32c-pragma.o): Update.
17965         * config/ia64/t-ia64 (ia64-c.o): Update.
17966         * config/i386/x-mingw32 (host-mingw32.o): Update.
17967         * config/i386/x-i386 (driver-i386.o): Update.
17968         * config/i386/x-darwin (host-i386-darwin.o): Update.
17969         * config/i386/x-cygwin (host-cygwin.o): Update.
17970         * config/i386/t-nwld (nwld.o): Update.
17971         * config/i386/t-netware (netware.o): Update.
17972         * config/i386/t-interix (winnt.o): Update.
17973         * config/i386/t-cygwin (cygwin1.o, cygwin2.o): Update.
17974         * config/i386/t-cygming (winnt.o, winnt-cxx.o, winnt-stubs.o,
17975         msformat-c.o): Update.
17976         * config/bfin/t-bfin-linux (generated_files): Add
17977         linux-sysroot-suffix.h.
17978         * config/arm/t-wince-pe (pe.o): Update.
17979         * config/arm/t-strongarm-pe (pe.o): Update.
17980         * config/arm/t-pe (pe.o): Update.
17981         * config/arm/t-arm (arm-c.o): Update.
17982         * doc/install.texi (Prerequisites): Require make 3.80.
17983         * Makefile.in: Remove .o targets.
17984         (CCDEPMODE, DEPDIR, depcomp, BUILD_DEPMODE): New variables.
17985         (OBSTACK_H, FIBHEAP_H, PARTITION_H, MD5_H, BCONFIG_H): Remove.
17986         (simple_generated_h, simple_generated_c): Move earlier.
17987         (generated_files): New variable.
17988         (TARGET_H, MACHMODE_H, HOOKS_H, HOSTHOOKS_DEF_H, LANGHOOKS_DEF_H,
17989         TARGET_DEF_H, RTL_BASE_H, RTL_H, PARAMS_H, BUILTINS_DEF, TREE_H,
17990         BASIC_BLOCK_H, GCOV_IO_H, COVERAGE_H, DEMANGLE_H, RECOG_H,
17991         ALIAS_H, EMIT_RTL_H, FLAGS_H, FUNCTION_H, EXPR_H, OPTABS_H,
17992         REGS_H, RA_H, RESOURCE_H, SCHED_INT_H, INTEGRATE_H, CFGLAYOUT_H,
17993         CFGLOOP_H, IPA_UTILS_H, IPA_REFERENCE_H, IPA_TYPE_ESCAPE_H,
17994         CGRAPH_H, DF_H, RESOURCE_H, DDG_H, GCC_H, GGC_H, TIMEVAR_H,
17995         INSN_ATTR_H, C_COMMON_H, C_PRAGMA_H, C_TREE_H, SYSTEM_H,
17996         PREDICT_H, DECNUM_H, MKDEPS_H, SYMTAB_H, TREE_DUMP_H,
17997         TREE_GIMPLE_H, TREE_FLOW_H, TREE_SSA_LIVE_H, PRETTY_PRINT_H,
17998         DIAGNOSTIC_H, C_PRETTY_PRINT_H, SCEV_H, LAMBDA_H, TREE_DATA_REF_H,
17999         VARRAY_H, TREE_INLINE_H, REAL_H, DBGCNT_H, EBIMAP_H): Remove.
18000         (.c.o): Remove.
18001         (COMPILE.base, COMPILE): New variables.
18002         (%.o): New pattern rule.
18003         (ALL_HOST_OBJS): New variable.
18004         (xgcc$(exeext), cpp$(exeext)): Remove extra version.o.
18005         (dummy-checksum.o, cc1-checksum.o): Remove.
18006         (DRIVER_SHLIB): New variable.
18007         (DRIVER_DEFINES): Use it.
18008         (gencondmd.c): Move out of build/.
18009         (s-conditions): Update.
18010         (BUILDCOMPILE.base, BUILDCOMPILE): New variables.
18011         (ALL_BUILD_OBJS): Likewise.
18012         (build/%.o): Use BUILDCOMPILE.
18013         (build/ggc-none.o, build/ggc-none.o, build/min-insn-modes.o,
18014         build/print-rtl.o, build/read-rtl.o, build/rtl.o, build/vec.o,
18015         build/gencondmd.o, build/genattrtab.o, build/genautomata.o,
18016         build/gencheck.o, build/gencodes.o, build/genconditions.o,
18017         build/genconfig.o, build/genconstants.o, build/genemit.o,
18018         build/genextract.o, build/genflags.o, build/genmddeps.o,
18019         build/genopinit.o, build/genoutput.o, build/genpeep.o,
18020         build/genpreds.o, build/genrecog.o, build/gcov-iov.o,
18021         build/gen-protos.o, build/scan.o, build/fix-header.o,
18022         build/scan-decls.o): Simplify.
18023         (collect2.o, c-opts.o, gcc.o, gccspec.o, gcc-options.o,
18024         cppdefault.o, protoize.o, unprotoize.o, intl.o, version.o,
18025         prefix.o, toplev.o): Reduce to variable setting.
18026         (libbackend.o): Use COMPILE.  Remove most dependencies.  Move later.
18027         ($(out_object_file), gcc-options.o): New targets.
18028         ($(ALL_HOST_OBJS)): New target.  Include dependency files.
18029         * configure: Rebuilt.
18030         * configure.ac: Call ZW_CREATE_DEPDIR, ZW_PROG_COMPILER_DEPENDENCIES.
18031         * doc/sourcebuild.texi (Front End Directory): Document new variable.
18033 2008-03-25  Douglas Gregor  <doug.gregor@gmail.com>
18035         * c-common.c (c_sizeof_or_alignof_type): If we're not allowed to
18036         complain when we hit an error, return ERROR_MARK_NODE.
18038 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
18040         * config/sh/constraints.md (Pso, Psz): New constraints.
18041         * config/sh/sh.c (print_operand): Add %V and %W operand codes.
18042         * config/sh/sh.md (*andsi3_bclr, *iorsi3_bset): New insns.
18044 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
18046         * config/sh/sh.c (sh_expand_t_scc): Emit movrt for SH2A if possible.
18047         * config/sh/sh.md (xorsi3_movrt, movrt): New insns.
18049 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
18051         * config/sh/sh.md (prefetch): Add condition for SH2A target.
18052         (prefetch_sh2a): New.
18054 2008-03-25  Jayant Sonar  <Jayant.sonar@kpitcummins.com>
18055             Naveen.H.S  <naveen.hs@kpitcummins.com>
18057         * config/sh/constraints.md (I28): New constraint.
18058         * config/sh/sh.c (broken_move): Add support for movi20s.
18059         * config/sh/sh.md (movsi_ie): Add the alternative for movi20s.
18061 2008-03-25  Anil Paranjape  <anil.paranjape@kpitcummins.com>
18062             Jayant Sonar  <Jayant.sonar@kpitcummins.com>
18063             Naveen.H.S  <naveen.hs@kpitcummins.com>
18065         * config/sh/sh.c (SH_ATTRIBUTES): Define.
18066         (SYMBOL_FLAG_FUNCVEC_FUNCTION): Define.
18067         (print_operand): Handle resbank in %@ operand code.
18068         (sh_encode_section_info): New.
18069         (push_regs): Add conditions for resbank.
18070         (sh_expand_epilogue): Likewise.
18071         (sh_insert_attributes): Likewise.
18072         (sh_attribute_table): Likewise.
18073         (sh_handle_resbank_handler_attribute): New.
18074         (sh2a_handle_function_vector_handler_attribute): New.
18075         (sh2a_is_function_vector_call): New.
18076         (sh2a_get_function_vector_number): New.
18077         (sh2a_function_vector_p): New.
18078         (sh_cfun_resbank_handler_p): New.
18079         * config/sh/sh.md (calli): Emit jsr/n if possible.
18080         (calli_tbr_rel): New.
18081         (calli_pcrel): Emit jsr/n if possible.
18082         (return_i): Emit rts/n if possible.
18083         (call_valuei_tbr_rel): New.
18084         (call_valuei_pcrel): Add condition for SH2A target.
18085         (call_value): Likewise.
18086         * config/sh/sh-protos.h (sh_cfun_resbank_handler_p): Declare.
18087         (sh2a_get_function_vector_number): Likewise.
18088         (sh2a_is_function_vector_call): Likewise.
18089         * doc/extend.texi: Document TBR relative addressing of SH2A.
18090         (resbank): Add description for SH2A.
18092 2008-03-24  Richard Guenther  <rguenther@suse.de>
18094         PR c/22371
18095         * gimplify.c (gimplify_modify_expr): For frontend type-correct
18096         pointer assignments change conversions according to middle-end rules.
18097         (gimplify_modify_expr_rhs): Deal with NULL TARGET_EXPR_INITIAL.
18098         * configure.ac: Include type checking in yes.
18099         * configure: Regenerate.
18101 2008-03-24  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
18103         * diagnostic.c (diagnostic_count_diagnostic): Delete.
18104         (diagnostic_report_diagnostic): Update. Handle ICEs here.
18106 2008-03-24  Nathan Sidwell  <nathan@codesourcery.com>
18108         * gthr-vxworks.h (UNUSED): Define.
18110 2008-03-23  H.J. Lu  <hongjiu.lu@intel.com>
18112         * config/i386/i386.h (STATIC_CHAIN_REGNUM): Use R10_REG and CX_REG.
18114 2008-03-23  Zuxy Meng <zuxy.meng@gmail.com>
18116         * doc/extend.texi (Function Attributes): Add missing comma in the
18117         example of the "alloc_size" attribute.
18119 2008-03-23  Uros Bizjak  <ubizjak@gmail.com>
18121         Revert:
18122         2008-03-05  H.J. Lu  <hongjiu.lu@intel.com>
18124         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
18125         32bit host.
18127         2008-03-19  Uros Bizjak  <ubizjak@gmail.com>
18129         PR target/35496
18130         * stor-layout.c (update_alignment_for_field): Set minimum alignment
18131         of the underlying type of a MS bitfield layout to the natural
18132         alignment of the type.
18134         2008-03-22  Uros Bizjak  <ubizjak@gmail.com>
18136         * config/i386/i386.c (assign_386_stack_local): Align DImode slots
18137         to their natural alignment to avoid store forwarding stalls.
18139 2008-03-22  Richard Guenther  <rguenther@suse.de>
18141         * tree-cfg.c (verify_expr): Recurse again for invariant addresses.
18142         For PHI nodes verify the address is invariant.
18143         * tree-ssa-ccp.c (ccp_decl_initial_min_invariant): Remove.
18144         (get_symbol_constant_value): Use is_gimple_min_invariant.
18145         (maybe_fold_stmt_indirect): Likewise.
18147 2008-03-22  Richard Sandiford  <rsandifo@nildram.co.uk>
18149         PR rtl-optimization/33927
18150         * Makefile.in (dse.o): Depend on $(TM_P_H).
18151         * expr.h (extract_low_bits): Declare.
18152         * expmed.c (extract_low_bits): New function.
18153         * rtlhooks.c (gen_lowpart_general): Generalize SUBREG handling.
18154         * dse.c: Include tm_p.h.
18155         (find_shift_sequence): Remove the read_reg argument and return the
18156         read value.  Emit the instructions instead of returning them.
18157         Iterate on new_mode rather than calculating it each time.
18158         Check MODES_TIEABLE_P.  Use simplify_gen_subreg to convert the
18159         source to NEW_MODE and extract_low_bits to convert the shifted
18160         value to READ_MODE.
18161         (replace_read): Allow the load and store to have different mode
18162         classes.  Use extract_low_bits when SHIFT == 0.  Create the shift
18163         or extraction instructions before trying the replacement.  Update
18164         dump-file code accordingly, avoiding use of REGNO (store_info->rhs).
18166 2008-03-22  Uros Bizjak  <ubizjak@gmail.com>
18168         * config/i386/i386.c (assign_386_stack_local): Align DImode slots
18169         to their natural alignment to avoid store forwarding stalls.
18171 2008-03-21  Andrew Pinski  <andrew_pinski@playstation.sony.com>
18173         PR target/27946
18174         * config/rs6000/rs6000.md (floatdidf2): Discouraging fprs and
18175         encouraging but not allowing gprs for input;
18176         change the input constraint to !f#r.
18177         (fix_truncdfdi2): Discouraging fprs and encouraging but not allowing
18178         gprs for output;
18179         change the output constraint to !f#r.
18181 2008-03-21  Uros Bizjak  <ubizjak@gmail.com>
18183         PR target/13958
18184         * config/i386/i386.md ("*floatunssi<mode2>_1"): New pattern with
18185         corresponding post-reload splitters.
18186         ("floatunssi<mode>2"): Expand to unsigned_float x87 insn pattern
18187         when x87 FP math is selected.
18188         * config/i386/i386-protos.h (ix86_expand_convert_uns_sixf_sse):
18189         New function prototype.
18190         * config/i386/i386.c (ix86_expand_convert_uns_sixf_sse): New
18191         unreachable function to ease macroization of insn patterns.
18193 2008-03-21  Martin Jambor  <mjambor@suse.cz>
18195         * tree-data-ref.c (dump_data_dependence_relation): Avoid data
18196         reference dumps if ddr is NULL or dependence is unknown.
18198 2008-03-20  Kaz Kojima  <kkojima@gcc.gnu.org>
18200         * config/sh/linux-atomic.asm (ATOMIC_TEST_AND_SET): Take
18201         unsigned extension into account.
18202         (ATOMIC_COMPARE_AND_SWAP): Likewise.
18203         (ATOMIC_FETCH_AND_OP, ATOMIC_FETCH_AND_COMBOP): Likewise.
18204         Do computations on a scratch register.
18206 2008-03-21  Richard Guenther  <rguenther@suse.de>
18208         * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
18209         Use is_gimple_min_invariant instead of TREE_INVARIANT.
18210         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
18211         * tree-ssa-dom.c (record_equality): Likewise.
18212         * tree-inline.c (copy_body_r): Likewise.
18213         * tree-ssa-pre.c (make_values_for_stmt): Remove test for
18214         TREE_INVARIANT.
18216 2008-03-20  Kaz Kojima  <kkojima@gcc.gnu.org>
18218         * config/sh/sh.c (split_branches): Pass zero to redirect_jump
18219         as 'delete_unused' argument.
18221 2008-03-20  Richard Guenther  <rguenther@suse.de>
18223         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Remove
18224         special casing of constant qualifiers.
18225         * tree-ssa.c (useless_type_conversion_p_1): Instead do not
18226         care about them in general.
18227         * tree-ssa-ccp.c (ccp_fold): Addresses are constant or not
18228         regardless of their type.
18229         (fold_stmt_r): Forcefully fold *& if we end up with that.
18231 2008-03-20  Paul Brook  <paul@codesourcery.com>
18233         * config.gcc (arm*-*-uclinux*): Remove duplicate arm/uclinux-elf.h.
18234         * config/arm/uclinux-eabi.h (SUBTARGET_EXTRA_LINK_SPEC): Add extra
18235         linker flags.
18236         * config/arm/bpabi.h (SUBTARGET_EXTRA_LINK_SPEC): Provide default
18237         definition.
18238         (LINK_SPEC): Use SUBTARGET_EXTRA_LINK_SPEC.
18239         * config/arm/unwind-arm.h (_Unwind_decode_target2): Add uClinux.
18241 2008-03-20  Volker Reichelt  <v.reichelt@netcologne.de>
18243         * common.opt (Wmudflap): New option.
18244         * tree-mudflap.c (mf_xform_derefs_1): Guard warning by OPT_Wmudflap.
18245         (mx_register_decls): Likewise.
18246         (mudflap_finish_file): Likewise.
18247         * doc/invoke.texi: Document -Wno-mudflap.
18249 2008-03-20  Kai Tietz  <kai.tietz@onevision.com>
18251         * c-format.c (replace_format_name_to_system_name): New.
18252         (cmp_attribs): New.
18253         (convert_format_name_to_system_name): New.
18254         (decode_format_attr): Add use of convert_format_name_to_system_name.
18255         (format_types_orig): Add gnu_ prefix to names.
18256         (check_format_info_main): Special treating of \0 escaped names for
18257         supporting multi-character format specifiers as I32, I64.
18258         (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): Use of user defined attributes.
18259         (gnu_target_overrides_format_attributes): New.
18260         * c-format.h: Add structure target_ovr_attr to hold
18261         system specific formatter names.
18262         * config.gcc: Add for x86&x86_64 cygwin and mingw32 targets the
18263         msformat-c.o file to c_target_objs and cxx_target_objs.
18264         * config/i386/mingw32.h (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
18265         (TARGET_OVERRIDES_FORMAT_ATTRIBUTES_COUNT): New.
18266         (TARGET_N_FORMAT_TYPES): New.
18267         * config/i386/msformat-c.c: New.
18268         * config/i386/t-cygming: Add build rule for msformat-c.o.
18269         * doc/extend.texi: Add new format names gnu_* and ms_* and
18270         further details.
18271         * doc/tm.texi: (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
18273 2008-03-20  Ira Rosen  <irar@il.ibm.com>
18275         * doc/invoke.texi (-O3): Add -ftree-vectorize to the list of
18276         optimizations turned on under -O3.
18277         (ftree-vectorize): Add that the flag is turned on with -O3.
18279 2008-03-20  Ben Elliston  <bje@au.ibm.com>
18281         * regmove.c (try_auto_increment): Fix spelling error in comment.
18282         * final.c (final_scan_insn): Likewise.
18284 2008-03-20  Uros Bizjak  <ubizjak@gmail.com>
18286         PR target/14552
18287         * config/i386/mmx.md (*mov<mode>_internal_rex64"): Adjust register
18288         allocator preferences for "y" and "r" class registers.
18289         ("*mov<mode>_internal"): Ditto.
18290         ("*movv2sf_internal_rex64"): Ditto.
18291         ("*movv2sf_internal"): Ditto.
18293 2008-03-19  Michael Matz  <matz@suse.de>
18295         PR middle-end/35616
18296         * calls.c (expand_call): Check overlap of arguments with call
18297         address for sibcalls.
18299 2008-03-19  Uros Bizjak  <ubizjak@gmail.com>
18301         PR target/35496
18302         * stor-layout.c (update_alignment_for_field): Set minimum alignment
18303         of the underlying type of a MS bitfield layout to the natural
18304         alignment of the type.
18306 2008-03-19  Jan Hubicka  <jh@suse.cz>
18308         PR other/35094
18309         * toplev.c (decode_d_option): Handle all CPP flags.
18310         * tree-vrp.c: Update tree_pass descriptors.
18311         * regrename.c: Update tree_pass descriptors.
18312         * fwprop.c: Update tree_pass descriptors.
18313         * doc/invoke.texi: Remove documentation of dropped -d? flags.
18314         * tree-into-ssa.c: Update tree_pass descriptors.
18315         * tree-dump.c: Update tree_pass descriptors.
18316         * tree-complex.c: Update tree_pass descriptors.
18317         * tree-dump.h: Update tree_pass descriptors.
18318         * see.c: Update tree_pass descriptors.
18319         * cgraphbuild.c: Update tree_pass descriptors.
18320         * tracer.c: Update tree_pass descriptors.
18321         * tree-loop-distribution.c: Update tree_pass descriptors.
18322         * cgraph.c: Update tree_pass descriptors.
18323         * postreload-gcse.c: Update tree_pass descriptors.
18324         * postreload.c: Update tree_pass descriptors.
18325         * tree-ssa-loop-ch.c: Update tree_pass descriptors.
18326         * tree-tailcall.c: Update tree_pass descriptors.
18327         * tree-pass.h (tree_opt_pass): Rename to ...
18328         (opt_pass) ... this one; add "type" field and remove letter field.
18329         (gimple_opt_pass, rtl_opt_pass, simple_ipa_opt_pass): New.
18330         (execute_pass_list, execute_ipa_pass_list, all_passes, all_ipa_passes,
18331         all_lowering_passes): Update declaration.
18332         * ipa-cp.c: Update tree_pass descriptors.
18333         * final.c: Update tree_pass descriptors.
18334         * omp-low.c: Update tree_pass descriptors.
18335         * tree-ssa-dse.c: Update tree_pass descriptors.
18336         * ipa-reference.c: Update tree_pass descriptors.
18337         * tree-ssa-uncprop.c: Update tree_pass descriptors.
18338         * auto-inc-dec.c: Update tree_pass descriptors.
18339         * reorg.c: Update tree_pass descriptors.
18340         * cgraphunit.c: Update tree_pass descriptors.
18341         * tree-ssa-copyrename.c: Update tree_pass descriptors.
18342         * tree-ssa-ccp.c: Update tree_pass descriptors.
18343         * df-core.c: Update tree_pass descriptors.
18344         * mode-switching.c: Update tree_pass descriptors.
18345         * tree-nomudflap.c: Update tree_pass descriptors.
18346         * modulo-sched.c: Update tree_pass descriptors.
18347         * ipa-pure-const.c: Update tree_pass descriptors.
18348         * cse.c: Update tree_pass descriptors.
18349         * web.c: Update tree_pass descriptors.
18350         * tree-stdarg.c: Update tree_pass descriptors.
18351         * tree-ssa-math-opts.c: Update tree_pass descriptors.
18352         * tree-ssa-dom.c: Update tree_pass descriptors.
18353         * tree-nrv.c: Update tree_pass descriptors.
18354         * tree-ssa-alias.c: Update tree_pass descriptors.
18355         * loop-init.c: Update tree_pass descriptors.
18356         * gimple-low.c: Update tree_pass descriptors.
18357         * ipa-inline.c: Update tree_pass descriptors.
18358         * tree-ssa-sink.c: Update tree_pass descriptors.
18359         * global.c: Update tree_pass descriptors.
18360         * ifcvt.c: Update tree_pass descriptors.
18361         * jump.c: Update tree_pass descriptors.
18362         * predict.c: Update tree_pass descriptors.
18363         * tree-ssa-loop.c: Update tree_pass descriptors.
18364         * recog.c: Update tree_pass descriptors.
18365         * dse.c: Update tree_pass descriptors.
18366         * tree-ssa-ifcombine.c: Update tree_pass descriptors.
18367         * tree-eh.c: Update tree_pass descriptors.
18368         * regmove.c: Update tree_pass descriptors.
18369         * local-alloc.c
18370         * function.c: Update tree_pass descriptors.
18371         * tree-vectorizer.c: Update tree_pass descriptors.
18372         * gcse.c: Update tree_pass descriptors.
18373         * ipa-type-escape.c: Update tree_pass descriptors.
18374         * tree-if-conv.c: Update tree_pass descriptors.
18375         * init-regs.c: Update tree_pass descriptors.
18376         * ipa.c: Update tree_pass descriptors.
18377         * tree-ssa-phiopt.c: Update tree_pass descriptors.
18378         * rtl-factoring.c: Update tree_pass descriptors.
18379         * lower-subreg.c: Update tree_pass descriptors.
18380         * bt-load.c: Update tree_pass descriptors.
18381         * tree-dfa.c: Update tree_pass descriptors.
18382         * except.c: Update tree_pass descriptors.
18383         * emit-rtl.c: Update tree_pass descriptors.
18384         * cfgexpand.c: Update tree_pass descriptors.
18385         * tree-cfgcleanup.c: Update tree_pass descriptors.
18386         * cfgcleanup.c: Update tree_pass descriptors.
18387         * tree-ssa-pre.c: Update tree_pass descriptors.
18388         * tree-sra.c: Update tree_pass descriptors.
18389         * tree-mudflap.c: Update tree_pass descriptors.
18390         * tree-ssa-copy.c: Update tree_pass descriptors.
18391         * cfglayout.c: Update tree_pass descriptors.
18392         * tree-ssa-forwprop.c: Update tree_pass descriptors.
18393         * tree-ssa-dce.c: Update tree_pass descriptors.
18394         * tree-ssa.c: Update tree_pass descriptors.
18395         * regclass.c: Update tree_pass descriptors.
18396         * integrate.c: Update tree_pass descriptors.
18397         * tree-optimize.c: Update tree_pass descriptors.
18398         * tree-ssa-phiprop.c: Update tree_pass descriptors.
18399         * tree-object-size.c: Update tree_pass descriptors.
18400         * combine.c: Update tree_pass descriptors.
18401         * tree-outof-ssa.c: Update tree_pass descriptors.
18402         * bb-reorder.c: Update tree_pass descriptors.
18403         * stack-ptr-mod.c: Update tree_pass descriptors.
18404         * var-tracking.c: Update tree_pass descriptors.
18405         * tree-profile.c: Update tree_pass descriptors.
18406         * tree-vect-generic.c: Update tree_pass descriptors.
18407         * reg-stack.c: Update tree_pass descriptors.
18408         * sched-rgn.c: Update tree_pass descriptors.
18409         * tree-ssa-structalias.c: Update tree_pass descriptors.
18410         * tree-cfg.c: Update tree_pass descriptors.
18411         * passes.c (current_pass): Update declaration.
18412         (finish_optimization_passes): Update.
18413         (all_passes, all_ipa_passes, all_lowering_passes): Update declaration.
18414         (register_one_dump_file, register_dump_files_1, next_pass_1):
18415         Update arguments.
18416         (init_optimization_passes): Update handling of new types.
18417         (execute_one_pass, execute_pass_list, execute_ipa_pass_list): Update.
18418         * ipa-struct-reorg.c: Update tree_pass descriptors.
18419         * tree-ssa-reassoc.c: Update tree_pass descriptors.
18420         * combine-stack-adj.c: Update tree_pass descriptors.
18421         * cfgrtl.c: Update tree_pass descriptors.
18422         * dce.c: Update tree_pass descriptors.
18423         * tree-ssanames.c: Update tree_pass descriptors.
18425 2008-03-19  Richard Guenther  <rguenther@suse.de>
18427         PR middle-end/35609
18428         * tree-ssa.c (walk_data): New structure.
18429         (warn_uninitialized_var): If not always_executed warn with "maybe"
18430         instead of "is".
18431         (execute_early_warn_uninitialized): Compute post-dominators.
18432         Initialize always_executed before processing each basic block.
18434 2008-03-18  Mikulas Patocka  <mikulas@artax.karlin.mff.cuni.cz>
18436         PR target/35504
18437         * config/i386/i386.c (x86_this_parameter): Calculate correct location
18438         of "this" pointer when "regparm = N" or "fastcall" is in effect.
18440 2008-03-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18442         * doc/include/texinfo.tex: Update to version 2008-03-17.10.
18444 2008-03-18  Paolo Bonzini  <bonzini@gnu.org>
18446         * expr.c (store_expr): Assume lang_hooks.reduce_bit_field_operations
18447         is true.
18448         (expand_expr_real_1) <REDUCE_BIT_FIELD>: Don't look at ignore.
18449         (expand_expr_real_1): Assume lang_hooks.reduce_bit_field_operations
18450         is true.  Add "&& !ignore" condition to reduce_bit_field.  Modify
18451         target after ignore has been set, and move there also the commputation
18452         of subtarget and original_target.
18453         * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Delete.
18454         (LANG_HOOKS_INITIALIZER): Remove it.
18455         * langhooks.h (struct lang_hooks): Remove reduce_bit_field_operations.
18457 2008-03-18  Richard Guenther  <rguenther@suse.de>
18459         * tree-ssa-sccvn.c (visit_reference_op_load): If the lookup
18460         found an expression with constants, note that in the VN for the lhs.
18461         * tree-ssa-pre.c (eliminate): Visit COND_EXPR statements and
18462         fold them to constants if possible.  Run cleanup_cfg if done so.
18463         (execute_pre): Return todo.
18464         (do_pre): Likewise.
18465         (execute_fre): Likewise.
18466         * tree-ssa-forwprop.c (can_propagate_from): Allow propagation
18467         of constants.
18468         (get_prop_source_stmt): Look through pointer conversions.
18470 2008-03-18  Jan Hubicka  <jh@suse.cz>
18472         * tree-pretty-print.c: Include predict.h.
18473         (dump_generic_node): Dump predictor.
18474         * tree.h (PREDICT_EXPR_OUTCOME, PREDICT_EXPR_PREDICTION): Update.
18475         * tree-gimple.c (is_gimple_stmt): Add PREDICT_EXPR.
18476         * gimple-low.c (lower_stmt): Likewise.
18477         * expr.c (expand_expr_real): Likewise.
18478         * predict.c (tree_bb_level_predictions): Use PREDICT_EXPRs and remove
18479         them.
18480         (build_predict_expr, build_predict_expr): New.
18481         * predict.h (predictor_name, build_predict_expr): Update.
18482         * c-typeck.c (c_finish_bc_stmt): Add prediction.
18483         * gimplify.c (gimplify_expr): Add PREDICT_EXPR.
18484         * predict.def (PRED_CONTINUE): Update hitrate.
18485         * tree.def (PREDICT_EXPR): Define.
18486         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark PREDICT_EXPR;
18487         do not handle BIND_EXPR.
18488         * tree-inline.c (estimate_num_insns_1): PREDICT_EXPR is free.
18489         * tree-cfg.c (verify_gimple_stmt): PREDICT_EXPR is valid.
18490         * tree-ssa-operands.c (get_expr_operands): PREDICT_EXPR takes no
18491         operands.
18493 2008-03-18  Michael Matz  <matz@suse.de>
18495         * gcov-io.h (__gcov_merge_ior, __gcov_fork): Mark hidden.
18497 2008-03-18  Richard Guenther  <rguenther@suse.de>
18499         * tree-gimple.h (is_gimple_invariant_address): Declare.
18500         (is_gimple_constant): Likewise.
18501         * tree-gimple.c (is_gimple_constant): New function.
18502         (is_gimple_invariant_address): Likewise.
18503         (is_gimple_min_invariant): Implement in terms of is_gimple_constant
18504         and is_gimple_invariant_address.
18505         * tree-ssa-loop-niter.c (expand_simple_operations): Revert
18506         previous change.
18507         * tree-data-ref.c (get_references_in_stmt): A SSA_NAME is not
18508         an addressable base.
18510 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
18512         PR middle-end/35611
18513         * gimplify.c (gimplify_expr): Gimplify second operand of
18514         OMP_ATOMIC_LOAD.
18516 2008-03-17  Richard Guenther  <rguenther@suse.de>
18518         PR tree-optimization/19637
18519         * fold-const.c (fold_unary): Remove restrictions of removing
18520         intermediate pointer-conversions (P2)(P1)P0.
18521         * tree-ssa-ccp.c (maybe_fold_stmt_addition): Recover from
18522         conversion to void pointer.
18523         (get_maxval_strlen): Handle addresses of the form &(*p)[0].
18525 2008-03-16  James E. Wilson  <wilson@tuliptree.org>
18527         PR debug/31510
18528         * dbxout.c (dbxout_expand_expr, case VAR_DECL): Return NULL for
18529         emulated thread local variables.
18531 2008-03-16  Richard Guenther  <rguenther@suse.de>
18533         PR middle-end/35607
18534         * tree-ssa-loop-niter.c (expand_simple_operations): Do not
18535         expand TREE_INVARIANT operations that are not gimple invariant.
18537 2008-03-16  Hans-Peter Nilsson  <hp@axis.com>
18539         * doc/extend.texi (Alignment): Say that the ABI controls
18540         the __alignof__ for non-strict-alignment targets rather
18541         than being a recommendation.
18543 2008-03-15  Paul Brook  <paul@codesourcery.com>
18545         * config/arm/arm.c (arm_unwind_emit): Suppress unused unwinding
18546         annotations.
18547         (arm_output_fn_unwind): Mark functions that can not be unwound.
18549 2008-03-15  Paul Brook  <paul@codesourcery.com>
18551         * config/arm/arm.c (arm_rtx_costs_1): Add costs for ARMv6 value
18552         extension instructions.
18554 2008-03-15  Richard Guenther  <rguenther@suse.de>
18556         * tree-ssa-ccp.c (ccp_fold): Also read from constant values
18557         and fold constant aggregate refs.
18558         (fold_const_aggregate_ref): Handle string constants
18559         and constructors in ARRAY_REFs.  Handle INDIRECT_REF.
18560         (evaluate_stmt): Simplify now that ccp_fold folds constant
18561         aggregate refs.
18563 2008-03-15  Paul Brook  <paul@codesourcery.com>
18565         * config/arm/arm.md (insv): Use gen_insv_t2 and gen_insv_zero.
18566         (extzv): Use gen_extzv_t2.
18567         (insv_t2, insv_zero, extv, extzv_t2): New patterns.
18569 2008-03-15  Richard Guenther  <rguenther@suse.de>
18571         * tree-ssa-ccp.c (get_symbol_constant_value): Export.
18572         (fold_const_aggregate_ref): Likewise.
18573         (get_value): Return NULL if we don't have any values.
18574         (ccp_finalize): Set const_val to NULL after freeing it.
18575         * tree-flow.h (get_symbol_constant_value): Declare.
18576         (fold_const_aggregate_ref): Likewise.
18577         * tree-ssa-sccvn.c (try_to_simplify): Use them.
18579 2008-03-15  Richard Guenther  <rguenther@suse.de>
18581         PR middle-end/35593
18582         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Make sure
18583         to not produce negative array indices if not allowed.  Add
18584         parameter to indicate that.
18585         (maybe_fold_offset_to_component_ref): Allow negative array
18586         indices only for the first member of a structure.
18587         (maybe_fold_offset_to_reference): Allow negative array indices.
18588         (maybe_fold_stmt_addition): Likewise.
18590 2008-03-15  Bjoern Haase  <bjoern.m.haase@web.de>
18591             Anatoly Sokolov <aesok@post.ru>
18593         * config/avr/avr.c (avr_arch_types): Add avr6 entry.
18594         (avr_arch): Add ARCH_AVR6.
18595         (avr_mcu_types): Add 'atmega2560' and 'atmega2561' entry.
18596         (initial_elimination_offset): Initialize and use 'avr_pc_size'
18597         instead of fixed value 2.
18598         (print_operand_address): Use gs() asm specifier instead of pm().
18599         (avr_assemble_integer): (Ditto.).
18600         (avr_output_addr_vec_elt): (Ditto.).
18601         (print_operand): Handle "!" code.
18602         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Add
18603         __AVR_3_BYTE_PC__, __AVR_2_BYTE_PC__ and __AVR_HAVE_JMP_CALL__.
18604         (AVR_HAVE_EIJMP_EICALL): Define.
18605         (AVR_3_BYTE_PC): Redefine.
18606         (AVR_2_BYTE_PC): (Ditto.).
18607         (PRINT_OPERAND_PUNCT_VALID_P): Add '!' code.
18608         (LINK_SPEC): Add atmega2560 and atmega2561.
18609         (CRT_BINUTILS_SPEC): Add atmega2560 (crtm2560.o) and atmega2561
18610         (crtm2561.o).
18611         * config/avr/avr.md (call_insn): Use eicall instead of icall
18612         for 3 byte PC devices.
18613         (call_value_insn): (Ditto.).
18614         (*tablejump_enh): Use eijmp instead of ijmp for 3 byte PC devices.
18615         (indirect_jump): Use only for for 2 byte PC devices.
18616         (*tablejump): (Ditto.).
18617         (*indirect_jump_avr6): Add insn.
18618         (*tablejump_rjmp): Don't use for 3 byte PC devices.
18619         * config/avr/libgcc.S (__prologue_saves__): Use eijmp
18620         instead of ijmp for 3 byte PC devices.
18621         (__tablejump2__): (Ditto.).
18622         * config/avr/t-avr (MULITLIB_OPTIONS): Add avr6 architecture.
18623         (MULITLIB_DIRNAMES): (Ditto.).
18624         (MULTILIB_MATCHES): Add atmega2560 and atmega2561 to list.
18626 2008-03-15  Uros Bizjak  <ubizjak@gmail.com>
18628         * config/i386/mmx.md ("sse2_umulv1siv2di3"): Rename from
18629         "sse2_umulsidi3".  Use V1DI mode for operand 0.
18630         ("mmx_psadbw"): Use V1DI mode for operand 0.
18631         * config/i386/i386-modes.def (V1SI): New vector mode.
18632         * config/i386/i386.c (struct builtin_description)
18633         [IX86_BUILTIN_PMULUDQ]: Use CODE_FOR_sse2_umulv1siv1di3.
18634         (v1di_ftype_v8qi_v8qi): Rename from di_ftype_v8qi_v8qi.
18635         (v1di_ftype_v2si_v2si): Rename from di_ftype_v2si_v2si.
18636         (ix86_init_mmx_sse_builtins) [__builtin_ia32_psadbw]: Use
18637         v1di_ftype_v8qi_v8qi type.
18638         [__builtin_ia32_pmuludq]: Use v1di_ftype_v2si_v2si type.
18640         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psadbw,
18641         __builtin_ia32_pmuludq]: Fix the mode of return value.
18643 2008-03-15  Richard Guenther  <rguenther@suse.de>
18645         PR middle-end/35595
18646         * tree-ssa-pre.c (bitmap_find_leader): Handle expression
18647         being a PHI_NODE.
18649 2008-03-14  Bob Wilson  <bob.wilson@acm.org>
18651         * doc/invoke.texi (Option Summary, Xtensa Options): Document
18652         -mserialize-volatile and -mno-serialize-volatile Xtensa options.
18653         * config/xtensa/xtensa.c (print_operand): Do not emit MEMW instructions
18654         unless TARGET_SERIALIZE_VOLATILE is enabled.
18655         * config/xtensa/xtensa.md (*lsiu, *ssiu): Likewise.
18656         * config/xtensa/xtensa.h (TARGET_DEFAULT): Add MASK_SERIALIZE_VOLATILE.
18657         * config/xtensa/xtensa.opt (mserialize_volatile): New option.
18659 2008-03-14  Richard Guenther  <rguenther@suse.de>
18661         PR tree-optimization/34172
18662         * tree-flow.h (refs_may_alias_p): Declare.
18663         (get_single_def_stmt): Likewise.
18664         (get_single_def_stmt_from_phi): Likewise.
18665         (get_single_def_stmt_with_phi): Likewise.
18666         * tree-dfa.c (refs_may_alias_p): New function.
18667         (get_single_def_stmt): Likewise.
18668         (get_single_def_stmt_from_phi): Likewise.
18669         (get_single_def_stmt_with_phi): Likewise.
18670         * tree-ssa-sccvn.c (get_def_ref_stmt_vuses): New function.
18671         (vn_reference_lookup_1): New helper function.
18672         (vn_reference_lookup): Walk the virtual use-def chain to
18673         continue searching for a match if the def does not alias the
18674         reference we are looking for.
18676 2008-03-14  David Edelsohn  <edelsohn@gnu.org>
18678         * doc/install.texi (Binaries): Remove UCLA archive.  Add HVCC
18679         archive and Perzl.  Update The Written Word listing.
18681 2008-03-14  Richard Guenther  <rguenther@suse.de>
18683         PR tree-optimization/34043
18684         PR tree-optimization/33989
18685         * tree-ssa-pre.c (execute_pre): Allow SCCVN to do insertion
18686         when doing FRE.
18687         (bitmap_find_leader): Use extra argument to verify dominance
18688         relationship inside a basic-block.
18689         (can_PRE_operation): Add VIEW_CONVERT_EXPR.
18690         (find_leader_in_sets): Adjust.
18691         (create_component_ref_by_pieces): Take extra argument for
18692         dominance check, handle lookup failures.
18693         (find_or_generate_expression): Likewise.
18694         (create_expression_by_pieces): Likewise.
18695         (insert_into_preds_of_block): Adjust.
18696         (create_value_expr_from): If asked for, verify all operands
18697         are in the blocks AVAIL_OUT set.
18698         (make_values_for_stmt): Check for SSA_NAMEs that are life
18699         over an abnormal edge.
18700         (compute_avail): Remove such check.
18701         (do_SCCVN_insertion): New function.
18702         (eliminate): If we do not find a leader suitable for replacement
18703         insert a replacement expression from SCCVN if available.
18704         * tree-ssa-sccvn.h (run_scc_vn): Update prototype.
18705         (struct vn_ssa_aux): Add needs_insertion flag.
18706         * tree-ssa-sccvn.c (may_insert): New global flag.
18707         (copy_reference_ops_from_ref): Value-number union member access
18708         based on its size, not type and member if insertion is allowed.
18709         (visit_reference_op_load): For a weak match from union type
18710         punning lookup a view-converted value and insert a SSA_NAME
18711         for that value if that is not found.
18712         (visit_use): Make dumps shorter.  Do not disallow value numbering
18713         SSA_NAMEs that are life over an abnormal edge to constants.
18714         (free_scc_vn): Release inserted SSA_NAMEs.
18715         (run_scc_vn): New flag to specify whether insertion is allowed.
18716         Process SSA_NAMEs in forward order.
18717         * tree-ssa-loop-im.c (for_each_index): Handle invariant
18718         ADDR_EXPRs inside VIEW_CONVERT_EXPR.
18719         * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPRs from/to
18720         pointer type to/from integral types that do not change the
18721         precision to regular conversions.
18723 2008-03-13  Uros Bizjak  <ubizjak@gmail.com>
18725         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
18726         __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
18727         __builtin_ia32_psrl?i, __builtin_ia32_psra?i, __builtin_ia32_psll?128,
18728         __builtin_ia32_psrl?128, __builtin_ia32_psra?128]: Fix the mode of
18729         input arguments and the mode of return value.  Built-in functions
18730         that operate on whole 64-bit MMX register now use V1DI mode.
18732 2008-03-13  Alon Dayan  <alond@il.ibm.com>
18733             Olga Golovanevsky  <olga@il.ibm.com>
18735         PR tree-optimization/35041
18736         * ipa-struct-reorg.c (find_pos_in_stmt_1): Add another option
18737         to locate the right position in a statement.
18739 2008-03-13  Uros Bizjak  <ubizjak@gmail.com>
18741         PR target/34000
18742         PR target/35553
18743         * config/i386/xmmintrin.h:  Change all static inline functions to
18744         extern inline and add __gnu_inline__ attribute.
18745         * config/i386/bmintrin.h: Ditto.
18746         * config/i386/smmintrin.h: Ditto.
18747         * config/i386/tmmintrin.h: Ditto.
18748         * config/i386/mmintrin-common.h: Ditto.
18749         * config/i386/ammintrin.h: Ditto.
18750         * config/i386/emmintrin.h: Ditto.
18751         * config/i386/pmmintrin.h: Ditto.
18752         * config/i386/mmintrin.h: Ditto.
18753         * config/i386/mm3dnow.h: Ditto.
18755 2008-03-13  Jakub Jelinek  <jakub@redhat.com>
18757         PR middle-end/35185
18758         * omp-low.c (lower_regimplify, init_tmp_var, save_tmp_var): Removed.
18759         (lower_omp_2): New function.
18760         (lower_omp_1, lower_omp): Rewritten.
18762 2008-03-13  Danny Smith  <dannysmith@users.sourceforge.net>
18764         PR 35054
18765         * doc/extend.texi (Structure-Packing Pragmas): Replace "Win32"
18766         with the phrase "Microsoft Windows compilers".
18767         (Push/Pop Macro Pragmas): New subsection. Document
18768         #pragma push_macro and pragma pop_macro.
18770 2008-03-12  Paul Brook  <paul@codesourcery.com>
18772         * config/arm/arm.c (output_move_double): Prefer LDRD to LDM.
18774 2008-03-12  Paul Brook  <paul@codesourcery.com>
18776         * config/arm/thumb2.md: Extend peephole to cover 3-arg subs.
18777         (thumb2_alusi3_short): Exclude PLUS and MINUS.
18778         (thumb2_addsi_shortim): Rename ...
18779         (thumb2_addsi_short): ... to this.  Allow register operands.
18780         (thumb2_subsi_short): New pattern.
18781         (thumb2_one_cmplsi2_short,
18782         thumb2_negsi2_short): New patterns and peepholes.
18784 2008-03-12  Paul Brook  <paul@codesourcery.com>
18786         * config/arm/arm.c (arm_size_rtx_costs): Use ARM costs for Thumb-2.
18788 2008-03-12  Uros Bizjak  <ubizjak@gmail.com>
18790         * config/i386/i386.md (int_cond): New code iterator.
18791         (fp_cond): Ditto.
18792         ("s<code>"): Macroize expander from seq, sne, sgt, sgtu, slt, sltu,
18793         sge, sgeu, sle and sleu expanders usign int_cond code iterator.
18794         ("s<code>"): Macroize expander from sunordered, sordered, suneq, sunge,
18795         sungt, sunle, sunlt and sltgt expanders usign fp_cond code iterator.
18796         ("b<code>"): Macroize expander from beq, bne, bgt, bgtu, blt, bltu,
18797         bge, bgeu, ble and bleu expanders usign int_cond code iterator.
18798         ("b<code>"): Macroize expander from bunordered, bordered, buneq, bunge,
18799         bungt, bunle, bunlt and bltgt expanders usign fp_cond code iterator.
18801 2008-03-12  Paul Brook  <paul@codesourcery.com>
18803         * config/arm/arm.c (use_return_insn): Use offsets->saved_regs_mask
18804         instead of {arm,thumb}_compute_save_reg_mask.
18805         (output_return_instruction): Ditto.
18806         (thumb_unexpanded_epilogue): Ditto.
18807         (thumb1_expand_prologue): Ditto.
18808         (thumb1_output_function_prologue): Ditto.
18809         (arm_set_return_address): Ditto.
18810         (thumb_set_return_address): Ditto.
18811         (arm_get_frame_offsets): Set offsets->saved_regs_mask.  Push extra
18812         regs to achieve stack alignment.
18813         (thumb1_compute_save_reg_mask): Fix compiler warning.
18814         (arm_output_epilogue): Use offsets->saved_regs_mask.
18815         Adjust stack pointer by poping call clobered registers.
18816         (arm_expand_prologue): Use offsets->saved_regs_mask.
18817         Adjust stack pointer by pushing extra registers.
18818         * config/arm.h (arm_stack_offsets): Add saved_regs_mask.
18820 2008-03-12  Paolo Bonzini  <bonzini@gnu.org>
18822         PR tree-opt/35422
18823         * fold-const.c (fold_unary) <NOP_EXPR>: Distribute a narrowing
18824         conversion to the operands of a multiplication.
18826 2008-03-12  Richard Guenther  <rguenther@suse.de>
18828         * Makefile.in (OBJS-common): Add tree-ssa-phiprop.o
18829         (tree-ssa-phiprop.o): Copy dependencies from tree-ssa-forwprop.o.
18830         * timevar.def (TV_TREE_PHIPROP): Add.
18831         * tree-ssa-phiprop.c: Split from tree-ssa-forwprop.c, added
18832         pass description.  Use TV_TREE_PHIPROP.
18833         * tree-ssa-forwprop.c: Remove phiprop code.
18835 2008-03-12  Jakub Jelinek  <jakub@redhat.com>
18837         PR middle-end/35549
18838         * omp-low.c (maybe_lookup_decl): Constify first argument.
18839         (use_pointer_for_field): Change last argument from bool to
18840         omp_context *.  Disallow shared copy-in/out in nested
18841         parallel if decl is shared in outer parallel too.
18842         (build_outer_var_ref, scan_sharing_clauses,
18843         lower_rec_input_clauses, lower_copyprivate_clauses,
18844         lower_send_clauses, lower_send_shared_vars): Adjust callers.
18846 2008-03-12  Victor Kaplansky  <victork@il.ibm.com>
18847             Ira Rosen  <irar@il.ibm.com>
18849         * tree-vectorizer.c (free_stmt_vec_info): New function.
18850         (destroy_loop_vec_info): Move code to free_stmt_vec_info().
18851         Call free_stmt_vec_info(). Free LOOP_VINFO_STRIDED_STORES..
18852         * tree-vectorizer.h (free_stmt_vec_info): Declare.
18853         * tree-vect-transform.c (vectorizable_conversion): Free
18854         vec_oprnds0 if it was allocated.
18855         (vect_permute_store_chain): Remove unused VECs.
18856         (vectorizable_store): Free VECs that are allocated in the..
18857         function.
18858         (vect_transform_strided_load, vectorizable_load): Likewise.
18859         (vect_remove_stores): Simplify the code.
18860         (vect_transform_loop): Move code to vect_remove_stores().
18861         Call vect_remove_stores() and free_stmt_vec_info().
18863 2008-03-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
18865         * pa.h (TARGET_LONG_PIC_SDIFF_CALL): Conditionalize define on
18866         TARGET_HPUX.  Revise comment.
18867         (TARGET_LONG_PIC_PCREL_CALL): Revise comment.
18868         * pa.c (output_call): Update for revised TARGET_LONG_PIC_SDIFF_CALL.
18869         Use sr4 variant of `be' instruction when not generating PIC code.
18870         (attr_length_call): Adjust for above change.
18872 2008-03-11  Andrew Pinski  <andrew_pinski@playstation.sony.com>
18874         * ipa-reference.c (static_execute): Remove module_statics_const and
18875         associated setting code.
18877 2008-03-11  Uros Bizjak  <ubizjak@gmail.com>
18879         PR target/35540
18880         * config/i386/i386.md (paritysi2, paritydi2): Use register_operand
18881         predicate for operand 1.
18882         (paritysi2_cmp): Use register_operand predicate for operand 2.
18883         Use earlyclobber modifier for operand 1.  Remove support for
18884         memory operands.
18885         (paritydi2_cmp): Use register_operand predicate for operand 3.
18886         Use earlyclobber modifier for operand 1.  Remove support for
18887         memory operands.
18889 2008-03-11  Paul Brook  <paul@codesourcery.com>
18890             Vladimir Prus  <vladimir@codesourcery.com>
18892         * config/arm/arm.c (use_return_insn): Check TARGET_APCS_FRAME.
18893         (arm_compute_save_reg0_reg12_mask): Always
18894         check if register 11 must be saved.  Always safe hard frame pointer
18895         when frame_pointer_needeed.
18896         (arm_compute_save_reg_mask): Save IP and PC
18897         only with apcs frames.
18898         (arm_output_epilogue): Adjust Thumb2 codepath to
18899         be also invoked and work for ARM non-apcs frames.
18900         (arm_expand_prologue): Don't bother saving IP
18901         for non-apcs frame, since it's not clobbered by
18902         prologue code.  Implement non-apcs frame
18903         layout.
18905 2008-03-11  Paolo Bonzini  <bonzini@gnu.org>
18907         PR rtl-optimization/35281
18908         * expr.c (convert_move): Use a new pseudo for the intermediate
18909         from_mode->word_mode result.
18911 2008-03-11  Paolo Bonzini  <bonzini@gnu.org>
18913         * langhooks-def.h (LANG_HOOKS_CLEAR_BINDING_STACK): Delete.
18914         * langhooks.h (struct lang_hooks): Delete clear_binding_stack member.
18915         * toplev.c (compile_file): Don't call it.
18917 2008-03-11  Uros Bizjak  <ubizjak@gmail.com>
18919         PR middle-end/35526
18920         * expr.c (store_expr): Call emit_block_move if the mode
18921         of "temp" RTX is BLKmode.
18923 2008-03-11  Andrew Pinski  <andrew_pinski@playstation.sony.com>
18924             Richard Guenther  <rguenther@suse.de>
18926         PR tree-optimization/31358
18927         * tree-ssa-loop-manip.c (create_iv): Call force_gimple_operand for
18928         the step with a NULL_TREE.
18929         * tree-ssa-loop-ivopts.c (find_bivs): Convert the step
18930         to sizetype if type is a pointer type.
18931         (add_candidate_1): Don't convert the base and step to
18932         the generic type if the orginal type is a pointer type.
18933         (add_iv_value_candidates): Use sizetype for the step
18934         if type is a pointer type.
18935         (cand_value_at): Likewise.
18936         * tree-ssa-address.c (add_to_parts): Use POINTER_PLUS_EXPR
18937         for pointer types.
18938         * tree-affine.c (tree_to_aff_combination <POINTER_PLUS_EXPR>):
18939         Don't convert the tem affine to the type.
18940         (add_elt_to_tree): Use sizetype for the step if a pointer.
18941         Use POINTER_PLUS_EXPR for pointers.
18942         (aff_combination_to_tree): Use sizetype for the step if a
18943         pointer.
18945 2008-03-10  Vladimir Makarov  <vmakarov@redhat.com>
18947         * config/i386/sse.md (ssse3_pmaddubswv8hi3, ssse3_pmaddubswv4hi3):
18948         Remove commutativity hint.
18950 2008-03-10  Jakub Jelinek  <jakub@redhat.com>
18952         PR c/35438
18953         PR c/35439
18954         * c-parser.c (c_parser_omp_threadprivate): Don't add vars with
18955         errorneous type.  Check that v is a VAR_DECL.
18957         PR middle-end/35099
18958         * tree-cfg.c (new_label_mapper): Update cfun->last_label_uid.
18960 2008-03-10  H.J. Lu  <hongjiu.lu@intel.com>
18962         PR tree-optimization/35494
18963         * tree-ssa-ccp.c (get_symbol_constant_value): Check if value
18964         may be overriden at link and run time.
18966 2008-03-10  Richard Guenther  <rguenther@suse.de>
18968         PR tree-optimization/34677
18969         * tree-ssa-pre.c (modify_expr_node_pool): Remove.
18970         (poolify_tree): Likewise.
18971         (modify_expr_template): Likewise.
18972         (poolify_modify_stmt): Likewise.
18973         (insert_fake_stores): Handle all component-ref style stores
18974         in addition to INDIRECT_REF.  Also handle complex types.
18975         Do not poolify the inserted load.
18976         (realify_fake_stores): Do not rebuild the tree but only
18977         make it a SSA_NAME copy.
18978         (init_pre): Remove initialzation of modify_expr_template.
18979         Do not allocate modify_expr_node_pool.
18980         (fini_pre): Do not free modify_expr_node_pool.
18982 2008-03-10  Paul Brook  <paul@codesourcery.com>
18984         * config/arm/arm.md (UNSPEC_STACK_ALIGN, UNSPEC_PIC_OFFSET): Renumber
18985         to avoid conflicts.
18987 2008-03-10  Paul Brook  <paul@codesourcery.com>
18988             Mark Shinwell  <shinwell@codesourcery.com>
18990         * config/arm/cortex-r4.md: New.
18991         * config/arm/thumb2.md (divsi3, udivsi3): Annotate with
18992         insn attributes.
18993         * config/arm/arm.md: Include cortex-r4.md.
18994         (insn): Add smmls, sdiv and udiv values.
18995         (generic_sched): Don't use generic scheduling for Cortex-R4.
18996         (arm_issue_rate): New function.
18997         (TARGET_SCHED_ISSUE_RATE): Define.
18999 2008-03-10  Sebastian Pop  <sebastian.pop@amd.com>
19001         * doc/invoke.texi (-ftree-loop-distribution): Add an example.
19003 2008-03-10  Richard Guenther  <rguenther@suse.de>
19005         * tree-ssa-pre.c (get_sccvn_value): Simplify.
19006         (compute_avail): Do not add stmt uses to AVAIL_OUT.
19008 2008-03-10  Paolo Bonzini  <bonzini@gnu.org>
19010         * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS):
19011         Set default to true.
19013 2008-03-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19015         * c.opt (Wsynth): Deprecate.
19016         * doc/invoke.texi (Option Summary, Warning Options): Document
19017         -Wno-format-contains-nul.
19019 2008-03-09  Uros Bizjak  <ubizjak@gmail.com>
19021         PR target/35496
19022         * config/i386/i386.c (ix86_constant_alignment): Compute alignment using
19023         ALIGN_MODE_128 for VECTOR_CST and INTEGER_CST in addition to REAL_CST.
19025 2008-03-09  Ira Rosen  <irar@il.ibm.com>
19027         * config/rs6000/rs6000.c (builtin_description): Rename vector
19028         left shift operations.
19029         * config/rs6000/altivec.md (UNSPEC_VSL): Remove.
19030         (altivec_vsl<VI_char>): Rename to ...
19031         (ashl<mode>3): ... new name.
19032         (mulv4sf3, mulv4si3, negv4sf2): Replace gen_altivec_vslw with
19033         gen_ashlv4si3.
19034         (absv4sf2): Convert to use ashift:V4SI instead of UNSPEC_VSL.
19036 2008-03-08  Richard Guenther  <rguenther@suse.de>
19038         * coverage.h (tree_coverage_counter_addr): Declare.
19039         * coverage.c (tree_coverage_counter_addr): New function.
19040         * tree-profile.c (tree_gen_edge_profiler): Unshare counter
19041         before using again.
19042         (tree_gen_pow2_profiler): Use tree_coverage_counter_addr.
19043         (tree_gen_one_value_profiler): Likewise.
19044         (tree_gen_ic_profiler): Likewise.
19045         (tree_gen_average_profiler): Likewise.
19046         (tree_gen_ior_profiler): Likewise.
19048 2008-03-08  Richard Guenther  <rguenther@suse.de>
19050         * tree-ssa-sccvn.h (vn_binary_op_lookup): Remove.
19051         (vn_binary_op_insert): Likewise.
19052         (vn_unary_op_lookup): Likewise.
19053         (vn_unary_op_insert): Likewise.
19054         (vn_nary_op_lookup): Declare.
19055         (vn_nary_op_insert): Likewise.
19056         * tree-ssa-sccvn.c (struct vn_tables_s): Merge unary
19057         and binary hashes, use a single obstack for unary_op_pool
19058         and binary_op_pool.
19059         (struct vn_binary_op_s, struct vn_unary_op_s): Replace with
19060         a single struct vn_nary_op_s.  Store tree code length and
19061         a variable number of operands.
19062         (struct vn_reference_op_struct): Remove unused op2.
19063         (vn_reference_op_eq): Do not compare op2.
19064         (vn_reference_op_compute_hash): Do not compute hash of op2.
19065         (vn_unary_op_hash, vn_binary_op_hash): Replace with vn_nary_op_hash.
19066         (vn_unary_op_compute_hash, vn_binary_op_compute_hash): Replace
19067         with vn_nary_op_compute_hash.
19068         (vn_unary_op_eq, vn_binary_op_eq): Replace with vn_nary_op_eq.
19069         (vn_unary_op_lookup, vn_binary_op_lookup): Replace with
19070         vn_nary_op_lookup.
19071         (vn_unary_op_insert, vn_binary_op_insert): Replace with
19072         vn_nary_op_insert.
19073         (visit_unary_op): Call nary functions.
19074         (visit_binary_op): Likewise.
19075         (process_scc): Adjust for struct vn_tables_s changes.
19076         (allocate_vn_table): Likewise.
19077         (free_vn_table): Likewise.
19078         * tree-vn.c (vn_add): Call nary functions.
19079         (vn_lookup): Likewise.
19081 2008-03-08  Jakub Jelinek  <jakub@redhat.com>
19083         PR target/35498
19084         * config/rs6000/rs6000.c (rs6000_expand_compare_and_swapqhi): Shift
19085         wdst back after sync_compare_and_swapqhi_internal.
19087 2008-03-08  Uros Bizjak  <ubizjak@gmail.com>
19089         PR target/22152
19090         * config/i386/i386-modes.def (V1DI): New vector mode.
19091         * config/i386/i386.h (VALID_MMX_REG_MODE): Add V1DImode.
19092         * config/i386/mmx.md (MMXMODEI8): New mode iterator.
19093         (MMXMODE248): Ditto.
19094         (MMXMODE): Add V1DI mode.
19095         (mmxvecsize): Change DI mode to V1DI mode.
19096         ("mov<mode>): Use MMXMODEI8 mode iterator.
19097         ("*mov<mode>_internal_rex64"): Ditto.
19098         ("*mov<mode>_internal"): Ditto.
19099         ("mmx_add<mode>3"): Ditto.  Handle V1DImode for TARGET_SSE2.
19100         ("mmx_sub<mode>3"): Ditto.
19101         ("mmx_adddi3"): Remove insn pattern.
19102         ("mmx_subdi3"): Ditto.
19103         ("mmx_ashr<mode>3"): Use SImode and "yN" constraint for operand 2.
19104         ("mmx_lshr<mode>3"): Ditto. Use MMXMODE248 mode iterator.
19105         ("mmx_ashl<mode>3"): Ditto.
19106         ("mmx_lshrdi3"): Remove insn pattern.
19107         ("mmx_ashldi3"): Ditto.
19108         * config/i386/i386.c (classify_argument): Handle V1DImode.
19109         (function_arg_advance_32): Ditto.
19110         (function_arg_32): Ditto.
19111         (struct builtin_description) [IX86_BUILTIN_PADDQ]: Use
19112         mmx_addv1di3 insn pattern.
19113         [IX86_BUILTIN_PSUBQ]: Use mmx_subv1di3 insn pattern.
19114         [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?, IX86_BUILTIN_PSRA?,
19115         IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I, IX86_BUILTIN_PSRA?I,
19116         IX86_BUILTIN_PSLL?I128, IX86_BUILTIN_PSRL?I128, IX86_BUILTIN_PSRA?I128]:
19117         Remove definitions of built-in functions.
19118         (V1DI_type_node): New node.
19119         (v1di_ftype_v1di_int): Ditto.
19120         (v1di_ftype_v1di_v1di): Ditto.
19121         (v2si_ftype_v2si_si): Ditto.
19122         (v4hi_ftype_v4hi_di): Remove node.
19123         (v2si_ftype_v2si_di): Ditto.
19124         (ix86_init_mmx_sse_builtins): Handle V1DImode.
19125         (__builtin_ia32_psll?, __builtin_ia32_psrl?, __builtin_ia32_psra?):
19126         Redefine builtins using def_builtin_const with *_ftype_*_int node.
19127         (__builtin_ia32_psll?i, __builtin_ia32_psrl?i, __builtin_ia32_psra?i):
19128         Add new builtins using def_builtin_const.
19129         (ix86_expand_builtin) [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?,
19130         IX86_BUILTIN_PSRA?, IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I,
19131         IX86_BUILTIN_PSRA?I]: Handle builtin definitions.
19132         * config/i386/mmintrin.h (__v1di): New typedef.
19133         (_mm_add_si64): Cast arguments to __v1di type.
19134         (_mm_sub_si64): Ditto.
19135         (_mm_sll_pi16): Cast __count to __v4hi type.
19136         (_mm_sll_pi32): Cast __count to __v2si type.
19137         (_mm_sll_si64): Cast arguments to __v1di type.
19138         (_mm_srl_pi16): Cast __count to __v4hi type.
19139         (_mm_srl_pi32): Cast __count to __v2si type.
19140         (_mm_srl_si64): Cast arguments to __v1di type.
19141         (_mm_sra_pi16): Cast __count to __v4hi type.
19142         (_mm_sra_pi32): Cast __count to __v2si type.
19143         (_mm_slli_pi16): Use __builtin_ia32_psllwi.
19144         (_mm_slli_pi32): Use __builtin_ia32_pslldi.
19145         (_mm_slli_si64): Use __builtin_ia32_psllqi. Cast __m to __v1di type.
19146         (_mm_srli_pi16): Use __builtin_ia32_psrlwi.
19147         (_mm_srli_pi32): Use __builtin_ia32_psrldi.
19148         (_mm_srli_si64): Use __builtin_ia32_psrlqi. Cast __m to __v1di type.
19149         (_mm_srai_pi16): Use __builtin_ia32_psrawi.
19150         (_mm_srai_pi32): Use __builtin_ia32_psradi.
19151         * config/i386/i386.md (UNSPEC_NOP): Remove unspec definition.
19152         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
19153         __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
19154         __builtin_ia32_psrl?i, __builtin_ia32_psra?i]: Add new builtins.
19156 2008-03-07  Joseph Myers  <joseph@codesourcery.com>
19158         * doc/include/texinfo.tex: Update to version 2008-03-07.10.
19160 2008-03-07  Peter Bergner  <bergner@vnet.ibm.com>
19162         PR target/35373
19163         * config/rs6000/rs6000.c (rs6000_legitimize_address): Don't generate
19164         reg+const addressing for Altivec modes.  Don't generate reg+reg
19165         addressing for TFmode or TDmode quantities.
19167 2008-03-07  Paolo Bonzini  <bonzini@gnu.org>
19169         * c-common.c (vector_types_convertible_p): Call langhook
19170         instead of comptypes.
19172 2008-03-06  Andrew Pinski  <andrew_pinski@playstation.sony.com>
19174         PR tree-opt/35402
19175         * tree-ssa-ccp.c (get_symbol_constant_value): Handle
19176         integral and scalar float variables which have a
19177         NULL DECL_INITIAL.
19179 2008-03-06  Nathan Froyd  <froydnj@codesourcery.com>
19181         * dwarf2out.c (dwarf2out_frame_debug_expr): Consult the
19182         dwarf_register_span hook when emitting unwind information for
19183         register-to-memory saves.
19184         * config/rs6000/rs6000.c (spe_synthesize_frame): Delete.
19185         (rs6000_frame_related): Remove call to spe_synthesize_frame.
19187 2008-03-06  Jakub Jelinek  <jakub@redhat.com>
19189         * gimplify.c (goa_lhs_expr_p): Allow different ADDR_EXPR nodes
19190         for the same VAR_DECL.
19192 2008-03-06  Tom Tromey  <tromey@redhat.com>
19194         * treelang: Delete.
19195         * doc/standards.texi (Standards): Don't mention treelang.
19196         * doc/invoke.texi (Overall Options): Don't mention treelang.
19197         * doc/install.texi (Prerequisites): Don't mention bison or
19198         treelang.
19199         (Configuration): Don't mention treelang.
19200         (Building): Likewise.
19201         * doc/frontends.texi (G++ and GCC): Don't mention treelang.
19203 2008-03-06  Paolo Bonzini  <bonzini@gnu.org>
19205         * simplify-rtx.c (simplify_subreg): Remove useless shifts from
19206         word-extractions out of a multi-word object.
19208 2008-03-06  Richard Guenther  <rguenther@suse.de>
19210         * tree.def (BIT_FIELD_REF): Constrain result type and its precision.
19211         * tree-cfg.c (verify_expr): Verify BIT_FIELD_REF constraints on
19212         result type and precision.
19213         * expr.c (get_inner_reference): Set unsignedp based on the result
19214         type of BIT_FIELD_REF.
19215         * tree.h (BIT_FIELD_REF_UNSIGNED): Remove.
19216         * tree-sra.c (instantiate_element): Do not set BIT_FIELD_REF_UNSIGNED.
19217         (try_instantiate_multiple_fields): Likewise.  Use the correct type
19218         for BIT_FIELD_REF.
19219         (sra_build_assignment): Likewise.
19220         (sra_build_elt_assignment): Likewise.
19221         (sra_explode_bitfield_assignment): Likewise.
19222         * print-tree.c (print_node): Do not check BIT_FIELD_REF_UNSIGNED.
19223         * tree-vect-transform.c (vect_create_epilog_for_reduction): Do not
19224         set BIT_FIELD_REF_UNSIGNED.
19225         (vectorizable_load): Likewise.
19227 2008-03-06  Andreas Krebbel  <krebbel1@de.ibm.com>
19229         * cse.c (cse_extended_basic_block): Invalidate artificial defs
19230         at bb start.
19232 2008-03-06  Richard Guenther  <rguenther@suse.de>
19234         * alias.c (struct alias_set_entry): Move has_zero_child field
19235         to pack with alias_set.
19237 2008-03-05  H.J. Lu  <hongjiu.lu@intel.com>
19239         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
19240         32bit host.
19242 2008-03-05  Ian Lance Taylor  <iant@google.com>
19244         * alias.h (alias_set_type): Change from HOST_WIDE_INT to int.
19246 2008-03-05  Kenneth Zadeck  <zadeck@naturalbridge.com>
19248         * fwprop.c (update_df): Support width and offset parameters of
19249         df_ref_create.
19250         * ra-conflict.c (mark_reg_store, clear_reg_in_live,
19251         global_conflicts): Change DF_REF_EXTRACT to either
19252         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
19253         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
19254         * df-scan.c (df_ref_record, df_defs_record,
19255         df_ref_create_structure, df_def_record_1, df_uses_record,
19256         df_get_conditional_uses, df_get_call_refs, df_insn_refs_collect,
19257         df_bb_refs_collect, df_entry_block_defs_collect,
19258         df_exit_block_uses_collect): Support new width and offset fields.
19259         (ref_extract_pool): New storage pool.
19260         (df_free_ref): New function.
19261         (df_reg_chain_unlink, df_free_collection_rec,
19262         df_sort_and_compress_refs): Call df_free_ref.
19263         (df_ref_equal_p, df_ref_compare): Compare offset and width fields
19264         of df_ref_extract.
19265         (df_ref_create_structure): Allocate df_ref_extract if offset and
19266         width fields are used.
19267         (df_def_record_1): Get offset and width from ZERO_EXTRACT.
19268         (df_uses_record): Get offset and width from ZERO_EXTRACT
19269         and SIGN_EXTRACT.
19270         * global.c (build_insn_chain): Change DF_REF_EXTRACT to either
19271         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
19272         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
19273         * df.h (df_ref_flags): Change DF_REF_EXTRACT to either
19274         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
19275         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
19276         (df_ref_extract): New structure.
19277         (DF_REF_WIDTH, DF_REF_OFFSET): New macros.
19278         (df_ref_create): Add width and offset parameters.
19280 2008-03-05  Richard Guenther  <rguenther@suse.de>
19282         * tree-ssa-structalias.c (get_constraint_for_component_ref):
19283         Use ranges_overlap_p.
19284         (offset_overlaps_with_access): Rename
19285         to ranges_overlap_p and move ...
19286         * tree-flow-inline.h (ranges_overlap_p): ... here.
19288         * tree.h (get_inner_reference, handled_component_p): Update
19289         comments.
19291         * tree.h (record_component_aliases, get_alias_set,
19292         alias_sets_conflict_p, alias_sets_must_conflict_p,
19293         objects_must_conflict_p): Move declarations ...
19294         * alias.h (record_component_aliases, get_alias_set,
19295         alias_sets_conflict_p, alias_sets_must_conflict_p,
19296         objects_must_conflict_p): ... here.
19297         Include coretypes.h.
19298         * Makefile.in (ALIAS_H): Add coretypes.h dependency.
19300 2008-03-05  Aldy Hernandez  <aldyh@redhat.com>
19302         * cfg.c: Include tree-flow.h.
19303         (remove_edge_raw): Call redirect_edge_var_map_clear.
19304         (redirect_edge_succ_nodup): Call redirect_edge_var_map_dup.
19305         * tree-flow-inline.h (redirect_edge_var_map_def): New.
19306         (redirect_edge_var_map_result): New.
19307         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Replace
19308         PENDING_STMT use with redirect_edge_var_map_*.
19309         * tree-ssa.c (edge_var_maps): New definition.
19310         (redirect_edge_var_map_add): New.
19311         (redirect_edge_var_map_clear): New.
19312         (redirect_edge_var_map_dup): New.
19313         (redirect_edge_var_map_vector): New.
19314         (redirect_edge_var_map_destroy): New.
19315         (ssa_redirect_edge): Replace PENDING_STMT use with
19316         redirect_edge_var_map_*.
19317         (flush_pending_stmts): Same.
19318         (delete_tree_ssa): Destroy edge var map.
19319         * tree-flow.h (struct _edge_var_map): New.
19320         Define edge_var_map vector type.
19321         Declare redirect_edge_var_map_* prototypes.
19322         * Makefile.in (cfg.o): Depend on TREE_FLOW_H.
19323         * tree-cfg.c (reinstall_phi_args): Replace
19324         PENDING_STMT use with redirect_edge_var_map_*.
19326 2008-03-05  Richard Guenther  <rguenther@suse.de>
19328         PR tree-optimization/35472
19329         * tree-ssa-dse.c (dse_optimize_stmt): Do not delete a store
19330         whose single use_stmt has a overlapping set of loaded and
19331         stored symbols as that use_stmt might be a noop assignment then.
19333 2008-03-05  Joel Sherrill <joel.sherrill@oarcorp.com>
19335         * gthr-rtems.h: Implement __gthread_mutex_destroy.
19337 2008-03-05  Richard Guenther  <rguenther@suse.de>
19339         PR c++/35336
19340         * tree.def (BIT_FIELD_REF): Document that operands 1 and 2
19341         should be constants.
19342         * tree-cfg.c (verify_expr): Verify it.
19343         * fold-const.c (fold_truthop): Remove code generating
19344         BIT_FIELD_REFs of structure bases.
19345         (fold_binary): Likewise.
19346         (fold_ternary): Position and size of BIT_FIELD_REFs are
19347         always host integers.
19348         (make_bit_field_ref): Remove.
19349         (optimize_bit_field_compare): Remove.
19350         (all_ones_mask_p): Remove.
19352 2008-03-05  Gabor Loki  <loki@gcc.gnu.org>
19354         PR gcc/33009
19355         * rtl-factoring.c (clear_regs_live_in_seq): Fix backward steps.
19356         (split_block_and_df_analyze): New. Split basic block and rebuild
19357         dataflow.
19358         (block_label_after): Use SPLIT_BLOCK_AND_DF_ANALYZE instead of
19359         SPLIT_BLOCK.
19360         (split_pattern_seq): Likewise.
19361         (erase_matching_seqs): Likewise.
19362         (split_pattern_seq): Skip return insn in case of REG_NORETURN note.
19364 2008-03-04  Geoff Keating  <geoffk@apple.com>
19366         * fold-const.c (tree_single_nonnegative_warnv_p): Fix mixed
19367         declaration and code.
19368         (tree_invalid_nonnegative_warnv_p): Likewise.
19370 2008-03-05  Serge Belyshev  <belyshev@depni.sinp.msu.ru>
19372         * doc/install.texi (Testing): Correct quoting for the RUNTESTFLAGS
19373         examples.  Truncate option-names then causing overfull hbox.
19375 2008-03-04  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
19377         PR target/35222
19378         * configure.ac (CONFIG_SJLJ_EXCEPTIONS): Force SJLJ exceptions
19379         on hpux10.
19380         * configure: Rebuilt.
19382 2008-03-04  Rafael Espíndola  <espindola@google.com>
19384         * fold-const.c (tree_simple_nonnegative_warnv_p): New.
19385         (tree_unary_nonnegative_warnv_p): New.
19386         (tree_binary_nonnegative_warnv_p): New.
19387         (tree_single_nonnegative_warnv_p): New.
19388         (tree_invalid_nonnegative_warnv_p): New.
19389         (tree_expr_nonnegative_warnv_p): Redefine in term of the new functions.
19391 2008-03-04  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
19393         PR 28322
19394         * opts.c (handle_option): Postpone 'unknown option' errors only for
19395         warning options.
19397 2008-03-04  H.J. Lu  <hongjiu.lu@intel.com>
19399         PR target/35453
19400         * config/i386/smmintrin.h (SIDD_XXX): Renamed to ...
19401         (_SIDD_XXX): This.
19403 2008-03-04  Rafael Espíndola  <espindola@google.com>
19405         * fold-const.c (tree_unary_nonzero_warnv_p): New.
19406         (tree_binary_nonzero_warnv_p): New.
19407         (tree_single_nonzero_warnv_p): New.
19408         (tree_expr_nonzero_warnv_p): Redefine using the new functions.
19410 2008-03-04  Uros Bizjak  <ubizjak@gmail.com>
19412         PR middle-end/35456
19413         * fold-const.c (fold_cond_expr_with_comparison): Prevent
19414         transformations for modes that have signed zeros.
19415         * ifcvt.c (noce_try_abs): Ditto.
19417 2008-03-04  Joseph Myers  <joseph@codesourcery.com>
19419         * config/i386/i386.c (override_options): Force
19420         -maccumulate-outgoing-args on if TARGET_STACK_PROBE.
19422 2008-03-04  Jan Hubicka  <jh@suse.cz>
19424         PR c++/35262
19425         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Fix typo
19426         in last commit.
19428 2008-03-04  Danny Smith  <dannysmith@users.sourceforge.net>
19430         * config/i386/i386.md (allocate_stack_worker_32): Use  __chkstk
19431         label to probe the stack.
19433 2008-03-04  Danny Smith  <dannysmith@users.sourceforge.net>
19435         * gthr-win32.h [__GTHREAD_HIDE_WIN32API]
19436         (__gthr_win32_mutex_destroy): Declare.
19437         [__GTHREAD_HIDE_WIN32API] (__gthread_mutex_destroy): Use
19438         __gthr_win32_mutex_destroy.
19439         * config/i386/gthr-win32.c  (__gthr_win32_mutex_destroy): Define.
19441 2008-03-03  Jan Hubicka  <jh@suse.cz>
19443         PR c++/35262
19444         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Be more
19445         aggressive on inlining cold calls.
19447 2008-03-03  Richard Guenther  <rguenther@suse.de>
19449         * tree-ssa-sccvn.c (visit_reference_op_store): Do not insert
19450         struct copies into the expression table.
19451         (simplify_unary_expression): Handle VIEW_CONVERT_EXPR.
19452         (try_to_simplify): Likewise.
19453         * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPR of
19454         integral and pointer arguments which do not change the
19455         precision to NOP_EXPRs.
19456         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Adjust
19457         VIEW_CONVERT_EXPR case.
19459 2008-03-02  Sebastian Pop  <sebastian.pop@amd.com>
19461         * tree-scalar-evolution.c (instantiate_parameters_1): An SSA_NAME
19462         defined in a loop at depth 0 is invariant.
19463         * tree-chrec.c (evolution_function_is_invariant_rec_p): Ditto.
19464         * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Should never
19465         be called at loop depth 0.
19467 2008-03-02  Jakub Jelinek  <jakub@redhat.com>
19469         PR driver/35420
19470         * gcc.c (process_command): Update copyright notice dates.
19471         * gcov.c (print_version): Likewise.
19472         * gcov-dump.c (print_version): Likewise.
19473         * mips-tfile.c (main): Likewise.
19474         * mips-tdump.c (main): Likewise.
19476 2008-03-02  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
19478         PR 24924
19479         * c-common.c (flag_permissive): Delete.
19480         (constant_expression_warnings): Check flags first.
19481         (constant_expression_error): New.
19482         * c-common.h (flag_permissive): Delete.
19483         (constant_expression_error): Declare.
19484         * flags.h (flag_permissive): Declare. Update description.
19485         * diagnostic.c (pedwarn): Update.
19486         (permerror): New.
19487         * diagnostic.h: (pedantic_error_kind): Rename as pedantic_warning_kind.
19488         (permissive_error_kind): New.
19489         * toplev.c (flag_permissive): Define. Update description.
19490         * toplev.h (permissive_error_kind): Declare.
19491         * c-errors.c (pedwarn_c99): Use pedantic_warning_kind.
19492         (pedwarn_c90): Use pedantic_warning_kind.
19493         * c-opts.c (c_common_post_options): flag_permissive does not affect
19494         flag_pedantic_errors.
19496 2008-03-02  Joseph Myers  <joseph@codesourcery.com>
19498         * libgcc2.c (__addvSI3, __addvsi3, __addvDI3, __subvSI3,
19499         __subvsi3, __subvDI3, __negvSI2, __negvsi2, __negvDI2, __absvSI2,
19500         __absvsi2, __absvDI2): Use unsigned arithmetic.
19502 2008-03-02  Andi Kleen  <ak@suse.de>
19503             Richard Guenther  <rguenther@suse.de>
19505         * struct-equiv.c: Remove file.
19506         * cfg_cleanup.c (condjump_equiv_p): Remove.
19507         * Makefile.in (OBJS-common): Remove struct-equiv.o.
19508         (struct-equiv.o): Remove rule.
19509         * basic-block.h (struct_equiv_checkpoint, STRUCT_EQUIV_*,
19510         insns_match_p, struct_equiv_block_eq, struct_equiv_init,
19511         rtx_equiv_p, condjump_equiv_p): Remove prototypes.
19513 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
19515         * ifcvt.c (noce_process_if_block): Try to handle only the then
19516         block if the else block exists but isn't suitable.
19518 2008-03-01  Janne Blomqvist  <jb@gcc.gnu.org>
19520         PR gcc/35063
19521         * gthr-posix.h (__gthread_mutex_destroy): Remove extra declarations.
19522         * gthr-posix95.h (__gthread_mutex_destroy): Likewise. Note this fixes
19523         regression from previous patch.
19525 2008-03-01  Janne Blomqvist  <jb@gcc.gnu.org>
19527         PR gcc/35063
19528         * gthr.h: Add __gthread_mutex_destroy as a function that must be
19529         implemented.
19530         * gthr-vxworks.h (__gthread_mutex_destroy): Null implementation.
19531         * gthr-single.h (__gthread_mutex_destroy): Likewise.
19532         * gthr-rtems.h (__gthread_mutex_destroy): Likewise.
19533         * gthr-mipssde.h (__gthread_mutex_destroy): Likewise.
19534         * gthr-nks.h (__gthread_mutex_destroy): Likewise.
19535         * gthr-solaris.h (__gthread_mutex_destroy): Call mutex_destroy.
19536         * gthr-win32.h (__GTHREAD_MUTEX_DESTROY_FUNCTION): Remove.
19537         (__gthread_mutex_destroy_function): Rename to
19538         __gthread_mutex_destroy.
19539         * gthr-dce.h (__gthread_mutex_destroy): Call
19540         pthread_mutex_destroy.
19541         * gthr-tpf.h (__gthread_mutex_destroy): Likewise.
19542         * gthr-posix.h (__gthread_mutex_destroy): Likewise.
19543         * gthr-posix95.h (__gthread_mutex_destroy): Likewise.
19545 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
19547         * df-scan.c (df_ref_chain_change_bb): Simplify.
19548         (df_insn_change_bb): Add new_bb argument.  Simplify.  Call
19549         set_block_for_insn if there's any change.
19550         * df.h ((df_insn_change_bb): Fix prototype.
19551         * cfgrtl.c (update_bb_for_insn_chain): Pass bb to
19552         df_insn_change_bb, don't call set_block_for_insn.
19553         * emit-rtl.c (reorder_insns): Likewise.
19554         * haifa-sched.c (move_insn): Likewise.
19556 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
19558         * rtlanal.c (loc_mentioned_in_p): Test XVECEXPs correctly.
19560 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
19562         * tree-flow-inline.h (next_readonly_imm_use): Return
19563         NULL_USE_OPERAND_P after the end.
19565 2008-03-01  Richard Guenther  <rguenther@suse.de>
19567         PR tree-optimization/35411
19568         * tree-sra.c (sra_build_assignment): Split conversion to
19569         final type to a separate statement if we are not assigning
19570         to a register.
19572 2008-02-29  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
19574         * fold-const.c (fold_convertible_p): Correct the logic to follow
19575         that in fold_convert().
19577 2008-02-29  Douglas Gregor  <doug.gregor@gmail.com>
19579         PR c++/35315
19580         * tree-inline.c (build_duplicate_type): When we make a
19581         duplicate type, make it unique in the canonical types system.
19583 2008-02-29  Tom Tromey  <tromey@redhat.com>
19585         * toplev.c (input_file_stack, input_file_stack_tick, fs_p,
19586         input_file_stack_history, input_file_stack_restored): Remove.
19587         (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
19588         * input.h (struct file_stack): Remove.
19589         (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
19590         (input_file_stack, input_file_stack_tick, INPUT_FILE_STACK_BITS):
19591         Likewise.
19592         * diagnostic.h (struct diagnostic_context) <last_module>: Change
19593         type.
19594         (diagnostic_last_module_changed): Add 'map' argument.
19595         (diagnostic_set_last_function): Likewise.
19596         * diagnostic.c (undiagnostic_report_current_module): Iterate using
19597         line map, not input_file_stack.
19598         * c-lex.c (fe_file_change): Don't use push_srcloc or pop_srcloc.
19600 2008-02-29  Paul Brook  <paul@codesourcery.com>
19602         * config/arm/arm.md (arm_addsi3): Add r/k/n alternative.
19604 2008-02-29  Paul Brook  <paul@codesourcery.com>
19606         * config/arm/ieee754-df.S (muldf3): Use RET macros.
19608 2008-02-29  Richard Guenther  <rguenther@suse.de>
19610         * tree-ssa-pre.c (get_sccvn_value): Create missing VNs via
19611         vn_lookup_or_add.
19612         * tree-ssa-sccnv.c (visit_reference_op_store): Use the rhs
19613         value for comparing for a store match.
19614         (simplify_unary_expression): Do nothing for SSA_NAMEs.
19615         (try_to_simplify): Do not do a full-blown reference lookup.
19617 2008-02-29  Kaz Kojima  <kkojima@gcc.gnu.org>
19619         * config/sh/sh.c (sh_scalar_mode_supported_p): New function.
19620         (TARGET_SCALAR_MODE_SUPPORTED_P): Define.
19622         * config/sh/sh.h (OVERRIDE_OPTIONS): Don't warn for profiling.
19624 2008-02-29  Sebastian Pop  <sebastian.pop@amd.com>
19626         * tree-loop-linear.c (try_interchange_loops): Compare memory access
19627         strides against cache sizes.
19629 2008-02-29  Kaz Kojima  <kkojima@gcc.gnu.org>
19631         * config/sh/sh.c (sh_secondary_reload): Handle loading a float
19632         constant to fpul.
19634 2008-02-28  Richard Sandiford  <rsandifo@nildram.co.uk>
19636         * simplify-rtx.c (simplify_unary_operation_1): Extend the handling
19637         of SUBREG_PROMOTED_VAR_P to cope with cases where the extended value
19638         is smaller than the original promoted value.
19639         (simplify_subreg): If OP is a SUBREG, try to preserve its
19640         SUBREG_PROMOTED_VAR_P information.
19642 2008-02-28  Steven Bosscher  <stevenb.gcc@gmail.com>
19644         * tree-ssa-sccvn (vn_ssa_aux_obstack): New obstack.
19645         (VN_INFO_GET): Allocate new objects on the obstack.
19646         (init_scc_vn): Initialize the obstack.  Use XDELETE instead of free
19647         for rpo_numbers_temp, for consistency.
19648         (free_scc_vn): Free the obstack.
19650 2008-02-28  Sebastian Pop  <sebastian.pop@amd.com>
19652         * doc/invoke.texi: Document -ftree-loop-distribution.
19653         * tree-loop-distribution.c: New.
19654         * tree-pass.h (pass_loop_distribution): New.
19655         * graphds.h (struct graph): Add htab_t indices.
19656         * timevar.def (TV_TREE_LOOP_DISTRIBUTION): New.
19657         * tree-vectorizer.c (rename_variables_in_loop): Extern.
19658         (slpeel_tree_duplicate_loop_to_edge_cfg): Init PENDING_STMT to NULL.
19659         * tree-vectorizer.h (tree_duplicate_loop_on_edge): Declared.
19660         * tree-data-ref.c (debug_data_dependence_relations): New.
19661         (dump_data_dependence_relation): Also print data references.
19662         (free_data_ref): Extern.
19663         (same_access_functions): Moved...
19664         (find_vertex_for_stmt): Renamed rdg_vertex_for_stmt.
19665         (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
19666         debug_rdg_component, dump_rdg, debug_rdg, dot_rdg_1, dot_rdg,
19667         struct rdg_vertex_info, rdg_vertex_for_stmt): New.
19668         (create_rdg_edge_for_ddr, create_rdg_vertices): Cleaned up.
19669         (stmts_from_loop): Skip LABEL_EXPR.
19670         (hash_stmt_vertex_info, eq_stmt_vertex_info, hash_stmt_vertex_del):
19671         New.
19672         (build_rdg): Initialize rdg->indices htab.
19673         (free_rdg, stores_from_loop, ref_base_address,
19674         rdg_defs_used_in_other_loops_p, have_similar_memory_accesses,
19675         have_similar_memory_accesses_1, ref_base_address_1,
19676         remove_similar_memory_refs): New.
19677         * tree-data-ref.h: Depend on tree-chrec.h.
19678         (debug_data_dependence_relations, free_data_ref): Declared.
19679         (same_access_functions): ... here.
19680         (ddr_is_anti_dependent, ddrs_have_anti_deps, ddr_dependence_level):
19681         New.
19682         (struct rdg_vertex): Add has_mem_write and has_mem_reads.
19683         (RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT,
19684         RDG_MEM_WRITE_STMT, RDG_MEM_READS_STMT): New.
19685         (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
19686         debug_rdg_component, dump_rdg, debug_rdg, dot_rdg,
19687         rdg_vertex_for_stmt): Declared.
19688         (struct rdg_edge): Add level.
19689         (RDGE_LEVEL): New.
19690         (free_rdg, stores_from_loop, remove_similar_memory_refs,
19691         rdg_defs_used_in_other_loops_p, have_similar_memory_accesses):
19692         Declared.
19693         (rdg_has_similar_memory_accesses): New.
19694         * tree-vect-analyze.c: Remove unused static decls.
19695         * lambda.h (dependence_level): New.
19696         * common.opt (ftree-loop-distribution): New.
19697         * tree-flow.h (mark_virtual_ops_in_bb,
19698         slpeel_tree_duplicate_loop_to_edge_cfg,
19699         rename_variables_in_loop): Declared.
19700         * Makefile.in (TREE_DATA_REF_H): Depend on tree-chrec.h.
19701         (OBJS-common): Add tree-loop-distribution.o.
19702         (tree-loop-distribution.o): New rule.
19703         * tree-cfg.c (mark_virtual_ops_in_bb): New.
19704         (mark_virtual_ops_in_region): Use mark_virtual_ops_in_bb.
19705         * passes.c (init_optimization_passes): Schedule pass_loop_distribution.
19707 2008-02-28  Joseph Myers  <joseph@codesourcery.com>
19709         PR target/33963
19710         * tree.c (handle_dll_attribute): Disallow TYPE_DECLs for types
19711         other than structures and unions.
19713 2008-02-28  Richard Guenther  <rguenther@suse.de>
19715         Revert:
19716         2008-02-26  Richard Guenther  <rguenther@suse.de>
19718         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
19719         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
19720         (lookup_decl_from_uid): Declare.
19721         (remove_decl_from_map): Likewise.
19722         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
19723         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
19724         (decl_for_uid_map): New global hashtable mapping DECL_UID
19725         to the decl tree.
19726         (init_ttree): Allocate it.
19727         (insert_decl_to_uid_decl_map): New helper function.
19728         (make_node_stat): Insert new decls into the map.
19729         (copy_node_stat): Likewise.
19730         (lookup_decl_from_uid): New function.
19731         (remove_decl_from_map): Likewise.
19732         (print_decl_for_uid_map_statistics): New helper.
19733         (dump_tree_statistics): Call it.
19735         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
19736         (referenced_var_iterator): Adjust.
19737         (FOR_EACH_REFERENCED_VAR): Adjust.
19738         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
19739         (num_referenced_vars): Adjust.
19740         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
19741         (first_referenced_var): Remove.
19742         (end_referenced_vars_p): Likewise.
19743         (next_referenced_var): Likewise.
19744         (referenced_var_iterator_set): New helper function.
19745         * tree-dfa.c (referenced_var_lookup): Adjust.
19746         (referenced_var_check_and_insert): Likewise.
19747         (remove_referenced_var): Likewise.
19748         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
19749         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
19750         (verify_call_clobbering): Likewise.
19751         (verify_memory_partitions): Likewise.
19752         (init_tree_ssa): Allocate bitmap instead of hashtable for
19753         referenced_vars.
19754         (delete_tree_ssa): Adjust.
19755         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
19756         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
19757         (compute_tag_properties): Likewise.
19758         (set_initial_properties): Likewise.
19759         (find_partition_for): Likewise.
19760         (update_reference_counts): Likewise.
19761         (dump_may_aliases_for): Likewise.
19762         * tree-ssa-operands.c (add_virtual_operand): Likewise.
19763         (add_call_clobber_ops): Likewise.
19764         (add_call_read_ops): Likewise.
19765         (get_asm_expr_operands): Likewise.
19766         * tree-into-ssa.c (dump_decl_set): Likewise.
19767         (update_ssa): Likewise.
19768         * tree-sra.c (scan_function): Likewise.
19769         (decide_instantiations): Likewise.
19770         (scalarize_parms): Likewise.
19771         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
19772         (dsa_named_for): Likewise.
19773         * tree-ssa-structalias.c (update_alias_info): Likewise.
19774         (merge_smts_into): Likewise.
19776 2008-02-27  David Daney  <ddaney@avtrex.com>
19778         PR target/34409
19779         * config/mips/iris.h (MIPS_DEBUGGING_INFO): Define.
19780         * config/mips/openbsd.h (MIPS_DEBUGGING_INFO): Same.
19781         * config/mips/sde.h (MIPS_DEBUGGING_INFO): Remove undef.
19782         * config/mips/vxworks.h (MIPS_DEBUGGING_INFO): Same.
19783         * config/mips/mips.h (MIPS_DEBUGGING_INFO): Remove define.
19785 2008-02-27  Uros Bizjak  <ubizjak@gmail.com>
19787         PR target/25477
19788         * config/darwin-ppc-ldouble-patch.def (BUILT_IN_NANL): Add.
19789         (BUILT_IN_NEXTTOWARD): Remove.
19790         (BUILT_IN_NEXTTOWARDF): Ditto.
19791         * config/darwin.c (darwin_patch_builtin): Use ACONCAT instead of
19792         alloca/strcpy/strcat.  Remove commented-out code.  Fix whitespace.
19794 2008-02-27  Tom Tromey  <tromey@redhat.com>
19796         * tree-dump.c (dequeue_and_dump) <FUNCTION_DECL>: Check
19797         DECL_SAVED_TREE, not DECL_LANG_SPECIFIC, when dumping body.
19799 2008-02-27  Jan Beulich  <jbeulich@novell.com>
19801         * c-decl.c (merge_decls): Use DECL_USER_ALIGN() on olddecl to
19802         update the respective field on newdecl.
19804 2008-02-27  Revital Eres  <eres@il.ibm.com>
19806         PR rtl-optimization/34999
19807         * bb-reorder.c (add_labels_and_missing_jumps): Do not handle
19808         crossing edges that ends with a call insn.
19809         (fix_up_fall_thru_edges): Handle crossing edges that ends with a
19810         call insn and clear the EDGE_CROSSING flag of the crossing edge
19811         when fixing fallthru edges.
19813 2008-02-27  Richard Guenther  <rguenther@suse.de>
19815         PR middle-end/35390
19816         * fold-const.c (fold_unary): Return the correct argument,
19817         converted to the result type.
19819 2008-02-27  Richard Guenther  <rguenther@suse.de>
19821         PR middle-end/34971
19822         * expr.c (expand_expr_real_1): Assert on rotates that operate
19823         on partial modes.
19824         * fold-const.c (fold_binary): Use the types precision, not the
19825         bitsize of the mode if folding rotate expressions.  Build rotates
19826         only for full modes.
19828 2008-02-27  Jakub Jelinek  <jakub@redhat.com>
19830         * c-ppoutput.c (scan_translation_unit): Handle CPP_PRAGMA
19831         and CPP_PRAGMA_EOL.
19832         * c-pragma.c (pragma_ns_name): New typedef.
19833         (registered_pp_pragmas): New variable.
19834         (c_pp_lookup_pragma): New function.
19835         (c_register_pragma_1): If flag_preprocess_only, do nothing
19836         for non-expanded pragmas, for expanded ones push pragma's
19837         namespace and name into registered_pp_pragmas vector.
19838         (c_invoke_pragma_handler): Register OpenMP pragmas even when
19839         flag_preprocess_only, don't register GCC pch_preprocess
19840         pragma if flag_preprocess_only.
19841         * c-opts.c (c_common_init): Call init_pragma even if
19842         flag_preprocess_only.
19843         * c-pragma.c (c_pp_lookup_pragma): New prototype.
19844         * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Don't call
19845         cpp_register_pragma if flag_preprocess_only.
19847 2008-02-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19849         PR c/28800
19850         * c-parser.c (c_parser_translation_unit): Warn for empty
19851         translation unit, not empty source file.
19853 2008-02-26  Paul Brook  <paul@codesourcery.com>
19855         * config/arm/arm.c (thumb_set_frame_pointer): Ensure SP is first
19856         operand for Thumb-2.
19857         * config/arm/arm.h (reg_class): Add CORE_REGS.
19858         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Ditto.
19859         (BASE_REG_CLASS): Use CORE_REGS.
19860         (PREFERRED_RELOAD_CLASS): Add STACK_REG.
19861         (REGNO_MODE_OK_FOR_REG_BASE_P): Use REGNO_MODE_OK_FOR_BASE_P.
19862         (REGNO_OK_FOR_INDEX_P): Exclude SP.
19863         (ARM_REG_OK_FOR_INDEX_P): Always define.  Use
19864         ARM_REGNO_OK_FOR_INDEX_P.
19865         (ARM_PRINT_OPERAND_ADDRESS): Swap operands for [reg, sp].
19866         * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn,
19867         arm_movsi_insn, thumb1_movsi_insni, stack_tie): Add "k" alternatives.
19868         (ldm/stm peepholes): Ditto.
19869         * config/arm/thumb2.md (thumb2_movdi): Add "k" alternatives.
19870         * config/arm/vfp.md (arm_movsi_vfp, thumb2_movsi_vfp): Ditto.
19871         * config/arm/iwmmxt.md (iwmmxt_movsi_insn): Ditto.
19872         * config/arm/constraints.md: Enable "k" constraint on ARM.
19874 2008-02-27  Ben Elliston  <bje@au.ibm.com>
19876         * config/rs6000/rs6000.c: Annotate cache line size field in all
19877         instances of struct processor_costs.
19879 2008-02-26  David Edelsohn  <edelsohn@gnu.org>
19881         * dbgcnt.def (cfg_cleanup, cprop1, cprop2, dce_fast, dce_ud, dse1,
19882         dse2, gcse, if_conversion, if_after_combine, if_after_reload,
19883         jump_bypass): New counters.
19884         * cfgcleanup.c (cleanup_cfg): Add dbg_cnt.
19885         * dce.c (gate_ud_dce): Same.
19886         (gate_fast_dce): Same.
19887         * dse.c (gate_dse1): New function.
19888         (gate_dse2): New function.
19889         (gate_dse): Merge results of new gate functions.
19890         * gcse.c (gcse_main): Bracket cprop1 and cprop2 with dbg_cnt.
19891         (gate_handle_jump_bypass): Add dbg_cnt.
19892         (gate_handle_gcse): Add dbg_cnt.
19893         * ifcvt.c (gate_handle_if_conversion): Same.
19894         (gate_handle_if_after_combine): Same.
19895         (gate_handle_if_after_reload): Same.
19896         * Makefile.in: Add DBGCNT_H to cfgcleanup.o and ifcvt.o.
19898 2008-02-26  Edmar Wienskoski  <edmar@freescale.com>
19900         * config/rs6000/rs6000.c (processor_costs): Update e300 cache
19901         line sizes.
19902         * doc/invoke.texi: Add e300c2 and e300c3 to list of cpus.
19904 2008-02-26  Jason Merrill  <jason@redhat.com>
19906         PR c++/35315
19907         * attribs.c (decl_attributes): Leave ATTR_FLAG_TYPE_IN_PLACE
19908         alone if it's the naming decl for the type's main variant.
19910 2008-02-26  Tom Tromey  <tromey@redhat.com>
19912         * system.h (USE_MAPPED_LOCATION): Poison.
19913         * Makefile.in (GTFILES): Put CPP_ID_DATA_H first.
19914         * tree-cfg.c (make_cond_expr_edges): Remove old location code.
19915         (make_goto_expr_edges): Likewise.
19916         (remove_bb): Likewise.
19917         (execute_warn_function_return): Likewise.
19918         * basic-block.h (struct edge_def) <goto_locus>: Change type to
19919         location_t.
19920         * c-common.c (fname_decl): Remove old location code.
19921         * tree-vect-transform.c (vect_finish_stmt_generation): Remove old
19922         location code.
19923         * rtl.h (ASM_OPERANDS_SOURCE_LOCATION): Remove old-location
19924         variant.
19925         (ASM_INPUT_SOURCE_LOCATION): Likewise.
19926         (gen_rtx_ASM_INPUT): Likewise.
19927         (gen_rtx_ASM_INPUT_loc): Likewise.
19928         (get_rtx_asm_OPERANDS): Remove.
19929         * cfglayout.c (insn_locators_alloc): Remove old location code.
19930         (set_curr_insn_source_location): Likewise.
19931         (curr_insn_locator): Likewise.
19932         * print-tree.c (print_node): Remove old location code.
19933         * tree-mudflap.c (mf_varname_tree): Remove old location code.
19934         (mf_file_function_line_tree): Remove test of USE_MAPPED_LOCATION.
19935         * cfgexpand.c (expand_gimple_cond_expr): Don't use
19936         location_from_locus.
19937         (construct_exit_block): Remove old location code.
19938         * emit-rtl.c (force_next_line_note): Remove old location code.
19939         * profile.c (branch_prob): Remove old location code.
19940         * tree-vectorizer.h (LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE,
19941         LOC_LINE): Remove old-location variants.
19942         * langhooks.c (lhd_print_error_function): Remove old location
19943         code.
19944         * configure, config.in: Rebuilt.
19945         * configure.ac (--enable-mapped-location): Remove.
19946         * c-decl.c (c_init_decl_processing): Remove old location code.
19947         (finish_function): Likewise.
19948         * recog.c (decode_asm_operands): Remove old location code.
19949         * c-pch.c (c_common_read_pch): Remove old location code.
19950         * rtl.def (ASM_INPUT, ASM_OPERANDS): Remove old location
19951         variants.
19952         * gimple-low.c (lower_function_body): Remove old location code.
19953         * toplev.c (unknown_location): Remove.
19954         (push_srcloc): Remove old-location variant.
19955         (process_options): Remove old location code.
19956         (lang_dependent_init): Likewise.
19957         * input.h (UNKNOWN_LOCATION): Move definition.
19958         (location_t): Undeprecate.
19959         (source_locus): Remove.
19960         (location_from_locus): Remove.
19961         (struct location_s): Remove.
19962         Remove all old-location code.
19963         (input_line, input_filename): Remove.
19964         * final.c (final_scan_insn): Remove old location code.
19965         * diagnostic.c (diagnostic_build_prefix): Remove
19966         USE_MAPPED_LOCATION test.
19967         * tree.h (gimple_stmt) <locus>: Now a location_t.
19968         (tree_exp) <locus>: Likewise.
19969         (DECL_IS_BUILTIN): Remove old-location variant.
19970         (annotate_with_file_line, annotate_with_locus): Likewise.
19971         (expr_locus, set_expr_locus): Update.
19972         * tree.c (build1_stat): Remove old location code.
19973         (last_annotated_node): Remove.
19974         (annotate_with_file_line): Remove old-location variant.
19975         (annotate_with_locus): Likewise.
19976         (expr_location): Remove old location code.
19977         (set_expr_location): Likewise.
19978         (expr_has_location): Likewise.
19979         (expr_locus): Likewise.
19980         (set_expr_locus): Likewise.
19981         (expr_filename): Don't use location_from_locus.
19982         (expr_lineno): Likewise.
19983         * rtl-error.c (location_for_asm): Remove old location code.
19984         * c-lex.c (cb_line_change): Remove old location code.
19985         (fe_file_change): Likewise.
19986         (cb_def_pragma): Likewise.
19987         (c_lex_with_flags): Likewise.
19988         * gengtype.c (do_typedef): Don't special-case location types.
19989         (define_location_structures): Remove.
19990         (main): Don't call define_location_structures.
19991         * tree-pretty-print.c (dump_implicit_edges): Remove old location
19992         code.
19994 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
19996         PR 26264
19997         * builtins.def (BUILT_IN_STDARG_START): Remove.
19998         * builtins.c (expand_builtin): Remove BUILT_IN_STDARG_START.
19999         * tree-stdarg.c (execute_optimize_stdarg): Likewise.
20000         * tree-inline.c (inline_forbidden_p_1): Likewise.
20002 2008-02-26  Richard Guenther  <rguenther@suse.de>
20004         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
20005         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
20006         (lookup_decl_from_uid): Declare.
20007         (remove_decl_from_map): Likewise.
20008         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
20009         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
20010         (decl_for_uid_map): New global hashtable mapping DECL_UID
20011         to the decl tree.
20012         (init_ttree): Allocate it.
20013         (insert_decl_to_uid_decl_map): New helper function.
20014         (make_node_stat): Insert new decls into the map.
20015         (copy_node_stat): Likewise.
20016         (lookup_decl_from_uid): New function.
20017         (remove_decl_from_map): Likewise.
20018         (print_decl_for_uid_map_statistics): New helper.
20019         (dump_tree_statistics): Call it.
20021         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
20022         (referenced_var_iterator): Adjust.
20023         (FOR_EACH_REFERENCED_VAR): Adjust.
20024         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
20025         (num_referenced_vars): Adjust.
20026         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
20027         (first_referenced_var): Remove.
20028         (end_referenced_vars_p): Likewise.
20029         (next_referenced_var): Likewise.
20030         (referenced_var_iterator_set): New helper function.
20031         * tree-dfa.c (referenced_var_lookup): Adjust.
20032         (referenced_var_check_and_insert): Likewise.
20033         (remove_referenced_var): Likewise.
20034         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
20035         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
20036         (verify_call_clobbering): Likewise.
20037         (verify_memory_partitions): Likewise.
20038         (init_tree_ssa): Allocate bitmap instead of hashtable for
20039         referenced_vars.
20040         (delete_tree_ssa): Adjust.
20041         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
20042         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
20043         (compute_tag_properties): Likewise.
20044         (set_initial_properties): Likewise.
20045         (find_partition_for): Likewise.
20046         (update_reference_counts): Likewise.
20047         (dump_may_aliases_for): Likewise.
20048         * tree-ssa-operands.c (add_virtual_operand): Likewise.
20049         (add_call_clobber_ops): Likewise.
20050         (add_call_read_ops): Likewise.
20051         (get_asm_expr_operands): Likewise.
20052         * tree-into-ssa.c (dump_decl_set): Likewise.
20053         (update_ssa): Likewise.
20054         * tree-sra.c (scan_function): Likewise.
20055         (decide_instantiations): Likewise.
20056         (scalarize_parms): Likewise.
20057         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
20058         (dsa_named_for): Likewise.
20059         * tree-ssa-structalias.c (update_alias_info): Likewise.
20060         (merge_smts_into): Likewise.
20062 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
20064         PR 34351
20065         * doc/invoke.texi (-Wall): Add -Wvolatile-register-var.
20066         * c-opts.c (c_common_handle_option): Wall enables
20067         Wvolatile-register-var.
20068         * common.opt: Move Wvolatile-register-var to...
20069         * c.opt: ...here.
20071 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
20073         * common.opt (Wlarger-than=): New.
20074         * doc/invoke.texi (Warning Options): Replace -Wlarger-than- with
20075         -Wlarger-than=.
20076         * opts.c (common_handle_option): Handle -Wlarger-than=.
20077         * optc-gen.awk: Likewise.
20078         * opth-gen.awk: Likewise.
20079         * stor-layout.c (layout_decl): Use -Wlarger-than= for warning.
20080         * tree-optimize.c (tree_rest_of_compilation): Likewise.
20082 2008-02-26  Manuel Lopez-Ibanez <manu@gcc.gnu.org>
20084         * c-common.c (match_case_to_enum_1): Add appropriate
20085         OPT_W* parameter to warning.
20086         (c_do_switch_warnings): Likewise.
20087         * c-typeck.c (warning_init): Add one more parameter following
20088         'warning' function.
20089         (push_init_level): Update call to warning_init.
20090         (pop_init_level): Likewise.
20091         (add_pending_init): Likewise.
20092         (output_init_element: Likewise.
20094 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
20096         PR 28322
20097         * toplev.c (toplev_main): If there are warnings or error, print
20098         errors for ignored options.
20099         * opts.c (ignored_options): New static variable.
20100         (postpone_unknown_option_error): New.
20101         (print_ignored_options): New.
20102         (handle_option): Postpone errors for unknown -Wno-* options.
20103         * opts.h (print_ignored_options): Declare.
20105 2008-02-25  Richard Sandiford  <rsandifo@nildram.co.uk>
20107         * config/mips/mips.md (loadgp_blockage, blockage): Change type
20108         to "ghost".
20110 2008-02-25  Richard Guenther  <rguenther@suse.de>
20112         Revert:
20113         2008-02-25  Richard Guenther  <rguenther@suse.de>
20115         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
20116         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
20117         (lookup_decl_from_uid): Declare.
20118         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
20119         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
20120         (decl_for_uid_map): New global hashtable mapping DECL_UID
20121         to the decl tree.
20122         (init_ttree): Allocate it.
20123         (insert_decl_to_uid_decl_map): New helper function.
20124         (make_node_stat): Insert new decls into the map.
20125         (copy_node_stat): Likewise.
20126         (lookup_decl_from_uid): New function.
20127         (print_decl_for_uid_map_statistics): New helper.
20128         (dump_tree_statistics): Call it.
20130         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
20131         (referenced_var_iterator): Adjust.
20132         (FOR_EACH_REFERENCED_VAR): Adjust.
20133         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
20134         (num_referenced_vars): Adjust.
20135         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
20136         (first_referenced_var): Remove.
20137         (end_referenced_vars_p): Likewise.
20138         (next_referenced_var): Likewise.
20139         (referenced_var_iterator_set): New helper function.
20140         * tree-dfa.c (referenced_var_lookup): Adjust.
20141         (referenced_var_check_and_insert): Likewise.
20142         (remove_referenced_var): Likewise.
20143         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
20144         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
20145         (verify_call_clobbering): Likewise.
20146         (verify_memory_partitions): Likewise.
20147         (init_tree_ssa): Allocate bitmap instead of hashtable for
20148         referenced_vars.
20149         (delete_tree_ssa): Adjust.
20150         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
20151         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
20152         (compute_tag_properties): Likewise.
20153         (set_initial_properties): Likewise.
20154         (find_partition_for): Likewise.
20155         (update_reference_counts): Likewise.
20156         (dump_may_aliases_for): Likewise.
20157         * tree-ssa-operands.c (add_virtual_operand): Likewise.
20158         (add_call_clobber_ops): Likewise.
20159         (add_call_read_ops): Likewise.
20160         (get_asm_expr_operands): Likewise.
20161         * tree-into-ssa.c (dump_decl_set): Likewise.
20162         (update_ssa): Likewise.
20163         * tree-sra.c (scan_function): Likewise.
20164         (decide_instantiations): Likewise.
20165         (scalarize_parms): Likewise.
20166         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
20167         (dsa_named_for): Likewise.
20168         * tree-ssa-structalias.c (update_alias_info): Likewise.
20169         (merge_smts_into): Likewise.
20171 2008-02-25  Janne Blomqvist  <jb@gcc.gnu.org>
20173         PR fortran/29549
20174         * doc/invoke.texi (-fcx-limited-range): Document new option.
20175         * toplev.c (process_options): Handle -fcx-fortran-rules.
20176         * common.opt: Add documentation for -fcx-fortran-rules.
20178 2008-02-25  Janne Blomqvist  <jb@gcc.gnu.org>
20180         PR c/35162
20181         * doc/invoke.texi (-fcx-limited-range): Correct to be in line with
20182         actual behaviour and C99.
20184 2008-02-26  Ben Elliston  <bje@au.ibm.com>
20186         * config/rs6000/rs6000.h (ASM_CPU_POWER5_SPEC): Define.
20187         (ASM_CPU_POWER6_SPEC): Likewise.
20188         (ASM_CPU_SPEC): Pass %(asm_cpu_power5) for -mcpu=power5.
20189         Likewise, pass %(asm_cpu_power6) for -mcpu=power6.
20190         (EXTRA_SPECS): Add asm_cpu_power5, asm_cpu_power6 spec strings.
20192 2008-02-25  Richard Guenther  <rguenther@suse.de>
20194         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
20195         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
20196         (lookup_decl_from_uid): Declare.
20197         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
20198         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
20199         (decl_for_uid_map): New global hashtable mapping DECL_UID
20200         to the decl tree.
20201         (init_ttree): Allocate it.
20202         (insert_decl_to_uid_decl_map): New helper function.
20203         (make_node_stat): Insert new decls into the map.
20204         (copy_node_stat): Likewise.
20205         (lookup_decl_from_uid): New function.
20206         (print_decl_for_uid_map_statistics): New helper.
20207         (dump_tree_statistics): Call it.
20209         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
20210         (referenced_var_iterator): Adjust.
20211         (FOR_EACH_REFERENCED_VAR): Adjust.
20212         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
20213         (num_referenced_vars): Adjust.
20214         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
20215         (first_referenced_var): Remove.
20216         (end_referenced_vars_p): Likewise.
20217         (next_referenced_var): Likewise.
20218         (referenced_var_iterator_set): New helper function.
20219         * tree-dfa.c (referenced_var_lookup): Adjust.
20220         (referenced_var_check_and_insert): Likewise.
20221         (remove_referenced_var): Likewise.
20222         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
20223         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
20224         (verify_call_clobbering): Likewise.
20225         (verify_memory_partitions): Likewise.
20226         (init_tree_ssa): Allocate bitmap instead of hashtable for
20227         referenced_vars.
20228         (delete_tree_ssa): Adjust.
20229         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
20230         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
20231         (compute_tag_properties): Likewise.
20232         (set_initial_properties): Likewise.
20233         (find_partition_for): Likewise.
20234         (update_reference_counts): Likewise.
20235         (dump_may_aliases_for): Likewise.
20236         * tree-ssa-operands.c (add_virtual_operand): Likewise.
20237         (add_call_clobber_ops): Likewise.
20238         (add_call_read_ops): Likewise.
20239         (get_asm_expr_operands): Likewise.
20240         * tree-into-ssa.c (dump_decl_set): Likewise.
20241         (update_ssa): Likewise.
20242         * tree-sra.c (scan_function): Likewise.
20243         (decide_instantiations): Likewise.
20244         (scalarize_parms): Likewise.
20245         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
20246         (dsa_named_for): Likewise.
20247         * tree-ssa-structalias.c (update_alias_info): Likewise.
20248         (merge_smts_into): Likewise.
20250 2008-02-25  Andreas Krebbel  <krebbel1@de.ibm.com>
20252         PR target/35258
20253         * cse.c (cse_insn): Avoid creation of overlapping MEMs.
20254         * alias.c (nonoverlapping_memrefs_p): Export for use in other modules.
20255         * alias.h (nonoverlapping_memrefs_p): Likewise.
20257 2008-02-25  Jan Beulich  <jbeulich@novell.com>
20259         * Makefile.in: Also prefix uses of crt0.o and mcrt0.o with $(T).
20260         * config/i386/netware-libgcc.exp: Add __bswap?i2,
20261         __emultls_get_address, __emultls_register_common,
20262         __floatundi?f, and _Unwind_GetIPInfo.
20263         * config/i386/netware.c (gen_stdcall_or_fastcall_decoration):
20264         Sync with config/i386/winnt.c:gen_stdcall_or_fastcall_suffix().
20265         (gen_regparm_prefix): Likewise.
20266         (i386_nlm_encode_section_info): Sync with
20267         config/i386/winnt.c:i386_pe_encode_section_info().
20268         (i386_nlm_maybe_mangle_decl_assembler_name): New.
20269         i386_nlm_mangle_decl_assembler_name): New.
20270         (netware_override_options): New.
20271         * config/i386/netware.h (netware_override_options): Declare.
20272         (OVERRIDE_OPTIONS): Re-define to netware_override_options.
20273         (i386_nlm_mangle_decl_assembler_name): Declare.
20274         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Define.
20276 2008-02-25  Ben Elliston  <bje@au.ibm.com>
20278         PR other/32948
20279         * c-decl.c (grokdeclarator): Remove unused local variables
20280         `typedef_type' and `type_as_written'.
20281         * bb-reorder.c
20282         (find_rarely_executed_basic_blocks_and_crossing_edges): Remove
20283         unused local variable `has_hot_blocks'.
20284         (fix_crossing_conditional_branches): Remove unused local variable
20285         `prev_bb'.
20287 2008-02-25  Uros Bizjak  <ubizjak@gmail.com>
20289         PR middle-end/19984
20290         * builtins.def (BUILT_IN_NAN): Define as c99 builtin
20291         using DEF_C99_BUILTIN.
20292         (BUILT_IN_NANF): Ditto.
20293         (BUILT_IN_NANL): Ditto.
20295 2008-02-25  Ayal Zaks  <zaks@il.ibm.com>
20296             Revital Eres  <eres@il.ibm.com>
20298         * modulo-sched.c (calculate_must_precede_follow): Address TODO
20299         regarding the order of two dependent insns in the same row.
20301 2008-02-25  Eric Botcazou  <ebotcazou@adacore.com>
20303         * stor-layout.c (layout_decl): Do not bump the alignment of a
20304         bit-field to more than byte alignment if it is packed.
20306 2008-02-24  David Edelsohn  <edelsohn@gnu.org>
20308         * config/rs6000/rs6000.c (processor_costs): Add cache costs for
20309         e300c2 and e300c3.
20311 2008-02-24  Diego Novillo  <dnovillo@google.com>
20313         http://gcc.gnu.org/ml/gcc-patches/2008-02/msg01094.html
20315         PR 33738
20316         * tree-vrp.c (vrp_evaluate_conditional): With
20317         -Wtype-limits, emit a warning when comparing against a
20318         constant outside the natural range of OP0's type.
20319         * c.opt (Wtype-limits): Move ...
20320         * common.opt (Wtype-limits): ... here.
20322 2008-02-24  Edmar Wienskoski  <edmar@freescale.com>
20324         * config.gcc (powerpc*-*-*): Add new cores e300c2 and e300c3.
20325         * config/rs6000/e300c2c3.md: New file.
20326         * config/rs6000/rs6000.c (processor_costs): Add new costs for
20327         e300c2 and e300c3.
20328         (rs6000_override_options): Add e300c2 and e300c3 cases to
20329         processor_target_table. Do not allow usage of Altivec or Spe
20330         with e300 cores. Initialize rs6000_cost for e300c2 and e300c3.
20331         (rs6000_issue_rate): Set issue rate for e300c2 and e300c3.
20332         * config/rs6000/rs6000.h (processor_type): Add
20333         PROCESSOR_PPCE300C2 and PROCESSOR_PPCE300C3.
20334         (ASM_CPU_SPEC): Add e300c2 and e300c3.
20335         * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce300c2
20336         and ppce300c3. Include e300c2c3.md.
20338 2008-02-23  David Edelsohn  <edelsohn@gnu.org>
20340         * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Use STRICT_ALIGNMENT
20341         instead of TARGET_STRICT_ALIGN.
20343 2008-02-23  Joseph Myers  <joseph@codesourcery.com>
20345         * explow.c (memory_address): Assert that the generated address is
20346         valid.
20348 2008-02-23  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
20350         PR target/25477
20351         * config/darwin-protos.h: Add darwin_patch_builtins prototype.
20352         * config/darwin-ppc-ldouble-patch.def: New file.
20353         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): New macro.
20354         * config/rs6000/rs6000.c (rs6000_init_builtins): Call
20355         SUBTARGET_INIT_BUILTINS if defined.
20356         * config/darwin.c (darwin_patch_builtin, darwin_patch_builtins):
20357         New functions.
20359 2008-02-23  Andrew Pinski  <andrew_pinski@playstation.sony.com>
20361         PR rtl-opt/33512
20362         * simplify-rtx.c (simplify_binary_operation_1): Add simplification
20363         of (and X (ior (not X) Y) and (and (ior (not X) Y) X).
20365 2008-02-23  Andrew Pinski  <andrew_pinski@playstation.sony.com>
20367         PR pch/35027
20368         * c-pch.c (c_common_valid_pch): Make the "too short to be a PCH
20369         file" warning condtional on -Winvalid-PCH.
20371 2008-02-23  Daniel Jacobowitz  <dan@codesourcery.com>
20373         * expmed.c (extract_bit_field): Always use adjust_address for MEM.
20375 2008-02-23  Uros Bizjak  <ubizjak@gmail.com>
20377         PR target/22076
20378         PR target/34256
20379         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use "!y" to
20380         prevent reload from using MMX registers.
20381         (*mov<mode>_internal): Ditto.
20382         (*movv2sf_internal_rex64): Ditto.
20383         (*movv2sf_internal): Ditto.
20385 2008-02-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20387         PR documentation/31569
20388         * doc/install.texi2html: Use makeinfo --no-number-sections.
20390 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
20392         * config/rs6000/rs6000.c (rs6000_legitimize_address): Check to
20393         ensure that we can address an entire entity > 8 bytes.  Don't
20394         generate reg+reg addressing for such data.
20396 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
20398         * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Don't overalign
20399         strings when optimizing for size, unless the target cares about
20400         alignment.
20402 2008-02-22  Tom Tromey  <tromey@redhat.com>
20404         * regclass.c (current_pass): Remove declaration.
20406 2008-02-22  Anatoly Sokolov <aesok@post.ru>
20408         * config/avr/libgcc.S (__RAMPZ__): Define.
20409         (__do_copy_data): Add for devices with 128KB code memory.
20411 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
20413         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
20414         Use spe_abi.
20415         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Likewise.
20417 2008-02-22  Hans-Peter Nilsson  <hp@axis.com>
20419         * config/cris/cris.h (REG_CLASS_FROM_LETTER): Recognize 'b' for
20420         GENNONACR_REGS.
20422 2008-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20424         PR c/19999
20425         * c-typeck.c (build_binary_op): Warn about floating point
20426         comparisons if FLOAT_TYPE_P, not only for REAL_TYPE.
20428 2008-02-21  Janis Johnson  <janis187@us.ibm.com>
20430         PR target/34526
20431         * config/rs6000/rs6000.c (rs6000_altivec_abi): Clarify comment.
20432         (rs6000_explicit_options): Split abi into spe_abi and altivec_abi,
20433         add vrsave.
20434         (rs6000_override_options): Set altivec_abi as default, not override,
20435         for 64-bit GNU/Linux; for 32-bit GNU/Linux default to altivec_abi for
20436         TARGET_ALTIVEC; default to TARGET_ALTIVEC_VRSAVE when AltiVec ABI
20437         is used; use new member spe_abi.
20438         (rs6000_handle_option): Set rs6000_explicit_options.vrsave; use
20439         spe_abi and altivec_abi.
20441 2008-02-22  Tomas Bily  <tbily@suse.cz>
20443         * tree-vectorizer.c (vect_is_simple_reduction): Fix comment typo.
20445 2008-02-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20447         PR bootstrap/35273
20448         * config.build (build_file_translate): Set to `CMD //c' only if
20449         it works.
20450         * Makefile.in (build_file_translate): Improve comment.
20452 2008-02-21  Jan Hubicka  <jh@suse.cz>
20454         * predict.def (PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL,
20455         PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL, PRED_CALL,
20456         PRED_TREE_EARLY_RETURN, PRED_NULL_RETURN): Update.
20458 2008-02-21  Michael Matz  <matz@suse.de>
20460         PR target/35264
20461         * config/i386/i386.c (ix86_expand_branch): Add missing breaks.
20463 2008-02-21  Uros Bizjak  <ubizjak@gmail.com>
20465         * config/i386/i386.md (mov<mode>cc): Macroize expander from movsfcc,
20466         movdfcc and movxfcc using X87MODEF mode iterator and SSE_FLOAT_MODE_P
20467         as insn constraint.
20468         * config/i386/sse.md (<sse>_movup<ssemodesuffixf2c>): Macroize insn
20469         from sse_movups adn sse2_movupd using SSEMODEF2P mode iterator and
20470         SSE_VEC_FLOAT_MODE_P as insn constraint.
20471         (<sse>_movmskp<ssemodesuffixf2c>): Ditto from similar patterns.
20472         (sse4a_movnt<mode>): Macroize insn from sse4a_movntsf and
20473         sse4a_movntdf using MODEF mode iterator.
20474         (sse4a_vmmovnt<mode>): Macroize insn form sse4a_vmmovntv2df and
20475         sse4a_vmmovntv4sf using SSEMODEF2P mode iterator.
20476         (sse4_1_blendp<ssemodesuffixf2c>): Ditto from similar patterns.
20477         (sse4_1_blendvp<ssemodesuffixf2c>): Ditto.
20478         (sse4_1_dpp<ssemodesuffixf2c>): Ditto.
20479         (sse4_1_roundp<ssemodesuffixf2c>): Ditto.
20480         (sse4_1_rounds<ssemodesuffixf2c>): Ditto.
20482 2008-02-21  Richard Guenther  <rguenther@suse.de>
20484         * tree.def (PAREN_EXPR): New tree code.
20485         * fold-const.c (fold_unary): Remove PAREN_EXPR around constants
20486         and PAREN_EXPR.
20487         * tree-pretty-print.c (dump_generic_node): Handle PAREN_EXPR.
20488         * expr.c (expand_expr_real_1): Likewise.
20489         * tree-inline.c (estimate_num_insns_1): Likewise.
20490         * tree-complex.c (expand_complex_move): Likewise.
20491         * tree-vectorizer.c (vect_is_simple_use): Treat PAREN_EXPR (x)
20492         as plain x.
20494 2008-02-20  Kaz Kojima  <kkojima@gcc.gnu.org>
20496         PR target/35225
20497         * config/sh/sh.c (find_barrier): Don't go past 'from' argument.
20499 2008-02-20  Kaz Kojima  <kkojima@gcc.gnu.org>
20501         PR target/35190
20502         * config/sh/sh.md (jump_compact): Disable for crossing jumps.
20504         * config/sh/sh.c (find_barrier): Don't go past
20505         NOTE_INSN_SWITCH_TEXT_SECTIONS note.
20507 2008-02-20  DJ Delorie  <dj@redhat.com>
20509         * config/h8300/h8300.md (insv): Force source operand to be a register.
20511         * config/h8300/h8300.c (h8300_expand_epilogue): Emit return insn
20512         as a jump, not as a plain insn.
20514 2008-02-20  Seongbae Park <seongbae.park@gmail.com>
20516         * doc/invoke.texi (Warning Options): Add new option
20517         -Wframe-larger-than=.
20518         (-Wframe-larger-than): Document.
20520         * flags.h (warn_frame_larger_than, frame_larger_than_size):
20521         Add declarations for new option variables.
20523         * final.c (final_start_function): Check the frame size
20524         before emission and issue a Wframe-larger-than warning.
20526         * opts.c (warn_frame_larger_than, frame_larger_than_size):
20527         Add definitions for new option variables.
20528         (common_handle_option): Handle new option OPT_Wframe_larger_than_.
20530         * common.opt (Wframe-larger-than=): New option.
20532 2008-02-20  Uros Bizjak  <ubizjak@gmail.com>
20534         * config/i386/sse.md (<sse>_vmmul<mode>3): Fix typo in asm template.
20535         (<sse>_div<mode>3): Ditto.
20536         (<sse>_vmdiv<mode>3): Ditto.
20537         (<sse>_vmsqrt<mode>2): Ditto.
20538         (*smax<mode>3): Ditto.
20539         (sse5_frcz<mode>2): Ditto.
20540         (sse5_vmfrcz<mode>2): Ditto.  Use TARGET_SSE5 instead of TARGET_ROUND
20541         as insn constraint.
20543 2008-02-20  Richard Guenther  <rguenther@suse.de>
20545         PR middle-end/35265
20546         * builtins.c (validate_arg): If we want an INTEGER_TYPE,
20547         be happy with INTEGRAL_TYPE_P.
20549 2008-02-20  Richard Guenther  <rguenther@suse.de>
20551         * fold-const.c (split_tree): Associate floatig-point expressions
20552         if flag_associative_math is set.
20554 2008-02-20  Richard Guenther  <rguenther@suse.de>
20556         * tree.h (fold_real_zero_addition_p): Declare.
20557         * fold-const.c (fold_real_zero_addition_p): Export.
20558         * tree-ssa-reassoc.c (eliminate_using_constants): Also handle
20559         floating-point operations with zero and one.
20561 2008-02-20  Paolo Bonzini  <bonzini@gnu.org>
20563         * doc/install.texi: Correct references to CFLAGS, replacing them
20564         with BOOT_CFLAGS.  Document flags used during bootstrap for
20565         target libraries.
20567 2008-02-20  Uros Bizjak  <ubizjak@gmail.com>
20569         * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): New define.
20570         * config/i386/i386.md (*sse_setcc<mode>): Macroize from *sse_setccsf
20571         and *sse_setccdf using MODEF mode iterator and SSE_FLOAT_MODE_P as
20572         insn constraint.
20573         (smin<mode>3): Ditto from similar patterns.
20574         (smax<mode>3): Ditto.
20575         (*ieee_smin<mode>3): Ditto.
20576         (*ieee_smax<mode>3): Ditto.
20577         * config/i386/sse.md (sse): New mode attribute.
20578         (mov<mode>): Macroize expander from movv4sf and movv2df using
20579         SSEMODEF2P mode iterator.
20580         (<sse>_movnt<mode>): Ditto from similar patterns. Use
20581         SSE_VEC_FLOAT_MODE_P as insn constraint.
20582         (storent<mode>): Ditto.
20583         (storent<mode>): Macroize expander from storentsf and storentdf using
20584         MODEF mode iterator.
20585         (neg<mode>2): Macroize from negv4sf2 and negv2df2 using SSEMODEF2P
20586         mode iterator and SSE_VEC_FLOAT_MODE_P as insn constraint.
20587         (abs<mode>2): Ditto from similar patterns.
20588         (add<mode>3, *add<mode>3, <sse>_vmadd<mode>3): Ditto.
20589         (sub<mode>3, *sub<mode>3, <sse>_vmsub<mode>3): Ditto.
20590         (<sse>_div<mode>3, <sse>_vmdiv<mode>3): Ditto.
20591         (<sse>_vmsqrt<mode>2): Ditto.
20592         (smin<mode>3, *smin<mode>3_finite, *smin<mode>3)
20593         (<sse>_vmsmin<mode>3, *ieee_smin<mode>3): Ditto.
20594         (smax<mode>3, *smax<mode>3_finite, *smax<mode>3)
20595         (<sse>_vmsmax<mode>3, *ieee_smax<mode>3): Ditto.
20596         (<sse>_maskcmp<mode>3): Macroize from sse_maskcmpv4sf3,
20597         sse_maskcmpsf3, sse2_maskcmpv2df3 and sse2_maskcmpdf3 using SSEMODEF4
20598         mode iterator. Use SSE_FLOAT_MODE_P with SSE_VEC_FLOAT_MODE_P as
20599         insn constraint.
20600         (<sse>_comi): Macroize from sse_comi and sse2_comi using MODEF mode
20601         iterator and SSE_FLOAT_MODE_P as insn constraint.
20602         (<sse>_ucomi): Ditto from similar patterns.
20603         (<sse>_vmmaskcmp<mode>3): Macroize from sse_vmmaskcmpv4sf3 and
20604         sse2_vmmaskcmpv2df3 using SSEMODEF2P mode iterator and
20605         SSE_VEC_FLOAT_MODE_P as insn constraint.
20606         (vcond<mode>): Ditto from similar patterns.
20607         (and<mode>3, *and<mode>3): Ditto.
20608         (<sse>_nand<mode>3): Ditto.
20609         (ior<mode>3, *ior<mode>3): Ditto.
20610         (xor<mode>3, *xor<mode>3): Ditto.
20611         (*and<mode>3): Macroize from *andsf3 and *anddf3 using MODEF mode
20612         iterator and SSE_FLOAT_MODE_P as insn constraint.
20613         (*nand<mode>3): Ditto from similar patterns.
20614         (*ior<mode>3): Ditto.
20615         (*xor<mode>3): Ditto.
20617 2008-02-20  Ira Rosen  <irar@il.ibm.com>
20619         * config/spu/spu.md (vec_unpacku_hi_v8hi, vec_unpacku_lo_v8hi,
20620         vec_unpacks_hi_v8hi, vec_unpacks_lo_v8hi, vec_unpacku_hi_v16qi,
20621         vec_unpacku_lo_v16qi, vec_unpacks_lo_v16qi): Implement.
20623 2008-02-19  Jan Hubicka  <jh@suse.cz>
20625         * predict.c (tree_bb_level_predictions): Remove variable next
20626         mistakely introduced by previous commit.
20628 2008-02-19  Jan Hubicka  <jh@suse.cz>
20630         * predict.c (predict_paths_leading_to): Rewrite.
20631         (predict_paths_for_bb): New.
20632         (tree_bb_level_predictions): Update call of predict_paths_leading_to.
20634 2008-02-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20636         PR bootstrap/35218
20637         * Makefile.in (build_file_translate): New.
20638         (gcc-vers.texi): Use it for translating $(abs_srcdir).
20639         * config.build (build_file_translate): Set to `CMD //c' on MinGW.
20640         * configure.ac (build_file_translate): Substitute it.
20641         * configure: Regenerate.
20643 2008-02-19  Jan Hubicka  <jh@suse.cz>
20645         PR rtl-optimization/34408
20646         * see.c (see_def_extension_not_merged): Copy subreg so we don't have
20647         invalid sharing.
20649 2008-02-19  Jan Hubicka  <jh@suse.cz>
20651         PR middle-end/28779
20652         * tree-inline.c (estimate_num_insns_1): Fix counting of cost of
20653         call_expr.
20655 2008-02-19  H.J. Lu  <hongjiu.lu@intel.com>
20657         PR Ada/35186
20658         * config/i386/i386-modes.def: Revert the last DI alignment
20659         change until Ada people can look into it.
20661 2008-02-19  Nick Clifton  <nickc@redhat.com>
20663         * opts.c (print_specific_help): Fix typo in --help text.
20665 2008-02-19  Jakub Jelinek  <jakub@redhat.com>
20667         PR target/35239
20668         * config/i386/cpuid.h (__cpuid, __get_cpuid_max): Use special
20669         32-bit inline asm without asm alternatives for host GCC < 3.0.
20671 2008-02-19  Richard Guenther  <rguenther@suse.de>
20673         PR tree-optimization/34989
20674         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Re-structure.
20675         Allow propagation to INDIRECT_REF if we can simplify only.
20677 2008-02-19  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
20679         * c-common.c (warn_for_collisions_1): Use appropriate option when
20680         warning.
20682 2008-02-19  Nick Clifton  <nickc@redhat.com>
20684         PR other/31349
20685         * opts.c (undocumented_msg): Leave blank unless checking is enabled.
20686         (handle_options): Fix indentation.
20687         (print_filtered_help): If no language-specific options were
20688         displayed tell the user how to list all the options supported by
20689         the language's front-end.
20690         (print_specific_help): Fix indentation and remove duplicate line.
20691         (common_handle_option): Handle the -v option.
20692         For --help enable the display of undocumented options if the -v
20693         switch has been included on the command line.
20694         For --help= check for overlaps in the arguments between the option
20695         classes and the language names and issue a warning when they
20696         cannot be disambiguated.
20697         * c.opt (v): Pass on to the common option handler.
20699 2008-02-19  Revital Eres  <eres@il.ibm.com>
20701         * modulo-sched.c (sms_schedule): Change dump message when
20702         create_ddg function fails.
20703         (try_scheduling_node_in_cycle): Rename row to cycle.
20704         (print_partial_schedule): Rename CYCLE to ROW.
20706 2008-02-19  Christian Bruel  <christian.bruel@st.com>
20707             Zdenek Dvorak  <ook@ucw.cz>
20709         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check step alignment.
20711 2008-02-19  Uros Bizjak  <ubizjak@gmail.com>
20713         PR target/33555
20714         * config/i386/i386.md (*x86_movsicc_0_m1_se): New insn pattern.
20715         (*x86_movdicc_0_m1_se): Ditto.
20717 2008-02-19  Uros Bizjak  <ubizjak@gmail.com>
20719         * config/i386/sfp-machine.h (__gcc_CMPtype): New typedef.
20720         (CMPtype): Define as __gcc_CMPtype.
20721         * config/rs6000/sfp-machine.h (__gcc_CMPtype): New typedef.
20722         (CMPtype): Define as __gcc_CMPtype.
20724 2008-02-19  Hans-Peter Nilsson  <hp@axis.com>
20726         Support valgrind 3.3 for --enable-checking=valgrind.
20727         * system.h: Consolidate ENABLE_VALGRIND_CHECKING-dependent defines
20728         here.
20729         [!VALGRIND_MAKE_MEM_NOACCESS]: Define as VALGRIND_MAKE_NOACCESS.
20730         [!VALGRIND_MAKE_MEM_DEFINED]: Define as VALGRIND_MAKE_READABLE.
20731         [!VALGRIND_MAKE_MEM_UNDEFINED]: Define as VALGRIND_MAKE_WRITABLE.
20732         * ggc-common.c: Remove ENABLE_VALGRIND_CHECKING-dependent defines.
20733         Replace use of VALGRIND_MAKE_READABLE, VALGRIND_MAKE_WRITABLE, and
20734         VALGRIND_MAKE_NOACCESS with VALGRIND_MAKE_MEM_DEFINED,
20735         VALGRIND_MAKE_MEM_UNDEFINED, and VALGRIND_MAKE_MEM_NOACCESS
20736         respectively.
20737         * ggc-zone.c: Similar.
20738         * ggc-page.c: Similar.
20740 2008-02-19  Paul Brook  <paul@codesourcery.com>
20742         PR target/35071
20743         * config/arm/ieee754-df.S: Fix do_it typo.
20744         * config/arm/ieee754-sf.S: Fix do_it typo.
20746 2008-02-18  H.J. Lu  <hongjiu.lu@intel.com>
20748         PR target/35189
20749         * config/i386/i386.c (OPTION_MASK_ISA_MMX_SET): New.
20750         (OPTION_MASK_ISA_3DNOW_SET): Likewise.
20751         (OPTION_MASK_ISA_SSE_SET): Likewise.
20752         (OPTION_MASK_ISA_SSE2_SET): Likewise.
20753         (OPTION_MASK_ISA_SSE3_SET): Likewise.
20754         (OPTION_MASK_ISA_SSSE3_SET): Likewise.
20755         (OPTION_MASK_ISA_SSE4_1_SET): Likewise.
20756         (OPTION_MASK_ISA_SSE4_2_SET): Likewise.
20757         (OPTION_MASK_ISA_SSE4_SET): Likewise.
20758         (OPTION_MASK_ISA_SSE4A_SET): Likewise.
20759         (OPTION_MASK_ISA_SSE5_SET): Likewise.
20760         (OPTION_MASK_ISA_3DNOW_A_UNSET): Likewise.
20761         (OPTION_MASK_ISA_MMX_UNSET): Updated.
20762         (OPTION_MASK_ISA_3DNOW_UNSET): Updated.
20763         (OPTION_MASK_ISA_SSE_UNSET): Likewise.
20764         (OPTION_MASK_ISA_SSE3_UNSET): Likewise.
20765         (OPTION_MASK_ISA_SSSE3_UNSET): Likewise.
20766         (OPTION_MASK_ISA_SSE4_1_UNSET): Likewise.
20767         (OPTION_MASK_ISA_SSE4_2_UNSET): Likewise.
20768         (OPTION_MASK_ISA_SSE4A_UNSET): Likewise.
20769         (OPTION_MASK_ISA_SSE5_UNSET): Likewise.
20770         (OPTION_MASK_ISA_SSE4): Removed.
20771         (ix86_handle_option): Turn on bits in ix86_isa_flags and
20772         ix86_isa_flags_explicit with OPTION_MASK_ISA_XXX_SET for -mXXX.
20773         (override_options): Don't turn on implied SSE/MMX bits in
20774         ix86_isa_flags.
20776 2008-02-18  H.J. Lu  <hongjiu.lu@intel.com>
20778         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
20779         32bit host.
20781 2008-02-18  Joey Ye  <joey.ye@intel.com>
20783         PR middle-end/34921
20784         * tree-nested.c (insert_field_into_struct): Set type alignment
20785         to field alignment if the former is less than the latter.
20787 2008-02-18  Jakub Jelinek  <jakub@redhat.com>
20789         * BASE-VER: Set to 4.4.0.
20791 2008-02-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20793         * doc/c-tree.texi: Use @dots{} and @enddots{} where appropriate.
20794         * doc/cfg.texi: Likewise.
20795         * doc/extend.texi: Likewise.
20796         * doc/gty.texi: Likewise.
20797         * doc/invoke.texi: Likewise.
20798         * doc/loop.texi: Likewise.
20799         * doc/md.texi: Likewise.
20800         * doc/passes.texi: Likewise.
20801         * doc/rtl.texi: Likewise.
20802         * doc/sourcebuild.texi: Likewise.
20803         * doc/tm.texi: Likewise.
20804         * doc/tree-ssa.texi: Likewise.
20806 2008-02-17  Richard Guenther  <rguenther@suse.de>
20808         PR middle-end/35227
20809         * tree-complex.c (init_parameter_lattice_values): Handle parameters
20810         without default definition.
20812 2008-02-17  Richard Guenther  <rguenther@suse.de>
20814         PR tree-optimization/35231
20815         * tree-vrp.c (register_edge_assert_for): Do not assume A == 0
20816         if A | B != 1.
20818 2008-02-17  Uros Bizjak  <ubizjak@gmail.com>
20820         Revert:
20821         2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
20822         * config/i386/sfp-machine.h (CMPtype): Define as typedef using
20823         libgcc_cmp_return mode.
20825 2008-02-16  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
20827         PR c/28368
20828         * doc/invoke.texi (-std): Clarify description of -std= and -ansi.
20830 2008-02-16  Ralf Corsepius  <ralf.corsepius@rtems.org>
20832         * config/m68k/t-rtems (M68K_MLIB_CPU): Add 5208, 5307, 5407, 5475
20833         multilibs.
20835 2008-02-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20837         * doc/c-tree.texi: Use `@.' where appropriate.
20838         * doc/extend.texi: Likewise.
20839         * doc/install.texi: Likewise.
20840         * doc/invoke.texi: Likewise.
20841         * doc/loop.texi: Likewise.
20842         * doc/makefile.texi: Likewise.
20843         * doc/md.texi: Likewise.
20844         * doc/passes.texi: Likewise.
20845         * doc/standards.texi: Likewise.
20846         * doc/tm.texi: Likewise.
20848 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
20850         PR middle-end/35196
20851         * omp-low.c (expand_omp_for_generic): Don't initialize fd->v
20852         in entry_bb.
20853         (expand_omp_for_static_nochunk): Initialize fd->v in seq_start_bb
20854         rather than in entry_bb.
20856 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
20858         * config/i386/sfp-machine.h (CMPtype): Define as typedef using
20859         libgcc_cmp_return mode.
20861 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
20863         PR middle-end/35130
20864         * tree-nested.c (convert_call_expr): Put FRAME.* vars into
20865         OMP_CLAUSE_SHARED rather than OMP_CLAUSE_FIRSTPRIVATE clause.
20867 2008-02-15  Richard Guenther  <rguenther@suse.de>
20868             Zdenek Dvorak  <ook@ucw.cz>
20870         PR tree-optimization/35164
20871         * tree-flow.h (stmt_references_abnormal_ssa_name): Declare.
20872         * tree-dfa.c (stmt_references_abnormal_ssa_name): New function.
20873         * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
20874         Only propagate addresses which do not have abnormal SSA_NAMEs
20875         in their operands.
20877 2008-02-15  Joseph Myers  <joseph@codesourcery.com>
20879         PR target/35088
20880         * config/m68k/m68k.h (DWARF_CIE_DATA_ALIGNMENT): Define.
20882 2008-02-15  Jan Hubicka  <jh@suse.cz>
20884         PR middle-end/35149
20885         * ipa.c (cgraph_remove_unreachable_nodes): Clear local.inlinable flag.
20887 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
20889         PR middle-end/34621
20890         * function.c (pad_to_arg_alignment): Remove test for STACK_BOUNDARY
20891         when calculating alignment_pad.
20893 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
20895         * config/i386/i386.h (CLEAR_RATIO): Use MIN macro.
20896         (WIDEST_HARDWARE_FP_SIZE): Use LONG_DOUBLE_TYPE_SIZE define.
20897         * config/i386/darwin.h (PREFERRED_STACK_BOUNDARY): Use MAX macro
20898         and STACK_BOUNDARY define.
20900 2008-02-14  Danny Smith  <dannysmith@users.sourceforge.net>
20902         PR preprocessor/35061
20903         * c-pragma.c (handle_pragma_pop_macro): Check that
20904         pushed_macro_table has been allocated.
20906 2008-02-14  Eric Botcazou  <ebotcazou@adacore.com>
20908         PR middle-end/35136
20909         * gimplify.c (force_gimple_operand_bsi): Revert 2008-02-12 change.
20910         (force_gimple_operand): Likewise.
20911         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Add new cases
20912         for TARGET_MEM_REF and CONVERT_EXPR/NON_LVALUE_EXPR/NOP_EXPR.
20913         Also recurse on the operand for regular VIEW_CONVERT_EXPRs.
20914         (find_interesting_uses_address): Check addressability and alignment
20915         of the base expression only after substituting bases of IVs into it.
20917 2008-02-14  Michael Matz  <matz@suse.de>
20919         PR target/34930
20920         * function.c (instantiate_virtual_regs_in_insn): Reload address
20921         before falling back to reloading the whole operand.
20923 2008-02-14  Andreas Krebbel  <krebbel1@de.ibm.com>
20925         * config/s390/s390.c (s390_mainpool_start): Emit the pool
20926         before the first section switch note.
20928 2008-02-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20930         * doc/bugreport.texi: Update copyright years.
20931         * doc/c-tree.texi: Likewise.
20932         * doc/cfg.texi: Likewise.
20933         * doc/cpp.texi: Likewise.
20934         * doc/cppinternals.texi: Likewise.
20935         * doc/fragments.texi: Likewise.
20936         * doc/frontends.texi: Likewise.
20937         * doc/gcc.texi: Likewise.
20938         * doc/gty.texi: Likewise.
20939         * doc/hostconfig.texi: Likewise.
20940         * doc/implement-c.texi: Likewise.
20941         * doc/libgcc.texi: Likewise.
20942         * doc/loop.texi: Likewise.
20943         * doc/makefile.texi: Likewise.
20944         * doc/options.texi: Likewise.
20945         * doc/passes.texi: Likewise.
20946         * doc/rtl.texi: Likewise.
20947         * doc/sourcebuild.texi: Likewise.
20948         * doc/standards.texi: Likewise.
20949         * doc/tree-ssa.texi: Likewise.
20950         * doc/trouble.texi: Likewise.
20952         * doc/extend.texi: Use @: or add comma where appropriate.
20953         * doc/invoke.texi: Likewise.
20954         * doc/tm.texi: Likewise.
20956 2008-02-14  Alan Modra  <amodra@bigpond.net.au>
20958         PR target/34393
20959         * config/rs6000/rs6000.md (restore_stack_block): Force operands[1]
20960         to a reg.
20962 2008-02-14  Jesper Nilsson  <jesper.nilsson@axis.com>
20964         * doc/md.texi (clz, ctz): Add reference.
20965         * doc/rtl.texi (clz, ctz): Likewise.
20967 2008-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20969         PR other/35148
20970         * Makefile.in (gcc-vers.texi): Use abs_srcdir for the value of
20971         srcdir.
20973 2008-02-13  Andreas Krebbel  <krebbel1@de.ibm.com>
20975         * config/s390/s390.c (struct constant_pool): New field
20976         emit_pool_after added.
20977         (s390_mainpool_start): Set the emit_pool_after flag according
20978         to the section switch notes.
20979         (s390_mainpool_finish): Consider emit_pool_after when emitting
20980         the literal pool at the end of the function.
20981         (s390_chunkify_start): Force literal pool splits at section
20982         switch notes.
20984 2008-02-13  Michael Matz  <matz@suse.de>
20986         PR debug/35065
20987         * var-tracking.c (clobber_variable_part): Correctly traverse the
20988         list.
20990 2008-02-13  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
20992         PR 29673
20993         * doc/invoke.texi (Debugging Options): Remove -fdump-tree-inlined.
20994         Add -fdump-ipa-inline.
20995         * tree-dump.c (dump_files): Remove tree-inlined dump.
20996         * tree-pass.h (tree_dump_index): Remove TDI_inlined.
20998 2008-02-12  Richard Guenther  <rguenther@suse.de>
21000         PR tree-optimization/35171
21001         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Deal with
21002         default defs.
21004 2008-02-12  Richard Guenther  <rguenther@suse.de>
21006         PR middle-end/35163
21007         * fold-const.c (fold_widened_comparison): Use get_unwidened in
21008         value-preserving mode.  Disallow final truncation.
21010 2008-02-12  Eric Botcazou  <ebotcazou@adacore.com>
21012         PR middle-end/35136
21013         * gimplify.c (force_gimple_operand_bsi): Move SSA renaming
21014         code from here to...
21015         (force_gimple_operand): ...here.
21017 2008-02-12  Jakub Jelinek  <jakub@redhat.com>
21019         PR c++/35144
21020         * tree-sra.c (sra_build_assignment): fold_convert SRC if copying
21021         non-compatible pointers.
21022         (generate_element_copy): If SRC and DST are RECORD_TYPEs with
21023         different FIELD_DECLs, try harder by comparing field offsets, sizes
21024         and types.
21026         PR inline-asm/35160
21027         * function.c (match_asm_constraints_1): Don't replace the same input
21028         multiple times.
21030 2008-02-12  Anatoly Sokolov <aesok@post.ru>
21032         * config/avr/avr.h (AVR_HAVE_RAMPZ): Define.
21033         * config/avr/avr.c (expand_prologue): Save RAMPZ register.
21034         (expand_epilogue): Restore RAMPZ register.
21035         * config/avr/avr.md (RAMPZ_ADDR): New constant.
21037 2008-02-11  Kai Tietz  <kai.tietz@onevision.com>
21039         * config/i386/cygwin.asm: (__alloca): Correct calling
21040         convention and alignment.
21041         (__chkstk): Force 8 byte stack alignment.
21043 2008-02-11  Uros Bizjak  <ubizjak@gmail.com>
21044             Richard Guenther  <rguenther@suse.de>
21046         PR tree-optimization/33992
21047         * tree-ssa-loop-im.c (rewrite_bittest): Fixup the type of
21048         the zero we compare against.
21050 2008-02-10  Danny Smith  <dannysmith@users.sourceforge.net>
21052         PR libfortran/35063
21053         * gthr-win32.h (__gthread_mutex_destroy_function): New function
21054         to CloseHandle after unlocking to prevent accumulation of handle
21055         count.
21057 2008-02-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
21059         PR middle_end/34150
21060         * pa.c (legitimize_pic_address): Add REG_EQUAL note on sets with a
21061         pic_label_operand source.  Similarly, add a REG_LABEL_OPERAND note
21062         and update LABEL_NUSES during and after reload.
21064 2008-02-08  Steven Bosscher  <stevenb.gcc@gmail.com>
21066         PR middle-end/34627
21067         * combine.c (simplify_if_then_else): Make sure the comparison is
21068         against const0_rtx when simplifying to (abs x) or (neg (abs X)).
21070 2008-02-08  Richard Sandiford  <rsandifo@nildram.co.uk>
21072         PR bootstrap/35051
21073         * double-int.h: Don't include gmp.h for GENERATOR_FILEs.
21074         (mpz_set_double_int, mpz_get_double_int): Hide from GENERATOR_FILEs.
21075         * real.h: Don't include gmp.h or mpfr.h for GENERATOR_FILEs.
21076         (real_from_mpfr, mpfr_from_real): Hide from GENERATOR_FILEs.
21077         * tree.h (get_type_static_bounds): Likewise.
21079 2008-02-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21081         * doc/invoke.texi (Option Summary, C++ Dialect Options)
21082         (Objective-C and Objective-C++ Dialect Options, Warning Options):
21083         Make -Wfoo language annotations match what the compiler outputs.
21085 2008-02-08  Sa Liu  <saliu@de.ibm.com>
21087         * config/spu/spu-builtins.def: Fixed wrong parameter type in spu
21088         intrinsics spu_convts, spu_convtu, spu_convtf.
21090 2008-02-08  Hans-Peter Nilsson  <hp@axis.com>
21092         * doc/extend.texi (Function Attributes) <noinline>: Mention
21093         asm ("") as method to keep calls.
21095 2008-02-07  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
21097         PR other/32754
21098         * doc/options.texi (Options): Replace references to opts.sh with
21099         optc-gen.awk.
21100         * opts-common.c: Likewise.
21101         * optc-gen.awk: Likewise.
21103 2008-02-07  Andreas Krebbel  <krebbel1@de.ibm.com>
21105         * config/s390/s390.h (FUNCTION_ARG_REGNO_P): Fix fprs for 64 bit.
21107 2008-02-07  Richard Henderson  <rth@redhat.com>
21109         PR rtl-opt/33410
21110         * config/alpha/alpha.c (alpha_emit_xfloating_compare): Use an
21111         EXPR_LIST for the REG_EQUAL instead of a comparison with a
21112         funny mode.
21114 2008-02-07  Uros Bizjak  <ubizjak@gmail.com>
21116         PR tree-optimization/35085
21117         * tree-ssa-reassoc.c (rewrite_expr_tree): Enable destructive update
21118         for operand entry oe2 in addition to operand entry oe3 in order to
21119         expose more opportunities for vectorizer sum reduction.
21121 2008-02-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
21123         PR other/35107
21124         * Makefile.in (LIBS): Remove $(GMPLIBS).
21125         (cc1-dummy, cc1): Add $(GMPLIBS).
21127 2008-02-06  Jan Hubicka  <jh@suse.cz>
21129         PR target/23322
21130         * i386.md (moddf_integer): Do not produce partial memory stalls for
21131         targets where it hurts.
21133 2008-02-06  Uros Bizjak  <ubizjak@gmail.com>
21135         PR target/35083
21136         * optabs.c (expand_float): Do not check for decimal modes when
21137         expanding unsigned integer through signed conversion.
21139 2008-02-06  Nick Clifton  <nickc@redhat.com>
21141         * config/stormy16/stormy16.md (eqbranchsi): Replace a match_dup
21142         inside the clobber with a match_operand and duplicated operand
21143         number in the constraint.
21144         (ineqbranchsi): Delete redundant comment.
21146 2008-02-06  Ralf Corsepius  <ralf.corsepius@rtems.org>
21148         * config/arm/rtems-elf.h (TARGET_OS_CPP_BUILTINS): Add
21149         builtin_define ("__USE_INIT_FINI__").
21150         * config/h8300/t-rtems (MULTILIB_OPTION,MULTILIB_DIRNAMES): Add
21151         -msx multilibs.
21152         * gthr-rtems.h: Remove __GTHREAD_MUTEX_INIT.
21154 2008-02-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21156         PR documentation/30330
21157         * doc/invoke.texi (C++ Dialect Options)
21158         (Objective-C and Objective-C++ Dialect Options, Warning Options):
21159         For each warning option -Wfoo that allows -Wno-foo, ensure both
21160         -Wfoo and -Wno-foo are listed in the option index.  Fix index
21161         entry of -Wswitch-default, index -Wnormalized= including the
21162         `=', and -Wlarger-than-@var{len} including @var{len}.
21164 2008-02-05  Uros Bizjak  <ubizjak@gmail.com>
21166         * config/i386/i386.md (floatunssisf2): Use
21167         ix86_expand_convert_uns_sisf_sse also for TARGET_SSE.
21168         (floatunssi<mode>2): Rename from floatunssisf2 and floatunssidf2.
21169         Macroize expander using MODEF mode iterator.
21171 2008-02-05  Diego Novillo  <dnovillo@google.com>
21173         http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00140.html
21175         PR 33738
21176         * tree-vrp.c (vrp_evaluate_conditional): Revert fix for PR 33738.
21178 2008-02-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
21180         PR other/35070
21181         * toplev.c (print_version): Honor `indent' for GMP/MPFR warnings.
21183 2008-02-05  H.J. Lu  <hongjiu.lu@intel.com>
21185         PR target/35084
21186         * config/i386/i386.c (ix86_function_sseregparm): Add an arg
21187         to indicate if a message should be generated.
21188         (init_cumulative_args): Updated.
21189         (function_value_32): Likewise.
21191 2008-02-05  Joseph Myers  <joseph@codesourcery.com>
21193         * doc/include/texinfo.tex: Update to version 2008-02-04.16.
21195 2008-02-05  Uros Bizjak  <ubizjak@gmail.com>
21197         PR target/35083
21198         * config/i386/i386.md (floatunsisf2): Enable for TARGET_SSE_MATH only.
21199         Call ix86_expand_convert_uns_sisf_sse for TARGET_SSE2.
21201 2008-02-04  Diego Novillo  <dnovillo@google.com>
21203         http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00110.html
21205         PR 33738
21206         * tree-vrp.c (vrp_evaluate_conditional): With
21207         -Wtype-limits, emit a warning when comparing against a
21208         constant outside the natural range of OP0's type.
21210 2008-02-04  Richard Guenther  <rguenther@suse.de>
21212         PR middle-end/33631
21213         * expr.c (count_type_elements): Give for unions instead of
21214         guessing.
21216 2008-02-04  Richard Guenther  <rguenther@suse.de>
21218         PR middle-end/35043
21219         * gimplify.c (gimplify_init_ctor_eval): Convert array indices
21220         to TYPE_DOMAINs base type instead of using bitsizetype here.
21222 2008-02-03  Jason Merrill  <jason@redhat.com>
21224         * print-tree.c (print_node) [CONSTRUCTOR]: Print elements.
21226 2008-02-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21228         PR other/29972
21229         * doc/invoke.texi (C++ Dialect Options, Optimize Options)
21230         (HPPA Options, i386 and x86-64 Options, IA-64 Options)
21231         (RS/6000 and PowerPC Options): Fix typos and markup.
21232         * doc/passes.texi (Tree-SSA passes): Likewise.
21234 2008-02-02  Michael Matz  <matz@suse.de>
21236         PR target/35045
21237         * postreload-gcse.c (record_last_reg_set_info_regno): Renamed
21238         from record_last_reg_set_info.
21239         (record_last_reg_set_info): Take an RTX argument, iterate over all
21240         constituent hardregs.
21241         (record_last_set_info, record_opr_changes): Change calls to
21242         new signature or to record_last_reg_set_info_regno.
21244 2008-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
21246         * doc/extend.texi (X86 Built-in Functions): Fix grammar.
21248 2008-02-01  Hans-Peter Nilsson  <hp@axis.com>
21250         PR rtl-optimization/34773
21251         * reg-notes.def (EQUAL): Mention significance of combination of
21252         REG_EQUAL and REG_RETVAL.
21253         * fwprop.c (try_fwprop_subst): Don't add REG_EQUAL to an
21254         insn that has a REG_RETVAL.
21256 2008-02-01  Roger Sayle  <roger@eyesopen.com>
21258         PR bootstrap/33781
21259         * configure.ac (--enable-fixed-point): Disable unless explicitly
21260         requested on IRIX.
21261         * configure: Regenerate.
21263 2008-02-01  Richard Guenther  <rguenther@suse.de>
21265         PR other/35042
21266         * invoke.texi (-finline-limit): Remove no longer true parts
21267         of the documentation.  Note that there is no default value.
21269 2008-02-01  Andrew Pinski  <pinskia@gmail.com>
21270             Mark Mitchell  <mark@codesourcery.com>
21271             Ben Elliston  <bje@au.ibm.com>
21273         PR c/29326
21274         * doc/extend.texi (Other Builtins): Document.
21276 2008-01-31  Tom Browder <tom.browder@gmail.com>
21278         * doc/c-tree.texi (Types): Fix grammar.
21279         (Expression trees): Ditto.
21280         * doc/passes.texi (Tree-SSA passes): Ditto.
21282         * doc/configterms.texi (Configure Terms): Fix typo.
21283         * doc/cpp.texi (Common Predefined Macros): Ditto.
21284         * doc/md.texi (Machine Constraints): Ditto.
21286         * doc/makefile.texi (Makefile): Add comma.
21288 2008-01-31  Tom Browder  <tom.browder@gmail.com>
21289             Gerald Pfeifer  <gerald@pfeifer.com>
21291         * doc/sourcebuild.texi (Front End): Remove references to CVS
21292         and CVSROOT/modules.
21293         (Texinfo Manuals): Replace reference to CVS by one to SVN.
21294         (Back End): Remove reference to CVS.
21296 2008-01-31  Richard Sandiford  <rsandifo@nildram.co.uk>
21298         PR target/34900
21299         * config/mips/mips.c (gen_load_const_gp): New function, taking a
21300         comment from...
21301         (mips16_gp_pseudo_reg): ...here.
21302         * config/mips/mips.md (load_const_gp): Replace with...
21303         (load_const_gp_<mode>): ...this :P-based insn.
21305 2008-01-31  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
21307         * doc/invoke.texi (-ansi): Mention explicitly corresponding -std=
21308         options. Minor fixes.
21309         (-std): Move reference to standards closer to where language
21310         standards are first mentioned.
21312 2008-01-31  Richard Sandiford  <rsandifo@nildram.co.uk>
21314         PR rtl-optimization/34995
21315         * reload.c (alternative_allows_const_pool_ref): Take an rtx
21316         parameter and return a bool.  If the rtx parameter is nonnull,
21317         check that it satisfies an EXTRA_MEMORY_CONSTRAINT.
21318         (find_reloads): Update call accordingly.  Pass the new operand
21319         if it needed no address reloads, otherwise pass null.
21321 2008-01-30  Richard Henderson  <rth@redhat.com>
21323         PR c/34993
21324         * tree.c (build_type_attribute_qual_variant): Skip TYPE_DOMAIN
21325         for unbounded arrays.
21327 2008-01-30  Silvius Rus  <rus@google.com>
21329         * config/i386/xmmintrin.h (_mm_prefetch): Add const to first arg.
21331 2008-01-30  Jan Hubicka  <jh@suse.cz>
21333         PR target/34982
21334         * i386.c (init_cumulative_args): Use real function declaration when
21335         calling locally.
21337 2008-01-30  Richard Sandiford  <rsandifo@nildram.co.uk>
21339         PR rtl-optimization/34998
21340         * global.c (build_insn_chain): Treat non-subreg_lowpart
21341         SUBREGs of pseudos as clobbering all the words covered by the
21342         SUBREG, not just all the bytes.
21343         * ra-conflict.c (clear_reg_in_live): Likewise.  Take the
21344         original df_ref rather than an extract parameter.
21345         (global_conflicts): Update call accordingly.
21347 2008-01-30  Andreas Krebbel  <krebbel1@de.ibm.com>
21349         * config/s390/fixdfdi.h (__fixunstfdi, __fixtfdi): Rearrange
21350         the overflow check to make it easier to read.
21351         (__fixtfdi): Change the type of the ll member in union
21352         long_double to UDItype_x.
21354 2008-01-30  Jakub Jelinek  <jakub@redhat.com>
21356         PR middle-end/34969
21357         * cgraph.h (cgraph_update_edges_for_call_stmt): New prototype.
21358         * cgraph.c (cgraph_update_edges_for_call_stmt): New function.
21359         * tree-inline.c (fold_marked_statements): Call
21360         cgraph_update_edges_for_call_stmt if folding a call statement.
21361         * cgraphunit.c (verify_cgraph_node): Set cfun to this_cfun for
21362         debug_generic_stmt calls, reset it back afterwards.
21364         PR c/35017
21365         * c-decl.c (start_decl): Don't pedwarn about TREE_READONLY
21366         static decls.
21367         * c-typeck.c (build_external_ref): Don't pedwarn about
21368         static vars in current function's scope.
21370 2008-01-29  Joseph Myers  <joseph@codesourcery.com>
21372         * config.gcc (i[34567]86-*-nto-qnx*): Remove deprecation.
21374 2008-01-29  Bernhard Fischer  <aldot@gcc.gnu.org>
21376         PR c/35002
21377         * ipa-struct-reorg.c: Fix spelling.
21378         * params.def: Ditto.
21380 2008-01-29  Richard Guenther  <rguenther@suse.de>
21382         PR middle-end/35006
21383         * tree-inline.h (struct copy_body_data): Add remapping_type_depth
21384         field.
21385         * tree-inline.c (remap_type): Increment remapping_type_depth
21386         around remapping types.
21387         (copy_body_r): Only add referenced variables if they are referenced
21388         from code, not types.
21390 2008-01-29  Douglas Gregor  <doug.gregor@gmail.com>
21392         PR c++/34055
21393         PR c++/34103
21394         PR c++/34219
21395         PR c++/34606
21396         PR c++/34753
21397         PR c++/34754
21398         PR c++/34755
21399         PR c++/34919
21400         PR c++/34961
21401         * c-pretty-print.c (pp_c_type_qualifier_list): Don't try to print
21402         qualifiers for an ERROR_MARK_NODE or a NULL_TREE.
21404 2008-01-28  Andy Hutchinson   <hutchinsonandy@netscape.net>
21406         PR target/34412
21407         * config/avr/avr.c (expand_prologue): Use correct QI mode frame
21408         pointer for tiny stack.
21410 2008-01-28  Bernhard Fischer  <aldot@gcc.gnu.org>
21412         * doc/tree-ssa.texi: Add cindex PHI nodes and improve wording.
21414 2008-01-28  Bernhard Fischer  <aldot@gcc.gnu.org>
21416         * config/vx-common.h: Fix typo in comment.
21418 2008-01-28  Ian Lance Taylor  <iant@google.com>
21420         PR c++/34862
21421         PR c++/33407
21422         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
21423         coalesce pointers if they have different DECL_NO_TBAA_P values.
21424         * tree-ssa-copy.c (may_propagate_copy): Don't propagate copies
21425         between variables with different DECL_NO_TBAA_P values.
21427 2008-01-28  Nathan Froyd  <froydnj@codesourcery.com>
21429         PR 31535
21430         * config/rs6000/rs6000.c (small_data_operand): Vectors and floats
21431         are not legitimate small data references on SPE targets.
21433 2008-01-28  David Daney  <ddaney@avtrex.com>
21435         * doc/install.texi (mips-*-*): Recommend binutils 2.18.
21437 2008-01-28  David Daney  <ddaney@avtrex.com>
21439         * doc/install.texi (--disable-libgcj-bc):  Reword documentation.
21441 2008-01-27  Joseph Myers  <joseph@codesourcery.com>
21443         * config.gcc (strongarm*-*, ep9312*-*, xscale*-*, parisc*-*,
21444         m680[012]0-*, *-*-beos*, *-*-kaos*, *-*-linux*aout*,
21445         *-*-linux*libc1*, *-*-solaris2.[0-6], *-*-solaris2.[0-6].*,
21446         *-*-sysv*, *-*-windiss*, alpha*-*-unicosmk*, cris-*-aout,
21447         hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
21448         i[34567]86-sequent-ptx4*, i[34567]86-*-nto-qnx*,
21449         i[34567]86-*-sco3.2v5*, i[34567]86-*-uwin*, powerpc-*-chorusos*,
21450         vax-*-bsd*, vax-*-ultrix*): Mark obsolete.
21452 2008-01-27  Bernhard Fischer  <aldot@gcc.gnu.org>
21454         * basic-block.h (condjump_equiv_p): Fix comment.
21456 2008-01-27  Bernhard Fischer  <aldot@gcc.gnu.org>
21458         * tree-pretty-print.c (print_generic_decl, print_generic_stmt,
21459         print_generic_stmt_indented): Fix comment.
21461 2008-01-27  Bernhard Fischer  <aldot@gcc.gnu.org>
21463         * configure.ac (__stack_chk_fail): Add detecion for availability
21464         of SSP in uClibc by checking if __UCLIBC_HAS_SSP__ is defined.
21465         * configure: Regenerate.
21467 2008-01-26  Maxim Kuvyrkov  <maxim@codesourcery.com>
21469         PR middle-end/34688
21470         * final.c (output_addr_const): Handle TRUNCATE.
21472 2008-01-26  Zdenek Dvorak  <ook@ucw.cz>
21474         PR target/34711
21475         * tree-ssa-loop-ivopts.c (comp_cost): New type.
21476         (zero_cost, infinite_cost): New constants.
21477         (struct cost_pair): Change type of cost to comp_cost.
21478         (struct iv_ca): Change type of cand_use_cost and cost to comp_cost.
21479         (new_cost, add_costs, sub_costs, compare_costs, infinite_cost_p):
21480         New functions.
21481         (set_use_iv_cost, force_expr_to_var_cost, force_var_cost,
21482         split_address_cost, ptr_difference_cost, difference_cost,
21483         get_computation_cost_at, get_computation_cost,
21484         determine_use_iv_cost_generic, determine_use_iv_cost_address,
21485         determine_use_iv_cost_condition, determine_use_iv_costs,
21486         cheaper_cost_pair, iv_ca_recount_cost, iv_ca_set_no_cp,
21487         iv_ca_set_cp, iv_ca_cost, iv_ca_new, iv_ca_dump, iv_ca_extend,
21488         iv_ca_narrow, iv_ca_prune, try_improve_iv_set, find_optimal_iv_set):
21489         Change type of cost to comp_cost.
21490         (determine_iv_cost): Increase cost of non-original ivs, instead
21491         of decreasing the cost of original ones.
21492         (get_address_cost): Indicate the complexity of the addressing mode
21493         in comp_cost.
21494         (try_add_cand_for): Prefer using ivs not specific to some object.
21495         * tree-flow.h (force_expr_to_var_cost): Declaration removed.
21497 2008-01-26  Peter Bergner  <bergner@vnet.ibm.com>
21498             Janis Johnson  <janis187@us.ibm.com>
21500         PR target/34814
21501         * doc/tm.texi (TARGET_EXPAND_TO_RTL_HOOK): Document.
21502         (TARGET_INSTANTIATE_DECLS): Likewise.
21503         * target.h (expand_to_rtl_hook): New target hook.
21504         (instantiate_decls): Likewise.
21505         * function.c (instantiate_decl): Make non-static.  Rename to...
21506         (instantiate_decl_rtl): ... this.
21507         (instantiate_expr): Use instantiate_decl_rtl.
21508         (instantiate_decls_1): Likewise.
21509         (instantiate_decls): Likewise.
21510         (instantiate_virtual_regs: Call new instantiate_decls taget hook.
21511         * function.h (instantiate_decl_rtl): Add prototype.
21512         * cfgexpand.c (target.h): New include.
21513         (tree_expand_cfg): Call new expand_to_rtl_hook target hook.
21514         * target-def.h (TARGET_EXPAND_TO_RTL_HOOK): New define.
21515         (TARGET_INSTANTIATE_DECLS): Likewise.
21516         (TARGET_INITIALIZER): New target hooks added.
21517         * config/rs6000/rs6000-protos.h (rs6000_secondary_memory_needed_rtx):
21518         New prototype.
21519         * config/rs6000/rs6000.c (tree-flow.h): New include.
21520         (machine_function): Add sdmode_stack_slot field.
21521         (rs6000_alloc_sdmode_stack_slot): New function.
21522         (rs6000_instantiate_decls): Likewise.
21523         (rs6000_secondary_memory_needed_rtx): Likewise.
21524         (rs6000_check_sdmode): Likewise.
21525         (TARGET_EXPAND_TO_RTL_HOOK): Target macro defined.
21526         (TARGET_INSTANTIATE_DECLS): Likewise.
21527         (rs6000_hard_regno_mode_ok): Allow SDmode.
21528         (num_insns_constant): Likewise.  Handle _Decimal32 constants.
21529         (rs6000_emit_move): Handle SDmode.
21530         (function_arg_advance): Likewise.
21531         (function_arg): Likewise.
21532         (rs6000_gimplify_va_arg): Likewise.  Add special handling of
21533         SDmode var args for 32-bit compiles.
21534         (rs6000_secondary_reload_class): Handle SDmode.
21535         (rs6000_output_function_epilogue): Likewise.
21536         (rs6000_function_value): Simplify if statement.
21537         (rs6000_libcall_value): Likewise.
21538         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Handle SDmode.
21539         (SECONDARY_MEMORY_NEEDED_RTX): Add define.
21540         * config/rs6000/dfp.md (movsd): New define_expand and splitter.
21541         (movsd_hardfloat): New define_insn.
21542         (movsd_softfloat): Likewise.
21543         (movsd_store): Likewise.
21544         (movsd_load): Likewise.
21545         (extendsddd2): Likewise.
21546         (extendsdtd2): Likewise.
21547         (truncddsd2): Likewise.
21548         (movdd_hardfloat64): Fixup comment.
21549         (UNSPEC_MOVSD_LOAD): New constant.
21550         (UNSPEC_MOVSD_STORE): Likewise.
21552 2008-01-26  Jakub Jelinek  <jakub@redhat.com>
21554         PR c++/34965
21555         * c-pretty-print.c (pp_c_exclusive_or_expression): Handle
21556         TRUTH_XOR_EXPR.
21557         (pp_c_logical_and_expression): Handle TRUTH_AND_EXPR.
21558         (pp_c_logical_or_expression): Handle TRUTH_OR_EXPR.
21559         (pp_c_expression): Handle TRUTH_AND_EXPR, TRUTH_OR_EXPR
21560         and TRUTH_XOR_EXPR.
21562 2008-01-26  David Edelsohn  <edelsohn@gnu.org>
21564         PR target/34794
21565         * config.gcc: Separate AIX 5.3 from AIX 6.1.
21566         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
21567         __LONGDOUBLE128 too.
21568         * config/rs6000/aix61.h: New file.
21570 2008-01-26  Richard Sandiford  <rsandifo@nildram.co.uk>
21572         PR rtl-optimization/34959
21573         * optabs.c (expand_unop): In libcall notes, give ffs, clz, ctz,
21574         popcount and parity rtxes the same mode as their operand.
21575         Truncate or extend the result to the return value's mode
21576         if necessary.
21578 2008-01-26  Richard Sandiford  <rsandifo@nildram.co.uk>
21580         PR target/34981
21581         * config/mips/mips-protos.h (mips_expand_call): Return an rtx.
21582         * config/mips/mips.h (FIRST_PSEUDO_REGISTER): Rename FAKE_CALL_REGNO
21583         to GOT_VERSION_REGNUM.
21584         (CALL_REALLY_USED_REGISTERS): Set the GOT_VERSION_REGNUM entry to 0.
21585         (EPILOGUE_USES): Include GOT_VERSION_REGNUM if TARGET_USE_GOT.
21586         * config/mips/mips.c (mips_emit_call_insn): New function.
21587         (mips_call_tls_get_addr): Call mips_expand_call directly.
21588         (mips16_copy_fpr_return_value): Use mips_emit_call_insn rather than
21589         emit_call_insn.
21590         (mips16_build_call_stub): Likewise.  Return the call insn or null.
21591         (mips_expand_call): Update the call to mips16_build_call_stub
21592         accordingly and a remove redundant condition.  Assert that MIPS16
21593         stubs do not use lazy binding.  Use mips_emit_call_insn and return
21594         the call insn.
21595         (mips_extra_live_on_entry): Include GOT_VERSION_REGNUM if
21596         TARGET_USE_GOT.
21597         (mips_hard_regno_mode_ok_p): Allow SImode for GOT_VERSION_REGNUM.
21598         (mips_avoid_hazard): Remove hazard_set handling.
21599         * config/mips/mips.md (UNSPEC_EH_RECEIVER): Rename to...
21600         (UNSPEC_RESTORE_GP): ...this.
21601         (UNSPEC_SET_GOT_VERSION, UNSPEC_UPDATE_GOT_VERSION): New constants.
21602         (FAKE_CALL_REGNO): Rename to...
21603         (GOT_VERSION_REGNUM): ...this.
21604         (type): Add "ghost" value.  Add an associated insn reservation.
21605         (hazard_set): Remove.
21606         (exception_receiver): Rename to...
21607         (restore_gp): ...this and update the unspec identifier accordingly.
21608         (exception_receiver, nonlocal_got_receiver): New expanders.
21609         (load_call<mode>): Use GOT_VERSION_REGNUM.  Don't set
21610         FAKE_CALL_REGNO.  Remove hazard_set attribute.
21611         (set_got_version, update_got_version): New patterns.
21613 2008-01-26  Danny Smith  <dannysmith@users.sourceforge.net>
21615         PR target/34970
21616         * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Define.
21618 2008-01-25  Joseph Myers  <joseph@codesourcery.com>
21620         PR other/31955
21621         * doc/install.texi2html: Generate gcc-vers.texi.
21623 2008-01-25  DJ Delorie  <dj@redhat.com>
21625         * config/m32c/m32c.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
21627 2008-01-25  Joseph Myers  <joseph@codesourcery.com>
21629         * config/c4x: Remove directory.
21630         * config.gcc (crx-*, mt-*): Mark obsolete.
21631         (c4x-*, tic4x-*, c4x-*-rtems*, tic4x-*-rtems*, c4x-*, tic4x-*,
21632         h8300-*-rtemscoff*, ns32k-*-netbsdelf*, ns32k-*-netbsd*,
21633         sh-*-rtemscoff*): Remove cases.
21634         * defaults.h (C4X_FLOAT_FORMAT): Remove.
21635         * real.c (encode_c4x_single, decode_c4x_single,
21636         encode_c4x_extended, decode_c4x_extended, c4x_single_format,
21637         c4x_extended_format): Remove.
21638         * real.h (c4x_single_format, c4x_extended_format): Remove.
21639         * doc/extend.texi (interrupt, naked): Remove mention of attributes
21640         on C4x.
21641         (Pragmas): Remove comment about c4x pragmas.
21642         * doc/install.texi (c4x): Remove target-specific instructions.
21643         * doc/invoke.texi (TMS320C3x/C4x Options): Remove.
21644         * doc/md.texi (Machine Constraints): Remove C4x documentation.
21645         * doc/tm.texi (MEMBER_TYPE_FORCES_BLK, c_register_pragma): Do not
21646         refer to C4x source files as examples.
21647         (C4X_FLOAT_FORMAT): Remove documentation.
21649 2008-01-25  Bernd Schmidt  <bernd.schmidt@analog.com>
21651         * config/bfin/bfin.c (override_options): Reorder tests so that
21652         flag_pic gets enabled for -msep-data.
21654 2008-01-25  Richard Guenther  <rguenther@suse.de>
21656         PR middle-end/32244
21657         * expr.c (expand_expr_real_1): Reduce result of LSHIFT_EXPR
21658         to its bitfield precision if required.
21660 2008-01-25  Jakub Jelinek  <jakub@redhat.com>
21662         PR middle-end/33880
21663         * tree-nested.c (walk_omp_for): New function.
21664         (convert_nonlocal_reference, convert_local_reference): Call
21665         walk_omp_for on OMP_FOR.
21666         (convert_call_expr): Call walk_body on OMP_FOR's
21667         OMP_FOR_PRE_INIT_BODY.
21669 2008-01-25  Richard Guenther  <rguenther@suse.de>
21671         PR tree-optimization/34966
21672         * tree-ssa-math-opts.c (execute_cse_sincos_1): For all but
21673         default defs and PHI_NODEs we have to insert after the
21674         defining statement.
21676 2008-01-24  Nick Clifton  <nickc@redhat.com>
21678         * config/stormy16/stormy16-lib2.c (MIN_UNITS_PER_WORD):
21679         Provide a default definition.
21680         (LIBGCC2_UNITS_PER_WORD): Likewise.
21682         * config/stormy16/stormy16.c: Include df.h for the prototype
21683         for df_regs_ever_live_p.
21684         (xstormy16_expand_builtin_va_start): Convert the stack offset
21685         into a component_ref and then use POINTER_PLUS_EXPR to add it
21686         to the incoming_virtual_args_rtx.
21687         (xstormy16_gimplify_va_arg_expr): Rename to
21688         xstormy16_gimplify_va_arg_expr.
21689         Use POINTER_PLUS_EXPR when performing pointer arithmetic.
21690         (TARGET_GIMPLIFY_VA_ARG_EXPR): Use renamed
21691         xstormy16_gimplify_va_arg_expr.
21692         Fix up some formatting issues.
21694         * config/stormy16/stormy16.c: (xstormy16_carry_plus_operand):
21695         Move to predicates.md.
21696         (xs_hi_general_operand): Likewise.
21697         (xs_hi_nonmemory_operand): Likewise.
21698         * config/stormy16/predicates.md:
21699         (xstormy16_carry_plus_operand): New predicate.
21700         (xs_hi_general_operand): New predicate.
21701         (xs_hi_nonmemory_operand): New predicate.
21702         * config/stormy16/stormy16-protos.h:
21703         (xstormy16_carry_plus_operand): Delete prototype.
21704         (xs_hi_general_operand): Likewise.
21705         (xs_hi_nonmemory_operand): Likewise.
21707         * config/storm16/stormy16.md (addhi3): Remove earlyclobber
21708         modifiers as they are no longer needed and they can trigger
21709         reload spill failures.
21711         * config/storm16/stormy16.md (ineqbranchsi): Replace match_dup
21712         with a match_operand in order to help reload.
21714         * config/storm16/stormy16.md (movhi_internal): Replace 'r'
21715         constraint with 'e' for the 8th alternative as this version of
21716         the mov.w instruction only accepts the lower 8 registers.
21718 2008-01-25  Uros Bizjak  <ubizjak@gmail.com>
21720         PR target/34856
21721         * simplifx-rtx.c (simplify_const_binary_operation) [VEC_CONCAT]:
21722         Consider only CONST_INT, CONST_DOUBLE and CONST_FIXED as constant
21723         vector elements.
21725 2008-01-25  Jakub Jelinek  <jakub@redhat.com>
21727         PR middle-end/33333
21728         * gimplify.c (gimplify_omp_for): Gimplify OMP_FOR_PRE_BODY.
21730 2008-01-25  Golovanevsky Olga  <olga@il.ibm.com>
21732         * ipa-struct-reorg.c (remove_str_allocs_in_func, remove_str_allocs):
21733         New functions.
21734         (remove_structure): Update allocations list before removing structure.
21736 2008-01-25  Golovanevsky Olga  <olga@il.ibm.com>
21738         * ipa-struct-reorg.c (is_safe_cond_expr,
21739         create_new_stmts_for_cond_expr): Use integer_zerop function,
21740         that recognize not only zero-pointer, but zero-integer too.
21742 2008-01-25  Ben Elliston  <bje@au.ibm.com>
21744         PR other/22232
21745         * fixproto: Escape "." in sed expression that strips leading "./".
21747 2008-01-24  H.J. Lu  <hongjiu.lu@intel.com>
21749         PR driver/34904
21750         * gcc.c (SWITCH_OK): Removed.
21751         (SWITCH_LIVE): Changed to bit.
21752         (SWITCH_FALSE): Likewise.
21753         (SWITCH_IGNORE): Likewise.
21754         (switchstr): Change live_cond to unsigned int.
21755         (process_command): Replace SWITCH_OK with 0.
21756         (do_self_spec): Likewise.
21757         (set_collect_gcc_options): Check the SWITCH_IGNORE bit.
21758         (give_switch): Likewise.
21759         (used_arg): Likewise.
21760         (do_spec_1): Set the SWITCH_IGNORE bit.
21761         (check_live_switch): Check both SWITCH_LIVE and SWITCH_FALSE
21762         bits.  Set the SWITCH_LIVE bit.
21764 2008-01-24  Andreas Krebbel  <krebbel1@de.ibm.com>
21766         * config/s390/s390.h (MOVE_RATIO): Define new target macro.
21768 2008-01-24  Richard Sandiford  <rsandifo@nildram.co.uk>
21770         PR tree-optimization/34472
21771         * ipa-struct-reorg.c (safe_cond_expr_check): Change the DATA
21772         parameter to a "bool *" and set *DATA to false if there is
21773         an unsafe access.  Do not delete the structure here.
21774         (check_cond_exprs): Delete it here instead.
21775         (check_cond_exprs, exclude_cold_structs): Do not increase
21776         I when removing a structure.
21778 2008-01-24  Uros Bizjak  <ubizjak@gmail.com>
21780         PR target/34856
21781         * config/i386/i386.c (ix86_expand_vector_init): Consider only
21782         CONST_INT, CONST_DOUBLE and CONST_FIXED as constant vector elements.
21784 2008-01-24  Jakub Jakub Jelinek  <jakub@redhat.com>
21786         PR middle-end/34934
21787         * tree-stdarg.c (reachable_at_most_once): Use VEC vector instead of
21788         a fixed vector for stack.
21790 2008-01-24  Ben Elliston  <bje@au.ibm.com>
21792         PR c++/25701
21793         * doc/gcc.texi (Software development): Add a direntry for g++.
21795 2008-01-23  Hans-Peter Nilsson  <hp@axis.com>
21797         * config/cris/cris.h (CC1PLUS_SPEC, OPTIMIZATION_OPTIONS): Drop
21798         stale and straggling -fforce-addr comments above.
21800         * config/cris/cris.h (CRIS_SUBTARGET_VERSION, TARGET_VERSION): Don't
21801         define.
21802         * config/cris/linux.h (CRIS_SUBTARGET_VERSION): Don't define.
21803         * config/cris/aout.h (CRIS_SUBTARGET_VERSION): Don't define.
21805 2008-01-23  Michael Matz  <matz@suse.de>
21807         PR debug/34895
21808         * dwarf2out.c (force_type_die): Use modified_type_die instead of
21809         gen_type_die.
21811 2008-01-23  Andreas Krebbel  <krebbel1@de.ibm.com>
21813         * ipa-struct-reorg.c (create_new_malloc): Use pointer type as
21814         malloc result type.
21816 2008-01-23 Anatoly Sokolov <aesok@post.ru>
21818         * config/avr/avr.c (avr_current_arch): New variable.
21819         (avr_arch_types): Add 'avr31' and 'avr51' entries.
21820         (avr_arch): Add 'ARCH_AVR31' and 'ARCH_AVR51'.
21821         (avr_mcu_types): Add 'avr31' and 'avr51' architectures.
21822         (avr_override_options): Init 'avr_current_arch'.
21823         (base_arch_s): Move from here...
21824         * config/avr/avr.h (base_arch_s): ... here. Add new members
21825         'have_elpm', 'have_elpmx', 'have_eijmp_eicall', 'reserved'. Rename
21826         'mega' to 'have_jmp_call'.
21827         (TARGET_CPU_CPP_BUILTINS): Define "__AVR_HAVE_JMP_CALL__",
21828         "__AVR_HAVE_RAMPZ__", "__AVR_HAVE_ELPM__" and "__AVR_HAVE_ELPMX__"
21829         macros.
21830         (LINK_SPEC, CRT_BINUTILS_SPECS, ASM_SPEC): Add 'avr31' and 'avr51'
21831         architectures.
21832         * config/avr/t-avr (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
21833         MULTILIB_MATCHES): Ditto.
21835 2008-01-23  Richard Guenther  <rguenther@suse.de>
21837         PR middle-end/31529
21838         * cgraphunit.c (cgraph_reset_node): Always mark the node
21839         not reachable if it is not queued already.
21841 2008-01-23  Bernd Schmidt  <bernd.schmidt@analog.com>
21843         * config/bfin/bfin-protos.h (WA_RETS, ENABLE_WA_RETS): New macros.
21844         * config/bfin/bfin.c (bfin_cpus): Add WA_RETS everywhere.
21845         (cputype_selected): New static variable.
21846         (bfin_handle_option): Set it if -mcpu is used.
21847         (override_option): Select default set of workarounds if no cpu type
21848         selected on the command line.
21849         (workaround_rts_anomaly): Only run if ENABLE_WA_RETS.
21851         From  Michael Frysinger  <michael.frysinger@analog.com>
21852         * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add
21853         BFIN_CPU_BF547, BFIN_CPU_BF523, BFIN_CPU_BF524, and BFIN_CPU_BF526.
21855         * config/bfin/elf.h (LIB_SPEC): Use proper linker script
21856         for bf547, bf523, bf524, and bf526.
21857         * config/bfin/bfin.c (bfin_cpus[]): Add bf547,  bf523, bf524, and
21858         bf526.
21859         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
21860         __ADSPBF523__ for bf523, __ADSPBF524__ for bf524,
21861         __ADSPBF526__ for bf526, __ADSPBF52x__ for all three, as well as
21862         __ADSPBF547__ and __ADSPBF54x__ for bf547.
21863         * doc/invoke.texi (Blackfin Options): Document that
21864         -mcpu now accept bf547, bf523, bf524, and bf526.
21866 2008-01-22  Eric Botcazou  <ebotcazou@adacore.com>
21868         PR rtl-optimization/34628
21869         * combine.c (try_combine): Stop and undo after the first combination
21870         if an autoincrement side-effect on the first insn has effectively
21871         been lost.
21873 2008-01-22  David Edelsohn  <edelsohn@gnu.org>
21875         PR target/34529
21876         * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
21877         Offset addresses are not valid for Altivec or paired float modes.
21879 2008-01-22  Jakub Jelinek  <jakub@redhat.com>
21881         PR c++/34607
21882         * c-parser.c (c_parser_omp_for_loop): Don't call c_finish_omp_for
21883         if DECL_INITIAL (decl) is error_mark_node.
21885         PR c++/34914
21886         * c-common.c (handle_vector_size_attribute): Only allow
21887         integral, scalar float and fixed point types.  Handle OFFSET_TYPE
21888         the same way as pointer, array etc. types.
21889         * tree.c (reconstruct_complex_type): Handle OFFSET_TYPE.
21891         PR c++/34917
21892         * tree.c (build_type_attribute_qual_variant): Call
21893         build_qualified_type if attributes are equal, but quals are not.
21895 2008-01-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
21897         PR 32102
21898         * doc/invoke.texi (-Wall): -Wall enables -Wstrict-overflow=1.
21899         * flags.h (warn_strict_aliasing): Remove.
21900         (warn_strict_overflow): Remove.
21901         * opts.c (warn_strict_aliasing): Remove.
21902         (warn_strict_overflow): Remove.
21903         * c-opts.c (c_common_handle_option): -Wall only sets
21904         -Wstrict-aliasing or -Wstrict-overflow if they are uninitialized.
21905         (c_common_post_options): Give default values to -Wstrict-aliasing
21906         and -Wstrict-overflow if they are uninitialized.
21907         * common.opt (Wstrict-aliasing): Specify Var and Init.
21908         (Wstrict-overflow): Likewise.
21910 2008-01-22  Kenneth Zadeck  <zadeck@naturalbridge.com>
21912         PR rtl-optimization/26854
21913         PR rtl-optimization/34400
21914         PR rtl-optimization/34884
21915         * ddg.c (create_ddg_dep_from_intra_loop_link): Use
21916         DF_RD->gen.
21917         * df.h (df_changeable_flags.DF_RD_NO_TRIM): Deleted
21918         (df_rd_bb_info.expanded_lr_out): Deleted
21919         * loop_invariant.c (find_defs): Deleted DF_RD_NO_TRIM flag.
21920         * loop_iv.c (iv_analysis_loop_init): Ditto.  * df-problems.c
21921         (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
21922         df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
21923         Removed code to allocate, initialize or free expanded_lr_out.
21924         (df_rd_bb_local_compute_process_def): Restructured to make more
21925         understandable.
21926         (df_rd_confluence_n): Removed code to no apply invalidate_by_call
21927         sets if the sets are being trimmed.
21929 2008-01-22  H.J. Lu  <hongjiu.lu@intel.com>
21931         PR bootstrap/32287
21932         * configure.ac (ld_vers): Support GNU linker version xx.xx.*
21933         (as_vers): Likewise.
21934         * configure: Regenerated.
21936 2008-01-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
21938         PR middle-end/33092
21939         * tree-pass.h (pass_build_alias): New pass.
21940         * tree-ssa-alias.c (gate_build_alias): New.
21941         (pass_build_alias): New.
21942         * passes.c (init_optimization_passes): Add pass_build_alias after
21943         pass_create_structure_vars.
21945 2008-01-22  Wolfgang Gellerich  <gellerich@de.ibm.com>
21947         * config/s390/s390.h (S390_TDC_POSITIVE_NORMALIZED_NUMBER):
21948         Renamed to S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER.
21949         (S390_TDC_NEGATIVE_NORMALIZED_NUMBER): Renamed to
21950         S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER.
21951         (S390_TDC_POSITIVE_DENORMALIZED_NUMBER): Renamed to
21952         S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER.
21953         (S390_TDC_NEGATIVE_DENORMALIZED_NUMBER): Renamed to
21954         S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER.
21955         (S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER): New constant.
21956         (S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER): New constant.
21957         (S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER): New constant.
21958         (S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER): New constant.
21959         * config/s390/s390.md (FP_ALL): New mode iterator.
21960         (_d): New mode attribute.
21961         ("*signbit<mode>2>"): Changed mode of first operand.
21962         ("isinf<mode>2"): Changed mode of first operand.
21963         ("*TDC_insn"): Adaptation for DFP modes.
21965 2008-01-22  Ben Elliston  <bje@au.ibm.com>
21967         * tree.c (check_qualified_type): Improve function description.
21969 2008-01-21  Jason Merrill  <jason@redhat.com>
21971         PR c++/34196
21972         * tree.h (TRY_CATCH_IS_CLEANUP): New macro.
21973         * tree-eh.c (honor_protect_cleanup_actions): Strip TRY_CATCH_EXPR
21974         if it is set.
21976 2008-01-21  DJ Delorie  <dj@redhat.com>
21978         * doc/tm.texi (HARD_REGNO_NREGS): Note that this macro must not
21979         return zero.
21981 2008-01-21  Richard Guenther  <rguenther@suse.de>
21983         PR middle-end/34856
21984         * tree-cfg.c (verify_expr): Allow all invariant expressions
21985         instead of just constant class ones as reference argument.
21986         * tree-ssa-loop-im.c (for_each_index): Handle CONSTRUCTOR
21987         like any other constant.
21988         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
21990 2008-01-21  H.J. Lu  <hongjiu.lu@intel.com>
21992         * regmove.c (fixup_match_1): Update call crossed frequencies.
21994 2008-01-21  Richard Guenther  <rguenther@suse.de>
21996         PR c/34885
21997         * tree-inline.c (setup_one_parameter): Deal with mismatched
21998         types using a VIEW_CONVERT_EXPR.
22000 2008-01-21  Alon Dayan  <alond@il.ibm.com>
22001             Olga Golovanevsky  <olga@il.ibm.com>
22003         PR tree-optimization/34701
22004         * ipa-struct-reorg.c (gen_size): Fix the malloc parameter calculation
22005         when the structure size is not a power of 2.
22007 2008-01-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
22009         * doc/install.texi: Add doc for --enable-checking=df.
22011 2008-01-20  Kaz Kojima  <kkojima@gcc.gnu.org>
22013         PR rtl-optimization/34808
22014         * emit-rtl.c (try_split): Handle REG_RETVAL notes.
22016 2008-01-20  Richard Sandiford  <rsandifo@nildram.co.uk>
22018         * global.c (find_reg): Only compute EH_RETURN_DATA_REGNO once per
22019         input.
22021 2008-01-19  Kenneth Zadeck  <zadeck@naturalbridge.com>
22023         PR rtl-optimization/26854
22024         PR rtl-optimization/34400
22025         * ddg.c (create_ddg_dep_from_intra_loop_link): Do not use
22026         DF_RD->gen.
22027         * df.h (df_changeable_flags.DF_RD_NO_TRIM): New.
22028         (df_rd_bb_info.expanded_lr_out): New.
22029         * loop_invariant.c (find_defs): Added DF_RD_NO_TRIM flag.
22030         * loop_iv.c (iv_analysis_loop_init): Ditto.
22031         * df-problems.c (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
22032         df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
22033         Added code to allocate, initialize or free expanded_lr_out.
22034         (df_rd_bb_local_compute_process_def): Restructured to make
22035         more understandable.
22036         (df_rd_confluence_n): Add code to do nothing with fake edges and
22037         code to no apply invalidate_by_call sets if the sets are being trimmed.
22038         (df_lr_local_finalize): Renamed to df_lr_finalize.
22039         (df_live_local_finalize): Renamed to df_live_finalize.
22041 2008-01-20  Richard Sandiford  <rsandifo@nildram.co.uk>
22043         PR target/34831
22044         * config/mips/mips.md (div<mode>3): Use <recip_condition> when
22045         deciding whether to use reciprocal instructions.
22047 2008-01-19  Uros Bizjak  <ubizjak@gmail.com>
22049         * dwarf2out.c (dwarf2out_switch_text_section): Do not call
22050         dwarf2out_note_section_used if cold_text_section is NULL.
22052 2008-01-19  Jakub Jelinek  <jakub@redhat.com>
22054         PR gcov-profile/34610
22055         * tree-cfg.c (make_edges): Mark both outgoing edges from
22056         OMP_CONTINUE and from OMP_FOR as EDGE_ABNORMAL.
22057         * omp-low.c (expand_omp_for): Clear EDGE_ABNORMAL bits
22058         from OMP_FOR and OMP_CONTINUE outgoing edges.
22060         * tree-profile.c (tree_profiling): Return early if
22061         cfun->after_tree_profile != 0.  Set cfun->after_tree_profile
22062         at the end.
22063         * omp-low.c (expand_omp_parallel): Copy after_tree_profile
22064         from cfun to child_cfun.
22065         * function.h (struct function): Add after_tree_profile bit.
22067 2008-01-19 Anatoly Sokolov <aesok@post.ru>
22069         * config/avr/avr.S (_exit): Disable interrupt.
22071 2008-01-18  Kenneth Zadeck  <zadeck@naturalbridge.com>
22072             Steven Bosscher  <stevenb.gcc@gmail.com>
22074         PR rtl-optimization/26854
22075         PR rtl-optimization/34400
22076         * df-problems.c (df_live_scratch): New scratch bitmap.
22077         (df_live_alloc): Allocate df_live_scratch when doing df_live.
22078         (df_live_reset): Clear the proper bitmaps.
22079         (df_live_bb_local_compute): Only process the artificial defs once
22080         since the order is not important.
22081         (df_live_init): Init the df_live sets only with the variables
22082         found live by df_lr.
22083         (df_live_transfer_function): Use the df_lr sets to prune the
22084         df_live sets as they are being computed.
22085         (df_live_free): Free df_live_scratch.
22087 2008-01-18  Ian Lance Taylor  <iant@google.com>
22089         * common.opt: Add fmerge-debug-strings.
22090         * dwarf2out.c (DEBUG_STR_SECTION_FLAGS): Test
22091         flag_merge_debug_strings rather than flag_merge_constants.
22092         * doc/invoke.texi (Option Summary): Mention
22093         -fmerge-debug-strings.
22094         (Debugging Options): Document -fmerge-debug-strings.
22096 2008-01-18  Ian Lance Taylor  <iant@google.com>
22098         PR c++/33407
22099         * tree.h (DECL_IS_OPERATOR_NEW): Define.
22100         (struct tree_function_decl): Add new field operator_new_flag.
22101         * tree-inline.c (expand_call_inline): When inlining a call to
22102         operator new, force the return value to go into a variable, and
22103         set DECL_NO_TBAA_P on that variable.
22104         * c-decl.c (merge_decls): Merge DECL_IS_OPERATOR_NEW flag.
22106 2008-01-18  Uros Bizjak  <ubizjak@gmail.com>
22108         PR debug/34484
22109         * dwarf2out.c (dwarf2out_switch_text_section): Do not guard with
22110         DWARF2_DEBUGGING_INFO.
22111         (dwarf2out_note_section_used): Ditto.  Add prototype.
22112         (have_multiple_function_sections, text_section_used,
22113         cold_text_section_used, *cold_text_sections): Move declarations
22114         before their uses.
22116 2008-01-17  Bob Wilson  <bob.wilson@acm.org>
22118         * config/xtensa/unwind-dw2-xtensa.h (_Unwind_FrameState): Remove pc
22119         field and add signal_ra.
22120         * config/xtensa/unwind-dw2-xtensa.c (uw_frame_state_for): Remove
22121         assignments to frame state pc.  Move end of stack check after
22122         MD_FALLBACK_FRAME_STATE_FOR.
22123         (uw_update_context_1): Use frame state signal_regs if set, instead
22124         of checking signal_frame flag.
22125         (uw_update_context): Use frame state signal_ra if set.
22126         * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Define.
22127         * config/xtensa/linux-unwind.h: New file.
22129 2008-01-18  Bernhard Fischer  <aldot@gcc.gnu.org>
22131         * modulo-sched.c (get_sched_window): Fix comment typo.
22133 2008-01-17  Andrew MacLeod  <amacleod@redhat.com>
22135         PR tree-optimization/34648
22136         * tree-ssa-sccvn.c (visit_use): Expressions which can throw are varying.
22138 2008-01-17  Anatoly Sokolov <aesok@post.ru>
22140         * config/avr/avr.h (LINK_SPEC): Support -mrelax and -mpmem-wrap-around.
22141         * config/avr/avr.opt (mrelax, mpmem-wrap-around): Add.
22143 2008-01-17  Seongbae Park  <seongbae.park@gmail.com>
22145         PR rtl-optimization/34400
22146         * df-core.c (df_worklist_dataflow_overeager,
22147         df_worklist_dataflow_doublequeue): New functions.
22148         (df_worklist_dataflow): Two different worklist solvers.
22149         * params.def (PARAM_DF_DOUBLE_QUEUE_THRESHOLD_FACTOR):
22150         New param.
22152 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
22154         PR testsuite/34821
22155         * doc/invoke.texi: Document the dependence on pthread for fopenmp
22156         and ftree-parallelize-loops.
22158 2008-01-17  Mircea Namolaru  <namolaru@il.ibm.com>
22160         PR rtl-optimization/34826
22161         * loop-doloop (doloop_modify): Update the REG_BR_PROB note.
22163 2008-01-17  Andreas Krebbel  <krebbel1@de.ibm.com>
22165         * global.c (find_reg): Mark the eh regs as used if necessary.
22166         * ra-conflict.c (global_conflicts): Set no_eh_reg flag.
22167         * ra.h (struct allocno): no_eh_reg field added.  Changed
22168         no_stack_reg type to bitfield.
22170 2008-01-17  Eric Botcazou  <ebotcazou@adacore.com>
22172         * tree.c (substitute_in_expr): Add missing 'break'.
22174 2008-01-17  Richard Guenther  <rguenther@suse.de>
22176         PR tree-optimization/34825
22177         * tree-ssa-math-opts.c (is_division_by): Do not recognize
22178         x / x as division to handle.
22180 2008-01-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
22182         * pa64-hpux.h (LIB_SPEC): Add "-lpthread" in shared links if "-mt" or
22183         "-pthread" is specified.
22184         * pa-hpux11.h (LIB_SPEC): Likewise.
22186 2008-01-16  Janis Johnson  <janis187@us.ibm.com>
22187             Peter Bergner  <bergner@vnet.ibm.com>
22189         PR rtl-optimization/33796
22190         * sparseset.c (sparseset_alloc): Use xcalloc rather than xmalloc.
22192 2008-01-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
22194         PR libgfortran/34699
22195         * pa-hpux.h (LINK_SPEC): Only search /lib/pa1.1 and /usr/lib/pa1.1 on
22196         static links.
22197         * pa-hpux10.h (LINK_SPEC): Likewise.
22198         * pa-hpux11.h (LINK_SPEC): Don't search /lib/pa1.1 and /usr/lib/pa1.1.
22200 2008-01-16  Richard Guenther  <rguenther@suse.de>
22202         PR middle-end/32628
22203         * fold-const.c (fold_convert_const_int_from_int): Do not
22204         set overflow if that occured only because of a sign extension
22205         change when converting from/to a sizetype with the same
22206         precision and signedness.
22208 2008-01-16  Uros Bizjak  <ubizjak@gmail.com>
22210         PR debug/34249
22211         * dwarf2out.c (output_call_frame_info): Move output of FDE initial
22212         location address to the correct place.  Update copyright year.
22214 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
22216         * lambda-code.c (lambda_transform_legal_p): Handle the case of
22217         no dependences in the dependence_relations vector.
22219 2008-01-16  Jan Hubicka  <jh@suse.cz>
22221         PR rtl-optimization/31396
22222         * regstat.c (regstat_bb_compute_ri): Compute FREQ_CALLS_CROSSED.
22223         * cfg.c (dump_reg_info): Print it.
22224         * regs.h (struct reg_info_t): add freq_calls_crossed.
22225         (REG_FREQ_CALLS_CROSSED): New macro.
22226         * global.c (global_alloc): Compute freq_calls_crossed for allocno.
22227         (find_reg): Update call of CALLER_SAVE_PROFITABLE.
22228         * regmove.c (optimize_reg_copy_1, optimize_reg_copy_2, fixup_match_2,
22229         regmove_optimize): Update call crossed frequencies.
22230         * local-alloc.c (struct qty): Add freq_calls_crossed.
22231         (alloc_qty): Copute freq_calls_crossed.
22232         (update_equiv_regs, combine_regs): Update REG_FREQ_CALLS_CROSSED.
22233         (find_free_reg): Update call of CALLER_SAVE_PROFITABLE.
22234         * ra.h (struct allocno): Add freq_calls_crossed.
22236 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
22238         * gcc.c (LINK_COMMAND_SPEC): Add includes and link options for
22239         libgomp when compiling with ftree-parallelize-loops.
22240         (GOMP_SELF_SPECS): Add -pthread for ftree-parallelize-loops.
22242 2008-01-16  Richard Guenther  <rguenther@suse.de>
22244         PR tree-optimization/34769
22245         * tree-data-ref.c (initialize_matrix_A): Revert fix for PR34458.
22246         * tree.c (int_cst_value): Instead make this function more
22247         permissive in what it accepts as valid input.  Document this
22248         function always sign-extends the value.
22250 2008-01-16  Jakub Jelinek  <jakub@redhat.com>
22251             Richard Guenther  <rguenther@suse.de>
22253         PR c/34668
22254         * gimplify.c (fold_indirect_ref_rhs): Rename to ...
22255         (gimple_fold_indirect_ref_rhs): ... this.
22256         (gimple_fold_indirect_ref): New function with foldings
22257         that preserve lvalueness.
22258         (gimplify_modify_expr_rhs): Call gimple_fold_indirect_ref_rhs.
22259         * tree-flow.h (gimple_fold_indirect_ref): Declare.
22260         * tree-inline.c (copy_body_r): Use gimple_fold_indirect_ref
22261         to fold an INDIRECT_REF, fall back to the old use of
22262         fold_indirect_ref_1.
22264 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
22266         * tree-data-ref.c (subscript_dependence_tester_1): Call
22267         free_conflict_function.
22268         (compute_self_dependence): Same.
22270 2008-01-16  Uros Bizjak  <ubizjak@gmail.com>
22272         PR debug/34249
22273         * debug.h (dwarf2out_switch_text_section): Move declaration from ...
22274         * dwarf2out.c (dwarf2out_switch_text_section): ... here.  Make
22275         function global.
22276         * final.c (final_scan_insn) [NOTE_INSN_SWITCH_TEXT_SECTIONS]:
22277         Depending on dwarf2out_do_frame, call dwarf2out_switch_text_section
22278         for DWARF2_UNWIND_INFO targets.
22280 2008-01-16  Richard Guenther  <rguenther@suse.de>
22282         PR c/34768
22283         * c-typeck.c (common_pointer_type): Do not merge inconsistent
22284         type qualifiers for function types.
22286 2008-01-15  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
22288         * tree-parloops.c (gen_parallel_loop): Fix ommision of declaration for
22289         loop_iterator li from previous commit.
22291 2008-01-15  Sebastian Pop  <sebastian.pop@amd.com>
22293         * tree-parloops.c (gen_parallel_loop): Free loop bound estimations.
22295 2008-01-12  Sebastian Pop  <sebastian.pop@amd.com>
22297         * tree-parloops.c (loop_has_blocks_with_irreducible_flag): New.
22298         (parallelize_loops): Don't parallelize irreducible components.
22300 2008-01-14  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
22302         PR c++/24924
22303         * c-opts (c_common_post_options): Do not enable CPP
22304         flag_pedantic_errors by default.
22306 2008-01-14  Eric Botcazou  <ebotcazou@adacore.com>
22308         PR rtl-optimization/31944
22309         * cse.c (remove_pseudo_from_table): New function.
22310         (merge_equiv_classes): Use above function to remove pseudo-registers.
22311         (invalidate): Likewise.
22313 2008-01-13  Richard Guenther  <rguenther@suse.de>
22315         PR middle-end/34601
22316         * emit-rtl.c (set_reg_attrs_for_decl_rtl): Use DECL_MODE
22317         instead of TYPE_MODE to deal with calls from expand_one_error_var.
22319 2008-01-13  Uros Bizjak  <ubizjak@gmail.com>
22321         * gcse.c (cprop_jump): Call validate_unshare_change instead of
22322         validate_change to unshare the source of the PC set.
22324 2008-01-12  Jan Hubicka  <jh@suse.cz>
22326         PR middle-end/32135
22327         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Do not construct
22328         references above array bounds.  This might trigger bounds checks for
22329         pointers to arrays.
22331 2008-01-12  Sebastian Pop  <sebastian.pop@amd.com>
22333         * tree-ssa-ter.c (free_temp_expr_table): Free num_in_part and
22334         new_replaceable_dependencies.
22336 2008-01-12  Doug Kwan  <dougkwan@google.com>
22338         * c-decl.c: (grokdeclarator): Use OPT_Wignored_qualifiers
22339         instead of OPT_Wreturn_type in warning due to ignored return type
22340         qualifiers.
22341         * c-opt.c (c_common_post_option): Add -Wignored-qualifiers to
22342         options included in -Wextra.
22343         * c.opt: New option -Wignored_qualifiers.
22344         * doc/invoke.texi (Warning Options, -Wextra): Add new option
22345         -Wignore_qualifiers.
22346         (-Wignored-qualifiers): Document.
22347         (-Wreturn-type): Remove description of functionality now handled
22348         by -Wignored-qualifiers.
22350 2008-01-12  Eric Botcazou  <ebotcazou@adacore.com>
22352         PR ada/33788
22353         * fold-const.c (fold_unary) <VIEW_CONVERT_EXPR>: Fold an existing
22354         NOP_EXPR if it is between integral types with the same precision.
22356 2008-01-12  Jan Hubicka  <jh@suse.cz>
22358         PR other/28023
22359         * invoke.texi (max-inline-recursive-depth): Fix default value.
22361 2008-01-12  Zdenek Dvorak  <ook@ucw.cz>
22363         * tree-parloops.c (transform_to_exit_first_loop): Cast nit to the
22364         correct type.
22366 2008-01-11  Bob Wilson  <bob.wilson@acm.org>
22368         * config/xtensa/xtensa.c (override_options): Set flag_shlib.
22370 2008-01-11  James E. Wilson  <wilson@specifix.com>
22372         PR target/26015
22373         * config/vax/elf.h (FRAME_POINTER_CFA_OFFSET): Define.
22375 2008-01-11  Anatoly Sokolov <aesok@post.ru>
22377         * config/avr/avr.c (expand_prologue, expand_epilogue): Don't
22378         save/restore frame pointer register and don't use 'call-prologues'
22379         optimization in function with "OS_task" attribute.
22381 2008-01-11  Eric Botcazou  <ebotcazou@adacore.com>
22383         PR middle-end/31309
22384         * expr.c (copy_blkmode_from_reg): Use a mode suited to the size
22385         when copying to memory.
22387 2008-01-11  Steven Bosscher  <stevenb.gcc@gmail.com>
22389         PR rtl-optimization/30905
22390         * cfgcleanup.c: Include dce.h
22391         (crossjumps_occured): New global variable.
22392         (try_crossjump_bb): Exit loop after finding a fallthru edge.
22393         If something changed, set crossjumps_occured to true.
22394         (try_optimize_cfg): Clear crossjumps_occured at the beginning.
22395         Don't add/remove fake edges to exit here...
22396         (cleanup_cfg): ...but do it here, when crossjumping.
22397         Run a fast DCE when successful crossjumps occured in the latest
22398         iteration of try_optimize_cfg.
22400 2008-01-11  Richard Guenther  <rguenther@suse.de>
22402         * tree-ssa-sccvn.c (struct vn_binary_op_s): Move hashcode near opcode.
22403         (struct vn_unary_op_s): Likewise.
22404         (vn_reference_insert): Free old reference on hash collision.
22406 2008-01-10  Raksit Ashok  <raksit@google.com>
22408         PR rtl-optimization/27971
22409         * combine.c (find_split_point): Split PLUS expressions which are
22410         inside a MEM rtx, and whose first operand is complex.
22412 2008-01-10  DJ Delorie  <dj@redhat.com>
22414         * config/m32c/m32c.c (m32c_hard_regno_nregs_1): Renamed from...
22415         (m32c_hard_regno_nregs): ...this, which is now a wrapper.
22416         (m32c_hard_regno_ok): Call the underlying function.
22418 2008-01-10  Richard Guenther  <rguenther@suse.de>
22420         PR middle-end/34683
22421         * tree-cfg.c (tree_merge_blocks): Do not go through the
22422         full-blown folding and stmt updating path if we just deal
22423         with virtual operands.
22424         * tree-ssa-copy.c (may_propagate_copy): Do not short-cut
22425         test for abnormal SSA_NAMEs.
22427 2008-01-10  Andreas Krebbel  <krebbel1@de.ibm.com>
22429         PR middle-end/34641
22430         * reload.c (push_reload): Add assertions.  All constants from
22431         reg_equiv_constant should have been used for replacing the respective
22432         pseudo earlier.
22433         (find_reloads_address): Invoke find_reloads_address_part for
22434         constant taken from the reg_equiv_constant array.
22436 2008-01-10  Steven Bosscher  <stevenb.gcc@gmail.com>
22438         * tree-ssa-sccvn.h (struct vn_ssa_aux): Make the most accessed
22439         field (valnum) the first in the struct.  Replace bools with
22440         unit bit fields.
22442 2008-01-10  Richard Guenther  <rguenther@suse.de>
22444         PR tree-optimization/34651
22445         * tree-sra.c (sra_build_assignment): Sanitize.  Use the correct
22446         types and ordering for masking and converting.
22448 2008-01-09  Sebastian Pop  <sebastian.pop@amd.com>
22450         PR tree-optimization/34017
22451         * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Generate code
22452         also for PHI_NODE expressions.
22454 2008-01-09  Jan Hubicka  <jh@suse.cz>
22456         PR tree-optimization/34708
22457         * tree-inline.c (estimate_num_insns_1): Compute cost of SWITCH_EXPR
22458         based on number of case labels.
22459         (init_inline_once): Remove switch_cost.
22460         * tree-inline.h (eni_weights_d): Remove switch_cost.
22462 2008-01-09  Richard Guenther  <rguenther@suse.de>
22463         Andrew Pinski  <andrew_pinski@playstation.sony.com>
22465         PR middle-end/30132
22466         * gimplify.c (gimplify_cond_expr): Do not create an addressable
22467         temporary if an rvalue is ok or an lvalue is not required.
22469 2008-01-09  Richard Guenther  <rguenther@suse.de>
22471         PR middle-end/34458
22472         * tree-data-ref.c (initialize_matrix_A): Use tree_low_cst,
22473         adjust return type.
22475 2008-01-09  Richard Guenther  <rguenther@suse.de>
22477         PR middle-end/34679
22478         * tree.c (host_integerp): Check for sizetype only if the
22479         type is an integer type.
22481 2008-01-09  Steven Bosscher  <stevenb.gcc@gmail.com>
22483         PR debug/26364
22484         * opts.c (decode_options): Disable inlining of functions called
22485         once if not in unit-at-a-time mode.
22487 2008-01-09  Alexandre Oliva  <aoliva@redhat.com>
22489         * Makefile.in (dse.o): Remove duplicate $(RECOG_H) dependency.
22491 2008-01-08  Richard Guenther  <rguenther@suse.de>
22493         PR middle-end/31863
22494         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Bail
22495         out early if the result will be unused.
22497 2008-01-08  Uros Bizjak  <ubizjak@gmail.com>
22499         PR target/34709
22500         Revert:
22502         2008-01-05  Uros Bizjak  <ubizjak@gmail.com>
22503         * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
22504         for TARGET_RECIP.
22506 2008-01-08  Jan Sjodin  <jan.sjodin@amd.com>
22508         * config/i386/i386.c (k8_cost, amdfam10_cost): Branch costs
22509         for vectorization tuned.
22511 2008-01-08  Richard Guenther  <rguenther@suse.de>
22513         PR tree-optimization/34683
22514         * tree-ssa-operands.c (operand_build_cmp): Export.
22515         * tree-ssa-operands.h (operand_build_cmp): Declare.
22516         * tree-vn.c (vuses_compare): Remove.
22517         (sort_vuses): Use operand_build_cmp.
22518         (sort_vuses_heap): Likewise.
22519         * tree-ssa-sccvn.c (vuses_to_vec): Use VEC_reserve, not VEC_alloc
22520         to re-use old VEC if available.  Do not sort already sorted VUSEs.
22521         (vdefs_to_vec): Do not sort already sorted VDEFs.
22523 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
22525         PR middle-end/34694
22526         * omp-low.c (copy_var_decl): Copy also DECL_SOURCE_LOCATION.
22528 2008-01-08  Uros Bizjak  <ubizjak@gmail.com>
22530         PR target/34702
22531         * doc/invoke.texi (i386 and x86-64 Options) [mrecip]: Document
22532         limitations of reciprocal sequences on x86 targets.
22534 2008-01-08  Richard Guenther  <rguenther@suse.de>
22536         PR tree-optimization/34683
22537         * tree-flow-inline.h (var_ann): Remove overzealous asserts.
22539 2008-01-07  Jakub Jelinek  <jakub@redhat.com>
22541         PR target/34622
22542         * config/darwin.c (darwin_mergeable_string_section): Don't use
22543         .cstring if int_size_in_bytes != TREE_STRING_LENGTH.
22545 2008-01-07  Uros Bizjak  <ubizjak@gmail.com>
22547         PR target/34682
22548         * config/i386/i386.md (neg<mode>2): Rename from negsf2, negdf2 and
22549         negxf2.  Macroize expander using X87MODEF mode iterator.  Change
22550         predicates of op0 and op1 to register_operand.
22551         (abs<mode>2): Rename from abssf2, absdf2 and negxf2.  Macroize
22552         expander using X87MODEF mode iterator.  Change predicates of
22553         op0 and op1 to register_operand.
22554         ("*absneg<mode>2_mixed", "*absneg<mode>2_sse"): Rename from
22555         corresponding patterns and macroize using MODEF macro.  Change
22556         predicates of op0 and op1 to register_operand and remove
22557         "m" constraint. Disparage "r" alternative with "!".
22558         ("*absneg<mode>2_i387"): Rename from corresponding patterns and
22559         macroize using X87MODEF macro.  Change predicates of op0 and op1
22560         to register_operand and remove "m" constraint.  Disparage "r"
22561         alternative with "!".
22562         (absneg splitter with memory operands): Remove.
22563         ("*neg<mode>2_1", "*abs<mode>2_1"): Rename from corresponding
22564         patterns and macroize using X87MODEF mode iterator.
22565         * config/i386/sse.md (negv4sf2, absv4sf2, neg2vdf2, absv2df2):
22566         Change predicate of op1 to register_operand.
22567         * config/i386/i386.c (ix86_expand_fp_absneg_operator): Remove support
22568         for memory operands.
22570 2008-01-07  Nathan Froyd  <froydnj@codesourcery.com>
22572         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add clause for mcpu=8548.
22574 2008-01-07  Richard Guenther  <rguenther@suse.de>
22576         * basic-block.h (struct edge_def): Pair dest_idx with goto_locus
22577         fields.
22579 2008-01-07  Richard Guenther  <rguenther@suse.de>
22581         PR tree-optimization/34683
22582         * tree-ssa-sccvn.c (vuses_to_vec): Pre-allocate the vector of
22583         VOPs of the needed size to save memory.  Use VEC_quick_push
22584         to save compile-time.
22585         (vdefs_to_vec): Likewise.
22587 2008-01-07  Sa Liu  <saliu@de.ibm.com>
22589         * config/spu/spu.md (divdf3): Genetate inline code for double
22590         division.  The implementation doesn't handle INF or NAN, therefore it
22591         only applies when -ffinite-math-only is given.
22593 2008-01-06  Paolo Carlini  <pcarlini@suse.de>
22595         PR libstdc++/34680
22596         * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_RTTI, if appropriate.
22597         * doc/cpp.texi ([Common Predefined Macros]): Document.
22599 2008-01-06  Uros Bizjak  <ubizjak@gmail.com>
22601         * config/i386/i386.c (ix86_emit_swsqrtsf): Use negative constants in
22602         order to use commutative addition instead of subtraction.
22604 2008-01-06  Andrew Pinski  <andrew_pinski@playstation.sony.com>
22605             Mircea Namolaru  <namolaru@il.ibm.com>
22606             Vladimir Yanovsky  <yanov@il.ibm.com>
22607             Revital Eres  <eres@il.ibm.com>
22609         PR tree-optimization/34263
22610         * tree-outof-ssa.c (process_single_block_loop_latch,
22611         contains_tree_r): New functions.
22612         (analyze_edges_for_bb): Call process_single_block_loop_latch
22613         function to empty single-basic-block latch block if possible.
22615 2008-01-05  Uros Bizjak  <ubizjak@gmail.com>
22617         * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
22618         for TARGET_RECIP.
22619         (ix86_emit_swsqrtsf): Do not filter out infinity for rsqrt expansion.
22621 2008-01-05  Richard Sandiford  <rsandifo@nildram.co.uk>
22623         * c-omp.c (check_omp_for_incr_expr): Handle CONVERT_EXPR.
22625 2008-01-05  Richard Sandiford  <rsandifo@nildram.co.uk>
22627         * config/mips/mips.c (mips_in_small_data_p): Reinstate size > 0 check.
22629 2008-01-05  Jakub Jelinek  <jakub@redhat.com>
22631         PR tree-optimization/34618
22632         * tree-outof-ssa.c (create_temp): Copy over DECL_GIMPLE_REG_P
22633         flag from T.
22635 2008-01-05  Uros Bizjak  <ubizjak@gmail.com>
22637         PR target/34673
22638         * config/i386/i386.c (ix86_emit_swsqrtsf): Swap input operands
22639         in the call to gen_rtx_NE.  Remove unneeded VECTOR_MODE_P check.
22640         Update copyright year.
22642         * config/i386/i386.md (rsqrtsf2): Enable for TARGET_SSE_MATH.
22643         Update copyright year.
22644         * config/i386/sse.md (rsqrtv4sf2): Ditto. Unconditionally expand
22645         using NR fixup.
22647 2008-01-05  Zhouyi Zhou  <zhouzhouyi@FreeBSD.org>
22649         * tree-vrp.c (find_conditional_asserts): Remove redundant check that
22650         edge does not point to current bb before changing need_assert.
22652 2008-01-04  Richard Guenther  <rguenther@suse.de>
22654         PR middle-end/34029
22655         * tree-cfg.c (verify_expr): Do not look inside ADDR_EXPRs
22656         for verifying purposes if they are is_gimple_min_invariant.
22658 2008-01-04  Aldy Hernandez  <aldyh@redhat.com>
22660         PR tree-optimization/34448
22661         PR tree-optimization/34465
22662         * gimplify.c (gimplify_init_constructor): Add new parameter
22663         notify_temp_creation.  Use it.
22664         (gimplify_modify_expr_rhs): Take volatiles into account when
22665         optimizing constructors.
22666         Do not optimize constructors if gimplify_init_constructor will dump to
22667         memory.
22668         * gcc.dg/tree-ssa/pr32901.c: Tests const volatiles.
22669         * gcc.c-torture/compile/pr34448.c: New.
22671 2008-01-04  Jakub Jelinek  <jakub@redhat.com>
22673         PR gcov-profile/34609
22674         * tree-inline.c (declare_return_variable): Set TREE_ADDRESSABLE on
22675         return_slot if result is TREE_ADDRESSABLE.
22677 2008-01-04  Richard Sandiford  <rsandifo@nildram.co.uk>
22679         * config/mips/mips.md (sqrt_condition): Tweak comment.
22680         (recip_condition): Likewise.  Require TARGET_FLOAT64 for DFmode.
22682 2008-01-03  Tom Tromey  <tromey@redhat.com>
22684         PR c/34457
22685         * c-common.c (c_type_hash): Handle VLAs.
22687 2008-01-03  Jan Hubicka  <jh@suse.cz>
22689         PR tree-optimization/31081
22690         * tree-inline.c (remap_ssa_name): Initialize uninitialized SSA vars to
22691         0 when inlining and not inlining to first basic block.
22692         (remap_decl): When var is initialized to 0, don't set default_def.
22693         (expand_call_inline): Set entry_bb.
22694         * tree-inline.h (copy_body_data): Add entry_bb.
22696 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
22698         PR c++/34619
22699         * cgraphunit.c (cgraph_build_static_cdtor): set_cfun back to NULL
22700         before returning.
22702         PR tree-optimization/29484
22703         * tree-inline.c (inline_forbidden_p_2): New function.
22704         (inline_forbidden_p): Disallow inlining if some static var
22705         has an address of a local LABEL_DECL in its initializer.
22706         * doc/extend.texi (Labels as Values): Document &&foo behaviour
22707         vs. inlining.
22709 2008-01-03  Sebastian Pop  <sebastian.pop@amd.com>
22711         PR tree-optimization/34635
22712         * tree-data-ref.c (add_other_self_distances): Make sure that the
22713         evolution step is constant.
22715 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
22717         PR middle-end/34608
22718         * omp-low.c (expand_omp_parallel): Purge dead EH edges in the child fn.
22720 2008-01-02  Richard Sandiford  <rsandifo@nildram.co.uk>
22722         * tree-sra.c (scalarize_init): Insert the generate_element_init
22723         statements after the generate_element_zero statements.
22725 2008-01-02  Richard Guenther  <rguenther@suse.de>
22727         PR middle-end/34093
22728         PR middle-end/31976
22729         * tree-ssa-operands.c (ssa_operand_alloc): Also allocate a buffer
22730         for very large number of operands instead of ICEing.
22732 2008-01-02  Arthur Norman <acn1@cam.ac.uk>
22734         PR target/34013
22735         * config/i386/i386.c (ix86_expand_prologue): Save red-zone
22736         while stack probing.
22738 2008-01-01  Douglas Gregor  <doug.gregor@gmail.com>
22740         * c-opts.c (sanitize_cpp_opts): Don't warn about "long long" when
22741         in C++0x mode.
22743 2008-01-01  Volker Reichelt  <v.reichelt@netcologne.de>
22745         PR libmudflap/26442
22746         * tree-mudflap.c (mx_register_decls): Guard warning by
22747         !DECL_ARTIFICIAL check.
22749 2008-01-01  Jakub Jelinek  <jakub@redhat.com>
22751         * config/i386/sse.md (sse5_pperm, sse5_pperm_pack_v2di_v4si,
22752         sse5_pperm_pack_v4si_v8hi, sse5_pperm_pack_v8hi_v16qi,
22753         sse5_perm<mode>): Fix constraints.