sol2.h (REGISTER_TARGET_PRAGMAS): Move ...
[platform/upstream/gcc.git] / gcc / ChangeLog
1 2008-09-09  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2
3         * config/sol2.h (REGISTER_TARGET_PRAGMAS): Move ...
4         * config/i386/sol2.h (REGISTER_SUBTARGET_PRAGMAS): ... here.
5         * config/sparc/sol2.h (REGISTER_TARGET_PRAGMAS): ... and here.
6
7 2008-09-09  Jan Hubicka  <jh@suse.cz>
8
9         * profile.c (is_edge_inconsistent): Add debug output; ignore negative count
10         on fake edges.
11         (is_inconsistent): Add debug output.
12
13 2008-09-09  Andrey Belevantsev  <abel@ispras.ru>
14
15         * haifa-sched.c (advance_one_cycle): Do not print '\n' before printing
16         dump message.
17         (choose_ready): When first insn is chosen from the ready list, also
18         dump it.
19
20 2008-09-09  Andrey Belevantsev  <abel@ispras.ru>
21
22         PR rtl-optimization/37360
23         * haifa-sched.c (max_issue): Do not assert that we never issue more
24         insns than issue_rate.  Add comment.
25         
26 2008-09-09  Richard Guenther  <rguenther@suse.de>
27
28         * tree-cfg.c (verify_types_in_gimple_op): Remove.
29         (verify_types_in_gimple_call): Rename to ...
30         (verify_gimple_call): ... this.  Enhance.
31         (verify_types_in_gimple_cond): Remove.
32         (verify_gimple_comparison): New function ...
33         (verify_types_in_gimple_assign): ... split out from here.
34         (verify_types_in_gimple_return): Rename to ...
35         (verify_gimple_return): ... this.  Enhance.
36         (verify_types_in_gimple_switch): Rename to ...
37         (verify_gimple_switch): ... this.  Enhance.
38         (verify_gimple_goto): New function.
39         (verify_types_in_gimple_phi): Rename to ...
40         (verify_gimple_phi): ... this.  Enhance.
41         (verify_types_in_gimple_stmt): Adjust calls to helper functions.
42         Fold in single-statement cases from verify_types_in_gimple_seq_2.
43         (verify_types_in_gimple_seq_2): Remove cases handled in
44         verify_types_in_gimple_stmt.
45
46 2008-09-09  Bernd Schmidt  <bernd.schmidt@analog.com>
47
48         * config/bfin/bfin.c (n_regs_to_save): New static variable.
49         (push_multiple_operation, pop_multiple_operation): Set it.
50         (workaround_rts_anomaly): New function.
51         (workaround_speculation): New function, broken out of bfin_reorg.
52         (bfin_reorg): Call the new functions.
53
54 2008-09-09  Richard Guenther  <rguenther@suse.de>
55
56         PR middle-end/37354
57         PR middle-end/30165
58         * gimplify.c (gimplify_conversion): Change conversions of
59         non-register type to VIEW_CONVERT_EXPRs.
60         (gimplify_addr_expr): If we need to make the operand
61         addressable make sure to use a properly initialized
62         temporary for that so it gets a valid gimple store.
63
64 2008-09-09  Aldy Hernandez  <aldyh@redhat.com>
65
66         * function.h (struct function): Add function_start_locus.
67         * cfgexpand.c (gimple_expand_cfg): Use it.
68         * c-parser.c (c_parser_declaration_or_fndef): Set it.
69
70 2008-09-09  Richard Guenther  <rguenther@suse.de>
71
72         PR tree-optimization/37433
73         * tree-ssa-ccp.c (ccp_fold): Properly guard folding of
74         function calls.
75
76 2008-09-09  Richard Guenther  <rguenther@suse.de>
77
78         PR tree-optimization/37387
79         * tree-ssa-ifcombine.c (ifcombine_iforif): Convert the name
80         and bits to a common type.
81
82 2008-09-09  Nick Clifton  <nickc@redhat.com>
83
84         * config/v850/v850.md (return): Restore frame size restriction.
85
86 2008-09-09  Paolo Bonzini  <bonzini@gnu.org>
87
88         * c-common.c (c_expand_decl): Remove.
89         * c-common.h (anon_aggr_type_p): Remove prototype.
90         (DECL_ANON_UNION_ELEMS): Remove.
91         * c-objc-common.h (LANG_HOOKS_EXPAND_DECL): Remove.
92         * c-decl.c (anon_aggr_type_p): Remove.
93         * langhooks-def.h (LANG_HOOKS_EXPAND_DECL): Remove.
94         (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_EXPAND_DECL.
95         * langhooks.h (struct lang_hooks): Remove expand_decl.
96         * langhooks.c (lhd_expand_decl): Remove.
97         * stmt.c (expand_anon_union_decl): Remove.
98         * tree.h (expand_anon_union_decl): Remove prototype.
99
100 2008-08-09  Andy Hutchinson  <hutchinsonandy@aim.com>
101
102         PR target/36609
103         * config/avr/avr.c (avr_reorg): Create RTL for reversed compare with
104         zero.
105         * config/avr/avr.md  (QISI) : Define mode iterator.
106         (negated_tst<mode>) : Redefine as split using mode macro.
107         (reversed_tstqi): Define insn as reversed compare with zero.
108         (reversed_tsthi): Ditto.
109         (reversed_tstsi): Ditto.
110
111 2008-09-08  Jakub Jelinek  <jakub@redhat.com>
112
113         PR middle-end/37393
114         * tree-inline.c (copy_bb): When replacing a gimple_call_va_arg_pack_p
115         call stmt by new_call, clear gimple_bb on stmt after gsi_replace.
116
117         PR middle-end/37414
118         * predict.c (optimize_function_for_size_p): Don't segfault if
119         FUN is NULL.
120         * fold-const.c (LOGICAL_OP_NON_SHORT_CIRCUIT, fold_truthop,
121         tree_swap_operands_p): Don't test cfun != NULL before calling
122         optimize_function_for_s*_p.
123
124 2008-09-08  Eric Botcazou  <ebotcazou@adacore.com>
125
126         * ira-color.c (ira_reuse_stack_slot): Set slot_num on success at the
127         end of the search.
128
129 2008-09-08  M R Swami Reddy <MR.Swami.Reddy@nsc.com>
130
131         * crx/crx.h (IRA_COVER_CLASSES): Define.
132
133 2008-09-08  Jakub Jelinek  <jakub@redhat.com>
134
135         PR middle-end/37337
136         * tree-ssa-dom.c (optimize_stmt): Call maybe_clean_or_replace_eh_stmt
137         even when a stmt has been gimple_modified_p, but after fold_stmt is
138         not any longer.  Remove unneeded may_have_exposed_new_symbols
139         initializations.
140
141 2008-09-08  Richard Guenther  <rguenther@suse.de>
142
143         PR tree-optimization/37421
144         * tree-ssa-sccvn.c (visit_copy): Make sure to fully
145         valueize the RHS.
146
147 2008-09-08  Jakub Jelinek  <jakub@redhat.com>
148
149         PR middle-end/37415
150         * opts.c (common_handle_option): Handle OPT_ftree_store_ccp.
151
152 2008-09-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
153
154         PR driver/37409
155         * pa-hpux.h (LINK_SPEC): Strip -fwhole-program.
156         * pa-hpux10.h (LINK_SPEC): Likewise.
157         * pa-hpux11.h (LINK_SPEC): Likewise.
158
159 2008-09-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
160
161         * pa32-regs.h (IRA_COVER_CLASSES): Define.
162         * pa64-regs.h (IRA_COVER_CLASSES): Define.
163
164 2008-09-07  Helge Deller  <deller@gmx.de>
165
166         * pa/linux-atomic.c: New file.
167         * pa/t-linux (LIB2FUNCS_STATIC_EXTRA): Define.
168         * pa/t-linux64 (LIB2FUNCS_STATIC_EXTRA): Define.
169
170 2008-09-07  Richard Guenther  <rguenther@suse.de>
171             Ira Rosen  <irar@il.ibm.com>
172
173         PR tree-optimization/36630
174         * tree-vect-transform.c (vect_update_ivs_after_vectorizer):
175         Call STRIP_NOPS before calling evolution_part_in_loop_num.
176
177 2008-09-07  Dorit Nuzman  <dorit@il.ibm.com>
178             Ira Rosen  <irar@il.ibm.com>
179
180         PR tree-optimization/35642
181         * config/rs6000/altivec.md (mulv8hi3): Implement.
182
183 2008-09-06  Jeff Law <law@redhat.com>
184
185         * h8300/h8300.h (IRA_COVER_CLASSES): Define.
186
187 2008-09-06  Jan Hubicka  <jh@suse.cz>
188
189         PR tree-optimization/14703
190         * tree-ssa-live.c (remove_unused_scope_block_p): Remove ignored declarations.
191         * passes.c (init_optimization_passes): Recompute inline parameters.
192
193 2008-09-06  Richard Sandiford  <rdsandiford@googlemail.com>
194
195         * config/mips/mips.c (mips_function_ok_for_sibcall): Check for
196         DECL being null.
197
198 2008-09-06  Richard Sandiford  <rdsandiford@goolemail.com>
199             Peter Fuerst  <post@pfrst.de>
200
201         * doc/invoke.texi: Document -mr10k-cache-barrier=.
202         * doc/extend.texi: Document __builtin_mips_cache.
203         * config/mips/mips-ftypes.def: Add a (VOID, SI, CVPOINTER) entry.
204         * config/mips/mips.opt (mr10k-cache-barrier=): New option.
205         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define
206         __GCC_HAVE_BUILTIN_MIPS_CACHE.
207         (TARGET_CACHE_BUILTIN, ISA_HAS_CACHE): New macros.
208         * config/mips/mips.c (mips_r10k_cache_barrier_setting): New enum.
209         (set_push_mips_isas): New variable.
210         (mips_r10k_cache_barrier): New variable.
211         (cache): New availability predicate.
212         (mips_builtins): Add an entry for __builtin_mips_cache.
213         (mips_build_cvpointer_type): New function.
214         (MIPS_ATYPE_CVPOINTER): New macro.
215         (mips_prepare_builtin_arg): Only use the insn's mode if the rtx's
216         mode is VOIDmode.
217         (r10k_simplified_address_p, r10k_simplify_address)
218         (r10k_uncached_address_p, r10k_safe_address_p)
219         (r10k_needs_protection_p_1, r10k_needs_protection_p_store)
220         (r10k_needs_protection_p_call, r10k_needs_protection_p)
221         (r10k_insert_cache_barriers): New functions.
222         (mips_reorg_process_insns): Delete cache barriers after a
223         branch-likely instruction.
224         (mips_reorg): Call r10k_insert_cache_barriers.
225         (mips_handle_option): Handle OPT_mr10k_cache_barrier_.
226         * config/mips/mips.md (UNSPEC_MIPS_CACHE): New constant.
227         (UNSPEC_R10K_CACHE_BARRIER): Likewise.
228         (mips_cache, r10k_cache_barrier): New define_insns.
229
230 2008-09-06  Richard Sandiford  <rdsandiford@googlemail.com>
231
232         * ira-int.h (ira_zero_hard_reg_set, ira_one_hard_reg_set): Delete.
233         * ira-color.c (setup_allocno_left_conflicts_num): Use
234         hard_reg_set_equal_p instead of a comparison with
235         ira_zero_hard_reg_set.
236         * ira.c (setup_reg_subclasses): Likewise.
237         (setup_cover_and_important_classes): Likewise.
238         (setup_class_translate): Likewise.
239         (setup_reg_class_intersect_union): Likewise.
240         (ira_zero_hard_reg_set, ira_one_hard_reg_set): Delete.
241         (ira_init_once): Don't initialize them.
242
243 2008-09-05  Vladimir Makarov  <vmakarov@redhat.com>
244
245         * doc/tm.texi (IRA_COVER_CLASSES): Fix a typo.
246
247 2008-09-05  Vladimir Makarov  <vmakarov@redhat.com>
248
249         * ira-color.c (ira_fast_allocation): Permit global allocno
250         allocation.
251         
252 2008-09-05  Trevor Smigiel <Trevor_Smigiel@playstation.sony.com>
253
254         Improved branch hints, safe hints, and scheduling.
255
256         * haifa-sched.c (sched_emit_insn) : Define.
257         * sched-int.h (sched_emit_insn) : Add prototype.
258         * doc/invoke.texi (-mdual-nops, -mhint-max-nops,
259         -mhint-max-distance -msafe-hints) : Document.
260         * config/spu/spu.c (spu_flag_var_tracking): New.
261         (TARGET_SCHED_INIT_GLOBAL, TARGET_SCHED_INIT,
262         TARGET_SCHED_REORDER, TARGET_SCHED_REORDER2,
263         TARGET_ASM_FILE_START): Define.
264         (TARGET_SCHED_ADJUST_PRIORITY): Remove.
265         (STOP_HINT_P, HINTED_P, SCHED_ON_EVEN_P): Define.
266         (spu_emit_branch_hint): Add blocks argument.
267         (insert_branch_hints, insert_nops): Remove.
268         (pad_bb, insert_hbrp_for_ilb_runout, insert_hbrp, in_spu_reorg,
269         uses_ls_unit, spu_sched_init_global, spu_sched_init,
270         spu_sched_reorder, asm_file_start): New functions.
271         (clock_var, spu_sched_length, pipe0_clock,
272         pipe1_clock, prev_clock_var, prev_priority,
273         spu_ls_first, prev_ls_clock): New static variables.
274         * config/spu/spu.h (TARGET_DEFAULT): Add MASK_SAFE_HINTS.
275         * config/spu.md (iprefetch): Add operand, make it clobber MEM.
276         (nopn_nv): Add a non-volatile version of nop.
277         * config/spu/spu.opt (-mdual-nops, -mhint-max-nops,
278         -mhint-max-distance, -msafe-hints): New options.
279
280 2008-09-05  Janis Johnson  <janis187@us.ibm.com>
281             Samuel Tardieu  <sam@rfc1149.net>
282
283         * opts.c (decode_options): Combine nested if statements.
284
285         PR target/37283
286         * opts.c (decode_options): Handle more relationships among
287         unit-at-a-time, toplevel-reorder, and section-anchors.
288
289 2008-09-05  David Daney  <ddaney@avtrex.com>
290
291         * doc/install.texi (--enable-reduced-reflection): Document new option.
292
293 2008-09-05  Bob Wilson  <bob.wilson@acm.org>
294
295         * config/xtensa/predicates.md (nonimmed_operand, mem_operand): Use
296         constantpool_mem_p.
297         (constantpool_operand): New.
298         (move_operand): Disallow sub-word modes for the constant pool.
299         * config/xtensa/xtensa.c (TARGET_SECONDARY_RELOAD): Define.
300         (xtensa_secondary_reload_class): Replace with....
301         (xtensa_secondary_reload): this function.  Remove SIGN_EXTEND check. 
302         Set icode for sub-word reloads from the constant pool.
303         * config/xtensa/xtensa.h (SECONDARY_INPUT_RELOAD_CLASS): Delete.
304         (SECONDARY_OUTPUT_RELOAD_CLASS): Delete.
305         * config/xtensa/xtensa.md (reload<mode>_literal): New.
306         * config/xtensa/xtensa-protos.h: Update prototypes.
307         
308 2008-09-05  Joseph Myers  <joseph@codesourcery.com>
309
310         * config/mips/mips.h (enum reg_class): Add FRAME_REGS.
311         (REG_CLASS_NAMES): Update.
312         (REG_CLASS_CONTENTS): Update.
313         * config/mips/mips.c (mips_regno_to_class): Use FRAME_REGS instead
314         of ALL_REGS for regs 77 and 78.
315         * function.c (instantiate_virtual_regs_in_insn): Assert that
316         return value of simplify_gen_subreg is not NULL.
317
318 2008-09-05  Paolo Bonzini  <bonzini@gnu.org>
319
320         * emit-rtl.c (gen_rtvec): Rewrite not using gen_rtvec_v.
321         (gen_rtvec_v): Fix coding standards.
322
323 2008-09-04  Jan Hubicka  <jh@suse.cz>
324
325         * i386.c (decide_alg): Be more conservative about optimizing for size.
326
327 2008-09-04  Ian Lance Taylor  <iant@google.com>
328
329         * varasm.c (narrowing_initializer_constant_valid_p): New
330         static function.
331         (initializer_constant_valid_p): Call it.
332
333 2008-09-04  Jeff Law  <law@redhat.com>
334
335         * fold-const.c (native_encode_real): Fix computation of WORDS.
336         (native_interpret_real): Likewise.
337
338 2008-09-04  Janis Johnson  <janis187@us.ibm.com>
339
340         * config/rs6000/t-rs6000: Remove target gt-rs6000.h.
341
342 2008-09-04  Vladimir Makarov  <vmakarov@redhat.com>
343
344         * ira-conflicts.c (process_regs_for_copy): Check insn to check
345         that the cost is already taken into account in ira-costs.c
346
347         * ira-int.h (ira_debug_copy, ira_debug_copies): New.
348
349         * ira-build.c (print_copy, print_copies, ira_debug_copy,
350         ira_debug_copies): New.
351         (ira_bulid): Call print_copies.
352         
353         * doc/tm.texi (IRA_COVER_CLASSES): Fix the description.
354         
355 2008-09-04  Samuel Tardieu  <sam@rfc1149.net>
356
357         PR target/32783
358         * config/rs6000/rs6000.c (optimization_options): Remove check of
359         flag_toplevel_order.
360
361 2008-09-04  Adam Nemet  <anemet@caviumnetworks.com>
362
363         * config/mips/mips.h (ISA_HAS_SEQ_SNE): New macro.
364         * config/mips/mips.c (mips_expand_scc): Also expand seq and sne if
365         second operand is a reg_imm10_operand.
366         * config/mips/mips.md (*seq_<GPR:mode><GPR2:mode>_seq,
367         *sne_<GPR:mode><GPR2:mode>_sne): New patterns.
368         (*seq_<GPR:mode><GPR2:mode>): Rename to
369         *seq_zero_<GPR:mode><GPR2:mode>.  Don't match if
370         ISA_HAS_SEQ_SNE.
371         (*seq_<GPR:mode><GPR2:mode>_mips16): Rename to
372         *seq_zero_<GPR:mode><GPR2:mode>_mip16.  Don't match if
373         ISA_HAS_SEQ_SNE.
374         (*sne_<GPR:mode><GPR2:mode>): Rename to
375         *sne_zero_<GPR:mode><GPR2:mode>.  Don't match if
376         ISA_HAS_SEQ_SNE.
377
378 2008-09-04  Adam Nemet  <anemet@caviumnetworks.com>
379
380         * config/mips/mips.h (ISA_HAS_EXTS): New macro.
381         * config/mips/mips.md (*ashr_trunc<mode>): Name the pattern
382         combining an arithmetic right shift by more than 31 and a
383         trunction.  Don't match for out-of-range shift amounts.  Set
384         attribute mode to <MODE>.
385         (*lshr32_trunc<mode>): Name the pattern combining a logical right
386         shift by 32 and and a truncation.  Set attribute mode to <MODE>.
387         (*<optab>_trunc<mode>_exts): New pattern for truncated right
388         shifts by less than 32.
389         (extv): Change predicate on first operand to accept registers.
390         Change predicate of the other operands from immediate_operand to
391         const_int_operand.  Expand exts when source is a register.
392         (extzv): Change predicate of the constant operands from
393         immediate_operand to const_int_operand.
394         (extzv<mode>): Change predicate of the constant operands from
395         immediate_operand to const_int_operand and no constraint. Also
396         remove mode.
397         (*extzv_trunc<mode>_exts): New pattern.
398
399 2008-09-04  Adam Nemet  <anemet@caviumnetworks.com>
400
401         * config/mips/mips.h (ISA_HAS_CINS): New macro.
402         * config/mips/mips-protos.h (mask_low_and_shift_p,
403         mask_low_and_shift_len): Declare.
404         * config/mips/mips.c (mask_low_and_shift_p,
405         mask_low_and_shift_len): New functions.
406         (mips_print_operand): Handle new operand prefix "m".
407         * config/mips/mips.md (*cins<mode>): New pattern.
408
409 2008-09-04  Bernd Schmidt  <bernd.schmidt@analog.com>
410
411         * config/bfin/bfin.c (gen_one_bundle): Don't create new nops when
412         optimizing for size.
413
414 2008-09-04  Richard Sandiford  <rdsandiford@googlemail.com>
415
416         * df-scan.c (df_get_entry_block_def_set): Add STACK_POINTER_REGNUM
417         regardless of epilogue_completed.
418
419 2008-09-04  Vladimir Makarov  <vmakarov@redhat.com>
420
421         PR middle-end/37359
422         * ira-lives.c (process_bb_node_lives): Check setjmp.
423
424 2008-09-04  Richard Sandiford  <rdsandiford@googlemail.com>
425
426         PR middle-end/37243
427         * ira-build.c (form_loop_tree): Reverse BB walk.
428         (create_bb_allocnos): Likewise.
429         * ira-lives.c (make_regno_born_and_dead, regs_set): Delete.
430         (mark_reg_store): Rename to...
431         (mark_ref_live): ...this and take a df_ref argument instead of
432         note_stores arguments.  Assert that we have a register.
433         (mark_reg_clobber): Delete.
434         (def_conflicts_with_inputs_p): New function.
435         (mark_reg_conflicts): Delete.
436         (mark_reg_death): Rename to...
437         (mark_ref_dead): ...this and take a df_ref argument instead of
438         a register.  Assert that we have a register.
439         (process_bb_node_lives): Hoist frequency calculation out of
440         instruction walk.  Convert from a forwards scan to a backwards scan.
441         Use DF_REF_USES and DF_REF_DEFS instead of register notes and
442         note_stores.  Remove EH_RETURN_DATA_REGNO and regs_set handling.
443         (create_allocno_live_ranges): Don't create regs_set.
444
445 2008-09-04  Ian Lance Taylor  <iant@google.com>
446
447         * rtl.h (LABEL_REF_NONLOCAL_P): Don't check for REG_LABEL_OPERAND
448         or REG_LABEL_TARGET.
449         * calls.c (emit_library_call_value_1): Use MEM_P rather than
450         comparing MODE with MEM.
451         * gimple.c (gimple_build_predict): Cast END_PREDICTORS before
452         comparing with GF_PREDICT_TAKEN.
453         (gimple_get_lhs): Change code to enum gimple_code.
454         (gimple_set_lhs): Likewise.
455         * ifcvt.c (noce_process_if_block): Correct GET_MODE to GET_CODE.
456         * omp-low.c (find_omp_clause): Change kind parameter to enum
457         omp_clause_code.
458         * tree-flow.h (find_omp_clause): Update declaration.
459         * regrename.c (clear_dead_regs): Change kind parameter to enum
460         reg_note.
461         * reload1.c (eliminate_regs_1): Use REG_NOTE_KIND rather than
462         GET_MODE.
463         * see.c (see_get_extension_data): Change return type to enum
464         entry_type.  Change UNKNOWN to NOT_RELEVANT, SIGN_EXTEND to
465         SIGNED_EXTENDED_DEF, ZERO_EXTEND to ZERO_EXTENDED_DEF.
466         (see_gen_normalized_extension): Change extension_code parameter to
467         enum entry_type.
468         (see_seek_pre_extension_expr): Change extension_code to enum
469         entry_type.
470         (see_merge_one_def_extension): Likewise.
471         (see_handle_relevant_defs): Likewise.
472         (see_handle_relevant_uses): Likewise.
473         (see_analyze_one_def): Likewise.
474         * tree-cfg.c (need_fake_edge_p): Compare gimple code with
475         GIMPLE_ASM rather than ASM_EXPR.
476         * tree-ssa-alias.c (is_escape_site): Compare gimple code with
477         GIMPLE_RETURN rather than RETURN_EXPR.
478         * tree-ssa-ccp.c (likely_value): Change code to enum gimple_code.
479         (evaluate_stmt): Likewise.
480         * tree-vect-analyze.c (vect_analyze_operations): Change relevance
481         to enum vect_relevant.
482         (vect_mark_stmts_to_be_vectorized): Change assertion to not
483         compare gimple codes with tree codes.
484
485 2008-09-04  Paul Brook  <paul@codesourcery.com>
486
487         * config/arm/arm.c (arm_size_rtx_costs): Call cost function.
488
489 2008-09-04  Bernd Schmidt  <bernd.schmidt@analog.com>
490
491         * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Restore a null
492         pointer check lost in the recent no-unit-at-a-time patch.
493         
494 2008-09-04  Jan Hubicka  <jh@suse.cz>
495
496         PR middle-end/37343
497         * tree-switch-conversion.c (check_final_bb): Accept only IP
498         invariants.
499
500 2008-09-04  Jan Hubicka  <jh@suse.cz>
501
502         * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
503         Break out from ...
504         (vrp_evaluate_conditional_warnv_with_ops): ... this one.  Add
505         using_ranges argument.
506         (vrp_evaluate_conditional): Avoid bogus warning for type range.
507         (vrp_visit_cond_stmt): Update call of
508         vrp_evaluate_conditional_warnv_with_ops
509
510 2008-09-04  Jan Hubicka  <jh@suse.cz>
511
512         PR tree-optimization/37345
513         PR tree-optimization/37358
514         PR tree-optimization/37357
515         * tree.c (build_function_type_skip_args): Build distinct type copy;
516         set TYPE_CONTEXT.
517         (build_function_decl_skip_args): Set type of new decl not orig decl;
518         clear DECL_VINDEX for methods turned into functions.
519
520 2008-09-04  Nick Clifton  <nickc@redhat.com>
521
522         * configure.ac (HAVE_GAS_LCOMM_WITH_ALIGNMENT): New assembler
523         check.
524         * configure: Regenerate.
525         * config.in: Regenerate.
526         * config/i386/bsd.h (ASM_OUTPUT_ALIGNED_LOCAL): Use .lcomm with an
527         alignment field, if it is supported.
528
529 2008-09-04  Kai Tietz  <kai.tietz@onevision.com>
530
531         * config/i386/t-mingw32 (SHLIB_LC): Change order of import
532         libraries.
533
534 2008-09-03  David Edelsohn  <edelsohn@gnu.org>
535
536         * config/rs6000/rs6000.c (processor_target_table): Do not
537         enable VMX for POWER6.
538
539 2008-09-03  Anton Blanchard  <anton@samba.org>
540
541         * config/rs6000/rs6000.c (rs6000_split_lock_test_and_set): Do not
542         emit memory barrier before operation.
543
544 2008-09-03  John David Anglin  <dave.anglin@nrc.cnrc.gc.ca>
545
546         PR testsuite/37325
547         * config/pa/pa64-hpux.h (ASM_OUTPUT_EXTERNAL_REAL): Call
548         default_elf_asm_output_external.
549
550 2008-09-03  Jeff Law  <law@redhat.com>
551
552         * h8300.c (expand_a_shift): Avoid invalid RTL sharing.
553
554 2008-09-03  Richard Henderson  <rth@redhat.com>
555
556         * config/alpha/alpha.c (alpha_split_lock_test_and_set): Move
557         memory barrier to below the test-and-set.
558         (alpha_split_lock_test_and_set_12): Likewise.
559
560 2008-09-03  Vladimir Makarov  <vmakarov@redhat.com>
561
562         PR rtl-opt/37243
563
564         * ira-int.h (ira_loop_tree_node): Rename mentioned_allocnos to
565         all_allocnos.
566
567         * ira-color.c (print_loop_title): Use all_allocnos.
568         (color_pass): Ditto.  Don't add border_allocnos.  Check that
569         subloop allocno in the correspdoning bitmap all_allocnos.
570
571         * ira-emit.c (change_loop): Use all_allocnos.
572
573         * ira-build.c (create_loop_tree_nodes, finish_loop_tree_node):
574         Ditto.
575         (ira_create_allocno): Set up all_allocnos bit for the created
576         allocno.
577         (create_cap_allocno): Remove setting mentioned_allocnos.
578         (create_insn_allocnos): Ditto.
579         (remove_unnecessary_allocnos): Use all_allocnos.
580         (check_allocno_creation): Check that allocnos are in the
581         corresponding bitmap all_allocnos.
582         
583 2008-09-03  Vladimir Makarov  <vmakarov@redhat.com>
584
585         PR rtl-opt/37243
586         
587         * ira-conflicts.c (REG_SUBREG_P, go_through_subreg): New.
588         (process_regs_for_copy): Process subregs.  Refine check when cost
589         is taken into account in ira-costs.c.
590         (process_reg_shuffles): Use REG_SUBREG_P.
591         (add_insn_allocno_copies): Ditto.  Ignore modes.
592
593         * ira-color.c (conflict_allocno_vec): New.
594         (COST_HOP_DIVISOR): New macro.
595         (update_copy_costs_1): Use it.
596         (update_conflict_hard_regno_costs): New function.
597         (assign_hard_reg): Use it.
598         (ira_color): Allocate and free conflict_allocno_vec.
599  
600 2008-09-03  Vladimir Makarov  <vmakarov@redhat.com>
601
602         PR rtl-opt/37296
603
604         * ira-int.h (ira_sort_insn_chain): Remove.
605
606         * ira.c (basic_block_order_nums, chain_insn_order,
607         chain_freq_compare, chain_bb_compare, ira_sort_insn_chain): Remove.
608         (ira): Don't call ira_sort_insn_chain.
609
610         * reload1.c (reload): Don't call ira_sort_insn_chain.
611
612 2008-09-03  Andrew Pinski  <andrew_pinski@playstation.sony.com>
613
614         PR middle-end/37293
615         * cgraphunit.c (update_call_expr): Remove eh regions from statements
616         which become non throw.
617         (cgraph_function_versioning): Also clear DECL_WEAK.  Call
618         update_call_expr after updating the flags on the decl.
619
620 2008-09-03  Jan Hubicka  <jh@suse.cz>
621
622         PR tree-optimization/37315
623         * cgraph.c (cgraph_create_edge): Use gimple_has_body_p.
624         * cgraphunit.c (verify_cgraph_node): drop gimple_body check.
625         (cgraph_analyze_functions): Use node->analyzed
626         (cgraph_mark_functions_to_output): Likewise.
627         (cgraph_expand_function): All functions can be released after
628         expanding.
629         (cgraph_optimize): Use gimple_has_body_p.
630         * ipa-inline.c (cgraph_clone_inlined_nodes): Use analyzed flag.
631         (cgraph_decide_inlining_incrementally): Likewise.
632         (inline_transform): Inline transform.
633         * tree-inline.c (initialize_cfun): Do now shallow copy structure;
634         copy fields needed.
635         (inlinable_function_p): Drop gimple_body check.
636         (expand_call_inline): Use gimple_has_body_p.
637         * gimple.c (gimple_has_body_p): New.
638         * gimple.h (gimple_has_body_p): Add prototype.
639         * tree-cfg.c (execute_build_cfg): Remove gimple_body.
640         (dump_function_to_file): Use gimple_has_body_p check.
641
642 2008-09-03  Jakub Jelinek  <jakub@redhat.com>
643
644         PR c++/37346
645         * gimple.h (gimple_has_substatements): GIMPLE_OMP_CRITICAL has
646         substatements.
647         * tree-inline.c (remap_gimple_stmt): Handle GIMPLE_OMP_CRITICAL.
648
649 2008-09-03  Bernd Schmidt  <bernd.schmidt@analog.com>
650
651         From Michael Frysinger  <michael.frysinger@analog.com>
652         * config/bfin/bfin.c (bfin_cpus[]): Add 0.1 for bf522, bf523, bf524,
653         bf525, bf526, bf527, bf542, bf544, bf547, bf548, and bf549.  Add 0.2
654         for bf538.
655
656 2008-09-03  Hari Sandanagobalane  <hariharan@picochip.com>
657
658         Add picoChip port.
659         * doc/extend.texi: Document picoChip builtin functions.
660         * doc/invoke.texi: Document picoChip options.
661         * doc/contrib.texi: Add picoChip contribution.
662         * doc/md.texi: Document picoChip constraints.
663         * config.gcc: Add picochip-*-*.
664         * config/picochip/: Add new port.
665
666 2008-09-03  Richard Guenther  <rguenther@suse.de>
667
668         PR tree-optimization/37328
669         * tree-sra.c (sra_build_assignment): Gimplify properly.
670         (generate_copy_inout): Take the correct stmt as definition,
671         remove bogus assert.
672
673 2008-09-03  Bernd Schmidt  <bernd.schmidt@analog.com>
674
675         * config/bfin/bfin.c (bfin_expand_prologue): Honour no_stack_limit
676         attributes.
677
678         From Michael Frysinger  <michael.frysinger@analog.com>
679         * config/bfin/bfin.c (bfin_handle_option): Remove BF561 warning.
680
681 2008-09-03 Danny Smith  <dannysmith@usrs.sourceforge.net>
682
683         * gthr-win32.h (CONST_CAST2): Really make sure CONST_CAST2 is
684         defined.
685         (__gthread_setspecific): Revert 2008-08-31 change to
686         __GTHREAD_HIDE_W32API case.  Apply it to !__GTHREAD_HIDE_W32API
687         case.
688
689 2008-09-02  Aldy Hernandez  <aldyh@redhat.com>
690
691         * diagnostic.c (error_at): New.
692         * toplev.h (error_at): New prototype.
693         * c-typeck.c (build_array_ref): Call error_at instead of error.
694         Pass location to pedwarn.
695
696 2008-09-02  Adam Nemet  <anemet@caviumnetworks.com>
697
698         * sel-sched.c (sel_hard_regno_rename_ok): Mark arguments unused.
699
700 2008-09-02  Jakub Jelinek  <jakub@redhat.com>
701
702         * dwarf2out.c (tree_add_const_value_attribute): Only handle
703         VAR_DECL and CONST_DECL.
704
705 2008-09-02  H.J. Lu  <hongjiu.lu@intel.com>
706             Jakub Jelinek  <jakub@redhat.com>
707
708         * config/i386/i386.c (X86_64_VARARGS_SIZE): Removed.
709         (setup_incoming_varargs_64): Assume cum != NULL. Set/check
710         ix86_varargs_gpr_size and ix86_varargs_fpr_size.  Use
711         ix86_varargs_gpr_size instead of X86_64_REGPARM_MAX.
712         Don't set ix86_save_varrargs_registers.
713         (ix86_setup_incoming_varargs): Assume cum != NULL.
714         (ix86_va_start): Check ix86_varargs_gpr_size and
715         ix86_varargs_fpr_size instead of cfun->va_list_gpr_size and
716         cfun->va_list_fpr_size, respectively.  Subtract 8*X86_64_REGPARM_MAX
717         from frame pointer if ix86_varargs_gpr_size == 0.
718         (ix86_compute_frame_layout): Updated.
719         * config/i386/i386.h (ix86_save_varrargs_registers): Removed.
720         (ix86_varargs_gpr_size): Define.
721         (ix86_varargs_fpr_size): Likewise.
722         (machine_function): Remove save_varrargs_registers.
723         Add varargs_gpr_size and varargs_fpr_size.
724
725 2008-09-02  Jakub Jelinek  <jakub@redhat.com>
726
727         * config/alpha/alpha.c (va_list_skip_additions,
728         alpha_stdarg_optimize_hook, alpha_gimplify_va_arg_1): Tuplify.
729         (alpha_gimplify_va_arg): Call unshare_expr on second use of
730         offset_field.
731
732         PR tree-optimization/36766
733         * tree-cfg.c (gimple_purge_all_dead_eh_edges): Do nothing
734         for already removed basic blocks.
735
736         PR target/36332
737         * real.c (real_maxval): Clear a lower bit to make real_maxval
738         match get_max_float for IBM long double format.
739
740 2008-09-02  Andreas Schwab  <schwab@suse.de>
741
742         * configure.ac: Use m4_quote to quote the expansion of m4_do.
743         * configure: Regenerate.
744
745 2008-09-02  Richard Sandiford  <rdsandiford@googlemail.com>
746
747         * simplify-rtx.c (simplify_binary_operation_1): Check for CONST,
748         SYMBOL_REF and LABEL_REF when applying plus_constant, instead of
749         checking for a non-VOID CONSTANT_P.
750
751 2008-09-02  Jan Hubicka  <jh@suse.cz>
752
753         * predict.c (pass_strip_predict_hints): Avoid bugs dump file.
754         * expmed.c (expand_divmod): Fix test of smod_pow2_cheap and sdiv_pow2_cheap
755
756 2008-09-02  H.J. Lu  <hongjiu.lu@intel.com>
757
758         * expr.c (emit_group_store): Don't assert stack temp mode size.
759
760 2008-09-02  Sebastian Pop  <sebastian.pop@amd.com>
761             Tobias Grosser  <grosser@fim.uni-passau.de>
762             Jan Sjodin  <jan.sjodin@amd.com>
763             Harsha Jagasia  <harsha.jagasia@amd.com>
764             Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
765             Konrad Trifunovic  <konrad.trifunovic@inria.fr>
766             Adrien Eliche  <aeliche@isty.uvsq.fr>
767
768         Merge from graphite branch.
769         * graphite.c: New.
770         * graphite.h: New.
771         * tree-loop-linear.c (perfect_loop_nest_depth): Export.
772         * doc/invoke.texi (-floop-block, -floop-interchange,
773         -floop-strip-mine): Document new flags.
774         * tree-into-ssa.c (gimple_vec): Moved...
775         * tree-loop-distribution.c (rdg_component): Moved...
776         * cfgloopmanip.c: Include tree-flow.h.
777         (update_dominators_in_loop): New.
778         (create_empty_if_region_on_edge): New.
779         (create_empty_loop_on_edge): New.
780         (loopify): Use update_dominators_in_loop.
781         * tree-pass.h (pass_graphite_transforms): Declared.
782         * configure: Regenerate.
783         * tree-phinodes.c (make_phi_node): Export.
784         (add_phi_node_to_bb): New, split from create_phi_node.
785         * tree-chrec.c (for_each_scev_op): New.
786         * tree-chrec.h (for_each_scev_op): Declared.
787         * tree-ssa-loop-ivopts.c (get_phi_with_result): New.
788         (remove_statement): Call get_phi_with_result.
789         * config.in (HAVE_cloog): Undef.
790         * gdbinit.in (pgg): New.
791         * timevar.def (TV_GRAPHITE_TRANSFORMS): New.
792         * tree-ssa-loop.c (graphite_transforms): New.
793         (gate_graphite_transforms): New.
794         (pass_graphite_transforms): New.
795         * configure.ac (PPLLIBS, PPLINC, CLOOGLIBS, CLOOGINC,
796         HAVE_cloog): Defined.
797         * tree-vectorizer.c (rename_variables_in_bb): Export.
798         * tree-data-ref.c (dr_may_alias_p): Export.
799         (stmt_simple_memref_p): New.
800         (find_data_references_in_stmt): Export.
801         (find_data_references_in_loop): Export.
802         (create_rdg_edge_for_ddr): Initialize RDGE_RELATION.
803         (create_rdg_edges_for_scalar): Initialize RDGE_RELATION.
804         (create_rdg_vertices): Export.
805         (build_empty_rdg): New.
806         (build_rdg): Call build_empty_rdg.  Free dependence_relations.
807         * tree-data-ref.h (rdg_component): ... here.
808         (scop_p): New.
809         (struct data_reference): Add a field scop.
810         (DR_SCOP): New.
811         (find_data_references_in_loop): Declared.
812         (find_data_references_in_stmt): Declared.
813         (create_rdg_vertices): Declared.
814         (dr_may_alias_p): Declared.
815         (stmt_simple_memref_p): Declared.
816         (struct rdg_edge): Add a field ddr_p relation.
817         (build_empty_rdg): Declared.
818         * lambda.h (lambda_matrix): Declare a VEC of.
819         (find_induction_var_from_exit_cond): Declared.
820         (lambda_vector_compare): New.
821         * common.opt (fgraphite, floop-strip-mine,
822         floop-interchange, floop-block): New flags.
823         * lambda-code.c (find_induction_var_from_exit_cond): Export.
824         * cfgloop.c (is_loop_exit): New.
825         * cfgloop.h (is_loop_exit): Declared.
826         (create_empty_if_region_on_edge): Declared.
827         (create_empty_loop_on_edge): Declared.
828         * tree-flow.h (add_phi_node_to_bb): Declared.
829         (make_phi_node): Declared.
830         (rename_variables_in_bb): Declared.
831         (perfect_loop_nest_depth): Declared.
832         (graphite_transform_loops): Declared.
833         * Makefile.in (cfgloopmanip.o): Depend on TREE_FLOW_H.
834         (graphite.o-warn): Add -Wno-error.
835         (PPLLIBS, PPLINC, CLOOGLIBS, CLOOGINC): Declared.
836         (LIBS): Add GMPLIBS, CLOOGLIBS, PPLLIBS.
837         (INCLUDES): Add PPLINC, CLOOGINC.
838         (OBJS-common): Add graphite.o.
839         (graphite.o): Add rule.
840         * gimple.h (gimple_vec): ... here.
841         * tree-cfg.c (print_loops): Start printing at ENTRY_BLOCK_PTR.
842         * passes.c (init_optimization_passes): Schedule 
843         pass_graphite_transforms.
844
845 2008-09-02  Samuel Tardieu  <sam@rfc1149.net>
846
847         PR target/37283
848         * opts.c (decode_options): Move processing of -fno-unit-at-a-time
849         and -fno-toplevel-reorder after handle_options.
850
851 2008-09-02  Paul Brook  <paul@codesourcery.com>
852
853         * config/arm/arm.c (arm_tune_cortex_a9): Define.
854         (arm_override_options): Set arm_tune_cortex_a9.
855         (arm_rtx_costs_1): Make register shifts more expensive on Cortex-A9.
856         (arm_issue_rate): Handle cortexa9.
857         * config/arm/arm.h (arm_tune_cortex_a9): Declare.
858         * config/arm/arm-cores.def: Add cortex-a9.
859         * config/arm/arm-tune.md: Regenerate.
860         * config/arm/arm.md: Include cortex-a9.md.
861         (generic_sched, generic_vfp): Add cortexa9.
862         * config/arm/cortex-a9.md: New file.
863
864 2008-09-02  Richard Guenther  <rguenther@suse.de>
865
866         PR tree-optimization/37327
867         * tree-vrp.c (register_new_assert_for): Make sure to not have
868         TREE_OVERFLOW set on the bound.
869
870 2008-09-02  Alexander Monakov  <amonakov@ispras.ru>
871
872         Fixed typo in date of the 2008-09-01 MOVE_RATIO commit.
873
874         * config/ia64/ia64.opt (msched-ar-data-spec): Default to 1.
875         * config/ia64/ia64.c (ia64_set_sched_flags): Always initialize
876         spec_info->mask.
877
878 2008-09-02  Victor Kaplansky  <victork@il.ibm.com>
879
880         * gcc/config/spu/spu.md (divdf3): Removed.
881
882 2008-09-02  Jakub Jelinek  <jakub@redhat.com>
883
884         PR tree-optimization/37095
885         * cgraph.c (cgraph_node): When creating new cgraph node after
886         assembler_name_hash has been populated, record it in the hash
887         table.
888
889 2008-09-01  Paul Brook  <paul@codesourcery.com>
890
891         * doc/invoke.texi: Document -mword-relocations.
892         * config/arm/uclinux-elf.h (TARGET_DEFAULT_WORD_RELOCATIONS): Define.
893         * config/arm/symbian.h (TARGET_DEFAULT_WORD_RELOCATIONS): Define.
894         * config/arm/vxworks.h (TARGET_DEFAULT_WORD_RELOCATIONS): Define.
895         * config/arm/arm.c (arm_split_constant): Use arm_emit_movpair.
896         (arm_rtx_costs_1, arm_size_rtx_costs): Handle HIGH and LO_SUM.
897         (arm_emit_movpair): New function.
898         (arm_print_operand <c>): Handle sybolic addresses.
899         * config/arm/arm.h (TARGET_USE_MOVT): Define.
900         (TARGET_DEFAULT_WORD_RELOCATIONS): Define.
901         * config/arm/arm-protos.h (arm_emit_movpair): Add prototype.
902         * config/arm/arm.opt: Add -mword-relocations.
903         * config/arm/arm.md (movsi): Use arm_emit_movpair.
904         (arm_movt, arm_movw): New.
905
906 2008-09-01  Paul Brook  <paul@codesourcery.com>
907
908         * config/arm/arm.c (arm_override_options): Set arm_abi earlier.
909         Allow Interworking on ARMv4 EABI based targets.
910         * config/arm/bpabi.h (TARGET_FIX_V4BX_SPEC): Define.
911         (SUBTARGET_EXTRA_ASM_SPEC, LINK_SPEC): Add TARGET_FIX_V4BX_SPEC.
912
913 2008-09-01  Paul Brook  <paul@codesourcery.com>
914
915         * config/arm/thumb2.md (thumb2_negscc): Match the correct operand for
916         optimized LT0 test.  Remove optimization for GT.
917
918 2008-09-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
919
920         * pa64-hpux.h (LIB_SPEC): Link against librt when building static
921         openmp applications.
922         * pa-hpux11.h (LIB_SPEC): Likewise.
923
924         * ira.c (setup_eliminable_regset): Only declare i if ELIMINABLE_REGS is
925         defined.
926
927 2008-09-01  Jan Hubicka  <jh@suse.cz>
928
929         * predict.c (maybe_hot_count_p, maybe_hot_edge_p): When profile is
930         present, use only counts; when guessed use only frequencies.
931         (estimate_bb_frequencies): Use function_frequency.
932         * profile.c (compute_branch_probabilities): Exit early when
933         profile reading failed. Set profile_status.
934         (branch_prob): Do not set profile_status.
935
936 2008-09-01  Aldy Hernandez  <aldyh@redhat.com>
937
938         * tree.c (protected_set_expr_location): New.
939         * tree.h (protected_set_expr_location): New prototype.
940         * c-tree.h (build_array_ref): Add argument.
941         (parser_build_unary_op): Same.
942         * c-typeck.c (build_indirect_ref): Handle new location argument.
943         (build_array_ref): Same.
944         (parser_build_unary_op): Same.
945         * gimplify.c (gimplify_asm_expr): Set input_location before calling
946         error.
947         * c-omp.c (c_finish_omp_atomic): Pass location when calling
948         build_indirect_ref.
949         * c-common.c (finish_label_address_expr): Handle new location
950         argument.
951         * c-common.h (build_indirect_ref): Add argument.
952         (finish_label_address_expr): Same.
953         * c-parser.c (c_parser_unary_expression): Pass location to build
954         functions.
955         (c_parser_postfix_expression): Same.
956
957 2008-09-01  Paul Brook  <paul@codesourcery.com>
958
959         * config/arm/arm.md: Include cortex-r4f.md.
960         (attr fpu): Update type list.
961         (attr type): Add fcpys, ffariths, ffarithd, fadds, faddd, fconsts,
962         fconstd, fcmps and fcmpd.
963         (attr tune_cortexr4): Define.
964         (attr generic_sched, attr generic_vfp): Use tune_cortexr4.
965         * config/arm/vfp.md: Document fcpys, ffariths, ffarithd, fadds, faddd,
966         fconsts, fconstd, fcmps and fcmpd.  Use them in insn patterns.
967         * config/arm/arm.c (arm_issue_rate): Add cortexr4f.
968         * config/arm/arm1020e.md (v10_ffarith, v10_farith): Use new insn
969         types.
970         * config/arm/cortex-a8-neon.md (cortex_a8_vfp_add_sub,
971         cortex_a8_vfp_farith: Ditto.
972         * config/arm/vfp11.md (vfp_ffarith, vfp_farith): Ditto.
973         * config/arm/cortex-r4.md: Use tune_cortexr4.
974         * config/arm/cortex-r4f.md: New file.
975
976 2008-09-01  Richard Guenther  <rguenther@suse.de>
977
978         PR tree-optimization/37305
979         * tree-ssa-ccp.c (ccp_fold): Do not set TREE_OVERFLOW on
980         the result of constant conversions.
981         (fold_gimple_assign): Likewise.
982
983 2008-09-01  Andrey Belevantsev  <abel@ispras.ru>
984
985         * sel-sched-ir.c (cmp_v_in_regset_pool): Surround with
986         #ifdef ENABLE_CHECKING.
987
988 2008-09-01  Andrey Belevantsev  <abel@ispras.ru>
989
990         * sel-sched-dump.c: Surround with #ifdef INSN_SCHEDULING.
991         * sched-int.h (print_insn, print_pattern, print_value): Declare also
992         when !INSN_SCHEDULING.
993
994 2008-09-01  Andreas Schwab  <schwab@suse.de>
995
996         * config/ia64/ia64.c (TARGET_ADDRESS_COST): Update.
997
998 2008-09-01  Paul Brook  <paul@codesourcery.com>
999
1000         * config/arm/arm.c (arm_no_early_mul_dep): Handle multiply-subtract.
1001
1002 2008-09-01  Jan Hubicka  <jh@suse.cz>
1003
1004         * config/spu/spu.c (spu_expand_block_move) Update call of MOVE_RATIO.
1005
1006         * expr.c (MOVE_BY_PIECES_P, CLEAR_BY_PIECES_P, SET_BY_PIECES_P): Pass speed operand.
1007         * expr.h (MOVE_RATIO, CLEAR_RATIO, SET_RATIO): Update.
1008         * gimplify.c (gimplify_init_constructor): Add speed operand.
1009         * tree-sra.c (decide_block_copy): Likewise.
1010         * tree-inline.c (estimate_move_cost): Likewise.
1011         * config/alpha/alpha.h (MOVE_RATIO): Update.
1012         * config/frv/frv.c (MOVE_RATIO): Update.
1013         * config/spu/spu.h (MOVE_RATIO): Update.
1014         * config/sparc/sparc.h (MOVE_RATIO): Update.
1015         * config/i386/i386.h (MOVE_RATIO, CLEAR_RATIO): Update.
1016         * config/m68hc11/m68hc11.h (MOVE_RATIO): Update.
1017         * config/cris/cris.h (MOVE_RATIO): Update.
1018         * config/mn10300/mn10300.h (MOVE_RATIO): Update.
1019         * config/arm/arm.h (MOVE_RATIO): Update.
1020         * config/pa/pa.md: Update uses of MOVE_RATIO
1021         * config/pa/pa.h (MOVE_RATIO): Update.
1022         * config/mips/mips.h (MOVE_RATIO, MOVE_BY_PIECES, CLEAR_RATIO, SET_RATIO): Update.
1023         * config/h8300/h8300.h (MOVE_RATIO): Update.
1024         * config/v850/v850.h (MOVE_RATIO): Update.
1025         * config/bfin/bfin.h (MOVE_RATIO): Update.
1026
1027 2008-08-31  Andrey Belevantsev  <abel@ispras.ru>
1028         Dmitry Melnik  <dm@ispras.ru>
1029         Dmitry Zhurikhin  <zhur@ispras.ru>
1030         Alexander Monakov  <amonakov@ispras.ru>
1031         Maxim Kuvyrkov  <maxim@codesourcery.com>
1032
1033         * sel-sched.h, sel-sched-dump.h, sel-sched-ir.h, sel-sched.c,
1034         sel-sched-dump.c, sel-sched-ir.c: New files.
1035         * Makefile.in (OBJS-common): Add selective scheduling object
1036         files.
1037         (sel-sched.o, sel-sched-dump.o, sel-sched-ir.o): New entries.
1038         (SEL_SCHED_IR_H, SEL_SCHED_DUMP_H): New entries.
1039         (sched-vis.o): Add dependency on $(INSN_ATTR_H).
1040         * cfghooks.h (get_cfg_hooks, set_cfg_hooks): New prototypes.
1041         * cfghooks.c (get_cfg_hooks, set_cfg_hooks): New functions.
1042         (make_forwarder_block): Update loop latch if we have redirected
1043         the loop latch edge.
1044         * cfgloop.c (get_loop_body_in_custom_order): New function.
1045         * cfgloop.h (LOOPS_HAVE_FALLTHRU_PREHEADERS): New enum field.
1046         (CP_FALLTHRU_PREHEADERS): Likewise.
1047         (get_loop_body_in_custom_order): Declare.
1048         * cfgloopmanip.c (has_preds_from_loop): New.
1049         (create_preheader): Honor CP_FALLTHRU_PREHEADERS.
1050         Assert that the preheader edge will be fall thru when it is set.
1051         * common.opt (fsel-sched-bookkeeping, fsel-sched-pipelining,
1052         fsel-sched-pipelining-outer-loops, fsel-sched-renaming,
1053         fsel-sched-substitution, fselective-scheduling): New flags.
1054         * cse.c (hash_rtx_cb): New.
1055         (hash_rtx): Use it.
1056         * dbgcnt.def (sel_sched_cnt, sel_sched_region_cnt,
1057         sel_sched_insn_cnt): New counters.
1058         * final.c (compute_alignments): Export.  Free dominance info after loop_optimizer_finalize.
1059         * genattr.c (main): Output maximal_insn_latency prototype.
1060         * genautomata.c (output_default_latencies): New. Factor its code from ...
1061         (output_internal_insn_latency_func): ... here.
1062         (output_internal_maximal_insn_latency_func): New.
1063         (output_maximal_insn_latency_func): New.
1064         * hard-reg-set.h (UHOST_BITS_PER_WIDE_INT): Define unconditionally.
1065         (struct hard_reg_set_iterator): New.
1066         (hard_reg_set_iter_init, hard_reg_set_iter_set,
1067         hard_reg_set_iter_next): New functions.
1068         (EXECUTE_IF_SET_IN_HARD_REG_SET): New macro.
1069         * lists.c (remove_free_INSN_LIST_node,
1070         remove_free_EXPR_LIST_node): New functions.
1071         * loop-init.c (loop_optimizer_init): When LOOPS_HAVE_FALLTHRU_PREHEADERS,
1072         set CP_FALLTHRU_PREHEADERS when calling create_preheaders.
1073         (loop_optimizer_finalize): Do not verify flow info after reload.
1074         * recog.c (validate_replace_rtx_1): New parameter simplify.
1075         Default it to true.  Update all uses.  Factor out simplifying
1076         code to ...
1077         (simplify_while_replacing): ... this new function.
1078         (validate_replace_rtx_part,
1079         validate_replace_rtx_part_nosimplify): New.
1080         * recog.h (validate_replace_rtx_part,
1081         validate_replace_rtx_part_nosimplify): Declare.
1082         * rtl.c (rtx_equal_p_cb): New.
1083         (rtx_equal_p): Use it.
1084         * rtl.h (rtx_equal_p_cb, hash_rtx_cb): Declare.
1085         (remove_free_INSN_LIST_NODE, remove_free_EXPR_LIST_node,
1086         debug_bb_n_slim, debug_bb_slim,    print_rtl_slim): Likewise.
1087         * vecprim.h: Add a vector type for unsigned int.
1088         * haifa-sched.c: Include vecprim.h and cfgloop.h.
1089         (issue_rate, sched_verbose_param, note_list, dfa_state_size,
1090         ready_try, cycle_issued_insns, spec_info): Make global.
1091         (readyp): Initialize.
1092         (dfa_lookahead): New global variable.
1093         (old_max_uid, old_last_basic_block): Remove.
1094         (h_i_d): Make it a vector.
1095         (INSN_TICK, INTER_TICK, QUEUE_INDEX, INSN_COST): Make them work
1096         through HID macro.
1097         (after_recovery, adding_bb_to_current_region_p):
1098         New variables to handle correct insertion of the recovery code.
1099         (struct ready_list): Move declaration to sched-int.h.
1100         (rgn_n_insns): Removed.
1101         (rtx_vec_t): Move to sched-int.h.
1102         (find_insn_reg_weight): Remove.
1103         (find_insn_reg_weight1): Rename to find_insn_reg_weight.
1104         (haifa_init_h_i_d, haifa_finish_h_i_d):
1105         New functions to initialize / finalize haifa instruction data.
1106         (extend_h_i_d, init_h_i_d): Rewrite.
1107         (unlink_other_notes): Move logic to add_to_note_list.  Handle
1108         selective scheduler.
1109         (ready_lastpos, ready_element, ready_sort, reemit_notes,
1110         find_fallthru_edge): Make global, remove static prototypes.
1111         (max_issue): Make global.  Add privileged_n and state parameters.  Use
1112         them.
1113         (extend_global, extend_all): Removed.
1114         (init_before_recovery): Add new param.  Fix the handling of the case
1115         when we insert a recovery code before the EXIT which has a predecessor
1116         with a fallthrough edge to it.
1117         (create_recovery_block): Make global.  Rename to
1118         sched_create_recovery_block.  Update.
1119         (change_pattern): Rename to sched_change_pattern.  Make global.
1120         (speculate_insn): Rename to sched_speculate_insn.  Make global.
1121         Split haifa-specific functionality into ...
1122         (haifa_change_pattern): New static function.
1123         (sched_extend_bb): New static function.
1124         (sched_init_bbs): New function.
1125         (current_sched_info): Change type to struct haifa_sched_info.
1126         (insn_cost): Adjust for selective scheduling.
1127         (dep_cost_1): New function.  Move logic from ...
1128         (dep_cost): ... here.
1129         (dep_cost): Use dep_cost_1.
1130         (contributes_to_priority_p): Use sched_deps_info instead of
1131         current_sched_info.
1132         (priority): Adjust to work with selective scheduling.  Process the
1133         corner case when all dependencies don't contribute to priority.
1134         (rank_for_schedule): Use ds_weak instead of dep_weak.
1135         (advance_state): New function.  Move logic from ...
1136         (advance_one_cycle): ... here.
1137         (add_to_note_list, concat_note_lists): New functions.
1138         (rm_other_notes): Make static.  Adjust for selective scheduling.
1139         (remove_notes, restore_other_notes): New functions.
1140         (move_insn): Add two arguments.  Update assert.  Don't call
1141         reemit_notes.
1142         (choose_ready): Remove lookahead variable, use dfa_lookahead.
1143         Remove more_issue, max_points.  Move the code to initialize
1144         max_lookahead_tries to max_issue.
1145         (schedule_block): Remove rgn_n_insns1 parameter.  Don't allocate
1146         ready.  Adjust use of move_insn.  Call restore_other_notes.
1147         (luid): Remove.
1148         (sched_init, sched_finish): Move Haifa-specific initialization/
1149         finalization to ...
1150         (haifa_sched_init, haifa_sched_finish): ... respectively.
1151         New functions.
1152         (setup_sched_dump): New function.
1153         (haifa_init_only_bb): New static function.
1154         (haifa_speculate_insn): New static function.
1155         (try_ready): Use haifa_* instead of speculate_insn and
1156         change_pattern.
1157         (extend_ready, extend_all): Remove.
1158         (sched_extend_ready_list, sched_finish_ready_list): New functions.
1159         (create_check_block_twin, add_to_speculative_block): Use
1160         haifa_insns_init instead of extend_global.  Update to use new
1161         initialization functions.  Change parameter.  Factor out code from
1162         create_check_block_twin to ...
1163         (sched_create_recovery_edges) ... this new function.
1164         (add_block): Remove.
1165         (sched_scan_info): New.
1166         (extend_bb): Use sched_scan_info.
1167         (init_bb, extend_insn, init_insn, init_insns_in_bb, sched_scan): New
1168         static functions for walking through scheduling region.
1169         (sched_luids): New vector variable to replace uid_to_luid.
1170         (luids_extend_insn): New function.
1171         (sched_max_luid): New variable.
1172         (luids_init_insn): New function.
1173         (sched_init_luids, sched_finish_luids): New functions.
1174         (insn_luid): New debug function.
1175         (sched_extend_target): New function.
1176         (haifa_init_insn): New static function.
1177         (sched_init_only_bb): New hook.
1178         (sched_split_block): New hook.
1179         (sched_split_block_1): New function.
1180         (sched_create_empty_bb): New hook.
1181         (sched_create_empty_bb_1): New function.
1182         (common_sched_info, ready): New global variables.
1183         (current_sched_info_var): Remove.
1184         (move_block_after_check): Use common_sched_info.
1185         (haifa_luid_for_non_insn): New static function.
1186         (init_before_recovery): Use haifa_init_only_bb instead of
1187         add_block.
1188         (increase_insn_priority): New.
1189         * modulo-sched.c: (issue_rate): Remove static declaration.
1190         (sms_sched_info): Change type to haifa_sched_info.
1191         (sms_sched_deps_info, sms_common_sched_info): New variables.
1192         (setup_sched_infos): New.
1193         (sms_schedule): Initialize them.  Call haifa_sched_init/finish.
1194         Do not call regstat_free_calls_crossed.
1195         (sms_print_insn): Use const_rtx.
1196         * params.def (PARAM_MAX_PIPELINE_REGION_BLOCKS,
1197         PARAM_MAX_PIPELINE_REGION_INSNS, PARAM_SELSCHED_MAX_LOOKAHEAD,
1198         PARAM_SELSCHED_MAX_SCHED_TIMES, PARAM_SELSCHED_INSNS_TO_RENAME,
1199         PARAM_SCHED_MEM_TRUE_DEP_COST): New.
1200         * sched-deps.c (sched_deps_info): New.  Update all relevant uses of
1201         current_sched_info to use it.
1202         (enum reg_pending_barrier_mode): Move to sched-int.h.
1203         (h_d_i_d): New variable. Initialize to NULL.
1204         ({true, output, anti, spec, forward}_dependency_cache): Initialize
1205         to NULL.
1206         (estimate_dep_weak): Remove static declaration.
1207         (sched_has_condition_p): New function.  Adjust users of
1208         sched_get_condition to use it instead.
1209         (conditions_mutex_p): Add arguments indicating which conditions are
1210         reversed.  Use them.
1211         (sched_get_condition_with_rev): Rename from sched_get_condition.  Add
1212         argument to indicate whether returned condition is reversed.  Do not
1213         generate new rtx when condition should be reversed; indicate it by
1214         setting new argument instead.
1215         (add_dependence_list_and_free): Add deps parameter.
1216         Update all users.  Do not free dependence list when
1217         deps context is readonly.
1218         (add_insn_mem_dependence, flush_pending_lists): Adjust for readonly
1219         contexts.
1220         (remove_from_dependence_list, remove_from_both_dependence_lists): New.
1221         (remove_from_deps): New. Use the above functions.
1222         (cur_insn, can_start_lhs_rhs_p): New static variables.
1223         (add_or_update_back_dep_1): Initialize present_dep_type.
1224         (haifa_start_insn, haifa_finish_insn, haifa_note_reg_set,
1225         haifa_note_reg_clobber, haifa_note_reg_use, haifa_note_mem_dep,
1226         haifa_note_dep): New functions implementing dependence hooks for
1227         the Haifa scheduler.
1228         (note_reg_use, note_reg_set, note_reg_clobber, note_mem_dep,
1229         note_dep): New functions.
1230         (ds_to_dt, extend_deps_reg_info, maybe_extend_reg_info_p): New
1231         functions.
1232         (init_deps): Initialize last_reg_pending_barrier and deps->readonly.
1233         (free_deps): Initialize deps->reg_last.
1234         (sched_analyze_reg, sched_analyze_1, sched_analyze_2,
1235         sched_analyze_insn): Update to use dependency hooks infrastructure
1236         and readonly contexts.
1237         (deps_analyze_insn): New function.  Move part of logic from ...
1238         (sched_analyze): ... here.  Also move some logic to ...
1239         (deps_start_bb): ... here.  New function.
1240         (add_forw_dep, delete_forw_dep): Guard use of INSN_DEP_COUNT with
1241         sel_sched_p.
1242         (sched_deps_init): New function.  Move code from ...
1243         (init_dependency_caches): ... here.  Remove.
1244         (init_deps_data_vector): New.
1245         (sched_deps_finish): New function.  Move code from ...
1246         (free_dependency_caches): ... here.  Remove.
1247         (init_deps_global, finish_deps_global): Adjust for use with
1248         selective scheduling.
1249         (get_dep_weak): Move logic to ...
1250         (get_dep_weak_1): New function.
1251         (ds_merge): Move logic to ...
1252         (ds_merge_1): New static function.
1253         (ds_full_merge, ds_max_merge, ds_get_speculation_types): New functions.
1254         (ds_get_max_dep_weak): New function.
1255         * sched-ebb.c (sched_n_insns): Rename to sched_rgn_n_insns.
1256         (n_insns): Rename to rgn_n_insns.
1257         (debug_ebb_dependencies): New function.
1258         (init_ready_list): Use it.
1259         (begin_schedule_ready): Use sched_init_only_bb.
1260         (ebb_print_insn): Indicate when an insn starts a new cycle.
1261         (contributes_to_priority, compute_jump_reg_dependencies,
1262         add_remove_insn, fix_recovery_cfg): Add ebb_ prefix to function names.
1263         (add_block1): Remove to ebb_add_block.
1264         (ebb_sched_deps_info, ebb_common_sched_info): New variables.
1265         (schedule_ebb): Initialize them.  Use remove_notes instead of
1266         rm_other_notes.  Use haifa_local_init/finish.
1267         (schedule_ebbs): Use haifa_sched_init/finish.
1268         * sched-int.h: Include vecprim.h, remove rtl.h.
1269         (struct ready_list): Delete declaration.
1270         (sched_verbose_param, enum sched_pass_id_t,
1271         bb_vec_t, insn_vec_t, rtx_vec_t): New.
1272         (struct sched_scan_info_def): New structure.
1273         (sched_scan_info, sched_scan, sched_init_bbs,
1274         sched_init_luids, sched_finish_luids, sched_extend_target,
1275         haifa_init_h_i_d, haifa_finish_h_i_d): Declare.
1276         (struct common_sched_info_def): New.
1277         (common_sched_info, haifa_common_sched_info,
1278         sched_emulate_haifa_p): Declare.
1279         (sel_sched_p): New.
1280         (sched_luids): Declare.
1281         (INSN_LUID, LUID_BY_UID, SET_INSN_LUID): Declare.
1282         (sched_max_luid, insn_luid): Declare.
1283         (note_list, remove_notes, restore_other_notes, bb_note): Declare.
1284         (sched_insns_init, sched_insns_finish, xrecalloc, reemit_notes,
1285         print_insn, print_pattern, print_value, haifa_classify_insn,
1286         sel_find_rgns, sel_mark_hard_insn, dfa_state_size, advance_state,
1287         setup_sched_dump, sched_init, sched_finish,
1288         sel_insn_is_speculation_check): Export.
1289         (struct ready_list): Move from haifa-sched.c.
1290         (ready_try, ready, max_issue): Export.
1291         (ebb_compute_jump_reg_dependencies, find_fallthru_edge,
1292         sched_init_only_bb, sched_split_block, sched_split_block_1,
1293         sched_create_empty_bb, sched_create_empty_bb_1,
1294         sched_create_recovery_block, sched_create_recovery_edges): Export.
1295         (enum reg_pending_barrier_mode): Export.
1296         (struct deps): New fields `last_reg_pending_barrier' and `readonly'.
1297         (deps_t): New.
1298         (struct sched_info): Rename to haifa_sched_info.  Use const_rtx for
1299         print_insn field.  Move add_block and fix_recovery_cfg to
1300         common_sched_info_def.  Move compute_jump_reg_dependencies, use_cselib  ...
1301         (struct sched_deps_info_def): ... this new structure.
1302         (sched_deps_info): Declare.
1303         (struct spec_info_def): Remove weakness_cutoff, add
1304         data_weakness_cutoff and control_weakness_cutoff.
1305         (spec_info): Declare.
1306         (struct _haifa_deps_insn_data): Split from haifa_insn_data.  Add
1307         dep_count field.
1308         (struct haifa_insn_data): Rename to struct _haifa_insn_data.
1309         (haifa_insn_data_def, haifa_insn_data_t): New typedefs.
1310         (current_sched_info): Change type to struct haifa_sched_info.
1311         (haifa_deps_insn_data_def, haifa_deps_insn_data_t): New typedefs.
1312         (h_d_i_d): New variable.
1313         (HDID): New accessor macro.
1314         (h_i_d): Change type to VEC (haifa_insn_data_def, heap) *.
1315         (HID): New accessor macro.  Rewrite h_i_d accessor macros through HID
1316         and HDID.
1317         (IS_SPECULATION_CHECK_P): Update for selective scheduler.
1318         (enum SCHED_FLAGS): Update for selective scheduler.
1319         (enum SPEC_SCHED_FLAGS): New flag SEL_SCHED_SPEC_DONT_CHECK_CONTROL.
1320         (init_dependency_caches, free_dependency_caches): Delete declarations.
1321         (deps_analyze_insn, remove_from_deps, get_dep_weak_1,
1322         estimate_dep_weak, ds_full_merge, ds_max_merge, ds_weak,
1323         ds_get_speculation_types, ds_get_max_dep_weak, sched_deps_init,
1324         sched_deps_finish, haifa_note_reg_set, haifa_note_reg_use,
1325         haifa_note_reg_clobber, maybe_extend_reg_info_p, deps_start_bb,
1326         ds_to_dt): Export.
1327         (rm_other_notes): Delete declaration.
1328         (schedule_block): Remove one argument.
1329         (cycle_issued_insns, issue_rate, dfa_lookahead, ready_sort,
1330         ready_element, ready_lastpos, sched_extend_ready_list,
1331         sched_finish_ready_list, sched_change_pattern, sched_speculate_insn,
1332         concat_note_lists): Export.
1333         (struct region): Move from sched-rgn.h.
1334         (nr_regions, rgn_table, rgn_bb_table, block_to_bb, containing_rgn,
1335         RGN_NR_BLOCKS, RGN_BLOCKS, RGN_DONT_CALC_DEPS, RGN_HAS_REAL_EBB,
1336         BLOCK_TO_BB, CONTAINING_RGN): Export.
1337         (ebb_head, BB_TO_BLOCK, EBB_FIRST_BB, EBB_LAST_BB, INSN_BB): Likewise.
1338         (current_nr_blocks, current_blocks, target_bb): Likewise.
1339         (dep_cost_1, sched_is_disabled_for_current_region_p, sched_rgn_init,
1340         sched_rgn_finish, rgn_setup_region, sched_rgn_compute_dependencies,
1341         sched_rgn_local_init, extend_regions,
1342         rgn_make_new_region_out_of_new_block, compute_priorities,
1343         debug_rgn_dependencies, free_rgn_deps, contributes_to_priority,
1344         extend_rgns, deps_join rgn_setup_common_sched_info,
1345         rgn_setup_sched_infos, debug_regions, debug_region, dump_region_dot,
1346         dump_region_dot_file, haifa_sched_init, haifa_sched_finish): Export.
1347         (get_rgn_sched_max_insns_priority, sel_add_to_insn_priority,
1348         increase_insn_priority): Likewise.
1349         * sched-rgn.c: Include sel-sched.h.
1350         (ref_counts): New static variable.  Use it ...
1351         (INSN_REF_COUNT): ... here.  Rewrite and move closer to uses.
1352         (FED_BY_SPEC_LOAD, IS_LOAD_INSN): Rewrite to use HID accessor macro.
1353         (sched_is_disabled_for_current_region_p): Delete static declaration.
1354         (struct region): Move to sched-int.h.
1355         (nr_regions, rgn_table, rgn_bb_table, block_to_bb, containing_rgn,
1356         ebb_head): Define and initialize.
1357         (RGN_NR_BLOCKS, RGN_BLOCKS, RGN_DONT_CALC_DEPS, RGN_HAS_REAL_EBB,
1358         BLOCK_TO_BB, CONTAINING_RGN, debug_regions, extend_regions,
1359         BB_TO_BLOCK, EBB_FIRST_BB, EBB_LAST_BB): Move to
1360         sched-int.h.
1361         (find_single_block_region): Add new argument to indicate that EBB
1362         regions should be constructed.
1363         (debug_live): Delete declaration.
1364         (current_nr_blocks, current_blocks, target_bb): Remove static qualifiers.
1365         (compute_dom_prob_ps, check_live, update_live, set_spec_fed): Delete
1366         declaration.
1367         (init_regions): Delete declaration.
1368         (debug_region, bb_in_region_p, dump_region_dot_file, dump_region_dot,
1369         rgn_estimate_number_of_insns): New.
1370         (too_large): Use estimate_number_of_insns.
1371         (haifa_find_rgns): New. Move the code from ...
1372         (find_rgns): ... here.  Call either sel_find_rgns or haifa_find_rgns.
1373         (free_trg_info): New.
1374         (compute_trg_info): Allocate candidate tables here instead of ...
1375         (init_ready_list): ... here.
1376         (rgn_print_insn): Use const_rtx.
1377         (contributes_to_priority, extend_regions): Delete static declaration.
1378         (add_remove_insn, fix_recovery_cfg): Add rgn_ to function names.
1379         (add_block1): Rename to rgn_add_block.
1380         (debug_rgn_dependencies): Delete static qualifier.
1381         (new_ready): Use sched_deps_info.  Simplify.
1382         (rgn_common_sched_info, rgn_const_sched_deps_info,
1383         rgn_const_sel_sched_deps_info, rgn_sched_deps_info, rgn_sched_info): New.
1384         (region_sched_info): Rename to rgn_const_sched_info.
1385         (deps_join): New, extracted from ...
1386         (propagate_deps): ... here.
1387         (compute_block_dependences, debug_dependencies): Update for selective
1388         scheduling.
1389         (free_rgn_deps, compute_priorities): New functions.
1390         (sched_rgn_init, sched_rgn_finish, rgn_setup_region,
1391         sched_rgn_compute_dependencies): New functions.
1392         (schedule_region): Use them.
1393         (sched_rgn_local_init, sched_rgn_local_free, sched_rgn_local_finish,
1394         rgn_setup_common_sched_info, rgn_setup_sched_infos):
1395         New functions.
1396         (schedule_insns): Call new functions that were split out.
1397         (rgn_make_new_region_out_of_new_block): New.
1398         (get_rgn_sched_max_insns_priority): New.
1399         (rest_of_handle_sched, rest_of_handle_sched2): Call selective
1400         scheduling when appropriate.
1401         * sched-vis.c: Include insn-attr.h.
1402         (print_value, print_pattern): Make global.
1403         (print_rtl_slim, debug_bb_slim, debug_bb_n_slim): New functions.
1404         * target-def.h (TARGET_SCHED_ADJUST_COST_2,
1405         TARGET_SCHED_ALLOC_SCHED_CONTEXT, TARGET_SCHED_INIT_SCHED_CONTEXT,
1406         TARGET_SCHED_SET_SCHED_CONTEXT, TARGET_SCHED_CLEAR_SCHED_CONTEXT,
1407         TARGET_SCHED_FREE_SCHED_CONTEXT, TARGET_SCHED_GET_INSN_CHECKED_DS,
1408         TARGET_SCHED_GET_INSN_SPEC_DS, TARGET_SCHED_SKIP_RTX_P): New target
1409         hooks.  Initialize them to 0.
1410         (TARGET_SCHED_GEN_CHECK): Rename to TARGET_SCHED_GEN_SPEC_CHECK.
1411         * target.h (struct gcc_target): Add them.  Rename gen_check field to
1412         gen_spec_check.
1413         * flags.h (sel_sched_switch_set): Declare.
1414         * opts.c (sel_sched_switch_set): New variable.
1415         (decode_options): Unset flag_sel_sched_pipelining_outer_loops if
1416         pipelining is disabled from command line.
1417         (common_handle_option): Record whether selective scheduling is
1418         requested from command line.
1419         * doc/invoke.texi: Document new flags and parameters.
1420         * doc/tm.texi: Document new target hooks.
1421         * config/ia64/ia64.c (TARGET_SCHED_GEN_SPEC_CHECK): Define to ia64_gen_check.
1422         (dfa_state_size): Do not declare locally.
1423         * config/ia64/ia64.opt (msched-ar-data-spec): Default to 0.
1424         * config/rs6000/rs6000.c (rs6000_init_sched_context,
1425         rs6000_alloc_sched_context, rs6000_set_sched_context,
1426         rs6000_free_sched_context): New functions.
1427         (struct _rs6000_sched_context): New.
1428         (rs6000_sched_reorder2): Do not modify INSN_PRIORITY for selective
1429         scheduling.
1430         (rs6000_sched_finish): Do not run for selective scheduling.
1431
1432 2008-08-31  Jan Hubicka  <jh@suse.cz>
1433
1434         * frv.c (frv_rtx_costs): Update forward declaration.
1435         * spu.c (spu_rtx_costs): Likewise.
1436         * pdp11.c: Include df.h
1437         (pdp11_output_function_epilogue): Use df_set_regs_ever_live.
1438         * m68hc11.c (m68hc11_gen_highpart): Fix call of gen_rtx_SUBREG.
1439         (m68hc11_rtx_costs_1): Fix call of rtx_cost.
1440         * iq2000.c (iq2000_address_cost): Add speed argument.
1441         (iq2000_rtx_costs): Likewise.
1442         * mn10300.c (mn10300_address_cost_1): Remove speed argument;
1443         update call of mn10300_address_cost.
1444         * mcore.c: Include df.h
1445         (mcore_rtx_costs): Update prototype.
1446         * score3.c: Include df.h
1447         (score3_rtx_costs): Remove speed argument.
1448         * score7.c: Include df.h
1449         (score7_address_cost): Remove speed argument.
1450         * score-protos.h (score_address_cost): Update prototype.
1451         * score.c: Include df.h
1452         (score_rtx_costs): Update call of costs functions.
1453         * v850.c (v850_rtx_costs): Add bool argument.
1454
1455 2008-08-31  Hans-Peter Nilsson  <hp@axis.com>
1456
1457         * config/cris/cris.c (cris_rtx_costs): Correct call to rtx_costs.
1458
1459 2008-08-31  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
1460
1461         * gthr-win32.h (__gthread_setspecific): Use CONST_CAST2.
1462         * config/i386/gthr-win32.c (__gthread_setspecific): Same.
1463
1464 2008-08-31  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
1465
1466         * mkmap-flat.awk: Add option pe_dll.
1467         * config/i386/t-cygming (SHLIB_LINK): Support building libgcc_s.
1468         * config/i386/t-cygwin (SHLIB_LC): Add.
1469         * config/i386/t-mingw32 (SHLIB_LC): Add.
1470         * config/i386/mingw32.h (SHARED_LIBGCC_UNDEFS_SPEC): New.
1471         (SUBTARGET_EXTRA_SPECS): Use SHARED_LIBGCC_UNDEFS_SPEC.
1472         (LINK_SPEC): Support libgcc_s.
1473         (LIBGCC_SPEC): Support libgcc_s.
1474         (LIBGCC_SONAME): New.
1475
1476 2008-08-31  Jan Hubicka  <jh@suse.cz>
1477
1478         * predict.c (maybe_hot_bb_p, maybe_hot_edge_p): Previous commit
1479         mistakely had old version of patch.
1480
1481         * ipa-cp.c (ipcp_need_original_clone_p): Remove.
1482         (ipcp_estimate_growth): New.
1483         (ipcp_insert_stage): Use ipcp_estimate_growth.
1484         * profile.c (branch_prob): When reading failed, do not consider
1485         profile as read.
1486
1487 2008-08-31  Jan Hubicka  <jh@suse.cz>
1488
1489         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Check that
1490         loop is optimized for speed.
1491
1492 2008-08-31  Richard Guenther  <rguenther@suse.de>
1493
1494         PR middle-end/37289
1495         * fold-const.c (fold_binary): Retain conversions in folding
1496         ~A + 1 to -A.
1497
1498 2008-08-31  Jan Hubicka  <jh@suse.cz>
1499
1500         * postreload-gcse.c (eliminate_partially_redundant_loads): Use optimize_bb_for_size_p.
1501         * predict.c (maybe_hot_frequency_p): Make inline.
1502         (maybe_hot_count_p): Break out from ...
1503         (maybe_hot_bb_p): ... this one.
1504         (maybe_hot_edge_p): Simplify.
1505         * basic-block.h (probably_cold_bb_p): Remove.
1506
1507 2008-08-31  Jakub Jelinek  <jakub@redhat.com>
1508
1509         PR target/37168
1510         * config/rs6000/rs6000-protos.h (const_vector_elt_as_int): Add
1511         prototype.
1512         * config/rs6000/rs6000.c (const_vector_elt_as_int): No longer static.
1513         * config/rs6000/altivec.md (easy_vector_constant_add_self splitter):
1514         Also split V4SFmode.
1515         * config/rs6000/predicates.md (easy_vector_constant_add_self): Handle
1516         vector float modes.
1517
1518 2008-08-31  Jan Hubicka  <jh@suse.cz>
1519
1520         * predict.c (PROB_VERY_LIKELY): Make small enough so things
1521         become cold.
1522         * predict.def (PRED_NORETURN_CALL, PRED_COLD_CALL): Use it.
1523
1524 2008-08-31  Jakub Jelinek  <jakub@redhat.com>
1525
1526         PR debug/37287
1527         * dwarf2out.c (gen_namespace_die): For DECL_EXTERNAL modules don't
1528         add source coords.
1529
1530         * dwarf2out.c (native_encode_initializer): Subtract min_index for
1531         non-range array index.  Handle VIEW_CONVERT_EXPR and NON_LVALUE_EXPR.
1532
1533 2008-08-31  Jan Hubicka  <jh@suse.cz>
1534
1535         * sparc.h (BRANCH_COST): Fix macro definition.
1536         * avr.c (avr_operand_rtx_cost): Add speed argument.
1537         (avr_rtx_costs): Update calls of avr_operand_rtx_cost.
1538
1539 2008-08-31  Richard Guenther  <rguenther@suse.de>
1540
1541         * tree-cfg.c (verify_types_in_gimple_assign): Dump mismatched
1542         types instead of operands.  Re-instantiate verifying of
1543         binary expression operands.
1544
1545 2008-08-30  Jan Hubicka  <jh@suse.cz>
1546
1547         * fwprop.c (should_replace_address): Add speed attribute.
1548         (PR_OPTIMIZE_FOR_SPEED): New flag.
1549         (propagate_rtx_1): Use it.
1550         (propagate_rtx): Set it.
1551         (try_fwprop_subst): Update call of rtx_costs.
1552         (forward_propagate_and_simplify): LIkewise.
1553         * hooks.c (hook_int_rtx_bool_0): New
1554         (hook_bool_rtx_int_int_intp_false): Replace by ...
1555         (hook_bool_rtx_int_int_intp_bool_false): .. thisone.
1556         * hooks.h (hook_int_rtx_bool_0): New
1557         (hook_bool_rtx_int_int_intp_false): Replace by ...
1558         (hook_bool_rtx_int_int_intp_bool_false): .. thisone.
1559         * optabs.c (avoid_expensive_constant): UPdate call of rtx_cost.
1560         (prepare_cmp_insn): UPdate call of rtx_cost.
1561         * postreload.c (reload_cse_simplify_set): Update call of rtx_cost.
1562         (reload_cse_simplify_operands): Update call of rtx_cost.
1563         (reload_cse_move2add): call of rtx_cost.
1564         * target.h (struct gcc_target): Update rtx_costs and address_costs.
1565         * rtlanal.c (rtx_cost): Add speed argument.
1566         (address_cost): Add speed argument
1567         (default_address_cost): Likewise.
1568         (insn_rtx_cost): Likewise.
1569         * cfgloopanal.c (seq_cost): Add speed argument.
1570         (target_reg_cost, target_spill_cost): Turn to array.
1571         (init_set_costs): Update for speed.
1572         (estimate_reg_pressure_cost): Add speed argument.
1573         * auto-inc-dec.c (attempt_change): Update call of rtx_cost.
1574         * dojump.c (prefer_and_bit_test): UPdate call of rtx_cost.
1575         * tree-ssa-loop-ivopts.c (struct ivopts_data): New field speed.
1576         (seq_cost): Add speed argument.
1577         (computation_cost): Add speed arugment.
1578         (add_cost, multiply_by_const, get_address_cost): add speed argument.
1579         (force_expr_to_var_cost): Update for profile info.
1580         (force_var_cost): Likewise.
1581         (split_address_cost): Likewise.
1582         (ptr_difference_cost): Likewise.
1583         (difference_cost): Likewise.
1584         (get_computation_cost_at): Likewise.
1585         (determine_iv_cost): Likewise.
1586         (ivopts_global_cost_for_size): Likewise.
1587         (rewrite_use_address): Likewise.
1588         (tree_ssa_iv_optimize_loop): Initialize speed field.
1589         * cse.c (optimize_this_for_speed_p): New static var.
1590         (notreg_cost): Update call of rtx_cost.
1591         (cse_extended_basic_block): set optimize_this_for_speed_p.
1592         * ifcvt.c (cheap_bb_rtx_cost_p): Update call of rtx_cost.
1593         (noce_try_cmove_arith): Likewise.
1594         (noce_try_sign_mask): LIkewise.
1595         * expr.c (compress_float_constant): Update rtx_cost calls.
1596         * tree-ssa-address.c (most_expensive_mult_to_index): Add speed argument.
1597         (addr_to_parts): Likewise.
1598         (create_mem_ref): Likewise.
1599         * dse.c (find_shift_sequence): Add speed argument.
1600         (replace_read): Update call.
1601         * calls.c (precompute_register_parameters): Update call of rtx_cost.
1602         * expmed.c (sdiv_pow2_cheap, smod_pow2_cheap, zero_cost, add_cost,
1603         * neg_cost, shift_cost, shiftadd_cost,
1604         shiftsub_cost, mul_cost, sdiv_cost, udiv_cost ,mul_widen_cost,
1605         mul_highpart_cost): Increase dimension.
1606         (init_expmed): Initialize for both size and speed.
1607         (expand_shift): Use profile.
1608         (synth_mult): Use profile.
1609         (choose_mult_variant): Use profile.
1610         (expand_mult): Use profile.
1611         (expand_mult_highpart_optab): Use profile.
1612         (expand_mult_highpart): Use profile.
1613         (expand_smod_pow2): Use profile.
1614         (expand_divmod): Use profile.
1615         * simplify-rtx.c (simplify_binary_operation_1): Update call of rtx_cost.
1616         * loop-invariant.c (create_new_invariant): Use profile.
1617         (gain_for_invariant): Add speed parameter.
1618         (best_gain_for_invariant): Likewise.
1619         (find_invariants_to_move): Likewise.
1620         (move_single_loop_invariants): Set it.
1621         * target-def.h (TARGET_RTX_COSTS): Use hook.
1622         * rtl.h (rtx_cost, address_cost, insn_rtx_cost): Update prototpe.
1623         (optimize_insn_for_size_p, optimize_insn_for_speed_p): Declare.
1624         * output.h (default_address_cost): Update prototype.
1625         * combine.c (optimize_this_for_speed_p): New static var.
1626         (combine_validate_cost): Update call of rtx_cost.
1627         (combine_instructions): Set optimize_this_for_speed_p.
1628         (expand_compound_operation): Update call of rtx_cost.
1629         (make_extraction):Update call of rtx_cost.
1630         (force_to_mode):Update call of rtx_cost.
1631         (distribute_and_simplify_rtx):Update call of rtx_cost.
1632         * cfgloop.h (target_reg_cost, target_spill_cost): Turn to array.
1633         (estimate_reg_pressure_cost): Update prototype.
1634         * tree-flow.h (multiply_by_cost, create_mem_ref): Update prototype.
1635         * basic-block.h (optimize_insn_for_size_p, optimize_insn_for_speed_p):
1636         Remove.
1637         * config/alpha/alpha.c (alpha_rtx_costs): Update.
1638         (alpha_rtx_costs): Update.
1639         * config/frv/frv.c (frv_rtx_costs): Update.
1640         * config/s390/s390.c (s390_rtx_costs): Update.
1641         * config/m32c/m32c.c (m32c_memory_move_cost): Update.
1642         (m32c_rtx_costs): Update.
1643         * config/spu/spu.c (TARGET_ADDRESS_COST): Upate.
1644         (spu_rtx_costs): Update.
1645         * config/sparc/sparc.c (sparc_rtx_costs): Update.
1646         * config/m32r/m32r.c (m32r_rtx_costs): Update.
1647         * config/i386/i386.c (:ix86_address_cost): Update.
1648         (ix86_rtx_costs): Update.
1649         * config/sh/sh.c (sh_rtx_costs, sh_address_cost): Update.
1650         * config/pdp11/pdp11.c (pdp11_rtx_costs): Update.
1651         * config/avr/avr.c (avr_rtx_costs, avr_address_cost): Update.
1652         * config/crx/crx.c (crx_address_cost): Update.
1653         * config/xtensa/xtensa.c (xtensa_rtx_costs): Update.
1654         * config/stormy16/stormy16.c
1655         (xstormy16_address_cost, xstormy16_rtx_costs): Update.
1656         * config/m68hc11/m68hc11.c
1657         (m68hc11_address_cost, m68hc11_rtx_costs): Update.
1658         * config/cris/cris.c (cris_rtx_costs, cris_address_cost): Update.
1659         * config/iq2000/iq2000.c (iq2000_rtx_costs, iq2000_address_cost): Update.
1660         * config/mn10300/mn10300.c (mn10300_address_cost, mn10300_rtx_costs): Update
1661         * config/ia64/ia64.c (ia64_rtx_costs): Update.
1662         * config/m68k/m68k.c (m68k_rtx_costs): Update.
1663         * config/rs6000/rs6000.c (rs6000_rtx_costs): Update.
1664         * config/arc/arc.c (arc_rtx_costs, arc_address_cost): Update.
1665         * config/mcore/mcore.c (TARGET_ADDRESS_COST): Update.
1666         (mcore_rtx_costs): update.
1667         * config/score/score3.c (score3_rtx_costs): Update.
1668         * config/score/score7.c (score7_rtx_costs): Update.
1669         * config/score/score3.h (score3_rtx_costs):Update.
1670         * config/score/score7.h (score7_rtx_costs): Update.
1671         * config/score/score.c (score_rtx_costs): Update.
1672         * config/arm/arm.c (arm_address_cost): Update.
1673         (arm_rtx_costs_1): Update.
1674         (arm_rtx_costs_1): Update.
1675         (arm_size_rtx_costs): Update.
1676         (arm_size_rtx_costs): Update.
1677         (arm_size_rtx_costs): Update.
1678         (arm_xscale_rtx_costs): Update.
1679         (arm_thumb_address_cost): Update.
1680         * config/pa/pa.c (hppa_address_cost): Update.
1681         * config/mips/mips.c (mips_rtx_costs): Update.
1682         * config/vax/vax.c (vax_address_cost): Update.
1683         * config/h8300/h8300.c (h8300_shift_costs): Update.
1684         (h8300_rtx_costs): Update.
1685         * config/v850/v850.c (TARGET_ADDRESS_COST): Update.
1686         (v850_rtx_costs): Update.
1687         * config/mmix/mmix.c (mmix_rtx_costs, mmix_rtx_costs): Update.
1688         * config/bfin/bfin.c
1689         (bfin_address_cost): Update.
1690         (bfin_rtx_costs): Update.
1691         * stmt.c (lshift_cheap_p): Update.
1692
1693 2008-08-30  Andrew Pinski  <andrew_pinski@playstation.sony.com>
1694
1695         PR middle-end/36444
1696         * expmed.c (extract_bit_field_1): Check the mode size to make
1697         sure the vector modes have the same size.
1698
1699 2008-08-29  Michael Meissner  <gnu@the-meissners.org>
1700
1701         * dojump.c (top level): Include basic-block.h to declare
1702         optimize_insn_for_speed_p
1703
1704         * Makefile.in (dodump.h): Add $(BASIC_BLOCK_H) dependency.
1705
1706         * opts.h (CL_SAVE): New option class for marking options that are
1707         target specific options usable in the target attribute.
1708         (CL_MIN_OPTION_CLASS): CL_SAVE is now the minimum option.
1709
1710         * opt-functions.awk (switch_flags): Add CL_SAVE flag so backends
1711         can easily find the target specific options that are safe to use
1712         in the attribute or pragma.
1713
1714         * attribs.c (decl_attributes): Change #pragma GCC option to
1715         #pragma GCC target, and attribute((option(...))) to
1716         attribute((target(...))).
1717
1718         * doc/extend.texi (target attribute): Change from option
1719         attribute.  Delete push/pop/reset.
1720         (#pragma GCC target): Change from #pragma GCC option.  Delete
1721         push/pop/reset.
1722         (#pragma GCC push_options): Document new pragma.
1723         (#pragma GCC pop_options): Document new pragma.
1724         (#pragma GCC reset_options): Document new pragma.
1725
1726         * targhooks.c (default_target_option_valid_attribute_p): Add
1727         warning about port not supporting target attributes.
1728         (default_target_option_pragma_parse): New function, warn about
1729         #pragma GCC target not being supported.
1730
1731         * targhooks.h (default_target_option_pragma_parse): Add
1732         declaration.
1733
1734         * tree.h (TI_CURRENT_TARGET_PRAGMA): Rename from
1735         TI_CURRENT_OPTION_PRAGMA.
1736         (current_target_pragma): Rename from current_option_pragma.
1737
1738         * target.h: (struct target_option): Delete booleans for changing
1739         the optimization level on hot/cold functions.  Change signature of
1740         pragma_parse hook to take a second tree.
1741
1742         * c-tree.h (c_builtin_function_ext_scope): Add declaration.
1743
1744         * c-decl.c (c_builtin_function_ext_scope): New function, guarantee
1745         that the declaration is done at global scope.
1746
1747         * langhooks.c (add_builtin_function_common): Move most of the code
1748         from add_builtin_function here, calling the hook passed in.
1749         (add_builtin_function): Call add_builtin_function_common with
1750         standard builtin hook.
1751         (add_builtin_function_ext_scope): New function to add builtins to
1752         global scope.
1753
1754         * langhooks.h (struct lang_hooks): Add builtin_function_ext_scope
1755         hook.
1756         (add_builtin_function_ext_scope): Add declaration.
1757
1758         * c-pragma.c (handle_pragma_target): Rename from
1759         handle_pragma_option, #pragma GCC option is now #pragma GCC
1760         target.  Move warning about port not supporting target options to
1761         default pragma parse hook.  Remove push/pop/reset from this
1762         pragma.
1763         (handle_pragma_optimize): Remove push/pop/reset from this pragma.
1764         (option_stack): Delete static variable.
1765         (optimize_stack): Ditto.
1766         (optons_stack): New stack of saved target and optimization
1767         options.
1768         (handle_pragma_push_options): New function to handle pushing both
1769         target and optimization options.
1770         (handle_pragma_pop_options): New function to handle popping both
1771         target and optimization options.
1772         (handle_pragma_reset_options): New function to handle resetting
1773         both target and optimization options to their initial state.
1774         (init_pragma): Rename handle_pragma_option to
1775         handle_pragma_target.  Add support for push_options, pop_options,
1776         and reset_options pragmas.
1777
1778         * target-def.h (TARGET_OPTION_PRAGMA_PARSE): Change default to
1779         default_target_option_pragma_parse.
1780         (TARGET_OPTION_VALID_ATTRIBUTE_P): Change default to
1781         default_target_option_valid_attribute_p.
1782         (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): Delete.
1783         (TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION): Ditto.
1784         (TARGET_OPTION_HOOKS): Delete the fields for whether to change
1785         optimization level on hot/cold functions.
1786
1787         * tree-inline.c (tree_can_inline_p): Disable suppressing inlining
1788         if the caller and callee have different optimization levels.
1789
1790         * c-common.c (handle_target_attribute): Rename from
1791         handle_option_attribute, attribute((option(...))) is now
1792         attribute((target(...))).  Move warning if the port does not
1793         support target attributes to the default hook.
1794         (handle_hot_attribute): Delete code to change the optimization
1795         level of hot functions.
1796         (handle_cold_attribute): Ditto.
1797
1798         * config/i386/i386-c.c (ix86_pragma_target_parse): Take a second
1799         argument that is the binary tree options to use if there are no
1800         arguments.  Call ix86_valid_target_attribute_tree instead of
1801         ix86_valid_option_attribute_tree.
1802         (ix86_pragma_target_parse): Rename from ix86_pragma_option_parse.
1803         (ix86_register_pragmas): Use ix86_pragma_target_parse instead of
1804         ix86_pragma_option_parse.
1805
1806         * config/i386/i386-protos.h (ix86_valid_target_attribute_tree):
1807         Rename from ix86_valid_option_attribute_tree.
1808
1809         * config/i386/i386.c (ix86_add_new_builtins): New function to add
1810         new builtins when the ISA changes.
1811         (ix86_valid_target_attribute_tree): Rename from
1812         ix86_valid_option_attribute_tree.  Change callers.  If the
1813         function specified optimization options, use those as the starting
1814         point before setting up the target attributes.  If the
1815         optimization options were changed in the course of setting the
1816         target attributes, record the new optimization options.
1817         (ix86_valid_target_attribute_tree_inner_p): Rename from
1818         ix86_valid_option_attribute_tree_inner_p.  Change callers.  Call
1819         ix86_add_new_builtins if the ISA changed.
1820         (ix86_valid_target_attribute_p): Rename from
1821         ix86_valid_option_attribute_p.  Change callers.
1822         (enum ix86_builtins): Add IX86_BUILTIN_PCMOV to allow both
1823         __builtin_ia32_pcmov and __builtin_ia32_pcmov_v2di to be declared
1824         as delayed builtin functions.
1825         (struct builtin_isa): New structure to record builtin functions
1826         that should be delayed until the ISA for that function is used.
1827         (ix86_builtins_isa): Change from int to struct to track builtin
1828         functions we want to declare at some point.
1829         (def_builtin): If the front end can delay defining the builtin
1830         functions, don't create builtins for ISAs not part of the default
1831         options.
1832         (def_builtin_const): Ditto.
1833         (bdesc_multi_arg): Declare __builtin_ia32_pcmov and
1834         __builtin_ia32_pcmov_v2di to be different builtin functions.
1835         (ix86_expand_builtin): Changes due to ix86_builtins_isa now being
1836         a structure instead of an int.
1837         (TARGET_OPTION_VALID_ATTRIBUTE_P): Use
1838         ix86_valid_target_attribute_p, not ix86_valid_option_attribute_p.
1839         (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): Delete.
1840         (TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION): Ditto.
1841
1842         * config/ia64/ia64.h
1843         (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): Delete.
1844         (TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION): Ditto.
1845
1846         * langhooks-def.h (LANG_HOOKS_BUILTIN_FUNCTION_EXT_SCOPE): New
1847         hook, default to being the same as LANG_HOOKS_BUILTIN_FUNCTION.
1848         (LANG_HOOKS_INITIALIZER): Add
1849         LANG_HOOKS_BUILTIN_FUNCTION_EXT_SCOPE hook.
1850
1851 2008-08-30  Kaz Kojima  <kkojima@gcc.gnu.org>
1852
1853         PR target/37270
1854         * config/sh/sh.h (LEGITIMIZE_RELOAD_ADDRESS): Generate
1855         the reload address with the index register for SFmode
1856         access with a displacement.
1857
1858 2008-08-30  Jan Hubicka  <jh@suse.cz>
1859
1860         * optabs.c (expand_abs_nojump): Update BRANCH_COST call.
1861         * fold-cost.c (LOGICAL_OP_NON_SHORT_CIRCUIT, fold_truthop): Likewise.
1862         * dojump.c (do_jump): Likewise.
1863         * ifcvt.c (MAX_CONDITIONAL_EXECUTE): Likewise.
1864         (note-if_info): Add BRANCH_COST.
1865         (noce_try_store_flag_constants, noce_try_addcc, noce_try_store_flag_mask,
1866         noce_try_cmove_arith, noce_try_cmove_arith, noce_try_cmove_arith,
1867         noce_find_if_block, find_if_case_1, find_if_case_2): Use compuated
1868         branch cost.
1869         * expr.h (BRANCH_COST): Update default.
1870         * predict.c (predictable_edge_p): New function.
1871         * expmed.c (expand_smod_pow2, expand_sdiv_pow2, emit_store_flag):
1872         Update BRANCH_COST call.
1873         * basic-block.h (predictable_edge_p): Declare.
1874         * config/alpha/alpha.h (BRANCH_COST): Update.
1875         * config/frv/frv.h (BRANCH_COST): Update.
1876         * config/s390/s390.h (BRANCH_COST): Update.
1877         * config/spu/spu.h (BRANCH_COST): Update.
1878         * config/sparc/sparc.h (BRANCH_COST): Update.
1879         * config/m32r/m32r.h (BRANCH_COST): Update.
1880         * config/i386/i386.h (BRANCH_COST): Update.
1881         * config/i386/i386.c (ix86_expand_int_movcc): Update use of BRANCH_COST.
1882         * config/sh/sh.h (BRANCH_COST): Update.
1883         * config/pdp11/pdp11.h (BRANCH_COST): Update.
1884         * config/avr/avr.h (BRANCH_COST): Update.
1885         * config/crx/crx.h (BRANCH_COST): Update.
1886         * config/xtensa/xtensa.h (BRANCH_COST): Update.
1887         * config/stormy16/stormy16.h (BRANCH_COST): Update.
1888         * config/m68hc11/m68hc11.h (BRANCH_COST): Update.
1889         * config/iq2000/iq2000.h (BRANCH_COST): Update.
1890         * config/ia64/ia64.h (BRANCH_COST): Update.
1891         * config/rs6000/rs6000.h (BRANCH_COST): Update.
1892         * config/arc/arc.h (BRANCH_COST): Update.
1893         * config/score/score.h (BRANCH_COST): Update.
1894         * config/arm/arm.h (BRANCH_COST): Update.
1895         * config/pa/pa.h (BRANCH_COST): Update.
1896         * config/mips/mips.h (BRANCH_COST): Update.
1897         * config/vax/vax.h (BRANCH_COST): Update.
1898         * config/h8300/h8300.h (BRANCH_COST): Update.
1899         * params.def (PARAM_PREDICTABLE_BRANCH_OUTCOME): New.
1900         * doc/invoke.texi (predictable-branch-cost-outcome): Document.
1901         * doc/tm.texi (BRANCH_COST): Update.
1902
1903 2008-08-30  Samuel Tardieu  <sam@rfc1149.net>
1904
1905         PR target/37283
1906         * config/arm/arm.c (arm_optimization_options): Set
1907         flag_section_anchors to 2 instead of 1 to distinguish it from
1908         -fsection-anchors given explicitely on the command line.
1909
1910 2008-08-30  Richard Sandiford  <rdsandiford@googlemail.com>
1911
1912         * recog.c (split_insn): Consider attaching a REG_EQUAL note to the
1913         final insn of a split.
1914
1915 2008-08-30  Jan Hubicka  <jh@suse.cz>
1916
1917         * postreload-gcse.c (gate_handle_gcse2): Disable for functions
1918         optimized for speed.
1919         * final.c (compute_alignments): Use optimize_bb_for_size_p.
1920         * tree-call-cdce.c (gate_call_cdce): Use optimize_function_for_speed_p.
1921         * opts.c (flag_predictive_commoning_set, flag_unswitch_loops_set,
1922         flag_gcse_after_reload_set): New static vars.
1923         (common_handle_option): Enable those flags for profile-use.
1924         (decode_options): Remove optimize_size flags that are handled
1925         on higher granuality.
1926         * tree-vectorizer.c (vectorize_loops): Use
1927         optimize_loop_nest_for_speed_p.
1928         * tree-ssa-pre.c (do_pre): Use optimize_function_for_speed_p.
1929         * tree-predcom.c (tree_predictive_commoning): Use
1930         optimize_loop_for_speed_p.
1931         * varasm.c (assemble_start_function): Use optimize_function_for_speed_p.
1932         * bb-reorder.c (rest_of_handle_reorder_blocks): Likewise.
1933         * predict.c (optimize_loop_for_speed_p): Fix walk.
1934
1935 2008-08-30  Jan Hubicka  <jh@suse.cz>
1936
1937         * ipa-inline.c (cgraph_estimate_growth): Discover self recursive
1938         functions.
1939         (cgraph_decide_inlining_of_small_function): Use edge->count to detect
1940         profile presence locally.
1941
1942 2008-08-29  Joseph Myers  <joseph@codesourcery.com>
1943
1944         PR bootstrap/37086
1945         * tree-vrp.c (find_switch_asserts): Make idx volatile for GCC
1946         versions before 4.0.
1947
1948 2008-08-29  Jan Hubicka  <jh@suse.cz>
1949
1950         * tree-inline.c (insert_init_stmt): Insert sequence even when
1951         not in SSA form.
1952
1953 2008-08-29  Jeff Law  <law@redhat.com>
1954
1955         * mn10300.c (mn10300_secondary_reload_class): We need secondary
1956         reloads for AM33-2 if IN is a pseudo with an equivalent memory
1957         location and class is an FP register.
1958
1959 2008-08-29  Jan Hubicka  <jh@suse.cz>
1960
1961         * see.c (see_merge_one_def_extension): Silence used uninitialized
1962         warning.
1963         * matrix-reorg.c (check_allocation_function): Likewise.
1964         * config/i386/driver-i386.c (detect_caches_amd): Likewise.
1965
1966 2008-08-29  Jakub Jelinek  <jakub@redhat.com>
1967
1968         PR c/37261
1969         * fold-const.c (fold_binary): In (X | C1) & C2 canonicalization
1970         compute new & and | in type rather than TREE_TYPE (arg0).
1971
1972         * dwarf2out.c (fortran_common): Update comment.
1973         (gen_variable_die): Swap com_die and var_die variables in Fortran
1974         COMMON block handling code.
1975
1976         * dwarf2out.c (descr_info_loc): Handle VAR_DECL.
1977
1978         * dwarf2out.c (gen_const_die): New function.
1979         (size_of_die, value_format, output_die): Output larger
1980         dw_val_class_vec using DW_FORM_block2 or DW_FORM_block4.
1981         (native_encode_initializer): New function.
1982         (tree_add_const_value_attribute): Call it.
1983         (gen_decl_die, dwarf2out_decl): Handle CONST_DECLs if is_fortran ().
1984
1985         * dwarf2out.c (gen_formal_parameter_die, gen_variable_die): For
1986         DECL_BY_REFERENCE decls don't pass TREE_READONLY and
1987         TREE_THIS_VOLATILE to add_type_attribute.
1988
1989         * dwarf2out.c (add_subscript_info): Stop on Fortran TYPE_STRING_FLAG
1990         types.
1991         (gen_array_type_die): Emit DW_TAG_string_type for Fortran character
1992         types.
1993
1994         * dwarf2out.c (loc_by_reference): New function.
1995         (add_location_or_const_value_attribute): Use it.
1996
1997         PR fortran/23057
1998         * dwarf2out.c (gen_variable_die): Represent Fortran COMMON vars
1999         as DW_TAG_variable children of DW_TAG_common_block rather than
2000         DW_TAG_member children.  Put DW_AT_external to individual
2001         DW_TAG_variable DIEs, not to DW_TAG_common_block.
2002
2003         * dwarf2out.c (add_bound_info): If lookup_decl_die failed, try
2004         loc_descriptor_from_tree_1.
2005
2006         PR fortran/29635
2007         PR fortran/23057
2008         * debug.h (struct gcc_debug_hooks): Add NAME and CHILD
2009         arguments to imported_module_or_decl.
2010         (debug_nothing_tree_tree): Removed.
2011         (debug_nothing_tree_tree_tree_bool): New prototype.
2012         * debug.c (do_nothing_debug_hooks): Adjust.
2013         (debug_nothing_tree_tree): Removed.
2014         (debug_nothing_tree_tree_tree_bool): New function.
2015         * dwarf2out.c (is_symbol_die): Handle DW_TAG_module.
2016         (gen_variable_die): Put all common vars for the
2017         same COMMON block under one DW_TAG_common_block.
2018         (declare_in_namespace): Return new context_die, for Fortran
2019         return the module DIE instead of adding extra declarations into
2020         the namespace.
2021         (gen_type_die_with_usage): Adjust declare_in_namespace caller.
2022         (gen_namespace_die): If is_fortran (), generate DW_TAG_module
2023         instead of DW_TAG_namespace.  If DECL_EXTERNAL is set, add
2024         DW_AT_declaration.
2025         (dwarf2out_global_decl): Don't skip Fortran global vars.
2026         (gen_decl_die): Likewise.  Adjust declare_in_namespace callers.
2027         (dwarf2out_imported_module_or_decl): Add NAME and CHILD arguments.
2028         If NAME is non-NULL, add DW_AT_name.  If CHILD is non-NULL, put
2029         DW_TAG_imported_declaration as child of previous
2030         DW_TAG_imported_module.
2031         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Adjust.
2032         * sdbout.c (sdb_debug_hooks): Likewise.
2033         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
2034
2035 2008-08-29  Jan Hubicka  <jh@suse.cz>
2036
2037         * cgraph.c (cgraph_remove_node): Do not remove nested nodes.
2038
2039         * cgraph.h (cgraph_maybe_hot_edge_p): Declare.
2040         * ipa-cp.c (n_cloning_candidates): New static variable.
2041         (ipcp_print_profile_data, ipcp_function_scale_print): Forward declare.
2042         (ipcp_print_all_lattices): Improve debug output.
2043         (ipcp_cloning_candidate_p): New function.
2044         (ipcp_initialize_node_lattices): Use it.
2045         (ipcp_init_stage): Do only analyzis here; prettier debug output.
2046         (ipcp_propagate_stage): Prettier debug output.
2047         (ipcp_iterate_stage): Initialize latices here; prettier debug output.
2048         (ipcp_print_all_structures): Remove.
2049         (ipcp_need_redirect_p): Test !n_cloning_candidates.
2050         (ipcp_insert_stage): Prettier debug output; call
2051         cgraph_remove_unreachable_nodes before propagating.
2052         (pass_ipa_cp): Schedule function removal pass.
2053         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Better
2054         debug output.
2055         (cgraph_maybe_hot_edge_p): Move to ...
2056         * predict.c (cgraph_maybe_hot_edge_p) ... here.
2057         * opts.c (flag_ipa_cp_set, flag_ipa_cp_clone_set): New.
2058         (common_handle_option): Set them; enable ipa-cp when profiling.
2059         * ipa-prop.c (ipa_print_node_jump_functions): Prettier output.
2060         (ipa_print_all_jump_functions): Likewise.
2061         (ipa_print_all_tree_maps, ipa_print_node_param_flags): Remove.
2062         (ipa_print_node_params, ipa_print_all_params): New.
2063         * ipa-prop.h (ipa_print_all_tree_maps, ipa_print_node_param_flags,
2064         ipa_print_all_param_flags): Remove.
2065         (ipa_print_node_params, ipa_print_all_params): New.
2066
2067 2008-08-29  Bob Wilson  <bob.wilson@acm.org>
2068
2069         * config/xtensa/xtensa.c (xtensa_secondary_reload_class): Revert
2070         change from 2008-04-03.
2071         * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Define.
2072
2073 2008-08-29  Vladimir Makarov  <vmakarov@redhat.com>
2074
2075         PR rtl-opt/37251
2076
2077         * ira-color.c (push_allocnos_to_stack): Truncate
2078         removed_splay_allocno_vec.
2079
2080 2008-08-29  Vladimir Makarov  <vmakarov@redhat.com>
2081
2082         PR rtl-opt/37243
2083         * ira-color (ira_fast_allocation): Don't assign hard registers to
2084         global allocnos.
2085
2086 2008-08-29  Jan Hubicka  <jh@suse.cz>
2087
2088         PR middle-end/37278
2089         * predict.c (optimize_loop_nest_for_speed_p): Do not ICE
2090         for cold internal loops.
2091
2092 2008-08-29  Richard Guenther  <rguenther@suse.de>
2093
2094         * tree-ssa-structalias.c (create_variable_info_for): Do not
2095         create fields for heap vars or vars with a noalias state.
2096         For NO_ALIAS_ANYTHING variables add a self-constraint, not one
2097         from ESCAPED.
2098
2099 2008-08-29  Richard Guenther  <rguenther@suse.de>
2100
2101         * common.opt (ftree-store-ccp): Mark as preserved for
2102         backward compatibility.
2103         * doc/invoke.texi (-ftree-store-ccp): Remove documentation.
2104         * tree-pass.h (pass_store_ccp): Remove.
2105         * tree-ssa-propagate.h (struct prop_value_d): Remove mem_ref field.
2106         (first_vdef): Remove declaration.
2107         (get_value_loaded_by): Likewise.
2108         * tree-ssa-ccp.c (do_store_ccp): Remove.
2109         (get_default_value): Simplify as do_store_ccp is always false
2110         now.  Do not initialize mem_ref.
2111         (set_value_varying): Likewise.
2112         (canonicalize_float_value): Likewise.
2113         (set_lattice_value): Likewise.
2114         (likely_value): Likewise.
2115         (surely_varying_stmt_p): Likewise.
2116         (ccp_initialize): Likewise.
2117         (ccp_lattice_meet): Likewise.
2118         (ccp_visit_phi_node): Likewise.
2119         (ccp_fold): Likewise.
2120         (evaluate_stmt): Likewise.
2121         (visit_assignment): Likewise.
2122         (ccp_visit_stmt): Likewise.
2123         (execute_ssa_ccp): Fold into ...
2124         (do_ssa_ccp): ... this.
2125         (do_ssa_store_ccp): Remove.
2126         (gate_store_ccp): Likewise.
2127         (pass_store_ccp): Likewise.
2128         * tree-ssa-copy.c (copy_prop_visit_phi_node): Do not
2129         initialize mem_ref.
2130         * tree-ssa-propagate.c (first_vdef): Remove.
2131         (get_value_loaded_by): Likewise.
2132         (replace_vuses_in): Likewise.
2133         (substitute_and_fold): Do not call replace_vuses_in.
2134         * opts.c (decode_options): Do not set flag_tree_store_ccp.
2135
2136 2008-08-29  Richard Guenther  <rguenther@suse.de>
2137
2138         PR middle-end/37236
2139         * tree-ssa-structalias.c (intra_create_variable_infos): Mark
2140         PARAM_NOALIAS tags with is_heapvar.
2141         * tree-ssa-operands.c (access_can_touch_variable): Offset
2142         based tests do not apply for heapvars.  Fix offset test.
2143
2144 2008-08-29  Jan Hubicka  <jh@suse.cz>
2145
2146         * doc/invoke.texi (-fipa-cp): Enabled by default at -O2/-Os/-O3
2147         (-fipa-cp-clone): Enabled by default at -O3.
2148         * opts.c (decode_options): Enable ipa-cp at -O2, ipa-cp-clone at -O3;
2149         make ipa-cp-clone to imply ipa-cp; disable cloning at -Os.
2150
2151 2008-08-29  Jan Hubicka  <jh@suse.cz>
2152
2153         * tree.c (build_function_type_skip_args, build_function_decl_skip_args):
2154         New functions.
2155         * tree.h (build_function_type_skip_args, build_function_decl_skip_args):
2156         Declare.
2157         * gimple.c (giple_copy_call_skip_args): New function.
2158         (giple_copy_call_skip_args): Declare.
2159
2160         * cgraph.h (cgraph_function_versioning): Add skip_args arugmnet
2161         * ipa-cp.c (ipcp_node_not_modifiable_p): Rename to ...
2162         (ipcp_node_modifiable_p): ... this one; use tree_versionable_function_p.
2163         (ipcp_create_replace_map): Improve debug output.
2164         (ipcp_need_redirect_p): Return false when not clonning.
2165         (ipcp_update_callgraph): Skip args.
2166         (ipcp_insert_stage): UPdate call of !ipcp_node_modifiable_p;
2167         skip args.
2168         * cgraphunit.c (cgraph_function_versioning): Add skip_args argument.
2169         (save_inline_function_body): Update call of tree_function_versioning.
2170         * ipa-prop.c (ipa_edge_removal_hook): Do not ICE on unanalyzed nodes.
2171         * tree-inline.c (copy_arguments_for_versioning): Add skip_args argument.
2172         (tree_function_versioning): Likewise.
2173         * tree-inline.h (tree_function_versioning): Update prototype.
2174
2175 2008-08-29  Jan Hubicka  <jh@suse.cz>
2176
2177         * loop-unswitch.c (unswitch_single_loop): Use optimize_loop_for_speed_p.
2178         * tree-ssa-threadupdate.c (mark_threaded_blocks): Use optimize_function_for_size_p.
2179         * tracer.c (ignore_bb_p): Use optimize_bb_for_size_p.
2180         * postreload-gcse.c (eliminate_partially_redundant_load): Use optimize_bb_for_size_p.
2181         * value-prof.c (gimple_divmod_fixed_value_transform,
2182         gimple_mod_pow2_value_transform, gimple_mod_subtract_transform,
2183         gimple_stringops_transform): Use optimize_bb_for_size_p.
2184         * ipa-cp.c (ipcp_insert_stage): Use optimize_function_for_size_p.
2185         * final.c (compute_alignments): Use optimize_function_for_size_p.
2186         * builtins.c (fold_builtin_cabs): Use optimize_function_for_speed_p.
2187         (fold_builtin_strcpy, fold_builtin_fputs): Use
2188         optimize_function_for_size_p.
2189         * fold-const.c (tree_swap_operands_p): Use optimize_function_for_size_p.
2190         * recog.c (relax_delay_slots): Likewise.
2191         * tree-ssa-math-opts.c (replace_reciprocal): Use optimize_bb_for_speed_p.
2192         (execute_cse_reciprocals): Use optimize_bb_for_size_p.
2193         * ipa-inline.c (cgraph_decide_recursive_inlining): Use
2194         optimize_function_for_size_p.
2195         (cgraph_decide_inlining_of_small_function): Use
2196         optimize_function_for_size_p.
2197         * global.c (find_reg): Use optimize_function_for_size_p.
2198         * opts.c (decode_options): Do not clear flag_tree_ch, flag_inline_functions,
2199         flag_unswitch_loops, flag_unroll_loops, flag_unroll_all_loops and
2200         flag_prefetch_loop_arrays. Those can work it out from profile.
2201         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Use
2202         optimize_loop_for_speed_p.
2203         * predict.c (optimize_bb_for_size_p, optimize_bb_for_speed_p): Constify
2204         argument.
2205         (optimize_loop_nest_for_size_p, optimize_loop_nest_for_speed_p): New.
2206         * tree-parloops.c (parallelize_loops): Use optimize_loop_for_size_p.
2207         * tree-eh.c (decide_copy_try_finally): Use optimize_function_for_size_p.
2208         * local-alloc.c (block_alloc): Pass BB pointer.
2209         (find_free_reg): Add BB pointer, use optimize_bb_for_size_p.
2210         * gcse.c (gcse_main): Use optimize_function_for_size_p.
2211         * loop-unroll.c (decide_unrolling_and_peeling): Use optimize_loop_for_size_p.
2212         (decide_peel_completely): Likewise.
2213         * tree-vect-analyze.c (vect_mark_for_runtime_alias_test): Use
2214         optimize_loop_for_size_p.
2215         (vect_enhance_data_refs_alignment): Likewise.
2216         * tree-ssa-coalesce.c (coalesce_cost): Add optimize_for_size argument.
2217         (coalesce_cost_bb, coalesce_cost_edge, create_outofssa_var_map): Update call.
2218         * cfgcleanup.c (outgoing_edges_match): Use optimize_bb_for_speed_p.
2219         (try_crossjump_bb): Use optimize_bb_for_size_p.
2220         * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Use
2221         optimize_loop_for_speed_p.
2222         * bb-reorder.c (find_traces_1_round): Likewise.
2223         (copy_bb): Use optimize_bb_for_speed_p.
2224         (duplicate_computed_gotos): Likewise.
2225         * basic-block.h (optimize_loop_nest_for_size_p,
2226         optimize_loop_nest_for_speed_p): New.
2227         * stmt.c (expand_case): Use optimize_insn_for_size_p.
2228
2229 2008-08-29  Tristan Gingold  <gingold@adacore.com>
2230
2231         * gcov.c (main): Call expandargv.
2232
2233 2008-08-29  Jan Hubicka  <jh@suse.cz>
2234
2235         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Check that loop
2236         is not cold.
2237         * predict.c (optimize_bb_for_size_p, optimize_bb_for_speed_p):
2238         Constify arguments.
2239         (optimize_loop_for_size_p, optimize_loop_for_speed_p): New functions.
2240         * basic-block.h (optimize_bb_for_size_p, optimize_bb_for_speed_p):
2241         Constify.
2242         (optimize_loop_for_size_p, optimize_loop_for_speed_p): Declare.
2243
2244 2008-08-29  Jan Hubicka  <jh@suse.cz>
2245
2246         * tree-pass.h (pass_strip_predict_hints): Declare.
2247         * predict.c (strip_builtin_expect): Rename to ...
2248         (strip_predict_hints): ... this one; strip also GIMPLE_PREDICT.
2249         (tree_bb_level_predictions): Do not remove GIMPLE_PREDICT.
2250         (tree_estimate_probability): Do not strip builtin_expect.
2251         (pass_strip_predict_hints): New pass.
2252         * tree-inline.c (expand_call_inline): When inlining cold function, predict
2253         it as unlikely.
2254         * passes.c (init_optimization_passes): Add pass_strip_predict_hints.
2255
2256 2008-08-29  Richard Guenther  <rguenther@suse.de>
2257
2258         PR tree-optimization/37207
2259         * tree-vrp.c (extract_range_from_binary_expr): Also try
2260         to constant fold if only one of the operands is a constant.
2261
2262 2008-08-29  Nick Clifton  <nickc@redhat.com>
2263
2264         * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Treat LABEL_REFs in
2265         the same way as SYMBOL_REFs.
2266
2267 2008-08-28  Bob Wilson  <bob.wilson@acm.org>
2268
2269         * config/xtensa/xtensa.md (<u>mulsidi3): Use a temporary register.
2270
2271 2008-08-28  Adam Nemet  <anemet@caviumnetworks.com>
2272
2273         * config/mips/mips.h (ISA_HAS_BBIT): New macro.
2274         * config/mips/mips.md (branch_likely): Remove const.  Fix
2275         comment formatting.
2276         (define_delay for type "branch"): Change to only apply for branch
2277         with likely variant.
2278         (define_delay for type "branch" and "branch_likely" no).  New delay
2279         definition.
2280         (equality_op): New code iterator.
2281         (bbv, bbinv): New code attributes.
2282         (*branch_bit<bbv><mode>, *branch_bit<bbv><mode>_inverted): New
2283         patterns.
2284
2285 2008-08-28  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
2286             Andrew Pinski  <pinskia@gcc.gnu.org>
2287
2288         PR 18050
2289         * c-common.c (verify_tree): Fix handling of ADDR_EXPR.
2290
2291 2008-08-28  Paolo Carlini  <paolo.carlini@oracle.com>
2292
2293         * gtrh-posix.h: Fix uses of _POSIX_TIMEOUTS per the normal Posix
2294         rule that a symbolic constant must be defined and >= 0 for the
2295         corresponding facility to be present at compile-time.
2296         * gthr-posix.c: Likewise.
2297
2298 2008-08-28  Adam Nemet  <anemet@caviumnetworks.com>
2299
2300         * config/mips/mips.h (ISA_HAS_DMUL3): New macro.
2301         * config/mips/mips.md (D): New mode attribute.
2302         (mulsi3, muldi3): Merge it into ...
2303         (mul<mode>3): ... new template.  Use _mul3 ending for 3-op
2304         patterns.
2305         (muldi3_mul3): New pattern.
2306         (mulsi3_mult3): Rename to mulsi3_mul3.
2307
2308 2008-08-28  Jan Hubicka  <jh@suse.cz>
2309
2310         * expmed.c (store_bit_field_1): Be prepared for movstrict expander
2311         to fail.
2312         * predict.c (always_optimize_for_size_p): Rename to ...
2313         (optimize_function_for_size): ... this one; make extern.
2314         (optimize_function_for_speed_p): New.
2315         (optimize_bb_for_size_p, optimize_bb_for_size_p,
2316         optimize_edge_for_size_p,optimize_edge_for_size_p,
2317         optimize_insn_for_size_p, optimize_insn_for_size_p): Update.
2318         * basic-block.h (optimize_function_for_size_p,
2319         optimize_function_for_speed_p): Declare.
2320         * i386.md (optimize_size checks): Replace them by appropriate
2321         predicate.
2322         (standard_80387_constant_p, ix86_compute_frame_layout,
2323         ix86_expand_epilogue, ix86_decompose_address,
2324         print_operand, emit_i387_cw_initialization,
2325         inline_memory_move_cost, ix86_pad_returns,
2326         ix86_reorg): Replace optimize_size checks.
2327
2328 2008-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
2329
2330         * rtl.h (simplify_subreg_regno): Declare.
2331         * rtlanal.c (simplify_subreg_regno): New function, split out from...
2332         * simplify-rtx.c (simplify_subreg): ...here.
2333         * reload.c (find_reloads): Use simplify_subreg_regno instead of
2334         subreg_offset_representable_p.
2335
2336 2008-08-28  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
2337
2338         PR c/30949
2339         * c-typeck.c (convert_for_assignment): Give a note describing what
2340         was passed and what was expected.
2341
2342 2008-08-28  Joey Ye  <joey.ye@intel.com>
2343
2344         * doc/extend.texi: Document AVX built-in functions.
2345         * doc/invoke.texi: Document -mavx.
2346
2347 2008-08-28  H.J. Lu  <hongjiu.lu@intel.com>
2348             Joey Ye  <joey.ye@intel.com>
2349             Xuepeng Guo  <xuepeng.guo@intel.com>
2350
2351         * config.gcc (extra_headers): Add gmmintrin.h for x86 and x86-64.
2352
2353         * config/i386/cpuid.h (bit_FMA): New.
2354         (bit_XSAVE): Likewise.
2355         (bit_OSXSAVE): Likewise.
2356         (bit_AVX): Likewise.
2357
2358         * config/i386/gas.h (ASM_OUTPUT_OPCODE): Undefine before
2359         define.  Use ASM_OUTPUT_AVX_PREFIX.
2360
2361         * config/i386/gmmintrin.h: New.
2362
2363         * config/i386/i386.c (x86_64_reg_class): Add X86_64_AVX_CLASS.
2364         (OPTION_MASK_ISA_AVX_SET): New.
2365         (OPTION_MASK_ISA_FMA_SET): Likewise.
2366         (OPTION_MASK_ISA_AVX_UNSET): Likewise.
2367         (OPTION_MASK_ISA_FMA_SET): Likewise.
2368         (OPTION_MASK_ISA_SSE4_2_UNSET): Updated.
2369         (ix86_handle_option): Handle OPT_mavx and OPT_mfma.
2370         (pta_flags): Add PTA_AVX and PTA_FMA.
2371         (override_options): Handle PTA_AVX and PTA_FMA.
2372         (init_cumulative_args): Handle warn_avx.
2373         (classify_argument): Return 0 for COImode and OImode.  Return
2374         1 and X86_64_AVX_CLASS for 256bit vector types.
2375         (examine_argument): Handle X86_64_AVX_CLASS.
2376         (construct_container): Likewise.
2377         (function_arg_advance_32): Pass OImode and 256bit vector types
2378         in AVX register.
2379         (function_arg_advance_64): Take a new argument to indicate if a
2380         parameter is named.  Handle 256bit vector types.  Return
2381         immediately for unnamed 256bit vector mode parameters.
2382         (function_arg_advance): Updated.
2383         (function_arg_32): Add comments for TImode.  Handle OImode
2384         and 256bit vector types.
2385         (function_arg_64): Take a new argument to indicate if a
2386         parameter is named.  Handle 256bit vector types.  Return NULL
2387         for unnamed 256bit vector mode parameters.
2388         (function_arg): Updated.
2389         (setup_incoming_varargs_64): Support
2390         AVX encoding for *sse_prologue_save_insn.
2391         (ix86_gimplify_va_arg): Handle 256bit vector mode parameters.
2392         (standard_sse_constant_p): Return -2 for all 1s if SSE2 isn't
2393         enabled.  For all 1s in 256bit vector modes, return 3 if AVX is
2394         enabled, otherwise return -3.
2395         (standard_sse_constant_opcode): Handle AVX and 256bit vector
2396         modes.
2397         (print_reg): Support AVX registers.  Handle 'x' and 't'.
2398         Handle 'd' to duplicate the operand.
2399         (print_operand): Likewise.  Also support AVX vector compare
2400         instructions.
2401         (output_387_binary_op): Support AVX.
2402         (output_fp_compare): Likewise.
2403         (ix86_expand_vector_move_misalign): Likewise.
2404         (ix86_attr_length_vex_default): New.
2405         (ix86_builtins): Add IX86_BUILTIN_ADDPD256,
2406         IX86_BUILTIN_ADDPS256, IX86_BUILTIN_ADDSUBPD256,
2407         IX86_BUILTIN_ADDSUBPS256, IX86_BUILTIN_ANDPD256,
2408         IX86_BUILTIN_ANDPS256, IX86_BUILTIN_ANDNPD256,
2409         IX86_BUILTIN_ANDNPS256, IX86_BUILTIN_BLENDPD256,
2410         IX86_BUILTIN_BLENDPS256, IX86_BUILTIN_BLENDVPD256,
2411         IX86_BUILTIN_BLENDVPS256, IX86_BUILTIN_DIVPD256,
2412         IX86_BUILTIN_DIVPS256, IX86_BUILTIN_DPPS256,
2413         IX86_BUILTIN_HADDPD256, IX86_BUILTIN_HADDPS256,
2414         IX86_BUILTIN_HSUBPD256, IX86_BUILTIN_HSUBPS256,
2415         IX86_BUILTIN_MAXPD256, IX86_BUILTIN_MAXPS256,
2416         IX86_BUILTIN_MINPD256, IX86_BUILTIN_MINPS256,
2417         IX86_BUILTIN_MULPD256, IX86_BUILTIN_MULPS256,
2418         IX86_BUILTIN_ORPD256, IX86_BUILTIN_ORPS256,
2419         IX86_BUILTIN_SHUFPD256, IX86_BUILTIN_SHUFPS256,
2420         IX86_BUILTIN_SUBPD256, IX86_BUILTIN_SUBPS256,
2421         IX86_BUILTIN_XORPD256, IX86_BUILTIN_XORPS256,
2422         IX86_BUILTIN_CMPSD, IX86_BUILTIN_CMPSS, IX86_BUILTIN_CMPPD,
2423         IX86_BUILTIN_CMPPS, IX86_BUILTIN_CMPPD256,
2424         IX86_BUILTIN_CMPPS256, IX86_BUILTIN_CVTDQ2PD256,
2425         IX86_BUILTIN_CVTDQ2PS256, IX86_BUILTIN_CVTPD2PS256,
2426         IX86_BUILTIN_CVTPS2DQ256, IX86_BUILTIN_CVTPS2PD256,
2427         IX86_BUILTIN_CVTTPD2DQ256, IX86_BUILTIN_CVTPD2DQ256,
2428         IX86_BUILTIN_CVTTPS2DQ256, IX86_BUILTIN_EXTRACTF128PD256,
2429         IX86_BUILTIN_EXTRACTF128PS256, IX86_BUILTIN_EXTRACTF128SI256,
2430         IX86_BUILTIN_VZEROALL, IX86_BUILTIN_VZEROUPPER,
2431         IX86_BUILTIN_VZEROUPPER_REX64, IX86_BUILTIN_VPERMILVARPD,
2432         IX86_BUILTIN_VPERMILVARPS, IX86_BUILTIN_VPERMILVARPD256,
2433         IX86_BUILTIN_VPERMILVARPS256, IX86_BUILTIN_VPERMILPD,
2434         IX86_BUILTIN_VPERMILPS, IX86_BUILTIN_VPERMILPD256,
2435         IX86_BUILTIN_VPERMILPS256, IX86_BUILTIN_VPERMIL2PD,
2436         IX86_BUILTIN_VPERMIL2PS, IX86_BUILTIN_VPERMIL2PD256,
2437         IX86_BUILTIN_VPERMIL2PS256, IX86_BUILTIN_VPERM2F128PD256,
2438         IX86_BUILTIN_VPERM2F128PS256, IX86_BUILTIN_VPERM2F128SI256,
2439         IX86_BUILTIN_VBROADCASTSS, IX86_BUILTIN_VBROADCASTSD256,
2440         IX86_BUILTIN_VBROADCASTSS256, IX86_BUILTIN_VBROADCASTPD256,
2441         IX86_BUILTIN_VBROADCASTPS256, IX86_BUILTIN_VINSERTF128PD256,
2442         IX86_BUILTIN_VINSERTF128PS256, IX86_BUILTIN_VINSERTF128SI256,
2443         IX86_BUILTIN_LOADUPD256, IX86_BUILTIN_LOADUPS256,
2444         IX86_BUILTIN_STOREUPD256, IX86_BUILTIN_STOREUPS256,
2445         IX86_BUILTIN_LDDQU256, IX86_BUILTIN_LOADDQU256,
2446         IX86_BUILTIN_STOREDQU256, IX86_BUILTIN_MASKLOADPD,
2447         IX86_BUILTIN_MASKLOADPS, IX86_BUILTIN_MASKSTOREPD,
2448         IX86_BUILTIN_MASKSTOREPS, IX86_BUILTIN_MASKLOADPD256,
2449         IX86_BUILTIN_MASKLOADPS256, IX86_BUILTIN_MASKSTOREPD256,
2450         IX86_BUILTIN_MASKSTOREPS256, IX86_BUILTIN_MOVSHDUP256,
2451         IX86_BUILTIN_MOVSLDUP256, IX86_BUILTIN_MOVDDUP256,
2452         IX86_BUILTIN_SQRTPD256, IX86_BUILTIN_SQRTPS256,
2453         IX86_BUILTIN_SQRTPS_NR256, IX86_BUILTIN_RSQRTPS256,
2454         IX86_BUILTIN_RSQRTPS_NR256, IX86_BUILTIN_RCPPS256,
2455         IX86_BUILTIN_ROUNDPD256, IX86_BUILTIN_ROUNDPS256,
2456         IX86_BUILTIN_UNPCKHPD256, IX86_BUILTIN_UNPCKLPD256,
2457         IX86_BUILTIN_UNPCKHPS256, IX86_BUILTIN_UNPCKLPS256,
2458         IX86_BUILTIN_SI256_SI, IX86_BUILTIN_PS256_PS,
2459         IX86_BUILTIN_PD256_PD, IX86_BUILTIN_SI_SI256,
2460         IX86_BUILTIN_PS_PS256, IX86_BUILTIN_PD_PD256,
2461         IX86_BUILTIN_VTESTZPD, IX86_BUILTIN_VTESTCPD,
2462         IX86_BUILTIN_VTESTNZCPD, IX86_BUILTIN_VTESTZPS,
2463         IX86_BUILTIN_VTESTCPS, IX86_BUILTIN_VTESTNZCPS,
2464         IX86_BUILTIN_VTESTZPD256, IX86_BUILTIN_VTESTCPD256,
2465         IX86_BUILTIN_VTESTNZCPD256, IX86_BUILTIN_VTESTZPS256,
2466         IX86_BUILTIN_VTESTCPS256, IX86_BUILTIN_VTESTNZCPS256,
2467         IX86_BUILTIN_PTESTZ256, IX86_BUILTIN_PTESTC256,
2468         IX86_BUILTIN_PTESTNZC256, IX86_BUILTIN_MOVMSKPD256
2469         and IX86_BUILTIN_MOVMSKPS256,
2470         (ix86_special_builtin_type): Add V32QI_FTYPE_PCCHAR,
2471         V8SF_FTYPE_PCV4SF, V8SF_FTYPE_PCFLOAT, V4DF_FTYPE_PCV2DF,
2472         V4DF_FTYPE_PCDOUBLE, V8SF_FTYPE_PCV8SF_V8SF,
2473         V4DF_FTYPE_PCV4DF_V4DF, V4SF_FTYPE_PCV4SF_V4SF,
2474         V2DF_FTYPE_PCV2DF_V2DF, VOID_FTYPE_PCHAR_V32QI,
2475         VOID_FTYPE_PFLOAT_V8SF, VOID_FTYPE_PDOUBLE_V4DF,
2476         VOID_FTYPE_PV8SF_V8SF_V8SF, VOID_FTYPE_PV4DF_V4DF_V4DF,
2477         VOID_FTYPE_PV4SF_V4SF_V4SF and VOID_FTYPE_PV2DF_V2DF_V2DF,
2478         (ix86_builtin_type): Add INT_FTYPE_V8SF_V8SF_PTEST,
2479         INT_FTYPE_V4DI_V4DI_PTEST, INT_FTYPE_V4DF_V4DF_PTEST,
2480         INT_FTYPE_V4SF_V4SF_PTEST, INT_FTYPE_V2DF_V2DF_PTEST,
2481         INT_FTYPE_V8SF, INT_FTYPE_V4DF, V8SI_FTYPE_V8SF, V8SI_FTYPE_V4SI,
2482         V8SF_FTYPE_V8SF, V8SF_FTYPE_V8SI, V8SF_FTYPE_V4SF,
2483         V4SI_FTYPE_V8SI, V4SI_FTYPE_V4DF, V4DF_FTYPE_V4DF,
2484         V4DF_FTYPE_V4SI, V4DF_FTYPE_V4SF, V4DF_FTYPE_V2DF,
2485         V4SF_FTYPE_V4DF, V4SF_FTYPE_V8SF, V2DF_FTYPE_V4DF,
2486         V8SF_FTYPE_V8SF_V8SF, V8SF_FTYPE_V8SF_V8SI,
2487         V4DF_FTYPE_V4DF_V4DF, V4DF_FTYPE_V4DF_V4DI,
2488         V4SF_FTYPE_V4SF_V4SI, V2DF_FTYPE_V2DF_V2DI,
2489         V8SF_FTYPE_V8SF_INT, V4SI_FTYPE_V8SI_INT, V4SF_FTYPE_V8SF_INT,
2490         V2DF_FTYPE_V4DF_INT, V4DF_FTYPE_V4DF_INT,
2491         V8SF_FTYPE_V8SF_V8SF_V8SF, V4DF_FTYPE_V4DF_V4DF_V4DF,
2492         V8SI_FTYPE_V8SI_V8SI_INT, V8SF_FTYPE_V8SF_V8SF_INT,
2493         V4DF_FTYPE_V4DF_V4DF_INT, V4DF_FTYPE_V4DF_V2DF_INT,
2494         V8SF_FTYPE_V8SF_V8SF_V8SI_INT, V4DF_FTYPE_V4DF_V4DF_V4DI_INT,
2495         V4SF_FTYPE_V4SF_V4SF_V4SI_INT and V2DF_FTYPE_V2DF_V2DF_V2DI_INT.
2496         (bdesc_special_args): Add IX86_BUILTIN_VZEROALL,
2497         IX86_BUILTIN_VZEROUPPER. IX86_BUILTIN_VZEROUPPER_REX64,
2498         IX86_BUILTIN_VBROADCASTSS, IX86_BUILTIN_VBROADCASTSD256,
2499         IX86_BUILTIN_VBROADCASTSS256, IX86_BUILTIN_VBROADCASTPD256,
2500         IX86_BUILTIN_VBROADCASTPS256, IX86_BUILTIN_LOADUPD256,
2501         IX86_BUILTIN_LOADUPS256, IX86_BUILTIN_STOREUPD256,
2502         IX86_BUILTIN_STOREUPS256, IX86_BUILTIN_LOADDQU256,
2503         IX86_BUILTIN_STOREDQU256, IX86_BUILTIN_LDDQU256,
2504         IX86_BUILTIN_MASKLOADPD, IX86_BUILTIN_MASKLOADPS,
2505         IX86_BUILTIN_MASKLOADPD256, IX86_BUILTIN_MASKLOADPS256,
2506         IX86_BUILTIN_MASKSTOREPD, IX86_BUILTIN_MASKSTOREPS,
2507         IX86_BUILTIN_MASKSTOREPD256 and IX86_BUILTIN_MASKSTOREPS256.
2508         (ix86_builtins): Add IX86_BUILTIN_ADDPD256,
2509         IX86_BUILTIN_ADDPS256, IX86_BUILTIN_ADDSUBPD256,
2510         IX86_BUILTIN_ADDSUBPS256, IX86_BUILTIN_ANDPD256,
2511         IX86_BUILTIN_ANDPS256, IX86_BUILTIN_ANDNPD256,
2512         IX86_BUILTIN_ANDNPS256, IX86_BUILTIN_DIVPD256,
2513         IX86_BUILTIN_DIVPS256, IX86_BUILTIN_HADDPD256,
2514         IX86_BUILTIN_HSUBPS256, IX86_BUILTIN_HSUBPD256,
2515         IX86_BUILTIN_HADDPS256, IX86_BUILTIN_MAXPD256,
2516         IX86_BUILTIN_MAXPS256, IX86_BUILTIN_MINPD256,
2517         IX86_BUILTIN_MINPS256, IX86_BUILTIN_MULPD256,
2518         IX86_BUILTIN_MULPS256, IX86_BUILTIN_ORPD256,
2519         IX86_BUILTIN_ORPS256, IX86_BUILTIN_SUBPD256,
2520         IX86_BUILTIN_SUBPS256, IX86_BUILTIN_XORPD256,
2521         IX86_BUILTIN_XORPS256, IX86_BUILTIN_VPERMILVARPD,
2522         IX86_BUILTIN_VPERMILVARPS, IX86_BUILTIN_VPERMILVARPD256,
2523         IX86_BUILTIN_VPERMILVARPS256, IX86_BUILTIN_BLENDPD256,
2524         IX86_BUILTIN_BLENDPS256, IX86_BUILTIN_BLENDVPD256,
2525         IX86_BUILTIN_BLENDVPS256, IX86_BUILTIN_DPPS256,
2526         IX86_BUILTIN_SHUFPD256, IX86_BUILTIN_SHUFPS256,
2527         IX86_BUILTIN_CMPSD, IX86_BUILTIN_CMPSS, IX86_BUILTIN_CMPPD,
2528         IX86_BUILTIN_CMPPS,
2529         IX86_BUILTIN_CMPPD256,IX86_BUILTIN_CMPPS256,
2530         IX86_BUILTIN_EXTRACTF128PD256, IX86_BUILTIN_EXTRACTF128PS256,
2531         IX86_BUILTIN_EXTRACTF128SI256, IX86_BUILTIN_CVTDQ2PD256,
2532         IX86_BUILTIN_CVTDQ2PS256, IX86_BUILTIN_CVTPD2PS256,
2533         IX86_BUILTIN_CVTPS2DQ256, IX86_BUILTIN_CVTPS2PD256,
2534         IX86_BUILTIN_CVTTPD2DQ256, IX86_BUILTIN_CVTPD2DQ256,
2535         IX86_BUILTIN_CVTTPS2DQ256, IX86_BUILTIN_VPERM2F128PD256,
2536         IX86_BUILTIN_VPERM2F128PS256, IX86_BUILTIN_VPERM2F128SI256,
2537         IX86_BUILTIN_VPERMILPD, IX86_BUILTIN_VPERMILPS,
2538         IX86_BUILTIN_VPERMILPD256, IX86_BUILTIN_VPERMILPS256,
2539         IX86_BUILTIN_VPERMIL2PD, IX86_BUILTIN_VPERMILPS,
2540         IX86_BUILTIN_VPERMILPD256, IX86_BUILTIN_VPERMILPS256,
2541         IX86_BUILTIN_VPERMIL2PD, IX86_BUILTIN_VPERMIL2PS,
2542         IX86_BUILTIN_VPERMIL2PD256, IX86_BUILTIN_VPERMIL2PS256,
2543         IX86_BUILTIN_VINSERTF128PD256, IX86_BUILTIN_VINSERTF128PS256,
2544         IX86_BUILTIN_VINSERTF128SI256, IX86_BUILTIN_MOVSHDUP256,
2545         IX86_BUILTIN_MOVSLDUP256, IX86_BUILTIN_MOVDDUP256,
2546         IX86_BUILTIN_SQRTPD256, IX86_BUILTIN_SQRTPS256,
2547         IX86_BUILTIN_SQRTPS_NR256, IX86_BUILTIN_RSQRTPS256,
2548         IX86_BUILTIN_RSQRTPS_NR256, IX86_BUILTIN_RCPPS256,
2549         IX86_BUILTIN_ROUNDPD256, IX86_BUILTIN_ROUNDPS256,
2550         IX86_BUILTIN_UNPCKHPD256, IX86_BUILTIN_UNPCKLPD256,
2551         IX86_BUILTIN_UNPCKHPS256, IX86_BUILTIN_UNPCKLPS256,
2552         IX86_BUILTIN_SI256_SI, IX86_BUILTIN_PS256_PS,
2553         IX86_BUILTIN_PD256_PD, IX86_BUILTIN_SI_SI256,
2554         IX86_BUILTIN_PS_PS256, IX86_BUILTIN_PD_PD256,
2555         IX86_BUILTIN_VTESTZPD, IX86_BUILTIN_VTESTCPD,
2556         IX86_BUILTIN_VTESTNZCPD, IX86_BUILTIN_VTESTZPS,
2557         IX86_BUILTIN_VTESTCPS, IX86_BUILTIN_VTESTNZCPS,
2558         IX86_BUILTIN_VTESTZPD256, IX86_BUILTIN_VTESTCPD256,
2559         IX86_BUILTIN_VTESTNZCPD256, IX86_BUILTIN_VTESTZPS256,
2560         IX86_BUILTIN_VTESTCPS256, IX86_BUILTIN_VTESTNZCPS256,
2561         IX86_BUILTIN_PTESTZ256, IX86_BUILTIN_PTESTC256,
2562         IX86_BUILTIN_PTESTNZC256, IX86_BUILTIN_MOVMSKPD256 and
2563         IX86_BUILTIN_MOVMSKPS256.
2564         (ix86_init_mmx_sse_builtins): Support AVX builtins.
2565         (ix86_expand_args_builtin): Likewise.
2566         (ix86_expand_special_args_builtin): Likewise.
2567         (ix86_hard_regno_mode_ok): Handle AVX modes.
2568         (ix86_expand_vector_init_duplicate): Likewise.
2569         (ix86_expand_vector_init_one_nonzero): Likewise.
2570         (ix86_expand_vector_init_one_var): Likewise.
2571         (ix86_expand_vector_init_concat): Likewise.
2572         (ix86_expand_vector_init_general): Likewise.
2573         (ix86_expand_vector_set): Likewise.
2574         (ix86_vector_mode_supported_p): Likewise.
2575         (x86_extended_reg_mentioned_p): Check INSN_P before using
2576         PATTERN.
2577
2578         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
2579         OPTION_MASK_ISA_AVX and OPTION_MASK_ISA_FMA.
2580
2581         * config/i386/i386.h (TARGET_AVX): New.
2582         (TARGET_FMA): Likewise.
2583         (TARGET_CPU_CPP_BUILTINS): Handle TARGET_AVX and TARGET_FMA.
2584         (BIGGEST_ALIGNMENT): Set to 256 for TARGET_AVX.
2585         (VALID_AVX256_REG_MODE): New.
2586         (AVX256_VEC_FLOAT_MODE_P): Likewise.
2587         (AVX_FLOAT_MODE_P): Likewise.
2588         (AVX128_VEC_FLOAT_MODE_P): Likewise.
2589         (AVX256_VEC_FLOAT_MODE_P): Likewise.
2590         (AVX_VEC_FLOAT_MODE_P): Likewise.
2591         (ASM_OUTPUT_AVX_PREFIX): Likewise.
2592         (ASM_OUTPUT_OPCODE): Likewise.
2593         (UNITS_PER_SIMD_WORD): Add a FIXME for 32byte vectorizer
2594         support.
2595         (SSE_REG_MODE_P): Allow 256bit vector modes.
2596         (ix86_args): Add a warn_avx field.
2597
2598         * config/i386/i386.md (UNSPEC_PCMP): New.
2599         (UNSPEC_VPERMIL): Likewise.
2600         (UNSPEC_VPERMIL2): Likewise.
2601         (UNSPEC_VPERMIL2F128): Likewise.
2602         (UNSPEC_MASKLOAD): Likewise.
2603         (UNSPEC_MASKSTORE): Likewise.
2604         (UNSPEC_CAST): Likewise.
2605         (UNSPEC_VTESTP): Likewise.
2606         (UNSPECV_VZEROALL): Likewise.
2607         (UNSPECV_VZEROUPPER): Likewise.
2608         (XMM0_REG): Likewise.
2609         (XMM1_REG): Likewise.
2610         (XMM2_REG): Likewise.
2611         (XMM3_REG): Likewise.
2612         (XMM4_REG): Likewise.
2613         (XMM5_REG): Likewise.
2614         (XMM6_REG): Likewise.
2615         (XMM8_REG): Likewise.
2616         (XMM9_REG): Likewise.
2617         (XMM10_REG): Likewise.
2618         (XMM11_REG): Likewise.
2619         (XMM12_REG): Likewise.
2620         (XMM13_REG): Likewise.
2621         (XMM14_REG): Likewise.
2622         (XMM15_REG): Likewise.
2623         (prefix): Likewise.
2624         (prefix_vex_imm8): Likewise.
2625         (prefix_vex_w): Likewise.
2626         (length_vex): Likewise.
2627         (maxmin): Likewise.
2628         (movoi): Likewise.
2629         (*avx_ashlti3): Likewise.
2630         (*avx_lshrti3): Likewise.
2631         (*avx_setcc<mode>): Likewise.
2632         (*fop_<mode>_comm_mixed_avx): Likewise.
2633         (*fop_<mode>_comm_avx): Likewise.
2634         (*fop_<mode>_1_mixed_avx): Likewise.
2635         (*fop_<mode>_1_avx): Likewise.
2636         (*avx_<code><mode>3): Likewise.
2637         (*avx_ieee_smin<mode>3): Likewise.
2638         (*avx_ieee_smax<mode>3): Likewise.
2639         (mode): Add OI, V8SF and V4DF.
2640         (length): Support VEX prefix.
2641         (*cmpfp_i_mixed): Set prefix attribute.
2642         (*cmpfp_i_sse): Likewise.
2643         (*cmpfp_iu_mixed): Likewise.
2644         (*cmpfp_iu_sse): Likewise.
2645         (*movsi_1): Support AVX.
2646         (*movdi_2): Likewise.
2647         (*movdi_1_rex64): Likewise.
2648         (*movti_internal): Likewise.
2649         (*movti_rex64): Likewise.
2650         (*movsf_1): Likewise.
2651         (*movdf_nointeger): Likewise.
2652         (*movdf_integer_rex64): Likewise.
2653         (*movtf_internal): Likewise.
2654         (zero_extendsidi2_32): Likewise.
2655         (zero_extendsidi2_rex64): Likewise.
2656         (*extendsfdf2_mixed): Likewise.
2657         (*extendsfdf2_sse): Likewise.
2658         (*truncdfsf_fast_mixed): Likewise.
2659         (*truncdfsf_fast_sse): Likewise.
2660         (*truncdfsf_mixed): Likewise.
2661         (fix_trunc<mode>di_sse): Likewise.
2662         (fix_trunc<mode>si_sse): Likewise.
2663         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit): Likewise.
2664         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit): Likewise.
2665         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit): Likewise.
2666         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit): Likewise.
2667         (*rcpsf2_sse): Likewise.
2668         (*rsqrtsf2_sse): Likewise.
2669         (*sqrt<mode>2_sse): Likewise.
2670         (sse4_1_round<mode>2): Likewise.
2671         (*sse_prologue_save_insn): Disallow REX prefix for AVX.
2672         Support AVX.  Set length attribute properly for AVX.
2673
2674         * config/i386/i386-modes.def (VECTOR_MODES (INT, 32)): New.
2675         (VECTOR_MODES (FLOAT, 32)): Likewise.
2676         (VECTOR_MODE (INT, DI, 8)): Likewise.
2677         (VECTOR_MODE (INT, HI, 32)): Likewise.
2678         (VECTOR_MODE (INT, QI, 64)): Likewise.
2679         (VECTOR_MODE (FLOAT, DF, 8)): Likewise.
2680         (VECTOR_MODE (FLOAT, SF, 16)): Likewise.
2681         (VECTOR_MODE (INT, DI, 4)): Removed.
2682         (VECTOR_MODE (INT, SI, 8)): Likewise.
2683         (VECTOR_MODE (INT, HI, 16)): Likewise.
2684         (VECTOR_MODE (INT, QI, 32)): Likewise.
2685         (VECTOR_MODE (FLOAT, SF, 8)): Likewise.
2686         (INT_MODE (OI, 32)): Likewise.
2687
2688         * config/i386/i386.opt (mavx): New.
2689         (mfma): Likewise.
2690
2691         * config/i386/i386-protos.h (ix86_attr_length_vex_default): New.
2692
2693         * config/i386/mmx.md (*mov<mode>_internal_rex64): Support AVX.
2694         (*mov<mode>_internal_avx): New.
2695         (*movv2sf_internal_rex64_avx): Likewise.
2696         (*movv2sf_internal_avx): Likewise.
2697
2698         * config/i386/predicates.md (const_4_to_5_operand): New.
2699         (const_6_to_7_operand): Likewise.
2700         (const_8_to_11_operand): Likewise.
2701         (const_12_to_15_operand): Likewise.
2702         (avx_comparison_float_operator): Likewise.
2703
2704         * config/i386/sse.md (AVX256MODEI): New.
2705         (AVX256MODE): Likewise.
2706         (AVXMODEQI): Likewise.
2707         (AVXMODE): Likewise.
2708         (AVX256MODEF2P): Likewise.
2709         (AVX256MODE2P): Likewise.
2710         (AVX256MODE4P): Likewise.
2711         (AVX256MODE8P): Likewise.
2712         (AVXMODEF2P): Likewise.
2713         (AVXMODEF4P): Likewise.
2714         (AVXMODEDCVTDQ2PS): Likewise.
2715         (AVXMODEDCVTPS2DQ): Likewise.
2716         (avxvecmode): Likewise.
2717         (avxvecpsmode): Likewise.
2718         (avxhalfvecmode): Likewise.
2719         (avxscalarmode): Likewise.
2720         (avxcvtvecmode): Likewise.
2721         (avxpermvecmode): Likewise.
2722         (avxmodesuffixf2c): Likewise.
2723         (avxmodesuffixp): Likewise.
2724         (avxmodesuffixs): Likewise.
2725         (avxmodesuffix): Likewise.
2726         (vpermilbits): Likewise.
2727         (pinsrbits): Likewise.
2728         (mov<mode>): Likewise.
2729         (*mov<mode>_internal): Likewise.
2730         (push<mode>1): Likewise.
2731         (movmisalign<mode>): Likewise.
2732         (avx_movup<avxmodesuffixf2c><avxmodesuffix>): Likewise.
2733         (avx_movdqu<avxmodesuffix>): Likewise.
2734         (avx_lddqu<avxmodesuffix>): Likewise.
2735         (<plusminus_insn><mode>3): Likewise.
2736         (*avx_<plusminus_insn><mode>3): Likewise.
2737         (*avx_vm<plusminus_insn><mode>3): Likewise.
2738         (mul<mode>3): Likewise.
2739         (*avx_mul<mode>3): Likewise.
2740         (*avx_vmmul<mode>3): Likewise.
2741         (divv8sf3): Likewise.
2742         (divv4df3): Likewise.
2743         (avx_div<mode>3): Likewise.
2744         (*avx_div<mode>3): Likewise.
2745         (*avx_vmdiv<mode>3): Likewise.
2746         (avx_rcpv8sf2): Likewise.
2747         (*avx_vmrcpv4sf2): Likewise.
2748         (sqrtv8sf2): Likewise.
2749         (avx_sqrtv8sf2): Likewise.
2750         (*avx_vmsqrt<mode>2): Likewise.
2751         (rsqrtv8sf2): Likewise.
2752         (avx_rsqrtv8sf2): Likewise.
2753         (*avx_vmrsqrtv4sf2): Likewise.
2754         (<code><mode>3): Likewise.
2755         (*avx_<code><mode>3_finite): Likewise.
2756         (*avx_<code><mode>3): Likewise.
2757         (*avx_vm<code><mode>3): Likewise.
2758         (*avx_ieee_smin<mode>3): Likewise.
2759         (*avx_ieee_smax<mode>3): Likewise.
2760         (avx_addsubv8sf3): Likewise.
2761         (avx_addsubv4df3): Likewise.
2762         (*avx_addsubv4sf3): Likewise.
2763         (*avx_addsubv2df3): Likewise.
2764         (avx_h<plusminus_insn>v4df3): Likewise.
2765         (avx_h<plusminus_insn>v8sf3): Likewise.
2766         (*avx_h<plusminus_insn>v4sf3): Likewise.
2767         (*avx_h<plusminus_insn>v2df3): Likewise.
2768         (avx_cmpp<avxmodesuffixf2c><mode>3): Likewise.
2769         (avx_cmps<ssemodesuffixf2c><mode>3): Likewise.
2770         (*avx_maskcmp<mode>3): Likewise.
2771         (avx_nand<mode>3): Likewise.
2772         (*avx_<code><mode>3): Likewise.
2773         (*avx_nand<mode>3): Likewise.
2774         (*avx_<code><mode>3): Likewise.
2775         (*avx_cvtsi2ss): Likewise.
2776         (*avx_cvtsi2ssq): Likewise.
2777         (*avx_cvtsi2sd): Likewise.
2778         (*avx_cvtsi2sdq): Likewise.
2779         (*avx_cvtsd2ss): Likewise.
2780         (avx_cvtss2sd): Likewise.
2781         (avx_cvtdq2ps<avxmodesuffix>): Likewise.
2782         (avx_cvtps2dq<avxmodesuffix>): Likewise.
2783         (avx_cvttps2dq<avxmodesuffix>): Likewise.
2784         (*avx_cvtsi2sd): Likewise.
2785         (*avx_cvtsi2sdq): Likewise.
2786         (avx_cvtdq2pd256): Likewise.
2787         (avx_cvtpd2dq256): Likewise.
2788         (avx_cvttpd2dq256): Likewise.
2789         (*avx_cvtsd2ss): Likewise.
2790         (*avx_cvtss2sd): Likewise.
2791         (avx_cvtpd2ps256): Likewise.
2792         (avx_cvtps2pd256): Likewise.
2793         (*avx_movhlps): Likewise.
2794         (*avx_movlhps): Likewise.
2795         (avx_unpckhps256): Likewise.
2796         (*avx_unpckhps): Likewise.
2797         (avx_unpcklps256): Likewise.
2798         (*avx_unpcklps): Likewise.
2799         (avx_movshdup256): Likewise.
2800         (avx_movsldup256): Likewise.
2801         (avx_shufps256): Likewise.
2802         (avx_shufps256_1): Likewise.
2803         (*avx_shufps_<mode>): Likewise.
2804         (*avx_loadhps): Likewise.
2805         (*avx_storelps): Likewise.
2806         (*avx_loadlps): Likewise.
2807         (*avx_movss): Likewise.
2808         (*vec_dupv4sf_avx): Likewise.
2809         (*vec_concatv2sf_avx): Likewise.
2810         (*vec_concatv4sf_avx): Likewise.
2811         (*vec_setv4sf_0_avx): Likewise.
2812         (*vec_setv4sf_avx): Likewise.
2813         (*avx_insertps): Likewise.
2814         (avx_vextractf128<mode>): Likewise.
2815         (vec_extract_lo_<mode>): Likewise.
2816         (vec_extract_hi_<mode>): Likewise.
2817         (vec_extract_lo_<mode>): Likewise.
2818         (vec_extract_hi_<mode>): Likewise.
2819         (vec_extract_lo_v16hi): Likewise.
2820         (vec_extract_hi_v16hi): Likewise.
2821         (vec_extract_lo_v32qi): Likewise.
2822         (vec_extract_hi_v32qi): Likewise.
2823         (avx_unpckhpd256): Likewise.
2824         (*avx_unpckhpd): Likewise.
2825         (avx_movddup256): Likewise.
2826         (*avx_movddup): Likewise.
2827         (avx_unpcklpd256): Likewise.
2828         (*avx_unpcklpd): Likewise.
2829         (avx_shufpd256): Likewise.
2830         (avx_shufpd256_1): Likewise.
2831         (*avx_punpckhqdq): Likewise.
2832         (*avx_punpcklqdq): Likewise.
2833         (*avx_shufpd_<mode>): Likewise.
2834         (*avx_storehpd): Likewise.
2835         (*avx_loadhpd): Likewise.
2836         (*avx_loadlpd): Likewise.
2837         (*avx_movsd): Likewise.
2838         (*vec_concatv2df_avx): Likewise.
2839         (*avx_<plusminus_insn><mode>3): Likewise.
2840         (*avx_<plusminus_insn><mode>3): Likewise.
2841         (*avx_mulv8hi3): Likewise.
2842         (*avxv8hi3_highpart): Likewise.
2843         (*avx_umulv8hi3_highpart): Likewise.
2844         (*avx_umulv2siv2di3): Likewise.
2845         (*avx_mulv2siv2di3): Likewise.
2846         (*avx_pmaddwd): Likewise.
2847         (*avx_mulv4si3): Likewise.
2848         (*avx_ashr<mode>3): Likewise.
2849         (*avx_lshr<mode>3): Likewise.
2850         (*avx_ashl<mode>3): Likewise.
2851         (*avx_<code><mode>3): Likewise.
2852         (*avx_eq<mode>3): Likewise.
2853         (*avx_gt<mode>3): Likewise.
2854         (*avx_nand<mode>3): Likewise.
2855         (*avx_nand<mode>3): Likewise.
2856         (*avx_<code><mode>3): Likewise.
2857         (*avx_<code><mode>3): Likewise.
2858         (*avx_packsswb): Likewise.
2859         (*avx_packssdw): Likewise.
2860         (*avx_packuswb): Likewise.
2861         (*avx_punpckhbw): Likewise.
2862         (*avx_punpcklbw): Likewise.
2863         (*avx_punpckhwd): Likewise.
2864         (*avx_punpcklwd): Likewise.
2865         (*avx_punpckhdq): Likewise.
2866         (*avx_punpckldq): Likewise.
2867         (*avx_pinsr<avxmodesuffixs>): Likewise.
2868         (*avx_pinsrq): Likewise.
2869         (*avx_loadld): Likewise.
2870         (*vec_extractv2di_1_rex64_avx): Likewise.
2871         (*vec_extractv2di_1_avx): Likewise.
2872         (*vec_dupv2di_avx): Likewise.
2873         (*vec_concatv2si_avx): Likewise.
2874         (*vec_concatv4si_1_avx): Likewise.
2875         (*vec_concatv2di_avx): Likewise.
2876         (*vec_concatv2di_rex64_avx): Likewise.
2877         (*avx_uavgv16qi3): Likewise.
2878         (*avx_uavgv8hi3): Likewise.
2879         (*avx_psadbw): Likewise.
2880         (avx_movmskp<avxmodesuffixf2c>256): Likewise.
2881         (*avx_phaddwv8hi3): Likewise.
2882         (*avx_phadddv4si3): Likewise.
2883         (*avx_phaddswv8hi3): Likewise.
2884         (*avx_phsubwv8hi3): Likewise.
2885         (*avx_phsubdv4si3): Likewise.
2886         (*avx_phsubswv8hi3): Likewise.
2887         (*avx_pmaddubsw128): Likewise.
2888         (*avx_pmulhrswv8hi3): Likewise.
2889         (*avx_pshufbv16qi3): Likewise.
2890         (*avx_psign<mode>3): Likewise.
2891         (*avx_palignrti): Likewise.
2892         (avx_blendp<avxmodesuffixf2c><avxmodesuffix>): Likewise.
2893         (avx_blendvp<avxmodesuffixf2c><avxmodesuffix>): Likewise.
2894         (avx_dpp<avxmodesuffixf2c><avxmodesuffix>): Likewise.
2895         (*avx_mpsadbw): Likewise.
2896         (*avx_packusdw): Likewise.
2897         (*avx_pblendvb): Likewise.
2898         (*avx_pblendw): Likewise.
2899         (avx_vtestp<avxmodesuffixf2c><avxmodesuffix>): Likewise.
2900         (avx_ptest256): Likewise.
2901         (avx_roundp<avxmodesuffixf2c>256): Likewise.
2902         (*avx_rounds<ssemodesuffixf2c>): Likewise.
2903         (*avx_aesenc): Likewise.
2904         (*avx_aesenclast): Likewise.
2905         (*avx_aesdec): Likewise.
2906         (*avx_aesdeclast): Likewise.
2907         (avx_vzeroupper): Likewise.
2908         (avx_vzeroupper_rex64): Likewise.
2909         (avx_vpermil<mode>): Likewise.
2910         (avx_vpermilvar<mode>3): Likewise.
2911         (avx_vpermil2<mode>3): Likewise.
2912         (avx_vperm2f128<mode>3): Likewise.
2913         (avx_vbroadcasts<avxmodesuffixf2c><avxmodesuffix>): Likewise.
2914         (avx_vbroadcastss256): Likewise.
2915         (avx_vbroadcastf128_p<avxmodesuffixf2c>256): Likewise.
2916         (avx_vinsertf128<mode>): Likewise.
2917         (vec_set_lo_<mode>): Likewise.
2918         (vec_set_hi_<mode>): Likewise.
2919         (vec_set_lo_<mode>): Likewise.
2920         (vec_set_hi_<mode>): Likewise.
2921         (vec_set_lo_v16hi): Likewise.
2922         (vec_set_hi_v16hi): Likewise.
2923         (vec_set_lo_v32qi): Likewise.
2924         (vec_set_hi_v32qi): Likewise.
2925         (avx_maskloadp<avxmodesuffixf2c><avxmodesuffix>): Likewise.
2926         (avx_maskstorep<avxmodesuffixf2c><avxmodesuffix>): Likewise.
2927         (avx_<avxmodesuffixp><avxmodesuffix>_<avxmodesuffixp>): Likewise.
2928         (avx_<avxmodesuffixp>_<avxmodesuffixp><avxmodesuffix>): Likewise.
2929         (vec_init<mode>): Likewise.
2930         (*vec_concat<mode>_avx): Likewise.
2931         (blendbits): Support V8SF and V4DF.
2932         (sse2_movq128): Support AVX.
2933         (<sse>_movnt<mode>): Likewise.
2934         (sse2_movntv2di): Likewise.
2935         (sse_rcpv4sf2): Likewise.
2936         (sse_sqrtv4sf2): Likewise.
2937         (sse_rsqrtv4sf2): Likewise.
2938         (<sse>_comi): Likewise.
2939         (<sse>_ucomi): Likewise.
2940         (sse_cvtss2si): Likewise.
2941         (sse_cvtss2si_2): Likewise.
2942         (sse_cvtss2siq): Likewise.
2943         (sse_cvtss2siq_2): Likewise.
2944         (sse_cvttss2si): Likewise.
2945         (sse_cvttss2siq): Likewise.
2946         (sse2_cvtsd2si): Likewise.
2947         (sse2_cvtsd2si_2): Likewise.
2948         (sse2_cvtsd2siq): Likewise.
2949         (sse2_cvtsd2siq_2): Likewise.
2950         (sse2_cvttsd2si): Likewise.
2951         (sse2_cvttsd2siq): Likewise.
2952         (sse2_cvtdq2pd): Likewise.
2953         (*sse2_cvtpd2dq): Likewise.
2954         (*sse2_cvttpd2dq): Likewise.
2955         (*sse2_cvtpd2ps): Likewise.
2956         (sse2_cvtps2pd): Likewise.
2957         (sse3_movshdup): Likewise.
2958         (sse3_movsldup): Likewise.
2959         (sse_storehps): Likewise.
2960         (*sse4_1_extractps): Likewise.
2961         (sse2_storelpd): Likewise.
2962         (vec_dupv2df_sse3): Likewise.
2963         (*vec_concatv2df_sse3): Likewise.
2964         (*sse4_1_pextrb): Likewise.
2965         (*sse4_1_pextrb_memory): Likewise.
2966         (*sse2_pextrw): Likewise.
2967         (*sse4_1_pextrw_memory): Likewise.
2968         (*sse4_1_pextrd): Likewise.
2969         (*sse4_1_pextrq): Likewise.
2970         (sse2_pshufd_1): Likewise.
2971         (sse2_pshuflw_1): Likewise.
2972         (sse2_pshufhw_1): Likewise.
2973         (*sse2_storeq_rex64): Likewise.
2974         (*vec_dupv4si): Likewise.
2975         (<sse>_movmskp<ssemodesuffixf2c>): Likewise.
2976         (sse2_pmovmskb): Likewise.
2977         (*sse2_maskmovdqu): Likewise.
2978         (*sse2_maskmovdqu_rex64): Likewise.
2979         (sse_ldmxcsr): Likewise.
2980         (sse_stmxcsr): Likewise.
2981         (abs<mode>2): Likewise.
2982         (sse4_1_movntdqa): Likewise.
2983         (sse4_1_phminposuw): Likewise.
2984         (sse4_1_extendv8qiv8hi2): Likewise.
2985         (*sse4_1_extendv8qiv8hi2): Likewise.
2986         (sse4_1_extendv4qiv4si2): Likewise.
2987         (*sse4_1_extendv4qiv4si2): Likewise.
2988         (sse4_1_extendv2qiv2di2): Likewise.
2989         (*sse4_1_extendv2qiv2di2): Likewise.
2990         (sse4_1_extendv4hiv4si2): Likewise.
2991         (*sse4_1_extendv4hiv4si2): Likewise.
2992         (sse4_1_extendv2hiv2di2): Likewise.
2993         (*sse4_1_extendv2hiv2di2): Likewise.
2994         (sse4_1_extendv2siv2di2): Likewise.
2995         (*sse4_1_extendv2siv2di2): Likewise.
2996         (sse4_1_zero_extendv8qiv8hi2): Likewise.
2997         (*sse4_1_zero_extendv8qiv8hi2): Likewise.
2998         (sse4_1_zero_extendv4qiv4si2): Likewise.
2999         (*sse4_1_zero_extendv4qiv4si2): Likewise.
3000         (sse4_1_zero_extendv2qiv2di2): Likewise.
3001         (*sse4_1_zero_extendv2qiv2di2): Likewise.
3002         (sse4_1_zero_extendv4hiv4si2): Likewise.
3003         (*sse4_1_zero_extendv4hiv4si2): Likewise.
3004         (sse4_1_zero_extendv2hiv2di2): Likewise.
3005         (*sse4_1_zero_extendv2hiv2di2): Likewise.
3006         (sse4_1_zero_extendv2siv2di2): Likewise.
3007         (*sse4_1_zero_extendv2siv2di2): Likewise.
3008         (sse4_1_ptest): Likewise.
3009         (sse4_1_roundp<ssemodesuffixf2c>): Likewise.
3010         (sse4_2_pcmpestri): Likewise.
3011         (sse4_2_pcmpestrm): Likewise.
3012         (sse4_2_pcmpistri): Likewise.
3013         (sse4_2_pcmpistrm): Likewise.
3014         (aesimc): Likewise.
3015         (aeskeygenassist): Likewise.
3016
3017 2008-08-28  Uros Bizjak  <ubizjak@gmail.com>
3018
3019         * config/i386/predicates.md (vzeroall_operation): New.
3020
3021         * config/i386/sse.md (avx_vzeroall): New.
3022         (*avx_vzeroall): Likewise.
3023
3024 2008-08-28  Paul Brook  <paul@codesourcery.com>
3025             Mark Shinwell  <shinwell@codesourcery.com>
3026             Richard Earnshaw  <richard.earnshaw@arm.com>
3027
3028         * config/arm/arm.c (TARGET_MAX_ANCHOR_OFFSET): New.
3029         (TARGET_MIN_ANCHOR_OFFSET): New.
3030         (arm_override_options): Set correct anchor ranges for Thumb-1
3031         and Thumb-2 if required.
3032         (legitimize_pic_address): Handle case involving a TLS symbol
3033         reference with an addend.
3034         (arm_optimization_options): Enable section anchors at -O1 and
3035         above.
3036         * config/arm/arm.h (OPTIMIZATION_OPTIONS): New.
3037         * config/arm/arm-protos.h (arm_optimization_options): New.
3038
3039 2008-08-28  Nick Clifton  <nickc@redhat.com>
3040
3041         * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Define.
3042         * config/stormy16/stormy16.md (zero_extendqihi2): Fix length
3043         attribute.
3044
3045         * config/v850/v850.h (IRA_COVER_CLASSES): Define.
3046         * config/v850/v850.md (return): Remove frame size restriction.
3047
3048         * config/mcore/mcore.h (IRA_COVER_CLASSES): Define.
3049
3050         * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Define.
3051
3052         * config/fr30/fr30.h (IRA_COVER_CLASSES): Define.
3053
3054         * config/m32r/m32r.h (IRA_COVER_CLASSES): Define.
3055
3056 2008-08-28  Paul Brook  <paul@codesourcery.com>
3057
3058         * config/arm/vfp11.md: Update license notice.
3059         * config/arm/cortex-r4.md: Ditto.
3060
3061 2008-08-28  Richard Guenther  <rguenther@suse.de>
3062
3063         PR tree-optimization/37207
3064         * tree-ssa-ifcombine.c (recognize_single_bit_test): Fix
3065         tuplification bug.
3066
3067 2008-08-28  Dodji Seketeli  <dodji@redhat.com>
3068
3069         PR c++/36741
3070         * tree.c (int_fits_type_p): Don't forget unsigned integers
3071           of type sizetype which higher end word equals -1.
3072
3073 2008-08-28  Ira Rosen  <irar@il.ibm.com>
3074
3075         * target.h (struct vectorize): Add new target builtin.
3076         * tree-vectorizer.c (destroy_loop_vec_info): Call
3077         vect_free_slp_instance instead of vect_free_slp_node.
3078         * tree-vectorizer.h (enum slp_load_perm_type): New.
3079         (struct _slp_instance): Add new fields.
3080         (SLP_INSTANCE_LOAD_PERMUTATION): New.
3081         (SLP_INSTANCE_LOADS): New.
3082         (vect_free_slp_tree): Remove.
3083         (vect_free_slp_instance): Declare.
3084         (SLP_TREE_LOADS_PERM_TYPE, TARG_VEC_PERMUTE_COST): New.
3085         (vectorizable_load): Add argument.
3086         (vect_transform_slp_perm_load): New.
3087         * tree-vect-analyze.c (vect_analyze_operations): Add an argument to
3088         vectorizable_load.
3089         (vect_get_place_in_interleaving_chain): New function.
3090         (vect_free_slp_tree): Make static.
3091         (vect_free_slp_instance): New function.
3092         (vect_build_slp_tree): Add new arguments. Allow load permutations and
3093         collect the load location in the interleaving chain.
3094         (vect_supported_slp_permutation_p): New function.
3095         (vect_supported_load_permutation_p): Likewise.
3096         (vect_analyze_slp_instance): In case of loads permutation, call
3097         vect_supported_load_permutation_p to check that the permutation is
3098         supported.
3099         * target-def.h (TARGET_VECTORIZE_BUILTIN_VEC_PERM): New.
3100         * tree-vect-transform.c (vect_transform_stmt): Add new argument.
3101         (vect_create_mask_and_perm): New function.
3102         (vect_get_mask_element, vect_transform_slp_perm_load): Likewise.
3103         (vectorizable_load): Add an argument. Don't keep the created vectors
3104         statements in the node if permutation is required. Call
3105         vect_transform_slp_perm_load to generate the permutation.
3106         (vect_transform_stmt): Add new argument. Call vectorizable_load with
3107         additional argument.
3108         (vect_schedule_slp_instance): In case of loads permutation, allocate
3109         vectorized statements structure for all the related SLP nodes. Call
3110         vect_transform_stmt with addditional argument.
3111         (vect_transform_loop): Call vect_transform_stmt with correct arguments.
3112         * config/spu/spu.c (spu_builtin_vec_perm): New.
3113         (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Redefine.
3114         * config/spu/spu.h (TARG_VEC_PERMUTE_COS): Define.
3115         * config/rs6000/rs6000.c (rs6000_builtin_vec_perm): New.
3116         (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Redefine.
3117
3118 2008-08-28  Chris Fairles  <chris.fairles@gmail.com>
3119
3120         * gthr-posix.h (__gthread_create,  __gthread_join, __gthread_detach,
3121         __gthread_mutex_timed_lock, __gthread_recursive_mutex_timed_lock,
3122         __gthread_cond_signal, __gthread_cond_timedwait,
3123         __gthread_cond_timedwait_recursive): New functions.
3124         * gthr-posix.c (pthread_mutex_timedlock, pthread_cond_timedwait):
3125         Likewise.
3126         * gthr.h: Comment on defining __GTHREADS_CXX0X macro in conforming
3127         thread interfaces.
3128
3129 2008-08-28  Richard Guenther  <rguenther@suse.de>
3130
3131         PR middle-end/37005
3132         * fold-const.c (maybe_canonicalize_comparison_1): Require
3133         undefined overflow only for canonicalizing A +- CST cmp CST.
3134         Make sure to not generate new constants that are not inside
3135         their TYPE_MIN/MAX_VALUE range.
3136         (maybe_canonicalize_comparison): Remove undefined overflow
3137         checking from here.
3138         (fold_binary): Remove now duplicate folding.
3139
3140 2008-08-27  Paolo Carlini  <paolo.carlini@oracle.com>
3141
3142         * c-typeck.c (convert_for_assignment): Adjust WARN_FOR_ASSIGNMENT
3143         use not updated in the last change.
3144
3145 2008-08-27  Kaz Kojima  <kkojima@gcc.gnu.org>
3146
3147         * config/sh/sh.h (REG_CLASS_CONTENTS): Drop fr32 from FPUL_REGS.
3148         (IRA_COVER_CLASSES): Add FPUL_REGS.
3149
3150 2008-08-27  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
3151
3152         PR 37217
3153         * c-common.c (conversion_warning): Check for null operands.
3154
3155 2008-08-27  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
3156
3157         PR c/31673
3158         * c-decl.c (check_for_loop_decls): Improve error message. Give
3159         hint.
3160
3161 2008-08-27  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
3162
3163         PR c/37186
3164         * c-typeck.c (WARN_FOR_ASSIGNMENT): Add OPT parameter.
3165         (convert_for_assignment): Pass corrent OPT_W* parameter to
3166         WARN_FOR_ASSIGNMENT.
3167
3168 2008-08-27  Paolo Carlini  <paolo.carlini@oracle.com>
3169
3170         PR c++/35321
3171         * c-common.c (fold_offsetof_1): Handle TARGET_EXPR like CALL_EXPR.
3172
3173 2008-08-27  Paul Brook  <paul@codesourcery.com>
3174
3175         * config.gcc: Loosen checks for arm uclinux eabi targets.
3176
3177 2008-08-27  Paul Brook  <paul@codesourcery.com>
3178
3179         * config/arm/t-arm-coff (LIB1ASMFUNCS): Add missing undescrore on
3180         _clzsi2.
3181         * config/arm/t-linux (LIB1ASMFUNCS): Ditto.
3182
3183 2008-08-26  Douglas Gregor  <doug.gregor@gmail.com>
3184
3185         * c-common.c (do_switch_warnings): Look through the CONST_DECLs in
3186         the enumerators of an ENUMERAL_TYPE.
3187         * dbxout.c (dbxout_type): Ditto.
3188
3189 2008-08-26  Andrew Pinski  <andrew_pinski@playstation.sony.com>
3190
3191         PR rtl-opt/37219
3192         * fwprop.c (fwprop): Check that the loop_father is the outer loop.
3193         (fwprop_addr): Check that the loop_father is not the outer loop.
3194
3195 2008-08-26  Paul Brook  <paul@codesourcery.com>
3196
3197         * config/arm/vfp.md: Document fmul{s,d} and fmac{s,d} types.
3198         Remove documentation entry for fmul type.
3199         Use fmuls to annotate single-precision multiplication patterns,
3200         fmuld to annotate double-precision multiplication patterns,
3201         fmacs to annotate single-precision multiply-accumulate patterns
3202         and fmacd to annotate double-precision multiply-accumulate patterns.
3203         * config/arm/vfp11.md: Update reservations accordingly.
3204         * config/arm/arm.md: Note that certain values of the "type"
3205         attribute are documented in vfp.md.
3206         * config/arm/arm1020e.md: Remove out of date duplicate comment.
3207         (v10_cvt): Use new fmul types.
3208
3209 2008-08-26  Paul Brook   <paul@codesourcery.com>
3210
3211         * config/arm/vfp.md: Move pipeline description for VFP11 to...
3212         * config/arm/vfp11.md: ...here.  New.
3213         * config/arm/arm.md: Include vfp11.md.
3214
3215 2008-08-26  Hans-Peter Nilsson  <hp@axis.com>
3216
3217         * opts.c (decode_options) [!IRA_COVER_CLASSES]: Add missing
3218         parameter to inform call.
3219
3220 2008-08-26  Jeff Law  <law@redhat.com>
3221
3222         * mn10300.md (movqi, movhi): Split i->d*a case into two cases to
3223         avoid the possibility of getting DATA_OR_ADDRESS_REGS as the
3224         preferred class when copying a constant into a partial word register.
3225
3226 2008-08-26  Ben Elliston  <bje@au.ibm.com>
3227
3228         * rtlanal.c: Fix uses of "it's" with "its" where appropriate.
3229         * cp/typeck.c: Likewise.
3230         * cp/tree.c: Likewise.
3231         * gimple-low.c: Likewise.
3232         * jump.c: Likewise.
3233
3234 2008-08-26  Vladimir Makarov  <vmakarov@redhat.com>
3235
3236         * ira-build.c, ira-color.c, ira-costs.c, ira.h, ira-lives.c,
3237         ira.c, ira-conflicts.c, ira-emit.c, ira-int.h: New files.
3238
3239         * doc/passes.texi: Describe IRA.
3240
3241         * doc/tm.texi (IRA_COVER_CLASSES,
3242         IRA_HARD_REGNO_ADD_COST_MULTIPLIER): Describe the new macros.
3243
3244         * doc/invoke.texi (ira-max-loops-num): Describe the new parameter.
3245         (-fira, -fira-algorithm, -fira-coalesce, -fno-ira-move-spills,
3246         -fira-propagate-cost, -fno-ira-share-save-slots,
3247         -fno-ira-share-spill-slots, -fira-verbose): Describe new options.
3248
3249         * flags.h (ira_algorithm): New enumeration.
3250         (flag_ira_algorithm, flag_ira_verbose): New external variable
3251         declarations.
3252
3253         * postreload.c (gate_handle_postreload): Don't do post reload
3254         optimizations unless the reload is completed.
3255
3256         * reload.c (push_reload, find_dummy_reload): Use DF_LR_OUT for
3257         IRA.
3258
3259         * tree-pass.h (pass_ira): New external variable declaration.
3260
3261         * reload.h: Add 2008 to the Copyright.
3262
3263         * cfgloopanal.c: Include params.h.
3264         (estimate_reg_pressure_cost): Decrease cost for IRA optimization
3265         mode.
3266
3267         * params.h (IRA_MAX_LOOPS_NUM): New macro.
3268
3269         * toplev.c (ira.h): New include.
3270         (flag_ira_algorithm, flag_ira_verbose): New external variables.
3271         (backend_init_target): Call ira_init.
3272         (backend_init): Call ira_init_once.
3273         (finalize): Call finish_ira_once.
3274
3275         * toplev.h (flag_ira, flag_ira_coalesce, flag_ira_move_spills,
3276         flag_ira_share_save_slots, flag_ira_share_spill_slots): New
3277         external variables.
3278
3279         * regs.h (contains_reg_of_mode, move_cost, may_move_in_cost,
3280         may_move_out_cost): New external variable declarations.
3281         (move_table): New typedef.
3282
3283         * caller-save.c: Include headers output.h and ira.h.
3284         (no_caller_save_reg_set): New global variable.
3285         (save_slots_num, save_slots): New variables.
3286         (reg_save_code, reg_restore_code, add_stored_regs): Add
3287         prototypes.
3288         (init_caller_save): Set up no_caller_save_reg_set.
3289         (init_save_areas): Reset save_slots_num.
3290         (saved_hard_reg): New structure.
3291         (hard_reg_map, saved_regs_num, all_saved_regs): New variables.
3292         (initiate_saved_hard_regs, new_saved_hard_reg,
3293         finish_saved_hard_regs, saved_hard_reg_compare_func): New
3294         functions.
3295         (setup_save_areas): Add code for sharing stack slots.
3296         (all_blocks): New variable.
3297         (save_call_clobbered_regs): Process pseudo-register too.
3298         (mark_set_regs): Process pseudo-register too.
3299         (insert_one_insn): Put the insn after bb note in a empty basic
3300         block.  Add insn check.
3301
3302         * global.c (eliminable_regset): Make it external.
3303         (mark_elimination): Use DF_LR_IN for IRA.
3304         (pseudo_for_reload_consideration_p): New.
3305         (build_insn_chain): Make it external.  Don't ignore spilled
3306         pseudos for IRA.  Use pseudo_for_reload_consideration_p.
3307         (gate_handle_global_alloc): New function.
3308         (pass_global_alloc): Add the gate function.
3309
3310         * opts.c (decode_options): Set up flag_ira.  Print the warning for
3311         -fira.
3312         (common_handle_option): Process -fira-algorithm and -fira-verbose.
3313
3314         * timevar.def (TV_IRA, TV_RELOAD): New passes.
3315
3316         * regmove.c (regmove_optimize): Don't do replacement of output for
3317         IRA.
3318
3319         * hard-reg-set.h (no_caller_save_reg_set, reg_class_subclasses):
3320         New external variable declarations.
3321
3322         * local-alloc.c (update_equiv_regs): Make it external.  Return
3323         true if jump label rebuilding should be done.  Rescan new_insn for
3324         notes.
3325         (gate_handle_local_alloc): New function.
3326         (pass_local_alloc): Add the gate function.
3327
3328         * alias.c (value_addr_p, stack_addr_p): New functions.
3329         (nonoverlapping_memrefs_p): Use them for IRA.
3330
3331         * common.opt (fira, fira-algorithm, fira-coalesce,
3332         fira-move-spills, fira-share-save-slots, fira-share-spill-slots,
3333         fira-verbose): New options.
3334
3335         * regclass.c (reg_class_subclasses, contains_reg_of_mode,
3336         move_cost, may_move_in_cost, may_move_out_cost): Make the
3337         variables external.
3338         (move_table): Remove typedef.
3339         (init_move_cost): Make it external.
3340         (allocate_reg_info, resize_reg_info, setup_reg_classes): New
3341         functions.
3342
3343         * rtl.h (init_move_cost, allocate_reg_info, resize_reg_info,
3344         setup_reg_classes): New function prototypes.
3345         (eliminable_regset): New external variable declaration.
3346         (build_insn_chain, update_equiv_regs): New function prototypes.
3347
3348         * Makefile.in (IRA_INT_H): New definition.
3349         (OBJS-common): Add ira.o, ira-build.o, ira-costs.o,
3350         ira-conflicts.o, ira-color.o, ira-emit.o, and ira-lives.o.
3351         (reload1.o, toplev.o): Add dependence on ira.h.
3352         (cfgloopanal.o): Add PARAMS_H.
3353         (caller-save.o): Add dependence on output.h and ira.h.
3354         (ira.o, ira-build.o, ira-costs.o, ira-conflicts.o, ira-color.o,
3355         ira-emit.o, ira-lives.o): New entries.
3356
3357         * passes.c (pass_ira): New pass.
3358
3359         * params.def (PARAM_IRA_MAX_LOOPS_NUM): New parameter.
3360
3361         * reload1.c (ira.h): Include the header.
3362         (changed_allocation_pseudos): New bitmap.
3363         (init_reload): Initiate the bitmap.
3364         (compute_use_by_pseudos): Permits spilled registers in FROM.
3365         (temp_pseudo_reg_arr): New variable.
3366         (reload): Allocate and free temp_pseudo_reg_arr.  Sort pseudos for
3367         IRA.  Call alter_reg with the additional parameter.  Don't clear
3368         spilled_pseudos for IRA.  Restore original insn chain for IRA.
3369         Clear changed_allocation_pseudos at the end of reload.
3370         (calculate_needs_all_insns): Call IRA's mark_memory_move_deletion.
3371         (hard_regno_to_pseudo_regno): New variable.
3372         (count_pseudo): Check spilled pseudos.  Set up
3373         hard_regno_to_pseudo_regno.
3374         (count_spilled_pseudo): Check spilled pseudos. Update
3375         hard_regno_to_pseudo_regno.
3376         (find_reg): Use better_spill_reload_regno_p.  Check
3377         hard_regno_to_pseudo_regno.
3378         (alter_reg): Set up spilled_pseudos.  Add a new parameter.  Add
3379         code for IRA.
3380         (eliminate_regs_1): Use additional parameter for alter_reg.
3381         (finish_spills): Set up pseudo_previous_regs only for spilled
3382         pseudos.  Call reassign_pseudos once for all spilled pseudos, pass
3383         more arguments.  Don't clear live_throughout and dead_or_set for
3384         spilled pseudos.  Use additional parameter for alter_reg.  Call
3385         mark_allocation_change.  Set up changed_allocation_pseudos.
3386         Remove sanity check.
3387         (emit_input_reload_insns, delete_output_reload): Use additional
3388         parameter for alter_reg.  Call mark_allocation_change.
3389         (substitute, gen_reload_chain_without_interm_reg_p): New
3390         functions.
3391         (reloads_conflict): Use gen_reload_chain_without_interm_reg_p.
3392
3393         * testsuite/gcc.dg/20080410-1.c: New file.
3394
3395         * config/s390/s390.h (IRA_COVER_CLASSES,
3396         IRA_HARD_REGNO_ADD_COST_MULTIPLIER): Define.
3397
3398         * config/sparc/sparc.h (IRA_COVER_CLASSES): New macro.
3399
3400         * config/i386/i386.h (IRA_COVER_CLASSES): Ditto.
3401
3402         * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
3403
3404         * config/rs6000/rs6000.h (IRA_COVER_CLASSES): Ditto.
3405
3406         * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
3407
3408         * config/alpha/alpha.h (IRA_COVER_CLASSES): Ditto.
3409
3410         2008-08-24  Jeff Law  <law@redhat.com>
3411         * ira.c (setup_reg_class_intersect_union): Prefer smallest class
3412         when ignoring unavailable registers.
3413
3414         2008-08-24  Jeff Law  <law@redhat.com>
3415         * ira-color.c (coalesced_pseudo_reg_slot_compare): Check
3416         FRAME_GROWS_DOWNWARD and STACK_GROWS_DOWNWARD.
3417         * ira.c (setup_eliminable_regset): Check stack_realign_needed.
3418         * config/mn10300/mn10300.h (IRA_COVER_CLASSES): New macro.
3419
3420         2008-06-03 Steve Chamberlain <steve.chamberlain@gmail.com>
3421         * ira-build.c (allocno_range_compare_func): Stabilize sort.
3422
3423         2008-05-29 Andy Hutchinson <hutchinsonandy@aim.com>
3424         * config/avr/avr.h (IRA_COVER_CLASSES): New macro.
3425         * reload1.c (find_reg): Process registers in register allocation order.
3426
3427         2008-05-10 Richard Sandiford <rsandifo@nildram.co.uk>
3428         * toplev.c (backend_init_target): Move ira_init call from
3429         here...
3430         (lang_dependent_init_target): ...to here.
3431
3432         2008-05-10 Richard Sandiford <rsandifo@nildram.co.uk>
3433         * ira.c (setup_class_subset_and_memory_move_costs): Don't
3434         calculate memory move costs for NO_REGS.
3435
3436         2008-05-05 Kaz Kojima <kkojima@gcc.gnu.org>
3437         * ira-color.c (ira_fast_allocation): Use no_stack_reg_p only if
3438         STACK_REGS is defined.
3439
3440         2008-04-08 Andrew Pinski <andrew_pinski@playstation.sony.com>
3441         * config/spu/spu.h (IRA_COVER_CLASSES): New macro.
3442
3443         2008-04-04 Bernd Schmidt <bernd.schmidt@analog.com>
3444         * config/bfin/bfin.h (IRA_COVER_CLASSES): New macro.
3445
3446         2008-04-04 Kaz Kojima <kkojima@gcc.gnu.org>
3447         * config/sh/sh.h (IRA_COVER_CLASSES): Define.
3448         * config/sh/sh.md (movsicc_true+3): Check if emit returns a
3449         barrier.
3450
3451 2008-08-26  Victor Kaplansky  <victork@il.ibm.com>
3452             Dorit Nuzman  <dorit@il.ibm.com>
3453
3454         * gcc/config/spu/spu.md (vec_extract_evenv4si,
3455         vec_extract_evenv4sf, vec_extract_evenv8hi,
3456         vec_extract_evenv16qi, vec_extract_oddv4si,
3457         vec_extract_oddv4sf, vec_extract_oddv8hi, vec_extract_oddv16qi,
3458         vec_interleave_highv4sf, vec_interleave_lowv4sf,
3459         vec_interleave_highv4si, vec_interleave_lowv4si,
3460         vec_interleave_highv8hi, vec_interleave_lowv8hi,
3461         vec_interleave_highv16qi, vec_interleave_lowv16qi,
3462         vec_pack_trunc_v8hi, vec_pack_trunc_v4si): Implement.S
3463
3464 2008-08-25  Janis Johnson  <janis187@us.ibm.com>
3465
3466         PR target/36756
3467         * config/rs6000/rs6000.c (optimization_options): Don't default to
3468         section anchors without toplevel reorder.
3469
3470 2008-08-25  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3471
3472         * config/spu/spu_mfcio.h (mfc_begin_critical_section): New function.
3473         (mfc_end_critical_section): Likewise.
3474
3475 2008-08-25  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3476
3477         * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute): Propagate
3478         all type qualifiers from element type to vector type.
3479
3480 2008-08-25  David Daney  <ddaney@avtrex.com>
3481
3482         * config/mips/mips.md (immediate_insn): Move up in file, fix
3483         comment typo, reformat.
3484         (fetchop_bit, atomic_hiqi_op memory_barrier,
3485         sync_compare_and_swap<mode>, compare_and_swap_12, sync_add<mode>,
3486         sync_<optab><mode>, sync_<optab>_12, sync_old_<optab><mode>,
3487         sync_old_<optab>_12, sync_new_<optab><mode>, sync_new_<optab>_12,
3488         sync_nand<mode>, sync_nand_12, sync_old_nand<mode>,
3489         sync_old_nand_12, sync_new_nand<mode>, sync_new_nand_12,
3490         sync_sub<mode>, sync_old_add<mode>, sync_old_sub<mode>,
3491         sync_new_add<mode>, sync_new_sub<mode>, sync_<optab><mode>,
3492         sync_old_<optab><mode>, sync_new_<optab><mode>, sync_nand<mode>,
3493         sync_old_nand<mode>, sync_new_nand<mode>,
3494         sync_lock_test_and_set<mode>, sync_lock_test_and_set<mode>,
3495         test_and_set_12): Moved to sync.md.
3496         (sync.md): Include.
3497         * config/mips/sync.md: New file.
3498
3499 2008-08-25  Richard Henderson  <rth@redhat.com>
3500
3501         * dwarf2out.c (def_cfa_1): Don't scale by DWARF_CIE_DATA_ALIGNMENT.
3502         (regsave): Likewise.
3503         (lookup_cfa_1): Don't rescale by DWARF_CIE_DATA_ALIGNMENT.
3504         (output_cfi_directive): Likewise.
3505         (div_data_align): New.
3506         (output_cfi): Use it.
3507
3508 2008-08-24  Adam Nemet  <anemet@caviumnetworks.com>
3509
3510         * config.gcc (mips64*-*-linux*): Handle mips64octeon*-*-linux*.
3511         * config/mips/mips.h (enum processor_type): Add PROCESSOR_OCTEON.
3512         (TARGET_OCTEON): New macro.
3513         (TARGET_CPU_CPP_BUILTINS): Define __OCTEON__ for Octeon.
3514         (MIPS_ISA_LEVEL_SPEC, MIPS_ARCH_FLOAT_SPEC): Handle -march=octeon.
3515         (ISA_HAS_POP): New macro.
3516         * config/mips/driver-native.c (host_detect_local_cpu): Handle
3517         Octeon.
3518         * config/mips/mips.c (mips_cpu_info_table, mips_rtx_cost_data):
3519         Handle Octeon.
3520         * config/mips/mips.md (cpu): Add octeon.
3521         (type): Add pop attribute value.
3522         (popcount<mode>2): New pattern.
3523         * doc/invoke.texi (-march=@var{arch}): Add octeon.
3524
3525 2008-08-24  Jan Hubicka  <jh@suse.cz>
3526
3527         * doc/invoke.texi (-fipa-cp-clone): New option.
3528         (-fipa-cp): Update docs.
3529         (--param ipcp-unit-growth):New.
3530         * ipa-cp.c: Include fibheap.h, params.h
3531         (ipcp_initialize_node_lattices): When not cloning, all externally
3532         visible functions are bottom.
3533         (ipcp_need_redirect_p): Accept clones.
3534         (ipcp_insert_stage): Use cost driven heuristics.
3535         (max_count, dead_nodes): New static vars.
3536         (ipcp_need_original_clone_p, ipcp_estimate_cloning_cost,
3537         ipcp_const_param_count): New functions.
3538         * common.opt (ipa-cp-clone): New command line option.
3539         * params.def (ipcp-unit-growth): New.
3540
3541 2008-08-24  Jan Hubicka  <jh@suse.cz>
3542
3543         * tree-inline.c (tree_function_versioning): Look harder
3544         for referenced vars.
3545
3546 2008-08-24  Razya Ladelsky  <razya@il.ibm.com>
3547
3548         PR tree-optimization/37185
3549         * matrix-reorg.c (transform_access_sites): Update changed stmt.
3550
3551 2008-08-23  Jan Hubicka  <jh@suse.cz>
3552
3553         * ipa-cp.c (ipcp_analyze_node): New function.
3554         (ipcp_update_cloned_node): Use it.
3555         (ipcp_init_stage): Likewise.
3556         * ipa-inline.c (function_insertion_hook_holder): New static var.
3557         (analyze_function): Break out from ....
3558         (inline_generate_summary): Here; register insertion hook.
3559         (cgraph_decide_inlining): Remove hook.
3560         (add_new_function): New function.
3561
3562 2008-08-23  Jan Hubicka  <jh@suse.cz>
3563
3564         * opts.c (decode_options): Revert accidental change enabling ipa-cp.
3565
3566 2008-08-23  Jan Hubicka  <jh@suse.cz>
3567
3568         * ipa-cp.c (constant_val_insert): Remove.
3569         (ipcp_propagate_one_const): Remove.
3570         (ipcp_create_replace_map): Always insert replacements to the map.
3571         (ipcp_insert_stage): Do not try to insert statements by hand.
3572         * tree-inline.c (insert_init_stmt): Break out from ...
3573         (setup_one_parameter): ... here; allow NULL BB pointer.
3574         (tree_function_versioning): Use setup_one_parameter to process
3575         replacement map.
3576
3577 2008-08-23  Jan Hubicka  <jh@suse.cz>
3578
3579         * tree.c (decl_address_ip_invariant_p): New function.
3580         * tree.h (decl_address_ip_invariant_p): Declare.
3581         * gimple.c (strip_invariant_refs): Break out from ...
3582         (is_gimple_invariant_address): ... here
3583         (is_gimple_ip_invariant_address): New function.
3584         (is_gimple_ip_invariant): New function.
3585         * gimple.h (is_gimple_ip_invariant_address, is_gimple_ip_invariant):
3586         Declare.
3587
3588         * ipa-cp.c (ipcp_lat_is_const): Remove handling of IPA_CONST_VALUE_REF.
3589         (ipcp_lat_is_insertable): All constants are insertable.
3590         (ipcp_lattice_from_jfunc, ipcp_print_all_lattices): Remove handling of
3591         IPA_CONST_VALUE_REF.
3592         (ipcp_initialize_node_lattices): Propagate all types of operands.
3593         (build_const_val): Do not handle IPA_CONST_VALUE_REF.
3594         (ipcp_create_replace_map): Reformat.
3595         (ipcp_need_redirect_p): Simplify.
3596         (ipcp_insert_stage): Check that argument is used before clonning.
3597         * ipa-prop.c (ipa_print_node_jump_functions): Do not handle IPA_CONST_REF.
3598         (compute_scalar_jump_functions): Simplify using is_gimple_ip_invariat.
3599         (determine_cst_member_ptr): Keep wrapping ADDR_EXPR of members.
3600         (update_call_notes_after_inlining): Expect ADDR_EXPR in operand.
3601         * ipa-prop.h (jump_func_type): Remove IPA_CONST_REF.
3602         (jump_func_type): Remove IPA_CONST_VALUE_REF.
3603         * tree-inline.c (tree_function_versioning): Add variables referenced by
3604         replacing trees.
3605
3606 2008-08-23  Jan Hubicka  <jh@suse.cz>
3607
3608         PR target/37094
3609         * i386.c (standard_80387_constant_p): Use optimize_size.
3610
3611 2008-08-23  Ira Rosen  <irar@il.ibm.com>
3612
3613         PR tree-optimization/37161
3614         * tree-vectorizer.h (vect_get_smallest_scalar_type): Declare.
3615         * tree-vect-analyze.c (vect_get_smallest_scalar_type): New function.
3616         (vect_determine_vectorization_factor): Move the scalar type
3617         retrieval to vect_get_smallest_scalar_type.
3618         (vect_build_slp_tree): Call vect_get_smallest_scalar_type to get
3619         scalar type. Remove redundant computation.
3620         * tree-vect-transform.c (vect_get_constant_vectors): Add argument.
3621         (vect_get_slp_defs): Take the type of RHS into account if
3622         necessary by calling vect_get_smallest_scalar_type. Call
3623         vect_get_constant_vectors with additional argument.
3624
3625 2008-08-23  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
3626
3627         PR 35648
3628         * doc/invoke.texi (Wwrite-strings): Clarify description.
3629
3630 2008-08-23  Ira Rosen  <irar@il.ibm.com>
3631
3632         PR tree-optimization/37174
3633         * tree-vect-analyze.c (vect_get_and_check_slp_defs): Check that the
3634         def stmt is a part of the loop before accessing its stmt_vec_info.
3635
3636 2008-08-22  Anatoly Sokolov  <aesok@post.ru>
3637
3638         PR target/11259
3639         * config/avr/avr.md (UNSPEC_SWAP): New constants.
3640         (*swap): New insn pattern.
3641         (*ashlqi3): Rename from ashlqi3 insn pattern.
3642         (ashlqi3): New expanders.
3643         (*lshrqi3): Rename from lshrqi3 insn pattern.
3644         (lshrqi3): New expanders.
3645         (ashlqi3_const4, ashlqi3_const5, ashlqi3_const6, lshrqi3_const4,
3646         lshrqi3_const5, lshrqi3_const6): New splitters.
3647         (andi, ashlqi3_l_const4, ashlqi3_l_const5, ashlqi3_l_const6,
3648         lshrqi3_l_const4, lshrqi3_l_const5, lshrqi3_l_const6): Define
3649         peephole2 patterns.
3650
3651 2008-08-22  Richard Guenther  <rguenther@suse.de>
3652
3653         PR tree-optimization/37078
3654         * tree-vrp.c (extract_range_from_unary_expr): Avoid generating
3655         [+INF, +INF] ranges.
3656
3657 2008-08-22  Richard Guenther  <rguenther@suse.de>
3658
3659         PR tree-optimization/37143
3660         * tree-vect-transform.c (vect_create_cond_for_align_checks): Build
3661         a conversion statement instead of a copy.
3662
3663 2008-08-22  Uros Bizjak  <ubizjak@gmail.com>
3664
3665         PR target/37184
3666         * config/i386/i386.c (ix86_match_ccmode): Handle CCAmode,
3667         CCCmode, CCOmode and CCSmode destination modes.
3668
3669         PR target/37191
3670         * config/i386/mmx.md (*vec_extractv2sf_0): Avoid combining registers
3671         from different units in a single alternative.
3672         (*vec_extractv2sf_1): Ditto.
3673         (*vec_extractv2si_0): Ditto.
3674         (*vec_extractv2si_1): Ditto.
3675         * config/i386/sse.md (sse2_storehpd): Ditto.
3676         (sse2_storelpd): Ditto.
3677         (sse2_loadhpd): Ditto.
3678         (sse2_loadlpd): Ditto.
3679
3680         PR target/37197
3681         * config/i386/i386.md (clzsi2_abm): Fix operand 1 constraints.
3682         (popcountsi2): Ditto.
3683         (clzdi2_abm): Ditto.
3684         (popcountdi2): Ditto.
3685         (clzhi2_abm): Ditto.
3686         (popcounthi2): Ditto.
3687
3688 2008-08-22  Richard Guenther  <rguenther@suse.de>
3689
3690         PR middle-end/36548
3691         PR middle-end/37125
3692         * fold-const.c (extract_muldiv_1): Optimize (X * C1) % C2 only
3693         if the multiplication does not overflow.
3694
3695 2008-08-21  Nathan Sidwell  <nathan@codesourcery.com>
3696
3697         * c-ppoutput.c (init_pp_output): Initialize src_line to 1.
3698
3699 2008-08-21  Richard Henderson  <rth@redhat.com>
3700
3701         * configure.ac (HAVE_GAS_CFI_PERSONALITY_DIRECTIVE): Remove
3702         spurrious comma from test.
3703         * configure: Rebuild.
3704
3705 2008-08-21  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
3706
3707         PR 30457
3708         * builtins.c (fold_builtin_next_arg): Add warning about undefined
3709         behaviour.
3710
3711 2008-08-21  Aldy Hernandez  <aldyh@redhat.com>
3712
3713         * c-tree.h (grokfield): New argument.
3714         * c-decl.c (grokfield): Handle new location argument.
3715         * c-parser.c (c_parser_struct_declaration): Pass location to
3716         grokfield.
3717
3718 2008-08-21  Richard Guenther  <rguenther@suse.de>
3719
3720         * tree-ssa-ccp.c (ccp_fold): Fold VIEW_CONVERT_EXPRs of constants.
3721
3722 2008-08-21  Jan Hubicka  <jh@suse.cz>
3723
3724         * cgraph.c (first_cgraph_function_insertion_hook): New variable.
3725         (cgraph_add_function_insertion_hook,
3726         cgraph_remove_function_insertion_hook,
3727         cgraph_call_function_insertion_hooks): New functions.
3728         * cgraph.h (cgraph_add_function_insertion_hook,
3729         cgraph_remove_function_insertion_hook,
3730         cgraph_call_function_insertion_hooks): Declare.
3731         * ipa-reference.c (function_insertion_hook_holder): New variable.
3732         (check_operand, look_for_address_of): When checking late, do not care
3733         about module bitmaps.
3734         (add_new_function): New function.
3735         (generate_summary): Register hooks; zero module bitmaps.
3736         (propagate): Unregister hooks.
3737         * ipa-pure-const.c (function_insertion_hook_holder): New variable.
3738         (add_new_function): New function.
3739         (generate_summary): Register hook.
3740         (propagate): Remove hook.
3741
3742         * ipa-cp.c (ipcp_need_redirect_p): Fix to not be constant 0.
3743
3744         * tree-pass.h (pass_ipa_cp): Make ipa_opt_pass.
3745         * ipa-cp.c (ipcp_update_cloned_node): New function.
3746         (build_const_val): Handle functions correctly; bring type logic
3747         into sync with tree-inline.c
3748         (ipcp_init_stage):  Take care of computing stuff needed by
3749         indirect inlining; update clones.
3750         (ipcp_generate_summary): Break out of ipcp_driver.
3751         (ipcp_driver): Do only execution and transformation.
3752         (pass_ipa_cp): Make IPA_PASS.
3753         * tree-ssa-ccp.c (fold_stmt_r): Check type before trying to fold
3754         offset to address.
3755         * ipa-inline.c (inline_indirect_intraprocedural_analysis): When doing
3756         ipcp, some info is already available.
3757         * ipa-prop.c (ipa_count_arguments): Grow edge lists as needed.
3758         * tree-inline.c (remap_ssa_name): Unshare expression.
3759
3760 2008-08-21  Richard Guenther  <rguenther@suse.de>
3761
3762         * tree-ssa-pre.c (insert_into_preds_of_block): Before inserting
3763         a PHI ask VN if it is already available.
3764         * tree-ssa-sccvn.h (vn_phi_lookup): Declare.
3765         * tree-ssa-sccvn.c (vn_phi_lookup): Export.
3766
3767 2008-08-21  Richard Guenther  <rguenther@suse.de>
3768
3769         PR middle-end/36817
3770         * tree-chrec.c (chrec_apply): Always call chrec_fold_plus which
3771         makes sure to produce a result of the correct type.
3772
3773 2008-08-21  Jan Hubicka  <jh@suse.cz>
3774         Backport from LTO branch:
3775
3776         2008-05-05  Kenneth Zadeck <zadeck@naturalbridge.com>
3777                     Jan Hubicka  <jh@suse.cz>
3778
3779         * ipa-pure-const.c
3780         (init_state, finish_state, set_function_state, generate_summary):
3781         New functions.
3782         (scan_stmt): Renamed from scan_function.  Changed to keep state in
3783         local static vars rather than cgraph aux field.
3784         (propagate): Renamed from static_execute. Changed to keep state in
3785         local static vars rather than cgraph aux field.
3786         (pass_ipa_pure_const): Changed from SIMPLE_IPA_PASS to IPA_PASS.
3787         * tree-pass.h (pass_ipa_pure_const): Turn into IPA_PASS.
3788
3789         2008-07-15  Kenneth Zadeck <zadeck@naturalbridge.com>
3790
3791         * tree-pass.h (pass_ipa_reference): Make into ipa_opt_pass.
3792         * ipa-reference.c (init_function_info, generate_summary,
3793         propagate): New functions.
3794         (analyze_function):  Call init_function_info.
3795         (static_execute): Stripped into generate_summary and propagate.
3796         (pass_ipa_reference): Made into ipa_opt_pass.
3797
3798 2008-08-21  Richard Guenther  <rguenther@suse.de>
3799
3800         PR tree-optimization/37181
3801         * tree-vrp.c (extract_range_from_binary_expr): Check for NULL
3802         folding result.
3803         (extract_range_from_unary_expr): Likewise.
3804
3805 2008-08-21  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
3806
3807         * diagnostic.c (pedwarn_at): Rename as pedwarn.
3808         (pedwarn): Delete.
3809         * toplev.h (pedwarn_at): Likewise.
3810         * builtins.c: Update all calls to pedwarn.
3811         * c-lex.c: Likewise.
3812         * toplev.c: Likewise.
3813         * c-tree.h: Likewise.
3814         * c-decl.c: Likewise.
3815         * c-errors.c: Likewise.
3816         * c-typeck.c: Likewise.
3817         * c-common.c: Likewise.
3818         * c-parser.c: Likewise.
3819
3820 2008-08-20  Joseph Myers  <joseph@codesourcery.com>
3821
3822         PR target/31070
3823         * config/sparc/sparc.c (function_arg_slotno): Handle structure
3824         with MODE_VECTOR_INT mode.
3825
3826 2008-08-21  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
3827
3828         PR middle-end/179
3829         * tree-ssa.c (warn_uninit): Do not warn for variables that can be
3830         initialized outside the current module.
3831         (warn_uninitialized_var): Ignore left-hand side when walking the
3832         trees. Ignore address expressions. Examine VUSE operands in gimple
3833         statements with a variable declaration on the right-hand side.
3834
3835 2008-08-20  Richard Sandiford  <rdsandiford@googlemail.com>
3836
3837         PR bootstrap/37155
3838         * rtlanal.c (subreg_offset_representable_p): Revert last change.
3839
3840 2008-08-20  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
3841
3842         PR 35701
3843         * c-common.c (conversion_warning): Do not warn if applying bit-and
3844         operator to unsigned constant that fits in the target type.
3845
3846 2008-08-20  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
3847
3848         PR c++/35602
3849         * c-common.c (conversion_warning): Do not warn for artificial
3850         expressions.
3851
3852 2008-08-20  Richard Guenther  <rguenther@suse.de>
3853
3854         * tree-vrp.c (op_with_constant_singleton_value_range): New function.
3855         (extract_range_from_binary_expr): Fall back to constant propagation.
3856         (extract_range_from_unary_expr): Likewise.
3857
3858 2008-08-20  Richard Guenther  <rguenther@suse.de>
3859
3860         * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Do not mess
3861         with TREE_THIS_VOLATILE on shared nodes.
3862         (fold_stmt_r): Likewise.
3863
3864 2008-08-20  Jakub Jelinek  <jakub@redhat.com>
3865
3866         PR c/37171
3867         * c-parser.c (c_parser_attributes): For keywords use canonical
3868         spelling for attr_name.
3869
3870 2008-08-20  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
3871
3872         * value-prof.c (check_counter): Revert wrong call to error.
3873
3874 2008-08-20  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
3875
3876         * profile.c: Update calls to inform.
3877         * value-prof.c: Update calls to inform.
3878
3879 2008-08-20  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
3880
3881         * diagnostic.c (inform): Add an explicit location_t parameter.
3882         * toplev.h (inform): Update declaration.
3883         * builtins.c: Update all calls to inform.
3884         * c-common.c: Likewise.
3885         * c-decl.c: Likewise.
3886         * c-opts.c: Likewise.
3887         * c-pch.c: Likewise.
3888         * c-pragma.c: Likewise.
3889         * c-typeck.c: Likewise.
3890         * coverage.c: Likewise.
3891         * opts.c: Likewise.
3892         * toplev.c: Likewise.
3893         * tree-cfg.c: Likewise.
3894         * tree-ssa.c: Likewise.
3895
3896 2008-08-20  H.J. Lu  <hongjiu.lu@intel.com>
3897
3898         PR target/37169
3899         * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): In
3900         V2DI mode, for SSE4.1, use movq instead of vector set if the
3901         second element is zero and inter-unit moves are OK.
3902
3903 2008-08-20  Richard Guenther  <rguenther@suse.de>
3904
3905         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): More
3906         properly handle conversion/copy chains after tuplification.
3907
3908 2008-08-20  Richard Guenther  <rguenther@suse.de>
3909
3910         * passes.c (init_optimization_passes): Move the second
3911         forwprop pass before alias computation.  Remove the second
3912         DCE pass.  Remove the first dominator and phi copy/const
3913         prop passes.
3914
3915 2008-08-20  Nick Clifton  <nickc@redhat.com>
3916
3917         * configure.ac (HAVE_GAS_CFI_DIRECTIVE): Always test for assembler
3918         support of this feature.  Do not assume that a sufficiently new
3919         assembler will support the feature regardless of the target type.
3920         (HAVE_GAS_CFI_PERSONALITY_DIRECTIVE): Likewise.
3921         * configure: Regenerate.
3922
3923 2008-08-20  Richard Guenther  <rguenther@suse.de>
3924
3925         * tree-vrp.c (found_in_subgraph): Remove.
3926         (live): New global static.
3927         (live_on_edge): New function.
3928         (blocks_visited): Remove.
3929         (register_edge_assert_for_2): Use live_on_edge.
3930         (find_conditional_asserts): Remove code dealing with
3931         found_in_subgraph.  Do not walk the CFG.
3932         (find_switch_asserts): Likewise.
3933         (find_assert_locations_1): Renamed from find_assert_locations.
3934         Move finding assert locations for conditional and switch
3935         statements first.  Update live bitmap.  Do not walk the CFG.
3936         (find_assert_locations): New function.
3937         (insert_range_assertions): Remove entry of CFG walk.
3938         Adjust call to find_assert_locations.
3939         * tree-ssa-pre.c (do_regular_insertion): Ignore critical edges
3940         that only can appear because of fake exit edges but assert we
3941         never try to insert on those.
3942         (fini_pre): Do not remove fake exit edges here...
3943         (execute_pre): ...but here, before committing edge inserts.
3944
3945 2008-08-19  Richard Guenther  <rguenther@suse.de>
3946
3947         * passes.c (init_optimization_passes): Exchange store-ccp
3948         with a ccp pass.
3949
3950 2008-08-19  Rafael Espíndola  <espindola@google.com>
3951
3952         * varasm.c (weak_decls): Move earlier in the file.
3953         (assemble_external): Add weak decls to the weak_decls list.
3954         (declare_weak): Don't add decls to the weak_decls list.
3955
3956 2008-08-19  H.J. Lu  <hongjiu.lu@intel.com>
3957
3958         PR target/37157
3959         * config/i386/sse.md (sse2_punpckhqdq, sse2_punpcklqdq): Moved
3960         before (sse2_shufpd_<mode>).
3961
3962 2008-08-19  Jakub Jelinek  <jakub@redhat.com>
3963
3964         PR debug/37156
3965         * pretty-print.c (pp_base_format): Deal with recursive BLOCK trees.
3966         * tree.c (block_nonartificial_location): Likewise.
3967
3968 2008-08-19  Richard Guenther  <rguenther@suse.de>
3969
3970         PR tree-optimization/35972
3971         PR tree-optimization/23094
3972         * tree-ssa-sccvn.h (vn_reference_lookup_pieces): Add maywalk
3973         parameter.
3974         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Properly
3975         handle MISALIGNED_INDIRECT_REF.
3976         (get_ref_from_reference_ops): New helper.
3977         (vn_reference_lookup_pieces): Walk the use-def chain using the
3978         alias-oracle if requested.
3979         * tree-ssa-pre.c (phi_translate_1): Do reference lookup with
3980         walking the use-def chain.
3981         (compute_avail): But not here.
3982         (create_component_ref_by_pieces_1): Properly handle
3983         MISALIGNED_INDIRECT_REF.
3984         (do_regular_insertion): Handle fully redundant
3985         expressions after PHI-translation also for SSA_NAME values, not
3986         only constants.  Correctly use edoubleprime for that.
3987
3988 2008-08-19  Ira Rosen  <irar@il.ibm.com>
3989
3990         * tree-vectorizer.c (supportable_widening_operation): Support
3991         multi-step conversion, return the number of steps in such conversion
3992         and the required intermediate types.
3993         (supportable_narrowing_operation): Likewise.
3994         * tree-vectorizer.h (vect_pow2): New function.
3995         (supportable_widening_operation): Change argument types.
3996         (supportable_narrowing_operation): Likewise.
3997         (vectorizable_type_promotion): Add an argument.
3998         (vectorizable_type_demotion): Likewise.
3999         * tree-vect-analyze.c (vect_analyze_operations): Call
4000         vectorizable_type_promotion and vectorizable_type_demotion with
4001         additional argument.
4002         (vect_get_and_check_slp_defs): Detect patterns.
4003         (vect_build_slp_tree): Add an argument, don't fail in case of multiple
4004         types.
4005         (vect_analyze_slp_instance): Don't fail in case of multiple types. Call
4006         vect_build_slp_tree with correct arguments. Calculate unrolling factor
4007         according to the smallest type in the loop.
4008         (vect_detect_hybrid_slp_stmts): Include statements from patterns.
4009         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Call
4010         supportable_widening_operation with correct arguments.
4011         * tree-vect-transform.c (vect_get_slp_defs): Allocate output vector
4012         operands lists according to the number of vector statements in left
4013         or right node, if exists.
4014         (vect_gen_widened_results_half): Remove unused argument.
4015         (vectorizable_conversion): Call supportable_widening_operation,
4016         supportable_narrowing_operation, and vect_gen_widened_results_half
4017         with correct arguments.
4018         (vectorizable_assignment): Change documentation, support multiple
4019         types in SLP.
4020         (vectorizable_operation): Likewise.
4021         (vect_get_loop_based_defs): New function.
4022         (vect_create_vectorized_demotion_stmts): Likewise.
4023         (vectorizable_type_demotion): Support loop-aware SLP and general
4024         multi-step conversion. Call vect_get_loop_based_defs and
4025         vect_create_vectorized_demotion_stmts for transformation.
4026         (vect_create_vectorized_promotion_stmts): New function.
4027         (vectorizable_type_promotion): Support loop-aware SLP and general
4028         multi-step conversion. Call vect_create_vectorized_promotion_stmts
4029         for transformation.
4030         (vectorizable_store): Change documentation, support multiple
4031         types in SLP.
4032         (vectorizable_load): Likewise.
4033         (vect_transform_stmt): Pass SLP_NODE to
4034         vectorizable_type_promotion and vectorizable_type_demotion.
4035         (vect_schedule_slp_instance): Move here the calculation of number
4036         of vectorized statements for each node from...
4037         (vect_schedule_slp): ... here.
4038         (vect_transform_loop): Call vect_schedule_slp without the last
4039         argument.
4040
4041 2008-08-19  Dorit Nuzman  <dorit@il.ibm.com>
4042
4043         PR bootstrap/37152
4044         * tree-vect-transform.c (vect_create_epilog_for_reduction): Change =
4045         to == in assert statement.
4046         (vectorizable_reduction): Fix typo.
4047
4048 2008-08-18  H.J. Lu  <hongjiu.lu@intel.com>
4049
4050         PR bootstrap/37153
4051         * value-prof.c (check_counter): Dereference pointer to overall
4052         count when printing it.
4053
4054 2008-08-18  H.J. Lu  <hongjiu.lu@intel.com>
4055
4056         * profile.h: Really add it.
4057
4058 2008-08-18  H.J. Lu  <hongjiu.lu@intel.com>
4059
4060         * mcf.c: Really add it.
4061
4062 2008-08-18  Paul Yuan  <yingbo.com@gmail.com>
4063             Vinodha Ramasamy  <vinodha@google.com>
4064
4065         * cgraph.c (cgraph_edge): Handle inconsistent counts when setting
4066         count_scale.
4067         * value-prof.c (check_counter): Fix the counter if
4068         flag_profile_correction is true.
4069         (tree_divmod_fixed_value_transform, tree_mod_pow2_value_transform,
4070         tree_mod_subtract_transform):
4071         Follow check_counter parameter change.
4072         * common.opt (fprofile-correction): New option.
4073         * mcf.c: New file.
4074         * profile.h: Likewise.
4075         * profile.c (edge_info, EDGE_INFO): Moved to new file profile.h.
4076         (sum_edge_counts, is_edge_inconsistent, correct_negative_edge_counts,
4077         is_inconsistent, set_bb_counts, read_profile_edge_counts): New
4078         functions.
4079         (compute_branch_probabilities): Refactored. Invokes mcf_smooth_cfg if
4080         flag_profile_correction is set.
4081
4082 2008-08-18  Richard Sandiford  <rdsandiford@googlemail.com>
4083
4084         * rtlanal.c (subreg_offset_representable_p): Check HARD_REGNO_MODE_OK.
4085
4086 2008-08-18  Tomas Bily  <tbily@suse.cz>
4087
4088         * tree.h (IS_CONVERT_EXPR_CODE_P): Renamed to CONVERT_EXPR_CODE_P.
4089         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Use
4090         CONVERT_EXPR_P.
4091         * tree-data-ref.c (split_constant_offset_1): Likewise.
4092         * tree-inline.c (estimate_operator_cost): Use CASE_CONVERT.
4093         * tree-sra.c (sra_walk_expr): Likewise.
4094         * matrix-reorg.c (ssa_accessed_in_assign_rhs): Likewise.
4095         * tree-ssa-loop-niter.c (expand_simple_operations): Likewise.
4096         * gimple.h (gimple_assign_cast_p): Use CONVERT_EXPR_CODE_P.
4097         * tree-ssa-structalias.c (find_func_aliases, find_func_aliases):
4098         Likewise.
4099         * gimple.c (gimple_assign_unary_nop_p): Likewise.
4100         * tree-vect-transform.c (vectorizable_type_demotion)
4101         (vectorizable_type_promotion): Likewise.
4102         * tree-inline.c (expand_call_inline):
4103         * tree-ssa-forwprop.c (get_prop_source_stmt, can_propagate_from)
4104         (forward_propagate_addr_expr_1, forward_propagate_comparison)
4105         (tree_ssa_forward_propagate_single_use_vars): Likewise.
4106         * expr.c (expand_expr_real_1): Likewise.
4107         * tree-ssa-dom.c (hashable_expr_equal_p, iterative_hash_hashable_expr)
4108         (gimple_assign_unary_useless_conversion_p): Likewise.
4109         * tree-stdarg.c (execute_optimize_stdarg): Likewise.
4110         * tree-ssa-ccp.c (ccp_fold, fold_gimple_assign): Likewise.
4111         * fold-const.c (fold_unary): Likewise.
4112         * tree.h (CONVERT_EXPR_P): Likewise.
4113         * tree.c (simple_cst_equal, iterative_hash_expr): Likewise.
4114         * tree-ssa-loop-im.c (rewrite_bittest): Likewise.
4115         * tree-vrp.c:
4116         (register_edge_assert_for_2, extract_range_from_unary_expr)
4117         (register_edge_assert_for_1): Likewise.
4118
4119 2008-08-18  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
4120
4121         * real.h (dconst_e, dconst_third, dconst_sqrt2, dconst_e_ptr,
4122         dconst_third_ptr, dconst_sqrt2_ptr): Declare.
4123         (enum real_value_const): Delete.
4124         (get_real_const): Delete.
4125         * real.c (get_real_const): Delete.
4126         (dconst_e_ptr): Define.
4127         (dconst_third_ptr): Define.
4128         (dconst_sqrt2_ptr): Define.
4129         * builtins.c: Update all callers.
4130
4131 2008-08-18  Richard Guenther  <rguenther@suse.de>
4132
4133         * tree-ssa-reassoc.c (reassociate_bb): Properly reset the
4134         statement iterator after statement removal.
4135
4136 2008-08-18  Andreas Tobler  <a.tobler@schweiz.org>
4137
4138         * config/rs6000/driver-rs6000.c (detect_caches_freebsd): New function.
4139         (detect_processor_freebsd): Likewise.
4140         (host_detect_local_cpu): Call newly added functions for FreeBSD.
4141
4142 2008-08-18  Richard Guenther  <rguenther@suse.de>
4143
4144         * tree-cfg.c (verify_types_in_gimple_assign): Verify copies
4145         and loads have the correct types.
4146
4147 2008-08-18  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
4148
4149         PR cpp/7263
4150         * c-opts.c (cpp_opts): Remove static.
4151         * c-parser.c (cpp_opts): Declare it extern.
4152         (disable_extension_diagnostics): Handle cpp options.
4153         (enable_extension_diagnostics): Likewise.
4154
4155 2008-08-18  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
4156
4157         * diagnostics.c (permerror_at): Rename as permerror.
4158         (permerror): Delete.
4159         * toplev.h: Likewise.
4160
4161 2008-08-18  Richard Guenther  <rguenther@suse.de>
4162
4163         * passes.c (init_optimization_passes): Remove cleanup_cfg1,
4164         sdse1 and addressables2 passes.  Replace dce1 with cddce1.
4165         Move call_cdce before build_alias.  Move copyrename2,
4166         cunrolli and ccp2 beafore build_alias.  Re-add addressable2
4167         right after final inlining.
4168         * tree-cfg.c (build_gimple_cfg): Do not dump function here.
4169         (pass_build_cfg): But instead via TODO_dump_func.
4170
4171 2008-08-18  Richard Guenther  <rguenther@suse.de>
4172
4173         * tree-sra.c (generate_element_init_1): Deal with NULL constructor
4174         element index.
4175         (scalarize_init): If we failed to generate some initializers
4176         do not generate zeros for not instantiated members.  Instead
4177         rely on the copy out.
4178         * tree-ssa-operands.c (get_addr_dereference_operands): Warn
4179         about missing flow-sensitive alias info only if we have
4180         aliases computed.
4181
4182 2008-08-17  Nick Clifton  <nickc@redhat.com>
4183
4184         * doc/extend.texi (Function Attributes): Fix typo in description
4185         if hot function attribute.
4186
4187 2008-08-17  Daniel Jacobowitz  <dan@codesourcery.com>
4188             Richard Sandiford  <rdsandiford@googlemail.com>
4189
4190         * doc/install.texi (--with-mips-plt): Document.
4191         * doc/invoke.texi (-mplt, -mno-plt): Document.
4192         * config.gcc (mips*-*-*): Add mips-plt to supported_defaults
4193         and handle ${with_mips_plt}.
4194         * config/mips/mips.opt (mplt): New option.
4195         * config/mips/mips.h (TARGET_ABICALLS_PIC0): New macro.
4196         (TARGET_ABICALLS_PIC2): Likewise.
4197         (TARGET_GPWORD): Return false for TARGET_ABSOLUTE_ABICALLS.
4198         (OPTION_DEFAULT_SPECS): Add a mips-plt entry.
4199         (ASM_SPEC): Use !mabi=* instead of !mabi*.
4200         (MIPS_CALL): Use TARGET_ABICALLS_PIC2 instead of TARGET_ABICALLS
4201         to decide whether to output ".option picX" directives.
4202         * config/mips/linux.h (SUBTARGET_ASM_SPEC): Remove -mabi=64 handling.
4203         Pass -call_nonpic rather than -KPIC for -mplt.
4204         (BASE_DRIVER_SELF_SPECS): Remove -mplt if -mno-shared is not present
4205         on the command line.  Also remove it when -mabi=64 is used without
4206         -msym32.
4207         * config/mips/linux64.h (SUBTARGET_ASM_SPEC): Delete.
4208         * config/mips/mips.c (mips_use_pic_fn_addr_reg_p): Handle
4209         TARGET_ABICALLS_PIC0.
4210         (mips_classify_symbol): Use TARGET_ABICALLS_PIC2 instead of
4211         TARGET_ABICALLS.
4212         (mips16_build_function_stub): Only output ".option pic" directives
4213         and PIC stubs if TARGET_ABICALLS_PIC2.  Call through $25 instead of $1.
4214         (mips16_build_call_stub): Fix comment and remove redundant
4215         ".set at"/"set .noat" directives.
4216         (mips_function_rodata_section): Use the default behaviour for
4217         TARGET_ABSOLUTE_ABICALLS.
4218         (mips_file_start): Emit ".option pic0" for TARGET_ABICALLS_PIC0.
4219         (mips_global_pointer): Handle TARGET_ABICALLS_PIC0.
4220         (mips_restore_gp): Do nothing if the current function doesn't use
4221         a global pointer.
4222         (mips_expand_prologue): Only save $gp if the current function uses it.
4223         Use a normal move for TARGET_ABICALLS_PIC0.
4224         (mips_override_options): Only set flag_pic if TARGET_ABICALLS_PIC2.
4225
4226 2008-08-17  Richard Sandiford  <rdsandiford@googlemail.com>
4227
4228         * config/mips/mips.c (mips_save_reg_p): Don't short-circuit rest
4229         of function when handling GLOBAL_POINTER_REGNUM.
4230
4231 2008-08-16  Eric Botcazou  <ebotcazou@adacore.com>
4232
4233         PR ada/20548
4234         * common.opt (-fstack-check): Do not declare the variable here.
4235         (-fstack-check=): New option variant.
4236         * doc/invoke.texi (Code Gen Options): Document it.
4237         * expr.h (STACK_OLD_CHECK_PROTECT): New macro.
4238         (STACK_CHECK_PROTECT): Bump to 3 pages if DWARF-2 EH is used.
4239         (STACK_CHECK_STATIC_BUILTIN): New macro.
4240         * doc/tm.texi (Stack Checking): Document STACK_CHECK_STATIC_BUILTIN.
4241         * opts.c: Include expr.h.
4242         (common_handle_option) <OPT_fold_stack_check_>: New case.
4243         <OPT_fstack_check>: Likewise.
4244         * calls.c (initialize_argument_information): Use TYPE_SIZE_UNIT
4245         consistently in the test for variable-sized types.  Adjust for
4246         new behaviour of flag_stack_check.
4247         * explow.c: Include except.h.
4248         (allocate_dynamic_stack_space): Do not take into account
4249         STACK_CHECK_MAX_FRAME_SIZE for static builtin stack checking.
4250         * function.c (gimplify_parameters): Use DECL_SIZE_UNIT in the test
4251         for variable-sized parameters.  Treat all parameters whose size is
4252         greater than STACK_CHECK_MAX_VAR_SIZE as variable-sized if generic
4253         stack checking is enabled.
4254         * gimplify.c (gimplify_decl_expr): Treat non-static objects whose
4255         size is greater than STACK_CHECK_MAX_VAR_SIZE as variable-sized
4256         if generic stack checking is enabled.
4257         (expand_function_end): Adjust for new behaviour of flag_stack_check.
4258         * reload1.c (reload): Likewise.
4259         * stmt.c (expand_decl): Assert that all automatic variables have
4260         fixed size at this point and remove dead code.
4261         * flags.h (stack_check_type): New enumeration type.
4262         (flag_stack_check): Declare.
4263         * toplev.c (flag_stack_check): New global variable.
4264         * Makefile.in (opts.o): Add dependency on EXPR_H.
4265         (explow.o): Add dependency on except.h.
4266
4267 2008-08-16  Andy Hutchinson  <hutchinsonandy@aim.com>
4268
4269         * config/avr/avr.c (avr_override_options): Reduce value of
4270         PARAM_INLINE_CALL_COST.
4271
4272 2008-08-15  Eric Botcazou  <ebotcazou@adacore.com>
4273
4274         * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: When converting
4275         to BLKmode, try to fetch an inner memory reference.  Use 'mode' in
4276         lieu of TYPE_MODE (type) throughout.
4277
4278 2008-08-15  Joseph Myers  <joseph@codesourcery.com>
4279
4280         * config/arm/arm.c (add_minipool_backward_ref): Check for
4281         8-byte-aligned entries in second case of forcing insertion after a
4282         particular entry.  Change third case to avoid inserting
4283         non-8-byte-aligned entries before 8-byte-aligned ones.
4284
4285 2008-08-15  Richard Guenther  <rguenther@suse.de>
4286
4287         * tree-ssa-ccp.c (maybe_fold_offset_to_reference): Do not
4288         strip components for unknown size accesses.
4289
4290 2008-08-15  Wolfgang Gellerich  <gellerich@de.ibm.com>
4291
4292         * config/s390/2097.md New file.
4293         * config/s390/s390.md ("z10prop" attribute): Define none,
4294         z10_super, z10_super_E1, z10_super_A1, z10_super_c,
4295         z10_super_c_E1, z10_fwd, z10_fwd_A1, z10_fwd_A3, z10_fwd_E1,
4296         z10_rec, z10_fr, z10_fr_A3, z10_fr_E1, z10_c, and z10_cobra as
4297         possible values and apply them to insns as appropriate.
4298         ("type" attribute): Removed itof and added ftrunctf,ftruncdf,
4299         ftruncsd, ftruncdd, itoftf, itofdf, itofsf, itofdd, itoftd,
4300         fdivdd, fdivtd, floaddd, floadsd, fmuldd, fmultd, fsimpdd,
4301         fsimpsd, fsimptd, fstoredd, fstoresd, ftoidfp as possible
4302         values.
4303         ("bfp" mode attribute): Removed.  Every occurence replaced
4304         with <mode>.
4305         * config/s390/s390.c (struct "z10_cost"): Updated entries.
4306         * config/s390/2084.md (insn_reservation "x_itof"): Updated
4307           type attribute.
4308
4309 2008-08-14  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
4310
4311         PR c/28152
4312         * c-parser.c (c_lex_one_token): Do not store the canonical spelling
4313         for keywords.
4314
4315 2008-08-14  Dorit Nuzman  <dorit@il.ibm.com>
4316
4317         * tree-vect-transform.c (vect_create_epilog_for_reduction): Takes an
4318         additional argument. Support reduction when duplication is needed due
4319         to data-types of different sizes in the loop.
4320         (get_initial_def_for_induction): Fix printout.
4321         (vect_get_vec_def_for_stmt_copy): Support case where the
4322         vec_stmt_for_operand is a phi node.
4323         (vectorizable_reduction): Support reduction when duplication is needed
4324         due to data-types of different sizes in the loop.
4325         (vectorizable_call): Remove restriction to not vectorize in case we
4326         have data-types of different sizes in the loop.
4327         (vectorizable_conversion): Likewise.
4328         (vectorizable_operation): Likewise.
4329         (vectorizable_type_demotion): Likewise.
4330         (vectorizable_type_promotion): Likewise.
4331         (vectorizable_induction): Add restriction to not vectorize in case
4332         we have data-types of different sizes in the loop.
4333
4334 2008-08-14  Christophe Saout  <christophe@saout.de>
4335             Uros Bizjak  <ubizjak@gmail.com>
4336
4337         PR target/37101
4338         * config/i386/sse.md (vec_concatv2di): Remove movlps alternative.
4339         (*vec_concatv2di_rex64_sse4_1): Ditto.
4340         (*vec_concatv2di_rex64_sse): Ditto.
4341
4342 2008-08-14  Jakub Jelinek  <jakub@redhat.com>
4343
4344         PR middle-end/37103
4345         * fold-const.c (fold_widened_comparison): Do not allow
4346         sign changes that change the result even if shorter type
4347         is wider than arg1_unw's type.
4348
4349 2008-08-13  Kazu Hirata  <kazu@codesourcery.com>
4350
4351         * gcc.dg/arm-g2.c, gcc.dg/arm-mmx-1.c, gcc.dg/arm-scd42-2.c:
4352         Skip if the multilib testing specifies -march that does not
4353         agree with the one specified in the testcase.
4354
4355 2008-08-13  Joseph Myers  <joseph@codesourcery.com>
4356
4357         * config/sparc/sparc.c (emit_soft_tfmode_cvt): Explicitly sign or
4358         zero extend SImode values being converted to TFmode before passing
4359         to libcalls.
4360
4361 2008-08-13  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4362
4363         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Predefine
4364         __PPU__ when targeting the Cell/B.E. PPU processor.
4365
4366 2008-08-13  Eric Botcazou  <ebotcazou@adacore.com>
4367
4368         * gimple.h (gimple_call_set_chain): Accept SSA variables.
4369         * tree-ssa-pre.c (create_component_ref_by_pieces_1) <CALL_EXPR>:
4370         Rematerialize the static chain, if any.
4371         * tree-ssa-sccvn.c (copy_reference_ops_from_call): Also copy the
4372         static chain.
4373
4374 2008-08-13  H.J. Lu  <hongjiu.lu@intel.com>
4375
4376         * dwarf2out.c (dwarf_stack_op_name): Remove prototype.
4377         (new_loc_descr): Likewise.
4378         (add_loc_descr): Likewise.
4379         (size_of_loc_descr): Likewise.
4380         (size_of_locs): Likewise.
4381         (output_loc_operands): Likewise.
4382         (output_loc_sequence): Likewise.
4383         (new_reg_loc_descr): New.
4384         (build_cfa_loc): Use it.
4385         (build_cfa_aligned_loc): Likewise.
4386         (one_reg_loc_descriptor): Likewise.
4387         (based_loc_descr): Likewise.
4388
4389 2008-08-13  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
4390
4391         PR 30551
4392         * doc/invoke.texi (Wmain): Update.
4393         * c-decl.c (start_decl): warn_main is only 0 or 1.
4394         (start_function): Likewise. Fix formatting.
4395         (finish_function): Delete redundant warning.
4396         * c.opt (Wmain): Add Var(warn_main) and Init(-1).
4397         * c-opts (c_common_handle_option): -Wall only has effect if
4398         warn_main is uninitialized. OPT_Wmain is automatically
4399         handled. -pedantic also enables Wmain.
4400         (c_common_post_options): Handle all logic for Wmain here.
4401         * c-common.c (warn_main): Delete.
4402         (check_main_parameter_types): Make pedwarns conditional on
4403         OPT_Wmain.
4404         * c-common.h (warn_main): Delete.
4405
4406 2008-08-13  H.J. Lu  <hongjiu.lu@intel.com>
4407
4408         PR middle-end/36701
4409         * expr.c (emit_group_store): Allocate stack temp with the
4410         largest alignment when copying from register to stack.
4411
4412 2008-08-13  Richard Guenther  <rguenther@suse.de>
4413
4414         * tree.h (maybe_fold_offset_to_address): Declare.
4415         * tree-ssa-ccp.c (surely_varying_stmt_p): Fix typo in last commit.
4416         (ccp_fold): Handle pointer conversions the same as fold_stmt.
4417         Likewise for POINTER_PLUS_EXPR.
4418         (maybe_fold_offset_to_reference): Enable disabled code.
4419         (maybe_fold_offset_to_address): New function.
4420         (fold_stmt_r): Use it.
4421         (fold_gimple_assign): Likewise.
4422         * gimplify.c (gimplify_conversion): Use maybe_fold_offset_to_address.
4423         (gimplify_expr): Likewise.
4424
4425 2008-08-13  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
4426
4427         * toplev.h (pedwarn_at): Fix declaration.
4428
4429 2008-08-13  Joseph Myers  <joseph@codesourcery.com>
4430
4431         * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
4432         LINK_SPEC): Use %R in -Y P argument.
4433
4434 2008-08-13  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
4435
4436         PR c/15236
4437         * diagnostic.c (pedwarn_at): New.
4438         * toplev.h (pedwarn_at): Declare.
4439         * c-tree.h (build_enumerator): Update declaration.
4440         * c-decl.c (finish_enum): Update comment.
4441         (build_enumerator): Take a location parameter. Give a pedwarn but do
4442         not perform any conversion.
4443         * c-parser.c (c_parser_enum_specifier): Set correct location for
4444         enumerator.
4445
4446 2008-08-13  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
4447
4448         PR 35635
4449         * c-common.c (conversion_warning): Use a switch. Ignore boolean
4450         expressions except for conversions to signed:1 bitfields. Handle
4451         COND_EXPR with constant operands.
4452
4453 2008-08-13  Richard Guenther  <rguenther@suse.de>
4454
4455         PR tree-optimization/15255
4456         * tree-ssa-reassoc.c (linearize_expr_tree): Declare.
4457         (struct oecount_s): New struct and VEC types.
4458         (cvec): New global.
4459         (oecount_hash): New function.
4460         (oecount_eq): Likewise.
4461         (oecount_cmp): Likewise.
4462         (zero_one_operation): New function.
4463         (build_and_add_sum): Likewise.
4464         (undistribute_ops_list): Perform un-distribution of multiplication
4465         and division on the chain of summands.
4466         (should_break_up_subtract): Also break up subtracts for factors.
4467         (reassociate_bb): Delete dead visited statements.
4468         Call undistribute_ops_list.  Re-sort and optimize if it did something.
4469         * passes.c (init_optimization_passes): Move DSE before
4470         reassociation.
4471         * tree-ssa-loop-niter.c (stmt_dominates_stmt_p): Correctly handle
4472         PHI nodes.
4473
4474 2008-08-12  Janis Johnson  <janis187@us.ibm.com>
4475
4476         * doc/invoke.texi (-fipa-pta): Say the option is experimental.
4477
4478         * doc/invoke.texi: Revert unintended checkin.
4479
4480 2008-08-12  Nathan Froyd  <froydnj@codesourcery.com>
4481
4482         PR libgomp/26165
4483         * gcc.c (include_spec_function): Tweak call to find_a_file.
4484
4485 2008-08-12  Jakub Jelinek  <jakub@redhat.com>
4486
4487         PR middle-end/37014
4488         * expr.c (expand_expr_real_1): Handle TRUTH_ANDIF_EXPR
4489         and TRUTH_ORIF_EXPR.
4490         * dojump.c (do_jump): Likewise.
4491
4492         PR tree-optimization/37084
4493         * tree-inline.c (copy_bb): Call gimple_regimplify_operands
4494         if id->regimplify, don't assume stmt is a cast assignment.
4495
4496 2008-08-12  Anatoly Sokolov  <aesok@post.ru>
4497
4498         * final.c (final_scan_insn): Use app_enable/app_disable functions.
4499
4500 2008-08-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4501
4502         PR bootstrap/37097
4503         * builtins.c (do_mpfr_bessel_n): Fix copy-and-paste bug introduced
4504         by last change.
4505
4506 2008-08-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4507
4508         * defaults.h (TARGET_FLOAT_FORMAT): Remove.
4509         (UNKNOWN_FLOAT_FORMAT, IEEE_FLOAT_FORMAT, VAX_FLOAT_FORMAT): Remove.
4510
4511         * config/alpha/alpha.h (TARGET_FLOAT_FORMAT): Remove.
4512         * config/iq2000/iq2000.h (TARGET_FLOAT_FORMAT): Remove.
4513         * config/pdp11/pdp11.h (TARGET_FLOAT_FORMAT): Remove.
4514         * config/score/score.h (TARGET_FLOAT_FORMAT): Remove.
4515         * config/vax/vax.h (TARGET_FLOAT_FORMAT): Remove.
4516
4517         * doc/tm.texi (Storage Layout): Remove documentation for
4518         TARGET_FLOAT_FORMAT.
4519
4520         * simplify-rtx.c (simplify_binary_operation_1): Replace
4521         TARGET_FLOAT_FORMAT check by appropriate HONOR_... checks.
4522
4523 2008-08-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4524
4525         * real.h (struct real_format): New member has_sign_dependent_rounding.
4526         * real.c (ieee_single_format, mips_single_format, motorola_single_format,
4527         spu_single_format, ieee_double_format, mips_double_format,
4528         motorola_double_format, ieee_extended_motorola_format,
4529         ieee_extended_intel_96_format, ieee_extended_intel_128_format,
4530         ieee_extended_intel_96_round_53_format, ibm_extended_format,
4531         mips_extended_format, ieee_quad_format, mips_quad_format,
4532         vax_f_format, vax_d_format, vax_g_format): Initialize it.
4533         * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
4534
4535         * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES,
4536         MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): Remove.
4537         * config/spu/spu.h (MODE_HAS_NANS, MODE_HAS_INFINITIES,
4538         MODE_HAS_SIGN_DEPENDENT_ROUNDING): Remove.
4539         (ROUND_TOWARDS_ZERO): Likewise.
4540
4541         * real.h (REAL_MODE_FORMAT): Protect MODE against macro expansion.
4542         (FLOAT_MODE_FORMAT): New macro.
4543         (REAL_MODE_FORMAT_COMPOSITE_P): Remove, replace by ...
4544         (MODE_COMPOSITE_P): ... this new macro.
4545         (MODE_HAS_NANS, MODE_HAS_INFINITIES, MODE_HAS_SIGNED_ZEROS,
4546         MODE_HAS_SIGN_DEPENDENT_ROUNDING): New macros.
4547         * machmode.h (GET_MODE_INNER): Cast result to enum machine_mode.
4548
4549         * flags.h: Include "real.h".
4550
4551         * fold-const.c (const_binop): Use MODE_COMPOSITE_P instead of
4552         REAL_MODE_FORMAT_COMPOSITE_P.
4553         * simplify-rtx.c (simplify_const_binary_operation): Likewise.
4554
4555         * doc/tm.texi (Storage Layout): Remove documentation of
4556         MODE_HAS_NANS, MODE_HAS_INFINITIES, MODE_HAS_SIGNED_ZEROS,
4557         MODE_HAS_SIGN_DEPENDENT_ROUNDING.  Update documentation of
4558         ROUND_TOWARDS_ZERO and LARGEST_EXPONENT_IS_NORMAL to clarify
4559         they only apply to libgcc2.a.
4560
4561 2008-08-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4562
4563         * config/spu/float_disf.c: New file.
4564         * config/spu/float_unsdisf.c: New file.
4565         * config/spu/t-elf (LIB2FUNCS_STATIC_EXTRA): Add them.
4566         (LIB2FUNCS_EXCLUDE): Define.
4567
4568 2008-08-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4569             Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
4570
4571         * real.h (struct real_format): New member round_towards_zero.
4572         * real.c (round_for_format): Respect fmt->round_towards_zero.
4573         (ieee_single_format, mips_single_format, motorola_single_format,
4574         spu_single_format, ieee_double_format, mips_double_format,
4575         motorola_double_format, ieee_extended_motorola_format,
4576         ieee_extended_intel_96_format, ieee_extended_intel_128_format,
4577         ieee_extended_intel_96_round_53_format, ibm_extended_format,
4578         mips_extended_format, ieee_quad_format, mips_quad_format,
4579         vax_f_format, vax_d_format, vax_g_format): Initialize it.
4580         * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
4581
4582         * builtins.s (do_mpfr_arg1): Consider round_towards_zero member of
4583         real_format to choose rounding mode when calling MPFR functions.
4584         (do_mpfr_arg2, do_mpfr_arg3, do_mpfr_sincos): Likewise.
4585         (do_mpfr_bessel_n, do_mpfr_remquo, do_mpfr_lgamma_r): Likewise.
4586
4587         * real.h (real_to_decimal_for_mode): Add prototype.
4588         * real.c (real_to_decimal_for_mode): Renames old real_to_decimal.
4589         Respect target rounding mode when generating decimal representation.
4590         (real_to_decimal): New stub for backwards compatibility.
4591         * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Use
4592         real_to_decimal_for_mode instead of real_to_decimal.
4593
4594         * config/spu/spu.md ("floatdisf2", "floatunsdisf2"): New.
4595
4596 2008-08-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4597             Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
4598
4599         * real.c (spu_single_format): New variable.
4600         * real.h (spu_single_format): Declare.
4601
4602         * config/spu/spu.c (spu_override_options): Install SFmode format.
4603         (spu_split_immediate): Use integer mode to operate on pieces of
4604         floating-point values in all cases.
4605
4606         * config/spu/spu.md (UNSPEC_FLOAT_EXTEND, UNSPEC_FLOAT_TRUNCATE): New.
4607         ("extendsfdf2"): Use UNSPEC_FLOAT_EXTEND instead of FLOAT_EXTEND.
4608         ("truncdfsf2"): Use UNSPEC_FLOAT_TRUNCATE instead of FLOAT_TRUNCATE.
4609
4610 2008-08-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4611
4612         * config/spu/spu.c (spu_safe_dma): Respect TARGET_SAFE_DMA.
4613
4614 2008-08-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4615
4616         * config/spu/spu.h (DWARF_FRAME_RETURN_COLUMN): Define.
4617
4618 2008-08-12  Jakub Jelinek  <jakub@redhat.com>
4619
4620         PR c++/36688
4621         * gimplify.c (gimplify_modify_expr_rhs): Test TREE_READONLY
4622         on the VAR_DECL instead of TYPE_READONLY on its type.
4623
4624 2008-08-12  Ira Rosen  <irar@il.ibm.com>
4625
4626         * tree-vectorizer.c: Depend on langhooks.h.
4627         (supportable_widening_operation): Add two arguments. Support double
4628         type conversions.
4629         (supportable_narrowing_operation): Likewise.
4630         * tree-vectorizer.h (supportable_widening_operation): Add two
4631         arguments.
4632         (supportable_narrowing_operation): Likewise.
4633         * tree-vect-patterns.c (vect_recog_widen_mult_pattern) : Call
4634         supportable_widening_operation with correct arguments.
4635         * tree-vect-transform.c (vectorizable_conversion): Likewise.
4636         (vectorizable_type_demotion): Support double type conversions.
4637         (vectorizable_type_promotion): Likewise.
4638         * Makefile.in (tree-vectorizer.o): Depend on langhooks.h.
4639
4640 2008-08-11  Michael Matz  <matz@suse.de>
4641
4642         * i386/i386.c (override_options): Move initialisation from
4643         flag_schedule_insns_after_reload to here from ...
4644         (optimization_options): ... here.
4645
4646 2008-08-11  Jakub Jelinek  <jakub@redhat.com>
4647
4648         PR rtl-optimization/36998
4649         * dwarf2out.c (compute_barrier_args_size_1,
4650         compute_barrier_args_size): Temporarily remove assertions.
4651
4652 2008-08-10  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
4653
4654         PR middle-end/20644
4655         * tree-ssa.c (struct walk_data): Add new flag
4656         warn_possibly_uninitialized.
4657         (warn_uninitialized_var): Use it.
4658         (warn_uninitialized_vars): New.
4659         (execute_early_warn_uninitialized): Call it.
4660         (execute_late_warn_uninitialized): Likewise.
4661
4662 2008-08-09  Andrew Pinski  <andrew_pinski@playstation.sony.com>
4663
4664         PR middle-end/36238
4665         * reload1.c (gen_reload): Guard calls to get_secondary_mem
4666         for memory subregs.
4667
4668 2008-08-09  Jan Hubicka  <jh@suse.cz>
4669
4670         PR target/37055
4671         * optabs.c (maybe_emit_unop_insn): Remove produced code if
4672         expansion failed.
4673         (expand_fix): Be prepared for expansion to fail.
4674         (expand_sfix_optab): Remove instructions if expansion failed.
4675
4676 2008-08-09  Anatoly Sokolov  <aesok@post.ru>
4677
4678         * config/avr/avr.c (avr_mcu_types): Move the AT43USB320 device to
4679         avr31 architecture.
4680         * config/avr/avr.h (CRT_BINUTILS_SPECS): (Ditto.).
4681         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
4682
4683 2008-08-09  Richard Sandiford  <rdsandiford@googlemail.com>
4684
4685         * config.gcc (mips*-*-linux*, mips64*-*-linux*): Add
4686         mips/t-libgcc-mips16 to tmake_file.
4687         * config/mips/mips-protos.h (mips_call_type): New enum.
4688         (mips_pic_base_register, mips_got_load): Declare.
4689         (mips_restore_gp): Take an rtx argument.
4690         (mips_use_pic_fn_addr_reg_p): Declare.
4691         (mips_expand_call): Replace the sibcall_p argument with
4692         a mips_call_type argument.  Add a lazy_p parameter.
4693         (mips_split_call): Declare.
4694         * config/mips/mips.h (MIPS16_PIC_TEMP_REGNUM): New macro.
4695         (MIPS16_PIC_TEMP): Likewise.
4696         (reg_class): Delete M16_NA_REGS.
4697         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update accordingly.
4698         (SYMBOL_FLAG_BIND_NOW, SYMBOL_REF_BIND_NOW_P): New macros.
4699         (mips_split_hi_p): Declare.
4700         * config/mips/mips.c (mips_split_hi_p): New array.
4701         (mips_regno_to_class): Change M16_NA_REGS entries to M16_REGS.
4702         (mips_got_symbol_type_p): New function.
4703         (mips_global_symbol_p): Check SYMBOL_REF_EXTERNAL_P.
4704         (mips16_stub_function_p): New function.
4705         (mips16_local_function_p): Likewise.
4706         (mips_use_pic_fn_addr_reg_p): Likewise.
4707         (mips_cannot_force_const_mem): Return false for HIGHs.
4708         Extend CONST_INT and symbolic handling to MIPS16, using
4709         mips_symbol_insns to check that the base symbol type is a
4710         legitimate constant.  Reject GOT-based constants if
4711         TARGET_MIPS16_PCREL_LOADS.
4712         (mips_const_insns): Check targetm.cannot_force_const_mem when
4713         decomposing a symbolic base and a large offset.
4714         (mips_emit_call_insn): Add ORIG_ADDR and ADDR parameters.
4715         When calling a function that needs $25 from MIPS16 code,
4716         move the target address into $25 separately and add a USE
4717         to the call insn.
4718         (mips16_gp_pseudo_reg): Insert the initializer immediately
4719         before the first real insn.
4720         (mips_pic_base_register, mips_got_load): New functions.
4721         (mips_split_symbol): Generalize the name of the LO_SUM_OUT
4722         parameter to LOW_OUT.  Say that it can be any valid SET_SRC
4723         when splitting a load-address operation.  Split SYMBOL_GOT_DISP
4724         constants and highs of SYMBOL_GOT_PAGE_OFST constants.
4725         (mips_call_tls_get_addr): Update the call to mips_expand_call,
4726         also passing NULL_RTX rather than const0_rtx as the aux argument.
4727         (mips_rewrite_small_data_p): Check mips_lo_relocs and mips_split_p
4728         instead of TARGET_EXPLICIT_RELOCS.
4729         (mips_ok_for_lazy_binding_p): Check SYMBOL_REF_BIND_NOW_P.
4730         (mips_load_call_address): Replace the sibcall_p argument with
4731         a mips_call_type argument.  Use mips_got_load.
4732         (mips16_local_alias): New structure.
4733         (mips16_local_aliases): New variable.
4734         (mips16_local_aliases_hash): New function.
4735         (mips16_local_aliases_eq): Likewise.
4736         (mips16_local_alias): Likewise.
4737         (mips16_stub_function): Likewise.
4738         (mips16_build_function_stub): Create a local alias for the target
4739         function.  Handle TARGET_ABICALLS.  For PIC abicalls, emit a
4740         .cpload directive and an R_MIPS_NONE relocation for the target
4741         function, then load the alias rather than the function itself.
4742         Wrap the non-PIC abicalls version in ".option pic0/.option pic2".
4743         (mips16_copy_fpr_return_value): Use mips16_stub_function and
4744         mips_expand_call.  Set SYMBOL_REF_BIND_NOW on the symbol.
4745         (mips16_build_call_stub): Replace the FN parameter with an
4746         FN_PTR parameter.  Force the address into a register if it
4747         isn't a call_insn_operand; don't rely on the caller to do this.
4748         If a call to a locally-defined and locally-binding MIPS16
4749         function must be made indirectly, redirect the call to the
4750         function's local alias.  Use mips16_stub_function_p,
4751         mips16_stub_function, mips_expand_call and use_reg.
4752         Set SYMBOL_FLAG_BIND_NOW on __mips_call_* symbols.
4753         Use explicit %hi and %lo accesses where possible.
4754         Use MIPS_CALL to generate the correct code form of a
4755         jal instruction.  Add clobbers of $18 instead of uses.
4756         Update the call to mips_emit_call_insn.
4757         (mips_expand_call): Replace the SIBCALL_P argument with a
4758         mips_call_type argument and handle the new MIPS_CALL_EPILOGUE value.
4759         Take a LAZY_P parameter.  Call mips16_build_call_stub first,
4760         allowing it to modify the call address.  Update the calls to
4761         mips_load_call_address and mips_emit_call_insn.
4762         (mips_split_call): New function.
4763         (mips_init_relocs): Clear mips_split_hi_p.  Only use %gp_rel if
4764         !TARGET_MIPS16.  Split SYMBOL_GOT_DISP, and the high parts of
4765         SYMBOL_GOT_PAGE_OFST, for MIPS16 code.
4766         (mips_global_pointer): Check mips16_cfun_returns_in_fpr_p.
4767         (mips_extra_live_on_entry): Include MIPS16_PIC_TEMP_REGNUM
4768         if TARGET_MIPS16.
4769         (mips_cprestore_slot): New function.
4770         (mips_restore_gp): Take a TEMP parameter.  Handle TARGET_MIPS16
4771         and use mips_cprestore_slot.
4772         (mips_output_function_prologue): Handle TARGET_MIPS16 for
4773         LOADGP_OLDABI.
4774         (mips_emit_loadgp): Move into MIPS16_PIC_TEMP for MIPS16,
4775         then use a copygp_mips16 instruction to set up $28.
4776         (mips_expand_prologue): Initialize the cprestore slot for MIPS16 too.
4777         (mips16_lay_out_constants): Call split_all_insns_noflow.
4778         (mips_reorg_process_insns): Explicitly set all_noreorder_p to
4779         false if TARGET_MIPS16.
4780         (mips_reorg): Don't call vr4130_align_insns if TARGET_MIPS16.
4781         (mips_output_mi_thunk): Use mips_got_symbol_type_p.  Use the
4782         mips_dangerous_for_la25_p approach for MIPS16 PIC calls too.
4783         (mips_set_mips16_mode): Always set MASK_EXPLICIT_RELOCS for
4784         MIPS16 code.  Allow MIPS16 o32 PIC.
4785         (mips_override_options): Allow MIPS16 o32 PIC.
4786         * config/mips/mips.md: Lower CONST_GP_P moves into register moves
4787         after reload if TARGET_USE_GOT.
4788         (UNSPEC_COPYGP): New constant.
4789         (length): Use a default length of 8 for MIPS16 GOT loads.
4790         (*got_disp<mode>): Check mips_split_p instead of TARGET_XGOT.
4791         (*got_page<mode>): Check mips_split_hi_p.
4792         (*got_disp<mode>, *got_page<mode>): Use mips_got_load.
4793         (unspec_got<mode>, unspec_call<mode>): New expanders.
4794         (load_got<mode>, load_call<mode>): Remove the length attributes.
4795         Use a got attribute instead of a type attribute.
4796         (copygp_mips16): New insn.
4797         (restore_gp): Add a scratch clobber and pass it to mips_restore_gp.
4798         (load_call<mode>): Use a "d" constraint instead of an "r" constraint.
4799         (sibcall, sibcall_value, call, call_value): Update the calls
4800         to mips_expand_call.
4801         (call_internal, call_value_internal): Use mips_split_call.
4802         (call_value_multiple_internal): Likewise.
4803         (call_split): Move after call_internal (the insn it is split from).
4804         (call_internal_direct, call_value_internal_direct): Turn into
4805         define_insn_and_splits.  Split if TARGET_SPLIT_CALLS.
4806         (call_direct_split, call_value_direct_split): New patterns.
4807         * config/mips/constraints.md (c): Handle TARGET_MIPS16 first
4808         and use M16_REGS instead of M16_NA_REGS.
4809         * config/mips/predicates.md (const_call_insn_operand): Replace
4810         the TARGET_ABSOLUTE_ABICALLS-based check with a more general
4811         mips_use_pic_fn_addr_reg_p check.
4812         (move_operand): Reject HIGHs if mips_split_hi_p.
4813         * config/mips/mips16.S: Assembly as empty if the ABI is not suitable.
4814         (__mips16_floatunsisf): Inline __mips16_floatsisf.
4815         (CALL_STUB_NO_RET, CALL_STUB_REG): Copy the target register to $25.
4816         * config/mips/libgcc-mips16.ver: New file.
4817         * config/mips/t-libgcc-mips16 (SHLIB_MAPFILES): Add
4818         $(srcdir)/config/mips/libgcc-mips16.ver.
4819
4820 2008-08-09  Richard Sandiford  <rdsandiford@googlemail.com>
4821
4822         * config/mips/mips.c (mips_unspec_address_offset): Move earlier in file.
4823         (mips_unspec_address, mips_unspec_offset_high): Likewise.
4824         (mips_ok_for_lazy_binding_p, mips_load_call_address): Likewise.
4825         (mips16_cfun_returns_in_fpr_p): Likewise.
4826
4827 2008-08-09  Richard Sandiford  <rdsandiford@googlemail.com>
4828
4829         * config/mips/mips.h (MASK_RETURN_ADDR): Expand commentary.
4830         * config/mips/linux-unwind.h (mips_fallback_frame_state): Add 2
4831         rather than 4 to PC.
4832
4833 2008-08-09  Richard Sandiford  <rdsandiford@googlemail.com>
4834
4835         * config/mips/mips.h (STATIC_CHAIN_REGNUM): Remap to $15.
4836         (FUNCTION_PROFILER): Save the static chain pointer into $2
4837         beforehand and restore it aftewards.
4838         (TRAMPOLINE_TEMPLATE): Adjust accordingly.  Load the target
4839         address directly into $25 and call the function through $25;
4840         do not clobber $3.  Pad the DImode version to cover the space
4841         left by the deleted $25 <- $3 move.
4842         (TRAMPOLINE_SIZE): Adjust the size of the SImode version after
4843         the removal of the $25 <- $3 move.
4844         (INITIALIZE_TRAMPOLINE): Update offsets accordingly.
4845         * config/mips/sdemtk.h (FUNCTION_PROFILER): As for mips.h.
4846
4847 2008-08-09  Richard Sandiford  <rdsandiford@googlemail.com>
4848             Daniel Jacobowitz  <dan@codesourcery.com>
4849
4850         * config/mips/mips.h (FUNCTION_NAME_ALREADY_DECLARED): Delete.
4851         * config/mips/linux.h (ASM_DECLARE_FUNCTION_NAME): Delete.
4852         (ASM_DECLARE_FUNCTION_SIZE, FUNCTION_NAME_ALREADY_DECLARED): Delete.
4853         * config/mips/mips.c (mips_start_function_definition): New function.
4854         (mips_end_function_definition): Likewise.
4855         (mips_output_function_prologue): Use mips_start_function_definition.
4856         (mips_output_function_epilogue): Use mips_end_function_definition.
4857         (build_mips16_function_stub): Use mips_start_function_definition
4858         and mips_end_function_definition.
4859         (build_mips16_call_stub): Likewise.
4860
4861 2008-08-09  Richard Guenther  <rguenther@suse.de>
4862
4863         * gimple.c (gimple_build_call_1): Deal with FUNCTION_DECL fn.
4864         * gimple.h (gimple_call_fn): Adjust comment.
4865         (gimple_call_set_fndecl): New function.
4866         (gimple_call_fndecl): Adjust for GIMPLE_CALL no
4867         longer having bare FUNCTION_DECL operand.
4868         (gimple_call_return_type): Likewise.
4869         * tree-cfg.c (verify_stmt): Verify function operand of a GIMPLE_CALL.
4870
4871         * value-prof.c (gimple_divmod_fixed_value): Do not emit labels.
4872         (gimple_mod_pow2): Likewise.
4873         (gimple_mod_subtract): Likewise.
4874         (gimple_ic): Likewise.
4875         (gimple_stringop_fixed_value): Likewise.
4876         (gimple_indirect_call_to_profile): Fix for GIMPLE_CALL no
4877         longer having bare FUNCTION_DECL operand.
4878         * ipa-cp.c (ipcp_update_callgraph): Use gimple_call_set_fndecl.
4879         * omp-low.c (optimize_omp_library_calls): Likewise.
4880         * cgraphunit.c (update_call_expr): Likewise.
4881         * tree-ssa-math-opts.c (execute_cse_reciprocals): Likewise.
4882         (execute_convert_to_rsqrt): Likewise.
4883         * cfgexpand.c (gimple_to_tree): Simplify.
4884         (release_stmt_tree): Fix for GIMPLE_CALL no longer having
4885         bare FUNCTION_DECL operand.
4886         * tree-nested.c (init_tmp_var_with_call): Use gimple_call_return_type.
4887         (convert_gimple_call): Use gimple_call_fndecl.
4888         * c-common.c (c_warn_unused_result): Likewise.
4889
4890 2008-08-09  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
4891
4892         PR c/17880
4893         * c-typeck.c (digest_init): Call verify_sequence_points from here.
4894         (c_finish_return): Likewise.
4895         (c_start_case): Likewise.
4896         * c-common.c (warn_for_collisions_1): Use explicit location in
4897         warning.
4898         * c-parser.c (c_parser_condition): New. Call
4899         verify_sequence_points.
4900         (c_parser_paren_condition): Call c_parser_condition.
4901         (c_parser_for_statement): Call c_parser_condition.
4902
4903 2008-08-09  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
4904
4905         PR 36901
4906         * diagnostic.def (DK_PEDWARN, DK_PERMERROR): New.
4907         * diagnostic.c (pedantic_warning_kind, permissive_error_kind):
4908         Moved from diagnostic.h
4909         (diagnostic_report_diagnostic): Return bool. Handle DK_PEDWARN and
4910         DK_PERMERROR.
4911         (emit_diagnostic): New.
4912         (warning0, pedwarn0): Delete.
4913         (warning, warning_at, pedwarn, permerror): Return bool.
4914         * diagnostic.h (pedantic_warning_kind, permissive_error_kind):
4915         Moved to diagnostic.c.
4916         (struct diagnostic_context): Use correct type for
4917         classify_diagnostic.
4918         (diagnostic_report_diagnostic): Update declaration.
4919         (emit_diagnostic): Declare.
4920         * errors.c (warning): Return bool.
4921         * errors.h (warning): Update declaration.
4922         * toplev.h (warning0, pedwarn0): Delete.
4923         (warning, warning_at, pedwarn, permerror): Return bool.
4924         * c-errors.c (pedwarn_c99, pedwarn_c90): Use DK_PEDWARN.
4925         * c-decl.c (locate_old_decl): Delete 'diag' argument. Always use
4926         inform. Update all calls.
4927         (diagnose_mismatched_decls): Check return value of warning/pedwarn
4928         before giving informative note.
4929         (implicit_decl_warning): Likewise.
4930         * c-typeck.c (build_function_call): Likewise.
4931         * tree-sssa.c (warn_uninit): Likewise.
4932         * builtins.c (gimplify_va_arg_expr): Likewise.
4933
4934 2008-08-09  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
4935
4936         PR 7651
4937         * doc/invoke.texi (-Wextra): Move warning from here...
4938         (-Wuninitialized): ... to here.
4939
4940 2008-08-08  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
4941
4942         PR 28875
4943         * flags.h (set_Wunused): Delete
4944         * toplev.c (process_options): Handle Wunused flags here.
4945         * opts.c (maybe_warn_unused_parameter): Delete.
4946         (common_handle_option): Replace set_Wunused by warn_unused.
4947         (set_Wextra): Do not handle Wunused-parameter here.
4948         (set_Wunused): Delete.
4949         * c-opts.c (c_common_handle_option): Replace set_Wunused by
4950         warn_unused.
4951         * common.opt (Wunused): Add Var and Init.
4952         (Wunused-function): Likewise.
4953         (Wunused-label): Likewise.
4954         (Wunused-parameter): Likewise.
4955         (Wunused-value): Likewise.
4956         (Wunused-variable): Likewise.
4957
4958 2008-08-08  Peter Bergner  <bergner@vnet.ibm.com>
4959
4960         * doc/invoke.texi: Add cpu_type power7.
4961         * config.in (HAVE_AS_VSX): New.
4962         * config.gcc: Add cpu_type power7.
4963         * configure.ac (HAVE_AS_VSX): Check for assembler support of the
4964         VSX instructions.
4965         * configure: Regenerate.
4966         * config/rs6000/rs6000.c (rs6000_override_options): Alias power7 to
4967         power5.
4968         * config/rs6000/rs6000.h (ASM_CPU_POWER7_SPEC): Define.
4969         (ASM_CPU_SPEC): Pass %(asm_cpu_power7) for -mcpu=power7.
4970         (EXTRA_SPECS): Add asm_cpu_power7 spec string.
4971
4972 2008-08-08  Dorit Nuzman  <dorit@il.ibm.com>
4973
4974         * tree-vect-transform.c (vectorizable_conversion): Pass the integral
4975         type to vectorize.builtin_conversion.
4976         (vectorizable_conversion): Likewise.
4977         * config/i386/i386.c (ix86_vectorize_builtin_conversion): Always takes
4978         integral type as input.
4979         * config/rs6000/rs6000.c (rs6000_builtin_conversion): Add case for
4980         FIX_TRUNC_EXPR.
4981         (rs6000_expand_builtin): Add case for ALTIVEC_BUILTIN_VCTUXS
4982         and ALTIVEC_BUILTIN_VCTSXS.
4983         (rs6000_builtin_mul_widen_even. rs6000_builtin_mul_widen_odd): Fix
4984         formatting.
4985
4986 2008-08-08  Richard Guenther  <rguenther@suse.de>
4987
4988         * tree-ssa-ccp.c (likely_value): Calls are not all varying.
4989         (surely_varying_stmt_p): Calls are varying only if they are
4990         non-builtin and not indirect or have no result.
4991         (ccp_fold): Re-instantiate code before the tuples merge.
4992
4993 2008-08-08  Richard Guenther  <rguenther@suse.de>
4994
4995         PR tree-optimization/37056
4996         * gimple.h (gimple_assign_rhs_class): New helper function.
4997         * tree-ssa-loop-niter.c (get_val_for): Fix tuplification, handle
4998         unary operations properly.
4999
5000 2008-08-07  Jan Hubicka  <jh@suse.cz>
5001
5002         * i386.h (ix86_size_cost): Declare.
5003         (ix86_cur_cost): New function macro.
5004         * i386.md (peepholes expanding size and splitters): Predicate by
5005         optimize_insn_for_speed_p.
5006         (peepholes reduce size and splitters): Predicate by
5007         optimize_insn_for_size_p.
5008         * i386.c (ix86_size_cost): Rename from ...
5009         (size_cost): This one.
5010         (override_options): Update.
5011         (decide_alg): Likewise.
5012         (ix86_expand_clear): Use RTL profile.
5013         (ix86_pad_returns): Use RTL profile.
5014
5015 2008-08-07  Jan Hubicka  <jh@suse.cz>
5016
5017         * recog.c (split_all_insns): Set RTL profile
5018         (peephole2_optimize): Likewise.
5019         * function.c (thread_prologue_and_epilogue_insns): Likewise.
5020         * combine.c (combine_instructions): Likewise.
5021
5022 2008-08-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5023
5024         * c-common.c (c_common_reswords): Also warn about keyword "bool".
5025
5026 2008-08-07  Bob Wilson  <bob.wilson@acm.org>
5027
5028         * config/xtensa/xtensa.c (xtensa_copy_incoming_a7): Copy incoming
5029         value in a6 after the set_frame_ptr insn.
5030
5031 2008-08-07  Richard Henderson  <rth@redhat.com>
5032
5033         PR debug/37033
5034         * gcc.c (cpp_options): Pass along -g*.
5035
5036 2008-08-07  Joseph Myers  <joseph@codesourcery.com>
5037
5038         * config/arm/arm.c (output_move_neon): Update comment describing
5039         big-endian vector layout.
5040         (arm_assemble_integer): Do not handle big-endian NEON vectors
5041         specially.
5042         * config/arm/neon.md (vec_set<mode>_internal, vec_extract<mode>,
5043         neon_vget_lane<mode>_sext_internal,
5044         neon_vget_lane<mode>_zext_internal, neon_vget_lane<mode>): Adjust
5045         element indices for big-endian.
5046
5047 2008-08-07  Richard Henderson  <rth@redhat.com>
5048
5049         * configure.ac (HAVE_GAS_CFI_PERSONALITY_DIRECTIVE): New.
5050         * configure, config.in: Rebuild.
5051         * debug.h (dwarf2out_do_cfi_asm): Declare.
5052         * c-cppbuiltin.c (c_cpp_builtins): Use it.
5053         * dwarf2out.c (dwarf2out_do_cfi_asm): New.
5054         (dwarf2out_cfi_label, add_fde_cfi, output_call_frame_info,
5055         dwarf2out_begin_prologue, dwarf2out_end_epilogue): Use it.
5056
5057 2008-08-07  Joseph Myers  <joseph@codesourcery.com>
5058
5059         * config/arm/iwmmxt.md (movv8qi_internal, movv4hi_internal,
5060         movv2si_internal): Combine into mov<mode>_internal.
5061         (movv2si_internal_2): Remove.
5062
5063 2008-08-07  Jan Hubicka  <jh@suse.cz>
5064
5065         PR target/37048
5066         * i386.md (single stringop patterns): Enable unconditionally.
5067
5068 2008-08-07  H.J. Lu  <hongjiu.lu@intel.com>
5069
5070         PR target/36992
5071         * config/i386/emmintrin.h (_mm_move_epi64): Use
5072         __builtin_ia32_movq128.
5073
5074         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MOVQ128.
5075         (bdesc_args): Add IX86_BUILTIN_MOVQ128.
5076
5077         * config/i386/sse.md (sse2_movq128): New.
5078
5079         * doc/extend.texi: Document __builtin_ia32_movq128.
5080
5081 2008-08-07  Richard Guenther  <rguenther@suse.de>
5082
5083         PR middle-end/37042
5084         * tree-ssa-alias-warnings.c (nonstandard_alias_p): Ref-all
5085         pointers can access anything.
5086
5087 2008-08-06  Jan Hubicka  <jh@suse.cz>
5088
5089         * optabs.c (emit_unop_insn): Break out to ...
5090         (maybe_emit_unop_insn): ... this one.
5091         (expand_sfix_optab): Use maybe variant.
5092         * optabs.h (maybe_emit_unop_insn): Declare.
5093
5094         * i386.md (mov0 patterns): Enable by default.
5095         (FP conversion expanders): Disable expansion of code expanding
5096         sequences when instruction should be optimized for size.
5097         (single strinop patterns): Enable when optimizing for size.
5098         (string expanders): Disable expanding of code expanding sequences
5099         when optimizning instruction for size.
5100         * i386.c (ix86_expand_vector_move_misalign): Do code size optimization
5101         per BB basis.
5102         (ix86_fp_comparison_sahf_cost): Likewise.
5103         (ix86_expand_branch): Likewise.
5104         (ix86_expand_ashl_const): Likewise.
5105         (ix86_split_ashl): Likewise.
5106         (ix86_expand_strlen): Likewise.
5107         (ix86_emit_fp_unordered_jump): Likewie.
5108
5109 2008-08-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5110
5111         * c-common.c: Fix typo.
5112         (c_common_reswords): Activate more C++ keyword warnings.
5113
5114         * matrix-reorg.c (compute_offset): Avoid C++ keywords.
5115
5116 2008-08-06  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
5117
5118         PR 26785
5119         * diagnostic.c (permerror_at): New.
5120         * toplev.h (permerror_at): Declare.
5121
5122 2008-08-06  Victor Kaplansky  <victork@il.ibm.com>
5123             Ira Rosen  <irar@il.ibm.com>
5124
5125         * tree-vect-transform.c (vect_model_simple_cost): Return
5126         immediately if stmt is pure SLP.
5127         (vect_model_store_cost): Ditto.
5128         (vect_model_load_cost): Ditto.
5129         (vectorizable_store): Remove PURE_SLP check before call
5130         to vect_model_store_cost.
5131         (vect_model_store_cost): When checking whether stmt describe
5132         strided access, add a check that it is not slp_node.
5133
5134 2008-08-06  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
5135
5136         PR 8715
5137         * c-common.c (warn_for_sign_compare): New. Handle separately the
5138         case that 'constant' is zero.
5139         * c-typeck.c (build_binary_op): Move code to c-common.c
5140
5141 2008-08-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5142
5143         * config/alpha/alpha.c (alpha_preferred_reload_class,
5144         alpha_secondary_reload, alpha_emit_set_const_1, function_value,
5145         alpha_output_mi_thunk_osf): Avoid C++ keywords.
5146         * config/arm/arm.c (output_move_vfp, output_move_neon): Likewise.
5147         * config/arm/arm.md: Likewise.
5148         * config/avr/avr-protos.h (preferred_reload_class,
5149         test_hard_reg_class, avr_simplify_comparison_p,
5150         out_shift_with_cnt, class_max_nregs): Likewise.
5151         * config/avr/avr.c (class_max_nregs, avr_simplify_comparison_p,
5152         output_movqi, output_movhi, output_movsisf, out_shift_with_cnt,
5153         preferred_reload_class, test_hard_reg_class): Likewise.
5154         * config/bfin/bfin.c (legitimize_pic_address, hard_regno_mode_ok,
5155         bfin_memory_move_cost, bfin_secondary_reload,
5156         bfin_output_mi_thunk): Likewise.
5157         * config/crx/crx.c (crx_secondary_reload_class,
5158         crx_memory_move_cost): Likewise.
5159         * config/frv/frv-protos.h (frv_secondary_reload_class,
5160         frv_class_likely_spilled_p, frv_class_max_nregs): Likewise.
5161         * config/frv/frv.c (frv_override_options, frv_alloc_temp_reg,
5162         frv_secondary_reload_class, frv_class_likely_spilled_p,
5163         frv_class_max_nregs): Likewise.
5164         * config/h8300/h8300.c (h8300_classify_operand,
5165         h8300_unary_length, h8300_bitfield_length, h8300_asm_insn_count):
5166         Likewise.
5167         * config/i386/winnt.c (i386_pe_declare_function_type): Likewise.
5168         * config/ia64/ia64.c (ia64_preferred_reload_class,
5169         ia64_secondary_reload_class, ia64_output_mi_thunk): Likewise.
5170         * config/iq2000/iq2000.c (gen_int_relational): Likewise.
5171         * config/m32c/m32c.c (class_can_hold_mode, m32c_output_compare):
5172         Likewise.
5173         * config/m68hc11/m68hc11.c (preferred_reload_class,
5174         m68hc11_memory_move_cost): Likewise.
5175         * config/mcore/mcore.c (mcore_secondary_reload_class,
5176         mcore_reload_class): Likewise.
5177         * config/mips/mips.c (mips_hard_regno_mode_ok_p,
5178         mips_class_max_nregs, mips_cannot_change_mode_class,
5179         mips_preferred_reload_class, mips_secondary_reload_class,
5180         mips_output_mi_thunk): Likewise.
5181         * config/mmix/mmix.c (mmix_preferred_reload_class,
5182         mmix_preferred_output_reload_class, mmix_secondary_reload_class):
5183         Likewise.
5184         * config/mn10300/mn10300.c (mn10300_secondary_reload_class):
5185         Likewise.
5186         * config/pa/pa.c (pa_secondary_reload, pa_combine_instructions,
5187         pa_can_combine_p, pa_cannot_change_mode_class): Likewise.
5188         * config/pa/pa.h (LEGITIMIZE_RELOAD_ADDRESS): Likewise.
5189         * config/rs6000/rs6000.c (paired_expand_vector_init,
5190         rs6000_secondary_reload_class, rs6000_output_mi_thunk,
5191         compare_section_name, rs6000_memory_move_cost): Likewise.
5192         * config/s390/s390.c (s390_emit_compare_and_swap,
5193         s390_preferred_reload_class, s390_secondary_reload,
5194         legitimize_pic_address, legitimize_tls_address,
5195         legitimize_reload_address, s390_expand_cs_hqi, s390_expand_atomic,
5196         s390_class_max_nregs): Likewise.
5197         * config/s390/s390.h (LEGITIMIZE_RELOAD_ADDRESS): Likewise.
5198         * config/s390/s390.md: Likewise.
5199         * config/score/score-protos.h (score_secondary_reload_class,
5200         score_preferred_reload_class): Likewise.
5201         * config/score/score.c (score_preferred_reload_class,
5202         score_secondary_reload_class): Likewise.
5203         * config/score/score3.c (score3_output_mi_thunk,
5204         score3_preferred_reload_class, score3_secondary_reload_class,
5205         score3_hard_regno_mode_ok): Likewise.
5206         * config/score/score3.h (score3_preferred_reload_class,
5207         score3_secondary_reload_class): Likewise.
5208         * config/score/score7.c (score7_output_mi_thunk,
5209         score7_preferred_reload_class, score7_secondary_reload_class,
5210         score7_hard_regno_mode_ok): Likewise.
5211         * config/score/score7.h (score7_preferred_reload_class,
5212         score7_secondary_reload_class): Likewise.
5213         * config/sh/sh.c (prepare_move_operands, output_far_jump,
5214         output_branchy_insn, add_constant, gen_block_redirect,
5215         sh_insn_length_adjustment, sh_cannot_change_mode_class,
5216         sh_output_mi_thunk, replace_n_hard_rtx, sh_secondary_reload):
5217         Likewise.
5218         * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
5219         * config/stormy16/stormy16.c (xstormy16_output_cbranch_hi,
5220         xstormy16_output_cbranch_si, xstormy16_secondary_reload_class,
5221         xstormy16_preferred_reload_class): Likewise.
5222         * config/xtensa/xtensa.c (xtensa_expand_compare_and_swap,
5223         xtensa_expand_atomic, override_options,
5224         xtensa_preferred_reload_class, xtensa_secondary_reload_class):
5225         Likewise.
5226         * reorg.c (try_merge_delay_insns): Likewise.
5227         * tree.c (merge_dllimport_decl_attributes): Likewise.
5228
5229         * config/frv/frv.c (frv_print_operand): Change isalpha to ISALPHA.
5230
5231 2008-08-06  Michael Matz  <matz@suse.de>
5232
5233         * Makefile.in (write_entries_to_file): Quote words.
5234         * gengtype.c: (read_input_line): Skip over leading white-space.
5235
5236 2008-08-06  Marc Gauthier  <marc@tensilica.com>
5237
5238         * config.gcc: Match more processor names for Xtensa.
5239         * configure.ac: Likewise.
5240         * doc/install.texi (Specific): Likewise.
5241         * configure: Regenerate.
5242
5243 2008-08-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5244
5245         * builtins.c (expand_builtin_profile_func): Avoid C++ keywords.
5246         * calls.c (avoid_likely_spilled_reg): Likewise.
5247         * cfgexpand.c (gimple_assign_rhs_to_tree): Likewise.
5248         * cgraph.c (cgraph_clone_edge, cgraph_clone_node): Likewise.
5249         * config/i386/i386.c (ix86_expand_special_args_builtin,
5250         ix86_secondary_reload): Likewise.
5251         * except.c (struct eh_region, gen_eh_region_catch,
5252         remove_unreachable_regions, duplicate_eh_regions,
5253         assign_filter_values, build_post_landing_pads,
5254         sjlj_find_directly_reachable_regions, remove_eh_handler,
5255         reachable_next_level, foreach_reachable_handler,
5256         can_throw_internal_1, can_throw_external_1,
5257         collect_one_action_chain): Likewise.
5258         * expr.c (expand_expr_real_1, vector_mode_valid_p): Likewise.
5259         * fold-const.c (twoval_comparison_p, eval_subst): Likewise.
5260         * function.c (update_temp_slot_address, instantiate_new_reg,
5261         instantiate_virtual_regs_in_rtx,
5262         instantiate_virtual_regs_in_insn): Likewise.
5263         * gimple.c (extract_ops_from_tree, gimple_seq_copy): Likewise.
5264         * gimplify.c (gimplify_call_expr, gimplify_init_constructor,
5265         gimplify_cleanup_point_expr): Likewise.
5266         * ipa-cp.c (ipcp_lattice_changed): Likewise.
5267         * passes.c (next_pass_1): Likewise.
5268         * print-tree.c (print_node_brief, print_node): Likewise.
5269         * profile.c (branch_prob): Likewise.
5270         * tree-dump.c (dump_register): Likewise.
5271         * tree-eh.c (replace_goto_queue_cond_clause, lower_catch):
5272         Likewise.
5273         * tree-inline.c (remap_ssa_name, remap_type_1, remap_blocks,
5274         copy_statement_list, remap_gimple_op_r, copy_tree_body_r,
5275         copy_edges_for_bb, copy_cfg_body, copy_tree_r,
5276         copy_arguments_for_versioning, copy_static_chain): Likewise.
5277         * tree-into-ssa.c (names_replaced_by, add_to_repl_tbl,
5278         add_new_name_mapping, register_new_name_mapping): Likewise.
5279         * tree-mudflap.c (mf_xform_derefs): Likewise.
5280         * tree-predcom.c (struct chain, dump_chain, replace_ref_with,
5281         get_init_expr, combine_chains): Likewise.
5282         * tree-pretty-print.c (dump_generic_node): Likewise.
5283         * tree-ssa-structalias.c (create_variable_info_for): Likewise.
5284         * tree-vrp.c (simplify_cond_using_ranges): Likewise.
5285         * tree.c (substitute_in_expr, iterative_hash_expr): Likewise.
5286         * value-prof.c (gimple_duplicate_stmt_histograms): Likewise.
5287
5288 2008-08-06  H.J. Lu  <hongjiu.lu@intel.com>
5289
5290         PR middle-end/37010
5291         * calls.c (expand_call): Use the biggest preferred stack
5292         boundary.
5293
5294 2008-08-06  Michael Matz  <matz@suse.de>
5295
5296         PR target/36613
5297         * reload.c (push_reload): Merge in,out,in_reg,out_reg members
5298         for reused reload, instead of overwriting them.
5299
5300 2008-08-06  H.J. Lu  <hongjiu.lu@intel.com>
5301
5302         PR middle-end/37009
5303         * cfgexpand.c (expand_stack_alignment): Check parm_stack_boundary
5304         for incoming stack boundary.
5305
5306         * function.c (assign_parm_find_entry_rtl): Update
5307         parm_stack_boundary.
5308
5309         * function.h (rtl_data): Add parm_stack_boundary.
5310
5311         * config/i386/i386.c (ix86_finalize_stack_realign_flags): Check
5312         parm_stack_boundary for incoming stack boundary.
5313
5314 2008-08-06  Joseph Myers  <joseph@codesourcery.com>
5315
5316         * jump.c (rtx_renumbered_equal_p): Do not call subreg_regno_offset
5317         for unrepresentable subregs or treat them as equal to other regs
5318         or subregs with the same register number.
5319
5320 2008-08-06  Aldy Hernandez  <aldyh@redhat.com>
5321
5322         PR middle-end/35432
5323         * gimplify.c (gimplify_modify_expr): Do not optimize zero-sized types
5324         if want_value.
5325
5326 2008-08-06  Jan Hubicka  <jh@suse.cz>
5327
5328         * predict.c (maybe_hot_frequency_p): When profile is absent, all
5329         frequencies might be hot.
5330
5331 2008-08-06  Andreas Krebbel  <krebbel1@de.ibm.com>
5332
5333         * reload.c (find_reloads): Force constants into literal pool
5334         also if they are wrapped in a SUBREG.
5335
5336 2008-08-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
5337
5338         PR target/35659
5339         * haifa-sched.c (sched_insn_is_legitimate_for_speculation_p): Move ...
5340         * sched-deps.c (sched_insn_is_legitimate_for_speculation_p): ... here.
5341         Don't allow predicated instructions for data speculation.
5342         * sched-int.h (sched_insn_is_legitimate_for_speculation_p): Move
5343         declaration.
5344
5345 2008-08-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
5346
5347         * haifa-sched.c (extend_global): Split to extend_global_data and
5348         extend_region_data.  Update all uses.
5349         (extend_all): Rename to extend_block_data.
5350
5351 2008-08-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
5352
5353         * sched-rgn.c (new_ready): Check if instruction can be
5354         speculatively scheduled before attempting speculation.
5355         (debug_rgn_dependencies): Remove wrongful assert.
5356
5357 2008-08-05  Bob Wilson  <bob.wilson@acm.org>
5358
5359         * config/xtensa/t-xtensa: Remove dependency for gt-xtensa.h.
5360
5361 2008-08-05  Bob Wilson  <bob.wilson@acm.org>
5362
5363         * config/xtensa/xtensa.c (xtensa_va_start): Unshare valist.
5364         (xtensa_gimplify_va_arg_expr): Unshare valist, orig_ndx, ndx, array,
5365         va_size, and type_size.
5366
5367 2008-08-04  Jason Merrill  <jason@redhat.com>
5368
5369         PR c++/37016
5370         * tree-ssa.c (useless_type_conversion_p_1): Call langhook
5371         if TYPE_STRUCTURAL_EQUALITY_P is true for both types.
5372
5373 2008-08-05  Richard Henderson  <rth@redhat.com>
5374
5375         * configure.ac (HAVE_GAS_CFI_DIRECTIVE): Check .cfi_personality.
5376         * configure: Rebuild.
5377
5378 2008-08-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>
5379
5380         PR tree-opt/37024
5381         * tree-tailcall.c (process_assignment): Use gimple_assign_cast_p
5382         instead of IS_CONVERT_EXPR_CODE_P for seeing if the assignment
5383         is a conversion.
5384
5385 2008-08-05  Richard Henderson  <rth@redhat.com>
5386
5387         * Makefile.in (c-cppbuiltin.o): Depend on debug.h.
5388         * c-cppbuiltin.c (c_cpp_builtins): Define __GCC_HAVE_DWARF2_CFI_ASM.
5389         * doc/cpp.texi (__GCC_HAVE_DWARF2_CFI_ASM): Document it.
5390         * common.opt (fdwarf2-cfi-asm): New.
5391         * configure.ac (HAVE_GAS_CFI_DIRECTIVE): New.
5392         * config.in, configure: Rebuild.
5393         * dwarf2asm.c (dw2_asm_output_data_raw): New.
5394         (dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_sleb128_raw): New.
5395         (dw2_force_const_mem): Externalize.
5396         * dwarf2asm.h: Update.
5397         * dwarf2out.c (dwarf2out_cfi_label): If flag_dwarf2_cfi_asm, don't
5398         generate a real label.
5399         (output_cfi_directive): New.
5400         (add_fde_cfi): If flag_dwarf2_cfi_asm, use it.
5401         (output_call_frame_info): Do nothing if flag_dwarf2_cfi_asm.
5402         (dwarf2out_begin_prologue): Emit .cfi_startproc, .cfi_personality,
5403         and .cfi_lsda.
5404         (dwarf2out_end_epilogue): Emit .cfi_endproc.
5405         (output_loc_operands_raw, output_loc_sequence_raw): New.
5406         (output_cfa_loc_raw): New.
5407
5408 2008-08-05  Paul Brook  <paul@codesourcery.com>
5409
5410         * doc/invoke.texi: Document new ARM -mfpu= and -mcpu= options.
5411         * config/arm/arm.c (all_fpus): Add vfpv3 and vfpv3-d16.
5412         (fp_model_for_fpu): Add entry for FPUTYPE_VFP3D16.
5413         (arm_file_start): Add FPUTYPE_VFP3D16.  Rename vfp3 to vfpv3.
5414         * config/arm/arm.h (TARGET_VFPD32): Define.
5415         (TARGET_VFP3): Use TARGET_VFPD32.
5416         (fputype): Add FPUTYPE_VFP3D16.
5417         (LAST_VFP_REGNUM): Use TARGET_VFPD32.
5418         * config/arm/constraints.md ("w"): Use TARGET_VFPD32.
5419         * config/arm/arm-cores.def: Add cortex-r4f.
5420         * config/arm/arm-tune.md: Regenerate.
5421
5422 2008-08-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5423
5424         * config/spu_spu_mfcio.h: Wrap in extern "C" if __cplusplus.
5425         Reword some comments throughout the file.
5426
5427         (MFC_MIN_DMA_LIST_ELEMENTS): New define.
5428         (MFC_MAX_DMA_LIST_ELEMENTS): Likewise.
5429         (MFC_MIN_DMA_LIST_SIZE): Redefine in terms of MFC_MIN_DMA_LIST_ELEMENTS.
5430         (MFC_MAX_DMA_LIST_SIZE): Redefine in terms of MFC_MAX_DMA_LIST_ELEMENTS.
5431
5432         (MFC_START_ENABLE): Remove PPU-only define.
5433         (MFC_PUTS_CMD, MFC_PUTFS_CMD, MFC_PUTBS_CMD): Likewise.
5434         (MFC_GETS_CMD, MFC_GETFS_CMD, MFC_GETBS_CMD): Likewise.
5435
5436         (MFC_PUTB_CMD, MFC_PUTF_CMD): Reimplement using symbolic constants.
5437         (MFC_PUTL_CMD, MFC_PUTLB_CMD, MFC_PUTLF_CMD): Likewise.
5438         (MFC_PUTR_CMD, MFC_PUTRB_CMD, MFC_PUTRF_CMD): Likewise.
5439         (MFC_PUTRL_CMD, MFC_PUTRLB_CMD, MFC_PUTRLF_CMD): Likewise.
5440         (MFC_GETB_CMD, MFC_GETF_CMD): Likewise.
5441         (MFC_GETL_CMD, MFC_GETLB_CMD, MFC_GETLF_CMD): Likewise.
5442         (MFC_SNDSIGB_CMD, MFC_SNDSIGF_CMD): Likewise.
5443
5444         (MFC_SDCRT_CMD, MFC_SDCRTST_CMD): New defines.
5445         (MFC_SDCRZ_CMD, MFC_SDCRST_CMD, MFC_SDCRF_CMD): Likewise.
5446         (mfc_sdcrt, mfc_sdcrtst): Likewise.
5447         (mfc_sdcrz, mfc_sdcrst, mfc_sdcrf): Likewise.
5448
5449         (spu_read_machine_status): Fix typo.
5450
5451 2008-08-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5452
5453         * config/spu/spu.h (CANNOT_CHANGE_MODE_CLASS): Allow (multi)word-sized
5454         SUBREG of multi-word hard register.
5455         * config/spu/spu.c (valid_subreg): Likewise.
5456         (adjust_operand): Handle SUBREGs of multi-word hard registers.
5457
5458 2008-08-04  Richard Guenther  <rguenther@suse.de>
5459
5460         * tree-ssa-loop-ivopts.c (add_iv_value_candidates): Also add
5461         the candidate with the stripped base if that base is different
5462         from the original base even for offset zero.
5463
5464 2008-08-04  Richard Guenther  <rguenther@suse.de>
5465
5466         PR middle-end/36691
5467         * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Correctly
5468         check for no_overflow.
5469
5470 2008-08-04  Richard Guenther  <rguenther@suse.de>
5471
5472         * tree-vect-transform.c (vectorizable_call): Fix tuplification.
5473
5474 2008-08-04  Paul Brook  <paul@codesourcery.com>
5475
5476         * cofig/arm/arm.c (thumb_core_reg_alloc_order): New.
5477         (arm_order_regs_for_local_alloc): New function.
5478         * config/arm/arm-protos.h (arm_order_regs_for_local_alloc): Add
5479         prototype.
5480         * config/arm/arm.h (ORDER_REGS_FOR_LOCAL_ALLOC): Define.
5481
5482 2008-08-04  H.J. Lu  <hongjiu.lu@intel.com>
5483
5484         PR target/37012
5485         * config/i386/i386.c (ix86_expand_prologue): Use UNITS_PER_WORD
5486         instead of STACK_BOUNDARY / BITS_PER_UNIT to align stack.
5487         (ix86_expand_epilogue): Likewise.
5488
5489 2008-08-04  H.J. Lu  <hongjiu.lu@intel.com>
5490
5491         * config/i386/i386.c (ix86_compute_frame_layout): Fix a typo
5492         in comments.
5493
5494 2008-08-03  Uros Bizjak  <ubizjak@gmail.com>
5495
5496         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use Yi instead of x
5497         to avoid inter-unit moves for !TARGET_INTER_UNIT_MOVES.
5498         (*movv2sf_internal_rex64): Ditto.
5499
5500 2008-08-03  Jan Hubicka  <jh@suse.cz>
5501
5502         * optabs.c (expand_binop, expand_builtin_pow, expand_builtin_powi,
5503         expand_builtin_strcat): Upse optimize_insn_for_speed predicate.
5504         * expmed.c (expand_smod_pow2): Likewise.
5505
5506 2008-08-03  Uros Bizjak  <ubizjak@gmail.com>
5507
5508         PR target/36992
5509         * config/i386/sse.md (vec_concatv2di): Add Y2 constraint to
5510         alternative 0 of operand 1.
5511         (*vec_concatv2di_rex64_sse): Ditto.
5512         (*vec_concatv2di_rex64_sse4_1): Add x constraint to alternative 0
5513         of operand 1.
5514         (*sse2_storeq_rex64): Penalize allocation of "r" registers.
5515         * config/i386/mmx.md (*mov<mode>_internal_rex64): Penalize allocation
5516         of "Y2" registers to avoid SSE <-> MMX conversions for DImode moves.
5517         (*movv2sf_internal_rex64): Ditto.
5518
5519 2008-08-02  Richard Guenther  <rguenther@suse.de>
5520
5521         PR target/35252
5522         * config/i386/sse.md (SSEMODE4S, SSEMODE2D): New mode iterators.
5523         (ssedoublesizemode): New mode attribute.
5524         (sse_shufps): Call gen_sse_shufps_v4sf.
5525         (sse_shufps_1): Macroize.
5526         (sse2_shufpd): Call gen_Sse_shufpd_v2df.
5527         (sse2_shufpd_1): Macroize.
5528         (vec_extract_odd, vec_extract_even): New expanders.
5529         (vec_interleave_highv4sf, vec_interleave_lowv4sf,
5530         vec_interleave_highv2df, vec_interleave_lowv2df): Likewise.
5531         * i386.c (ix86_expand_vector_init_one_nonzero): Call
5532         gen_sse_shufps_v4sf instead of gen_sse_shufps_1.
5533         (ix86_expand_vector_set): Likewise.
5534         (ix86_expand_reduc_v4sf): Likewise.
5535
5536 2008-08-01  Doug Kwan  <dougkwan@google.com>
5537
5538         * matrix-reorg.c: Re-enable all code.
5539         (struct malloc_call_data): Change CALL_STMT to gimple type.
5540         (collect_data_for_malloc_call): Tuplify.
5541         (struct access_site_info): Change STMT to gimple type.
5542         (struct matrix_info): Change MIN_INDIRECT_LEVEL_ESCAPE_STMT,
5543         and MALLOC_FOR_LEVEL to gimple and gimple pointer type.
5544         (struct free_info): Change STMT to gimple type.
5545         (struct matrix_access_phi_node):  Change PHI to gimple type.
5546         (get_inner_of_cast_expr): Remove.
5547         (may_flatten_matrices_1): Tuplify.
5548         (may_flatten_matrices): Ditto.
5549         (mark_min_matrix_escape_level): Ditto.
5550         (ssa_accessed_in_tree): Refactor statement RHS related code into ...
5551         (ssa_accessed_in_call_rhs): New
5552         (ssa_accessed_in_assign_rhs): New
5553         (record_access_alloc_site_info): Tuplify.
5554         (add_allocation_site): Ditto.
5555         (analyze_matrix_allocation_site): Ditto.
5556         (analyze_transpose): Ditto.
5557         (get_index_from_offset): Ditto.
5558         (update_type_size): Ditto.
5559         (analyze_accesses_for_call_expr): Tuplify and renamed into ...
5560         (analyze_accesses_for_call_stmt): New. Also handle LHS of a call.
5561         (analyze_accesses_for_phi_node): Tuplify.
5562         (analyze_accesses_for_modify_stmt): Tuplify and renamed into ...
5563         (analyze_accesses_for_assign_stmt): Remove code for handling call LHS.
5564         (analyze_matrix_accesses): Tuplify.
5565         (check_var_data): New call-back type for check_var_notmodified_p.
5566         (check_var_notmodified_p): Tuplify and use call-back struct to
5567         return statement found.
5568         (can_calculate_expr_before_stmt): Factor out statement related code
5569         into ...
5570         (can_calculate_stmt_before_stmt): New.
5571         (check_allocation_function): Tuplify.
5572         (find_sites_in_func): Ditto.
5573         (record_all_accesses_in_func): Ditto.
5574         (transform_access_sites): Ditto.
5575         (transform_allocation_sites): Ditto.
5576         (matrix_reorg): Re-enable.
5577         (gate_matrix_reorg): Re-enable.
5578
5579 2008-08-01  Jakub Jelinek  <jakub@redhat.com>
5580
5581         * dwarf2out.c (compute_barrier_args_size): Set barrier_args_size
5582         for labels for which it hasn't been set yet.  If it has been set,
5583         stop walking insns and continue with next worklist item.
5584         (dwarf2out_stack_adjust): Don't call compute_barrier_args_size
5585         if the only BARRIER is at the very end of a function.
5586
5587 2008-08-01  H.J. Lu  <hongjiu.lu@intel.com>
5588
5589         * cfgexpand.c (expand_stack_alignment): Assert that
5590         stack_realign_drap and drap_rtx must match.
5591
5592         * function.c (instantiate_new_reg): If DRAP is used to realign
5593         stack, replace virtual_incoming_args_rtx with internal arg
5594         pointer.
5595
5596 2008-08-01  Richard Guenther  <rguenther@suse.de>
5597
5598         * tree-ssa-pre.c (fini_pre): Take in_fre parameter.  Free
5599         loop information only if we initialized it.
5600         (execute_pre): Call fini_pre with in_fre.
5601         * tree-ssa-loop-ivcanon (try_unroll_loop_completely): Dump
5602         if we do not unroll because we hit max-completely-peeled-insns.
5603         Use our estimation for consistency, do allow shrinking.
5604
5605 2008-08-01  H.J. Lu  <hongjiu.lu@intel.com>
5606
5607         * config/i386/i386.c (override_options): Replace ABI_STACK_BOUNDARY
5608         with MIN_STACK_BOUNDARY.
5609         (ix86_update_stack_boundary): Likewise.
5610         (ix86_expand_prologue): Assert MIN_STACK_BOUNDARY instead of
5611         STACK_BOUNDARY.
5612
5613         * config/i386/i386.h (ABI_STACK_BOUNDARY): Renamed to ...
5614         (MIN_STACK_BOUNDARY): This.
5615
5616 2008-08-01  Richard Guenther  <rguenther@suse.de>
5617
5618         PR middle-end/36997
5619         * gimplify.c (gimplify_call_expr): Set error_mark_node on GS_ERROR.
5620
5621 2008-08-01  Richard Guenther  <rguenther@suse.de>
5622
5623         PR tree-optimization/36988
5624         * tree-ssa-ccp.c (ccp_fold): Conversions of constants only
5625         do not matter if that doesn't change volatile qualification.
5626
5627 2008-08-01  Paolo Bonzini  <bonzini@gnu.org>
5628
5629         * configure.ac: Do not generate libada-mk.  Do not subst
5630         host_cc_for_libada.
5631         * libada-mk.in: Remove.
5632         * Makefile.in: Pass TARGET_LIBGCC2_CFLAGS to libgcc.mvars.
5633         * configure: Regenerate.
5634
5635 2008-08-01  Basile Starynkevitch  <basile@starynkevitch.net>
5636
5637         * tree-pass.h: Added comment about not dumping passes with name
5638         starting with star in struct opt_pass.
5639         * passes.c (register_dump_files_1): Don't do dump for a pass with
5640         name starting with star.
5641         * doc/passes.texi (Pass manager): Mention pass names and special
5642         meaning of star prefix to avoid dump.
5643
5644 2008-07-31  Adam Nemet  <anemet@caviumnetworks.com>
5645
5646         * config.gcc (mipsisa64r2*-*-linux*): New configuration.  Set ISA
5647         to MIPS64r2.
5648         * config/mips/mips.h (GENERATE_MIPS16E): Update comment.
5649         (ISA_MIPS64R2): New macro.
5650         (TARGET_CPU_CPP_BUILTINS, MULTILIB_ISA_DEFAULT): Handle it.
5651         (ISA_HAS_64BIT_REGS, ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE,
5652         ISA_HAS_8CC, ISA_HAS_FP4, ISA_HAS_PAIRED_SINGLE,
5653         ISA_HAS_MADD_MSUB, ISA_HAS_NMADD4_NMSUB4, ISA_HAS_CLZ_CLO,
5654         ISA_HAS_ROR, ISA_HAS_PREFETCH, ISA_HAS_PREFETCHX, ISA_HAS_SEB_SEH,
5655         ISA_HAS_EXT_INS, ISA_HAS_MXHC1, ISA_HAS_HILO_INTERLOCKS,
5656         ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Return true for ISA_MIPS64R2.
5657         (MIPS_ISA_LEVEL_SPEC, ASM_SPEC, LINK_SPEC): Handle -mips64r2.
5658         (TARGET_LOONGSON_2E, TARGET_LOONGSON_2F, TARGET_LOONGSON_2EF):
5659         Move up to keep list alphabetically sorted.
5660         (TUNE_20KC, TUNE_24K, TUNE_74K, TUNE_LOONGSON_2EF): Likewise.
5661         * config/mips/mips.c (mips_cpu_info_table): Add default MIPS64r2
5662         processor.
5663         * doc/invoke.texi (MIPS Options): Add -mips64r2.
5664         (-march=@var{arch}): Add mips64r2.
5665
5666 2008-07-31  H.J. Lu  <hongjiu.lu@intel.com>
5667
5668         * config/i386/darwin.h (MAIN_STACK_BOUNDARY): Define to 128.
5669
5670 2008-07-31  Steve Ellcey  <sje@cup.hp.com>
5671
5672         * expr.c (expand_assignment): Check for complete type.
5673
5674 2008-07-31  H.J. Lu  <hongjiu.lu@intel.com>
5675
5676         PR debug/36977
5677         * cfgexpand.c (expand_stack_alignment): Set stack_realign_tried.
5678
5679         * dwarf2out.c (based_loc_descr): Check crtl->stack_realign_tried
5680         for stack alignment.
5681
5682         * function.h (rtl_data): Add stack_realign_tried.  Update comments.
5683
5684 2008-07-31  Kaz Kojima  <kkojima@gcc.gnu.org>
5685
5686         * config/sh/sh.c (sh_canonical_va_list_type): Remove.
5687         (TARGET_CANONICAL_VA_LIST_TYPE): Remove.
5688
5689 2008-07-31  Jakub Jelinek  <jakub@redhat.com>
5690
5691         PR rtl-optimization/36419
5692         * dwarf2out.c (barrier_args_size): New variable.
5693         (compute_barrier_args_size, compute_barrier_args_size_1): New
5694         functions.
5695         (dwarf2out_stack_adjust): For BARRIERs call compute_barrier_args_size
5696         if not called yet in the current function, use barrier_args_size
5697         array to find the new args_size value.
5698         (dwarf2out_frame_debug): Free and clear barrier_args_size.
5699
5700 2008-07-31  H.J. Lu  <hongjiu.lu@intel.com>
5701
5702         PR debug/36980
5703         * dwarf2out.c (dwarf2out_frame_debug_expr): Move rule 17 before
5704         rule 19.
5705
5706 2008-07-31  H.J. Lu  <hongjiu.lu@intel.com>
5707
5708         PR debug/36976
5709         * dwarf2out.c (dwarf2out_args_size_adjust): New.
5710         (dwarf2out_stack_adjust): Use it.
5711         (dwarf2out_frame_debug_expr): Likewise.
5712
5713 2008-07-31  Richard Guenther  <rguenther@suse.de>
5714
5715         PR tree-optimization/36978
5716         * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): Do not fold
5717         the generated condition.
5718
5719 2008-07-31  Richard Guenther  <rguenther@suse.de>
5720
5721         * passes.c (init_optimization_passes): Always call
5722         pass_early_warn_uninitialized.
5723         * opts.c (decode_options): Do not warn about -Wuninitialized at -O0.
5724         * doc/invoke.texi (-Wuninitialized): Correct for enabling at -O0.
5725         * doc/passes.texi (Warn for uninitialized variables): Adjust.
5726
5727 2008-07-31  Jakub Jelinek  <jakub@redhat.com>
5728
5729         PR c/36970
5730         * builtins.c (maybe_emit_free_warning): New function.
5731         (expand_builtin): Process BUILT_IN_FREE even at -O0.  Call
5732         maybe_emit_free_warning for BUILT_IN_FREE.
5733
5734         PR debug/36278
5735         * dwarf2out.c (get_context_die): New function.
5736         (force_decl_die, force_type_die): Use it.
5737         (dwarf2out_imported_module_or_decl): Likewise.  If base_type_die
5738         returns NULL, force generation of DW_TAG_typedef and put that into
5739         DW_AT_import.
5740
5741         PR preprocessor/36649
5742         * c-pch.c (c_common_read_pch): Save and restore
5743         line_table->trace_includes across PCH restore.
5744
5745 2008-07-30  Eric Botcazou  <ebotcazou@adacore.com>
5746
5747         PR ada/36554
5748         * dwarf2out.c (is_subrange_type): Deal with BOOLEAN_TYPE.
5749
5750 2008-07-30  Rafael Ávila de Espíndola  <espindola@google.com>
5751
5752         PR 36974
5753         * final.c (call_from_call_insn): Handle COND_EXEC.
5754
5755 2008-07-30  H.J. Lu  <hongjiu.lu@intel.com>
5756
5757         * builtins.c (std_gimplify_va_arg_expr): Replace
5758         PREFERRED_STACK_BOUNDARY with MAX_SUPPORTED_STACK_ALIGNMENT.
5759         * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
5760
5761 2008-07-30  Joey Ye  <joey.ye@intel.com>
5762             H.J. Lu  <hongjiu.lu@intel.com>
5763
5764         * builtins.c (expand_builtin_setjmp_receiver): Replace
5765         virtual_incoming_args_rtx with crtl->args.internal_arg_pointer.
5766         (expand_builtin_apply_args_1): Likewise.
5767         (expand_builtin_longjmp): Need DRAP for stack alignment.
5768         (expand_builtin_apply): Likewise.
5769
5770         * caller-save.c (setup_save_areas): Call assign_stack_local_1
5771         instead of assign_stack_local to allow alignment reduction.
5772
5773         * calls.c (emit_call_1): Need DRAP for stack alignment if
5774         return pops.
5775         (expand_call): Replace virtual_incoming_args_rtx with
5776         crtl->args.internal_arg_pointer.
5777         * stmt.c (expand_nl_goto_receiver): Likewise.
5778
5779         * cfgexpand.c (get_decl_align_unit): Estimate stack variable
5780         alignment and store to stack_alignment_estimated and
5781         max_used_stack_slot_alignment.
5782         (expand_one_var): Likewise.
5783         (expand_stack_alignment): New function.
5784         (tree_expand_cfg): Initialize max_used_stack_slot_alignment
5785         and stack_alignment_estimated fields in rtl_data.  Call
5786         expand_stack_alignment at end.
5787
5788         * defaults.h (INCOMING_STACK_BOUNDARY): New.
5789         (MAX_STACK_ALIGNMENT): Likewise.
5790         (MAX_SUPPORTED_STACK_ALIGNMENT): Likewise.
5791         (SUPPORTS_STACK_ALIGNMENT): Likewise.
5792
5793         * emit-rtl.c (gen_reg_rtx): Estimate stack alignment for
5794         stack alignment when generating virtual registers.
5795
5796         * function.c (assign_stack_local): Renamed to ...
5797         (assign_stack_local_1): This.  Add a parameter to indicate
5798         if it is OK to reduce alignment.
5799         (assign_stack_local): Use it.
5800         (instantiate_new_reg): Instantiate virtual incoming args rtx
5801         to vDRAP if stack realignment and DRAP is needed.
5802         (assign_parms): Collect parameter/return type alignment and
5803         contribute to stack_alignment_estimated.
5804         (locate_and_pad_parm): Likewise.
5805         (get_arg_pointer_save_area): Replace virtual_incoming_args_rtx
5806         with crtl->args.internal_arg_pointer.
5807
5808         * function.h (rtl_data): Add new field drap_reg,
5809         max_used_stack_slot_alignment, stack_alignment_estimated,
5810         stack_realign_needed, need_drap, stack_realign_processed and
5811         stack_realign_finalized.
5812         (stack_realign_fp): New macro.
5813         (stack_realign_drap): Likewise.
5814
5815         * global.c (compute_regsets): Frame pointer is needed when
5816         stack is realigned.  Can eliminate frame pointer when stack is
5817         realigned and dynamic realigned argument pointer isn't used.
5818
5819         * reload1.c (update_eliminables):  Frame pointer is needed
5820         when stack is realigned.
5821         (init_elim_table): Can eliminate frame pointer when stack is
5822         realigned and dynamic realigned argument pointer isn't used.
5823
5824         * rtl.h (assign_stack_local_1): Declare new funtion.
5825
5826         * target-def.h (TARGET_UPDATE_STACK_BOUNDARY): New.
5827         (TARGET_GET_DRAP_RTX): Likewise.
5828         (TARGET_CALLS): Add TARGET_UPDATE_STACK_BOUNDARY and
5829         TARGET_GET_DRAP_RTX.
5830
5831         * target.h (gcc_target): Add update_stack_boundary and get_drap_rtx.
5832
5833         * tree-vectorizer.c (vect_can_force_dr_alignment_p): Replace
5834         STACK_BOUNDARY with MAX_STACK_ALIGNMENT.
5835
5836 2008-07-30  Xuepeng Guo  <xuepeng.guo@intel.com>
5837             H.J. Lu  <hongjiu.lu@intel.com>
5838
5839         * dwarf2out.c (dw_fde_struct): Add stack_realignment, drap_reg,
5840         vdrap_reg, stack_realign and drap_reg_saved.
5841         (add_cfi): Don't allow redefining CFA when DRAP is used.
5842         (reg_save): Handle stack alignment.
5843         (dwarf2out_frame_debug_expr): Add rules 16-20 to handle stack
5844         alignment.  Don't generate DWARF information for (set fp sp)
5845         when DRAP is used.
5846         (dwarf2out_begin_prologue): Initialize drap_reg and vdrap_reg
5847         to INVALID_REGNUM.
5848         (int_loc_descriptor): Move prototype forward.  Also define if
5849         DWARF2_UNWIND_INFO is true.
5850         (output_cfa_loc): Handle DW_CFA_expression.
5851         (build_cfa_aligned_loc): New.
5852         (based_loc_descr): Update assert for stack realign.  For local
5853         variables, use sp+offset when stack is aligned without drap and
5854         fp+offset when stack is aligned with drap.  For arguments, use
5855         cfa+offset when drap is used to align stack.
5856
5857 2008-07-30  Joey Ye  <joey.ye@intel.com>
5858             H.J. Lu  <hongjiu.lu@intel.com>
5859
5860         * config/i386/i386.c (ix86_force_align_arg_pointer_string):
5861         Break long line.
5862         (ix86_gen_andsp): New.
5863         (ix86_user_incoming_stack_boundary): Likewise.
5864         (ix86_default_incoming_stack_boundary): Likewise.
5865         (ix86_incoming_stack_boundary): Likewise.
5866         (ix86_can_eliminate): Likewise.
5867         (find_drap_reg): Likewise.
5868         (ix86_update_stack_boundary): Likewise.
5869         (ix86_get_drap_rtx): Likewise.
5870         (ix86_finalize_stack_realign_flags): Likewise.
5871         (TARGET_UPDATE_STACK_BOUNDARY): Likewise.
5872         (TARGET_GET_DRAP_RTX): Likewise.
5873         (override_options): Overide option value for new options.
5874         (ix86_function_ok_for_sibcall): Remove check for
5875         force_align_arg_pointer.
5876         (ix86_handle_cconv_attribute): Likewise.
5877         (ix86_function_regparm): Likewise.
5878         (setup_incoming_varargs_64): Don't set stack_alignment_needed here.
5879         (ix86_va_start): Replace virtual_incoming_args_rtx with
5880         crtl->args.internal_arg_pointer.
5881         (ix86_select_alt_pic_regnum): Check DRAP register.
5882         (ix86_save_reg): Replace force_align_arg_pointer with drap_reg.
5883         (ix86_compute_frame_layout): Compute frame layout wrt stack
5884         realignment.
5885         (ix86_internal_arg_pointer): Just return virtual_incoming_args_rtx.
5886         (ix86_expand_prologue): Decide if stack realignment is needed
5887         and generate prologue code accordingly.
5888         (ix86_expand_epilogue): Generate epilogue code wrt stack
5889         realignment is really needed or not.
5890
5891         * config/i386/i386.h (MAIN_STACK_BOUNDARY): New.
5892         (ABI_STACK_BOUNDARY): Likewise.
5893         (PREFERRED_STACK_BOUNDARY_DEFAULT): Likewise.
5894         (STACK_REALIGN_DEFAULT): Likewise.
5895         (INCOMING_STACK_BOUNDARY): Likewise.
5896         (MAX_STACK_ALIGNMENT): Likewise.
5897         (ix86_incoming_stack_boundary): Likewise.
5898         (FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN): Removed.
5899         (REAL_PIC_OFFSET_TABLE_REGNUM): Updated to use BX_REG.
5900         (CAN_ELIMINATE): Defined with ix86_can_eliminate.
5901         (machine_function): Remove force_align_arg_pointer.
5902
5903         * config/i386/i386.md (BX_REG): New.
5904         (R13_REG): Likewise.
5905
5906         * config/i386/i386.opt (mforce_drap): New.
5907         (mincoming-stack-boundary): Likewise.
5908         (mstackrealign): Add Init(-1).
5909
5910         * config/i386/i386-protos.h (ix86_can_eliminate): New
5911
5912 2008-07-30  H.J. Lu  <hongjiu.lu@intel.com>
5913
5914         * doc/extend.texi: Update force_align_arg_pointer.
5915
5916         * doc/invoke.texi: Document -mincoming-stack-boundary.  Update
5917         -mstackrealign.
5918
5919         * doc/tm.texi (MAX_STACK_ALIGNMENT): Add macro.
5920         (INCOMING_STACK_BOUNDARY): Likewise.
5921         (TARGET_UPDATE_STACK_BOUNDARY): New target hook.
5922         (TARGET_GET_DRAP_RTX): Likewise.
5923
5924 2008-07-30  Andreas Schwab  <schwab@suse.de>
5925
5926         PR rtl-optimization/36929
5927         * dse.c (replace_inc_dec): Use emit_insn_before instead of
5928         add_insn_before and fix argument order.
5929         (replace_inc_dec_mem): Handle NULL rtx.
5930
5931 2008-07-30  Andrew Jenner  <andrew@codesourcery.com>
5932
5933         * config/arm/arm.c (arm_compute_static_chain_stack_bytes): New
5934         function.
5935         (arm_compute_initial_elimination_offset): Use it.
5936         (arm_compute_save_reg_mask): Include static chain save slot when
5937         calculating alignment.
5938         (arm_get_frame_offsets): Ditto.
5939         (thumb1_compute_save_reg_mask): Ensure we have a low register saved
5940         that we can use to decrement the stack when the stack decrement
5941         could be too big for an immediate value in a single insn.
5942         (thumb1_expand_prologue): Avoid using r12 for stack decrement.
5943
5944 2008-07-30  Richard Guenther  <rguenther@suse.de>
5945
5946         PR tree-optimization/36967
5947         * tree-predcom.c (remove_stmt): Use gimple_assign_ssa_name_copy_p.
5948         Release defs of statements we remove.
5949
5950 2008-07-30  Nathan Froyd  <froydnj@codesourcery.com>
5951
5952         * config/arm/arm.c (arm_expand_prologue): Use 0-length rtvec
5953         instead of NULL_RTVEC.
5954
5955 2008-07-30  Nathan Froyd  <froydnj@codesourcery.com>
5956
5957         PR target/35866
5958
5959         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Add clause for
5960         vector modes.
5961
5962 2008-07-30  Rafael Ávila de Espíndola  <espindola@google.com>
5963
5964         * final.c (call_from_call_insn): New.
5965         (final_scan_insn): Call assemble_external on FUNCTION_DECLs.
5966
5967 2008-07-30  Paolo Bonzini  <bonzini@gnu.org>
5968
5969         * configure.ac: Substitute ADA_CFLAGS.
5970         * configure: Regenerate.
5971         * config.host: Remove mention of pa/x-ada and pa/x-ada-hpux10 files.
5972         * Makefile.in: Remove mention of X_* variables.
5973         * config/pa/x-ada-hpux10: Remove.
5974         * config/pa/x-ada: Remove.
5975
5976         * doc/fragments.texi: Update.
5977
5978 2008-07-30  Olivier Hainque  <hainque@adacore.com>
5979
5980         * config/mips/irix-crti.asm: .hide __gcc_init and __gcc_fini.
5981         * config/mips/iris6.h (IRIX_SUBTARGET_LINK_SPEC, irix ld): Hide
5982         __dso_handle explicitly here.
5983
5984 2008-07-30  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
5985
5986         PR 34389
5987         * c-typeck.c (build_binary_op): Encapsulate code into...
5988         * c-common.c (shorten_binary_op): ...this new function.
5989         (conversion_warning): Use the new function. Handle non-negative
5990         constant in bitwise-and.
5991         * c-common.h (shorten_binary_op): Declare.
5992
5993 2008-07-30  Olivier Hainque  <hainque@adacore.com>
5994
5995         * scan.c (make_sstring_space): Add explicit conversions of
5996         allocator's return value.
5997         * fix-header.c (recognized_function): Likewise.
5998
5999 2008-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6000
6001         * doc/cpp.texi: Update to GFDL 1.2.
6002         * doc/gcc.texi: Do not list GPL as Invariant Section.
6003         * doc/gccint.texi: Likewise.  Update copyright years.
6004         * doc/install.texi: Update copyright years.
6005
6006 2008-07-30  Alan Modra  <amodra@bigpond.net.au>
6007
6008         PR target/36955
6009         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add
6010         a use of pic_offset_table_rtx for -msecure-plt __tls_get_addr calls.
6011
6012 2008-07-29  Jan Hubicka  <jh@suse.cz>
6013
6014         * c-decl.c (merge_decls): Do not handle DECL_INLINE.
6015         (grokdeclarator): Likewise.
6016         * langhooks.c (lhd_warn_unused_global_decl): Use
6017         DECL_DECLARED_INLINE_P.
6018         * print-tree.c (print_node): Remove DECL_INLINE check.
6019
6020 2008-07-29  Richard Guenther  <rguenther@suse.de>
6021
6022         PR tree-optimization/36945
6023         * tree-ssa-sccvn.h (copy_reference_ops_from_ref): Declare.
6024         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Export.
6025         Record invariant addresses un-decomposed.
6026         (copy_reference_ops_from_call): Record reference call
6027         arguments properly.  Simplify.
6028         * tree-ssa-pre.c (create_component_ref_by_pieces_1): New
6029         helper split out from ...
6030         (create_component_ref_by_pieces): ... here.  Simplify.
6031         Prepare for recursive invocation for call arguments.
6032         (create_expression_by_pieces): Adjust call to
6033         create_component_ref_by_pieces.
6034         (compute_avail): Process operand 2 of reference ops.
6035
6036 2008-07-29  Richard Guenther  <rguenther@suse.de>
6037
6038         * gimplify.c (gimplify_expr): Clear TREE_SIDE_EFFECTS for OBJ_TYPE_REF.
6039
6040 2008-07-29  Jakub Jelinek  <jakub@redhat.com>
6041
6042         * c-format.c (check_format_types): Revert unwanted checkin.
6043
6044 2008-07-29  Jan Hubicka  <jh@suse.cz>
6045
6046         * flags.h (flag_really_no_inline): Remove.
6047         * cgraph.c (cgraph_function_possibly_inlined_p): Simplify.
6048         * toplev.c (flag_really_no_inline): Remove.
6049         * c-cppbuiltin.c (c_cpp_builtins): Use flag_no_inline.
6050         * ipa-inline.c (cgraph_decide_inlining): Do not check flag_no_inline.
6051         (cgraph_decide_inlining_incrementally): Likewise.
6052         (compute_inline_parameters): Likewise.
6053         * opts.c (decode_options): Simplify.
6054         * c-opts.c (c_common_post_options): Do not set flag_no_inline.
6055         * common.opt (finline): Initialize to 1.
6056         * tree-inline.c (inlinable_function_p): Check flag_no_inline.
6057
6058 2008-07-29  Jan Hubicka  <jh@suse.cz>
6059
6060         * predict.c (always_optimize_for_size_p): New function.
6061         (optimize_bb_for_size_p, optimize_bb_for_speed_p,
6062         optimize_edge_for_size_p, optimize_edge_for_speed_p,
6063         optimize_insn_for_size_p, optimize_insn_for_speed_p): New global
6064         functions.
6065         (rtl_profile_for_bb, rtl_profile_for_edge, rtl_default_profile): New.
6066         * function.c (prepare_function_start): Set default profile.
6067         * function.h (rtl_data): Add maybe_hot_insn_p.
6068         * cfgexpand.c (expand_gimple_basic_block): Set RTL profile.
6069         (construct_exit_block): Likewise.
6070         (tree_expand_cfg): Likewise.
6071         * basic-block.h
6072         (optimize_bb_for_size_p, optimize_bb_for_speed_p,
6073         optimize_edge_for_size_p, optimize_edge_for_speed_p,
6074         optimize_insn_for_size_p, optimize_insn_for_speed_p): Declare.
6075         (rtl_profile_for_bb, rtl_profile_for_edge, default_rtl_profile):
6076         Declare.
6077
6078 2008-07-29  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
6079
6080         PR 34985
6081         * c-decl.c (merge_decls): Merge USED flags.
6082
6083 2008-07-29  Kaz Kojima  <kkojima@gcc.gnu.org>
6084
6085         * config/sh/sh.c (sh_gimplify_va_arg_expr): Unshare the addr,
6086         valist, next_fp, next_fp_tmp, next_fp_limit, next_o, next_o_limit,
6087         next_stack, lab_false and lab_over trees.
6088
6089 2008-07-28  Richard Guenther  <rguenther@suse.de>
6090
6091         PR tree-optimization/36957
6092         * tree-flow.h (tree_ssa_useless_type_conversion): Remove.
6093         (useless_type_conversion_p): Remove.
6094         (types_compatible_p): Remove.
6095         * gimple.h (tree_ssa_useless_type_conversion): Declare.
6096         (useless_type_conversion_p): Declare.
6097         (types_compatible_p): Declare.
6098         (gimple_expr_type): Return the base type only if it is
6099         trivially convertible to the subtype.
6100
6101 2008-07-28  Andreas Tobler  <a.tobler@schweiz.org>
6102
6103         * configure.ac: Use the m4_do macro to concatenate the warnings into
6104         one string in ACX_PROG_CC_WARNING_OPTS,
6105         ACX_PROG_CC_WARNING_ALMOST_PEDANTIC and ACX_PROG_CC_WARNINGS_ARE_ERRORS.
6106         * configure: Regenerate.
6107
6108 2008-07-28  Richard Guenther  <rguenther@suse.de>
6109
6110         * tree-ssa-pre.c (insert_into_preds_of_block): Remove dead code.
6111         (insert_fake_stores): Remove.
6112         (realify_fake_stores): Likewise.
6113         (execute_pre): Remove dead code.
6114         * tree-ssa-structalias.c (get_constraint_for_1): Remove tcc_unary case.
6115         (find_func_aliases): Deal with it here instead.
6116         Re-enable gcc_unreachable call.
6117
6118 2008-07-28  Richard Guenther  <rguenther@suse.de>
6119
6120         Merge from gimple-tuples-branch.
6121
6122         * ChangeLog.tuples: ChangeLog from gimple-tuples-branch.
6123         * gimple.def: New file.
6124         * gsstruct.def: Likewise.
6125         * gimple-iterator.c: Likewise.
6126         * gimple-pretty-print.c: Likewise.
6127         * tree-gimple.c: Removed.  Merged into ...
6128         * gimple.c: ... here.  New file.
6129         * tree-gimple.h: Removed.  Merged into ...
6130         * gimple.h: ... here.  New file.
6131
6132         * Makefile.in: Add dependencies on GIMPLE_H and tree-iterator.h.
6133         * configure.ac: Added support for ENABLE_GIMPLE_CHECKING and the
6134         --enable-checking=gimple flag.
6135         * config.in: Likewise.
6136         * configure: Regenerated.
6137
6138         * tree-ssa-operands.h: Tuplified.
6139         * tree-vrp.c: Likewise.
6140         * tree-loop-linear.c: Likewise.
6141         * tree-into-ssa.c: Likewise.
6142         * tree-ssa-loop-im.c: Likewise.
6143         * tree-dump.c: Likewise.
6144         * tree-complex.c: Likewise.
6145         * cgraphbuild.c: Likewise.
6146         * tree-ssa-threadupdate.c: Likewise.
6147         * tree-ssa-loop-niter.c: Likewise.
6148         * tree-pretty-print.c: Likewise.
6149         * tracer.c: Likewise.
6150         * gengtype.c: Likewise.
6151         * tree-loop-distribution.c: Likewise.
6152         * tree-ssa-loop-unswitch.c: Likewise.
6153         * cgraph.c: Likewise.
6154         * cgraph.h: Likewise.
6155         * tree-ssa-loop-manip.c: Likewise.
6156         * value-prof.c: Likewise.
6157         * tree-ssa-loop-ch.c: Likewise.
6158         * tree-tailcall.c: Likewise.
6159         * value-prof.h: Likewise.
6160         * tree.c: Likewise.
6161         * tree.h: Likewise.
6162         * tree-pass.h: Likewise.
6163         * ipa-cp.c: Likewise.
6164         * tree-scalar-evolution.c: Likewise.
6165         * tree-scalar-evolution.h: Likewise.
6166         * target.h: Likewise.
6167         * lambda-mat.c: Likewise.
6168         * tree-phinodes.c: Likewise.
6169         * diagnostic.h: Likewise.
6170         * builtins.c: Likewise.
6171         * tree-ssa-alias-warnings.c: Likewise.
6172         * cfghooks.c: Likewise.
6173         * fold-const.c: Likewise.
6174         * cfghooks.h: Likewise.
6175         * omp-low.c: Likewise.
6176         * tree-ssa-dse.c: Likewise.
6177         * ipa-reference.c: Likewise.
6178         * tree-ssa-uncprop.c: Likewise.
6179         * toplev.c: Likewise.
6180         * tree-gimple.c: Likewise.
6181         * tree-gimple.h: Likewise.
6182         * tree-chrec.c: Likewise.
6183         * tree-chrec.h: Likewise.
6184         * tree-ssa-sccvn.c: Likewise.
6185         * tree-ssa-sccvn.h: Likewise.
6186         * cgraphunit.c: Likewise.
6187         * tree-ssa-copyrename.c: Likewise.
6188         * tree-ssa-ccp.c: Likewise.
6189         * tree-ssa-loop-ivopts.c: Likewise.
6190         * tree-nomudflap.c: Likewise.
6191         * tree-call-cdce.c: Likewise.
6192         * ipa-pure-const.c: Likewise.
6193         * c-format.c: Likewise.
6194         * tree-stdarg.c: Likewise.
6195         * tree-ssa-math-opts.c: Likewise.
6196         * tree-ssa-dom.c: Likewise.
6197         * tree-nrv.c: Likewise.
6198         * tree-ssa-propagate.c: Likewise.
6199         * ipa-utils.c: Likewise.
6200         * tree-ssa-propagate.h: Likewise.
6201         * tree-ssa-alias.c: Likewise.
6202         * gimple-low.c: Likewise.
6203         * tree-ssa-sink.c: Likewise.
6204         * ipa-inline.c: Likewise.
6205         * c-semantics.c: Likewise.
6206         * dwarf2out.c: Likewise.
6207         * expr.c: Likewise.
6208         * tree-ssa-loop-ivcanon.c: Likewise.
6209         * predict.c: Likewise.
6210         * tree-ssa-loop.c: Likewise.
6211         * tree-parloops.c: Likewise.
6212         * tree-ssa-address.c: Likewise.
6213         * tree-ssa-ifcombine.c: Likewise.
6214         * matrix-reorg.c: Likewise.
6215         * c-decl.c: Likewise.
6216         * tree-eh.c: Likewise.
6217         * c-pretty-print.c: Likewise.
6218         * lambda-trans.c: Likewise.
6219         * function.c: Likewise.
6220         * langhooks.c: Likewise.
6221         * ebitmap.h: Likewise.
6222         * tree-vectorizer.c: Likewise.
6223         * function.h: Likewise.
6224         * langhooks.h: Likewise.
6225         * tree-vectorizer.h: Likewise.
6226         * ipa-type-escape.c: Likewise.
6227         * ipa-type-escape.h: Likewise.
6228         * domwalk.c: Likewise.
6229         * tree-if-conv.c: Likewise.
6230         * profile.c: Likewise.
6231         * domwalk.h: Likewise.
6232         * tree-data-ref.c: Likewise.
6233         * tree-data-ref.h: Likewise.
6234         * tree-flow-inline.h: Likewise.
6235         * tree-affine.c: Likewise.
6236         * tree-vect-analyze.c: Likewise.
6237         * c-typeck.c: Likewise.
6238         * gimplify.c: Likewise.
6239         * coretypes.h: Likewise.
6240         * tree-ssa-phiopt.c: Likewise.
6241         * calls.c: Likewise.
6242         * tree-ssa-coalesce.c: Likewise.
6243         * tree.def: Likewise.
6244         * tree-dfa.c: Likewise.
6245         * except.c: Likewise.
6246         * except.h: Likewise.
6247         * cfgexpand.c: Likewise.
6248         * tree-cfgcleanup.c: Likewise.
6249         * tree-ssa-pre.c: Likewise.
6250         * tree-ssa-live.c: Likewise.
6251         * tree-sra.c: Likewise.
6252         * tree-ssa-live.h: Likewise.
6253         * tree-predcom.c: Likewise.
6254         * lambda.h: Likewise.
6255         * tree-mudflap.c: Likewise.
6256         * ipa-prop.c: Likewise.
6257         * print-tree.c: Likewise.
6258         * tree-ssa-copy.c: Likewise.
6259         * ipa-prop.h: Likewise.
6260         * tree-ssa-forwprop.c: Likewise.
6261         * ggc-page.c: Likewise.
6262         * c-omp.c: Likewise.
6263         * tree-ssa-dce.c: Likewise.
6264         * tree-vect-patterns.c: Likewise.
6265         * tree-ssa-ter.c: Likewise.
6266         * tree-nested.c: Likewise.
6267         * tree-ssa.c: Likewise.
6268         * lambda-code.c: Likewise.
6269         * tree-ssa-loop-prefetch.c: Likewise.
6270         * tree-inline.c: Likewise.
6271         * tree-inline.h: Likewise.
6272         * tree-iterator.c: Likewise.
6273         * tree-optimize.c: Likewise.
6274         * tree-ssa-phiprop.c: Likewise.
6275         * tree-vect-transform.c: Likewise.
6276         * tree-object-size.c: Likewise.
6277         * tree-outof-ssa.c: Likewise.
6278         * cfgloop.c: Likewise.
6279         * system.h: Likewise.
6280         * tree-profile.c: Likewise.
6281         * cfgloop.h: Likewise.
6282         * c-gimplify.c: Likewise.
6283         * c-common.c: Likewise.
6284         * tree-vect-generic.c: Likewise.
6285         * tree-flow.h: Likewise.
6286         * c-common.h: Likewise.
6287         * basic-block.h: Likewise.
6288         * tree-ssa-structalias.c: Likewise.
6289         * tree-switch-conversion.c: Likewise.
6290         * tree-ssa-structalias.h: Likewise.
6291         * tree-cfg.c: Likewise.
6292         * passes.c: Likewise.
6293         * ipa-struct-reorg.c: Likewise.
6294         * ipa-struct-reorg.h: Likewise.
6295         * tree-ssa-reassoc.c: Likewise.
6296         * cfgrtl.c: Likewise.
6297         * varpool.c: Likewise.
6298         * stmt.c: Likewise.
6299         * tree-ssanames.c: Likewise.
6300         * tree-ssa-threadedge.c: Likewise.
6301         * langhooks-def.h: Likewise.
6302         * tree-ssa-operands.c: Likewise.
6303         * config/alpha/alpha.c: Likewise.
6304         * config/frv/frv.c: Likewise.
6305         * config/s390/s390.c: Likewise.
6306         * config/m32c/m32c.c: Likewise.
6307         * config/m32c/m32c-protos.h: Likewise.
6308         * config/spu/spu.c: Likewise.
6309         * config/sparc/sparc.c: Likewise.
6310         * config/i386/i386.c: Likewise.
6311         * config/sh/sh.c: Likewise.
6312         * config/xtensa/xtensa.c: Likewise.
6313         * config/stormy16/stormy16.c: Likewise.
6314         * config/ia64/ia64.c: Likewise.
6315         * config/rs6000/rs6000.c: Likewise.
6316         * config/pa/pa.c: Likewise.
6317         * config/mips/mips.c: Likewise.
6318
6319 2008-07-28  Simon Baldwin  <simonb@google.com>
6320
6321         * c-pragma.c (handle_pragma_message): New function.
6322         (init_pragma): Register handle_pragma_message.
6323         * doc/extend.texi (Diagnostic Pragmas): Added #pragma message
6324         documentation.
6325
6326 2008-07-27  Victor Kaplansky  <victork@il.ibm.com>
6327
6328         PR tree-optimization/35252
6329         * tree-vect-analyze.c (vect_build_slp_tree): Make IMAGPART_EXPR and
6330         REALPART_EXPR to be considered as same load operation.
6331
6332 2008-07-27  Eric Botcazou  <ebotcazou@adacore.com>
6333
6334         PR tree-optimization/36830
6335         * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Hash operand #2.
6336         (expressions_equal_p): Return false if only one operand is null.
6337
6338 2008-07-26  Gerald Pfeifer  <gerald@pfeifer.com>
6339
6340         * doc/install.texi (powerpc-*-netbsd*): Remove redundant texinfo
6341         version requirements.
6342
6343 2008-07-26  Olivier Hainque  <hainque@adacore.com>
6344
6345         * collect2.c (symkind): New enum.  Symbol kinds we care about.
6346         (is_ctor_dtor): Return symkind instead of int.  Adjust prototype,
6347         code and head comment accordingly.
6348         (scan_prog_file): Use symkind names instead of bare integers.
6349
6350 2008-07-25  Jan Hubicka  <jh@suse.cz>
6351
6352         * cgraph.c (cgraph_function_possibly_inlined_p): Do not rely on
6353         DECL_INLINE.
6354         * cgraphunit.c (record_cdtor_fn): Do not initialize DECL_INLINE
6355         (cgraph_preserve_function_body_p): Do not rely on DECL_INLINE.
6356         * dojump.c (clear_pending_stack_adjust): Likewise.
6357         * print-tree.c (print_node): Ignore DECL_INLINE.
6358         * tree-inline.c (inlinable_function_p): Likewise.
6359
6360 2008-07-25  Michael Meissner  <gnu@the-meissners.org>
6361
6362         * doc/extend.texi (hot attribute): Document that the hot attribute
6363         turns on -O3 for some ports.
6364         (cold attribute): Document that the cold attribute turns on -Os
6365         for some ports
6366
6367         * doc/tm.texi (OPTIMIZATION_OPTIONS): Update documentation to
6368         reflect function specific option support.
6369
6370         * target.h (struct target_option_hooks): Add fields to say whether
6371         the cold attribute implies -Os and the hot attribute implies -O3.
6372
6373         * target-def.h (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION):
6374         By default, do not turn on -Os for cold functions.
6375         (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): By default, do
6376         not turn on -O3 for hot functions.
6377
6378         * c-common.c (handle_hot_attribute): Use target hook to determine
6379         if hot functions should enable -O3.
6380         (handle_cold_attribute): Use target hook to determine if cold
6381         functions should enable -Os.
6382
6383         * config/i386/i386.c (ix86_target_string): Add -m3dnowa support.
6384         (override_options): Move disable scheduling to
6385         optimization_options.
6386         (optimization_options): Disable scheduling here, not
6387         override_options.
6388         (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): Define.
6389         (TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION): Define.
6390
6391         * config/ia64/ia64.c (ia64_override_options): Move setting
6392         scheduling flags to ia64_optimization_options.
6393         (ia64_optimization_options): Disable scheduling options here, and
6394         not in ia64_override_options.
6395         (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): Define.
6396         (TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION): Define.
6397
6398 2008-07-25  H.J. Lu  <hongjiu.lu@intel.com>
6399
6400         PR target/36936
6401         * config/i386/i386.c (override_options): Don't clear TARGET_CMOVE.
6402
6403 2008-07-25  Martin Jambor  <mjambor@suse.cz>
6404
6405         PR tree-optimization/36926
6406         * ipa-prop.c (ipa_analyze_call_uses): Call
6407         ipa_is_ssa_with_stmt_def instead of SSA_NAME_IS_DEFAULT_DEF.
6408
6409 2008-07-25  Joseph Myers  <joseph@codesourcery.com>
6410
6411         * config/arm/iwmmxt.md (movv8qi_internal, movv4hi_internal,
6412         movv2si_internal): Add mem = reg alternative.
6413
6414 2008-07-25  Andreas Tobler  <a.tobler@schweiz.org>
6415
6416         PR bootstrap/36918
6417         * config/sparc/sparc.h (DEFAULT_PCC_STRUCT_RETURN): Define
6418         DEFAULT_PCC_STRUCT_RETURN to 127.
6419
6420 2008-07-24  Jan Hubicka  <jh@suse.cz>
6421
6422         * cgraphbuild.c (record_reference): Drop non-unit-at-a-time code.
6423         (build_cgraph_edges): Likewise.
6424         * cgraph.c (cgraph_node): Do not update assembler hash.
6425         (cgraph_remove_node): Drop non-unit-at-a-time code.
6426         * tree-pass.h (pass_O0_always_inline): Remove.
6427         * ipa-reference.c (gate_reference): Remove unit-at-a-time check.
6428         * toplev.c (process_options): Flag unit-at-a-time does not imply
6429         no section anchors.
6430         * cgraphunit.c: Update comments.
6431         (decide_is_function_needed): Drop non-unit-at-a-time mode.
6432         (cgraph_assemble_pending_functions): Remove.
6433         (cgraph_reset_node): Drop non-unit-at-a-time code.
6434         (cgraph_finalize_function): Likewise.
6435         (cgraph_analyze_function): Likewise.
6436         (cgraph_finalize_compilation_unit): Likewise.
6437         (cgraph_expand_function): Likewise.
6438         (cgraph_optimize): Likesise.
6439         (save_inline_function_body): Likewise.
6440         * ipa-pure-const.c (gate_pure_const): Drop flag_unit_at_a_time check.
6441         * tree-ssa-alias.c (maybe_be_aliased): Likewise.
6442         * ipa-inline.c: Update comments.
6443         (enum inlining_mode): remove INLINE_SPEED.
6444         (cgraph_clone_inlined_nodes): Drop unit-at-a-time check.
6445         (cgraph_mark_inline_edge): Likewise.
6446         (try_inline): Likewise.
6447         (cgraph_decide_inlining_incrementally): Likewise.
6448         (cgraph_gate_inlining): Remove.
6449         (cgraph_early_inlining): Remove flag_unit_at_a_time checks.
6450         (cgraph_gate_early_inlining): Likewise.
6451         (gate_inline_passes): Remove.
6452         (pass_inline_parameters, pass_ipa_inline): Remove gates.
6453         (cgraph_gate_O0_always_inline, cgraph_O0_always_inline,
6454         pass_O0_always_inline): Remove.
6455         * c-pch.c (c_pch_matching): Remove -funit-at-a-time.
6456         * dwarf2out.c (reference_to_unused): Remove flag_unit_at_a_time check.
6457         * opts.c (no_unit_at_a_time_default): Remove.
6458         (decode_options): Remove flag_unit_at_a_time reset and warning.
6459         * opts.h (no_unit_at_a_time_default): Remove.
6460         * c-decl.c (diagnose_mismatched_decls): Do not require inline keyword
6461         early in GNU dialect.
6462         (merge_decls): Update comment; drop unit-at-a-time check.
6463         (finish_decl): Likewise.
6464         (grok_declaration): Remove flag_inline_trees code.
6465         (finish_functions): Return on function returning non-void on all
6466         statics.
6467         * ipa-tye-escape.c (gate_type_escape_vars): Remove.
6468         * cfgexpand.c (expand_one_static_var): Remove.
6469         (expand_one_var): Remove expand_one_static_var call.
6470         (expand_used_vars_for_block): Remove flag_unit_a_time check.
6471         * c-opts.c (c_common_post_options): Remove flag_inline_trees code
6472         and flag_unit_at_a-time compatibility checks.
6473         * varasm.c (assemble_alias): Remove flag_unit_at_a_time check.
6474         * tree-inline.c (flag_inline_trees): Remove.
6475         (inlinable_function_p): Don't check it.
6476         (expand_call_inline): Remove non-unit-at-a-time code.
6477         * tree-inline.h (flag_inline_trees): Remove.
6478         * tree-optimize.c (execute_early_local_optimizations): Remove
6479         unit-at-a-time checks.
6480         (tree_rest_of_compilation): Likewise.
6481         * combine.c (setup_incoming_promotions): Likewise.
6482         * tree-profile.c (tree_gen_ic_func_profiler): Likewise.
6483         * tree-ssa-structalias.c (delete_points_to_sets): Likewise.
6484         * passes.c (pass_inline_parameters): Update comments; remove
6485         O0_alwaysinline pass.
6486         (execute_one_ipa_transform_pass): Do not reset in_gimple_form.
6487         (execute_one_pass): Likewise.
6488         * i386.c (ix86_function_regparm): Remove unit-at-a-time check.
6489         (ix86_function_sseregparm): Likewise.
6490         * arm.c (arm_function_in_section_p): Likewise.
6491         * bfin.c (bfin_load_pic_reg, bfin_function_ok_for_sibcall): Likewise.
6492         * varpool.c: Update comments.
6493         (decide_is_variable_needed): Remove unit-at-a-time checks.
6494         (varpool_finalize_decl): Likewise.
6495
6496 2008-07-24  Kaz Kojima  <kkojima@gcc.gnu.org>
6497
6498         * config/sh/sh.h (OPTIMIZATION_OPTIONS): Set flag_omit_frame_pointer
6499         to 2 instead of -1.
6500         (OVERRIDE_OPTIONS): Check if flag_omit_frame_pointer is equal to 2.
6501
6502 2008-07-24  Kai Tietz  <kai.tietz@onevision.com>
6503
6504         * config/i386/i386.c (get_dllimport_decl): Treat user_label_prefix for
6505         imp symbol extension.
6506
6507         2008-07-23  Ian Lance Taylor  <iant@google.com>
6508
6509         * tree-vrp.c (infer_value_range): Ignore asm statements when
6510         looking for memory accesses for -fdelete-null-pointer-checks.
6511
6512 2008-07-24  Ben Elliston  <bje@au.ibm.com>
6513
6514         * config/spu/spu-c.c (__vector_keyword): New variable.
6515         (vector_keyword): Likewise.
6516         (spu_categorize_keyword): New function.
6517         (spu_macro_to_expand): Likewise.
6518         (spu_cpu_cpp_builtins): Enable context-sensitive macros if not
6519         compiling an ISO C dialect.
6520
6521 2008-07-24  Ben Elliston  <bje@au.ibm.com>
6522
6523         * config/rs6000/rs6000-c.c: Move GTY(()) markers to match
6524         conventional usage.
6525
6526 2008-07-23  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
6527
6528         * configure: Regenerate.
6529         * configure.ac: Require texinfo 4.7.
6530         * doc/install.texi: Document texinfo 4.7 requirement.
6531
6532 2008-07-23  Martin Jambor  <mjambor@suse.cz>
6533
6534         * ipa-cp.c (ipcp_print_edge_profiles): Test for node->analyzed
6535         rather than for DECL_SAVED_TREE.
6536         * ipa-prop.c: Include diagnostic.h.
6537         (ipa_check_stmt_modifications): Check LHS of GIMPLE_MODIFY_EXPRs
6538         thoroughly.
6539         (ipa_detect_param_modifications): Function rewritten from scratch.
6540         (ipa_compute_jump_functions): Changed accesses to modification flags.
6541         (ipa_free_node_params_substructures): Update flags destruction.
6542         (ipa_node_duplication_hook): Update flags duplication.
6543         (ipa_print_all_params_modified): Updated flag access.
6544         * ipa-prop.h (struct ipa_param_flags): New structure.
6545         (struct ipa_node_params): New field modification_analysis_done,
6546         modified_flags changed into param_flags.
6547         (ipa_is_ith_param_modified): Changed to use new flags.
6548         * Makefile.in (ipa-prop.o): Add $(DIAGNOSTIC_H) to dependencies.
6549
6550         * ipa-prop.c (ipa_print_all_jump_functions): Moved here from
6551         ipa-cp.c and split into two functions.
6552         (ipa_print_node_jump_functions): New function.
6553         (compute_scalar_jump_functions): New function.
6554         (type_like_member_ptr_p): New function.
6555         (compute_pass_through_member_ptrs): New function.
6556         (fill_member_ptr_cst_jump_function): New function.
6557         (determine_cst_member_ptr): New function.
6558         (compute_cst_member_ptr_arguments): New function.
6559         (ipa_compute_jump_functions): Complete rewrite.
6560         * ipa-prop.h (enum jump_func_type): Make explicit that we depend
6561         on IPA_UNKNOWN being zero. Added value IPA_CONST_MEMBER_PTR.
6562         (struct ipa_member_ptr_cst): New structure.
6563         (union jump_func_value): New field member_cst.
6564         * ipa-cp.c (ipcp_lat_is_insertable): New function.
6565         (ipcp_lattice_from_jfunc): Produces bottom lattices for unhandled
6566         jump function types.
6567         (ipcp_print_all_lattices): Slight fprintf rearrangement.
6568         (ipcp_print_all_structures): Call ipa_print_all_jump_functions
6569         instead of ipcp_print_all_jump_functions.
6570         (ipcp_insert_stage): Use ipcp_lat_is_insertable, create replace maps
6571         only for replacable scalars.
6572
6573         * doc/invoke.texi (Optimize options): Add description of
6574         -findirect-inlining.
6575         * common.opt (flag_indirect_inlining): New flag.
6576         * opts.c (decode_options): Set flag_indirect_inlining when
6577         optimize >= 3.
6578
6579         * ipa-inline.c: Include ipa-prop.h.
6580         (inline_indirect_intraprocedural_analysis): New function.
6581         (inline_generate_summary): Allocate parameter and argument info
6582         structures, call inline_indirect_intraprocedural_analysis on each
6583         node when doing indirect inlining and deallocate indirect inlining
6584         data structures in the end.
6585         * ipa-prop.c (ipa_create_param_decls_array): Return if already done.
6586         (free_all_ipa_structures_after_iinln): New function.
6587         (free_all_ipa_structures_after_ipa_cp): Checks whether iinln will be
6588         done.
6589         * Makefile.in (ipa-inline.o): Added $(IPA_PROP_H) to dependencies.
6590
6591         * cgraphbuild.c (compute_call_stmt_bb_frequency): New function.
6592         (build_cgraph_edges): Call compute_call_stmt_bb_frequency instead
6593         of computing the frequency separately.
6594         (rebuild_cgraph_edges): Call compute_call_stmt_bb_frequency instead
6595         of computing the frequency separately.
6596         * ipa-cp.c (ipcp_print_all_structures): Replace a call to
6597         ipa_print_all_param_modified with a call to ipa_print_all_param_flags.
6598         * ipa-prop.c (ipa_get_member_ptr_load_param): New function.
6599         (ipa_get_stmt_member_ptr_load_param): New function.
6600         (ipa_is_ssa_with_stmt_def): New function.
6601         (ipa_note_param_call): New function.
6602         (ipa_analyze_call_uses): New function.
6603         (ipa_analyze_stmt_uses): New function.
6604         (ipa_analyze_params_uses): New function.
6605         (ipa_free_node_params_substructures): Also free the param_calls linked
6606         list.
6607         (ipa_node_duplication_hook): Also duplicate the param_calls linked list.
6608         (ipa_print_node_param_flags): New function.
6609         (ipa_print_all_params_modified): Renamed to ipa_print_all_param_flags.
6610         (ipa_print_all_param_flags): Calls ipa_print_node_param_flags.
6611         * ipa-prop.h (struct ipa_param_flags): New field called.
6612         (struct ipa_param_call_note): New structure.
6613         (struct ipa_node_params): New fields param_calls and
6614         uses_analysis_done.
6615         (ipa_is_ith_param_called): New function.
6616         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
6617         ipa_analyze_params_uses and dump parameter flags.
6618
6619         * ipa-inline.c (cgraph_decide_recursive_inlining): Call
6620         ipa_propagate_indirect_call_infos if performing indirect inlining,
6621         pass a new parameter new_edges to it.
6622         (add_new_edges_to_heap): New fucntion.
6623         (cgraph_decide_inlining_of_small_functions): New vector
6624         new_indirect_edges for newly found indirect edges , call
6625         ipa_propagate_indirect_call_infos after inlining.
6626         (cgraph_decide_inlining): Call ipa_propagate_indirect_call_infos after
6627         inlining if performing indirect inlining.  Call
6628         free_all_ipa_structures_after_iinln when doing so too.
6629         (inline_generate_summary): Do not call
6630         free_all_ipa_structures_after_iinln here.
6631         * ipa-prop.c (update_jump_functions_after_inlining): New function.
6632         (print_edge_addition_message): New function.
6633         (update_call_notes_after_inlining): New function.
6634         (propagate_info_to_inlined_callees): New function.
6635         (ipa_propagate_indirect_call_infos): New function.
6636         * ipa-prop.h: Include cgraph.h
6637         (struct ipa_param_call_note): Fields reordered, new field processed.
6638         * cgraph.h (cgraph_edge): Shrink loop_nest field to 31 bits, add a new
6639         flag indirect_call.
6640         * cgraphunit.c (verify_cgraph_node): Allow indirect edges not to have
6641         rediscovered call statements.
6642         * cgraph.c (cgraph_create_edge): Initialize indirect_call to zero.
6643         (dump_cgraph_node): Dump also the indirect_call flag.
6644         (cgraph_clone_edge): Copy also the indirect_call flag.
6645         * tree-inline.c (copy_bb): Do not check for fndecls from call
6646         expressions, check for edge availability when moving clones.
6647         (get_indirect_callee_fndecl): New function.
6648         (expand_call_inline): If callee declaration is not apprent from
6649         the statement, try calling get_indirect_callee_fndecl.  Do not
6650         issue warnings or call sorry when not inlinings an indirect edge.
6651         * Makefile.in (IPA_PROP_H): Added $(CGRAPH_H) to dependencies.
6652
6653         * ipa-prop.c (ipa_print_node_param_flags): Make the dump format a
6654         bit more frandly to matching.
6655         * testsuite/g++.dg/ipa/iinline-1.C: New testcase.
6656         * testsuite/gcc.dg/ipa/iinline-1.c: New testcase.
6657         * testsuite/gcc.dg/ipa/modif-1.c: New testcase.
6658
6659 2008-07-23  Michael Meissner  <gnu@the-meissners.org>
6660
6661         PR 36907
6662         * opth-gen.awk: Suppress function specific features when building
6663         target libraries.
6664         * optc-gen.awk: Ditto.
6665
6666 2008-07-23  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
6667
6668         PR 35058
6669         * diagnostic.c (pedwarn): Add opt parameter.
6670         (pedwarn0): New.
6671         * c-tree.h (pedwarn_init): Add opt parameter.
6672         (pedwarn_c90): Likewise.
6673         (pedwarn_c99): Likewise.
6674         * c-errors.c (pedwarn_c99): Likewise.
6675         (pedwarn_c90): Likewise.
6676         * toplev.h (pedwarn): Update declaration.
6677         (pedwarn0): Declare.
6678         * c-lex.c: All calls to pedwarn changed.
6679         * builtins.c: All calls to pedwarn changed.
6680         * toplev.c: All calls to pedwarn changed.
6681         * c-decl.c: All calls to pedwarn changed.
6682         * c-typeck.c: All calls to pedwarn changed.
6683         * c-common.c: All calls to pedwarn changed.
6684         * c-parser.c: All calls to pedwarn changed.
6685
6686 2008-07-23  Michael Meissner  <gnu@the-meissners.org>
6687             Karthik Kumar  <karthikkumar@gmail.com>
6688
6689         * attribs.c (file scope): Include c-common.h.
6690         (decl_attributes): Add support for #pragma GCC optimize and
6691         #pragma GCC option.
6692
6693         * targhooks.c (default_can_inline_p): New function that is the
6694         default for the TARGET_CAN_INLINE_P target hook.
6695
6696         * targhooks.h (default_can_inline_p): Add declaration.
6697
6698         * tree.c (cl_optimization_node): New static tree for building
6699         OPTIMIZATION_NODE tree.
6700         (cl_target_option_node): New static tree for building
6701         TARGET_OPTION_NODE tree.
6702         (cl_option_hash_table): New hash table for hashing
6703         OPTIMIZATION_NODE and TARGET_OPTION_NODE trees.
6704         (cl_option_hash_hash): New function to provide the hash value for
6705         OPTIMIZATION_NODE and TARGET_OPTION_NODE trees.
6706         (cl_option_hash_eq): New function to provide an equality test for
6707         OPTIMIZATION_NODE and TARGET_OPTION_NODE trees.
6708         (tree_code_size): Add support for OPTIMIZATION_NODE and
6709         TARGET_OPTION_NODE trees.
6710         (tree_code_structure): Add support for OPTIMIZATION_NODE and
6711         TARGET_OPTION_NODE trees.
6712         (build_optimization_node): Build a tree that has all of the
6713         current optimization options.
6714         (build_target_option_node): Build a tree that has the target
6715         options that might be changed on a per function basis.
6716
6717         * tree.h (file scope): Include options.h.
6718         (DECL_FUNCTION_SPECIFIC_TARGET): New accessor macro.
6719         (DECL_FUNCTION_SPECIFIC_OPTIMIZATION): Ditto.
6720         (TREE_OPTIMIZATION): Ditto.
6721         (TREE_TARGET_SPECIFIC): Ditto.
6722         (struct tree_function_decl): Add fields for remembering the
6723         current optimization options and target specific options.
6724         (struct tree_optimization_option): New tree variant that remembers
6725         the optimization options.
6726         (struct tree_target_option): New tree variant that remembers the
6727         target specific flags that might change for compiling a particular
6728         function.
6729         (union tree_node): Include tree_optimization_option and
6730         tree_target_option fields.
6731         (enum tree_index): Add TI_OPTIMIZATION_DEFAULT,
6732         TI_OPTIMIZATION_CURRENT, TI_OPTIMIZATION_COLD,
6733         TI_OPTIMIZATION_HOT, TI_TARGET_OPTION_DEFAULT,
6734         TI_TARGET_OPTION_CURRENT, TI_CURRENT_OPTION_PRAGMA,
6735         TI_CURRENT_OPTIMIZE_PRAGMA entries for saving function specific
6736         optimization and target options.
6737         (optimization_default_node): New macro to refer to global_trees
6738         field.
6739         (optimization_current_node): Ditto.
6740         (optimization_cold_node): Ditto.
6741         (optimization_hot_node): Ditto.
6742         (target_option_default_node): Ditto.
6743         (target_option_current_node): Ditto.
6744         (current_option_pragma): Ditto.
6745         (current_optimize_pragma): Ditto.
6746
6747         * target.h (struct gcc_target): Add valid_option_attribute_p,
6748         target_option_save, target_option_restore, target_option_print,
6749         target_option_pragma_parse, and can_inline_p hooks.
6750
6751         * toplev.h (parse_optimize_options): Add declaration.
6752         (fast_math_flags_struct_set_p): Ditto.
6753
6754         * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): New function to
6755         adjust the current __OPTIMIZE__, etc. macros when #pragma GCC
6756         optimize is used.
6757
6758         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Call
6759         tree_can_inline_p hook to see if one function can inline another.
6760         (cgraph_decide_inlining): Ditto.
6761         (cgraph_decide_inlining_incrementally): Ditto.
6762
6763         * opts.c (decode_options): Add support for running multiple times
6764         to allow functions with different target or optimization options
6765         than was specified on the command line.
6766         (fast_math_flags_struct_set_p): New function that is similar to
6767         fast_math_flags_set_p, except it uses the values in the
6768         cl_optimization structure instead of global variables.
6769
6770         * optc-gen.awk: Add support for TargetSave to allow a back end to
6771         declare new fields that need to be saved when using function
6772         specific options.  Include flags.h and target.h in the options.c
6773         source.  Add support for Save to indicate which options can be set
6774         for individual functions.  Generate cl_optimize_save,
6775         cl_optimize_restore, cl_optimize_print, cl_target_option_save,
6776         cl_target_option_restore, cl_target_option_print functions to
6777         allow functions to use different optimization or target options.
6778
6779         * opt-functions.awk (var_type_struct): Return the type used for
6780         storing the field in a structure.
6781
6782         * opth-gen.awk: Add support for TargetSave to allow a back end to
6783         declare new fields that need to be saved when using function
6784         specific options.  Add support for Save to indicate which options
6785         can be set for individual functions.  Only generate one extern for
6786         Mask fields.  Generate cl_optimization and cl_target_option
6787         structures to remember optimization and target options.
6788
6789         * treestruct.def (TS_OPTIMIZATION): Add support for garbage
6790         collecting new tree nodes.
6791         (TS_TARGET_OPTION): Ditto.
6792
6793         * c-decl.c (merge_decls): Merge function specific target and
6794         optimization options.
6795
6796         * function.c (invoke_set_current_function_hook): If the function
6797         uses different optimization options, change the global variables
6798         to reflect this.
6799
6800         * coretypes.h (struct cl_optimization): Add forward reference.
6801         (struct cl_target_option): Ditto.
6802
6803         * c-pragma.c (option_stack): New static vector to remember the
6804         current #pragma GCC option stack.
6805         (handle_pragma_option): New function to support #pragma GCC option
6806         to change target options.
6807         (optimize_stack): New static vector to remember the current
6808         #pragma GCC optimize stack.
6809         (handle_pragma_optimize): New function to support #pragma GCC
6810         optimize to change optimization options.
6811         (init_pragma): Add support for #pragma GCC optimize and #pragma
6812         GCC option.
6813
6814         * tree.def (OPTIMIZATION_NODE): New tree code for remembering
6815         optimization options.
6816         (TARGET_OPTION_NODE): New tree code for remembering certain target
6817         options.
6818
6819         * print-tree.c (print_node): Add support for OPTIMIZATION_NODE and
6820         TARGET_OPTION_NODE trees.
6821
6822         * common.opt (-O): Add Optimization flag.
6823         (-Os): Ditto.
6824         (-fmath-errno): Ditto.
6825         (-falign-functions): Add UInteger flag to make sure flag gets full
6826         int in cl_optimization structure.
6827         (-falign-jumps): Ditto.
6828         (-falign-labels): Ditto.
6829         (-falign-loops): Ditto.
6830         (-fsched-stalled-insns): Ditto.
6831         (-fsched-stalled-insns-dep): Ditto.
6832
6833         * target-def.h (TARGET_VALID_OPTION_ATTRIBUTE_P): Add default
6834         definition.
6835         (TARGET_OPTION_SAVE): Ditto.
6836         (TARGET_OPTION_RESTORE): Ditto.
6837         (TARGET_OPTION_PRINT): Ditto.
6838         (TARGET_OPTION_PRAGMA_PARSE): Ditto.
6839         (TARGET_CAN_INLINE_P): Ditto.
6840         (TARGET_INITIALIZER): Add new hooks.
6841
6842         * tree-inline.c (tree_can_inline_p): New function to determine
6843         whether one function can inline another.  Check if the functions
6844         use compatible optimization options, and also call the backend
6845         can_inline_p hook.
6846
6847         * tree-inline.h (tree_can_inline_p): Add declaration.
6848
6849         * c-common.c (c_common_attribute): Add support for option and
6850         optimize attributes.
6851         (handle_option_attribute): Add support for the option attribute to
6852         allow the user to specify different target options for compiling a
6853         specific function.
6854         (handle_optimize_attribute): Add support for the optimize
6855         attribute to allow the user to specify different optimization
6856         options for compiling a specific function.
6857         (handle_hot_attribute): Turn on -O3 optimization for this one
6858         function if it isn't the default optimization level.
6859         (handle_cold_attribute): Turn on -Os optimization for this one
6860         function if it insn't the default optimization.
6861         (const_char_p): New const char * typedef.
6862         (optimize_args): New static vector to remember the optimization
6863         arguments.
6864         (parse_optimize_options): New function to set up the optimization
6865         arguments from either the optimize attribute or #pragma GCC optimize.
6866
6867         * c-common.h (c_cpp_builtins_optimize_pragma): Add declaration.
6868         (builtin_define_std): Ditto.
6869
6870         * config.gcc (i[3467]86-*-*): Add i386-c.o to C/C++ languages.
6871         Add t-i386 Makefile fragment to add i386-c.o and i386.o dependencies.
6872         (x86_64-*-*): Ditto.
6873
6874         * Makefile.in (TREE_H): Add options.h.
6875         (options.o): Add $(TARGET_H) $(FLAGS_H) dependencies.
6876
6877         * doc/extend.texi (option attribute): Document new attribute.
6878         (optimize attribute): Ditto.
6879         (hot attribute): Document hot attribute sets -O3.
6880         (cold attribute): Document cold attribute sets -Os.
6881         (#pragma GCC option): Document new pragma.
6882         (#pragma GCC optimize): Ditto.
6883
6884         * doc/options.texi (TargetSave): Document TargetSave syntax.
6885         (UInteger): Document UInteger must be used for certain flags.
6886         (Save): Document Save option to create target specific options
6887         that can be saved/restored on a function specific context.
6888
6889         * doc/c-tree.texi (DECL_FUNCTION_SPECIFIC_TARGET): Document new macro.
6890         (DECL_FUNCTION_SPECIFIC_OPTIMIZATION): Ditto.
6891
6892         * doc/tm.texi (TARGET_VALID_OPTION_ATTRIBUTE_P): Document new hook.
6893         (TARGET_OPTION_SAVE): Ditto.
6894         (TARGET_OPTION_RESTORE): Ditto.
6895         (TARGET_OPTION_PRINT): Ditto.
6896         (TARGET_OPTION_PRAGMA_PARSE): Ditto.
6897         (TARGET_CAN_INLINE_P): Ditto.
6898
6899         * doc/invoke.texi (-mfpmath=sse+387): Document as an alias for
6900         -mfpmath=sse,387.
6901         (-mfpmath=both): Ditto.
6902
6903 2008-07-23  Michael Meissner  <gnu@the-meissners.org>
6904             Karthik Kumar  <karthikkumar@gmail.com>
6905
6906         * config/i386/i386.h (TARGET_ABM): Move switch into ix86_isa_flags.
6907         (TARGET_POPCNT): Ditto.
6908         (TARGET_SAHF): Ditto.
6909         (TARGET_AES): Ditto.
6910         (TARGET_PCLMUL): Ditto.
6911         (TARGET_CMPXCHG16B): Ditto.
6912         (TARGET_RECIP): Move switch into target_flags.
6913         (TARGET_FUSED_MADD): Ditto.
6914         (ix86_arch_features): Make an unsigned char type.
6915         (ix86_tune_features): Ditto.
6916         (OVERRIDE_OPTIONS): Add bool argument to override_options call.
6917         (TARGET_CPU_CPP_BUILTINS): Move into ix86_target_macros.
6918         (REGISTER_TARGET_PRAGMAS): Define, call ix86_register_pragmas.
6919
6920         * config/i386/i386.opt (arch): New TargetSave field to define
6921         fields that need to be saved for function specific option support.
6922         (tune): Ditto.
6923         (fpmath): Ditto.
6924         (branch_cost): Ditto.
6925         (ix86_isa_flags_explicit): Ditto.
6926         (tune_defaulted): Ditto.
6927         (arch_specified): Ditto.
6928         (-m128-long-double): Add Save flag to save option for target
6929         specific option support.
6930         (-m80387): Ditto.
6931         (-maccumulate-outgoing-args): Ditto.
6932         (-malign-double): Ditto.
6933         (-malign-stringops): Ditto.
6934         (-mfancy-math-387): Ditto.
6935         (-mhard-float): Ditto.
6936         (-mieee-fp): Ditto.
6937         (-minline-all-stringops): Ditto.
6938         (-minline-stringops-dynamically): Ditto.
6939         (-mms-bitfields): Ditto.
6940         (-mno-align-stringops): Ditto.
6941         (-mno-fancy-math-387): Ditto.
6942         (-mno-push-args): Ditto.
6943         (-mno-red-zone): Ditto.
6944         (-mpush-args): Ditto.
6945         (-mred-zone): Ditto.
6946         (-mrtd): Ditto.
6947         (-msseregparm): Ditto.
6948         (-mstack-arg-probe): Ditto.
6949         (-m32): Ditto.
6950         (-m64): Ditto.
6951         (-mmmx): Ditto.
6952         (-m3dnow): Ditto.
6953         (-m3dnowa): Ditto.
6954         (-msse): Ditto.
6955         (-msse2): Ditto.
6956         (-msse3): Ditto.
6957         (-msse4.1): Ditto.
6958         (-msse4.2): Ditto.
6959         (-msse4): Ditto.
6960         (-mno-sse4): Ditto.
6961         (-msse4a): Ditto.
6962         (-msse5): Ditto.
6963         (-mrecip): Move flag into target_flags.
6964         (-mcld): Ditto.
6965         (-mno-fused-madd): Ditto.
6966         (-mfused-madd): Ditto.
6967         (-mabm): Move flag into ix86_isa_flags.
6968         (-mcx16): Ditto.
6969         (-mpopcnt): Ditto.
6970         (-msahf): Ditto.
6971         (-maes): Ditto.
6972         (-mpclmul): Ditto.
6973
6974         * config/i386/i386-c.c: New file for #pragma support.
6975         (ix86_target_macros_internal): New function to #define or #undef
6976         target macros based when the user uses the #pragma GCC option to
6977         change target options.
6978         (ix86_pragma_option_parse): New function to add #pragma GCC option
6979         support.
6980         (ix86_target_macros): Move defining the target macros here from
6981         TARGET_CPU_CPP_BUILTINS in i386.h.
6982         (ix86_register_pragmas): Register the #pragma GCC option hook.  If
6983         defined, initialize any subtarget #pragmas.
6984
6985         * config/i386/darwin.h (REGISTER_SUBTARGET_PRAGMAS): Rename from
6986         REGISTER_TARGET_PRAGMAS.
6987
6988         * config/i386/t-i386: New file for x86 dependencies.
6989         (i386.o): Make dependencies mirror the include files used.
6990         (i386-c.o): New file, add dependencies.
6991
6992         * config/i386/i386-protos.h (override_options): Add bool argument.
6993         (ix86_valid_option_attribute_tree): Add declaration.
6994         (ix86_target_macros): Ditto.
6995         (ix86_register_macros): Ditto.
6996
6997         * config/i386/i386.c (ix86_tune_features): Move initialization of
6998         the target masks to initial_ix86_tune_features to allow functions
6999         to have different target options.  Make type unsigned char,
7000         instead of unsigned int.
7001         (initial_ix86_tune_features): New static vector to hold processor
7002         masks for the tune variables.
7003         (ix86_arch_features): Move initialization of the target masks to
7004         initial_ix86_arch_features to allow functions to have different
7005         target options.  Make type unsigned char, instead of unsigned int.
7006         (initial_ix86_arch_features): New static vector to hold processor
7007         masks for the arch variables.
7008         (enum ix86_function_specific_strings): New enum to describe the
7009         string options used for attribute((option(...))).
7010         (ix86_target_string): New function to return a string that
7011         describes the target options.
7012         (ix86_debug_options): New function to print the current options in
7013         the debugger.
7014         (ix86_function_specific_save): New function hook to save the
7015         function specific global variables in the cl_target_option structure.
7016         (ix86_function_specific_restore): New function hook to restore the
7017         function specific variables from the cl_target_option structure to
7018         the global variables.
7019         (ix86_function_specific_print): New function hook to print the
7020         target specific options in the cl_target_option structure.
7021         (ix86_valid_option_attribute_p): New function hook to validate
7022         attribute((option(...))) arguments.
7023         (ix86_valid_option_attribute_tree): New function that is common
7024         code between attribute((option(...))) and #pragma GCC option
7025         support that parses the options and returns a tree holding the options.
7026         (ix86_valid_option_attribute_inner_p): New helper function for
7027         ix86_valid_option_attribute_tree.
7028         (ix86_can_inline_p): New function hook to decide if one function
7029         can inline another on a target specific basis.
7030         (ix86_set_current_function); New function hook to switch target
7031         options if the user used attribute((option(...))) or #pragma GCC
7032         option.
7033         (ix86_tune_defaulted): Move to static file scope from
7034         override_options.
7035         (ix86_arch_specified): Ditto.
7036         (OPTION_MASK_ISA_AES_SET): New macro for moving switches into
7037         ix86_isa_flags.
7038         (OPTION_MASK_ISA_PCLMUL_SET): Ditto.
7039         (OPTION_MASK_ISA_ABM_SET): Ditto.
7040         (OPTION_MASK_ISA_POPCNT_SET): Ditto.
7041         (OPTION_MASK_ISA_CX16_SET): Ditto.
7042         (OPTION_MASK_ISA_SAHF_SET): Ditto.
7043         (OPTION_MASK_ISA_AES_UNSET): Ditto.
7044         (OPTION_MASK_ISA_PCLMUL_UNSET): Ditto.
7045         (OPTION_MASK_ISA_ABM_UNSET): Ditto.
7046         (OPTION_MASK_ISA_POPCNT_UNSET): Ditto.
7047         (OPTION_MASK_ISA_CX16_UNSET): Ditto.
7048         (OPTION_MASK_ISA_SAHF_UNSET): Ditto.
7049         (struct ptt): Move to static file scope from override_options.
7050         (processor_target_table): Ditto.
7051         (cpu_names): Ditto.
7052         (ix86_handle_option): Add support for options that are now isa options.
7053         (override_options): Add support for declaring functions that
7054         support different target options than were specified on the
7055         command line.  Move struct ptt, processor_target_table, cpu_names,
7056         ix86_tune_defaulted, ix86_arch_specified to static file scope.
7057         Add bool argument.  Fix up error messages so the appropriate error
7058         is given for either command line or attribute.
7059         (ix86_previous_fndecl): New static to remember previous function
7060         declaration to see if we need to change target options.
7061         (ix86_builtins_isa): New array to record the ISA of each builtin
7062         function.
7063         (def_builtin): Always create the builtin function, even if the
7064         current ISA doesn't support it.
7065         (ix86_init_mmx_sse_builtins): Remove TARGET_AES and TARGET_PCLMUL
7066         tests for those builtins.
7067         (ix86_init_builtins): Remove TARGET_MMX test for calling
7068         ix86_init_mmx_sse_builtins.
7069         (ix86_expand_builtin): If the current ISA doesn't support a given
7070         builtin, signal an error.
7071         (TARGET_VALID_OPTION_ATTRIBUTE_P): Set target hook.
7072         (TARGET_SET_CURRENT_FUNCTION): Ditto.
7073         (TARGET_OPTION_SAVE): Ditto.
7074         (TARGET_OPTION_RESTORE): Ditto.
7075         (TARGET_OPTION_PRINT): Ditto.
7076         (TARGET_CAN_INLINE_P): Ditto.
7077
7078 2008-07-22  Rafael Ávila de Espíndola  <espindola@google.com>
7079
7080         * c-typeck.c (build_external_ref): Don't call assemble_external.
7081         * final.c (output_operand): Call assemble_external.
7082
7083 2008-07-21  DJ Delorie  <dj@redhat.com>
7084
7085         * config/h8300/h8300.c (h8300_hard_regno_scratch_ok): New.
7086         (TARGET_HARD_REGNO_SCRATCH_OK): Define.
7087
7088 2008-07-21  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7089
7090         * config/spu/spu.md ("div<mode>3"): Convert into expander, move
7091         original insn and splitter contents into ...
7092         ("*div<mode>3_fast"): ... this new pattern.  Enable only if
7093         flag_unsafe_math_optimizations.  Add dummy scratch register.
7094         ("*div<mode>3_adjusted"): New insn and splitter.  Enable only if
7095         !flag_unsafe_math_optimizations.  Returns number with next
7096         highest magnitude if this is still less or equal to the true
7097         quotient in magnitude.
7098
7099 2008-07-21  Rafael Ávila de Espíndola  <espindola@google.com>
7100
7101         * Makefile.in: Replace toplev.h with TOPLEV_H.
7102         * c-decl.c (merge_decls): Don't set DECL_IN_SYSTEM_HEADER.
7103         * c-lex.c (fe_file_change): Don't set in_system_header.
7104         * c-parser.c (c_token): Remove in_system_header.
7105         (c_lex_one_token): Don't set in_system_header.
7106         (c_parser_set_source_position_from_token): Don't set in_system_header.
7107         * diagnostic.c (diagnostic_report_diagnostic): Use location from
7108         diagnostic_info.
7109         (warning_at): New.
7110         * diagnostic.h (diagnostic_report_warnings_p): Add LOC argument.
7111         * flags.h (in_system_header): Remove.
7112         * function.c (saved_in_system_header): Remove.
7113         (push_cfun): Don't set in_system_header.
7114         (pop_cfun): Don't set in_system_header.
7115         (push_struct_function): Don't set in_system_header.
7116         * input.h (expanded_location): Add sysp.
7117         (in_system_header_at): New.
7118         (in_system_header): New.
7119         * toplev.c (in_system_header): Remove.
7120         * toplev.h: Include input.h
7121         (warning_at): New.
7122         * tree-cfg.c (execute_warn_function_return): Call warning_at.
7123         * tree-ssa.c (warn_uninit): Call warning_at.
7124         (warn_uninitialized_var): Update calls to warn_uninit.
7125         (warn_uninitialized_phi): Update calls to warn_uninit.
7126         * tree.c (make_node_stat): Don't set DECL_IN_SYSTEM_HEADER.
7127         (expand_location): Initialize xloc.sysp.
7128         * tree.h (DECL_IN_SYSTEM_HEADER): Use in_system_header_at.
7129         (tree_decl_with_vis): Remove in_system_header_flag.
7130
7131 2008-07-21  Andreas Krebbel  <krebbel1@de.ibm.com>
7132
7133         PR target/36822
7134         * recog.c (asm_operand_ok): Change the order of the extra
7135         memory constraint checks.
7136
7137 2008-07-20  Andrew Pinski  <andrew_pinski@playstation.sony.com>
7138
7139         PR tree-opt/36879
7140         * tree-switch-conversion.c (build_one_array): Call
7141         varpool_mark_needed_node and varpool_finalize_decl
7142         instead of assemble_variable.
7143
7144 2008-07-19  Jan Hubicka  <jh@suse.cz>
7145
7146         * cgraph.c (cgraph_add_new_function): Do early local passes.
7147         * tree-nrv.c (gate_pass_return_slot): New gate.
7148         (pass_nrv): Add the gate.
7149         * tree-ssa-coalese.c (hash_ssa_name_by_var, eq_ssa_name_by_var): New
7150         functions.
7151         (coalesce_ssa_name): Coalesce SSA names.
7152         * tree-ssa-live.c (remove_unused_locals): Be more conservative when
7153         not optimizing so unused user vars remains visible.
7154         * common.opt (flag_tree_ter): Always enable by default.
7155         * tree-ssa-ter.c: Include flags.h
7156         (is_replaceable_p): Check that locations match; when aliasing is missing
7157         be conservative about loads.
7158         * tree-optimize.c (gate_init_datastructures): Remove.
7159         (pass_init_datastructures): New.
7160         * passes.c: Reorder passes so we always go into SSA.
7161
7162 2008-07-19  Jan Hubicka  <jh@suse.cz>
7163
7164         * doc/extend.texi (flatten attribute): Remove note about unit-at-a-time
7165         * doc/invoke.texi (--combine): Likewise.
7166         (-finline-functions-called-once): Update levels when enabled.
7167         (-funit-at-a-time): Document new behaviour.
7168         (-ftoplevel-reorder): Document that it is enabled -O0 and imply
7169         -fno-section-anchors when disabled explicitly.
7170         (inline params): They are not ignored now.
7171         (precompiled headers): Remove unit-at-a-time as being incompatible.
7172         * opts.c (decode_options): Handle unit-at-a-time as alias;
7173         imply -fno-section-anchors when toplevel reorder is disabled
7174         explicitly.
7175         * common.opt (ftoplevel-reorder): Set default value to 2.
7176         (funit-at-a-time): Set default value to 1.
7177         * config/rs6000/rs6000.c (optimization_options): Set section anchors
7178         to 2.
7179
7180 2008-07-19  Jan Hubicka  <jh@suse.cz>
7181
7182         * builtins.c (expand_builtin_int_roundingfn,
7183         expand_builtin_int_roundingfn_2): Do not take subtarget argument;
7184         it is not useful.
7185
7186 2008-07-19  Richard Guenther  <rguenther@suse.de>
7187
7188         PR bootstrap/36864
7189         * tree-ssa-sccvn.h (get_constant_value_id): Declare.
7190         * tree-ssa-sccvn.c (get_constant_value_id): New function.
7191         * tree-ssa-pre.c (get_expr_value_id): For newly created
7192         constant value-ids make sure to add the expression to its
7193         expression-set.
7194
7195 2008-07-19  Jakub Jelinek  <jakub@redhat.com>
7196
7197         PR middle-end/36877
7198         * omp-low.c (expand_omp_atomic_fetch_op): Make sure the
7199         return value of the builtin is ignored.
7200
7201 2008-07-19  Olivier Hainque  <hainque@adacore.com>
7202
7203         * doc/tm.texi (MALLOC_ABI_ALIGNMENT): New macro. Alignment, in
7204         bits, a C conformant malloc implementation has to provide.
7205         * defaults.h (MALLOC_ABI_ALIGNMENT): Default to BITS_PER_WORD.
7206
7207 2008-07-19  Joseph Myers  <joseph@codesourcery.com>
7208
7209         PR target/36780
7210         PR target/36827
7211         * reload.c (find_reloads_subreg_address): Only reload address if
7212         reloaded == 0, not for reloaded != 1.
7213
7214         Revert:
7215         2008-07-16  Joseph Myers  <joseph@codesourcery.com>
7216         * config/m32c/m32c.c (BIG_FB_ADJ): Move definition earlier.
7217         (m32c_legitimate_address_p): Handle "++rii" addresses created by
7218         m32c_legitimize_reload_address.
7219
7220         2008-07-15  Kaz Kojima  <kkojima@gcc.gnu.org>
7221         * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Allow
7222         (plus (plus (reg) (const_int)) (const_int)) when reload_in_progress.
7223
7224 2008-07-19  Olivier Hainque  <hainque@adacore.com>
7225
7226         * dwarf2out.c (add_subscript_info): New explicit COLLAPSE_P
7227         argument, saying whether nested array are to be collapsed
7228         into a single array type DIE with multiple subscripts.
7229         (gen_array_type_die): Factorize comments about the MIPS_DEBUG_INFO
7230         issues, centralize the nested array types collapsing control and
7231         disable the transformation for Ada.
7232
7233 2008-07-18  Uros Bizjak  <ubizjak@gmail.com>
7234
7235         PR target/36786
7236         * config/i386/i386.md (x86_64_shift_adj_1): Rename from
7237         x86_64_shift_adj.
7238         (x86_64_shift_adj_2): New expander.
7239         (x86_64_shift_adj_3): Ditto.
7240         * config/i386/i386.c (ix86_split_ashr): Use gen_x86_64_shift_adj_3
7241         to split TImode operands.
7242         (ix86_split_ashl): Use gen_x86_64_shift_adj_2 to split TImode operands.
7243         (ix86_split_lshr): Ditto.
7244
7245 2008-07-18  Kris Van Hees  <kris.van.hees@oracle.com>
7246
7247         * c-common.c (c_stddef_cpp_builtins): Define __CHAR16_TYPE__
7248         and __CHAR32_TYPE__.
7249         * c-typeck.c (digest_init): Support char16_t and char32_t.
7250         (set_nonincremental_init_from_string): Idem.
7251
7252 2008-07-18  H.J. Lu  <hongjiu.lu@intel.com>
7253
7254         PR middle-end/36859
7255         * builtins.c (std_gimplify_va_arg_expr): Limit alignment to
7256         PREFERRED_STACK_BOUNDARY.
7257         * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
7258
7259 2008-07-18  H.J. Lu  <hongjiu.lu@intel.com>
7260
7261         PR middle-end/36858
7262         * function.c (locate_and_pad_parm): Cap boundary earlier.
7263
7264 2008-07-17  Julian Brown  <julian@codesourcery.com>
7265
7266         * config/arm/arm.c (arm_cxx_determine_class_data_visibility): Make
7267         no-op for targets which don't use DLLs.
7268
7269 2008-07-17  Martin Jambor  <mjambor@suse.cz>
7270
7271         * ipa-cp.c (ipcp_print_all_lattices): New variable info, check
7272         that nodes are relevant by examining the node->analyzed flag.
7273         (ipcp_init_stage): Check which nodes are relevant, assert that the
7274         relevant ones are also required.
7275         (ipcp_propagate_stage): Check on the side arrays are properly
7276         allocated.
7277         (ipcp_print_all_jump_functions): Make sure not to touch any node
7278         that is not analyzed or an edge that does not have a corresponding
7279         entry in the on-the-side vectors.
7280         (ipcp_function_scale_print): Likewise.
7281         (ipcp_update_callgraph): Check that the node is relevant.
7282         (ipcp_insert_stage): Check that the node is relevant.  Check there is
7283         an info for every node and edge.
7284         * ipa-prop.c (ipa_init_func_list): Check the nodes are relevant.
7285         (ipa_print_all_tree_maps): Likewise and a new variable info.
7286         (ipa_print_all_params_modified): Likewise.
7287         * ipa-prop.h (ipa_edge_args_info_available_for_edge_p): New function.
7288
7289 2008-07-17  Roman Zippel <zippel@linux-m68k.org>
7290
7291         PR target/25343
7292         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for __mc68000__.
7293
7294 2008-07-17  Paolo Bonzini  <bonzini@gnu.org>
7295
7296         PR rtl-optimization/36753
7297         * fwprop.c (use_killed_between): Don't shortcut
7298         single-definition global registers.
7299
7300 2008-07-16  Jan Hubicka  <jh@suse.cz>
7301
7302         * cgraph.h (varpool_empty_needed_queue): Declare.
7303         * cgraphunit.c (output_in_order): Mark all variables as needed;
7304         empty the queue.
7305         * varpool.c (varpool_assemble_node): Update debug queue.
7306         (varpool_assemble_pending_decls): Don't do it here.
7307         (varpool_empty_needed_queue):  New function.
7308
7309 2008-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7310
7311         * recog.c (peephole2_optimize): Fix formatting.
7312
7313 2008-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7314
7315         * c-pch.c (get_ident): Avoid C++ keywords.
7316         * combine-stack-adj.c (single_set_for_csa): Likewise.
7317         * final.c (asm_insn_count, final_scan_insn, alter_subreg,
7318         output_asm_insn): Likewise.
7319         * reload.c (push_secondary_reload, find_reusable_reload,
7320         push_reload, combine_reloads, find_reloads,
7321         debug_reload_to_stream): Likewise.
7322         * reload.h (struct reload): Likewise.
7323         * reload1.c (reload_reg_class_lower, find_reg, find_reload_regs,
7324         allocate_reload_reg, choose_reload_regs, emit_input_reload_insns,
7325         emit_output_reload_insns): Likewise.
7326         * targhooks.c (default_secondary_reload): Likewise.
7327         * varasm.c (section_entry_eq, object_block_entry_eq): Likewise.
7328
7329 2008-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7330
7331         * recog.c (validate_change_1, validate_change,
7332         validate_unshare_change, validate_replace_rtx_1, struct
7333         funny_match, constrain_operands, peephole2_optimize): Avoid C++
7334         keywords.
7335         * reload.c (push_secondary_reload, secondary_reload_class,
7336         scratch_reload_class, find_valid_class, find_reusable_reload,
7337         push_reload, find_dummy_reload, find_reloads_address_1,
7338         find_reloads_address_part, find_equiv_reg): Likewise.
7339         * reload1.c (spill_failure, eliminate_regs_1, allocate_reload_reg,
7340         choose_reload_regs): Likewise.
7341         * rtlanal.c (replace_rtx, nonzero_bits1, num_sign_bit_copies1):
7342         Likewise.
7343         * rtlhooks.c (gen_lowpart_if_possible): Likewise.
7344         * sched-ebb.c (add_deps_for_risky_insns): Likewise.
7345         * sched-rgn.c (concat_INSN_LIST): Likewise.
7346         * stor-layout.c (mode_for_size, mode_for_size_tree,
7347         smallest_mode_for_size): Likewise.
7348
7349 2008-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7350
7351         * cfg.c (dump_reg_info): Avoid C++ keywords.
7352         * dwarf2asm.c (dw2_force_const_mem,
7353         dw2_asm_output_encoded_addr_rtx): Likewise.
7354         * except.c (gen_eh_region, add_action_record, output_ttype): Likewise.
7355         * expmed.c (expand_shift): Likewise.
7356         * global.c (find_reg): Likewise.
7357         * graph.c (draw_edge): Likewise.
7358         * local-alloc.c (reg_meets_class_p, find_free_reg): Likewise.
7359         * optabs.c (expand_binop, expand_twoval_unop, expand_twoval_binop,
7360         widen_clz, widen_bswap, expand_parity, expand_unop,
7361         emit_cmp_and_jump_insn_1): Likewise.
7362         * postreload.c (reload_cse_simplify_operands): Likewise.
7363         * ra.h (add_neighbor): Likewise.
7364         * reg-stack.c (remove_regno_note, change_stack): Likewise.
7365         * regclass.c (memory_move_secondary_cost, dump_regclass, regclass,
7366         record_reg_classes, copy_cost, record_address_regs,
7367         invalid_mode_change_p): Likewise.
7368         * regrename.c (regrename_optimize, scan_rtx_reg,
7369         dump_def_use_chain, find_oldest_value_reg,
7370         replace_oldest_value_reg, copyprop_hardreg_forward_1): Likewise.
7371
7372 2008-07-16  David Edelsohn  <edelsohn@gnu.org>
7373
7374         * config/rs6000/rs6000.c (processor_target_table): Remove duplicate
7375         MASK_POWERPC64 for power4 in previous commit.
7376
7377 2008-07-16  Olivier Hainque  <hainque@adacore.com>
7378
7379         * collect2.c (scan_prog_file, COFF version): Use CONST_CAST
7380         instead of bare conversion to cast const-ness away.
7381
7382 2008-07-16  Anatoly Sokolov  <aesok@post.ru>
7383
7384         * config/xtensa/xtensa.h (FUNCTION_OUTGOING_VALUE,
7385         XTENSA_FUNCTION_VALUE, XTENSA_FUNCTION_VALUE): Remove.
7386         * config/xtensa/xtensa.c (xtensa_function_value): New function.
7387         (TARGET_FUNCTION_VALUE): Define.
7388
7389 2008-07-16  David Edelsohn  <edelsohn@gnu.org>
7390
7391         * config/rs6000/rs6000.c (processor_target_table): Add
7392         MASK_PPC_GPOPT for power4, power5, power5+, power6, and power6x.
7393
7394 2008-07-16  Joseph Myers  <joseph@codesourcery.com>
7395
7396         PR target/36827
7397         * config/m32c/m32c.c (BIG_FB_ADJ): Move definition earlier.
7398         (m32c_legitimate_address_p): Handle "++rii" addresses created by
7399         m32c_legitimize_reload_address.
7400
7401 2007-07-16  Rafael Ávila de Espíndola  <espindola@google.com>
7402
7403         * c-decl.c (merge_decls): Keep DECL_SOURCE_LOCATION and
7404         DECL_IN_SYSTEM_HEADER in sync.
7405
7406 2008-07-15  Daniel Berlin  <dberlin@dberlin.org>
7407
7408         * tree-ssa-sccvn.c (expressions_equal_p): Check type equality.
7409         * tree-ssa-pre.c (pre_expr_eq): Ditto
7410         (get_constant_for_value_id): Take a type as an argument.
7411         (fully_constant_expression): Pass in type.
7412         (find_or_generate_expression): Short circuit constant case.
7413         (create_expression_by_pieces): Remove special casing of
7414         pointer_plus.
7415         (do_regular_insertion): Short circuit constant case.
7416         (do_partial_partial_insertion): Ditto.
7417
7418 2008-07-15  Kaz Kojima  <kkojima@gcc.gnu.org>
7419
7420         PR target/36782
7421         * config/sh/sh.md (symGOT_load): Don't add REG_EQUAL note.
7422
7423 2008-07-15  Bob Wilson  <bob.wilson@acm.org>
7424
7425         * config/xtensa/libgcc-xtensa.ver: New file.
7426         * config/xtensa/t-linux (SHLIB_MAPFILES): Append libgcc-xtensa.ver.
7427
7428 2008-07-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7429
7430         * df-problems.c (df_set_note): Avoid C++ keywords.
7431         * df-scan.c (df_ref_change_reg_with_loc_1): Likewise.
7432         * dse.c (record_store, remove_useless_values): Likewise.
7433         * emit-rtl.c (gen_reg_rtx, update_reg_offset, gen_rtx_REG_offset,
7434         gen_reg_rtx_offset, operand_subword, change_address_1,
7435         change_address, adjust_address_1, offset_address,
7436         widen_memory_access, emit_copy_of_insn_after): Likewise.
7437         * explow.c (round_push, allocate_dynamic_stack_space): Likewise.
7438         * fwprop.c (should_replace_address, propagate_rtx_1,
7439         propagate_rtx, try_fwprop_subst, forward_propagate_and_simplify):
7440         Likewise.
7441         * gcse.c (cprop_jump, find_implicit_sets, bypass_block,
7442         gcse_emit_move_after, update_ld_motion_stores): Likewise.
7443         * lcm.c (compute_insert_delete, pre_edge_lcm,
7444         compute_rev_insert_delete, pre_edge_rev_lcm): Likewise.
7445         * lower-subreg.c (resolve_reg_notes): Likewise.
7446         * mode-switching.c (optimize_mode_switching): Likewise.
7447
7448 2008-07-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7449
7450         * bt-load.c (add_btr_def, migrate_btr_def,
7451         branch_target_load_optimize): Avoid C++ keywords.
7452         * caller-save.c (insert_restore, insert_save, insert_one_insn):
7453         Likewise.
7454         * combine.c (subst, simplify_set, make_extraction,
7455         make_compound_operation, known_cond, simplify_shift_const_1): Likewise.
7456         * cse.c (make_regs_eqv, merge_equiv_classes, validate_canon_reg,
7457         fold_rtx, equiv_constant, cse_insn, cse_process_notes_1): Likewise.
7458
7459 2008-07-15  Richard Guenther  <rguenther@suse.de>
7460
7461         PR middle-end/36369
7462         * c-common.c (strict_aliasing_warning): Do not warn for
7463         TYPE_REF_CAN_ALIAS_ALL pointers.
7464         (c_common_get_alias_set): may_alias types are not special.
7465         * tree.c (build_pointer_type_for_mode): Look up the may_alias
7466         attribute and set can_ref_all accordingly.
7467         (build_reference_type_for_mode): Likewise.
7468         * doc/extend.texi (may_alias): Clarify.
7469
7470 2008-07-15  Kaz Kojima  <kkojima@gcc.gnu.org>
7471
7472         PR target/36780
7473         * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Allow
7474         (plus (plus (reg) (const_int)) (const_int)) when reload_in_progress.
7475
7476 2008-07-15  Andrew Pinski  <andrew_pinski@playstation.sony.com>
7477
7478         PR target/31568
7479         * config/rs6000/rs6000.c (print_operand <case 'y'>): Don't use
7480         gcc_assert, instead call output_operand_lossage.
7481
7482 2008-07-15  Kai Tietz  <kai.tietz@onevision.com>
7483
7484         * builtins.c (std_canonical_va_list): Treat structure based
7485         va_list types.
7486
7487 2008-07-15  Ben Elliston  <bje@au.ibm.com>
7488
7489         * emit-rtl.c (set_mem_attributes_minus_bitpos): Improve comment.
7490
7491 2007-07-14  Rafael Ávila de Espíndola  <espindola@google.com>
7492
7493         * c-decl.c (diagnose_mismatched_decls): Don't warn if TREE_NO_WARNING
7494         is set.
7495
7496 2008-07-14  Jan Hubicka  <jh@suse.cz>
7497
7498         * i386.md (sse5 cmov pattern): Update call of ix86_sse5_valid_op_p
7499         * sse.md (sse5 patterns): Update call of ix86_sse5_valid_op_p;
7500         fix predicates and constraints.
7501         * i386.c (ix86_sse5_valid_op_p): Add commutative parameter.
7502         * i386-protos.h (ix86_sse5_valid_op_p): Update declaration.
7503
7504 2008-07-14  Doug Kwan  <dougkwan@google.com>
7505
7506         * config.gcc (arm*-*-eabi*): Include arm/eabi.h and use
7507         additional option file arm/eabi.opt.
7508         * config/arm/eabi.h (File): New configuration file for EABI targets.
7509         * config/arm/elf.h (SUBTARGET_EXTRA_SPECS): Add
7510         SUBSUBTARGET_EXTRA_SPECS.
7511         (SUBSUBTARGET_EXTRA_SPECS): Provide empty default.
7512         * config/arm/unknown-elf.h (UNKNOWN_ELF_STARTFILE_SPEC): Renamed
7513         from STARTFILE_SPEC so that it can be referenced in an override.
7514         (STARTFILE_SPEC): Use UNKNOWN_ELF_STARTFILE_SPEC.
7515         (UNKNOWN_ELF_ENDFILE_SPEC): Renamed from ENDFILE_SPEC so that it
7516         can be referenced in an override.
7517         (ENDFILE_SPEC): Use UNKNOWN_ELF_ENDFILE_SPEC.
7518         * config/arm/bpabi.h (BPABI_LINK_SPEC): Renamed from LINK_SPEC
7519         so that it can be referenced in an override.
7520         (LINK_SPEC): Use BPABI_LINK_SPEC.
7521         * config/arm/eabi.opt (File): New.
7522
7523 2008-07-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7524
7525         * Makefile.in (TARGET_DEF_H): Add targhooks.h.
7526         (FIXED_VALUE_H): New variable.
7527         (RTL_BASE_H): Use $(INPUT_H) and $(FIXED_VALUE_H) instead of
7528         input.h, fixed-value.h.
7529         (TREE_H): Use $(INPUT_H), add $(SYMTAB_H).
7530         (BASIC_BLOCK_H): Use $(BITMAP_H).
7531         (FUNCTION_H): Add varray.h.
7532         (IPA_REFERENCE_H): Use $(BITMAP_H).
7533         (CGRAPH_H): Add $(BASIC_BLOCK_H).
7534         (DF_H): Use $(BITMAP_H).
7535         (GGC_H): Add statistics.h.
7536         (INSN_ADDR_H): New.
7537         (INSN_ATTR_H): Use it.
7538         (SYSTEM_H): Add safe-ctype.h, filenames.h.
7539         (INPUT_H): New.
7540         (SYMTAB_H): Add $(OBSTACK_H).
7541         (CPP_INTERNAL_H): New.
7542         (TREE_DUMP_H): Add tree-pass.h.
7543         (TREE_FLOW_H): Use $(BITMAP_H)
7544         (PRETTY_PRINT_H): Use $(INPUT_H).
7545         (EBITMAP_H): Rename from typo-ed EBIMAP_H.
7546         (GSTAB_H): New.
7547         (BITMAP_H): New.
7548         (many object files): Fix lots of header dependencies throughout.
7549
7550 2008-07-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7551
7552         * Makefile.in (write_entries_to_file, write_entries_to_file_split):
7553         New macros.
7554         (s-gtyp-input): Use them to write tmp-gi.list.
7555         (echo_to_gi.list): Remove.
7556
7557 2008-07-14  Richard Guenther  <rguenther@suse.de>
7558
7559         * tree-ssa-sccvn.c (pre_info): Remove.
7560         (switch_to_PRE_table): Likewise.
7561         (free_scc_vn): Do not clear SSA_NAME_VALUE.  Do not free pre_info.
7562         (set_hashtable_value_ids): Do not create value-ids for the
7563         optimistic tables.
7564         (run_scc_vn): Remove double test.  Remove bogus special-case
7565         in value-number printing.
7566         * tree-ssa-sccvn.h (switch_to_PRE_table): Remove.
7567         * tree-ssa-ccp.c (get_symbol_constant_value): Do not look at
7568         SSA_NAME_VALUE.
7569         * tree-flow-inline.h (get_value_handle): Remove.
7570         * tree-flow.h (get_value_handle): Remove.
7571
7572 2008-07-14  Martin Jambor  <mjambor@suse.cz>
7573
7574         * tree-switch-conversion.c (gen_inbound_check): Make sure the type
7575         in which we generate arithmetics is not a subrange.
7576
7577 2008-07-14  Martin Jambor  <mjambor@suse.cz>
7578
7579         * Makefile.in (IPA_PROP_H): Added ipa-prop.h to IPA_PROP_H variable.
7580
7581 2008-07-14  Richard Guenther  <rguenther@suse.de>
7582
7583         * tree-ssa-pre.c (insert_into_preds_of_block): Do not call convert.
7584
7585 2008-07-14  Andreas Krebbel  <krebbel1@de.ibm.com>
7586
7587         PR target/36745
7588         * config/s390/s390.c: (s390_secondary_reload): Add a secondary
7589         reload for symbol refs moved to r0 with -fPIC.
7590         (legitimize_pic_address): Use the target register as temporary
7591         reg if possible.
7592         (emit_symbolic_move): Adjust comment.
7593         * config/s390/s390.md (reloadsi_PIC_addr, reloaddi_PIC_addr):
7594         New expanders.
7595
7596 2008-07-14  Ben Elliston  <bje@au.ibm.com>
7597
7598         * c-common.h (C_CPP_HASHNODE): New macro.
7599         * coretypes.h (struct cpp_token): Forward declare.
7600         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
7601         the context-sensitive keyword method.
7602         * config/rs6000/rs6000-c.c (__vector_keyword, vector_keyword,
7603         __pixel_keyword, pixel_keyword, __bool_keyword, bool_keyword,
7604         expand_bool_pixel): New.
7605         (altivec_categorize_keyword): New function.
7606         (init_vector_keywords): New function.
7607         (rs6000_macro_to_expand): Likewise.
7608         (rs6000_cpu_cpp_builtins): Enable context-sensitive macros if not
7609         compiling an ISO C dialect.
7610
7611 2008-07-13  Daniel Berlin  <dberlin@dberlin.org>
7612
7613         * tree-ssa-pre.c (fully_constant_expression): Add fold_convert calls.
7614         (create_expression_by_pieces): Fix typo.
7615         (do_regular_insertion): Use debug counter here too.
7616
7617 2008-07-14  Hans-Peter Nilsson  <hp@axis.com>
7618
7619         PR target/35492.
7620         * config/cris/cris.h (CRIS_CONST_OK_FOR_LETTER_P): Renamed from
7621         CONST_OK_FOR_LETTER_P.  All port-local users changed.
7622         (CONST_OK_FOR_CONSTRAINT_P): Define; implement Kc as old K,
7623         implement Kp matching power-of-two.
7624         (CONSTRAINT_LEN): Define to match.
7625         * config/cris/cris.md: Replace all use of constraint K with Kc.
7626         ("*btst*): Use Kp for operand 0 of last alternative.
7627
7628 2008-07-13  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7629
7630         PR testsuite/36440
7631         * tree-call-cdce.c (check_target_format): Accept MIPS single, double
7632         and quad formats.
7633
7634 2008-07-13  Jan Hubicka  <jh@suse.cz>
7635
7636         * tree.c (decl_assembler_name_equal): Expect assembler name of decl
7637         to be mangled too.
7638
7639 2008-07-13  Richard Guenther  <rguenther@suse.de>
7640
7641         PR middle-end/36811
7642         * langhooks.c (lhd_print_error_function): Deal with recursive
7643         BLOCK trees.
7644
7645 2008-07-12  Jan Hubicka  <jh@suse.cz>
7646
7647         * cgraph.c (assembler_name_hash): New static var.
7648         (hash_node_by_assembler_name, eq_assembler_name): New.
7649         (cgraph_node_for_asm): Use hashtable.
7650         (cgraph_remove_node): Maintain hashtable.
7651         (change_decl_assembler_name): Sanity check that names are not changing
7652         after aliasing was processed.
7653         * cgraph.h (varpoon_node): Add next GGC marker.
7654         * tree.c (decl_assembler_name_equal): Constify.
7655         (decl_assembler_name_hash): New.
7656         * tree.h (decl_assembler_name_equal): Constify.
7657         (decl_assembler_name_hash): Update.
7658
7659 2008-07-12  David Daney  <ddaney@avtrex.com>
7660
7661         * config/mips/driver-native.c (host_detect_local_cpu): Handle
7662         sb1 and r5000 cpus.
7663
7664 2008-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
7665
7666         * doc/md.texi: Document the MIPS "v" constraint.
7667         * config/mips/mips.h (reg_class): Revert last change.
7668         (REG_CLASS_NAMES): Likewise.
7669         (REG_CLASS_CONTENTS): Likewise.
7670         * config/mips/mips.c (mips_regno_to_class): Likewise.
7671         * config/mips/constraints.md (v): Likewise, but add documentation.
7672         Add a comment to say that this constraint should not be used in
7673         gcc code.
7674
7675 2008-07-11  DJ Delorie  <dj@redhat.com>
7676
7677         * config/h8300/h8300.md (length): Fix branch offset limit.
7678
7679 2008-07-11  Anatoly Sokolov  <aesok@post.ru>
7680
7681         * config/avr/avr-protos.h (avr_peep2_scratch_safe): Remove prototype.
7682         * config/avr/avr.c (avr_peep2_scratch_safe): Remove.
7683         (avr_hard_regno_scratch_ok): New function.
7684         (TARGET_HARD_REGNO_SCRATCH_OK): Define.
7685         * config/avr/avr.md (all peepholes that request a scratch register):
7686         Remove avr_peep2_scratch_safe use.
7687
7688 2008-07-11  Tom Tromey  <tromey@redhat.com>
7689             Ian Lance Taylor  <iant@google.com>
7690
7691         * c-common.h (enum rid): Add RID_CXX_COMPAT_WARN.
7692         (struct c_common_resword): Define.
7693         (D_CONLY, D_CXXONLY, D_C99, D_CXX0X, D_EXT, D_EXT89): Define.
7694         (D_ASM, D_OBJC, D_CXX_OBJC, D_CXXWARN): Define.
7695         (c_common_reswords, num_c_common_reswords): Declare.
7696         * c-common.c (c_common_reswords): New global const array.
7697         (num_c_common_reswords): New const int.
7698         * c-parser.c (struct resword, reswords): Don't define.
7699         (D_C89, D_EXT, D_EXT89, D_OBJC): Don't define.
7700         (c_parse_init): Clarify mask code.  Use c_common_reswords rather
7701         than reswords.  If warning about C++ keywords, give them a special
7702         RID code.
7703         (c_lex_one_token): Warn about C++ keywords.  Call
7704         objc_is_reserved_word rather than OBJC_IS_AT_KEYWORD.
7705         (c_parser_external_declaration): Look for RID_xxx rather than
7706         RID_AT_xxx, for ObjC++ keywords which are also C++ keywords.
7707         (c_parser_statement_after_labels): Likewise.
7708         (c_parser_objc_class_instance_variables): Likewise.
7709         (c_parser_objc_class_declaration): Likewise.
7710         (c_parser_objc_try_catch_statement): Likewise.
7711         * c-decl.c (c_print_identifier): Ignore RID_CXX_COMPAT_WARN.
7712         (declspecs_add_type): Likewise.
7713
7714 2008-07-11  Angelo Graziosi  <angelo.graziosi@alice.it>
7715
7716         * ggc-page.c (alloc_page):
7717         Substituting xmalloc, xcalloc with
7718         XNEWVEC and XCNEWVAR macros which add the
7719         needed casts.
7720
7721 2008-07-11  Richard Guenther  <rguenther@suse.de>
7722
7723         PR tree-optimization/36765
7724         * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Add
7725         aliases from HEAP vars to SMTs.
7726
7727 2008-07-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7728
7729         * Makefile.in (LOOSE_WARN, STRICT_WARN): Update comments.
7730         * configure.ac (loose_warn): Move -Wc++-compat from here...
7731         (strict_warn): ...to here.
7732         * configure: Regenerate.
7733
7734 2008-07-10  Joseph Myers  <joseph@codesourcery.com>
7735
7736         * config.gcc (arm-*-coff*, armel-*-coff*, h8300-*-*,
7737         i[34567]86-*-aout*, i[34567]86-*-coff*, m68k-*-aout*,
7738         m68k-*-coff*, sh-*-*, mips-sgi-irix[56]*, pdp11-*-bsd,
7739         rs6000-ibm-aix4.[12]*, powerpc-ibm-aix4.[12]*): Deprecate targets,
7740         excluding more specific h8300-*-* and sh-*-* targets.
7741
7742 2008-07-10  Daniel Berlin  <dberlin@dberlin.org>
7743
7744         * tree-ssa-pre.c (create_expression_by_pieces): Add fold_convert calls.
7745         (eliminate): Ditto.
7746         (execute_pre): Call loop_optimizer_finalize in early exit.
7747
7748 2008-07-10  Jakub Jelinek  <jakub@redhat.com>
7749
7750         PR middle-end/36790
7751         * omp-low.c (lower_omp_2): If task_shared_vars, test all DECL_P
7752         uids in the bitmap, not just VAR_DECL uids.
7753
7754         PR rtl-optimization/36419
7755         * combine-stack-adj.c (adjust_frame_related_expr): New function.
7756         (combine_stack_adjustments_for_block): Call it if needed.  Delete
7757         correct insn.
7758         * dwarf2out.c (dwarf2out_frame_debug_expr): Adjust
7759         DW_CFA_GNU_args_size if CSA pass merged some adjustments into
7760         prologue sp adjustment.
7761
7762 2008-07-10  Peter Maydell  <pmaydell@chiark.greenend.org.uk>
7763
7764         PR other/28322
7765         * opts.c (print_ignored_options): Report postponed diagnostics for
7766         unknown -Wno-* options as warnings, not errors.
7767         (postpone_unknown_option_error): Renamed to...
7768         (postpone_unknown_option_warning): ... this.
7769
7770 2008-07-09  Doug Kwan  <dougkwan@google.com>
7771
7772         Revert:
7773         2008-07-08  Doug Kwan  <dougkwan@google.com>
7774
7775         * config/arm/arm.opt (mandroid): New option.
7776         * config/arm/bpabi.h (ANDROID_LINK_SPEC): New macro.
7777         (LINK_SPEC): Enable Android specific behaviour when -mandroid is used.
7778         (CC1_SPEC): Same.
7779         (CC1PLUS_SPEC): Same.
7780         (LIB_SPEC): Same.
7781         (STARTFILE_SPEC): Same.
7782         (ENDFILE_SPEC): Same.
7783         (TARGET_BPABI_CPP_BUILTINS): Define __ANDROID__ when -mandroid is
7784         used.
7785
7786 2008-07-09  Richard Sandiford  <rdsandiford@googlemail.com>
7787
7788         PR target/35802
7789         * config/mips/mips.h (reg_class): Remove V1_REG.
7790         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update accordingly.
7791         * config/mips/mips.c (mips_regno_to_class): Map $3 to M16_NA_REGS
7792         instead of V1_REGS.
7793         (mips_get_tp): New function.
7794         (mips_legitimize_tls_address): Use it.
7795         * config/mips/constraints.md (v): Delete.
7796         * config/mips/mips.md (TLS_GET_TP_REGNUM): New constant.
7797         (tls_get_tp_<mode>): Allow any GPR destination and clobber $3.
7798         After reload, split into a move and ...
7799         (*tls_get_tp_<mode>_split): ...this new instruction.
7800
7801 2008-07-09  David Daney  <ddaney@avtrex.com>
7802
7803         * config/mips/driver-native.c: Include coretypes.h and tm.h.
7804
7805 2008-07-09  Jakub Jelinek  <jakub@redhat.com>
7806
7807         * gimplify.c (struct gimplify_ctx): Move to tree-gimple.h.
7808         (push_gimplify_context): Don't allocate temp_htab nor c itself here.
7809         Add c argument.
7810         (pop_gimplify_context): Check c->temp_htab instead of optimize whether
7811         htab_delete should be called.  Don't free c.
7812         (lookup_tmp_var): Create temp_htab lazily.
7813         (gimplify_scan_omp_clauses, gimplify_omp_parallel, gimplify_omp_task,
7814         gimplify_body, force_gimple_operand): Adjust push_gimplify_context
7815         callers.
7816         * omp-low.c (lower_omp_sections, lower_omp_single, lower_omp_master,
7817         lower_omp_ordered, lower_omp_critical, lower_omp_for,
7818         create_task_copyfn, lower_omp_taskreg, execute_lower_omp):
7819         * tree-ssa-ccp.c (convert_to_gimple_builtin): Likewise.
7820         * tree-sra.c (generate_element_init): Likewise.
7821         * tree-mudflap.c (execute_mudflap_function_ops,
7822         execute_mudflap_function_decls): Likewise.
7823         * tree-inline.c (setup_one_parameter, optimize_inline_calls): Likewise.
7824         * tree-gimple.h (struct gimplify_ctx): New type.
7825         (push_gimplify_context): Adjust prototype.
7826
7827 2008-07-09  Daniel Berlin  <dberlin@dberlin.org>
7828
7829         * tree-ssa-pre.c (phi_translate_1): Update placement of
7830         add_to_value calls.
7831
7832 2008-07-09  Anatoly Sokolov  <aesok@post.ru>
7833
7834         * target.h (struct gcc_target): Add hard_regno_scratch_ok field.
7835         * target-def.h (TARGET_HARD_REGNO_SCRATCH_OK): New.
7836         (TARGET_INITIALIZER): Use TARGET_HARD_REGNO_SCRATCH_OK.
7837         * targhooks.c (default_hard_regno_scratch_ok): New function.
7838         * targhooks.h (default_hard_regno_scratch_ok): Declare function.
7839         * doc/tm.texi: Document TARGET_HARD_REGNO_SCRATCH_OK hook.
7840         * recog.c:  Include "target.h".
7841         (peep2_find_free_register): Add check for global regs. Add target
7842         specific check.
7843         * Makefile.in (recog.o): Depend on target.h.
7844
7845 2008-07-09  Kaz Kojima  <kkojima@gcc.gnu.org>
7846
7847         * config/sh/sh.c (sh_canonical_va_list_type): New.
7848         (TARGET_CANONICAL_VA_LIST_TYPE): Define.
7849
7850 2008-07-09  Raksit Ashok <raksit@google.com>
7851
7852         * doc/invoke.texi (Option Summary): Mention new option
7853         -Wdisallowed-function-list=...
7854         (Warning Options): Document -Wdisallowed-function-list=...
7855         * common.opt (Wdisallowed-function-list=): New flag.
7856         * flags.h (warn_disallowed_functions): External definition of new
7857         boolean warning flag.
7858         (warn_if_disallowed_function_p): Declare new function.
7859         * opts.c (warning_disallowed_functions): New static variable.
7860         (warn_disallowed_functions): New boolean warning flag.
7861         (warn_if_disallowed_function_p): New function.
7862         (add_comma_separated_to_vector): Rename
7863         add_instrument_functions_exclude_list to this.
7864         (common_handle_option): Handle new option. Rename calls to
7865         add_instrument_functions_exclude_list into calls to
7866         add_comma_separated_to_vector.
7867         * c-parser.c (c_parser_postfix_expression_after_primary): New warning
7868         based on flag warn_disallowed_functions.
7869
7870 2008-07-09  Christian Bruel  <christian.bruel@st.com>
7871
7872         * final.c (get_attr_length_1): Call get_attr_length_1 with fallback_fn
7873          instead of get_attr_length.
7874
7875 2008-07-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7876
7877         * genattrtab.c (insert_right_side, evaluate_eq_attr): Avoid C++
7878         keywords.
7879         * genemit.c (gen_insn): Likewise.
7880         * gengtype.c (note_def_vec): Likewise.
7881         * gengtype.h (note_def_vec): Likewise.
7882         * genoutput.c (struct data, output_insn_data, process_template,
7883         gen_expand, gen_split, note_constraint): Likewise.
7884         * genrecog.c (new_decision, add_to_sequence, factor_tests,
7885         make_insn_sequence): Likewise.
7886         * gensupport.c (record_insn_name): Likewise.
7887
7888 2008-07-08  Doug Kwan  <dougkwan@google.com>
7889
7890         * config/arm/arm.opt (mandroid): New option.
7891         * config/arm/bpabi.h (ANDROID_LINK_SPEC): New macro.
7892         (LINK_SPEC): Enable Android specific behaviour when -mandroid is used.
7893         (CC1_SPEC): Same.
7894         (CC1PLUS_SPEC): Same.
7895         (LIB_SPEC): Same.
7896         (STARTFILE_SPEC): Same.
7897         (ENDFILE_SPEC): Same.
7898         (TARGET_BPABI_CPP_BUILTINS): Define __ANDROID__ when -mandroid is
7899         used.
7900
7901 2008-07-08  Raksit Ashok  <raksit@google.com>
7902
7903         * expr.c (emit_block_move_via_movmem): Fix expected_align parameter.
7904         (set_storage_via_setmem): Fix expected_align parameter.
7905         * doc/invoke.texi (i386 and x86-64 Options): Add a couple of options
7906         missing from the list.
7907         * doc/md.texi (movmem): Explicitly state that expected alignment is
7908         to be expressed in bytes.
7909         (setmem): Explicitly state that expected alignment is to be expressed
7910         in bytes.
7911
7912 2008-07-08  Joseph Myers  <joseph@codesourcery.com>
7913
7914         * reload.c (find_reloads_subreg_address): Do not require validity
7915         of address in original mode before reloading address.
7916
7917 2008-07-07  Tianwei Sheng  <tianweis@google.com>
7918
7919         * df-core.c (df_remove_problem): Adjust the access to avoid out of
7920         bounds array access.
7921
7922 2008-07-08  Jakub Jelinek  <jakub@redhat.com>
7923
7924         * tree-sra.c (sra_build_assignment): Handle CONVERT_EXPR_P dst.
7925
7926 2008-07-05  Daniel Berlin  <dberlin@dberlin.org>
7927
7928         Fix PR tree-optimization/23455
7929         Fix PR tree-optimization/35286
7930         Fix PR tree-optimization/35287
7931         * Makefile.in (OBJS-common): Remove tree-vn.o.
7932         (tree-vn.o): Remove.
7933         * dbgcnt.def: Add treepre_insert debug counter.
7934         * gcc/tree-flow.h (add_to_value): Updated for other changes.
7935         (debug_value_expressions): Ditto.
7936         (print_value_expressions): Ditto.
7937         * tree-pretty-print.c (dump_generic_node): Updated for
7938         VALUE_HANDLE removal.
7939         * tree-ssa-dom.c (record_equality): Ditto.
7940         (cprop_operand): Ditto.
7941         (lookup_avail_expr): Ditto.
7942         * tree-ssa-threadedge.c
7943         (record_temporary_equivalences_from_stmts_at_dest): Ditto.
7944         (simplify_control_stmt_condition): Ditto.
7945         * tree.c (tree_code_size): Ditto.
7946         (tree_node_structure): Ditto.
7947         (iterative_hash_expr): Ditto.
7948         * tree.def: Ditto.
7949         * tree.h (VALUE_HANDLE_ID): Ditto.
7950         (VALUE_HANDLE_EXPR_SET): Ditto.
7951         (struct tree_value_handle): Ditto.
7952         (union tree_node): Ditto.
7953         * treestruct.def: Ditto.
7954         * tree-vn.c: Removed.
7955         * tree-ssa-pre.c: Rewritten entirely.
7956         * tree-ssa-sccvn.c (constant_to_value_id): New hashtable.
7957         (constant_value_ids): Ditto.
7958         (vn_nary_op_t): Moved to header.
7959         (vn_phi_t): Ditto.
7960         (vn_reference_op_t): Ditto
7961         (vn_reference_t): Ditto.
7962         (next_value_id): New variable.
7963         (VN_INFO): Add an assert.
7964         (vn_constant_eq): New function.
7965         (vn_constant_hash): Ditto.
7966         (get_or_alloc_constant_value_id): Ditto.
7967         (value_id_constant_p): Ditto.
7968         (vn_reference_compute_hash): De-staticify.
7969         (copy_reference_ops_from_ref): Don't use get_callee_fndecl.
7970         Disable some code with a FIXME.  Remove VALUE_HANDLE use.
7971         (valueize_refs): Update opcode if it changes from ssa name to constant.
7972         (vn_reference_lookup_1): Add new argument.
7973         (vn_reference_lookup):  Ditto.
7974         (vn_reference_lookup_pieces): New function.
7975         (vn_reference_insert): Add return type. Modify to deal with value ids.
7976         (vn_reference_insert_pieces):  New function.
7977         (vn_nary_op_compute_hash): De-staticify.
7978         (vn_nary_op_eq): Ditto.
7979         (vn_nary_op_lookup_pieces): New function.
7980         (vn_nary_op_lookup): Add new argument.
7981         (vn_nary_op_insert_pieces): New function.
7982         (vn_nary_op_insert): Add return type. Modify to deal with value ids.
7983         (vn_phi_insert): Ditto.
7984         (visit_unary_op): Update for callee changes.
7985         (visit_binary_op): Ditto.
7986         (visit_reference_op_load): Ditto.
7987         (visit_reference_op_store): Ditto.
7988         (init_scc_vn): Init next_value_id, constant_to_value_id and
7989         constant_value_ids.
7990         (free_scc_vn): Free them.
7991         (set_hashtable_value_ids): New function.
7992         (run_scc_vn): Use it.
7993         (get_max_value_id): New function.
7994         (get_next_value_id): Ditto.
7995         (expressions_equal_p): Moved from tree-vn.c
7996         (sort_vuses): Ditto.
7997         (sort_vuses_heap): Ditto.
7998         * tree-ssa-sccvn.h: Structures moved from tree-ssa-sccvn.c (noted
7999         above).
8000         * tree.c (iterative_hash_hashval_t): Made non-static
8001         * tree.h (iterative_hash_hashval_t): Declare it.
8002
8003 2008-07-08  Martin Jambor  <mjambor@suse.cz>
8004
8005         * ipa-cp.c (ipcp_init_cloned_node): Call ipa_check_create_node_params
8006         instead of ipa_create_node_params.
8007         (ipcp_driver): Allocate infos with ipa_check_create_node_params and
8008         ipa_check_create_edge_args, free them with
8009         free_all_ipa_structures_after_ipa_cp, call ipa_register_cgraph_hooks.
8010
8011         * ipa-prop.c: Include flags.h and tree-inline.h.
8012         (ipa_node_params_vector): New variable.
8013         (ipa_edge_args_vector): New variable.
8014         (edge_removal_hook_holder): New variable.
8015         (node_removal_hook_holder): New variable.
8016         (edge_duplication_hook_holder): New variable.
8017         (node_duplication_hook_holder): New variable.
8018         (ipa_detect_param_modifications): Check for presence of modified flags.
8019         (ipa_compute_jump_functions): Check for presence of jump functions.
8020         (ipa_free_edge_args_substructures): New function.
8021         (ipa_create_node_params): Removed.
8022         (ipa_free_all_edge_args): Changed to deallocate the on-the-side vector.
8023         (ipa_free_node_params_substructures): New function.
8024         (ipa_free_all_node_params): Changed to deallocate the on-the-side
8025         vector.
8026         (ipa_edge_removal_hook): New function.
8027         (ipa_node_removal_hook): New function.
8028         (duplicate_array): New function.
8029         (ipa_edge_duplication_hook): New function.
8030         (ipa_node_duplication_hook): New function.
8031         (ipa_register_cgraph_hooks): New function.
8032         (ipa_unregister_cgraph_hooks): New function.
8033         (free_all_ipa_structures_after_ipa_cp): New function.
8034
8035         * ipa-prop.h: Include vec.h.
8036         (ipa_node_params_t): New typedef with vector types for it.
8037         (ipa_edge_args_t):  New typedef with vector types for it.
8038         (IPA_NODE_REF): Changed to access an on-the-side vector.
8039         (IPA_EDGE_REF): Changed to access an on-the-side vector.
8040         (ipa_check_create_node_params): New function.
8041         (ipa_check_create_edge_args): New function.
8042
8043         * Makefile.in (IPA_PROP_H): New variable for ipa-prop.h.  Converted
8044         all users.
8045
8046 2008-07-07  Tom Tromey  <tromey@redhat.com>
8047
8048         * configure, config.in: Rebuilt.
8049         * configure.ac: Don't check for scandir or alphasort.
8050
8051 2008-07-07  Joseph Myers  <joseph@codesourcery.com>
8052
8053         * config/arm/arm.c (arm_init_neon_builtins): Register built-in
8054         types immediately after creating them.
8055
8056 2008-07-07  Joseph Myers  <joseph@codesourcery.com>
8057
8058         * config/arm/aout.h (DOLLARS_IN_IDENTIFIERS): Remove.
8059
8060 2008-07-07  Fernando Pereira <fernando@cs.ucla.edu>
8061
8062         * tree-ssa-structalias.c (compute_points_to_sets): Add call to
8063         dump_constraint_graph.
8064         (dump_constraint_edge): New function.
8065         (dump_constraint_graph): New function.
8066         (debug_constraint_graph): New function.
8067         (dump_constraint): Removed useless comparison.
8068         * tree-ssa-structalias.h (dump_constraint_edge): Declare.
8069         (dump_constraint_graph): Declare.
8070         (debug_constraint_graph): Declare.
8071         * tree-dump.c (struct dump_option_value_info): Declare TDF_GRAPH.
8072
8073 2008-07-07  Kai Tietz  <kai.tietz@onevision.com>
8074
8075         * config/i386/i386.c (is_va_list_char_pointer): New.
8076         (ix86_va_start): Replace compare with ms_va_list_type_node
8077         by is_va_list_char_pointer.
8078         (ix86_gimplify_va_arg): Likewise.
8079
8080 2008-07-07  Martin Jambor  <mjambor@suse.cz>
8081
8082         * cgraph.c (cgraph_edge_max_uid): New variable.
8083         (struct cgraph_edge_hook_list): New type.
8084         (struct cgraph_node_hook_list): New type.
8085         (struct cgraph_2edge_hook_list): New type.
8086         (struct cgraph_2node_hook_list): New type.
8087         (first_cgraph_edge_removal_hook): New variable.
8088         (first_cgraph_node_removal_hook): New variable.
8089         (first_cgraph_edge_duplicated_hook): New variable.
8090         (first_cgraph_node_duplicated_hook): New variable.
8091         (cgraph_add_edge_removal_hook): New function.
8092         (cgraph_remove_edge_removal_hook): New function.
8093         (cgraph_call_edge_removal_hooks):  New function.
8094         (cgraph_add_node_removal_hook):  New function.
8095         (cgraph_remove_node_removal_hook):  New function.
8096         (cgraph_call_node_removal_hooks):  New function.
8097         (cgraph_add_edge_duplication_hook):  New function.
8098         (cgraph_remove_edge_duplication_hook):  New function.
8099         (cgraph_call_edge_duplication_hooks):  New function.
8100         (cgraph_add_node_duplication_hook):  New function.
8101         (cgraph_remove_node_duplication_hook):  New function.
8102         (cgraph_call_node_duplication_hooks):  New function.
8103         (cgraph_create_edge): Assign to edge uid.
8104         (cgraph_remove_edge): Call edge removal hooks.
8105         (cgraph_node_remove_callees): Call edge removal hooks.
8106         (cgraph_node_remove_callers): Call edge removal hooks.
8107         (cgraph_remove_node): Call node removal hooks.
8108         (cgraph_clone_edge): Call edge duplication hooks.
8109         (cgraph_clone_node): Call node duplication hooks.
8110
8111         * cgraph.h (cgraph_edge): New field uid.
8112         (cgraph_edge_hook): New type.
8113         (cgraph_node_hook): New type.
8114         (cgraph_2edge_hook): New type.
8115         (cgraph_2node_hook): New type.
8116
8117 2008-07-07  Andreas Tobler  <a.tobler@schweiz.org>
8118
8119         * config.in: Regenerate.
8120
8121 2008-07-07  Vladimir Prus  <vladimir@codesourcery.com>
8122
8123         * gcc.c (print_sysroot): New.
8124         (option_map, display_help, process_command): Handle the
8125         -print-sysroot option.
8126         (main): Print the sysroot if requested.
8127         * doc/invoke.texi (Debugging Options): Document -print-sysroot.
8128
8129 2008-07-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8130
8131         PR target/34780
8132         * unwind-pe.h (size_of_encoded_value): add attribute unused.
8133
8134 2008-07-07  Daniel Jacobowitz  <dan@codesourcery.com>
8135
8136         * function.c (assign_parm_remove_parallels): Check mode of entry_parm.
8137         (assign_parm_setup_block_p): Also check mode of entry_parm.
8138
8139 2008-07-07  Richard Guenther  <rguenther@suse.de>
8140
8141         * tree-ssa-structalias.h (set_used_smts): Remove.
8142         * tree-ssa-structalias.c (used_smts): Likewise.
8143         (set_used_smts): Likewise.
8144         * tree-ssa-alias.c (compute_flow_sensitive_aliasing): Remove
8145         call to set_used_smts.
8146
8147 2008-07-07  Richard Guenther  <rguenther@suse.de>
8148
8149         * tree-ssa-structalias.c (struct variable_info): Add is_full_var flag.
8150         (new_var_info): Set it to false.
8151         (solution_set_add): Correctly handle pointers outside a var and
8152         inside a field.
8153         (type_safe): Treat variables with is_full_var properly.
8154         (do_sd_constraint): Likewise.
8155         (do_ds_constraint): Likewise.
8156         (process_constraint): Remove zeroing offset for !use_field_sensitive.
8157         (get_constraint_for_ptr_offset): New function.
8158         (get_constraint_for_component_ref): For addresses at least include
8159         the last field of the variable.  Handle is_full_vars properly.
8160         (get_constraint_for_1): Factor common code, handle POINTER_PLUS_EXPR.
8161         (handle_ptr_arith): Remove.
8162         (find_func_aliases): Simplify assignment handling.
8163         (create_function_info_for): For parameter and result varinfos set
8164         is_full_var flag.
8165         (create_variable_info_for): Set is_full_var flag whenever we
8166         just created a single varinfo for a decl.
8167         (init_alias_vars): Initialize use_field_sensitive from
8168         max-fields-for-field-sensitive parameter.
8169
8170 2008-07-07  Richard Guenther  <rguenther@suse.de>
8171
8172         PR tree-optimization/36713
8173         * tree-flow-inline.h (is_call_used): New function.
8174         * tree-nrv.c (dest_safe_for_nrv_p): Use it.
8175         * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
8176         * tree-outof-ssa.c (create_temp): Set call-used flag if required.
8177
8178 2008-07-07  Maxim Kuvyrkov  <maxim@codesourcery.com>
8179
8180         * config/m68k/m68k.c (m68k_return_in_memory): Fix arguments types.
8181
8182 2008-07-07  Mark Shinwell  <shinwell@codesourcery.com>
8183
8184         * config/m68k/lb1sf68.asm: Add PIC macros for Linux targets.
8185
8186 2008-07-07  Maxim Kuvyrkov  <maxim@codesourcery.com>
8187             Nathan Sidwell  <nathan@codesourcery.com>
8188
8189         * config.gcc (m68k-*-linux*): Add with_arch.  Add sysroot-suffix.h
8190         to tm_file.  Add m68k/t-floatlib, m68k/t-linux & m68k/t-mlibs to
8191         tmake_file.
8192         * config/m68k/t-linux: New.
8193         * doc/install.texi: Document m68k-*-linux is now multilibbed by
8194         default.
8195
8196 2008-07-07  Nathan Sidwell  <nathan@codesourcery.com>
8197
8198         * config/m68k/t-cf (MULTILIB_EXTRA_OPTS): Add no-mac.
8199         * config/m68k/m68k-devices.def: Remove multilibs that only differ
8200         by MAC/EMAC.
8201
8202 2008-07-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8203
8204         * gcc.c (execute): Fix -Wc++-compat warning.
8205
8206 2008-07-06  H.J. Lu  <hongjiu.lu@intel.com>
8207
8208         PR target/36720
8209         * config/ia64/ia64.c (ia64_split_tmode): Fix typo in TImode
8210         constant for little endian.
8211
8212 2008-07-06  Richard Sandiford  <rdsandiford@googlemail.com>
8213
8214         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Check
8215         mips_base_mips16 instead of TARGET_MIPS16.
8216         (mips_base_mips16): Declare.
8217         * config/mips/mips.c (mips_base_mips16): Make global.
8218         (was_mips16_p): Remove GTY marker.
8219         (was_mips16_pch_p): New variable.
8220         (mips_set_mips16_mode): Check both was_mips16_p and was_mips16_pch_p.
8221         (mips_override_options): Force to non-MIPS16 mode initially.
8222         Do not complain about MIPS16 PIC incompatibilities here.
8223         Only allow -mgpopt if -mexplicit-relocs is in force for
8224         non-MIPS16 code.
8225
8226 2008-07-06  Andreas Tobler  <a.tobler@schweiz.org>
8227
8228         * configure.ac: Check for caddr_t, define to char * if not defined.
8229         * configure: Regenerate.
8230         * ggc-common.c (mmap_gt_pch_get_address): Fix -Wc++-compat warnings.
8231         (mmap_gt_pch_use_address): Likewise.
8232         * config/host-solaris.c (sol_gt_pch_use_address): Likewise.
8233
8234 2008-07-06  Richard Guenther  <rguenther@suse.de>
8235
8236         * tree-ssa-structalias.c (struct variable_info): Remove has_union.
8237         (new_var_info): Deal with it.
8238         (solution_set_add): Likewise.
8239         (bitpos_of_field): Make signed, fix.
8240         (struct fieldoff): Remove type and decl fields.  Make size field
8241         unsigned HOST_WIDE_INT.  Add has_unknown_size and may_have_pointers
8242         flags.
8243         (fieldoff_compare): Deal with it.
8244         (push_fields_onto_fieldstack): Remove has_union argument, glob
8245         adjacent non-pointer fields together.
8246         (create_function_info_for): Do not set has_union.
8247         (create_variable_info_for): Simplify.
8248
8249 2008-07-06  Kai Tietz  <kai.tietz@onevision.com>
8250
8251         * config.gcc (extra_headers): Add cross-stdarg.h for target
8252         x86_64-*-* and i?86-*-*.
8253         * config/i386/cross-stdarg.h: New.
8254         * builtins.c (std_fn_abi_va_list): New.
8255         (std_canonical_va_list_type): New.
8256         (stabilize_va_list): Replace va_list_type_node use by
8257         mtarget.canonical_va_list_type.
8258         (gimplify_va_arg_expr): Likewise.
8259         (expand_builtin_va_copy): Replace va_list_type_node use by
8260         mtarget.fn_abi_va_list.
8261         * tree-sra.c (is_va_list_type): New helper.
8262         (decl_can_be_decomposed_p): Replace
8263         va_list_type_node use by is_va_list_type.
8264         * tree-ssa-ccp.c (optimize_stdarg_builtin): Likewise.
8265         * tree-stdarg.c (execute_optimize_stdarg): Likewise.
8266         * c-common.c (c_common_nodes_and_builtins): Use TARGET_ENUM_VA_LIST.
8267         * config/i386/i386-protos.h (ix86_get_valist_type): New.
8268         (ix86_enum_va_list): New.
8269         * config/i386/i386.c (sysv_va_list_type_node): New.
8270         (ms_va_list_type_node): New.
8271         (ix86_function_type_abi): Remove sorry.
8272         (ix86_build_builtin_va_list_abi): New.
8273         (ix86_build_builtin_va_list): Call ix86_build_builtin_va_list_abi
8274         for 64-bit targets.
8275         (ix86_va_start): Replace va_list_type_node by sysv_va_list_type_node.
8276         (ix86_init_builtins_va_builtins_abi): New.
8277         (ix86_init_builtins): Use ix86_init_builtins_va_builtins_abi
8278         for 64-bit targets.
8279         (ix86_handle_abi_attribute): New.
8280         (attribute_spec): Add sysv_abi and ms_abi.
8281         (ix86_fn_abi_va_list): New.
8282         (ix86_canonical_va_list_type): New.
8283         (ix86_enum_va_list): New.
8284         (TARGET_FN_ABI_VA_LIST): New.
8285         (TARGET_CANONICAL_VA_LIST_TYPE): New.
8286         * config/i386/i386.h (TARGET_ENUM_VA_LIST): New.
8287         * doc/tm.texi (TARGET_FN_ABI_VA_LIST): New.
8288         (TARGET_CANONICAL_VA_LIST_TYPE): New.
8289         (TARGET_ENUM_VA_LIST): New.
8290         * expr.h (std_fn_abi_va_list): New.
8291         (std_canonical_va_list_type): New.
8292         * target-def.h (TARGET_FN_ABI_VA_LIST): New.
8293         (TARGET_CANONICAL_VA_LIST_TYPE): New.
8294         (TARGET_INITIALIZER): Add TARGET_FN_ABI_VA_LIST and
8295         TARGET_CANONICAL_VA_LIST_TYPE.
8296         * target.h (struct gcc_target): Add fn_abi_va_list hook
8297         and canonical_va_list_type hook.
8298
8299 2008-07-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>
8300
8301         * fold-const.c (fold_convert_const): Treat OFFSET_TYPE the same as
8302         integral and pointer types.
8303
8304 2008-07-04  Roger Sayle  <roger@eyesopen.com>
8305
8306         * config/rs6000/host-darwin.c (darwin_rs6000_extra_signals): Cast
8307         the "void*" result of xmalloc to "char*" to fix bootstrap breakage.
8308
8309 2008-07-04  Kaz Kojima  <kkojima@gcc.gnu.org>
8310
8311         PR target/36684
8312         * config/sh/sh.h (OVERRIDE_OPTIONS): Disable -fschedule-insns for PIC.
8313
8314 2008-07-04  Jakub Jelinek  <jakub@redhat.com>
8315
8316         * tree-switch-conversion.c (build_one_array, gen_def_assigns): Use
8317         build_gimple_modify_stmt.
8318         (build_arrays, gen_inbound_check): Likewise.  Force RHS to be
8319         gimple operand.  Use fold_build* instead of build*.
8320
8321 2008-07-04  Richard Guenther  <rguenther@suse.de>
8322
8323         * tree-ssa-structalias.c (lookup_vi_for_tree): Declare.
8324         (do_sd_constraint): Handle a dereference of ESCAPED and CALLUSED
8325         properly to compute the reachability set if we do field-sensitive PTA.
8326         * invoke.texi (max-fields-for-field-sensitive): Document default.
8327         * opts.c (decode_options): Set max-fields-for-field-sensitive to
8328         100 for optimize >= 2.
8329
8330 2008-07-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8331
8332         * ggc-zone.c (lookup_page_table_if_allocated,
8333         set_page_table_entry, zone_find_object_size, alloc_small_page,
8334         alloc_large_page, ggc_free, gt_ggc_m_S, ggc_marked_p, init_ggc,
8335         new_ggc_zone, init_ggc_pch, ggc_pch_this_base, ggc_pch_read): Fix
8336         -Wc++-compat and/or -Wcast-qual warnings.
8337
8338 2008-07-04  Alan Modra  <amodra@bigpond.net.au>
8339
8340         PR target/36634
8341         * config/rs6000/rs6000.md (call, call_value): Don't arrange for
8342         pic_offset_table_rtx to be marked as used here.
8343         (call_nonlocal_sysv, call_value_nonlocal_sysv): Add split for
8344         TARGET_SECURE_PLT to "use" pic_offset_table_rtx.
8345         (call_nonlocal_sysv_secure, call_value_nonlocal_sysv_secure): New insn.
8346         (sibcall_nonlocal_sysv, sibcall_value_nonlocal_sysv): Assert
8347         !TARGET_SECURE_PLT.
8348
8349 2008-07-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8350
8351         * alloc-pool.c (hash_descriptor, eq_descriptor,
8352         alloc_pool_descriptor): Fix -Wc++-compat warnings.
8353         * bitmap.c (hash_descriptor, eq_descriptor, bitmap_descriptor):
8354         Likewise.
8355         * ggc-common.c (hash_descriptor, eq_descriptor, hash_ptr, eq_ptr,
8356         loc_descriptor, ggc_prune_ptr, ggc_free_overhead,
8357         final_cmp_statistic, cmp_statistic, dump_ggc_loc_statistics): Likewise.
8358         * varray.c (hash_descriptor, eq_descriptor, varray_descriptor):
8359         Likewise.
8360
8361 2008-07-03  Eric Botcazou  <ebotcazou@adacore.com>
8362
8363         * tree-flow.h (loop_only_exit_p): Declare.
8364         * tree-ssa-loop-niter.c (loop_only_exit_p): Make public.
8365         * tree-ssa-loop-ivopts.c (may_eliminate_iv): Reinstate direct check on
8366         the number of iterations if it is constant.  Otherwise, if this is the
8367         only possible exit of the loop, use the conservative estimate on the
8368         number of iterations of the entire loop if available.
8369
8370 2008-07-03  Richard Sandiford  <rdsandiford@googlemail.com>
8371
8372         * Makefile.in (libgcc.mvars): Add LIBGCC_SYNC and LIBGCC_SYNC_CFLAGS.
8373         * libgcc-std.ver (GCC_4.4.0): New version, inherited from GCC_4.3.0.
8374         Add synchronization functions.
8375         * config/sync.c: New file.
8376         * config/mips/t-libgcc-mips16 (LIBGCC_SYNC): Define.
8377         (LIBGCC_SYNC_CFLAGS): Likewise.
8378
8379 2008-07-03  Uros Bizjak  <ubizjak@gmail.com>
8380
8381         PR target/36710
8382         * config/i386/i386.md (mode): Add TF to "mode" attribute.
8383         (*pushtf_sse): New insn pattern.
8384         (pushtf splitters): New splitters.
8385
8386 2008-07-03  Michael Meissner  <gnu@the-meissners.org>
8387
8388         PR middle-end/35736
8389         * predict.c (build_predict_expr): Use void_type_node for the tree
8390         type, instead of NULL_TREE.
8391
8392 2008-07-03  H.J. Lu  <hongjiu.lu@intel.com>
8393
8394         * config/i386/i386.c (contains_aligned_value_p): Return true
8395         for TCmode.
8396         (ix86_data_alignment): Align TCmode to 128bits.
8397         (ix86_local_alignment): Likewise.
8398
8399 2008-07-03  Andrew Haley  <aph@redhat.com>
8400
8401         PR bootstrap/33304
8402         * vec.h (VEC_TA): New.
8403         (DEF_VEC_I, DEF_VEC_P, DEF_VEC_ALLOC_I, DEF_VEC_ALLOC_P,
8404         DEF_VEC_O, DEF_VEC_ALLOC_O: Use VEC_TA.
8405         * c-common.c (C_COMMON_FIXED_TYPES_SAT): New macro.
8406         (C_COMMON_FIXED_MODE_TYPES_SAT): New macro.
8407         (C_COMMON_FIXED_TYPES): Remove first arg.
8408         (C_COMMON_FIXED_MODE_TYPES): Likewise.
8409         * tree.c (MAKE_FIXED_TYPE_NODE): Break into two macros,
8410         MAKE_FIXED_TYPE_NODE and MAKE_FIXED_TYPE_NODE_WIDTH in order
8411         not to use empty macro arguments.
8412
8413 2008-07-02  Joseph Myers  <joseph@codesourcery.com>
8414
8415         * config/alpha/vms_tramp.asm, config/arm/crti.asm,
8416         config/arm/crtn.asm, config/bfin/crti.s, config/bfin/crtlibid.s,
8417         config/bfin/crtn.s, config/fr30/crti.asm, config/fr30/crtn.asm,
8418         config/frv/lib1funcs.asm, config/i386/sol2-c1.asm,
8419         config/i386/sol2-ci.asm, config/i386/sol2-cn.asm,
8420         config/i386/sol2-gc1.asm, config/ia64/crti.asm,
8421         config/ia64/crtn.asm, config/m68hc11/larith.asm,
8422         config/m68hc11/m68hc11-crt0.S, config/m68k/crti.s,
8423         config/m68k/crtn.s, config/mcore/crti.asm, config/mcore/crtn.asm,
8424         config/rs6000/crtresfpr.asm, config/rs6000/crtresgpr.asm,
8425         config/rs6000/crtresxfpr.asm, config/rs6000/crtresxgpr.asm,
8426         config/rs6000/crtsavfpr.asm, config/rs6000/crtsavgpr.asm,
8427         config/rs6000/crtsavres.asm, config/rs6000/e500crtres32gpr.asm,
8428         config/rs6000/e500crtres64gpr.asm,
8429         config/rs6000/e500crtres64gprctr.asm,
8430         config/rs6000/e500crtrest32gpr.asm,
8431         config/rs6000/e500crtrest64gpr.asm,
8432         config/rs6000/e500crtresx32gpr.asm,
8433         config/rs6000/e500crtresx64gpr.asm,
8434         config/rs6000/e500crtsav32gpr.asm,
8435         config/rs6000/e500crtsav64gpr.asm,
8436         config/rs6000/e500crtsav64gprctr.asm,
8437         config/rs6000/e500crtsavg32gpr.asm,
8438         config/rs6000/e500crtsavg64gpr.asm,
8439         config/rs6000/e500crtsavg64gprctr.asm, config/rs6000/eabi-ci.asm,
8440         config/rs6000/eabi-cn.asm, config/rs6000/eabi.asm,
8441         config/rs6000/sol-ci.asm, config/rs6000/sol-cn.asm,
8442         config/rs6000/tramp.asm, config/sparc/sol2-ci.asm,
8443         config/sparc/sol2-cn.asm: Remove .file directives.
8444
8445 2008-07-02  Richard Sandiford  <rdsandiford@googlemail.com>
8446
8447         * resource.c (mark_referenced_resources): Look inside
8448         UNSPEC_VOLATILEs and ASM_INPUTs.
8449
8450 2008-07-02  Ian Lance Taylor  <iant@google.com>
8451
8452         * rtlanal.c (add_reg_note): New function.
8453         * rtl.h (add_reg_note): Declare.
8454         * auto-inc-dec.c (attempt_change): Use add_reg_note.
8455         * bb-reorder.c (add_reg_crossing_jump_notes): Likewise.
8456         * builtins.c (expand_builtin_longjmp): Likewise.
8457         (expand_builtin_nonlocal_goto): Likewise.
8458         * calls.c (emit_call_1, expand_call): Likewise.
8459         * cfgexpand.c (add_reg_br_prob_note): Likewise.
8460         * cfglayout.c (fixup_reorder_chain): Likewise.
8461         * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
8462         (commit_one_edge_insertion): Likewise.
8463         * combine.c (move_deaths, distribute_notes): Likewise.
8464         * df-problems.c (df_set_note): Likewise.
8465         * emit-rtl.c (link_cc0_insns, try_split): Likewise.
8466         (set_unique_reg_note): Likewise.
8467         (emit_copy_of_insn_after): Likewise.
8468         * expr.c (expand_expr_real): Likewise.
8469         * gcse.c (add_label_notes): Likewise.
8470         * haifa-sched.c (create_check_block_twin): Likewise.
8471         * jump.c (mark_jump_label_1): Likewise.
8472         * loop-doloop.c (add_test, doloop_modify): Likewise.
8473         * loop-unswitch.c (compare_and_jump_seq): Likewise.
8474         * lower-subreg.c (move_eh_region_note): Likewise.
8475         * optabs.c (emit_libcall_block): Likewise.
8476         * predict.c (predict_insn): Likewise.
8477         (combine_predictions_for_insn): Likewise.
8478         * recog.c (peephole2_optimize): Likewise.
8479         * regmove.c (try_auto_increment): Likewise.
8480         * reg-stack.c (emit_pop_insn, move_for_stack_reg): Likewise.
8481         * reload.c (find_reloads): Likewise.
8482         * reload1.c (fixup_eh_region_note): Likewise.
8483         (reload_as_needed, add_auto_inc_notes, copy_eh_notes): Likewise.
8484         * reorg.c (delete_prior_computation): Likewise.
8485         (delete_computation, dbr_schedule): Likewise.
8486         * config/pa/pa.c (legitimize_pic_address): Likewise.
8487         * config/sh/sh.c (sh_reorg): Likewise.
8488
8489 2008-07-02  H.J. Lu  <hongjiu.lu@intel.com>
8490
8491         PR target/36669
8492         * config/libgcc-glibc.ver: Add %exclude.
8493         * config/m32r/libgcc-glibc.ver: Likwise.
8494         * config/s390/libgcc-glibc.ver: Likwise.
8495         * config/sh/libgcc-glibc.ver: Likwise.
8496         * config/sparc/libgcc-sparc-glibc.ver: Likwise.
8497
8498         * config/i386/libgcc-glibc.ver: New.
8499
8500         * config/i386/libgcc-x86_64-glibc.ver: Removed.
8501
8502 2008-07-02  H.J. Lu  <hongjiu.lu@intel.com>
8503
8504         * config.gcc: Remove i386/t-fprules-softfp64 soft-fp/t-softfp
8505         from tmake_file from i[34567]86-*-darwin*, x86_64-*-darwin*,
8506         i[34567]86-*-linux*, x86_64-*-linux*.  Add
8507         i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file for
8508         i[34567]86-*-darwin*, x86_64-*-darwin*, i[34567]86-*-linux*,
8509         x86_64-*-linux*.  Add i386/t-linux to tmake_file for
8510         i[34567]86-*-linux*, x86_64-*-linux*.
8511
8512         * libgcc-std.ver: Add empty GCC_4.4.0.
8513
8514         * mkmap-symver.awk: Support multiple versions per symbol.
8515
8516         * config/i386/i386.c (ix86_init_builtins): Always define
8517         __builtin_fabsq and __builtin_copysignq with fallbacks.
8518         (ix86_expand_builtin): Emit normal call for __builtin_fabsq
8519         and __builtin_copysignq if SSE2 isn't available.
8520
8521         * config/i386/linux.h (LIBGCC2_HAS_TF_MODE): Defined.
8522         (LIBGCC2_TF_CEXT): Likwise.
8523         (TF_SIZE): Likwise.
8524
8525         * config/i386/linux64.h (LIBGCC2_HAS_TF_MODE): Defined as 1.
8526
8527         * config/i386/sfp-machine.h: Moved to libgcc.
8528
8529         * config/i386/sfp-machine.h: New.
8530         * config/i386/t-linux: Likwise.
8531
8532         * config/i386/t-darwin: Remove softfp_wrap_start and
8533         softfp_wrap_end.
8534         * config/i386/t-darwin64: Likewise.
8535
8536         * config/i386/t-fprules-softfp64: Renamed to ...
8537         * config/i386/t-fprules-softfp: This.
8538
8539         * config/i386/t-linux64: Remove SHLIB_MAPFILES, softfp_wrap_start
8540         and softfp_wrap_end.
8541
8542 2008-07-02  Jason Merrill  <jason@redhat.com>
8543
8544         * tree.c (ctor_to_list): Use FOR_EACH_CONSTRUCTOR_ELT.
8545
8546         * tree.c (ctor_to_list): New fn.
8547         * tree.h: Declare it.
8548         (CONSTRUCTOR_ELT): New macro.
8549         (CONSTRUCTOR_NELTS): New macro.
8550
8551 2008-07-02  Richard Guenther  <rguenther@suse.de>
8552
8553         * tree-ssa-structalias.c (struct variable_info): Reorder
8554         to fill padding on 64bit hosts.  Make collapsed_to an int.
8555         (get_varinfo_fc): Deal with that.
8556         (new_var_info): Likewise.
8557         (collapse_rest_of_var): Likewise.
8558
8559 2008-07-02  Joshua Sumali  <jsumali@redhat.com>
8560
8561         * doc/install.texi (--enable-java-home): Document.
8562         (--enable-aot-compile-rpm): Likewise.
8563         (--with-arch-directory): Likewise.
8564         (--with-os-directory): Likewise.
8565         (--with-origin-name): Likewise.
8566         (--with-arch-suffix): Likewise.
8567         (--with-jvm-root-dir): Likewise.
8568         (--with-jvm-jar-dir): Likewise.
8569         (--with-python-dir): Likewise.
8570
8571 2008-07-02  Richard Guenther  <rguenther@suse.de>
8572
8573         * tree-ssa-forwprop.c (can_propagate_from): Exclude loads
8574         from decls explicitly.  Merge operand checking from tuples.
8575
8576 2008-07-02  Martin Jambor  <mjambor@suse.cz>
8577
8578         * tree-switch-conversion.c: Included timevar.h which I forgot before.
8579
8580 2008-07-02  Martin Jambor  <mjambor@suse.cz>
8581
8582         * tree-switch-conversion.c: Included timevar.h
8583         (pass_convert_switch): Added a timevar id (TV_TREE_SWITCH_CONVERSION).
8584
8585         * timevar.def: Added TV_TREE_SWITCH_CONVERSION.
8586
8587 2008-07-02  Martin Jambor  <mjambor@suse.cz>
8588
8589         * tree-switch-conversion.c: Corrected various comments and
8590         whitespace issues
8591         (build_constructors): Fixed minor formatting mistakes.
8592
8593         * invoke.texi (Optimize Options): Corrected the
8594         switch-conversion-max-branch-ratio parameter.
8595
8596 2008-07-02  Mark Shinwell  <shinwell@codesourcery.com>
8597
8598         * final.c (asm_insn_count): Return zero for an empty asm body.
8599
8600 2008-07-02  Richard Guenther  <rguenther@suse.de>
8601
8602         * bitmap.h (bitmap_set_bit): Return bool.
8603         (bitmap_clear_bit): Likewise.
8604         * bitmap.c (bitmap_set_bit): Return if the bit changed.  Only
8605         write to the bitmap if it would.
8606         (bitmap_clear_bit): Likewise.
8607         * tree-ssa-structalias.c (add_implicit_graph_edge): Use
8608         bitmap_set_bit return value.
8609         (add_pred_graph_edge): Likewise.
8610         (add_graph_edge): Likewise.
8611         (do_sd_constraint): Likewise.
8612         (do_ds_constraint): Likewise.
8613
8614 2008-07-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8615
8616         * config/alpha/alpha.c (alpha_need_linkage, alpha_use_linkage):
8617         Fix -Wc++-compat and/or -Wcast-qual warnings.
8618         * config/i386/netware.c (gen_stdcall_or_fastcall_decoration,
8619         gen_regparm_prefix): Likewise.
8620         * vmsdbgout.c (write_modbeg, lookup_filename,
8621         vmsdbgout_source_line, vmsdbgout_init): Likewise.
8622
8623 2008-07-02  Danny Smith  <dannysmith@users.sourceforge.net>
8624
8625         * config/i386/mingw32.h (TARGET_USE_JCR_SECTION): Undef to let
8626         defaults.h definition apply.
8627
8628 2008-07-01  Daniel Jacobowitz  <dan@codesourcery.com>
8629
8630         * function.c (assign_parm_remove_parallels): New.
8631         (assign_parm_setup_block_p): Do not return true for non-BLKmode
8632         PARALLELs.
8633         (assign_parm_setup_block): Do not handle them.
8634         (assign_parm_setup_reg, assign_parm_setup_stack): Call
8635         assign_parm_remove_parallels.
8636
8637 2008-07-01  Daniel Jacobowitz  <dan@codesourcery.com>
8638
8639         * c-typeck.c (convert_for_assignment): Use
8640         vector_targets_convertible_p.
8641         * c-common.c (vector_targets_convertible_p): New.
8642         * c-common.h (vector_targets_convertible_p): New prototype.
8643         * config/rs6000/rs6000.c (rs6000_is_opaque_type): Do not check
8644         opaque_p_V2SI_type_node.
8645
8646 2008-07-01  Steve Ellcey  <sje@cup.hp.com>
8647
8648         * config/ia64/ia64.c (ia64_cannot_force_const_mem): Do not allow
8649         RFmode constants.
8650
8651 2008-07-01  Uros Bizjak  <ubizjak@gmail.com>
8652
8653         * config/i386/i386.c (ix86_build_signbit_mask): Generate TImode and
8654         TFmode constants via two element DImode vector for hosts with
8655         HOST_BITS_PER_WIDE_INT < 64.
8656         (ix86_init_builtins): Define __builtin_fabsq and __builtin_copysignq
8657         also for HOST_BITS_PER_WIDE_INT < 64.
8658
8659 2008-07-01  Richard Guenther  <rguenther@suse.de>
8660
8661         PR tree-optimization/36666
8662         * tree-ssa-structalias.c (get_constraint_for_1): Declare.
8663         (get_constraint_exp_from_ssa_var): Split into ...
8664         (get_constraint_exp_for_temp): ... this ...
8665         (get_constraint_for_ssa_var): ... and that.
8666         Return constraint expressions for all touched sub-fields
8667         if the results address is not taken.
8668         (process_constraint): Remove assertion that aggregate
8669         assignments do not happen at this place.
8670         (get_constraint_for_component_ref): Add address_p argument.
8671         Return constraint expressions for all touched sub-fields
8672         if the results address is not taken.
8673         (do_deref): Use get_constraint_exp_for_temp.
8674         (get_constraint_for_1): Rename from ...
8675         (get_constraint_for): ... this.  Add the old function as wrapper.
8676         (do_structure_copy): Use get_constraint_for_1.
8677
8678 2008-07-01  Martin Jambor  <mjambor@suse.cz>
8679
8680         * Makefile.in (tree-switch-conversion.o): Add.
8681         (OBJS-common): Add tree-swtch-conversion.o.
8682         * passes.c (init_optimization_passes): Add pass_convert_switch.
8683         * tree-pass.h: (pass_convert_switch): Add.
8684         * tree-switch-conversion.c: New file.
8685         * gcc.dg/tree-ssa/cswtch.c: New testcase.
8686         * common.opt (ftree-cswtch): New option.
8687         * params.h (PARAM_SWITCH_CONVERSION_BRANCH_RATIO): New parameter.
8688         * params.def (PARAM_SWITCH_CONVERSION_BRANCH_RATIO): New parameter.
8689         * opts.c (decode_options): Set flag_tree_switch_conversion when
8690         optimization level is >= 2.
8691         * doc/invoke.texi (Optimize Options): Added description of
8692         -ftree-swtch-conversion and switch-conversion-max-branch-ratio.
8693
8694 2008-06-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8695
8696         * config/darwin-driver.c (darwin_default_min_version): Fix
8697         -Wc++-compat warnings.
8698
8699 2008-06-30  Uros Bizjak  <ubizjak@gmail.com>
8700
8701         * config/i386/i386.md (*movti_rex64): Add "!" to "r" constraint
8702         of operand 0.
8703
8704 2008-06-30  Kenneth Zadeck <zadeck@naturalbridge.com>
8705
8706         * ifcvt.c (cond_move_process_if_block): Free vectors on false return.
8707
8708 2008-06-30  Kenneth Zadeck <zadeck@naturalbridge.com>
8709
8710         PR rtl-optimization/34744
8711         * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): New macros.
8712         (df_scan_free_internal): Free data structures not
8713         allocated in storage pools.
8714         (df_mw_hardreg_chain_delete_eq_uses): Use df_scan_free_mws_vec.
8715         (df_refs_add_to_chains): Use df_scan_free_ref_vec and
8716         df_scan_free_mws_vec.
8717         * dse.c (dse_step6): Free offset_map_p and offset_map_n
8718         unconditionally.
8719
8720 2008-06-30  H.J. Lu  <hongjiu.lu@intel.com>
8721
8722         * config/i386/i386.c (contains_aligned_value_p): Return true
8723         for __float128.
8724         (ix86_function_arg_boundary): Return its natural boundary
8725         for __float128.
8726         (return_in_memory_32): Don't check TDmode.
8727         (ix86_split_to_parts): Support splitting into 4 parts and
8728         support TFmode for 32bit target.
8729         (ix86_split_long_move): Support splitting into 4 parts.
8730         (bdesc_args): Enable IX86_BUILTIN_FABSQ and IX86_BUILTIN_COPYSIGNQ
8731         for SSE2.
8732         (ix86_init_mmx_sse_builtins): Move __float80 and __float128 to ...
8733         (ix86_init_builtins): Here.
8734         (ix86_scalar_mode_supported_p): Always return true for TFmode.
8735         (ix86_c_mode_for_suffix): Always return TFmode and XFmode for
8736         'q' and 'w', respectively.
8737
8738         * config/i386/i386.md (movtf): Check TARGET_SSE2 instead of
8739         TARGET_64BIT.
8740         (movtf_internal): Likewise.
8741         (<code>tf2): Likewise.
8742         (*absnegtf2_sse): Likewise.
8743         (copysign<mode>3): Likewise.
8744         (copysign<mode>3_const): Likewise.
8745         (copysign<mode>3_var): Likewise.
8746         (define_split UNSPEC_COPYSIGN): Likewise.
8747         * config/i386/sse.md (*nandtf3): Likewise.
8748         (<code>tf3): Likewise.
8749         (*<code>tf3): Likewise.
8750
8751 2008-06-30  Joey Ye  <joey.ye@intel.com>
8752             H.J. Lu  <hongjiu.lu@intel.com>
8753
8754         * global.c (compute_regsets): Set frame_pointer_needed here.
8755         * reload1.c (init_elim_table): Don't set frame_pointer_needed here.
8756
8757 2008-06-30  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
8758
8759         * doc/install.texi (specific): Expand Windows build notes.
8760
8761 2008-06-30  Ira Rosen  <irar@il.ibm.com>
8762
8763         PR tree-optimization/36648
8764         * tree-vect-transform.c (vect_do_peeling_for_loop_bound): Divide
8765         number of prolog iterations by step. Fix the comment.
8766
8767 2008-06-30  Richard Guenther  <rguenther@suse.de>
8768
8769         PR middle-end/36671
8770         * tree-ssa-structalias.c (handle_lhs_call): Add flags argument,
8771         handle calls from ECF_MALLOC functions.
8772         (handle_pure_call): ECF_MALLOC functions do not return
8773         call-used memory.
8774         (find_func_aliases): Handle all calls, adjust calls to handle_lhs_call.
8775
8776 2008-06-29  Andreas Schwab  <schwab@suse.de>
8777
8778         * config/m68k/m68k.c (print_operand): Always print a float
8779         constant in hex.
8780         * config/m68k/m68k.h (ASM_OUTPUT_FLOAT_OPERAND)
8781         (ASM_OUTPUT_DOUBLE_OPERAND, ASM_OUTPUT_LONG_DOUBLE_OPERAND):
8782         Remove macros.
8783
8784         * config/rs6000/x-linux64: Remove never used file.
8785
8786 2008-06-29  Richard Guenther  <rguenther@suse.de>
8787
8788         * tree-ssa-structalias.h (compute_points_to_sets): Adjust
8789         prototype.
8790         (struct alias_info): Move ...
8791         * tree-ssa-alias.c: ... here.
8792         (update_alias_info): Declare.
8793         (compute_may_aliases): Call it.
8794         (update_alias_info): New function.
8795         * tree-ssa-structalias.c (update_alias_info): Move ...
8796         * tree-ssa-alias.c (update_alias_info_1): ... here.
8797         * tree-ssa-structalias.c (process_constraint_1): Remove
8798         unused from_call argument.  Rename to ...
8799         (process_constraint): ... this.  Delete old wrapper.
8800         (make_constraint_to): Adjust callers.
8801         (handle_const_call): Likewise.
8802         (handle_pure_call): Likewise.
8803         (init_base_vars): Likewise.
8804         (handle_lhs_call): Likewise.  Remove unnecessary constraint.
8805         (find_func_aliases): We don't need structure copies for
8806         complex types.
8807         (make_constraint_from_anything): Remove.
8808         (create_variable_info_for): For globals make constraints
8809         from escaped, not from anything.
8810         (compute_points_to_sets): Do not call update_alias_info.
8811         (ipa_pta_execute): Use make_constraint_from.
8812
8813 2008-06-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8814
8815         * Makefile.in (CXX_COMPAT_WARN, cxx_compat_warn): Delete.
8816         (bitmap.o-warn, dominance.o-warn): New.
8817         * configure.ac (cxx_compat_warn): Delete.
8818         (loose_warn): Add -Wcast-qual and -Wc++-compat.
8819         * system.h: Remove #pragma diagnostic for -Wcast-qual and
8820         -Wc++-compat.
8821         * configure: Regenerate.
8822
8823         * optabs.c (libfunc_decl_hash, libfunc_decl_eq): Fix -Wcast-qual
8824         warnings.
8825
8826 2008-06-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8827
8828         * alloc-pool.c (create_alloc_pool): Fix -Wc++-compat warnings.
8829         * df-scan.c (df_notes_rescan): Likewise.
8830         * ggc-page.c (set_page_table_entry): Likewise.
8831         * intl.c (gcc_gettext_width): Likewise.
8832         * varasm.c (get_unnamed_section, get_noswitch_section,
8833         get_section): Likewise.
8834
8835 2008-06-28  Andrew Jenner  <andrew@codesourcery.com>
8836
8837         * regrename.c (build_def_use): Don't copy RTX.
8838
8839 2008-06-28  Sandra Loosemore  <sandra@codesourcery.com>
8840
8841         * doc/extend.texi (Variable Attributes): Use @ref instead of @xref.
8842         (Type Attributes): Fix nesting of @table and @subsection.  Adjust
8843         punctuation.  Use @ref instead of @xref.
8844         (Function Names): Remove stray @display/@end display.
8845         (C++ Attributes): Use @ref instead of @xref.
8846         (Deprecated Features): Fix punctuation around @xref.
8847         (Backwards Compatibility): Likewise.
8848         * doc/rtl.texi (Incdec): Remove stray @table/@end table.
8849
8850 2008-06-28  Joseph Myers  <joseph@codesourcery.com>
8851
8852         * config/rs6000/predicates.md (easy_fp_constant): Reject TFmode
8853         constants for E500 double.
8854
8855 2008-06-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8856
8857         * doc/rtl.texi (const_vector): Document const_fixed as legitimate
8858         element type of const_vector.
8859
8860 2008-06-28  Uros Bizjak  <ubizjak@gmail.com>
8861
8862         * config/i386/i386.md (addti3, adddi3, addsi3, addhi3, addqi3):
8863         Remove FLAGS_REG clobber from expander pattern.
8864         (subti3, subdi3, subsi3, subhi3, subqi3): Ditto.
8865         (anddi3, andsi3, andhi3, andqi3): Ditto.
8866         (iordi3, iorsi3, iorhi3, iorqi3): Ditto.
8867         (xordi3, xorsi3, xorhi3, xorqi3): Ditto.
8868         (negti2, negdi2, negsi2, neghi2, negqi2): Ditto.
8869         (ashlsi3, ashlhi3, ashlqi3): Ditto.
8870         (ashrsi3, ashrhi3, ashrqi3): Ditto.
8871         (lshrsi3, lshrhi3, lshrqi3): Ditto.
8872         (rotldi3, rotlsi3, rotlhi3, rotlqi3): Ditto.
8873         (rotrdi3, rotrsi3, rotrhi3, rotrqi3): Ditto.
8874
8875 2008-06-28  Richard Guenther  <rguenther@suse.de>
8876
8877         * tree-ssa-structalias.c (callused_id, var_callused,
8878         callused_tree): Add.
8879         (handle_pure_call): New function.
8880         (find_func_aliases): Call it.
8881         (find_what_p_points_to): Handle the call-used set.
8882         (clobber_what_escaped): Likewise.
8883         (compute_call_used_vars): New function.
8884         (init_base_vars): Init the call-used variable.
8885         (do_sd_constraint): Do not propagate the solution from CALLUSED
8886         but use CALLUSED as a placeholder.
8887         (solve_graph): Likewise.
8888         * tree-flow-inline.h (gimple_call_used_vars): New function.
8889         * tree-flow.h (struct gimple_df): Add call_used_vars bitmap.
8890         (compute_call_used_vars): Declare.
8891         * tree-ssa-alias.c (set_initial_properties): Call
8892         compute_call_used_vars.
8893         (reset_alias_info): Clear call-used variables.
8894         (add_call_clobber_ops): Assert we are not called for const/pure
8895         functions.  Remove handling of them.
8896         (add_call_read_ops): Handle pure functions by adding the
8897         call-used set of variables as VUSEs.
8898         * tree-ssa.c (init_tree_ssa): Allocate call-used bitmap.
8899         (delete_tree_ssa): Free it.
8900         * tree-dfa.c (remove_referenced_var): Clear the var from the
8901         call-used bitmap.
8902
8903 2008-06-28  Kai Tietz  <kai.tietz@onevision.com>
8904
8905         * tree.c (build_varargs_function_type_list): New.
8906         (build_function_type_list_1): New.
8907         (build_function_type_list): Use build_function_type_list_1.
8908         * tree.h (build_varargs_function_type_list): New.
8909
8910 2008-06-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8911
8912         PR target/34856
8913         * config/spu/spu.c (spu_builtin_splats): Do not generate
8914         invalid CONST_VECTOR expressions.
8915         (spu_expand_vector_init): Likewise.
8916
8917 2008-06-28  Richard Sandiford  <rdsandiford@googlemail.com>
8918
8919         * optabs.c (libfunc_decls): New variable.
8920         (libfunc_decl_hash, libfunc_decl_eq): New functions.
8921         (init_one_libfunc): Reuse decls and SYMBOL_REFs when asked
8922         for the same function twice.
8923
8924 2008-06-27  Uros Bizjak  <ubizjak@gmail.com>
8925
8926         * config/i386/i386.md (ashlti3, ashrti3, lshrti3): Expand using
8927         ix86_expand_binary_operator directly.
8928         (*ashlti3_1): Rename from ashlti3_1.  Use nonmemory_operand predicate
8929         for operand 2.
8930         (*ashrti3_1): Ditto.
8931         (*lshrti3_1): Ditto.
8932         (*ashlti3_2, *ashrti3_2, *lshrti3_2): Remove insn patterns.
8933         (ashlti, ashrti and lshrti splitters): Handle nonmemory operand 2
8934         using only one splitter.  Conditionaly execute splitter before or
8935         after peephole2 pass.
8936         (ashlti, ashrti and lshrti peephole2): Define peephole2 patterns.
8937         (x86_shld): Rename from x86_shld_1.  Compress operand 2 constraints.
8938         Use only one alternative in asm template.
8939         (x86_64_shld): Compress operand 2 constraints. Use only one alternative
8940         in asm template.
8941         (*ashldi3_cmp_rex64): Use const_1_to_63_operand operand predicate and
8942         "J" operand constraint for operand 2.
8943         (*ashldi3_cconly_rex64): Ditto.
8944         (*ashrdi3_cmp_rex64): Ditto.
8945         (*ashrdi3_cconly_rex64): Ditto.
8946         (*lshrdi3_cmp_rex64): Ditto.
8947         (*lshrdi3_cconly_rex64): Ditto.
8948         * config/i386/predicates.md (const_1_to_63_operand): New predicate.
8949         * config/i386/i386.md (print_operand) ['s']: Print ", " using fputs.
8950         (split_ashr, split_ashl, split_lshr): Use gen_x86_shrd instead of
8951         gen_x86_shrd_1.
8952
8953 2008-06-27  Jakub Jelinek  <jakub@redhat.com>
8954
8955         * gimplify.c (omp_is_private): Don't return true if decl is not
8956         already private on #pragma omp for or #pragma omp parallel for.
8957
8958         PR debug/36617
8959         * tree-cfg.c (struct move_stmt_d): Replace block field with
8960         orig_block and new_block fields.
8961         (move_stmt_r): Only set TREE_BLOCK to p->new_block if
8962         if it used to be NULL, p->orig_block or if p->orig_block is NULL.
8963         (move_block_to_fn): Replace vars_map and new_label_map arguments
8964         with struct move_stmt_d pointer.
8965         (replace_block_vars_by_duplicates): New function.
8966         (move_sese_region_to_fn): Add ORIG_BLOCK argument.  Adjust
8967         move_block_to_fn caller.  If ORIG_BLOCK is non-NULL, move over
8968         all subblocks of ORIG_BLOCK to the new function.  Call
8969         replace_block_vars_by_duplicates.
8970         * tree-flow.h (move_sese_region_to_fn): Adjust prototype.
8971         * omp-low.c (expand_omp_taskreg): Set TREE_USED on DECL_INITIAL
8972         BLOCK of the new function.  Adjust move_sese_region_to_fn caller.
8973         Prune vars with original DECL_CONTEXT from child_cfun->local_decls.
8974         (expand_omp): Temporarily set input_location to the location of
8975         region's controlling stmt.
8976         (lower_omp_sections, lower_omp_for): Add a BLOCK into outermost
8977         BIND_EXPR, push ctx->block_vars and gimplification vars into
8978         the BIND_EXPR and its block's BLOCK_VARS instead of directly
8979         into dest function.
8980         (lower_omp_single): Set TREE_USED on the BIND_EXPR's BLOCK if
8981         there are any BLOCK_VARS.
8982         (lower_omp_taskreg): Set BLOCK on a BIND_EXPR containing the
8983         OMP_PARALLEL or OMP_TASK stmt.
8984         (lower_omp): Save and restore input_location around the lower_omp_1
8985         call.
8986
8987 2008-06-27  Richard Guenther  <rguenther@suse.de>
8988
8989         PR tree-optimization/36400
8990         PR tree-optimization/36373
8991         PR tree-optimization/36344
8992         * tree-ssa-structalias.c (var_escaped, escaped_tree, escaped_id,
8993         var_nonlocal, nonlocal_tree, nonlocal_id): New globals
8994         (update_alias_info): Remove call clobbering code.
8995         (make_constraint_to): New helper function.
8996         (make_escape_constraint): Likewise.
8997         (handle_rhs_call): Use it on all pointer containing arguments.
8998         Also mark the static chain escaped.
8999         (handle_lhs_call): Make constraints from NONLOCAL and ESCAPED
9000         instead of ANYTHING.
9001         (make_constraint_from): New helper split out from ...
9002         (make_constraint_from_anything): ... here.
9003         (find_func_aliases): Add constraints for escape sites.
9004         (intra_create_variable_infos): Make constraints from NONLOCAL
9005         for parameters.
9006         (find_what_p_points_to): Interpret NONLOCAL and ESCAPED the same
9007         as ANYTHING.
9008         (clobber_what_p_points_to): Remove.
9009         (clobber_what_escaped): New function.
9010         (init_base_vars): Init NONLOCAL and ESCAPED.
9011         (do_sd_constraint): Do not propagate the solution from ESCAPED
9012         but use ESCAPED as a placeholder.
9013         (solve_graph): Likewise.
9014         * tree-flow.h (clobber_what_p_points_to): Remove.
9015         (clobber_what_escaped): Declare.
9016         * tree-ssa-alias.c (set_initial_properties): Call it.
9017         Remove code clobbering escaped pointers.
9018
9019 2008-06-27  Richard Sandiford  <rdsandiford@googlemail.com>
9020
9021         * function.c (allocate_struct_function): Only allocate a unique
9022         funcdef_no if the decl is nonzero.
9023
9024 2008-06-27  Richard Sandiford  <rdsandiford@googlemail.com>
9025
9026         * config/mips/mips-protos.h (mips_split_const_insns): Declare.
9027         * config/mips/mips.c (mips_split_const_insns): New function.
9028         * config/mips/mips.md (move_type): New attribute.
9029         (mode): Move attribute definition earlier in file.  Add "TI" and "TF".
9030         (dword_mode): New attribute.
9031         (type): Avoid long line.  Map "move_type"s to "type"s,
9032         choosing "multi" for doubleword moves if appropriate.
9033         Swap MTC/MFC comments to match their declaration order.
9034         (extended_mips16): Default to "yes" if "move_type" is "sll0",
9035         "type" is "branch" or "jal" is "direct".
9036         (length): Handle "extended_mips16" first.  Make the default
9037         "0" for "ghost" instructions.  Set the length from "move_type".
9038         (truncdisi2, truncdihi2, truncdiqi2): Use "move_type" instead
9039         of "type", with "sll0" for the register alternative.  Remove the
9040         "extended_mips16" attribute.
9041         (zero_extendsidi2, *clear_upper32): Use "move_type" instead
9042         of "type", with "shift_shift" for the register alternative.
9043         Remove the "length" attribute.
9044         (*extend<SHORT:mode><GPR:mode>2, *extendqihi2): Likewise.
9045         (*zero_extend<SHORT:mode><GPR:mode>2): Use "move_type" instead
9046         of "type", with "andi" for the register alternative.
9047         (*zero_extendqihi2): Likewise.
9048         (*zero_extend<SHORT:mode><GPR:mode>2_mips16e): Use a "move_type"
9049         of "andi" instead of a "type" of "arith".
9050         (*zero_extend<SHORT:mode><GPR:mode>2_mips16): Use "move_type"
9051         instead of "type".
9052         (*zero_extendqihi2_mips16, mov_<load>l, mov_<load>r, mov_<store>l)
9053         (mov_<store>r, *mov<mode>_ra): Likewise.
9054         (extendsidi2): Use "move_type" instead of "type", with "move"
9055         for the register alternative.
9056         (*extend<SHORT:mode><GPR:mode>2_mips16e): Use "move_type" instead
9057         of "type", with "signext" for the register alternative.
9058         (*extend<SHORT:mode><GPR:mode>2_se<SHORT:size>): Likewise.
9059         (*extendqihi2_mips16e, *extendqihi2_seb): Likewise.
9060         (fix_truncdfsi2_insn, fix_truncsfsi2_insn, fix_truncdfdi2)
9061         (fix_truncsfdi2, floatsidf2, floatdidf2, floatsisf2, floatdisf2)
9062         (floatdisf2, *branch_equality<mode>_mips16): Likewise.
9063         (unnamed branch insn): Likewise.
9064         (*movdi_gp32_fp64): Fold into...
9065         (*movdi_32bit): ...here.
9066         (*movdf_hardfloat_64bit, *movdf_hardfloat_32bit): Combine into...
9067         (*movdf_hardfloat): ...this new pattern.
9068         (*movdf_softfloat): Remove redundant FPR alternatives.
9069         (*movti, *movti_mips16, *movtf, *movtf_mips16): Add "mode" attributes.
9070         (*movv2sf_hardfloat_64bit, *movv2sf_hardfloat_32bit): Combine into...
9071         (*movv2sf): ...this new pattern.  Use "DF" rather than "SF" for
9072         the "move" attribute.
9073         (*movdi_32bit): Use "move_type" instead of "type" and remove the
9074         "length" attribute.  Use "fpload" and "fpstore" instead of "load"
9075         and "store" for COP loads and stores.
9076         (*movdi_32bit_mips16, *movdi_64bit, *movsi_internal, movcc)
9077         (*movhi_internal, *movhi_mips16, *movqi_internal, *movqi_mips16)
9078         (*movsf_hardfloat, *movsf_softfloat, *movsi_mips16, *movdf_hardfloat)
9079         (*movdf_softfloat, *movdf_mips16, *movti, *movti_mips16, *movtf)
9080         (*movtf_mips16, *movv2sf): Likewise.
9081         (mfhi<GPR:mode>_<HILO:mode>, mflo<GPR:mode>_<HILO:mode>)
9082         (load_low<mode>, load_high<mode>, store_word<mode>, mthc1<mode>)
9083         (mfhc1<mode>): Use "move_type" instead of "move".
9084         (*low<mode>_mips16): Use "extended_mips16" instead of "length".
9085         (loadgp_blockage): Remove the "length" attribute.
9086         (blockage, set_got_version, update_got_version): Likewise.
9087         (call_internal): Remove the "extended_mips16" attribute.
9088         (call_value_internal, call_value_multiple_internal): Likewise.
9089         * config/mips/loongson.md (mov<mode>_internal): Use "move_type"
9090         instead of "move".
9091         * config/mips/mips-dsp.md (mips_lbux, mips_lhx, mips_lwx): Remove
9092         the "length" attribute.
9093
9094 2008-06-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9095
9096         * c-format.c (handle_format_attribute): Fix -Wc++-compat and/or
9097         -Wcast-qual warnings.
9098         * c-pragma.c (dpm_eq, handle_pragma_push_macro,
9099         handle_pragma_pop_macro): Likewise.
9100         * collect2.c (resolve_lib_name): Likewise.
9101         * config/arc/arc.c (arc_init): Likewise.
9102         * config/arm/arm.c (neon_builtin_compare,
9103         locate_neon_builtin_icode): Likewise.
9104         * config/arm/pe.c (arm_mark_dllexport, arm_pe_unique_section): Likewise.
9105         * config/bfin/bfin.c (bfin_init_machine_status,
9106         bfin_optimize_loop): Likewise.
9107         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Likewise.
9108         * config/cris/cris.c (cris_init_expanders): Likewise.
9109         * config/darwin-c.c (frameworks_in_use, add_framework): Likewise.
9110         * config/darwin.c (machopic_indirection_eq,
9111         machopic_indirection_name, machopic_output_indirection): Likewise.
9112         * config/frv/frv.c (frv_init_machine_status, frv_compare_insns,
9113         frv_io_check_address, frv_io_handle_set, frv_io_handle_use_1,
9114         frv_optimize_membar): Likewise.
9115         * config/i386/cygwin.h (mingw_scan,
9116         GCC_DRIVER_HOST_INITIALIZATION): Likewise.
9117         * config/i386/cygwin1.c (mingw_scan): Likewise.
9118         * config/i386/i386.c (machopic_output_stub): Likewise.
9119         * config/i386/winnt.c (gen_stdcall_or_fastcall_suffix,
9120         i386_pe_unique_section): Likewise.
9121         * config/ia64/ia64.c (ia64_init_machine_status,
9122         ia64_h_i_d_extended, get_free_bundle_state, bundling, ia64_reorg):
9123         Likewise.
9124         * config/iq2000/iq2000.c, iq2000_init_machine_status): Likewise.
9125         * config/m68hc11/m68hc11.c (m68hc11_encode_label): Likewise.
9126         * config/m68k/m68k.c (m68k_handle_option,
9127         m68k_sched_md_init_global): Likewise.
9128         * config/mcore/mcore.c (mcore_mark_dllexport, mcore_mark_dllimport,
9129         mcore_unique_section): Likewise.
9130         * config/mips/mips.c (mips_block_move_straight,
9131         mips16_rewrite_pool_refs, mips_sim_wait_regs_2, mips_sim_record_set):
9132         Likewise.
9133         * config/mmix/mmix.c (mmix_init_machine_status,
9134         mmix_encode_section_info): Likewise.
9135         * config/pa/pa.c (pa_init_machine_status, hppa_encode_label): Likewise.
9136         * config/rs6000/rs6000.c (rs6000_init_machine_status,
9137         print_operand_address, output_toc, redefine_groups,
9138         rs6000_elf_encode_section_info, machopic_output_stub): Likewise.
9139         * config/s390/s390.c (s390_init_machine_status): Likewise.
9140         * config/score/score.c (score_block_move_straight,
9141         score_block_move_loop_body): Likewise.
9142         * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
9143         * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
9144         * emit-rtl.c (find_auto_inc): Likewise.
9145         * gcc.c (translate_options, process_command): Likewise.
9146         * reorg.c (dbr_schedule): Likewise.
9147         * sdbout.c (sdbout_start_source_file, sdbout_init): Likewise.
9148         * xcoffout.c (xcoffout_declare_function): Likewise.
9149
9150 2008-06-27  Daniel Berlin  <dberlin@dberlin.org>
9151
9152         * tree-ssa-structalias.c (find_func_aliases): Trivial fix to get
9153         ipa-pta working again.
9154
9155 2008-06-27  David Edelsohn  <edelsohn@gnu.org>
9156
9157         * config/rs6000/t-aix52: Append large data option to LDFLAGS for
9158         genautomata.
9159
9160 2008-06-27  Edmar Wienskoski  <edmar@freescale.com>
9161
9162         * config.gcc (powerpc*-*-*): Add new core e500mc.
9163         * config/rs6000/e500mc.md: New file.
9164         * config/rs6000/rs6000.c (processor_costs): Add new costs for
9165         e500mc.
9166         (rs6000_override_options): Add e500mc case to
9167         processor_target_table. Altivec and Spe options not allowed
9168         with e500mc. Add isel instruction to e500mc by
9169         default. Initialize rs6000_cost for e500mc.
9170         (rs6000_issue_rate): Set issue rate for e500mc.
9171         * config/rs6000/rs6000.h (processor_type): Add
9172         PROCESSOR_PPCE500MC.
9173         (ASM_CPU_SPEC): Add e500mc.
9174         Set TARGET_ISEL to rs6000_isel.
9175         * config/rs6000/e500.h: Remove redefinition of TARGET_ISEL.
9176         (CHECK_E500_OPTIONS): Remove TARGET_ISEL.
9177         * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce500mc.
9178         Include e500mc.md.
9179         * doc/invoke.texi: Add e500mc to list of cpus.
9180
9181 2008-06-27  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
9182
9183         PR c/34867
9184         * c-lex.c (lex_charconst): Initialize unsignedp.
9185
9186 2008-06-27  Olivier Hainque  <hainque@adacore.com>
9187
9188         * gimplify.c (gimplify_modify_expr_to_memset): Assert our
9189         documented assumptions.
9190
9191 2008-06-26  H.J. Lu  <hongjiu.lu@intel.com>
9192
9193         * dwarf2out.c: Remove trailing white spaces.  Break long line
9194         in comments.
9195
9196 2008-06-26  Richard Sandiford  <rdsandiford@googlemail.com>
9197
9198         * libfuncs.h (LTI_synchronize): New libfunc_index.
9199         (synchronize_libfunc): Declare.
9200         * builtins.c (expand_builtin_synchronize): Consider using
9201         synchronize_libfunc before falling back on an asm blockage.
9202         * config/mips/mips.c: Include libfuncs.h
9203         (mips_init_libfuncs): Initialize synchronize_libfunc for TARGET_MIPS16.
9204
9205 2008-06-26  Nathan Froyd  <froydnj@codesourcery.com>
9206
9207         * config/rs6000/rs6000.c (emit_allocate_stack): Add copy_r11
9208         parameter.  Copy stack_reg to r11 where appropriate.
9209         (no_global_regs_above): Add gpr parameter.
9210         (rs6000_stack_info): Only add padding for SPE save area if we
9211         are saving SPE GPRs and CR.
9212         (saveres_routine_syms): New variable.
9213         (FIRST_SAVRES_REGISTER, LAST_SAVRES_REGISTER, N_SAVRES_REGISTERS):
9214         Define.
9215         (rs6000_savres_routine_sym): New function.
9216         (rs6000_emit_stack_reset, rs6000_restore_saved_cr): New functions,
9217         split out of...
9218         (rs6000_emit_epilogue): ...here.  Use rs6000_use_multiple_p and
9219         rs6000_savres_strategy.  Restore GPRs out-of-line if appropriate.
9220         Tweak FPR out-of-line saving.
9221         (rs6000_make_savres_rtx): New function.
9222         (rs6000_use_multiple_p): New function.
9223         (rs6000_savres_strategy): New function.
9224         (rs6000_emit_prologue): Use rs6000_savres_strategy.  Save GPRs
9225         out-of-line if appropriate.
9226         * config/rs6000/sysv4.h (FP_SAVE_INLINE): Save FPRs out-of-line
9227         if we are optimizing for size.
9228         (GP_SAVE_INLINE): Define.
9229         (SAVE_FP_SUFFIX, RESTORE_FP_SUFFIX): Only use _l on 64-bit targets.
9230         * config/rs6000/darwin.h (GP_SAVE_INLINE): Define.
9231         * config/rs6000/aix.h (GP_SAVE_INLINE): Define.
9232         * config/rs6000/rs6000.md (*save_gpregs_<mode>): New insn.
9233         (*save_fpregs_<mode>): Add use of r11.
9234         (*restore_gpregs_<mode>): New insn.
9235         (*return_and_restore_gpregs_<mode>): New insn.
9236         (*return_and_restore_fpregs_<mode>): Adjust to clobber LR and
9237         use r11.
9238         * config/rs6000/spe.md (*save_gpregs_spe): New insn.
9239         (*restore_gpregs_spe): New insn.
9240         (*return_and_restore_gpregs_spe): New insn.
9241         * config/rs6000/predicates.md (save_world_operation): Fix check.
9242
9243 2008-06-26  Steven Bosscher  <steven@gcc.gnu.org>
9244
9245         * tree-into-ssa (insert_phi_nodes_for): 'var' must be a DECL at
9246         this point, so assert that.
9247
9248 2008-06-26  Steven Bosscher  <steven@gcc.gnu.org>
9249
9250         * cfganal.c: Include vec.h and vecprim.h.
9251         (compute_idf): Import from...
9252         * tree-into-ssa (compute_idf): ...here.
9253         * basic-block.h (compute_idf): Export.
9254
9255 2008-06-26  Joseph Myers  <joseph@codesourcery.com>
9256
9257         * c-decl.c (merge_decls): Use !current_function_decl to check for
9258         extern declaration of C99 inline function being at file scope.
9259
9260 2008-06-25  John David Anglin  <dave.anglin@gcc-cnrc.gc.ca>
9261
9262         * config.gcc (hppa[12]*-*-hpux10*): Don't use fixproto.
9263
9264 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9265
9266         * alias.c (record_alias_subset, init_alias_analysis): Fix
9267         -Wc++-compat and/or -Wcast-qual warnings.
9268         * attribs.c (lookup_attribute_spec): Likewise.
9269         * bb-reorder.c (find_traces, rotate_loop, find_traces_1_round,
9270         copy_bb, connect_traces,
9271         find_rarely_executed_basic_blocks_and_cr): Likewise.
9272         * bt-load.c (find_btr_def_group, add_btr_def, new_btr_user,
9273         note_btr_set, migrate_btr_defs): Likewise.
9274         * builtins.c (result_vector, expand_builtin_memcpy,
9275         expand_builtin_mempcpy_args, expand_builtin_strncpy,
9276         builtin_memset_read_str, expand_builtin_printf,
9277         fold_builtin_memchr, rewrite_call_expr, fold_builtin_printf):
9278         Likewise.
9279         * caller-save.c (mark_set_regs): Likewise.
9280         * calls.c (expand_call, emit_library_call_value_1): Likewise.
9281         * cgraph.c (cgraph_edge): Likewise.
9282         * combine.c (likely_spilled_retval_1): Likewise.
9283         * coverage.c (htab_counts_entry_hash, htab_counts_entry_eq,
9284         htab_counts_entry_del, get_coverage_counts): Likewise.
9285         * cselib.c (new_elt_list, new_elt_loc_list, entry_and_rtx_equal_p,
9286         new_cselib_val): Likewise.
9287         * dbgcnt.c (dbg_cnt_process_opt): Likewise.
9288         * dbxout.c (dbxout_init, dbxout_type, output_used_types_helper):
9289         Likewise.
9290         * df-core.c (df_compact_blocks): Likewise.
9291         * df-problems.c (df_grow_bb_info, df_chain_create): Likewise.
9292         * df-scan.c (df_grow_reg_info, df_ref_create,
9293         df_insn_create_insn_record, df_insn_rescan, df_notes_rescan,
9294         df_ref_compare, df_ref_create_structure, df_bb_refs_record,
9295         df_record_entry_block_defs, df_record_exit_block_uses,
9296         df_bb_verify): Likewise.
9297         * df.h (DF_REF_EXTRACT_WIDTH_CONST, DF_REF_EXTRACT_OFFSET_CONST,
9298         DF_REF_EXTRACT_MODE_CONST): New.
9299         * dominance.c (get_immediate_dominator, get_dominated_by,
9300         nearest_common_dominator, root_of_dom_tree,
9301         iterate_fix_dominators, first_dom_son, next_dom_son): Fix
9302         -Wc++-compat and/or -Wcast-qual warnings.
9303         * dse.c (clear_alias_set_lookup, get_group_info, gen_rtx_MEM,
9304         record_store, replace_read, check_mem_read_rtx, scan_insn,
9305         dse_step1, dse_record_singleton_alias_set): Likewise.
9306         * dwarf2asm.c (dw2_force_const_mem): Likewise.
9307
9308 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9309
9310         * dwarf2out.c (new_cfi, queue_reg_save, dwarf2out_begin_prologue,
9311         dwarf2out_frame_init, new_loc_descr, new_die, lookup_decl_die,
9312         lookup_decl_loc, add_var_loc_to_decl, compute_section_prefix,
9313         assign_symbol_names, htab_cu_hash, htab_cu_eq, htab_cu_del,
9314         build_abbrev_table, new_loc_list, output_comp_unit, add_arange,
9315         add_ranges_num, add_ranges_by_labels, file_info_cmp,
9316         file_name_acquire, output_file_names, add_const_value_attribute,
9317         premark_used_types_helper, file_table_eq, file_table_hash,
9318         lookup_filename, dwarf2out_var_location, dwarf2out_source_line,
9319         dwarf2out_init, file_table_relative_p): Fix -Wc++-compat and/or
9320         -Wcast-qual warnings.
9321         * ebitmap.c (ebitmap_array_grow, ebitmap_array_init,
9322         ebitmap_alloc, ebitmap_ior, ebitmap_and_compl): Likewise.
9323         * emit-rtl.c (get_mem_attrs, get_reg_attrs, gen_rtvec,
9324         gen_reg_rtx, start_sequence, init_emit): Likewise.
9325         * et-forest.c (et_new_occ, et_new_tree): Likewise.
9326         * except.c (init_eh_for_function, gen_eh_region,
9327         remove_unreachable_regions, add_ehl_entry, duplicate_eh_regions_1,
9328         arh_to_landing_pad, arh_to_label, add_action_record,
9329         add_call_site, switch_to_exception_section): Likewise.
9330         * expmed.c (synth_mult): Likewise.
9331         * expr.c (gen_group_rtx, emit_group_load, emit_group_store,
9332         store_expr): Likewise.
9333         * final.c (shorten_branches, final_scan_insn, debug_queue_symbol):
9334         Likewise.
9335         * function.c (assign_stack_temp_for_type,
9336         allocate_struct_function, match_asm_constraints_1): Likewise.
9337         * gcov-io.c (gcov_allocate): Likewise.
9338         * gcse.c (GNEW, GCNEW, GNEWVEC, GCNEWVEC, GRESIZEVEC, GNEWVAR,
9339         GCNEWVAR, GRESIZEVAR, GOBNEW, GOBNEWVAR): New.
9340         (gcse_main, alloc_gcse_mem, alloc_gcse_mem, alloc_reg_set_mem,
9341         record_one_set, insert_expr_in_table, insert_set_in_table,
9342         dump_hash_table, compute_hash_table_work, alloc_hash_table,
9343         pre_ldst_expr_hash, pre_ldst_expr_eq, find_rtx_in_ldst,
9344         reg_set_info, reg_clear_last_set): Fix -Wc++-compat and/or
9345         -Wcast-qual warnings.
9346
9347 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9348
9349         * cse.c (approx_reg_cost_1, cse_insn): Fix -Wc++-compat and/or
9350         -Wcast-qual warnings.
9351         * gcc.c (process_command): Likewise.
9352         * genattrtab.c (oballoc): Use XOBNEW.
9353         (oballocvec): Define.
9354         (attr_hash_add_rtx, attr_hash_add_string, attr_string,
9355         get_attr_value, fill_attr, make_length_attrs, gen_attr, gen_insn,
9356         gen_delay, find_attr, gen_insn_reserv, gen_bypass_1): Fix
9357         -Wc++-compat and/or -Wcast-qual warnings.
9358         * genautomata.c (XCREATENODE, XCREATENODEVEC, XCREATENODEVAR,
9359         XCOPYNODE, XCOPYNODEVEC, XCOPYNODEVAR): New.
9360         (gen_cpu_unit, gen_query_cpu_unit, gen_bypass, gen_excl_set,
9361         gen_presence_absence_set, gen_automaton, gen_regexp_el,
9362         gen_regexp_repeat, gen_regexp_allof, gen_regexp_oneof,
9363         gen_regexp_sequence, gen_reserv, gen_insn_reserv, process_excls,
9364         add_excls, process_presence_absence_names,
9365         process_presence_absence_patterns, add_presence_absence,
9366         process_regexp, add_advance_cycle_insn_decl, get_free_alt_state,
9367         get_free_state, add_arc, get_free_automata_list_el,
9368         form_reserv_sets_list, copy_insn_regexp, transform_1, transform_2,
9369         transform_3, cache_presence, create_ainsns, create_automata,
9370         create_state_ainsn_table, dfa_insn_code_enlarge,
9371         output_trans_func, output_min_issue_delay_func,
9372         output_dead_lock_func, output_reset_func,
9373         output_get_cpu_unit_code_func, output_dfa_start_func,
9374         expand_automata): Likewise.
9375         * genextract.c (gen_insn): Likewise.
9376         * gengtype-lex.l: Likewise.
9377         * gengtype.c (read_input_list, adjust_field_type,
9378         process_gc_options): Likewise.
9379         * genoutput.c (note_constraint): Likewise.
9380         * genpreds.c (mangle, add_constraint): Likewise.
9381         * genrecog.c (process_define_predicate, new_decision,
9382         add_to_sequence): Likewise.
9383         * gensupport.c (record_insn_name): Likewise.
9384
9385 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9386
9387         * config/i386/driver-i386.c (detect_caches_amd,
9388         detect_caches_intel, host_detect_local_cpu): Fix -Wc++-compat
9389         and/or -Wcast-qual warnings.
9390         *ggc-common.c (ggc_mark_roots, gt_pch_note_object,
9391         gt_pch_note_reorder, relocate_ptrs, write_pch_globals,
9392         gt_pch_save): Likewise.
9393         * ggc-page.c (push_depth, push_by_depth, alloc_anon, alloc_page,
9394         gt_ggc_m_S, clear_marks, ggc_pch_read): Likewise.
9395         * global.c (compute_regsets): Likewise.
9396         * graph.c (print_rtl_graph_with_bb, clean_graph_dump_file,
9397         finish_graph_dump_file): Likewise.
9398         * haifa-sched.c (schedule_block, extend_h_i_d, extend_ready,
9399         unlink_bb_notes): Likewise.
9400         * integrate.c (get_hard_reg_initial_val): Likewise.
9401         * ipa-prop.c (ipa_push_func_to_list): Likewise.
9402         * ipa-struct-reorg.c (gen_var_name, gen_cluster_name): Likewise.
9403         * local-alloc.c (update_equiv_regs): Likewise.
9404         * loop-invariant.c (check_invariant_table_size,
9405         hash_invariant_expr, eq_invariant_expr, find_or_insert_inv):
9406         Likewise.
9407         * loop-iv.c (check_iv_ref_table_size, analyzed_for_bivness_p,
9408         altered_reg_used, mark_altered): Likewise.
9409         * loop-unroll.c (si_info_eq, ve_info_eq, allocate_basic_variable,
9410         insert_var_expansion_initialization,
9411         combine_var_copies_in_loop_exit, apply_opt_in_copies,
9412         release_var_copies): Likewise.
9413         * matrix-reorg.c (mat_acc_phi_hash, mat_acc_phi_eq, mtt_info_eq,
9414         analyze_matrix_decl, add_allocation_site, analyze_transpose,
9415         analyze_accesses_for_phi_node, check_var_notmodified_p,
9416         check_allocation_function, find_sites_in_func,
9417         record_all_accesses_in_func, transform_access_sites,
9418         transform_allocation_sites): Likewise.
9419         * omp-low.c (new_omp_region, create_omp_child_function_name,
9420         check_omp_nesting_restrictions, check_combined_parallel,
9421         lower_omp_2, diagnose_sb_1, diagnose_sb_2): Likewise.
9422         * optabs.c (no_conflict_move_test, gen_libfunc, gen_fp_libfunc,
9423         gen_intv_fp_libfunc, gen_interclass_conv_libfunc,
9424         gen_intraclass_conv_libfunc, set_optab_libfunc, set_conv_libfunc):
9425         Likewise.
9426         * opts-common.c (prune_options): Likewise.
9427         * opts.c (add_input_filename, print_filtered_help,
9428         get_option_state): Likewise.
9429         * params.c (add_params): Likewise.
9430         * passes.c (set_pass_for_id, next_pass_1,
9431         do_per_function_toporder, pass_fini_dump_file): Likewise.
9432         * postreload.c (reload_cse_simplify_operands): Likewise.
9433         * predict.c (tree_predicted_by_p, tree_predict_edge,
9434         clear_bb_predictions, combine_predictions_for_bb): Likewise.
9435
9436 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9437
9438         * ra.h (add_neighbor): Fix -Wc++-compat and/or -Wcast-qual
9439         warnings.
9440         * recog.c (check_asm_operands, validate_change_1): Likewise.
9441         * reg-stack.c (check_asm_stack_operands, subst_asm_stack_regs,
9442         subst_asm_stack_regs): Likewise.
9443         * regclass.c (regclass, som_hash, som_eq, record_subregs_of_mode,
9444         cannot_change_mode_set_regs, invalid_mode_change_p): Likewise.
9445         * regmove.c (reg_is_remote_constant_p): Likewise.
9446         * regrename.c (regrename_optimize, scan_rtx_reg,
9447         kill_clobbered_value, kill_set_value, kill_autoinc_value):
9448         Likewise.
9449         * regstat.c (regstat_init_n_sets_and_refs, regstat_compute_ri,
9450         regstat_compute_calls_crossed): Likewise.
9451         * reload1.c (init_reload, new_insn_chain,
9452         has_nonexceptional_receiver, reload, copy_reloads,
9453         calculate_needs_all_insns, init_elim_table): Likewise.
9454         * rtl-factoring.c (compute_rtx_cost, fill_hash_bucket): Likewise.
9455         * rtl.c (shallow_copy_rtx_stat): Likewise.
9456         * rtlanal.c (parms_set): Likewise.
9457         * sbitmap.c (sbitmap_alloc, sbitmap_alloc_with_popcount,
9458         sbitmap_resize, sbitmap_vector_alloc): Likewise.
9459         * sched-ebb.c (earliest_block_with_similiar_load,
9460         add_deps_for_risky_insns): Likewise.
9461         * sched-rgn.c (find_rgns, gather_region_statistics, extend_rgns,
9462         schedule_region): Likewise.
9463         * see.c (eq_descriptor_pre_extension,
9464         hash_descriptor_pre_extension, hash_del_pre_extension,
9465         eq_descriptor_properties, hash_descriptor_properties,
9466         hash_del_properties, see_seek_pre_extension_expr,
9467         see_initialize_data_structures, see_print_register_properties,
9468         see_print_pre_extension_expr, see_delete_merged_def_extension,
9469         see_delete_unmerged_def_extension, see_emit_use_extension,
9470         see_pre_delete_extension, see_map_extension, see_commit_changes,
9471         see_analyze_merged_def_local_prop,
9472         see_analyze_merged_def_local_prop,
9473         see_analyze_unmerged_def_local_prop, see_analyze_use_local_prop,
9474         see_set_prop_merged_def, see_set_prop_unmerged_def,
9475         see_set_prop_unmerged_use, see_print_one_extension,
9476         see_merge_one_use_extension, see_merge_one_def_extension,
9477         see_store_reference_and_extension, see_update_uses_relevancy,
9478         see_update_defs_relevancy): Likewise.
9479         * statistics.c (hash_statistics_hash, hash_statistics_eq,
9480         hash_statistics_free, curr_statistics_hash): Likewise.
9481         * stmt.c (parse_output_constraint, decl_overlaps_hard_reg_set_p,
9482         expand_asm_operands, expand_return, case_bit_test_cmp,
9483         expand_case): Likewise.
9484         * stor-layout.c (start_record_layout): Likewise.
9485         * stringpool.c (ggc_alloc_string, gt_pch_n_S,
9486         gt_pch_save_stringpool): Likewise.
9487         * tree-data-ref.c (hash_stmt_vertex_info,
9488         have_similar_memory_accesses_1, ref_base_address_1): Likewise.
9489         * tree-ssa-phiopt.c (name_to_bb_hash): Likewise.
9490
9491 2008-06-25  Uros Bizjak  <ubizjak@gmail.com>
9492
9493         PR target/36627
9494         * config/i386/i386.md : Change constraints of HImode and QImode
9495         immediate operands from "i" to "n".  Change SImode "ni" constraint to
9496         "i" and SImode "rmi" constraint to "g".  Remove all constraints
9497         from const0_operand and const1_operand predicated operands.
9498         (i): Change QImode and HImode attribute from "i" to "n".
9499         (*subqi_2): Change HImode operands to QImode.
9500         (*subqi_3): Ditto.
9501
9502 2008-06-25  Olivier Hainque  <hainque@adacore.com>
9503
9504         * Makefile.in (GTFILES_H): Use | instead of ; as separator in
9505         sed substitutions.
9506
9507 2008-06-25  Richard Guenther  <rguenther@suse.de>
9508
9509         * tree-ssa-structalias.c (fieldoff_compare): Make sure to
9510         not overflow the result type.
9511
9512 2008-06-25  Richard Guenther  <rguenther@suse.de>
9513
9514         * tree-vn.c (vn_add): Handle TRUTH_*_EXPR.
9515         (vn_lookup): Likewise.
9516
9517 2008-06-25  Richard Guenther  <rguenther@suse.de>
9518
9519         PR tree-optimization/35518
9520         * fold-const.c (fold_ternary): Strip trivial BIT_FIELD_REFs.
9521         * tree-sra.c (instantiate_element): Use fold_build3 to build
9522         BIT_FIELD_REFs.
9523         (try_instantiate_multiple_fields): Likewise.
9524
9525 2008-06-24  Andrew Pinski  <andrew_pinski@playstation.sony.com>
9526
9527         * config/rs6000/rs6000.md: Change all string instruction's clobber to
9528         be early clobbers.
9529
9530 2008-06-24  Andrew Pinski  <andrew_pinski@playstation.sony.com>
9531
9532         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Set
9533         use_backchain_to_restore_sp to true
9534         if the offset of the link register save area would go over the 32k - 1
9535         offset limit of the load
9536         instructions.
9537
9538 2008-06-25  Hans-Peter Nilsson  <hp@axis.com>
9539
9540         * doc/invoke.texi (Optimize Options) <fstrict-aliasing>: Add
9541         anchor for the type-punning blurb.  Cross-reference "Structures
9542         unions enumerations and bit-fields implementation".  Provide a
9543         cast-through-pointer example.  Make final sentence self-contained.
9544         * doc/implement-c.texi (Structures unions enumerations and
9545         bit-fields implementation): Cross-reference the type-punning blurb
9546         in the -fstrict-aliasing documentation.
9547
9548 2008-06-24  Andrew Pinski  <andrew_pinski@playstation.sony.com>
9549
9550         PR middle-end/36594
9551         * builtins.c (expand_builtin_nonlocal_goto): Stabilize the address of
9552         the memory instead of the memory itself for the save area.
9553
9554 2008-06-24  Olivier Hainque  <hainque@adacore.com>
9555             Nicolas Roche  <roche@adacore.com>
9556
9557         * gengtype.c (srcdir_len): size_t instead of int.
9558         (get_file_realbasename): New function.  For F a filename, the real
9559         basename of F, with all the path components stripped.
9560         (get_file_srcdir_relative_path): New function.  For F a filename, the
9561         relative path to F from $(srcdir).
9562         (get_file_basename): Rewrite using get_file_srcdir_relative_path and
9563         get_file_realbasename.  Adjust the head comment.
9564         (get_prefix_langdir_index): New function. For F a filename, return the
9565         lang_dir_names[] relative index of the language directory that is
9566         a prefix in F.
9567         (get_file_langdir): For F a filename, return the name of the language
9568         directory where F is located.
9569         (get_file_gtfilename): New function. The gt- output file name for an
9570         input filename F.
9571         (get_output_file_with_visibility): Replace in-line computations with
9572         uses of get_file_gtfilename and get_prefix_langdir_index.
9573         * Makefile.in (GTFILES_H): Adjust to match what gengtype generates.
9574
9575 2008-06-24  Jakub Jelinek  <jakub@redhat.com>
9576
9577         PR tree-optimization/36504
9578         * tree-ssa-loop-prefetch.c (gather_memory_references_ref): Skip
9579         references without base address.
9580
9581 2008-06-23  Uros Bizjak  <ubizjak@gmail.com>
9582
9583         PR middle-end/36584
9584         * calls.c (expand_call): Increase alignment for recursive functions.
9585
9586 2008-06-23  Anatoly Sokolov  <aesok@post.ru>
9587
9588         * config/avr/avr.c (avr_function_value): Add new 'outgoing' argument.
9589         (TARGET_FUNCTION_VALUE): New define.
9590         * config/avr/avr-protos.h (avr_function_value): Remove declaration.
9591         * config/avr/avr.h (FUNCTION_VALUE): Remove.
9592
9593 2008-06-23  Uros Bizjak  <ubizjak@gmail.com>
9594
9595         * config/i386/i386.md (fmodxf3): Change sequence of move instructions.
9596         (fmod<mode>3): Ditto.
9597         (remainderxf3): Ditto.
9598         (remainder<mode>3): Ditto.
9599
9600 2008-06-23  Jakub Jelinek  <jakub@redhat.com>
9601
9602         PR target/36533
9603         * emit-rtl.c (set_reg_attrs_from_value): Do nothing if
9604         REG is a hard register.
9605
9606         PR tree-optimization/36508
9607         * tree-ssa-pre.c (compute_antic): Allow num_iterations up to
9608         499, don't check it at all in release compilers.
9609
9610 2008-06-23  Uros Bizjak  <ubizjak@gmail.com>
9611
9612         * config/i386/i386.md (*fop_<mode>_1_i387): Use SSE_FLOAT_MODE_P
9613         together with SSE_TARGET_MATH to disable insn pattern.
9614         (*fop_<MODEF:mode>_2_i387): Ditto.
9615         (*fop_<MODEF:mode>_3_i387): Ditto.
9616
9617 2008-06-22  Andy Hutchinson  <hutchinsonandy@aim.com>
9618
9619         * config/avr/avr.h (SUPPORTS_INIT_PRIORITY): Define.
9620
9621 2008-06-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
9622
9623         PR middle-end/34906
9624         * gimplify.c (gimplify_asm_expr): Check the return code of
9625         parse_output_constraint call, set function return and is_inout
9626         value if it failed.
9627
9628 2008-06-22  Ian Lance Taylor  <iant@google.com>
9629
9630         * c-lex.c (narrowest_unsigned_type): Change itk to int.
9631         (narrowest_signed_type): Likewise.
9632         * c-typeck.c (c_common_type): Change local variable mclass to enum
9633         mode_class, twice.
9634         (parser_build_binary_op): Compare the TREE_CODE_CLASS with
9635         tcc_comparison, not the tree code itself.
9636         * c-common.c (def_fn_type): Pass int, not an enum, to va_arg.
9637         (c_expand_expr): Cast modifier to enum expand_modifier.
9638         * c-common.h (C_RID_CODE): Add casts.
9639         (C_SET_RID_CODE): Define.
9640         * c-parser.c (c_parse_init): Use C_SET_RID_CODE.
9641         (c_lex_one_token): Add cast to avoid warning.
9642         (c_parser_objc_type_name): Rename local typename to type_name.
9643         (check_no_duplicate_clause): Change code parameter to enum
9644         omp_clause_code.
9645         (c_parser_omp_var_list_parens): Change kind parameter to enum
9646         omp_clause_code.
9647         (c_parser_omp_flush): Pass OMP_CLAUSE_ERROR, not 0, to
9648         c_parser_omp_list_var_parens.
9649         (c_parser_omp_threadprivate): Likewise.
9650         * cp/lex.c (init_reswords): Use C_SET_RID_CODE.
9651         * cp/parser.c (cp_lexer_get_preprocessor_token): Likewise.
9652         * c-format.c (NO_FMT): Define.
9653         (printf_length_specs): Use NO_FMT.
9654         (asm_fprintf_length_specs): Likewise.
9655         (gcc_diag_length_specs): Likewise.
9656         (scanf_length_specs): Likewise.
9657         (strfmon_length_specs): Likewise.
9658         (gcc_gfc_length_specs): Likewise.
9659         (printf_flag_specs): Change 0 to STD_C89.
9660         (asm_fprintf_flag_specs): Likewise.
9661         (gcc_diag_flag_specs): Likewise.
9662         (gcc_cxxdiag_flag_specs): Likewise.
9663         (scanf_flag_specs): Likewise.
9664         (strftime_flag_specs): Likewise.
9665         (strfmon_flag_specs): Likewise.
9666         (print_char_table): Likewise.
9667         (asm_fprintf_char_table): Likewise.
9668         (gcc_diag_char_table): Likewise.
9669         (gcc_tdiag_char_table): Likewise.
9670         (gcc_cdiag_char_table): Likewise.
9671         (gcc_cxxdiag_char_table): Likewise.
9672         (gcc_gfc_char_table): Likewise.
9673         (scan_char_table): Likewise.
9674         (time_char_table): Likewis.
9675         (monetary_char_table): Likewise.
9676         * c-format.h (BADLEN): Likewise.
9677
9678 2008-06-21  Ian Lance Taylor  <iant@google.com>
9679
9680         * tree.h (enum tree_code): Include all-tree.def, not tree.def.
9681         Define END_OF_BASE_TREE_CODES around inclusion.
9682         * tree.c (tree_code_type): New global array.
9683         (tree_code_length, tree_code_name): Likewise.
9684         * Makefile.in (TREE_H): Add all-tree.def, c-common.def, and
9685         $(lang_tree_files).
9686         (all-tree.def, s-alltree): New targets.
9687         (gencheck.h, s-gencheck): Remove.
9688         (tree.o): Depend upon all-tree.def.
9689         (build/gencheck.o): Remove gencheck.h dependency.
9690         (mostlyclean): Don't remove gencheck.h.
9691         * c-common.h (enum c_tree_code): Remove.
9692         * c-lang.c (tree_code_type): Remove.
9693         (tree_code_length, tree_code_name): Remove.
9694         * gencheck.c (tree_codes): Include all-tree.def, rather than
9695         tree.def, c-common.def, and gencheck.h.  Undefined DEFTREECODE
9696         after it is used.
9697         * tree-browser.c (tb_tree_codes): Include all-tree.def, rather
9698         than tree.def.
9699         * cp/cp-tree.h (enum cplus_tree_code): Remove.
9700         (operator_name_info): Size to MAX_TREE_CODES.
9701         (assignment_operator_name_info): Likewise.
9702         * cp/cp-lang.c (tree_code_type): Remove.
9703         (tree_code_length, tree_code_name): Remove.
9704         * cp/lex.c (operator_name_info): Size to MAX_TREE_CODES.
9705         (assignment_operator_name_info): Likewise.
9706         * cp/decl.c (grok_op_properties): Change LAST_CPLUS_TREE_CODE to
9707         MAX_TREE_CODES.
9708         * cp/mangle.c (write_expression): Likewise.
9709         * cp/Make-lang.in (CXX_TREE_H): Remove cp/cp-tree.def.
9710         * fortran/f95-lang.c (tree_code_type): Remove.
9711         (tree_code_length, tree_code_name): Remove.
9712         * java/java-tree.h (enum java_tree_code): Remove.
9713         * java/lang.c (tree_code_type): Remove.
9714         (tree_code_length, tree_code_name): Remove.
9715         * java/Make-lang.in (JAVA_TREE_H): Remove java/java-tree.def.
9716         * objc/objc-act.h (enum objc_tree_code): Remove.
9717         * objc/objc-lang.c (tree_code_type): Remove.
9718         (tree_code_length, tree_code_name): Remove.
9719         * objcp/objcp-lang.c (tree_code_type): Remove.
9720         (tree_code_length, tree_code_name): Remove.
9721         * ada/ada-tree.h (enum gnat_tree_code): Remove.
9722         * ada/Make-lang.in (ADA_TREE_H): Remove ada/ada-tre.def.
9723         * ada/misc.c (tree_code_type): Remove.
9724         (tree_code_length, tree_code_name): Remove.
9725
9726 2008-06-21  Bernhard Fischer  <aldot@gcc.gnu.org>
9727
9728         * tree-ssa-pre.c (fini_antic): Bitmap_sets have to be freed before
9729         the grand_bitmap_obstack.
9730
9731 2008-06-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9732
9733         * ggc.h (GGC_RESIZEVAR): New, reorder macros.
9734         * tracer.c (tail_duplicate): Fix for -Wc++-compat.
9735         * tree-affine.c (aff_combination_expand, free_name_expansion): Likewise.
9736         * tree-cfg.c (replace_by_duplicate_decl, replace_ssa_name,
9737         move_stmt_r, new_label_mapper): Likewise.
9738         * tree-complex.c (cvc_lookup): Likewise.
9739         * tree-dfa.c (create_function_ann): Likewise.
9740         * tree-dump.c (dump_register): Likewise.
9741         * tree-if-conv.c (tree_if_conversion, add_to_predicate_list,
9742         find_phi_replacement_condition): Likewise.
9743         * tree-inline.c (copy_phis_for_bb, estimate_num_insns_1,
9744         tree_function_versioning): Likewise.
9745         * tree-into-ssa.c (cmp_dfsnum): Likewise.
9746         * tree-iterator.c (tsi_link_before, tsi_link_after): Likewise.
9747         * tree-nested.c (lookup_field_for_decl, lookup_tramp_for_decl,
9748         get_nonlocal_debug_decl, convert_nonlocal_reference,
9749         convert_nonlocal_omp_clauses, get_local_debug_decl,
9750         convert_local_reference, convert_local_omp_clauses,
9751         convert_nl_goto_reference, convert_nl_goto_receiver,
9752         convert_tramp_reference, convert_call_expr): Likewise.
9753         * tree-outof-ssa.c (contains_tree_r): Likewise.
9754         * tree-parloops.c (reduction_phi, initialize_reductions,
9755         eliminate_local_variables_1, add_field_for_reduction,
9756         add_field_for_name, create_phi_for_local_result,
9757         create_call_for_reduction_1, create_loads_for_reductions,
9758         create_stores_for_reduction, create_loads_and_stores_for_name):
9759         Likewise.
9760         * tree-phinodes.c (allocate_phi_node): Likewise.
9761         * tree-predcom.c (order_drefs, execute_pred_commoning_cbck): Likewise.
9762         * tree-sra.c (sra_elt_hash, sra_elt_eq, lookup_element): Likewise.
9763         * tree-ssa-alias.c (get_mem_sym_stats_for): Likewise.
9764         * tree-ssa-coalesce.c (compare_pairs): Likewise.
9765         * tree-ssa-loop-im.c (mem_ref_in_stmt, memref_hash, memref_eq,
9766         memref_free, gather_mem_refs_stmt, vtoe_hash, vtoe_eq, vtoe_free,
9767         record_vop_access, get_vop_accesses, get_vop_stores): Likewise.
9768         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Likewise.
9769         * tree-ssa-sccvn.c (VN_INFO_GET, free_phi, free_reference,
9770         vn_nary_op_insert): Likewise.
9771         * tree-ssa.c (redirect_edge_var_map_add,
9772         redirect_edge_var_map_clear, redirect_edge_var_map_dup): Likewise.
9773         * tree-vectorizer.c (vectorize_loops): Likewise.
9774         * tree.c (make_node_stat, copy_node_stat, build_int_cst_wide,
9775         build_fixed, build_real, make_tree_binfo_stat, make_tree_vec_stat,
9776         tree_cons_stat, build1_stat, build_variant_type_copy,
9777         decl_init_priority_lookup, decl_fini_priority_lookup,
9778         decl_priority_info, decl_restrict_base_lookup,
9779         decl_restrict_base_insert, decl_debug_expr_lookup,
9780         decl_debug_expr_insert, decl_value_expr_lookup,
9781         decl_value_expr_insert, type_hash_eq, type_hash_lookup,
9782         type_hash_add, get_file_function_name, tree_check_failed,
9783         tree_not_check_failed, tree_range_check_failed,
9784         omp_clause_range_check_failed, build_omp_clause,
9785         build_vl_exp_stat): Likewise.
9786         * value-prof.c (gimple_histogram_value,
9787         gimple_duplicate_stmt_histograms): Likewise.
9788         * var-tracking.c (attrs_list_insert, attrs_list_copy,
9789         unshare_variable, variable_union_info_cmp_pos, variable_union,
9790         dataflow_set_different_1, dataflow_set_different_2,
9791         vt_find_locations, variable_was_changed, set_variable_part,
9792         emit_notes_for_differences_1, emit_notes_for_differences_2): Likewise.
9793         * varasm.c (prefix_name, emutls_decl, section_entry_eq,
9794         section_entry_hash, object_block_entry_eq,
9795         object_block_entry_hash, create_block_symbol,
9796         initialize_cold_section_name, default_function_rodata_section,
9797         strip_reg_name, set_user_assembler_name, const_desc_eq,
9798         build_constant_desc, output_constant_def, lookup_constant_def,
9799         const_desc_rtx_hash, const_desc_rtx_eq, const_rtx_hash_1,
9800         create_constant_pool, force_const_mem, compute_reloc_for_rtx_1,
9801         default_internal_label): Likewise.
9802         * varray.c (varray_init, varray_grow): Likewise.
9803         * vec.c (vec_gc_o_reserve_1, vec_heap_o_reserve_1): Likewise.
9804
9805 2008-06-20  Uros Bizjak  <ubizjak@gmail.com>
9806
9807         * config/i386/i386.md (*jcc_fused_1): Handle all valid compare
9808         operators for "test" insn.  Macroize insn using SWI mode macro.
9809         (*jcc_fused_2): Ditto.
9810         (*jcc_fused_3): Macroize insn using SWI mode macro.
9811         (*jcc_fused_4): Ditto.
9812
9813 2008-06-20  Bernhard Fischer  <aldot@gcc.gnu.org>
9814
9815         * tree-ssa-pre.c: Fix typo in comment.
9816         (init_antic, fini_antic): Add explicit funtions for
9817         initializing and deinitializing ANTIC and AVAIL sets.
9818         (create_expression_by_pieces): Fix typo in comment.
9819         Remove redundant set of new_stuff and use NULL_TREE instead of NULL.
9820         (execute_pre): Eventually dump details about ANTIC_IN.
9821
9822 2008-06-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9823
9824         * collect2.c (main, add_to_list): Fix for -Wc++-compat.
9825         * gcc.c (translate_options, init_spec, store_arg, read_specs,
9826         add_to_obstack, file_at_path, find_a_file, execute,
9827         add_preprocessor_option, add_assembler_option, add_linker_option,
9828         process_command, insert_wrapper, do_option_spec, do_self_spec,
9829         spec_path, do_spec_1, is_directory, main, used_arg,
9830         getenv_spec_function): Likewise.
9831         * tlink.c (symbol_hash_lookup, file_hash_lookup,
9832         demangled_hash_lookup, symbol_push, file_push, frob_extension):
9833         Likewise.
9834
9835 2008-06-19  Kenneth Zadeck <zadeck@naturalbridge.com>
9836
9837         * doc/rtl.texi: Updated subreg section.
9838
9839 2008-06-19  Jakub Jelinek  <jakub@redhat.com>
9840
9841         PR c++/36523
9842         * cgraphunit.c (cgraph_process_new_functions): Don't clear
9843         node->needed and node->reachable.
9844         * cgraphbuild.c (record_reference): Handle OMP_PARALLEL and OMP_TASK.
9845         * omp-low.c (delete_omp_context): Call finalize_task_copyfn.
9846         (expand_task_call): Don't call expand_task_copyfn.
9847         (expand_task_copyfn): Renamed to...
9848         (finalize_task_copyfn): ... this.
9849
9850 2008-06-19  Jan Hubicka  <jh@suse.cz>
9851
9852         * builtins.c (expand_builtin_nonlocal_goto): Stabilize r_sp before
9853         clobbering framepointer.
9854
9855 2008-06-19  Jan Hubicka  <jh@suse.cz>
9856
9857         * tree-optimize.c (execute_early_local_optimizations): Set
9858         cgraph_state only at first invocation.
9859
9860 2008-06-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9861
9862         * system.h (-Wc++-compat): Activate as a warning, no an error.
9863
9864 2008-06-19  Uros Bizjak  <ubizjak@gmail.com>
9865
9866         * config/i386/i386.md (*jcc_fused_1): Use ASM_COMMENT_START
9867         instead of "#" in insn asm template.
9868         (*jcc_fused_2): Ditto.
9869
9870 2008-06-19  Uros Bizjak  <ubizjak@gmail.com>
9871
9872         * config/i386/i386.h (ix86_tune_indices)
9873         [X86_TUNE_FUSE_CMP_AND_BRANCH]: New.
9874         (TARGET_FUSE_CMP_AND_BRANCH): New define.
9875         * config/i386/i386.md (*jcc_fused_1): New insn pattern
9876         (*jcc_fused_2): Ditto.
9877         * config/i386/i386.c (ix86_tune_features): Add m_CORE2 to
9878         X86_TUNE_FUSE_CMP_AND_BRANCH targets.
9879         (print operand): Handle 'E' and 'e' code.
9880
9881 2008-06-19  Anatoly Sokolov  <aesok@post.ru>
9882
9883         * config/avr/avr.c (avr_mcu_t): Add attiny13a.
9884         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
9885         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
9886
9887 2008-06-19  Bernhard Fischer  <aldot@gcc.gnu.org>
9888
9889         * cgraphunit.c (cgraph_finalize_function): Remove redundant setting of
9890         node->decl.
9891         (cgraph_expand_function): Use local copy of decl.
9892         (cgraph_expand_all_functions): Remove redundant initialization of
9893         order_pos.
9894         (cgraph_optimize): Reword internal_error message.
9895
9896 2008-06-19  Chung-Lin Tang  <ctang@marvell.com>
9897
9898         * arm-protos.h (arm_return_in_memory): Remove public
9899         arm_return_in_memory() prototype.
9900         * arm.c (arm_return_in_memory): Add static prototype, add target
9901         hook macro, change definition and comments.
9902         * arm.h (TARGET_RETURN_IN_MEMORY): Remove.
9903
9904 2008-06-19  Ben Elliston  <bje@au.ibm.com>
9905
9906         * dfp.h, dfp.c, config/dfp-bit.h, config/dfp-bit.c, real.h,
9907         real.c: Remove references to IEEE 754R.
9908         * doc/install.texi (Configuration): IEEE 754R -> IEEE 754-2008.
9909         * doc/libgcc.texi (Decimal float library routines): Likewise.
9910
9911 2008-06-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9912
9913         * targhooks.h (struct gcc_target): New member unwind_word_mode.
9914         (default_unwind_word_mode): Add prototype.
9915         * targhooks.c (default_unwind_word_mode): New function.
9916         (default_eh_return_filter_mode): Return targetm.unwind_word_mode ()
9917         instead of word_mode.
9918         * target-def.h (TARGET_UNWIND_WORD_MODE): New macro.
9919         (TARGET_INITIALIZER): Use it.
9920
9921         * c-common.c (handle_mode_attribute): Support "unwind_word"
9922         mode attribute.
9923         * unwind-generic.h (_Unwind_Word, _Unwind_Sword): Use it.
9924
9925         * except.c (init_eh): Use targetm.unwind_word_mode () instead of
9926         word_mode to access SjLj_Function_Context member "data".
9927         (sjlj_emit_dispatch_table): Likewise.  Also, perform type
9928         conversion from targetm.eh_return_filter_mode () to
9929         targetm.unwind_word_mode () if they differ.
9930
9931         * builtin-types.def (BT_UNWINDWORD): New primitive type.
9932         (BT_FN_UNWINDWORD_PTR): New function type.
9933         (BT_FN_WORD_PTR): Remove.
9934         * builtins.def (BUILT_IN_EXTEND_POINTER): Use BT_FN_UNWINDWORD_PTR.
9935         * except.c (expand_builtin_extend_pointer): Convert pointer to
9936         targetm.unwind_word_mode () instead of word_mode.
9937
9938         * config/spu/spu-protos.h (spu_eh_return_filter_mode): Remove.
9939         * config/spu/spu.c (spu_eh_return_filter_mode): Remove.
9940         (spu_unwind_word_mode): New function.
9941         (TARGET_EH_RETURN_FILTER_MODE): Do not define.
9942         (TARGET_UNWIND_WORD_MODE): Define.
9943         * config/spu/t-spu-elf (TARGET_LIBGCC2_CFLAGS): Remove -D__word__=SI.
9944
9945 2008-06-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9946
9947         * config/spu/spu.c (reg_align): Remove.
9948         (regno_aligned_for_load): Also accept ARG_POINTER_REGNUM.
9949         (spu_split_load): Use regno_aligned_for_load instead of reg_align.
9950         (spu_split_store): Likewise.
9951
9952 2008-06-18  Bernhard Fischer  <aldot@gcc.gnu.org>
9953
9954         * gcc/tree-vn.c: Fix typo in comment.
9955
9956 2008-06-18  Jan Hubicka  <jh@suse.cz>
9957
9958         * cgraphunit.c (cgraph_optimize): Output debug info when doing
9959         toplevel reorder too.
9960
9961 2008-06-18  Jan Hubicka  <jh@suse.cz>
9962
9963         * c-opts.c (c_common_post_options): PCH is not compatible with
9964         no-unit-at-a-time.
9965         * opts.c (handle_options): Enable unit-at-a-time at O0 along with
9966         -fno-toplevel-reorder by default now.
9967
9968 2008-06-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9969
9970         PR documentation/30739
9971         * doc/install.texi (Prerequisites): Document dependency on awk.
9972
9973 2008-06-18  Uros Bizjak  <ubizjak@gmail.com>
9974             Ian Lance Taylor  <iant@google.com>
9975
9976         PR rtl-optimization/35604
9977         * jump.c (redirect_exp_1): Skip the condition of an IF_THEN_ELSE. We
9978         only want to change jump destinations, not eventual label comparisons.
9979
9980 2008-06-16  Jan Hubicka  <jh@suse.cz>
9981
9982         * cgraphunit.c (cgraph_expand_pending_functions): Give up at
9983         syntax errors.
9984         (cgraph_analyze_function): Likewise.
9985
9986 2008-06-16  Jan Hubicka  <jh@suse.cz>
9987
9988         * cgraph.h (cgraph_mark_if_needed): New function.
9989         * cgraphunit.c (cgraph_mark_if_needed): New function.
9990         * c-decl.c (duplicate_decl): Use it.
9991
9992 2008-06-16  Jan Hubicka  <jh@suse.cz>
9993
9994         * cgraph.c (cgraph_add_new_function): When in expansion state, do
9995         lowering.
9996
9997 2008-06-16  Jan Hubicka  <jh@suse.cz>
9998
9999         * tree-outof-ssa.c (pass_out_of_ssa): Do not depend on PROP_alias.
10000
10001 2008-06-16  Daniel Jacobowitz  <dan@codesourcery.com>
10002             Kazu Hirata  <kazu@codesourcery.com>
10003             Maxim Kuvyrkov  <maxim@codesourcery.com
10004
10005         * config.gcc (mips64el-st-linux-gnu): Use mips/st.h and mips/t-st.
10006         * config.host: Use driver-native.o and mips/x-native for mips*-linux*.
10007         * config/mips/linux.h (host_detect_local_cpu): Declare, add to
10008         EXTRA_SPEC_FUNCTIONS.
10009         (MARCH_MTUNE_NATIVE_SPECS, BASE_DRIVER_SELF_SPECS): New macros.
10010         (DRIVER_SELF_SPECS): Adjust.
10011         * config/mips/linux64.h (DRIVER_SELF_SPECS): Update.
10012         * config/mips/st.h, config/mips/t-st: New.
10013         * config/mips/driver-native.c, config/mips/x-native: New.
10014         * doc/invoke.texi (MIPS): Document 'native' value for -march and
10015         -mtune options.
10016
10017 2008-06-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
10018
10019         * config/mips/mips.h (ISA_HAS_CONDMOVE): Slice ISA_HAS_FP_CONDMOVE
10020         from it.
10021         (ISA_HAS_FP_CONDMOVE): New macro.
10022         (ISA_HAS_FP_MADD4_MSUB4, ISA_HAS_FP_MADD3_MSUB3): New macros.
10023         (ISA_HAS_NMADD_NMSUB): Rename to ISA_HAS_NMADD4_NMSUB4.
10024         (ISA_HAS_NMADD3_NMSUB3): New macro.
10025         * config/mips/mips.c (mips_rtx_costs): Update.
10026         * config/mips/mips.md (MOVECC): Don't use FP conditional moves when
10027         compiling for ST Loongson 2E/2F.
10028         (madd<mode>): Rename to madd4<mode>.  Update.
10029         (madd3<mode>): New pattern.
10030         (msub<mode>): Rename to msub4<mode>.  Update.
10031         (msub3<mode>): New pattern.
10032         (nmadd<mode>): Rename to nmadd4<mode>.  Update.
10033         (nmadd3<mode>): New pattern.
10034         (nmadd<mode>_fastmath): Rename to nmadd4<mode>_fastmath.  Update.
10035         (nmadd3<mode>_fastmath): New pattern.
10036         (nmsub<mode>): Rename to nmsub4<mode>.  Update.
10037         (nmsub3<mode>): New pattern.
10038         (nmsub<mode>_fastmath): Rename to nmsub4<mode>_fastmath.  Update.
10039         (nmsub3<mode>_fastmath): New pattern.
10040         (mov<SCALARF:mode>_on_<MOVECC:mode>, mov<mode>cc): Update.
10041
10042 2008-06-18  Steven Bosscher  <steven@gcc.gnu.org>
10043
10044         * df.h (struct df_ref): Replace 'insn' field with 'insn_info' field.
10045         (DF_REF_INSN_INFO): New.
10046         (DF_REF_INSN, DF_REF_INSN_UID): Rewrite macros using DF_REF_INSN_INFO.
10047         (DF_REF_IS_ARTIFICIAL): Artificial refs are now identified as refs
10048         with a NULL DF_REF_INSN_INFO.
10049         (DF_INSN_INFO_GET, DF_INSN_INFO_SET): Renamed from DF_INSN_GET and
10050         DF_INSN_SET.
10051         (DF_INSN_INFO_LUID, DF_INSN_INFO_DEFS, DF_INSN_INFO_USES,
10052         DF_INSN_INFO_EQ_USES): New.
10053         (DF_INSN_LUID, DF_INSN_DEFS, DF_INSN_USES, DF_INSN_EQ_USES,
10054         DF_INSN_UID_LUID, DF_INSN_UID_DEFS, DF_INSN_UID_USES,
10055         DF_INSN_UID_EQ_USES): Rewrite using DF_INSN_INFO_* macros.
10056         * df-core.c: Update comment for above changes.
10057         (df_insn_debug_regno): Use DF_INSN_INFO_GET instead of INSN_UID and
10058         DF_INSN_UID_* macros.
10059         (df_ref_debug): Check for NULL DF_REF_INSN_INFO.
10060         * df-scan.c (df_ref_record): Take a df_insn_info instead of an
10061         insn rtx.  Update all callers.
10062         (df_def_record_1, df_defs_record, df_uses_record, df_get_call_refs,
10063         df_ref_create_structure, df_insn_refs_collect): Likewise.
10064         (df_ref_equal_p): Compare DF_REF_INSN_INFO pointers for the refs.
10065         * df-problems.c (df_chain_dump): Test for non-NULL DF_REF_INSN_INFO.
10066         (df_live_bb_local_compute): Retrieve DF_INSN_INFO, use DF_INSN_INFO_*
10067         macros to access the insn refs.
10068         (df_chain_top_dump, df_chain_bottom_dump, df_byte_lr_alloc): Likewise.
10069         * fwprop.c (use_killed_between): Use DF_REF_INSN accessor macro.
10070         (all_uses_available): Retrieve DF_INSN_INFO for def_insn, and use it
10071         for accessing the refs.
10072         (try_fwprop_subst): Likewise.
10073         * ddg.c (add_cross_iteration_register_deps): Use DF_REF_INSN macro.
10074         * web.c (union_defs): Retrieve DF_INSN_INFO for def_insn, and use it
10075         for accessing the refs.
10076         * loop-invariant.c (invariant_for_use): Use DF_REF_BB macro.
10077         (check_dependencies): Use DF_INSN_INFO_GET, use DF_INSN_INFO_* macros
10078         to look at the insn refs.
10079         (record_uses): Likewise.
10080         * dce.c (deletable_insn_p): Don't tolerate artificial DEFs in this
10081         function anymore.
10082         (mark_artificial_uses): Don't mark_insn for artificial refs.
10083         (mark_reg_rependencies): Likewise.
10084
10085         * doc/rtl.texi: Remove documentation of ADDRESSOF.
10086
10087 2008-06-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10088
10089         * configure: Regenerate.
10090
10091 2008-06-17  Eric B. Weddington  <eric.weddington@atmel.com>
10092
10093         * config/avr/avr.c (avr_mcu_t): Remove atmega32hvb.
10094         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
10095         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
10096
10097 2008-06-17  Eric B. Weddington  <eric.weddington@atmel.com>
10098
10099         * config/avr/avr.c (avr_mcu_t): Add attiny167.
10100         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
10101         * gcc/config/avr/t-avr (MULTILIB_MATCHES): Likewise.
10102
10103 2008-06-17  Eric B. Weddington  <eric.weddington@atmel.com>
10104
10105         * config/avr/avr.c (avr_mcu_t): Add atmega32u4.
10106         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
10107         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
10108
10109 2008-06-17  Bernhard Fischer  <aldot@gcc.gnu.org>
10110
10111         * tree-ssa-sccvn.c: Fix format of comments.
10112
10113 2008-06-17  Bernhard Fischer  <aldot@gcc.gnu.org>
10114
10115         * cgraph.c: Remove unneeded forward declarations of eq_node()
10116         and hash_node().
10117
10118 2008-06-17  Steven Bosscher  <steven@gcc.gnu.org>
10119
10120         * see.c (see_analyse_one_def): Do not look for REG_LIBCALL and
10121         REG_RETVAL notes.
10122         (see_update_relevancy): Likewise.
10123         * fwprop.c (try_fwprop_subst): Likewise.
10124         * rtlanal.c (noop_move_p): Likewise.
10125         * builtins.c (expand_buitlin_mathfn): Don't try to add REG_EQUAL
10126         notes to non-existing libcall blocks.
10127         * cse.c (cse_insn): Change prototype.  Don't update libcall notes.
10128         Remove orig_set.
10129         (cse_extended_basic_block): Don't track libcall and no-conflict notes.
10130         (dead_libcall_p): Remove.
10131         (delete_trivially_dead_insns): Don't use it.
10132         * web.c (union_defs): Remove comment about keeping nops.
10133         * gcse.c (hash_scan_insn): Don't take libcall pointers.
10134         (compute_hash_table_work): Don't track libcall notes.
10135         (do_local_cprop): Don't take libcall pointers.  Don't update
10136         libcall notes.
10137         (adjust_libcall_notes): Deleted.
10138         (local_cprop_pass): Remove stack for nested libcalls (which shouldn't
10139         ever have existed in the first place).
10140         (replace_store_insn): Don't try to remove libcall notes.
10141         * lower-subreg.c (move_libcall_note, move_retval_note): Deleted.
10142         (resolve_reg_notes): Don't call them.
10143         (resolve_simple_move): Likewise.
10144         (decompose_multiword_subregs): Remove block handling REG_RETVAL notes.
10145         Don't remove REG_RETVAL notes.
10146         * emit-rtl.c (try_split): Don't update libcall notes.
10147         (emit_copy_of_insn_after): Dito.
10148         * cselib.c (cselib_current_insn_in_libcall): Remove.
10149         (cselib_process_insn): Don't set/clear it.
10150         (new_elt_loc_list): Don't record it.
10151         (cselib_init): Don't initialize it.
10152         * cselib.c (struct elt_loc_list): Remove in_libcall field.
10153         * loop-invariant.c (find_invariant_insn): Don't look for libcall
10154         notes.
10155         * sched-deps.c (sched_analyze_insn): Don't group libcall blocks.
10156         (sched_analyze): Don't set up deps->libcall_block_tail_insn.
10157         (init_deps): Don't initialize it.
10158         * sched-int.h (struct deps): Rremove libcall_block_tail_insn field.
10159         * combine.c (delete_noop_moves): Don't update libcall notes.
10160         (can_combine_p): Remove now pointless #if 0 block.
10161         (try_combine): Remove another obsolete #if 0 block.
10162         (distribute_notes): Don't distribute libcall notes.
10163         * reg-notes.def (REG_LIBCALL, REG_RETVAL): Remove.
10164         * dce.c (libcall_dead_p): Remove.
10165         (delete_unmarked_insns): Don't handle libcall blocks.
10166         (preserve_libcall_for_dce): Remove.
10167         (prescan_insns_for_dce): Don't special-case libcall block insns.
10168         * reload1 (reload): Don't handle libcall notes.
10169         * doc/rtl.texi (REG_LIBCALL, REG_RETVAL, REG_LIBCALL_ID): Remove
10170         documentation.
10171
10172 2008-06-16  Eric B. Weddington  <eric.weddington@atmel.com>
10173
10174         * config/avr/avr.c (avr_mcu_t): Add atmega32c1.
10175         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
10176         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
10177
10178 2008-06-16  Eric B. Weddington  <eric.weddington@atmel.com>
10179
10180         * config/avr/avr.c (avr_mcu_t): Add atmega32m1.
10181         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
10182         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
10183
10184 2008-06-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10185
10186         * Makefile.in (FLAGS_TO_PASS): Add $(datarootdir).
10187
10188 2008-06-16  Ira Rosen  <irar@il.ibm.com>
10189
10190         PR tree-optimization/36493
10191         * tree-vect-transform.c (vect_create_data_ref_ptr): Remove TYPE from
10192         the arguments list. Use VECTYPE to create vector pointer.
10193         (vectorizable_store): Fail if accesses through a pointer to vectype
10194         do not alias the original memory reference operands.
10195         Call vect_create_data_ref_ptr without the removed argument.
10196         (vectorizable_load): Likewise.
10197         (vect_setup_realignment): Call vect_create_data_ref_ptr without the
10198         removed argument.
10199
10200 2008-06-015  Andy Hutchinson  <hutchinsonandy@aim.com>
10201
10202         PR target/36336
10203         * config/avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Add check for
10204         reg_equiv_constant.
10205
10206 2008-06-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
10207
10208         * config/mips/loongson2ef.md: New file.
10209         * config/mips/mips.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
10210         (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
10211         (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
10212         (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): New constants.
10213         (define_attr "cpu"): Rename loongson2e and loongson2f to loongson_2e
10214         and loongson_2f.
10215         (loongson2ef.md): New include.
10216         * config/mips/loongson.md (vec_pack_ssat_<mode>, vec_pack_usat_<mode>)
10217         (add<mode>3, paddd, ssadd<mode>3, usadd<mode>3)
10218         (loongson_and_not_<mode>, loongson_average_<mode>, loongson_eq_<mode>)
10219         (loongson_gt_<mode>, loongson_extract_halfword)
10220         (loongson_insert_halfword_0, loongson_insert_halfword_2)
10221         (loongson_insert_halfword_3, loongson_mult_add, smax<mode>3)
10222         (umax<mode>3, smin<mode>3, umin<mode>3, loongson_move_byte_mask)
10223         (umul<mode>3_highpart, smul<mode>3_highpart, loongson_smul_lowpart)
10224         (loongson_umul_word, loongson_pasubub, reduc_uplus_<mode>)
10225         (loongson_psadbh, loongson_pshufh, loongson_psll<mode>)
10226         (loongson_psra<mode>, loongson_psrl<mode>, sub<mode>3, psubd)
10227         (sssub<mode>3, ussub<mode>3, vec_interleave_high<mode>)
10228         (vec_interleave_low<mode>): Define type attribute.
10229         * config/mips/mips.c (mips_ls2): New static variable.
10230         (mips_issue_rate): Update to handle tuning for Loongson 2E/2F.
10231         (mips_ls2_init_dfa_post_cycle_insn, mips_init_dfa_post_cycle_insn)
10232         (sched_ls2_dfa_post_advance_cycle, mips_dfa_post_advance_cycle):
10233         Implement target scheduling hooks.
10234         (mips_multipass_dfa_lookahead): Update to handle tuning for
10235         Loongson 2E/2F.
10236         (mips_sched_init): Initialize data for Loongson scheduling.
10237         (mips_ls2_variable_issue): New static function.
10238         (mips_variable_issue): Update to handle tuning for Loongson 2E/2F.
10239         Add sanity check.
10240         (TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN)
10241         (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Override target hooks.
10242         * config/mips/mips.h (TUNE_LOONGSON_2EF): New macros.
10243         (ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY, ISA_HAS_HILO_INTERLOCKS):
10244         Handle ST Loongson 2E/2F cores.
10245         (CPU_UNITS_QUERY): Define macro to enable querying of DFA units.
10246
10247 2008-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10248
10249         * omp-low.c (extract_omp_for_data): Fix comment typo.
10250         * c.opt: Fix typo.
10251
10252 2008-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10253
10254         * doc/sourcebuild.texi (Config Fragments): Remove obsolete
10255         FIXME note about gcc/config.guess.
10256         * doc/options.texi (Option file format): Remove non-ASCII bytes.
10257         * doc/cpp.texi: Expand TABs, drop indentation outside examples.
10258         * doc/cppopts.texi: Likewise.
10259         * doc/extend.texi: Likewise.
10260         * doc/gcc.texi: Likewise.
10261         * doc/gccint.texi: Likewise.
10262         * doc/gcov.texi: Likewise.
10263         * doc/gty.texi: Likewise.
10264         * doc/hostconfig.texi: Likewise.
10265         * doc/install.texi: Likewise.
10266         * doc/invoke.texi: Likewise.
10267         * doc/loop.texi: Likewise.
10268         * doc/makefile.texi: Likewise.
10269         * doc/md.texi: Likewise.
10270         * doc/passes.texi: Likewise.
10271         * doc/tm.texi: Likewise.
10272         * doc/tree-ssa.texi: Likewise.
10273         * doc/trouble.texi: Likewise.
10274
10275 2008-06-15  Mark Shinwell  <shinwell@codesourcery.com>
10276             Nathan Sidwell  <nathan@codesourcery.com>
10277             Maxim Kuvyrkov  <maxim@codesourcery.com>
10278             Richard Sandiford  <rdsandiford@googlemail.com>
10279
10280         * config/mips/mips-modes.def: Add V8QI, V4HI and V2SI modes.
10281         * config/mips/mips-protos.h (mips_expand_vector_init): New.
10282         * config/mips/mips-ftypes.def: Add function types for Loongson-2E/2F
10283         builtins.
10284         * config/mips/mips.c (mips_split_doubleword_move): Handle new modes.
10285         (mips_hard_regno_mode_ok_p): Allow 64-bit vector modes for Loongson.
10286         (mips_vector_mode_supported_p): Add V2SImode, V4HImode and
10287         V8QImode cases.
10288         (LOONGSON_BUILTIN, LOONGSON_BUILTIN_ALIAS): New.
10289         (CODE_FOR_loongson_packsswh, CODE_FOR_loongson_packsshb,
10290         (CODE_FOR_loongson_packushb, CODE_FOR_loongson_paddw,
10291         (CODE_FOR_loongson_paddh, CODE_FOR_loongson_paddb,
10292         (CODE_FOR_loongson_paddsh, CODE_FOR_loongson_paddsb)
10293         (CODE_FOR_loongson_paddush, CODE_FOR_loongson_paddusb)
10294         (CODE_FOR_loongson_pmaxsh, CODE_FOR_loongson_pmaxub)
10295         (CODE_FOR_loongson_pminsh, CODE_FOR_loongson_pminub)
10296         (CODE_FOR_loongson_pmulhuh, CODE_FOR_loongson_pmulhh)
10297         (CODE_FOR_loongson_biadd, CODE_FOR_loongson_psubw)
10298         (CODE_FOR_loongson_psubh, CODE_FOR_loongson_psubb)
10299         (CODE_FOR_loongson_psubsh, CODE_FOR_loongson_psubsb)
10300         (CODE_FOR_loongson_psubush, CODE_FOR_loongson_psubusb)
10301         (CODE_FOR_loongson_punpckhbh, CODE_FOR_loongson_punpckhhw)
10302         (CODE_FOR_loongson_punpckhwd, CODE_FOR_loongson_punpcklbh)
10303         (CODE_FOR_loongson_punpcklhw, CODE_FOR_loongson_punpcklwd): New.
10304         (mips_builtins): Add Loongson builtins.
10305         (mips_loongson_2ef_bdesc): New.
10306         (mips_bdesc_arrays): Add mips_loongson_2ef_bdesc.
10307         (mips_builtin_vector_type): Handle unsigned versions of vector modes.
10308         (MIPS_ATYPE_UQI, MIPS_ATYPE_UDI, MIPS_ATYPE_V2SI, MIPS_ATYPE_UV2SI)
10309         (MIPS_ATYPE_V4HI, MIPS_ATYPE_UV4HI, MIPS_ATYPE_V8QI, MIPS_ATYPE_UV8QI):
10310         New.
10311         (mips_expand_vector_init): New.
10312         * config/mips/mips.h (HAVE_LOONGSON_VECTOR_MODES): New.
10313         (TARGET_CPU_CPP_BUILTINS): Define __mips_loongson_vector_rev
10314         if appropriate.
10315         * config/mips/mips.md: Add unspec numbers for Loongson
10316         builtins.  Include loongson.md.
10317         (MOVE64): Include Loongson vector modes.
10318         (SPLITF): Include Loongson vector modes.
10319         (HALFMODE): Handle Loongson vector modes.
10320         * config/mips/loongson.md: New.
10321         * config/mips/loongson.h: New.
10322         * config.gcc: Add loongson.h header for mips*-*-* targets.
10323         * doc/extend.texi (MIPS Loongson Built-in Functions): New.
10324
10325 2008-06-14  Joseph Myers  <joseph@codesourcery.com>
10326
10327         * config.gcc (arc-*-elf*, avr-*-*, fr30-*-elf, frv-*-elf,
10328         h8300-*-elf*, h8300-*-*, i[34567]86-*-elf*, x86_64-*-elf*,
10329         i[34567]86-*-aout*, i[34567]86-*-coff*, ia64*-*-elf*,
10330         iq2000*-*-elf*, m32r-*-elf*, m32rle-*-elf*, m32r-*-linux*,
10331         m32rle-*-linux*, m68hc11-*-*|m6811-*-*, m68hc12-*-*|m6812-*-*,
10332         m68k-*-coff*, mcore-*-elf, mcore-*-pe*, mipsisa64sr71k-*-elf*,
10333         mipsisa64sb1-*-elf* | mipsisa64sb1el-*-elf*, mips-*-elf* |
10334         mipsel-*-elf*, mips64-*-elf* | mips64el-*-elf*, mips64vr-*-elf* |
10335         mips64vrel-*-elf*, mips64orion-*-elf* | mips64orionel-*-elf*,
10336         mipstx39-*-elf* | mipstx39el-*-elf*, mn10300-*-*, pdp11-*-,
10337         powerpc-*-elf*, powerpcle-*-elf*, sh-*-elf* | sh[12346l]*-*-elf* |
10338         sh-*-symbianelf* | sh[12346l]*-*-symbianelf* | sh-*-linux* |
10339         sh[2346lbe]*-*-linux* | sh-*-netbsdelf* | shl*-*-netbsdelf* |
10340         sh5-*-netbsd* | sh5l*-*-netbsd* | sh64-*-netbsd* |
10341         sh64l*-*-netbsd*, sh-*-*, sparc-*-elf*, sparc64-*-elf*,
10342         v850e1-*-*, v850e-*-*, v850-*-*, xstormy16-*-elf, m32c-*-elf*):
10343         Remove use_fixproto=yes.
10344         (ia64*-*-hpux*): Remove comment about using fixproto.
10345         (m68k-*-uclinuxoldabi*, m68k-*-uclinux*): Remove use_fixproto=no.
10346
10347 2008-06-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10348
10349         * configure.ac: Update gthr-default.h lazily, to avoid unneeded
10350         library rebuilds.
10351         * configure: Regenerate.
10352
10353 2008-06-13  Eric Botcazou  <ebotcazou@adacore.com>
10354
10355         PR middle-end/36520
10356         * builtins.c (get_memory_rtx): Test for the presence of DECL_SIZE_UNIT
10357         before evaluating it.
10358
10359 2008-06-13  Jakub Jelinek  <jakub@redhat.com>
10360
10361         PR c/36507
10362         * c-decl.c (merge_decls): Don't clear DECL_EXTERNAL for
10363         nested inline functions.
10364         (start_decl, start_function): Don't invert DECL_EXTERNAL
10365         for nested inline functions.
10366
10367 2008-06-13  Richard Sandiford  <rdsandiford@googlemail.com>
10368
10369         * config/mips/mips.md: Remove TARGET_DEBUG_D_MODE conditions from
10370         splits that must be made for correctness.
10371
10372 2008-06-13  Richard Sandiford  <rdsandiford@googlemail.com>
10373
10374         * config/mips/mips.c (BUILTIN_AVAIL_NON_MIPS16): New macro.
10375         (AVAIL_NON_MIPS16): Likewise.
10376         (mips_builtin_description): Replace target_flags with a predicate.
10377         (paired_single, sb1_paired_single, mips3d, dsp, dspr2, dsp_32)
10378         (dspr2_32): New availability predicates.
10379         (MIPS_BUILTIN): New macro.
10380         (DIRECT_BUILTIN, CMP_SCALAR_BUILTINS, CMP_PS_BUILTINS)
10381         (CMP_4S_BUILTINS, MOVTF_BUILTINS, CMP_BUILTINS)
10382         (DIRECT_NO_TARGET_BUILTIN, BPOSGE_BUILTIN): Use it.
10383         Replace the TARGET_FLAGS parameters with AVAIL parameters.
10384         (mips_ps_bdesc, mips_sb1_bdesc, mips_dsp_bdesc)
10385         (mips_dsp_32only_bdesc): Merge into...
10386         (mips_builtins): ...this new array.
10387         (mips_bdesc_map, mips_bdesc_arrays): Delete.
10388         (mips_init_builtins): Update after above changes.
10389         (mips_expand_builtin_1): Merge into...
10390         (mips_expand_builtin): ...here and update after above changes.
10391
10392 2008-06-12  Paul Brook  <paul@codesourcery.com>
10393
10394         * longlong.h (__arm__): Define count_leading_zeros.
10395         * config/arm/lib1funcs.asm (xxh, xxl, yyh, yyl): Define.
10396         (clzsi2, clzdi2): New functions.
10397         * config/arm/bpabi-v6m.S (xxh, xxl, yyh, yyl): Remove.
10398         * config/arm/bpabi.S (xxh, xxl, yyh, yyl): Remove.
10399         * config/arm/t-strongarm-elf (LIB1ASMFUNCS): Ditto.
10400         * config/arm/t-vxworks (LIB1ASMFUNCS): Ditto.
10401         * config/arm/t-pe (LIB1ASMFUNCS): Ditto.
10402         * config/arm/t-arm-elf (LIB1ASMFUNCS): Ditto.
10403         * config/arm/t-arm-coff (LIB1ASMFUNCS): Ditto.
10404         * config/arm/t-linux (LIB1ASMFUNCS): Ditto.
10405         * config/arm/t-symbian (LIB1ASMFUNCS): Ditto.
10406         * config/arm/t-wince-pe (LIB1ASMFUNCS): Ditto.
10407
10408 2008-06-12  Kazu Hirata  <kazu@codesourcery.com>
10409
10410         * config/m68k/m68k.c (m68k_tune_flags): New.
10411         (override_options): Compute m68k_tune_flags.
10412         (MULL_COST, MULW_COST): Update for various variants of CFV2.
10413         * config/m68k/m68k.h (TUNE_MAC, TUNE_EMAC): New.
10414
10415 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
10416
10417         PR middle-end/36506
10418         * omp-low.c (expand_omp_sections): Initialize l2 to avoid bogus warning.
10419
10420 2008-06-12  Eric Botcazou  <ebotcazou@adacore.com>
10421
10422         * tree-inline.c (copy_body_r): Copy TREE_SIDE_EFFECTS along with
10423         TREE_THIS_VOLATILE on INDIRECT_REF nodes.
10424
10425 2008-06-12  Eric Botcazou  <ebotcazou@adacore.com>
10426
10427         * expr.c (store_field): Do a block copy from BLKmode to BLKmode-like.
10428         (get_inner_reference): Use BLKmode for byte-aligned BLKmode bitfields.
10429
10430 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
10431
10432         PR middle-end/36506
10433         * omp-low.c (expand_omp_sections): Handle #pragma omp sections with
10434         reductions.
10435
10436 2008-06-12  Richard Guenther  <rguenther@suse.de>
10437
10438         PR tree-optimization/36345
10439         * tree-flow.h (struct ptr_info_def): Align escape_mask,
10440         add memory_tag_needed flag.
10441         (may_alias_p): Declare.
10442         * tree-ssa-alias.c (may_alias_p): Export.
10443         (set_initial_properties): Use memory_tag_needed flag.
10444         (update_reference_counts): Likewise.
10445         (reset_alias_info): Reset memory_tag_needed flag.
10446         (create_name_tags): Check memory_tag_needed flag.
10447         (dump_points_to_info_for): Dump it.
10448         * tree-ssa-structalias.c (struct variable_info): Remove
10449         directly_dereferenced flag.
10450         (new_var_info): Do not initialize it.
10451         (process_constraint_1): Do not set it.
10452         (update_alias_info): Set is_dereferenced flag.
10453         (set_uids_in_ptset): Use may_alias_p.
10454         (set_used_smts): Check memory_tag_needed flag.
10455         (find_what_p_points_to): Likewise.  Pass is_dereferenced flag.
10456         * tree-ssa-alias.c (verify_flow_sensitive_alias_info): Check
10457         memory_tag_needed flag.
10458         * tree-ssa-alias-warnings.c (dsa_named_for): Try to recover
10459         from broken design.
10460
10461 2008-06-12  Kai Tietz  <kai.tietz@onevision.com>
10462
10463         * config/i386/i386.c (ix86_compute_frame_layout): Disable
10464         red zone for w64 abi.
10465         (ix86_expand_prologue): Likewise.
10466         (ix86_force_to_memory): Likewise.
10467         (ix86_free_from_memory): Likewise.
10468
10469 2008-06-11  Edmar Wienskoski  <edmar@freescale.com>
10470
10471         PR target/36425
10472         * config/rs6000/rs6000.c (rs6000_override_options): Set
10473         rs6000_isel conditionally to the absence of comand line override.
10474         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
10475         Remove duplicate rs6000_isel setting.
10476         * config/rs6000/eabispe.h: Ditto.
10477
10478 2008-06-11  Richard Guenther  <rguenther@suse.de>
10479
10480         * alias.c (get_alias_set): Use the element alias-set for arrays.
10481         (record_component_aliases): For arrays and vectors do nothing.
10482         * c-common.c (strict_aliasing_warning): Handle the cases
10483         of alias set zero explicitly.
10484         * Makefile.in (dfp.o-warn): Add -Wno-error.
10485
10486 2008-06-11  Joseph Myers  <joseph@codesourcery.com>
10487
10488         * config.gcc (all_defaults): Add arch_32 arch_64 cpu_32 cpu_64
10489         tune_32 tune_64.
10490         (i[34567]86-*-* | x86_64-*-*): Add arch_32 arch_64 cpu_32 cpu_64
10491         tune_32 tune_64 to supported_defaults.  Allow values not
10492         supporting 64-bit mode for arch_32, cpu_32 and tune_32 for
10493         x86_64.  Do not override cpu_32 or cpu_64 values from target name.
10494         (i[34567]86-*-linux*, i[34567]86-*-solaris2.1[0-9]*): Only default
10495         with_cpu_64 to generic for 64-bit-supporting configurations, not
10496         with_cpu.  Remove FIXMEs.
10497         * doc/install.texi (--with-cpu-32, --with-cpu-64, --with-arch-32,
10498         --with-arch-64, --with-tune-32, --with-tune-64): Document.
10499         * config/i386/i386.h (OPT_ARCH32, OPT_ARCH64): Define.
10500         (OPTION_DEFAULT_SPECS): Add tune_32, tune_64, cpu_32, cpu_64,
10501         arch_32 and arch_64.
10502
10503 2008-06-11  Eric Botcazou  <ebotcazou@adacore.com>
10504             Olivier Hainque  <hainque@adacore.com>
10505
10506         * builtins.c (get_memory_rtx): Accept byte-addressable bitfields.
10507         Use DECL_SIZE_UNIT to retrieve the size of the field.
10508
10509 2008-06-11  Joseph Myers  <joseph@codesourcery.com>
10510
10511         * config/arm/arm.c (arm_init_neon_builtins): Move initialization
10512         with function calls after declarations.  Lay out
10513         neon_float_type_node before further use.
10514
10515 2008-06-11  Richard Guenther  <rguenther@suse.de>
10516
10517         * tree-flow.h (may_point_to_global_var): Declare.
10518         * tree-ssa-alias.c (may_point_to_global_var): New function.
10519         * tree-ssa-sink.c (is_hidden_global_store): Use it.
10520
10521 2008-06-10  Kazu Hirata  <kazu@codesourcery.com>
10522
10523         * configure.ac: Teach that fido supports .debug_line.
10524         * configure: Regenerate.
10525
10526 2008-06-10  Tom Tromey  <tromey@redhat.com>
10527
10528         * c-lex.c (fe_file_change): Pass SOURCE_LINE to start_source_file
10529         debug hook.
10530
10531 2008-06-10  Joseph Myers  <joseph@codesourcery.com>
10532
10533         * dfp.c (WORDS_BIGENDIAN): Define to 0 if not defined.
10534         (encode_decimal64, decode_decimal64, encode_decimal128,
10535         decode_decimal128): Reverse order of 32-bit parts of value if host
10536         and target endianness differ.
10537
10538 2008-06-10  Vinodha Ramasamy  <vinodha@google.com>
10539
10540         * value_prob.c (tree_divmod_fixed_value_transform): Use gcov_type.
10541         Avoid division by 0.
10542         (tree_mod_pow2_value_transform): Likewise.
10543         (tree_ic_transform): Likewise.
10544         (tree_stringops_transform): Likewise.
10545         (tree_mod_subtract_transform): Likewise.
10546         * tree-inline-c (copy_bb): Corrected int type to gcov_type.
10547         (copy_edges_for_bb): Likewise.
10548         (initialize_cfun): Likewise.
10549
10550 2008-06-10  Uros Bizjak  <ubizjak@gmail.com>
10551
10552         * config/i386/i386.md (*btdi_rex64): Change operand 1 predicate to
10553         nonmemory_operand. Add "N" operand constraint.
10554         (*btsi): Ditto.
10555         (*jcc_btdi_mask_rex64): New instruction and split pattern.
10556         (*jcc_btsi_mask): Ditto.
10557         (*jcc_btsi_mask_1): Ditto.
10558
10559 2008-06-10  Joseph Myers  <joseph@codesourcery.com>
10560
10561         * config/rs6000/rs6000.c (build_opaque_vector_type): Set
10562         TYPE_CANONICAL for copied element type.
10563
10564 2008-06-10  Uros Bizjak  <ubizjak@gmail.com>
10565
10566         PR target/36473
10567         * config/i386/i386.c (ix86_tune_features) [TUNE_USE_BT]:
10568         Add m_CORE2 and m_GENERIC.
10569         * config/i386/predicates.md (bt_comparison_operator): New predicate.
10570         * config/i386/i386.md (*btdi_rex64): New instruction pattern.
10571         (*btsi): Ditto.
10572         (*jcc_btdi_rex64): New instruction and split pattern.
10573         (*jcc_btsi): Ditto.
10574         (*jcc_btsi_1): Ditto.
10575         (*btsq): Fix Intel asm dialect operand order.
10576         (*btrq): Ditto.
10577         (*btcq): Ditto.
10578
10579 2008-06-09  Andy Hutchinson  <hutchinsonandy@aim.com>
10580
10581         PR middle-end/36447
10582         * simplify-rtx.c (simplify_subreg): Add check for shift count
10583         greater than size.
10584
10585 2008-06-09  Richard Sandiford  <rdsandiford@googlemail.com>
10586
10587         * doc/md.texi: Synchronize with later constraints.md change.
10588         * longlong.h (umul_ppmm): Replace the MIPS asm implementation
10589         with a C implementation.
10590         * config/mips/mips.c (mips_legitimize_move): Remove MFHI and
10591         MFLO handling.
10592         (mips_subword): Assume TImode for CONST_INTs if TARGET_64BIT.
10593         (mips_split_doubleword_move): Use special MTHI and MFHI instructions
10594         when moving to and from MD_REGNUM.
10595         (mips_output_move): Don't handle moves from GPRs to HI_REGNUM.
10596         Handle moves from LO_REGNUM to GPRs using MFLO, MACC or DMACC.
10597         Handle byte and halfword moves.
10598         (mips_hard_regno_mode_ok_p): Handle MD_REGS and DSP_ACC_REGS
10599         separately.
10600         * config/mips/constraints.md (h): Turn into NO_REGS.
10601         (l, x): Update documentation.
10602         * config/mips/mips.md (UNSPEC_MFHILO): Delete.
10603         (UNSPEC_MFHI, UNSPEC_MTHI, UNSPEC_SET_HILO): New.
10604         (UNSPEC_TLS_LDM, UNSPEC_TLS_GET_TP): Renumber.
10605         (HILO): New mode iterator.
10606         (MOVE128): Add TI.
10607         (any_div): New code iterator.
10608         (u): Extend code attribute to div and udiv.
10609         (*add<mode>3_mips16, *movdi_64bit_mips16, *movsi_mips16): Use
10610         d_operand in the splitters.  Remove redundant CONST_INT checks.
10611         (mulsi3_mult3, mul<mode>3_internal, mul<mode>3_r4000, *mul_acc_si)
10612         (*macc, *msac, *msac_using_macc, *macc2, *msac2, *mul_sub_si)
10613         (*muls): Remove "=h" clobbers.  Adjust peephole2s and define_splits
10614         accordingly, using normal moves instead of unspecs to move LO into
10615         a GPR.  Use d_operand and lo_operand instead of *_REG_P checks.
10616         (<u>mulsidi3): Handle expansion in C code.
10617         (<u>mulsidi3_32bit_internal): Rename to...
10618         (<u>mulsidi3_32bit): ...this.
10619         (<u>mulsidi3_32bit_r4000): Fix insn separator.
10620         (*<u>mulsidi3_64bit): Rename to...
10621         (<u>mulsidi3_64bit): ...this.  Combine DImode "=h" and "=l" clobbers
10622         into a TImode "=x" clobber.  In the split, use an UNSPEC_SET_HILO
10623         to set LO and HI to the multiplication result.  Use a normal move
10624         for MFLO and an unspec for MFHI.
10625         (*<u>mulsidi3_64bit_parts): Replace with...
10626         (<u>mulsidi3_64bit_hilo): ...this new instruction.
10627         (<su>mulsi3_highpart): Extend to TARGET_FIX_R4000.
10628         (<su>mulsi3_highpart_internal): Turn into a define_insn_and_split
10629         and extend it to TARGET_FIX_R4000.  Store the destination in a GPR
10630         instead of HI.  Split the instruction into a separate multiplication
10631         and MFHI if !TARGET_FIX_R4000.
10632         (<su>muldi3_highpart): Likewise.
10633         (<su>mulsi3_highpart_mulhi_internal): Remove the first alternative
10634         and the "=h" clobber.
10635         (*<su>mulsi3_highpart_neg_mulhi_internal): Likewise.
10636         (<u>mulditi3): New expander.
10637         (<u>mulditi3_internal, <u>mulditi3_r4000): New patterns.
10638         (madsi): Remove "=h" clobber.
10639         (divmod<mode>4, udivmod<mode>4): Turn into define_insn_and_splits.
10640         Force the modulus result to be a GPR and split the instruction into
10641         a division followed by an MFHI after reload.
10642         (<u>divmod<GPR:mode>4_hilo_<HILO:mode>): New instruction.
10643         (*lea_high64): Use d_operand in the define_peephole2.  Likewise
10644         the MIPS16 HIGH define_split.
10645         (*movdi_32bit, *movdi_gp32_fp64, *movdi_32bit_mips16): Change type
10646         of acc<->gpr moves to "multi".
10647         (*movdi_64bit): Replace the single "x" alternative with
10648         alternatives for moving into and out of "a".
10649         (*movhi_internal, *movqi_internal): Likewise.  Use mips_output_move.
10650         (*movsi_internal): Extend the "d<-A" alternative to "d<-a".
10651         (*movdi_64bit_mips16, *movsi_mips16): Add d<-a alternatives.
10652         Use d_operand in the splitters.  Remove redundant CONST_INT checks.
10653         (*movhi_mips16, *movqi_mips16): Likewise.  Use mips_output_move.
10654         (movti): New expander.
10655         (*movti, *movti_mips16): New insns.
10656         (mfhilo_<mode>, *mfhilo_<mode>, *mfhilo_<mode>_macc): Delete.
10657         (mfhi<GPR:mode>_<HILO:mode>): New pattern.
10658         (mthi<GPR:mode>_<HILO:mode>): Likewise.
10659         * config/mips/predicates.md (fpr_operand): Delete.
10660         (d_operand): New predicate.
10661
10662 2008-06-09  Michael Meissner  <michael.meissner@amd.com>
10663
10664         * config.gcc (i[34567]86-*-*): Put test in quotes to prevent
10665         failure on some Bourne shells.
10666         (x86_64-*-*): Ditto.
10667
10668 2008-06-09  Kai Tietz  <kai.tietz@onevision.com>
10669
10670         * config/i386/cygming.h (TARGET_SUBTARGET64_DEFAULT): New.
10671
10672 2008-06-09  Eric Botcazou  <ebotcazou@libertysurf.fr>
10673
10674         * doc/install.texi (*-*-solaris2*): Remove obsolete contents.
10675         (sparc-sun-solaris2*): Likewise.
10676
10677 2008-06-09  Arnaud Charlet  <charlet@adacore.com
10678
10679         * doc/install.texi: Update requirements to build the Ada compiler.
10680
10681 2008-06-08  Steven Bosscher  <stevenb.gcc@gmail.com>
10682
10683         * df-scan.c (struct df_scan_problem_data): Remove the
10684         mw_link_pool alloc pool.
10685         (df_scan_free_internal): Don't free it.
10686         (df_scan_alloc): Don't allocate it.
10687         * df.h (struct df_link): Update comment.
10688
10689 2008-06-08  Nathan Sidwell  <nathan@codesourcery.com>
10690
10691         * except.h: Correct checks for when SJLJ exceptions must be used.
10692
10693 2008-06-08  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
10694
10695         * doc/invoke.texi (Wenum-compare): Mention that it is enabled by
10696         default.
10697
10698 2008-06-08  Joseph Myers  <joseph@codesourcery.com>
10699
10700         PR tree-optimization/36218
10701         * configure.ac: Use LDFLAGS="${LDFLAGS_FOR_BUILD}" when running
10702         configure for the build system.
10703         (BUILD_LDFLAGS): Define.
10704         * configure: Regenerate.
10705         * Makefile.in (BUILD_LDFLAGS): Define to @BUILD_LDFLAGS@.
10706
10707 2008-07-08  Anatoly Sokolov  <aesok@post.ru>
10708
10709         PR target/36424
10710         * config/avr/avr.h (HARD_REGNO_RENAME_OK): Define.
10711         * config/avr/avr.c (avr_hard_regno_rename_ok): New function.
10712         * config/avr/avr-protos.h (avr_hard_regno_rename_ok): New prototype.
10713
10714 2008-06-07  Danny Smith  <dannysmith@users.sourceforge.net>
10715
10716         * config/i386/cygming.h (MAYBE_UWIN_CPP_BUILTINS): Remove.
10717
10718 2008-06-07  Joseph Myers  <joseph@codesourcery.com>
10719
10720         * config.gcc (Obsolete configurations): Remove list of
10721         configurations.
10722         (Unsupported targets list): Add *-*-linux*aout*, *-*-linux*libc1*,
10723         *-*-solaris2.[0-6], *-*-solaris2.[0-6].*, *-*-sysv*.  Remove other
10724         targets matched by those patterns.
10725         (strongarm*-*-*, ep9312*-*-*, xscale-*-*, parisc*-*-*,
10726         m680[012]0-*-*, *-*-linux*libc1*, *-*-linux*aout*,
10727         alpha*-*-unicosmk*, strongarm*-*-freebsd*, ep9312-*-elf,
10728         arm*-*-kaos*, cris-*-aout, parisc*64*-*-linux*, parisc*-*-linux*,
10729         hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
10730         i[34567]86-sequent-ptx4*, i[34567]86-sequent-sysv4*,
10731         i[34567]86-*-beoself*, i[34567]86-*-beos*, i[34567]86-*-sco3.2v5*,
10732         i[34567]86-*-sysv5*, i[34567]86-*-sysv4*, i[34567]86-*-uwin*,
10733         i[34567]86-*-kaos*, m68020-*-elf*, m68010-*-netbsdelf*,
10734         mips-wrs-windiss, mt-*-elf, powerpc-*-beos*, powerpc-*-chorusos*,
10735         powerpc-wrs-windiss*, powerpcle-*-sysv*, powerpc-*-kaos*,
10736         powerpcle-*-kaos*, sh*-*-kaos*, sparc-*-sysv4*, strongarm-*-elf*,
10737         strongarm-*-pe, strongarm-*-kaos*, vax-*-bsd*, vax-*-sysv*,
10738         vax-*-ultrix*, xscale-*-elf, xscale-*-coff,
10739         i[34567]86-*-linux*aout*, i[34567]86-*-linux*libc1): Remove.
10740         Make code for Solaris 7 and greater unconditional for Solaris.
10741         (ep9312-*-*, parisc1*, m680[012]0-*-*, parisc*-*-*, mt-*-*):
10742         Remove --with-* handling.
10743         * config/rs6000/sysv4.h (-mwindiss): Remove from all specs.
10744         (LIB_WINDISS_SPEC, CPP_OS_WINDISS_SPEC, STARTFILE_WINDISS_SPEC,
10745         ENDFILE_WINDISS_SPEC, LINK_START_WINDISS_SPEC,
10746         LINK_OS_WINDISS_SPEC): Remove.
10747         * config/rs6000/sysv4.opt (mwindiss): Remove.
10748         * configure.ac (strongarm*-*-*, xscale*-*-*): Remove.
10749         * configure: Regenerate.
10750         * doc/cpp.texi: Don't mention BeOS.
10751         * doc/extend.texi (interrupt): Don't mention MS1.
10752         * doc/install.texi: (i386-@var{any}-sysv, m68k-bull-sysv,
10753         m68k-hp-hpux, m68000-hp-hpux, m68000-att-sysv,
10754         alphaev5-cray-unicosmk*, xscale-*-*, i?86-*-linux*aout,
10755         i?86-*-sco3.2v5*, i?86-*-udk, m68k-hp-hpux, powerpc-*-sysv4,
10756         powerpc-*-sysv4, powerpcle-*-sysv4, *-*-sysv*, vax-dec-ultrix):
10757         Remove.
10758         * doc/invoke.texi (MT Options): Remove.
10759         (-mwindiss): Remove.
10760         (CRIS Options): Remove cris-axis-aout references.
10761         (HPPA Options): Don't mention hppa1.1-*-pro.
10762         * doc/md.texi: (MorphoTech family): Remove.
10763         * libgcc2.c: Don't handle UWIN.
10764         * config/alpha/t-unicosmk: Remove.
10765         * config/alpha/unicosmk.h: Remove.
10766         * config/arm/kaos-arm.h: Remove.
10767         * config/arm/kaos-strongarm.h: Remove.
10768         * config/arm/strongarm-coff.h: Remove.
10769         * config/arm/strongarm-elf.h: Remove.
10770         * config/arm/strongarm-pe.h: Remove.
10771         * config/arm/t-strongarm-pe: Remove.
10772         * config/arm/t-xscale-coff: Remove.
10773         * config/arm/t-xscale-elf: Remove.
10774         * config/arm/xscale-coff.h: Remove.
10775         * config/arm/xscale-elf.h: Remove.
10776         * config/chorus.h: Remove.
10777         * config/cris/aout.h: Remove.
10778         * config/cris/aout.opt: Remove.
10779         * config/cris/t-aout: Remove.
10780         * config/i386/beos-elf.h: Remove.
10781         * config/i386/kaos-i386.h: Remove.
10782         * config/i386/ptx4-i.h: Remove.
10783         * config/i386/sco5.h: Remove.
10784         * config/i386/sco5.opt: Remove.
10785         * config/i386/sysv4-cpp.h: Remove.
10786         * config/i386/sysv5.h: Remove.
10787         * config/i386/t-beos: Remove.
10788         * config/i386/t-sco5: Remove.
10789         * config/i386/t-uwin: Remove.
10790         * config/i386/uwin.asm: Remove.
10791         * config/i386/uwin.h: Remove.
10792         * config/kaos.h: Remove.
10793         * config/mips/windiss.h: Remove.
10794         * config/mt: Remove directory.
10795         * config/pa/pa-osf.h: Remove.
10796         * config/pa/pa-pro-end.h: Remove.
10797         * config/pa/t-pro: Remove.
10798         * config/ptx4.h: Remove.
10799         * config/rs6000/beos.h: Remove.
10800         * config/rs6000/kaos-ppc.h: Remove.
10801         * config/rs6000/t-beos: Remove.
10802         * config/rs6000/windiss.h: Remove.
10803         * config/sh/kaos-sh.h: Remove.
10804         * config/sol2-6.h: Remove.
10805         * config/sparc/sol26-sld.h: Remove.
10806         * config/sparc/sysv4-only.h: Remove.
10807         * config/vax/bsd.h: Remove.
10808         * config/vax/t-memfuncs: Remove.
10809         * config/vax/ultrix.h: Remove.
10810         * config/vax/vaxv.h: Remove.
10811         * config/windiss.h: Remove.
10812
10813 2008-06-06  Uros Bizjak <ubizjak@gmail.com>
10814
10815         PR rtl-optimization/36438
10816         * cse.c (fold_rtx) [ASHIFT, LSHIFTRT, ASHIFTRT]: Break out early
10817         for vector shifts with constant scalar shift operands.
10818
10819 2008-06-06  Sandip Matte  <sandip@rmicorp.com>
10820
10821         * doc/invoke.texi: Document -march=xlr.
10822         * config/mips/xlr.md: New file.
10823         * config/mips/mips.md: Include it.
10824         (cpu): Add "xlr".
10825         * config/mips/mips.h (PROCESSOR_XLR): New processor_type.
10826         * config/mips/mips.c (mips_cpu_info_table): Add an XLR entry.
10827         (mips_rtx_cost_data): Likewise.
10828
10829 2008-06-06  Nathan Froyd  <froydnj@codesourcery.com>
10830
10831         * config/rs6000/rs6000.c (rs6000_mode_dependent_address): Remove
10832         PRE_INC and PRE_DEC cases.
10833
10834 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
10835
10836         PR rtl-optimization/36419
10837         * except.c (expand_resx_expr): Call do_pending_stack_adjust () before
10838         the emitting jump insn.
10839
10840         PR target/36362
10841         * gimplify.c (gimplify_expr) <case TRUTH_NOT_EXPR>: If *expr_p type
10842         is not bool, boolify the whole *expr_p and convert to the desired type.
10843
10844 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
10845
10846         * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP value to 200805.
10847         * langhooks.h (struct lang_hooks_for_decls): Add omp_finish_clause.
10848         Add omp_private_outer_ref hook, add another argument to
10849         omp_clause_default_ctor hook.
10850         * langhooks-def.h (LANG_HOOKS_OMP_FINISH_CLAUSE): Define.
10851         (LANG_HOOKS_OMP_PRIVATE_OUTER_REF): Define.
10852         (LANG_HOOKS_OMP_CLAUSE_DEFAULT_CTOR): Change to
10853         hook_tree_tree_tree_tree_null.
10854         (LANG_HOOKS_DECLS): Add LANG_HOOKS_OMP_FINISH_CLAUSE and
10855         LANG_HOOKS_OMP_PRIVATE_OUTER_REF.
10856         * hooks.c (hook_tree_tree_tree_tree_null): New function.
10857         * hooks.h (hook_tree_tree_tree_tree_null): New prototype.
10858         * tree.def (OMP_TASK): New tree code.
10859         * tree.h (OMP_TASK_COPYFN, OMP_TASK_ARG_SIZE, OMP_TASK_ARG_ALIGN,
10860         OMP_CLAUSE_PRIVATE_OUTER_REF, OMP_CLAUSE_LASTPRIVATE_STMT,
10861         OMP_CLAUSE_COLLAPSE_ITERVAR, OMP_CLAUSE_COLLAPSE_COUNT,
10862         OMP_TASKREG_CHECK, OMP_TASKREG_BODY, OMP_TASKREG_CLAUSES,
10863         OMP_TASKREG_FN, OMP_TASKREG_DATA_ARG, OMP_TASK_BODY,
10864         OMP_TASK_CLAUSES, OMP_TASK_FN, OMP_TASK_DATA_ARG,
10865         OMP_CLAUSE_COLLAPSE_EXPR): Define.
10866         (enum omp_clause_default_kind): Add OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.
10867         (OMP_DIRECTIVE_P): Add OMP_TASK.
10868         (OMP_CLAUSE_COLLAPSE, OMP_CLAUSE_UNTIED): New clause codes.
10869         (OMP_CLAUSE_SCHEDULE_AUTO): New schedule kind.
10870         * tree.c (omp_clause_code_name): Add OMP_CLAUSE_COLLAPSE
10871         and OMP_CLAUSE_UNTIED entries.
10872         (omp_clause_num_ops): Likewise.  Increase OMP_CLAUSE_LASTPRIVATE
10873         num_ops to 2.
10874         (walk_tree_1): Handle OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
10875         Walk OMP_CLAUSE_LASTPRIVATE_STMT.
10876         * tree-pretty-print.c (dump_omp_clause): Handle
10877         OMP_CLAUSE_SCHEDULE_AUTO, OMP_CLAUSE_UNTIED, OMP_CLAUSE_COLLAPSE,
10878         OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.
10879         (dump_generic_node): Handle OMP_TASK and collapsed OMP_FOR loops.
10880         * c-omp.c (c_finish_omp_for): Allow pointer iterators.  Remove
10881         warning about unsigned iterators.  Change decl/init/cond/incr
10882         arguments to TREE_VECs, check arguments for all collapsed loops.
10883         (c_finish_omp_taskwait): New function.
10884         (c_split_parallel_clauses): Put OMP_CLAUSE_COLLAPSE clause to
10885         ws_clauses.
10886         * c-parser.c (c_parser_omp_for_loop): Parse collapsed loops.  Call
10887         default_function_array_conversion on init.  Add par_clauses argument.
10888         If decl is present in parallel's lastprivate clause, change it to
10889         shared and add lastprivate clause for decl to OMP_FOR_CLAUSES.
10890         Add clauses argument, on success set OMP_FOR_CLAUSES to it.  Look up
10891         collapse count in clauses.
10892         (c_parser_omp_for, c_parser_omp_parallel): Adjust
10893         c_parser_omp_for_loop callers.
10894         (OMP_FOR_CLAUSE_MASK): Add 1 << PRAGMA_OMP_CLAUSE_COLLAPSE.
10895         (c_parser_pragma): Handle PRAGMA_OMP_TASKWAIT.
10896         (c_parser_omp_clause_name): Handle collapse and untied clauses.
10897         (c_parser_omp_clause_collapse, c_parser_omp_clause_untied): New
10898         functions.
10899         (c_parser_omp_clause_schedule): Handle schedule(auto).
10900         Include correct location in the error message.
10901         (c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_COLLAPSE
10902         and PRAGMA_OMP_CLAUSE_UNTIED.
10903         (OMP_TASK_CLAUSE_MASK): Define.
10904         (c_parser_omp_task, c_parser_omp_taskwait): New functions.
10905         (c_parser_omp_construct): Handle PRAGMA_OMP_TASK.
10906         * tree-nested.c (convert_nonlocal_omp_clauses,
10907         convert_local_omp_clauses): Handle OMP_CLAUSE_LASTPRIVATE_STMT,
10908         OMP_CLAUSE_REDUCTION_INIT, OMP_CLAUSE_REDUCTION_MERGE,
10909         OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
10910         Don't handle TREE_STATIC or DECL_EXTERNAL VAR_DECLs in
10911         OMP_CLAUSE_DECL.
10912         (conver_nonlocal_reference, convert_local_reference,
10913         convert_call_expr): Handle OMP_TASK the same as OMP_PARALLEL.  Use
10914         OMP_TASKREG_* macros rather than OMP_PARALLEL_*.
10915         (walk_omp_for): Adjust for OMP_FOR_{INIT,COND,INCR} changes.
10916         * tree-gimple.c (is_gimple_stmt): Handle OMP_TASK.
10917         * c-tree.h (c_begin_omp_task, c_finish_omp_task): New prototypes.
10918         * c-pragma.h (PRAGMA_OMP_TASK, PRAGMA_OMP_TASKWAIT): New.
10919         (PRAGMA_OMP_CLAUSE_COLLAPSE, PRAGMA_OMP_CLAUSE_UNTIED): New.
10920         * c-typeck.c (c_begin_omp_task, c_finish_omp_task): New functions.
10921         (c_finish_omp_clauses): Handle OMP_CLAUSE_COLLAPSE and
10922         OMP_CLAUSE_UNTIED.
10923         * c-pragma.c (init_pragma): Init omp task and omp taskwait pragmas.
10924         * c-common.h (c_finish_omp_taskwait): New prototype.
10925         * gimple-low.c (lower_stmt): Handle OMP_TASK.
10926         * tree-parloops.c (create_parallel_loop): Create 1 entry
10927         vectors for OMP_FOR_{INIT,COND,INCR}.
10928         * tree-cfg.c (remove_useless_stmts_1): Handle OMP_* containers.
10929         (make_edges): Handle OMP_TASK.
10930         * tree-ssa-operands.c (get_expr_operands): Handle collapsed OMP_FOR
10931         loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
10932         * tree-inline.c (estimate_num_insns_1): Handle OMP_TASK.
10933         * builtin-types.def (BT_PTR_ULONGLONG, BT_PTR_FN_VOID_PTR_PTR,
10934         BT_FN_BOOL_ULONGLONGPTR_ULONGLONGPTR,
10935         BT_FN_BOOL_BOOL_ULL_ULL_ULL_ULLPTR_ULLPTR,
10936         BT_FN_BOOL_BOOL_ULL_ULL_ULL_ULL_ULLPTR_ULLPTR,
10937         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT): New.
10938         * omp-builtins.def (BUILT_IN_GOMP_TASK, BUILT_IN_GOMP_TASKWAIT,
10939         BUILT_IN_GOMP_LOOP_ULL_STATIC_START,
10940         BUILT_IN_GOMP_LOOP_ULL_DYNAMIC_START,
10941         BUILT_IN_GOMP_LOOP_ULL_GUIDED_START,
10942         BUILT_IN_GOMP_LOOP_ULL_RUNTIME_START,
10943         BUILT_IN_GOMP_LOOP_ULL_ORDERED_STATIC_START,
10944         BUILT_IN_GOMP_LOOP_ULL_ORDERED_DYNAMIC_START,
10945         BUILT_IN_GOMP_LOOP_ULL_ORDERED_GUIDED_START,
10946         BUILT_IN_GOMP_LOOP_ULL_ORDERED_RUNTIME_START,
10947         BUILT_IN_GOMP_LOOP_ULL_STATIC_NEXT,
10948         BUILT_IN_GOMP_LOOP_ULL_DYNAMIC_NEXT,
10949         BUILT_IN_GOMP_LOOP_ULL_GUIDED_NEXT,
10950         BUILT_IN_GOMP_LOOP_ULL_RUNTIME_NEXT,
10951         BUILT_IN_GOMP_LOOP_ULL_ORDERED_STATIC_NEXT,
10952         BUILT_IN_GOMP_LOOP_ULL_ORDERED_DYNAMIC_NEXT,
10953         BUILT_IN_GOMP_LOOP_ULL_ORDERED_GUIDED_NEXT,
10954         BUILT_IN_GOMP_LOOP_ULL_ORDERED_RUNTIME_NEXT): New builtins.
10955         * gimplify.c (gimplify_omp_for): Allow pointer type for decl,
10956         handle POINTER_PLUS_EXPR.  If loop counter has been replaced and
10957         original iterator is present in lastprivate clause or if
10958         collapse > 1, set OMP_CLAUSE_LASTPRIVATE_STMT.  Handle collapsed
10959         OMP_FOR loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
10960         (gimplify_expr): Handle OMP_SECTIONS_SWITCH and OMP_TASK.
10961         (enum gimplify_omp_var_data): Add GOVD_PRIVATE_OUTER_REF.
10962         (omp_notice_variable): Set GOVD_PRIVATE_OUTER_REF if needed,
10963         if it is set, lookup var in outer contexts too.  Handle
10964         OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.  Handle vars that are supposed
10965         to be implicitly determined firstprivate for task regions.
10966         (gimplify_scan_omp_clauses): Set GOVD_PRIVATE_OUTER_REF if needed,
10967         if it is set, lookup var in outer contexts too.  Set
10968         OMP_CLAUSE_PRIVATE_OUTER_REF if GOVD_PRIVATE_OUTER_REF is set.
10969         Handle OMP_CLAUSE_LASTPRIVATE_STMT, OMP_CLAUSE_COLLAPSE and
10970         OMP_CLAUSE_UNTIED.  Take region_type as last argument
10971         instead of in_parallel and in_combined_parallel.
10972         (gimplify_omp_parallel, gimplify_omp_for, gimplify_omp_workshare):
10973         Adjust callers.
10974         (gimplify_adjust_omp_clauses_1): Set OMP_CLAUSE_PRIVATE_OUTER_REF if
10975         GOVD_PRIVATE_OUTER_REF is set.  Call omp_finish_clause langhook.
10976         (new_omp_context): Set default_kind to
10977         OMP_CLAUSE_DEFAULT_UNSPECIFIED for OMP_TASK regions.
10978         (omp_region_type): New enum.
10979         (struct gimplify_omp_ctx): Remove is_parallel and is_combined_parallel
10980         fields, add region_type.
10981         (new_omp_context): Take region_type as argument instead of is_parallel
10982         and is_combined_parallel.
10983         (gimple_add_tmp_var, omp_firstprivatize_variable, omp_notice_variable,
10984         omp_is_private, omp_check_private): Adjust ctx->is_parallel and
10985         ctx->is_combined_parallel checks.
10986         (gimplify_omp_task): New function.
10987         (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_COLLAPSE and
10988         OMP_CLAUSE_UNTIED.
10989         * omp-low.c (extract_omp_for_data): Use schedule(static)
10990         for schedule(auto).  Handle pointer and unsigned iterators.
10991         Compute fd->iter_type.  Handle POINTER_PLUS_EXPR increments.
10992         Add loops argument.  Extract data for collapsed OMP_FOR loops.
10993         (expand_parallel_call): Assert sched_kind isn't auto,
10994         map runtime schedule to index 3.
10995         (struct omp_for_data_loop): New type.
10996         (struct omp_for_data): Remove v, n1, n2, step, cond_code fields.
10997         Add loop, loops, collapse and iter_type fields.
10998         (workshare_safe_to_combine_p): Disallow combined for if
10999         iter_type is unsigned long long.  Don't combine collapse > 1 loops
11000         unless all bounds and steps are constant.  Adjust extract_omp_for_data
11001         caller.
11002         (expand_omp_for_generic): Handle pointer, unsigned and long long
11003         iterators.  Handle collapsed OMP_FOR loops.  Adjust
11004         for struct omp_for_data changes.  If libgomp function doesn't return
11005         boolean_type_node, add comparison of the return value with 0.
11006         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk): Handle
11007         pointer, unsigned and long long iterators.  Adjust for struct
11008         omp_for_data changes.
11009         (expand_omp_for): Assert sched_kind isn't auto, map runtime schedule
11010         to index 3.  Use GOMP_loop_ull*{start,next} if iter_type is
11011         unsigned long long.  Allocate loops array, pass it to
11012         extract_omp_for_data.  For collapse > 1 loops use always
11013         expand_omp_for_generic.
11014         (omp_context): Add sfield_map and srecord_type fields.
11015         (is_task_ctx, lookup_sfield): New functions.
11016         (use_pointer_for_field): Use is_task_ctx helper.  Change first
11017         argument's type from const_tree to tree.  Clarify comment.
11018         In OMP_TASK disallow copy-in/out sharing.
11019         (build_sender_ref): Call lookup_sfield instead of lookup_field.
11020         (install_var_field): Add mask argument.  Populate both record_type
11021         and srecord_type if needed.
11022         (delete_omp_context): Destroy sfield_map, clear DECL_ABSTRACT_ORIGIN
11023         in srecord_type.
11024         (fixup_child_record_type): Also remap FIELD_DECL's DECL_SIZE{,_UNIT}
11025         and DECL_FIELD_OFFSET.
11026         (scan_sharing_clauses): Adjust install_var_field callers.  For
11027         firstprivate clauses on explicit tasks allocate the var by value in
11028         record_type unconditionally, rather than by reference.
11029         Handle OMP_CLAUSE_PRIVATE_OUTER_REF.  Scan OMP_CLAUSE_LASTPRIVATE_STMT.
11030         Use is_taskreg_ctx instead of is_parallel_ctx.
11031         Handle OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
11032         (create_omp_child_function_name): Add task_copy argument, use
11033         *_omp_cpyfn* names if it is true.
11034         (create_omp_child_function): Add task_copy argument, if true create
11035         *_omp_cpyfn* helper function.
11036         (scan_omp_parallel): Adjust create_omp_child_function callers.
11037         Rename parallel_nesting_level to taskreg_nesting_level.
11038         (scan_omp_task): New function.
11039         (lower_rec_input_clauses): Don't run constructors for firstprivate
11040         explicit task vars which are initialized by *_omp_cpyfn*.
11041         Pass outer var ref to omp_clause_default_ctor hook if
11042         OMP_CLAUSE_PRIVATE_OUTER_REF or OMP_CLAUSE_LASTPRIVATE.
11043         Replace OMP_CLAUSE_REDUCTION_PLACEHOLDER decls in
11044         OMP_CLAUSE_REDUCTION_INIT.
11045         (lower_send_clauses): Clear DECL_ABSTRACT_ORIGIN if in task to
11046         avoid duplicate setting of fields.  Handle
11047         OMP_CLAUSE_PRIVATE_OUTER_REF.
11048         (lower_send_shared_vars): Use srecord_type if non-NULL.  Don't
11049         copy-out if TREE_READONLY, only copy-in.
11050         (expand_task_copyfn): New function.
11051         (expand_task_call): New function.
11052         (struct omp_taskcopy_context): New type.
11053         (task_copyfn_copy_decl, task_copyfn_remap_type, create_task_copyfn):
11054         New functions.
11055         (lower_omp_parallel): Rename to...
11056         (lower_omp_taskreg): ... this.  Use OMP_TASKREG_* macros where needed.
11057         Call create_task_copyfn if srecord_type is needed.  Adjust
11058         sender_decl type.
11059         (task_shared_vars): New variable.
11060         (check_omp_nesting_restrictions): Warn if work-sharing,
11061         barrier, master or ordered region is closely nested inside OMP_TASK.
11062         Add warnings for barrier if closely nested inside of work-sharing,
11063         ordered, or master region.
11064         (scan_omp_1): Call check_omp_nesting_restrictions even for
11065         GOMP_barrier calls.  Rename parallel_nesting_level to
11066         taskreg_nesting_level.  Handle OMP_TASK.
11067         (lower_lastprivate_clauses): Even if some lastprivate is found on a
11068         work-sharing construct, continue looking for them on parent parallel
11069         construct.
11070         (lower_omp_for_lastprivate): Add lastprivate clauses
11071         to the beginning of dlist rather than end.  Adjust for struct
11072         omp_for_data changes.
11073         (lower_omp_for): Add rec input clauses before OMP_FOR_PRE_BODY,
11074         not after it.  Handle collapsed OMP_FOR loops, adjust for
11075         OMP_FOR_{INIT,COND,INCR} changes, adjust extract_omp_for_data caller.
11076         (get_ws_args_for): Adjust extract_omp_for_data caller.
11077         (scan_omp_for): Handle collapsed OMP_FOR
11078         loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
11079         (lower_omp_single_simple): If libgomp function doesn't return
11080         boolean_type_node, add comparison of the return value with 0.
11081         (diagnose_sb_1, diagnose_sb_2): Handle collapsed OMP_FOR
11082         loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.  Handle OMP_TASK.
11083         (parallel_nesting_level): Rename to...
11084         (taskreg_nesting_level): ... this.
11085         (is_taskreg_ctx): New function.
11086         (build_outer_var_ref, omp_copy_decl): Use is_taskreg_ctx instead
11087         of is_parallel_ctx.
11088         (execute_lower_omp): Rename parallel_nesting_level to
11089         taskreg_nesting_level.
11090         (expand_omp_parallel): Rename to...
11091         (expand_omp_taskreg): ... this.  Use OMP_TASKREG_* macros where needed.
11092         Call omp_task_call for OMP_TASK regions.
11093         (expand_omp): Adjust caller, handle OMP_TASK.
11094         (lower_omp_1): Adjust lower_omp_taskreg caller, handle OMP_TASK.
11095
11096         * bitmap.c (bitmap_default_obstack_depth): New variable.
11097         (bitmap_obstack_initialize, bitmap_obstack_release): Do nothing
11098         if argument is NULL and bitmap_default_obstack is already initialized.
11099         * ipa-struct-reorg.c (do_reorg_1): Call bitmap_obstack_release
11100         at the end.
11101         * matrix-reorg.c (matrix_reorg): Likewise.
11102
11103 2008-06-06  Uros Bizjak  <ubizjak@gmail.com>
11104
11105         * config/i386/i386.md (*indirect_jump): Macroize using P
11106         mode iterator.  Remove !TARGET_64BIT from insn constraints.
11107         (*tablejump_1): Ditto.
11108         (*indirect_jump_rex64): Remove insn pattern.
11109         (*tablejump_1_rex64): Ditto.
11110         (eh_return_<mode>): Macroize using P mode iterator from eh_return_di
11111         and eh_return_si insn patterns.
11112
11113 2008-06-06  Richard Guenther  <rguenther@suse.de>
11114
11115         * tree-ssa-structalias.c (merge_smts_into): Remove.
11116         (find_what_p_points_to): Do not bother to compute the
11117         points-to set for pt_anything pointers.
11118         * tree-ssa-operands.c (get_addr_dereference_operands): No NMT
11119         for pt_anything pointers is ok.
11120
11121 2008-06-06  Jan Hubicka  <jh@suse.cz>
11122
11123         * passes.c (execute_ipa_pass_list): Do not regenerate summaries.
11124
11125 2008-06-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11126
11127         * cgraph.c: Fix typos in comments.
11128         (cgraph_availability_names): Fix string typo.
11129         * fold-const.c: Fix typos in comments.
11130         (fold_binary): Fix typo in warning.
11131         * genautomata.c: Fix typos in comments.
11132         (check_presence_pattern_sets): Fix typo in local variable.
11133         (output_description): Fix typo in output.
11134         * ggc-zone.c (ggc_pch_finish): Fix typo in error message.
11135         * hwint.h: Likewise.
11136         * matrix-reorg.c (check_allocation_function): Likewise.
11137         * omega.c (smooth_weird_equations): Likewise.
11138         * auto-inc-dec.c: Fix typos in comments.
11139         * bb-reorder.c: Likewise.
11140         * builtins.c: Likewise.
11141         * c-common.c: Likewise.
11142         * c-cppbuiltin.c: Likewise.
11143         * c-parser.c: Likewise.
11144         * c-pretty-print.c: Likewise.
11145         * cfgcleanup.c: Likewise.
11146         * cfgexpand.c: Likewise.
11147         * cfghooks.c: Likewise.
11148         * cfglayout.c: Likewise.
11149         * cfgloopmanip.c: Likewise.
11150         * cgraphunit.c: Likewise.
11151         * coverage.c: Likewise.
11152         * dbxout.c: Likewise.
11153         * df-byte-scan.c: Likewise.
11154         * df-core.c: Likewise.
11155         * df-problems.c: Likewise.
11156         * df-scan.c: Likewise.
11157         * dfp.c: Likewise.
11158         * dominance.c: Likewise.
11159         * domwalk.c: Likewise.
11160         * dse.c: Likewise.
11161         * dwarf2out.c: Likewise.
11162         * emit-rtl.c: Likewise.
11163         * et-forest.c: Likewise.
11164         * function.c: Likewise.
11165         * function.h: Likewise.
11166         * gcc.c: Likewise.
11167         * gcov-io.c: Likewise.
11168         * gcov.c: Likewise.
11169         * gcse.c: Likewise.
11170         * genattrtab.c: Likewise.
11171         * ggc-page.c: Likewise.
11172         * gimplify.c: Likewise.
11173         * gthr-lynx.h: Likewise.
11174         * haifa-sched.c: Likewise.
11175         * ipa-cp.c: Likewise.
11176         * ipa-inline.c: Likewise.
11177         * ipa-prop.h: Likewise.
11178         * ipa-pure-const.c: Likewise.
11179         * ipa-struct-reorg.c: Likewise.
11180         * ipa-struct-reorg.h: Likewise.
11181         * ipa-type-escape.c: Likewise.
11182         * ipa.c: Likewise.
11183         * loop-doloop.c: Likewise.
11184         * mips-tfile.c: Likewise.
11185         * mkmap-flat.awk: Likewise.
11186         * mkmap-symver.awk: Likewise.
11187         * modulo-sched.c: Likewise.
11188         * omp-low.c: Likewise.
11189         * optabs.c: Likewise.
11190         * optabs.h: Likewise.
11191         * opts.c: Likewise.
11192         * passes.c: Likewise.
11193         * postreload-gcse.c: Likewise.
11194         * postreload.c: Likewise.
11195         * predict.c: Likewise.
11196         * pretty-print.h: Likewise.
11197         * profile.c: Likewise.
11198         * protoize.c: Likewise.
11199         * ra-conflict.c: Likewise.
11200         * real.c: Likewise.
11201         * recog.c: Likewise.
11202         * regclass.c: Likewise.
11203         * regs.h: Likewise.
11204         * reload.c: Likewise.
11205         * rtl-error.c: Likewise.
11206         * rtlanal.c: Likewise.
11207         * scan.h: Likewise.
11208         * sched-rgn.c: Likewise.
11209         * see.c: Likewise.
11210         * stmt.c: Likewise.
11211         * target.h: Likewise.
11212         * tree-dfa.c: Likewise.
11213         * tree-eh.c: Likewise.
11214         * tree-flow-inline.h: Likewise.
11215         * tree-inline.c: Likewise.
11216         * tree-into-ssa.c: Likewise.
11217         * tree-loop-distribution.c: Likewise.
11218         * tree-nested.c: Likewise.
11219         * tree-parloops.c: Likewise.
11220         * tree-pass.h: Likewise.
11221         * tree-pretty-print.c: Likewise.
11222         * tree-profile.c: Likewise.
11223         * tree-scalar-evolution.c: Likewise.
11224         * tree-sra.c: Likewise.
11225         * tree-ssa-alias-warnings.c: Likewise.
11226         * tree-ssa-ccp.c: Likewise.
11227         * tree-ssa-coalesce.c: Likewise.
11228         * tree-ssa-dom.c: Likewise.
11229         * tree-ssa-dse.c: Likewise.
11230         * tree-ssa-forwprop.c: Likewise.
11231         * tree-ssa-live.c: Likewise.
11232         * tree-ssa-live.h: Likewise.
11233         * tree-ssa-loop-im.c: Likewise.
11234         * tree-ssa-loop-ivopts.c: Likewise.
11235         * tree-ssa-loop-niter.c: Likewise.
11236         * tree-ssa-loop-prefetch.c: Likewise.
11237         * tree-ssa-phiopt.c: Likewise.
11238         * tree-ssa-phiprop.c: Likewise.
11239         * tree-ssa-sccvn.c: Likewise.
11240         * tree-ssa-ter.c: Likewise.
11241         * tree-ssa-threadupdate.c: Likewise.
11242         * tree-ssa.c: Likewise.
11243         * tree-vect-analyze.c: Likewise.
11244         * tree-vect-transform.c: Likewise.
11245         * tree-vectorizer.c: Likewise.
11246         * tree-vn.c: Likewise.
11247         * tree-vrp.c: Likewise.
11248         * tree.c: Likewise.
11249         * tree.def: Likewise.
11250         * tree.h: Likewise.
11251         * unwind-dw2-fde.c: Likewise.
11252         * unwind.inc: Likewise.
11253         * value-prof.c: Likewise.
11254         * vmsdbgout.c: Likewise.
11255
11256 2008-06-05  David Edelsohn  <edelsohn@gnu.org>
11257
11258         * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Do not
11259         always place FP constants in the TOC for TARGET_POWERPC64.
11260         * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Same.
11261
11262 2008-06-05  Joseph Myers  <joseph@codesourcery.com>
11263
11264         * config.gcc (powerpc-*-linux*spe*): Use t-dfprules.
11265         * config/rs6000/dfp.md (negdd2, absdd2, negtd2, abstd2): Do not
11266         enable for TARGET_E500_DOUBLE.
11267         (*movdd_softfloat32): Also enable for !TARGET_FPRS.
11268         * config/rs6000/rs6000.c (invalid_e500_subreg): Treat decimal
11269         floating-point modes like integer modes for E500 double.
11270         (rs6000_legitimate_offset_address_p): Likewise.
11271         (rs6000_legitimize_address): Likewise.  Do not allow REG+REG
11272         addressing for DDmode for E500 double.
11273         (rs6000_hard_regno_nregs): Do not treat decimal floating-point
11274         modes as using 64-bits of registers for E500 double.
11275         (spe_build_register_parallel): Do not handle DDmode or TDmode.
11276         (rs6000_spe_function_arg): Do not handle DDmode or TDmode
11277         specially for E500 double.
11278         (function_arg): Do not call rs6000_spe_function_arg for DDmode or
11279         TDmode for E500 double.
11280         (rs6000_gimplify_va_arg): Only handle SDmode in registers
11281         specially if TARGET_HARD_FLOAT && TARGET_FPRS.
11282         (rs6000_split_multireg_move): Do not handle TDmode specially for
11283         E500 double.
11284         (spe_func_has_64bit_regs_p): Do not treat DDmode or TDmode as
11285         using 64-bit registers for E500 double.
11286         (emit_frame_save): Do not handle DDmode specially for E500 double.
11287         (gen_frame_mem_offset): Likewise.
11288         (rs6000_function_value): Do not call spe_build_register_parallel
11289         for DDmode or TDmode.
11290         (rs6000_libcall_value): Likewise.
11291         * config/rs6000/rs6000.h (LOCAL_ALIGNMENT, MEMBER_TYPE_FORCES_BLK,
11292         DATA_ALIGNMENT, CLASS_MAX_NREGS): Do not handle DDmode specially
11293         for E500 double.
11294
11295 2008-06-04  H.J. Lu  <hongjiu.lu@intel.com>
11296
11297         * config/i386/i386.c (setup_incoming_varargs_64): Fix a typo
11298         in comments.
11299
11300 2008-06-04  Junjie Gu <jgu@tensilica.com>
11301
11302         * config/xtensa/lib2funcs.S (__xtensa_nonlocal_goto): Use unsigned
11303         comparison for frame pointers.
11304
11305 2008-06-04  Andy Hutchinson  <hutchinsonandy@aim.com>
11306
11307         PR target/27386
11308         * config/avr/avr.h (PUSH_ROUNDING): Remove.
11309
11310 2008-06-04  Andy Hutchinson  <hutchinsonandy@aim.com>
11311
11312         PR target/30243
11313         * builtins.c (expand_builtin_signbit): Don't take lowpart when
11314         register is already smaller or equal to required mode.
11315
11316 2008-06-04  Xinliang David Li  <davidxl@google.com>
11317
11318         * tree-call-cdce.c: New file.
11319         (cond_dead_built_in_calls): New static variable.
11320         (input_domain): New struct.
11321         (check_pow): New function.
11322         (check_builtin_call): Ditto.
11323         (check_target_format): Ditto.
11324         (is_call_dce_candidate): Ditto.
11325         (gen_one_condition): Ditto.
11326         (gen_conditions_for_domain): Ditto.
11327         (get_domain): Ditto.
11328         (gen_conditions_for_pow_cst_base): Ditto.
11329         (gen_conditions_for_pow_int_base): Ditto.
11330         (gen_conditions_for_pow): Ditto.
11331         (get_no_error_domain): Ditto.
11332         (gen_shrink_wrap_conditions): Ditto.
11333         (shrink_wrap_one_built_in_call): Ditto.
11334         (shink_wrap_conditional_dead_built_in_calls): Ditto.
11335         (tree_call_cdce): Ditto.
11336         (gate_call_cdce): Ditto.
11337         (pass_call_cdce): New gimple pass.
11338         * passes.c: (init_optimization_passes): New pass.
11339         * tree-pass.h: New pass declaration.
11340         * opts.c (decode_options): New flag setting.
11341         * common.opt: Add -ftree-builtin-call-dce flag.
11342         * Makefile.in: Add new source file.
11343         * tempvar.def: New tv_id.
11344         * doc/invoke.texi (-ftree-builtin-call-dce): New flag.
11345
11346 2008-06-04  Richard Guenther  <rguenther@suse.de>
11347
11348         * tree-flow-inline.h (is_global_var): Do not check TREE_STATIC on MTAGs.
11349         (is_call_clobbered): Always check var_ann->call_clobbered.
11350         (mark_call_clobbered): Always set var_ann->call_clobbered.
11351         (clear_call_clobbered): Always clear var_ann->call_clobbered.
11352         * tree-ssa-alias.c (mark_non_addressable): Use clear_call_clobbered.
11353         (reset_alias_info): Clear call clobbering info on MTAGs and
11354         globals as well.
11355         (set_pt_anything): Set pt_global_mem.
11356         (create_tag_raw): Adjust comment.
11357         (may_be_aliased): Do not check TREE_PUBLIC on MTAGs.
11358
11359 2008-06-04  Joseph Myers  <joseph@codesourcery.com>
11360             Maxim Kuvyrkov  <maxim@codesourcery.com>
11361
11362         * config/m68k/m68k.opt (mxgot): New option.
11363         * config/m68k/m68k.c (legitimize_pic_address): Handle -mxgot.
11364         (m68k_output_addr_const_extra): New.
11365         * config/m68k/m68k.h (OUTPUT_ADDR_CONST_EXTRA): New.
11366         * config/m68k/m68k-protos.h (m68k_output_addr_const_extra): Declare.
11367         * config/m68k/m68k.md (UNSPEC_GOTOFF): Define.
11368         * doc/invoke.texi (M680x0 Options): Document -mxgot.
11369
11370 2008-06-04  Richard Guenther  <rguenther@suse.de>
11371
11372         * tree-ssa-structalias.c (handle_ptr_arith): Correctly handle
11373         negative or non-representable offsets.
11374
11375 2008-06-03  H.J. Lu  <hongjiu.lu@intel.com>
11376
11377         * config/i386/i386.c (ix86_gen_leave): New.
11378         (ix86_gen_pop1): Likewise.
11379         (ix86_gen_add3): Likewise.
11380         (ix86_gen_sub3): Likewise.
11381         (ix86_gen_sub3_carry): Likewise.
11382         (ix86_gen_one_cmpl2): Likewise.
11383         (ix86_gen_monitor): Likewise.
11384         (override_options): Initialize ix86_gen_leave, ix86_gen_pop1,
11385         ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
11386         ix86_gen_one_cmpl2 and ix86_gen_monitor.
11387         (ix86_file_end): Use mov%z0 instead of mov{q}/mov{l}.
11388         (output_set_got): Use mov%z0, pop%z0 and add%z0 instead of
11389         mov{q}/mov{l}, pop{q}/pop{l} and add{q}/add{l}.
11390         (ix86_expand_epilogue): Updated.
11391         (print_operand): Handle integer register operand for 'z'.
11392         (ix86_expand_strlensi_unroll_1): Likewise.
11393         (ix86_expand_strlen): Likewise.
11394         (ix86_expand_builtin): Likewise.
11395         (x86_output_mi_thunk): Use mov%z1 and add%z1 instead of
11396         mov{q}/mov{l} and add{q}/add{l}.
11397
11398 2008-06-03  Kai Tietz  <kai.tietz@onevision.com>
11399
11400         * config/i386/i386.md (P): New mode iterator.
11401         (SFmode push_operand splitter): Macroize DImode and SImode pushes
11402         using P mode iterator.
11403         (DFmode push_operand splitter): Ditto.
11404         (XFmode push_operand splitter): Ditto.
11405         (DFmode float_extend SFmode push_operand splitter): Ditto.
11406         (XFmode float_extend SFmode push_operand splitter): Do not generate
11407         SImode pushes for 64bit target.  Macroize Dimode and SImode
11408         pushes using P mode iterator.
11409         (XFmode float_extend DFmode push_operand splitter): Ditto.
11410
11411 2008-06-03  Kai Tietz  <kai.tietz@onevision.com>
11412
11413         * config/i386/i386-protos.h (ix86_reg_parm_stack_space): New.
11414         * config/i386/i386.h (ix86_reg_parm_stack_space): Removed prototype.
11415         * config/i386/i386.c (ix86_reg_parm_stack_space): Changed
11416         return type to int.
11417         (ix86_call_abi_override): Remove check for call_used_regs.
11418
11419 2008-06-03  Richard Guenther  <rguenther@suse.de>
11420
11421         * tree-ssa-structalias.c (find_func_aliases): Add constraints
11422         for the lhs of calls if the return type contains pointers.
11423
11424 2008-06-03  Kai Tietz  <kai.tietz@onevision.com>
11425
11426         * doc/tm.texi (OVERRIDE_ABI_FORMAT): New.
11427         * doc/extend.texi (ms_abi,sysv_abi): New attribute description.
11428         * function.c (allocate_struct_function): Use of OVERRIDE_ABI_FORMAT.
11429         * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Make use
11430         of cfun and DEFAULT_ABI to deceide abi mode.
11431         (DEFAULT_ABI): New.
11432         (REG_PARM_STACK_SPACE): Removed.
11433         (OUTGOING_REG_PARM_STACK_SPACE): Removed.
11434         (STACK_BOUNDARY): Use default target to deceide stack boundary.
11435         * config/i386/i386-protos.h (ix86_cfun_abi): New.
11436         (ix86_function_abi): Likewise.
11437         (ix86_function_type_abi): Likewise.
11438         (ix86_call_abi_override): Likewise.
11439         * confid/i386/i386.md (SSE_REGPARM_MAX): Replaced by abi
11440         specific define X86_64_SSE_REGPARM_MAX/X64_SSE_REGPARM_MAX.
11441         * config/i386/i386.c (override_options): Replace TARGET_64BIT_MS_ABI.
11442         (X86_64_VARARGS_SIZE): Replace REGPARM_MAX and SSE_REGPARM_MAX by abi
11443         specific defines.
11444         (X86_64_REGPARM_MAX): New.
11445         (X86_64_SSE_REGPARM_MAX): New.
11446         (X64_REGPARM_MAX): New.
11447         (X64_SSE_REGPARM_MAX): New.
11448         (X86_32_REGPARM_MAX): New.
11449         (X86_32_SSE_REGPARM_MAX): New.
11450         (ix86_handle_cconv_attribute): Replace TARGET_64BIT_MS_ABI.
11451         (ix86_function_regparm): Handle user calling abi.
11452         (ix86_function_arg_regno_p): Replace TARGET_64BIT_MS_ABI
11453         by DEFAULT_ABI versus SYSV_ABI check.
11454         (ix86_reg_parm_stack_space): New.
11455         (ix86_function_type_abi): New.
11456         (ix86_call_abi_override): New.
11457         (ix86_function_abi): New.
11458         (ix86_cfun_abi): New.
11459         (init_cumulative_args): Call abi specific initialization.
11460         (function_arg_advance): Remove TARGET_64BIT_MS_ABI.
11461         (function_arg_64): Extend SSE_REGPARM_MAX check.
11462         (function_arg (): Remove TARGET_64BIT_MS_ABI.
11463         (ix86_pass_by_reference): Likewise.
11464         (ix86_function_value_regno_p): Likewise.
11465         (function_value_64): Replace REGPARM_MAX, and SSE_REGPARM_MAX.
11466         (ix86_function_value_1): Replace TARGET_64BIT_MS_ABI.
11467         (return_in_memory_ms_64): Replace TARGET_64BIT_MS_ABI.
11468         (ix86_build_builtin_va_list): Replace TARGET_64BIT_MS_ABI.
11469         (setup_incoming_varargs_64): Adjust regparm for call abi.
11470         (ix86_setup_incoming_varargs): Replace TARGET_64BIT_MS_ABI.
11471         (ix86_va_start): Likewise.
11472         (ix86_gimplify_va_arg): Likewise.
11473         (ix86_expand_prologue): Likewise.
11474         (output_pic_addr_const): Likewise.
11475         (ix86_init_machine_status): Initialize call_abi by DEFAULT_ABI.
11476         (x86_this_parameter): Replace TARGET_64BIT_MS_ABI.
11477         (x86_output_mi_thunk): Likewise.
11478         (x86_function_profiler): Likewise.
11479         * config/i386/i386.h (TARGET_64BIT_MS_ABI): Use ix64_cfun_abi.
11480         (SYSV_ABI, MS_ABI): New constants.
11481         (DEFAULT_ABI): New.
11482         (init_regs): Add prototype of function in regclass.c file.
11483         (OVERRIDE_ABI_FORMAT): New.
11484         (CONDITIONAL_REGISTER_USAGE): Remove TARGET_64BIT_MS_ABI part.
11485         (REG_PARM_STACK_SPACE): Use ix86_reg_parm_stack_space.
11486         (OUTGOING_REG_PARM_STACK_SPACE): New.
11487         (ix86_reg_parm_stack_space): New prototype.
11488         (CUMULATIVE_ARGS): Add call_abi member.
11489         (machine_function): Add call_abi member.
11490         * config/i386/mingw32.h (EXTRA_OS_CPP_BUILTINS): Replace
11491         TARGET_64BIT_MS_ABI by DEFAULT_ABI compare to MS_ABI.
11492
11493 2008-06-02  Andy Hutchinson  <hutchinsonandy@aim.com>
11494
11495         PR target/34879
11496         * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Redefine.
11497         (avr_builtin_setjmp_frame_value): New function.
11498         * config/avr/avr.md (nonlocal_goto_receiver): Define.
11499         (nonlocal_goto): Define.
11500
11501 2008-06-02  Richard Sandiford  <rdsandiford@googlemail.com>
11502
11503         * config/mips/mips.c (mips_emit_loadgp): Return early if
11504         there is nothing do to, otherwise emit a blockage if
11505         !TARGET_EXPLICIT_RELOCS || crtl->profile.
11506         * config/mips/mips.md (loadgp_blockage): Use SI rather than DI.
11507
11508 2008-06-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11509
11510         * configure.ac: Drop unneeded backslash ending up in config.in.
11511         * acinclude.m4: Likewise.
11512         * config.in: Regenerate.
11513
11514 2008-05-26  Jan Hubicka  <jh@suse.cz>
11515
11516         * predict.c (maybe_hot_frequency_p): Break out of...
11517         (maybe_hot_bb_p): ... here.
11518         (maybe_hot_edge_p): New.
11519         * tree-ssa-coalesce.c (coalesce_cost_edge): Compute cost based on edge.
11520         * basic-block.h (maybe_hot_edge_p): Declare.
11521
11522 2008-05-31  Uros Bizjak  <ubizjak@gmail.com>
11523
11524         * config/i386/i386.md (*cmpfp_<mode>): Enable for optimize_size.
11525         (*cmpfp_<mode>_cc): Ditto.
11526         (*fp_jcc_8<mode>_387): Ditto.
11527         (*fop_<MODEF:mode>_2_i387): Ditto.
11528         (*fop_<MODEF:mode>_3_i387): Ditto.
11529         (*fop_xf_2_i387): Ditto.
11530         (*fop_xf_3_i387): Ditto.
11531
11532 2008-06-02  Tomas Bily  <tbily@suse.cz>
11533
11534         * tree-ssa-ifcombine.c (get_name_for_bit_test): Use CONVERT_EXPR_P.
11535
11536 2008-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
11537
11538         * config/mips/mips.c (mips_valid_offset_p): New function.
11539         (mips_valid_lo_sum_p): Likewise.
11540         (mips_classify_address): Use them.
11541         (mips_force_address): New function.
11542         (mips_legitimize_address): Use it.
11543         * config/mips/mips.md (MOVE128): New mode iterator.
11544         (movtf): Require TARGET_64BIT.  Remove empty strings.
11545         (*movtf_internal): Rename to...
11546         (*movtf): ...this and require !TARGET_MIPS16.  Use "m" instead
11547         of "R" and use {,fp}{load,store} attributes instead of "multi".
11548         Use a separate define_split.
11549         (*movtf_mips16): New pattern.
11550
11551 2008-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
11552
11553         * config/mips/mips-protos.h (mips_expand_before_return): Declare.
11554         * config/mips/mips.c (mips_expand_before_return): New function.
11555         (mips_expand_epilogue): Call it.
11556         * config/mips/mips.md (return): Turn into a define_expand.
11557         (*return): New insn.
11558
11559 2008-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
11560
11561         * rtl.h (emit_clobber, gen_clobber, emit_use, gen_use): Declare.
11562         * emit-rtl.c (emit_clobber, gen_clobber, emit_use, gen_use): New
11563         functions.  Do not emit uses and clobbers of CONCATs; individually
11564         use and clobber their operands.
11565         * builtins.c (expand_builtin_setjmp_receiver): Use emit_clobber,
11566         gen_clobber, emit_use and gen_use.
11567         (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
11568         (expand_builtin_return): Likewise.
11569         * cfgbuild.c (count_basic_blocks): Likewise.
11570         * cfgrtl.c (rtl_flow_call_edges_add): Likewise.
11571         * explow.c (emit_stack_restore): Likewise.
11572         * expmed.c (extract_bit_field_1): Likewise.
11573         * expr.c (convert_move, emit_move_complex_parts): Likewise.
11574         (emit_move_multi_word, store_constructor): Likewise.
11575         * function.c (do_clobber_return_reg, do_use_return_reg): Likewise.
11576         (thread_prologue_and_epilogue_insns): Likewise.
11577         * lower-subreg.c (resolve_simple_move): Likewise.
11578         * optabs.c (widen_operand, expand_binop): Likewise.
11579         (expand_doubleword_bswap, emit_no_conflict_block): Likewise.
11580         * reload.c (find_reloads): Likewise.
11581         * reload1.c (eliminate_regs_in_insn): Likewise.
11582         * stmt.c (expand_nl_goto_receiver): Likewise.
11583         * config/alpha/alpha.md (builtin_longjmp): Likewise.
11584         * config/arc/arc.md (*movdi_insn, *movdf_insn): Likewise.
11585         * config/arm/arm.c (arm_load_pic_register): Likewise.
11586         (thumb1_expand_epilogue, thumb_set_return_address): Likewise.
11587         * config/arm/arm.md (untyped_return): Likewise.
11588         * config/arm/linux-elf.h (PROFILE_HOOK): Likewise.
11589         * config/avr/avr.c (expand_prologue): Likewise.
11590         * config/bfin/bfin.c (do_unlink): Likewise.
11591         * config/bfin/bfin.md (<optab>di3, adddi3, subdi3): Likewise.
11592         * config/cris/cris.c (cris_expand_prologue): Likewise.
11593         * config/darwin.c (machopic_indirect_data_reference): Likewise.
11594         (machopic_legitimize_pic_address): Likewise.
11595         * config/frv/frv.c (frv_frame_access, frv_expand_epilogue): Likewise.
11596         (frv_ifcvt_modify_insn, frv_expand_mdpackh_builtin): Likewise.
11597         * config/i386/i386.c (ix86_expand_vector_move_misalign): Likewise.
11598         (ix86_expand_convert_uns_didf_sse): Likewise.
11599         (ix86_expand_vector_init_general): Likewise.
11600         * config/ia64/ia64.md (eh_epilogue): Likewise.
11601         * config/iq2000/iq2000.c (iq2000_expand_epilogue): Likewise.
11602         * config/m32c/m32c.c (m32c_emit_eh_epilogue): Likewise.
11603         * config/m32r/m32r.c (m32r_reload_lr): Likewise.
11604         (config/iq2000/iq2000.c): Likewise.
11605         * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
11606         (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
11607         (builtin_longjmp): Likewise.
11608         * config/mn10300/mn10300.md (call, call_value): Likewise.
11609         * config/pa/pa.md (nonlocal_goto, nonlocal_longjmp): Likewise.
11610         * config/pdp11/pdp11.md (abshi2): Likewise.
11611         * config/rs6000/rs6000.c (rs6000_emit_move): Likewise.
11612         * config/s390/s390.c (s390_emit_prologue): Likewise.
11613         * config/s390/s390.md (movmem_long, setmem_long): Likewise.
11614         (cmpmem_long, extendsidi2, zero_extendsidi2, udivmoddi4): Likewise.
11615         (builtin_setjmp_receiver, restore_stack_nonlocal): Likewise.
11616         * config/sh/sh.c (prepare_move_operands): Likewise.
11617         (output_stack_adjust, sh_expand_epilogue): Likewise.
11618         (sh_set_return_address, sh_expand_t_scc): Likewise.
11619         * config/sparc/sparc.c (load_pic_register): Likewise.
11620         * config/sparc/sparc.md (untyped_return, nonlocal_goto): Likewise.
11621         * config/spu/spu.c (spu_expand_epilogue): Likewise.
11622         * config/v850/v850.c (expand_epilogue): Likewise.
11623
11624 2008-05-31  Anatoly Sokolov  <aesok@post.ru>
11625
11626         * config/avr/avr.md (UNSPECV_WRITE_SP_IRQ_ON): New constants.
11627         (UNSPECV_WRITE_SP_IRQ_OFF): (Ditto.).
11628         (movhi_sp_r_irq_off, movhi_sp_r_irq_on): New insn.
11629         * config/avr/avr.c (expand_prologue, expand_epilogue): Use
11630         movhi_sp_r_irq_off and movhi_sp_r_irq_on insns for writing to the
11631         stack pointer register.
11632         (output_movhi): Remove code for interrupt specific writing to the
11633         stack pointer register.
11634
11635 2008-05-31  Richard Guenther  <rguenther@suse.de>
11636
11637         PR tree-optimization/34244
11638         * fold-const.c (tree_expr_nonnegative_warnv_p): Do not ask VRP.
11639         (tree_expr_nonzero_warnv_p): Likewise.
11640         * tree-vrp.c (vrp_expr_computes_nonnegative): Call
11641         ssa_name_nonnegative_p.
11642         (vrp_expr_computes_nonzero): Call ssa_name_nonzero_p.
11643         (extract_range_from_unary_expr): Use vrp_expr_computes_nonzero,
11644         not tree_expr_nonzero_warnv_p.
11645
11646         PR tree-optimization/36262
11647         Revert
11648         2007-11-29  Zdenek Dvorak  <ook@ucw.cz>
11649
11650         PR tree-optimization/34244
11651         * tree-vrp.c (adjust_range_with_scev): Clear scev cache.
11652         (record_numbers_of_iterations): New function.
11653         (execute_vrp): Cache the numbers of iterations of loops.
11654         * tree-scalar-evolution.c (scev_reset_except_niters):
11655         New function.
11656         (scev_reset): Use scev_reset_except_niters.
11657         * tree-scalar-evolution.h (scev_reset_except_niters): Declare.
11658
11659 2008-05-31  Bernd Schmidt  <bernd.schmidt@analog.com>
11660
11661         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
11662         __WORKAROUND_RETS when appropriate.
11663
11664 2008-05-31  Uros Bizjak  <ubizjak@gmail.com>
11665
11666         * config/i386/i386.md (*fop_<mode>_comm_mixed): Macroize from
11667         *fop_sf_comm_mixed and *fop_df_comm_mixed insn patterns using MODEF
11668         mode iterator.
11669         (*fop_<mode>_comm_sse): Macroize from *fop_sf_comm_sse and
11670         *fop_df_comm_sse insn patterns using MODEF mode iterator.
11671         (*fop_<mode>_comm_i387): Macroize from *fop_sf_comm_i387 and
11672         *fop_df_comm_i387 insn patterns using MODEF mode iterator.
11673         (*fop_<mode>_1_mixed): Macroize from *fop_sf_1_mixed and
11674         *fop_df_1_mixed insn patterns using MODEF mode iterator.
11675         (*fop_<mode>_1_sse): Macroize from *fop_sf_1_sse and
11676         *fop_df_1_sse insn patterns using MODEF mode iterator.
11677         (*fop_<mode>_1_i387): Macroize from *fop_sf_1_i387 and
11678         *fop_df_1_i387 insn patterns using MODEF mode iterator.
11679         (*fop_<MODEF:mode>_2_i387): Macroize from *fop_sf_2<mode>_i387 and
11680         *fop_df_2<mode>_i387 insn patterns using MODEF mode iterator.
11681         (*fop_<MODEF:mode>_3_i387): Macroize from *fop_sf_3<mode>_i387 and
11682         *fop_df_3<mode>_i387 insn patterns using MODEF mode iterator.
11683         (*fop_xf_2_i387): Rename from *fop_xf_2<mode>_i387.
11684         (*fop_xf_3_i387): Rename from *fop_xf_3<mode>_i387.
11685         (*fop_xf_4_i387): Use <MODE> for mode attribute.
11686         (*fop_xf_5_i387): Ditto.
11687         (*fop_xf_6_i387): Ditto.
11688
11689 2008-05-30  Richard Guenther  <rguenther@suse.de>
11690
11691         * builtins.c (build_string_literal): Avoid generating
11692         a non-gimple_val result.
11693
11694 2008-05-30  DJ Delorie  <dj@redhat.com>
11695
11696         * exec-tool.in: Use an environment variable (private) instead of a
11697         file (shared) as a semaphore, so as to not break parallel builds.
11698
11699 2008-05-30  Steven Bosscher  <stevenb.gcc@gmail.com>
11700
11701         * optabs.c (maybe_encapsulate_block): Remove.
11702         (emit_libcall_block): Adjust accordingly.
11703         * optabs.h (maybe_encapsulate_block): Remove prototype.
11704
11705         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address):
11706         Don't use maybe_encapsulate_block.
11707
11708 2008-05-30  Steven Bosscher  <stevenb.gcc@gmail.com>
11709
11710         * config/rs6000/rs6000.c (rs6000_legitimize_address,
11711         rs6000_legitimize_reload_address, rs6000_emit_move): Make sure an
11712         rtx is a SYMBOL_REF before calling get_pool_constant.
11713
11714 2008-05-30  Eric Botcazou  <ebotcazou@adacore.com>
11715
11716         * fold-const.c (fold_unary) <CASE_CONVERT>: Add ??? comment.
11717
11718 2008-05-30  Danny Smith  <dannysmith@users.sourceforge.net>
11719
11720         * incpath.c: Use HOST_LACKS_INODE_NUMBERS conditional
11721         rather than OS names to choose INO_T_EQ definition.
11722         (DIRS_EQ) [!INO_T_EQ]: Don't worry about case in comparison.
11723         (add_path) [!INO_T_EQ]: Use lrealpath to fill canonical_name field.
11724
11725 2008-05-29  Daniel Franke  <franke.daniel@gmail.com>
11726
11727         PR target/36348
11728         * config/darwin-f.c: New.
11729         * config/t-darwin: Added rule to build darwin-f.o.
11730         * config.gcc: Defined new variable, fortran_target_objs.
11731         (*-*-darwin*): Set fortran_target_objs.
11732         * Makefile.in: Defined new variable FORTRAN_TARGET_OBJS.
11733         * configure.ac: Substitute fortran_target_objs, set FORTRAN_TARGET_OBJS.
11734         * configure: Regenerated.
11735
11736 2008-05-29  H.J. Lu  <hongjiu.lu@intel.com>
11737
11738         PR target/35771
11739         * config/i386/i386.c (ix86_function_arg_boundary): Convert to
11740         canonical type if needed.
11741
11742 2008-05-29  Eric Botcazou  <ebotcazou@adacore.com>
11743
11744         * tree-nested.c (check_for_nested_with_variably_modified): Fix typo.
11745
11746 2008-05-29  Richard Guenther  <rguenther@suse.de>
11747
11748         PR tree-optimization/36343
11749         PR tree-optimization/36346
11750         PR tree-optimization/36347
11751         * tree-flow.h (clobber_what_p_points_to): Declare.
11752         * tree-ssa-structalias.c (set_uids_in_ptset): Whether the
11753         pointed-to variable is dereferenced is irrelevant to whether
11754         the pointer can access the pointed-to variable.
11755         (clobber_what_p_points_to): New function.
11756         * tree-ssa-alias.c (set_initial_properties): Use it.
11757         * tree-ssa.c (verify_flow_sensitive_alias_info): Adjust
11758         call clobber check for NMTs.
11759
11760 2008-05-28  Seongbae Park  <seongbae.park@gmail.com>
11761
11762         * value-prof.c (tree_ic_transform): Use HOST_WIDEST_INT_PRINT_DEC
11763         for printing gcov_type.
11764
11765 2008-05-28  Seongbae Park  <seongbae.park@gmail.com>
11766
11767         * tree-ssa-propagate.c (set_rhs): Preserve the histogram
11768         and the eh region information.
11769         * value-prof.c (gimple_move_stmt_histograms): New function.
11770         * value-prof.h (gimple_move_stmt_histograms): New function declaration.
11771
11772 2008-05-28  Andreas Tobler  <a.tobler@schweiz.org>
11773
11774         * config/pa/pa.md: Remove extern frame_pointer_needed declaration.
11775
11776 2008-05-28  Seongbae Park <seongbae.park@gmail.com>
11777
11778         * value-prof.c (tree_ic_transform): Print counts.
11779         * tree-profile.c (tree_gen_ic_func_profiler):
11780         Clear __gcov_indreict_call_callee variable to avoid misattribution
11781         of the profile.
11782
11783 2008-05-28  Rafael Espíndola  <espindola@google.com>
11784
11785         * see.c (see_def_extension_not_merged): Use copy_rtx_if_shared to avoid
11786         invalid sharing.
11787
11788 2008-05-28  Richard Guenther  <rguenther@suse.de>
11789
11790         PR tree-optimization/36339
11791         * tree-ssa-alias.c (set_initial_properties): Move pt_anything
11792         and clobbering code out of the loop.
11793
11794 2008-05-28  Andreas Krebbel  <krebbel1@de.ibm.com>
11795
11796         * config/s390/constraints.md ('b', 'C', 'D', 'e'): New constraint
11797         letters defined.
11798
11799         * config/s390/s390.c (s390_compare_and_branch_condition_mask,
11800         s390_contiguous_bitmask_p, s390_symref_operand_p,
11801         s390_check_symref_alignment, s390_reload_larl_operand,
11802         s390_reload_symref_address): New functions.
11803         (s390_branch_condition_mnemonic): Support compare and branch
11804         instructions.
11805         (s390_mem_constraint): Avoid symrefs to accepted by the 'T'
11806         and 'W' constraints.
11807         (s390_secondary_reload): Add secondary reloads for unaligned
11808         symbol refs or symbol refs to floating point or QI/TI mode
11809         integer values.
11810         (legitimate_address_p): Accept symbol references as addresses.
11811         (s390_expand_insv): Use rotate and insert selected bits
11812         instruction for insv when building for z10.
11813         (print_operand_address): Handle symbol ref addresses.
11814         (print_operand): Output modifier 'c' added for signed byte values.
11815         (s390_encode_section_info): Mark symbol refs with
11816         SYMBOL_FLAG_NOT_NATURALLY_ALIGNED if appropriate.
11817
11818         * config/s390/s390.md (SIL,RRS,RIS): New instruction formats added.
11819         (length attribute): RRF, RRR have 4 byte length.
11820         (FPALL, INTALL): New mode iterators added.
11821         (*tstdi_sign, *cmpdi_ccs_sign, *cmpsi_ccs_sign,
11822         *cmp<mode>_ccs, *cmpdi_ccu_zero, *cmpdi_ccu, *cmpsi_ccu, *cmphi_ccu,
11823         *movdi_64, *movsi_zarch, *movhi, movmem<mode>, *movmem_short,
11824         *extendsidi2, *extendhidi2_extimm, *extendhisi2_extimm,
11825         *zero_extendsidi2, adddi3, *adddi3_31z, *adddi3_31, addsi3,
11826         *add<mode>3, *add<mode>3_carry1_cc, *add<mode>3_carry2_cc,
11827         *add<mode>3_cc, *add<mode>3_imm_cc, *muldi3_sign, muldi3,
11828         *mulsi3_sign, mulsi3, mulsidi3): Patterns enhanced with z10
11829         instructions.
11830         (*cmphi_ccs_z10, *cmpdi_ccs_signhi_rl, *cmpsi_ccu_zerohi_rlsi,
11831         *cmp<GPR:mode>_ccu_zerohi_rldi, *cmp_and_br_signed_<mode>,
11832         *cmp_and_br_unsigned_<mode>, reload<INTALL:mode><P:mode>_tomem_z10,
11833         reload<INTALL:mode><P:mode>_toreg_z10,
11834         reload<FPALL:mode><P:mode>_tomem_z10,
11835         reload<FPALL:mode><P:mode>_toreg_z10,
11836         reload<P:mode>_larl_odd_addend_z10, *execute_rl, *insv<mode>_z10,
11837         *insv<mode>_z10_noshift, *insv<mode>_or_z10_noshift,
11838         *zero_extendhi<mode>2_z10, *cmp_and_trap_signed_int<mode>,
11839         *cmp_and_trap_unsigned_int<mode>, prefetch): New pattern or expander
11840         definition.
11841         (movmem, clrmem, cmpmem): New splitters added.
11842
11843         * config/s390/predicates.md (larl_operand): Use
11844         SYMBOL_REF_FLAGS (op) & SYMBOL_FLAG_ALIGN1 replaced with
11845         SYMBOL_REF_ALIGN1_P.
11846         (s390_signed_integer_comparison,
11847         s390_unsigned_integer_comparison): New predicates.
11848
11849         * config/s390/s390-protos.h (s390_check_symref_alignment,
11850         s390_contiguous_bitmask_p, s390_reload_larl_operand,
11851         s390_reload_symref_address,
11852         s390_compare_and_branch_condition_mask): Prototypes added.
11853
11854         * config/s390/s390.h (TARGET_MEM_CONSTRAINT,
11855         SYMBOL_REF_ALIGN1_P, SYMBOL_FLAG_NOT_NATURALLY_ALIGNED,
11856         SYMBOL_REF_NOT_NATURALLY_ALIGNED_P): Macro definition added.
11857
11858 2008-05-28  Andreas Krebbel  <krebbel1@de.ibm.com>
11859
11860         * config/s390/s390.c (z10_cost): New cost function for z10.
11861         (s390_handle_arch_option, override_options): Support -march=z10 switch.
11862         (s390_issue_rate): Adjust issue rate for z10.
11863         * config/s390/s390.h (processor_type): Add PROCESSOR_2097_Z10.
11864         (processor_flags): Add PF_Z10.
11865         (TARGET_CPU_Z10, TARGET_Z10): New macro definitions.
11866         * config/s390/s390.md (cpu, cpu_facility attributes): Add z10.
11867         * gcc/config.gcc: Add z10.
11868
11869 2008-05-28  Richard Guenther  <rguenther@suse.de>
11870
11871         PR tree-optimization/36291
11872         * tree-flow. h (struct gimple_df): Remove var_anns member.
11873         * tree-flow-inline.h (gimple_var_anns): Remove.
11874         (var_ann): Simplify.
11875         * tree-dfa.c (create_var_ann): Simplify.
11876         (remove_referenced_var): Clear alias info from var_anns of globals.
11877         * tree-ssa.c (init_tree_ssa): Do not allocate var_anns.
11878         (delete_tree_ssa): Clear alias info from var_anns of globals.
11879         Do not free var_anns.
11880         (var_ann_eq): Remove.
11881         (var_ann_hash): Likewise.
11882
11883 2008-05-28  Mark Shinwell  <shinwell@codesourcery.com>
11884
11885         * config/mips/mips.c (mips_cpu_info_table): Add loongson2e
11886         and loongson2f entries.
11887         (mips_rtx_cost_data): Add entries for Loongson-2E/2F.
11888         * config/mips/mips.h (processor_type): Add Loongson-2E
11889         and Loongson-2F entries.
11890         (TARGET_LOONGSON_2E, TARGET_LOONGSON_2F, TARGET_LOONGSON_2EF): New.
11891         (MIPS_ISA_LEVEL_SPEC): Handle Loongson-2E/2F.
11892         * config/mips/mips.md (define_attr cpu): Add loongson2e and loongson2f.
11893         * doc/invoke.texi (MIPS Options): Document loongson2e
11894         and loongson2f processor names.
11895
11896 2008-05-27  H.J. Lu  <hongjiu.lu@intel.com>
11897
11898         PR target/35767
11899         PR target/35771
11900         * config/i386/i386.c (ix86_function_arg_boundary): Use
11901         alignment of canonical type.
11902         (ix86_expand_vector_move): Check unaligned memory access for
11903         all SSE modes.
11904
11905 2008-05-27  H.J. Lu  <hongjiu.lu@intel.com>
11906
11907         * dwarf2out.c (current_fde): Change return type to dw_fde_ref.
11908         Moved to the front of file.
11909
11910 2008-05-27  Xuepeng Guo  <xuepeng.guo@intel.com>
11911             H.J. Lu  <hongjiu.lu@intel.com>
11912
11913         * dwarf2out.c (current_fde): New.
11914         (add_cfi): Use it.
11915         (lookup_cfa:): Likewise.
11916         (dwarf2out_end_epilogue): Likewise.
11917         (dwarf2out_note_section_used): Likewise.
11918
11919 2008-05-27  Michael Matz  <matz@suse.de>
11920
11921         PR c++/27975
11922         * c.opt (Wenum-compare): New warning option.
11923         * doc/invoke.texi  (Warning Options): Document -Wenum-compare.
11924
11925 2008-05-27  Michael Matz  <matz@suse.de>
11926
11927         PR middle-end/36326
11928         * tree-gimple.c (is_gimple_mem_rhs): Remove work-around for
11929         non-BLKmode types.
11930         * tree-tailcall.c (find_tail_calls): Don't mark calls storing
11931         into memory as tail calls.
11932
11933 2008-05-27  Richard Guenther  <rguenther@suse.de>
11934
11935         PR tree-optimization/36339
11936         * tree-ssa-alias.c (set_initial_properties): Escaped pt_anything
11937         pointers cause all addressable variables to be call clobbered.
11938
11939 2008-05-27  Richard Guenther  <rguenther@suse.de>
11940
11941         PR tree-optimization/36245
11942         * tree-ssa-address.c (add_to_parts): Deal with non-pointer bases.
11943
11944 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
11945
11946         * config/s390/s390.md: Replace all occurences of the 'm'
11947         constraint with 'RT'.
11948
11949 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
11950
11951         * config/s390/s390.md ("cpu_facility", "enabled"): Attribute
11952         definitions added.
11953         ("*movdi_64dfp", "*movdi_64extimm", "*movdi_64"): Merged into
11954         "*movdi_64".
11955         ("*anddi3_extimm", "*anddi3"): Merged into "*anddi3".
11956         ("*iordi3_extimm", "*iordi3"): Merged into "*iordi3".
11957         ("*xordi3_extimm", "*xordi3"): Merged into "*xordi3".
11958
11959 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
11960
11961         * reload.c: (find_reloads): Skip alternatives according to the
11962         "enabled" attribute. Constify the constraint variable.
11963         * recog.c (get_attr_enabled): Add default implementation.
11964         (extract_insn): Set the alternative_enabled_p array
11965         in the recog_data struct.
11966         (preprocess_constraints, constrain_operands): Skip
11967         alternatives according to the "enabled" attribute
11968         * recog.h (struct recog_data): New field alternative_enabled_p.
11969         (skip_alternative): New inline function.
11970         * regclass.c: (record_operand_costs): Check the "enabled" attribute.
11971         (record_reg_classes): Skip alternative according to the
11972         "enabled" attribute.
11973
11974         * doc/md.texi: Add documention for the "enabled" attribute.
11975
11976 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
11977
11978         * defaults.h (TARGET_MEM_CONSTRAINT): New target macro added.
11979         * postreload.c (reload_cse_simplify_operands): Replace 'm'
11980         constraint with TARGET_MEM_CONSTRAINT.
11981         * recog.c (asm_operand_ok, preprocess_constraints,
11982         constrain_operands): Likewise.
11983         * regclass.c (record_reg_classes): Likewise.
11984         * reload.c (find_reloads, alternative_allows_const_pool_ref): Likewise.
11985         * reload1.c (maybe_fix_stack_asms): Likewise.
11986         * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
11987         * recog.h: Adjust comment.
11988         * genpreds.c (generic_constraint_letters): Remove 'm' constraint.
11989         * genoutput.c (note_constraint): Don't emit error for 'm' constraint.
11990         * doc/md.texi: Add a note to description of 'm' constraint.
11991         * doc/tm.texi: Document the new TARGET_MEM_CONSTRAINT macro.
11992
11993 2008-05-27  Eric Botcazou  <ebotcazou@adacore.com>
11994
11995         * tree-sra.c (sra_type_can_be_decomposed_p) <RECORD_TYPE>: Make sure
11996         that the bitfield is of integral type before testing its precision.
11997
11998 2008-05-27  Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
11999             Sa Liu  <saliu@de.ibm.com>
12000
12001         * config/spu/spu.c (spu_init_libfuncs): Add __multi3, __divti3,
12002         __modti3, __udivti3, __umodti3 and __udivmodti4.
12003         * config/spu/t-spu-elf (LIB2FUNCS_STATIC_EXTRA): Add files
12004         that implement TImode mul and div functions.
12005         * config/spu/multi3.c: New. Implement __multi3.
12006         * config/spu/divmodti4.c: New. Implement _udivmodti4 and others.
12007         * testsuite/gcc.target/spu/muldivti3.c: New. Test TImode mul and div
12008         functions on SPU.
12009
12010 2008-05-26  Steven Bosscher  <stevenb.gcc@gmail.com>
12011
12012         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Generate
12013         new tls_gd_* and tls_ld_* insns instead of an insn sequence.
12014         * config/rs6000/rs6000.md (TLSmode, tls_abi_suffix, tls_insn_suffix,
12015         tls_sysv_suffix): New mode and mode attribute iterators.
12016         (tls_gd_32, tls_gd_64, tls_ld_32, tls_ld_64): Remove.
12017         (lts_gd_aix*, tls_gd_sysv*, tls_ld_aix*, tls_ld_sysv*): New patterns.
12018         (tls_dtprel_*, tls_dtprel_ha_*, tls_dtprel_lo_*, tls_got_dtprel_*,
12019         tls_tprel_*, tls_tprel_ha_*, tls_tprel_lo_*, tls_got_tprel_*,
12020         tls_tls_*): Merge 32 bit and 64 bit variants using aforementioned
12021         iterators.
12022
12023 2008-05-26  Eric Botcazou  <ebotcazou@adacore.com>
12024
12025         PR tree-optimization/36329
12026         * tree.h (CALL_CANNOT_INLINE_P): Add access check.
12027         * tree-gimple.h (CALL_STMT_CANNOT_INLINE_P): New macro.
12028         * cgraphbuild.c (initialize_inline_failed): Use the latter
12029         macro in lieu of the former.
12030         * ipa-inline.c (cgraph_mark_inline): Likewise.
12031         (cgraph_decide_inlining_of_small_function): Likewise.
12032         (cgraph_decide_inlining): Likewise.
12033         (cgraph_decide_inlining_incrementally): Likewise.
12034
12035 2008-05-26  Tristan Gingold  <gingold@adacore.com>
12036             Anatoly Sokolov  <aesok@post.ru>
12037
12038         * config/avr/avr.md ("call_prologue_saves"): Use hi8(gs())/lo8(gs())
12039         instead of pm_lo8/pm_hi8 to makes this call working on avr6.
12040         * config/avr/avr.c (expand_prologue): Tune "call_prologue"
12041         optimization for 'avr6' architecture.
12042
12043 2008-05-26  Andy Hutchinson  <hutchinsonandy@aim.com>
12044
12045         PR target/34932
12046         * config/avr/avr.md (*addhi3_zero_extend2): Remove.
12047
12048 2008-05-26  Richard Guenther  <rguenther@suse.de>
12049
12050         * tree-ssa-sccvn.c (expr_has_constants): Declare.
12051         (visit_reference_op_load): Initialize VN_INFO->has_constants properly.
12052
12053 2008-05-26  H.J. Lu  <hongjiu.lu@intel.com>
12054
12055         PR middle-end/36253
12056         * caller-save.c (insert_restore): Verify alignment of spill space.
12057         (insert_save): Likewise.
12058         * cfgexpand.c (LOCAL_ALIGNMENT): Removed.
12059         * defaults.h (LOCAL_ALIGNMENT): New. Provide default.
12060         (STACK_SLOT_ALIGNMENT): Likewise.
12061         * function.c (LOCAL_ALIGNMENT): Removed.
12062         (get_stack_local_alignment): New.
12063         (assign_stack_local): Use it.  Set alignment on stack slot.
12064         (assign_stack_temp_for_type): Use get_stack_local_alignment.
12065         * config/i386/i386.h (LOCAL_ALIGNMENT): Updated.
12066         (STACK_SLOT_ALIGNMENT): New.
12067         * config/i386/i386.c (ix86_local_alignment): Handle caller-save
12068         stack slot in XFmode.
12069
12070         * doc/tm.texi (STACK_SLOT_ALIGNMENT): New.
12071
12072 2008-05-26  Kai Tietz  <kai.tietz@onevision.com>
12073
12074         PR/36321
12075         * config/i386/i386.md (allocate_stack_worker_64): Make sure
12076         argument operand in rax isn't removed.
12077
12078 2008-05-26  Richard Guenther  <rguenther@suse.de>
12079
12080         PR middle-end/36300
12081         * fold-const.c (extract_muldiv_1): Use TYPE_OVERFLOW_WRAPS,
12082         not TYPE_UNSIGNED.  Use TYPE_PRECISION instead of GET_MODE_SIZE.
12083
12084 2008-05-26  Daniel Franke  <franke.daniel@gmail.com>
12085
12086         PR bootstrap/36331
12087         * c-cppbuiltin.c (define__GNUC__): Re-add definition of __GNUG__.
12088
12089 2008-05-26  Dominique Dhumieres  <dominiq@lps.ens.fr>
12090
12091         * config/darwin-c.c: Include "incpath.h" instead of "c-incpath.h".
12092         * config/t-darwin: Use "incpath.h" instead of "c-incpath.h".
12093
12094 2008-05-25  Eric Botcazou  <ebotcazou@adacore.com>
12095
12096         * tree-nested.c (convert_tramp_reference) <ADDR_EXPR>: Do not
12097         build a trampoline if we don't want one.
12098         * varasm.c (initializer_constant_valid_p) <ADDR_EXPR>: Do not
12099         return zero for nested functions if we don't want a trampoline.
12100
12101 2008-05-26  Daniel Franke  <franke.daniel@gmail.com>
12102
12103         * doc/invoke.texi: Added f77, f77-cpp-input to list of file types.
12104
12105 2008-05-26  Daniel Franke  <franke.daniel@gmail.com>
12106
12107         PR fortran/18428
12108         * c.opt: Removed undocumented option '-lang-fortran'.
12109         * c-common.h: Removed global variable 'lang_fortran'.
12110         * c-opts.c (c_common_handle_option): Removed code to handle
12111         option '-lang-fortran'. Updated includes.
12112         * c-cppbuiltin.c (c_cpp_builtins): Removed conditional
12113         definition of '__GFORTRAN__'.
12114         (define__GNUC__): Reimplemented to use BASEVER and
12115         cpp_define_formatted.
12116         (builtin_define_with_value_n): Removed.
12117         * c-incpath.h: Renamed to ...
12118         * incpath.h: ... this.
12119         * c-incpath.c: Renamed to ...
12120         * incpath.c: ... this. Updated includes.
12121         * fix-header.c: Updated includes.
12122         * Makefile.in: Replaced c-incpath.[ch] by incpath.[ch].
12123         (c-cppbuiltin.o): Added dependency on and definition of BASEVER.
12124         (OBJ-archive): Added cppdefault.o, incpath.o and prefix.o.
12125
12126 2008-05-25  Eric Botcazou  <ebotcazou@adacore.com>
12127
12128         * tree.h: Update the table of flags used on tree nodes.
12129         (TREE_NO_TRAMPOLINE): New accessor for static_flag.
12130         (SAVE_EXPR_RESOLVED_P): Use automatically-built access check.
12131         (FORCED_LABEL): Add access check.
12132         (CALL_EXPR_RETURN_SLOT_OPT): Likewise.
12133         (ASM_INPUT_P): Likewise.
12134         (ASM_VOLATILE_P): Likewise.
12135         (EH_FILTER_MUST_NOT_THROW): Access static_flag directly.
12136         (OMP_SECTION_LAST): Access private_flag directly.
12137         (OMP_RETURN_NOWAIT): Likewise.
12138         (OMP_PARALLEL_COMBINED): Likewise.
12139         (OMP_CLAUSE_PRIVATE_DEBUG): Access public_flag directly.
12140         (OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE): Likewise.
12141         * tree-ssa-propagate.c (STMT_IN_SSA_EDGE_WORKLIST): Access
12142         deprecated_flag directly.
12143
12144 2008-05-25  H.J. Lu  <hongjiu.lu@intel.com>
12145
12146         * final.c (frame_pointer_needed): Removed.
12147         * flags.h (frame_pointer_needed): Likewise.
12148
12149         * function.h (rtl_data): Add frame_pointer_needed.
12150         (frame_pointer_needed): New.
12151
12152 2008-05-25  Arthur Loiret  <arthur.loiret@u-psud.fr>
12153
12154         * config.gcc (sh2[lbe]*-*-linux*): Allow target.
12155
12156 2008-05-25  Steven Bosscher  <stevenb.gcc@gmail.com>
12157
12158         * gcse.c (hash_scan_set): Do not pick up a REG_EQUAL value if
12159         SRC is a REG.
12160
12161 2008-05-25  Alan Modra  <amodra@bigpond.net.au>
12162
12163         * c-common.c (strip_array_types): Move function to..
12164         * tree.c: ..here.
12165         (get_inner_array_type): Delete.
12166         * c-common.h (strip_array_types): Move declaration to..
12167         * tree.h: ..here.
12168         (get_inner_array_type): Delete.
12169         * config/i386/i386.c (x86_field_alignment): Use strip_array_types.
12170         * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Likewise.
12171         * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
12172         * config/pa/pa.c (emit_move_sequence): Likewise.
12173
12174 2008-05-24  H.J. Lu  <hongjiu.lu@intel.com>
12175
12176         * config/i386/i386.md (*sse_prologue_save_insn): Set length
12177         attribute to 34.
12178
12179 2008-05-24  Andy Hutchinson  <hutchinsonandy@aim.com>
12180
12181         * function.c: Include target hook for nonlocal_goto frame value.
12182
12183 2008-05-24  Richard Guenther  <rguenther@suse.de>
12184
12185         * tree-dfa.c (refs_may_alias_p): Re-instantiate case that a scalar
12186         variable can be only accessed through a pointer or a union.
12187
12188 2008-05-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12189
12190         * builtins.c (fold_builtin_fpclassify): Fix spelling of FP_INFINITE.
12191         * doc/extend.texi: Likewise.
12192
12193 2008-05-23  DJ Delorie  <dj@redhat.com>
12194
12195         * config/m32c/jump.md (untyped_call): Add.
12196
12197         * config/m32c/m32c.c (m32c_return_addr_rtx): Change pointer type
12198         for A24 to PSImode.
12199         (m32c_address_cost): Detail costs for indirect offsets.
12200
12201 2008-05-23  Rafael Espíndola  <espindola@google.com>
12202
12203         * see.c (see_get_extension_data): Don't use SUBREG_REG to test
12204         if a node is a SUBREG.
12205         (see_analyze_one_def): Don't use SUBREG_REG to test if a node
12206         is a SUBREG.
12207
12208 2008-05-23  Paul Brook  <paul@codesourcery.com>
12209             Carlos O'Donell  <carlos@codesourcery.com>
12210
12211         * doc/extend.texi: Clarify use of __attribute__((naked)).
12212         * doc/tm.texi: Document TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS.
12213         * target.h (gcc_target): Add allocate_stack_slots_for_args.
12214         * function.c (use_register_for_decl): Use
12215         targetm.calls.allocate_stack_slots_for_args.
12216         * target-def.h (TARGET_CALLS): Add TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS.
12217         * config/arm/arm.c (arm_allocate_stack_slots_for_args): New function.
12218         (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Define.
12219
12220 2008-05-23  Eric Botcazou  <ebotcazou@adacore.com>
12221
12222         * expr.c (highest_pow2_factor) <BIT_AND_EXPR>: New case.
12223
12224 2008-05-23  Steven Munroe  <sjmunroe@us.ibm.com>
12225
12226         * config/rs6000/darwin-ldouble.c (fmsub): Eliminate the full
12227         PACK/UNPACK between FP_SUB_Q and FD_TRUNC so that the result
12228         is only rounded once.
12229
12230 2008-05-23  Richard Guenther  <rguenther@suse.de>
12231
12232         * tree-ssa-operands.c (mark_difference_for_renaming): Use bitmap_xor.
12233
12234 2008-05-23  Uros Bizjak  <ubizjak@gmail.com>
12235             Jakub Jelinek  <jakub@redhat.com>
12236
12237         PR target/36079
12238         * configure.ac: Handle --enable-cld.
12239         * configure: Regenerated.
12240         * config.gcc: Add USE_IX86_CLD to tm_defines for x86 targets.
12241         * config/i386/i386.h (struct machine_function): Add needs_cld field.
12242         (ix86_current_function_needs_cld): New define.
12243         * config/i386/i386.md (UNSPEC_CLD): New unspec volatile constant.
12244         (cld): New isns pattern.
12245         (strmov_singleop, rep_mov, strset_singleop, rep_stos, cmpstrnqi_nz_1,
12246         cmpstrnqi_1, strlenqi_1): Set ix86_current_function_needs_cld flag.
12247         * config/i386/i386.opt (mcld): New option.
12248         * config/i386/i386.c (ix86_expand_prologue): Emit cld insn if
12249         TARGET_CLD and ix86_current_function_needs_cld.
12250         (override_options): Use -mcld by default for 32-bit code if
12251         USE_IX86_CLD.
12252
12253         * doc/install.texi (Options specification): Document --enable-cld.
12254         * doc/invoke.texi (Machine Dependent Options)
12255         [i386 and x86-64 Options]: Add -mcld option.
12256         (Intel 386 and AMD x86-64 Options): Document -mcld option.
12257
12258 2008-05-23  Kai Tietz  <kai.tietz@onevison.com>
12259         * config/i386/i386.c (return_in_memory_32): Add ATTRIBUTE_UNUSED.
12260         (return_in_memory_64): Likewise.
12261         (return_in_memory_ms_64): Likewise.
12262
12263 2008-05-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12264
12265         * builtin-types.def (BT_FN_INT_INT_INT_INT_INT_INT_VAR): New.
12266         * builtins.c (fold_builtin_fpclassify): New.
12267         (fold_builtin_varargs): Handle BUILT_IN_FPCLASSIFY.
12268         * builtins.def (BUILT_IN_FPCLASSIFY): New.
12269         * c-common.c (handle_type_generic_attribute): Adjust to accept
12270         fixed arguments before an elipsis.
12271         (check_builtin_function_arguments): Handle BUILT_IN_FPCLASSIFY.
12272         * doc/extend.texi: Document __builtin_fpclassify.
12273
12274 2008-05-22  Aldy Hernandez  <aldyh@redhat.com>
12275
12276         * omp-low.c (gate_expand_omp_ssa): Remove.
12277         (pass_expand_omp_ssa): Remove.
12278         (gate_expand_omp): Do not check for flag_openmp_ssa.
12279         * common.opt (-fopenmp-ssa): Remove.
12280         * passes.c (init_optimization_passes): Remove pass_expand_omp_ssa.
12281
12282 2008-05-22  Kaz Kojima  <kkojima@gcc.gnu.org>
12283
12284         * config/sh/sh.opt (mfixed-range): New option.
12285         * config/sh/sh-protos.h (sh_fix_range): Declare.
12286         * config/sh/sh.c (sh_fix_range): New function.
12287         * config/sh/sh.h (sh_fixed_range_str): Declare.
12288         (OVERRIDE_OPTIONS): Call sh_fix_range if sh_fixed_range_str
12289         is not empty.
12290         * doc/invoke.texi (SH Options): Document -mfixed-range.
12291
12292 2008-05-22  Kai Tietz  <kai.tietz@onevision.com>
12293
12294         * config/i386/sol2-10.h (SUBTARGET_RETURN_IN_MEMORY): Undefine
12295         it before the redeclaration.
12296
12297 2008-05-22  Anatoly Sokolov <aesok@post.ru>
12298
12299         * config/avr/avr.c (get_sequence_length): Add new function.
12300         (expand_prologue, expand_epilogue): Remove duplicate code.
12301
12302 2008-05-22  Rafael Espíndola  <espindola@google.com>
12303
12304         * see.c (see_pre_insert_extensions): Use copy_rtx to avoid invalid rtx
12305         sharing.
12306
12307 2008-05-22  H.J. Lu  <hongjiu.lu@intel.com>
12308
12309         * defaults.h (UNITS_PER_SIMD_WORD): Add scalar mode as argument.
12310         * doc/tm.texi (UNITS_PER_SIMD_WORD): Likewise.
12311
12312         * tree-vect-analyze.c (vect_compute_data_ref_alignment): Replace
12313         UNITS_PER_SIMD_WORD with GET_MODE_SIZE (TYPE_MODE (vectype)).
12314         (vect_update_misalignment_for_peel): Likewise.
12315         (vector_alignment_reachable_p): Likewise.
12316         * tree-vect-transform.c (vectorizable_load): Likewise.
12317         * tree-vectorizer.c (vect_supportable_dr_alignment): Likewise.
12318         (get_vectype_for_scalar_type): Pass mode of scalar_type
12319         to UNITS_PER_SIMD_WORD.
12320
12321         * config/arm/arm.h (UNITS_PER_SIMD_WORD): Updated.
12322         * config/i386/i386.h (UNITS_PER_SIMD_WORD): Likewise.
12323         * config/mips/mips.h (UNITS_PER_SIMD_WORD): Likewise.
12324         * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Likewise.
12325         * config/sparc/sparc.h (UNITS_PER_SIMD_WORD): Likewise.
12326
12327 2008-05-22  Ira Rosen  <irar@il.ibm.com>
12328
12329         PR tree-optimization/36293
12330         * tree-vect-transform.c (vect_transform_strided_load): Don't check
12331         if the first load must be skipped because of a gap.
12332
12333 2008-05-22  Richard Guenther  <rguenther@suse.de>
12334
12335         * tree-dfa.c (refs_may_alias_p): Exit early if possible.  Handle
12336         more cases of offset disambiguation that is possible if
12337         strict-aliasing rules apply.
12338         * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use refs_may_alias_p
12339         for basic offset and type-based disambiguation.
12340
12341 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
12342
12343         * config/i386/i386.c (ix86_expand_vector_init_one_var): Use
12344         ix86_expand_vector_set on V16QImode for SSE4.1.
12345
12346 2008-05-21  Tom Tromey  <tromey@redhat.com>
12347
12348         * c.opt (Wimport): Mark as undocumented.
12349         * doc/invoke.texi (Option Summary): Don't mention -Wimport or
12350         -Wno-import.
12351         (Warning Options): Likewise.
12352         * doc/cppopts.texi: Don't mention -Wimport.
12353
12354 2008-05-21  Sebastian Pop  <sebastian.pop@amd.com>
12355
12356         PR tree-optimization/36287
12357         PR tree-optimization/36286
12358         * lambda-code.c (build_access_matrix): Do not use the loop->num
12359         for computing the number of induction variables: use the loop depth
12360         instead.
12361
12362 2008-05-21  Kai Tietz  <kai.tietz@onevision.com>
12363
12364         PR/36280
12365         * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Honor
12366         option -f(no-)leading-underscore.
12367
12368 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
12369
12370         * config/i386/i386.c (ix86_expand_vector_init_general): Use
12371         GET_MODE_NUNITS (mode).
12372
12373 2008-05-21  Peter Bergner  <bergner@vnet.ibm.com>
12374
12375         * doc/invoke.texi: Add cpu_type's 464 and 464fp.
12376         (-mmulhw): Add 464 to description.
12377         (-mdlmzb): Likewise.
12378         * config.gcc: Handle --with-cpu=464 and --with-cpu=464fp.
12379         * config/rs6000/rs6000.c (processor_target_table): Add 464 and
12380         464fp entries.
12381         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add 464 and 464fp support.
12382         * config/rs6000/t-fprules (MULTILIB_MATCHES_FLOAT): Include -mcpu=464.
12383         * config/rs6000/rs6000.md: Update comments for 464.
12384
12385 2008-05-21  Janis Johnson  <janis187@us.ibm.com>
12386
12387         * doc/sourcebuild.texi (Test Directives): Add dg-xfail-run-if.
12388
12389 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
12390
12391         * config/i386/sse.md (vec_extractv4sf): Removed.
12392         (vec_extractv2df): Likewise.
12393         (vec_extractv2di): Likewise.
12394         (vec_extractv4si): Likewise.
12395         (vec_extractv8hi): Likewise.
12396         (vec_extractv16qi): Likewise.
12397         (vec_extract<mode>): New.
12398
12399 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
12400
12401         * config/i386/sse.md (vec_setv4sf): Removed.
12402         (vec_setv2df): Likewise.
12403         (vec_setv2di): Likewise.
12404         (vec_setv4si): Likewise.
12405         (vec_setv8hi): Likewise.
12406         (vec_setv16qi): Likewise.
12407         (vec_set<mode>): New.
12408
12409 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
12410
12411         * config/i386/i386.c (ix86_expand_vector_init_general): Remove
12412         goto for vec_concat and vec_interleave.
12413
12414 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
12415
12416         * config/i386/sse.md (vec_initv4sf): Removed.
12417         (vec_initv2df): Likewise.
12418         (vec_initv2di): Likewise.
12419         (vec_initv4si): Likewise.
12420         (vec_initv8hi): Likewise.
12421         (vec_initv16qi): Likewise.
12422         (vec_init<mode>): New.
12423
12424 2008-05-21  Joseph Myers  <joseph@codesourcery.com>
12425
12426         * collect2.c (find_a_file): Use IS_ABSOLUTE_PATH.
12427
12428 2008-05-21  Tom Tromey  <tromey@redhat.com>
12429
12430         * ggc-zone.c (lookup_page_table_if_allocated): New function.
12431         (zone_find_object_offset): Likewise.
12432         (gt_ggc_m_S): Likewise.
12433         (highest_bit): Likewise.
12434         * ggc-page.c (gt_ggc_m_S): New function.
12435         * stringpool.c (string_stack): Remove.
12436         (init_stringpool): Update.
12437         (ggc_alloc_string): Use ggc_alloc.
12438         (maybe_delete_ident): New function.
12439         (ggc_purge_stringpool): Likewise.
12440         (gt_ggc_m_S): Remove.
12441         * ggc-common.c (ggc_protect_identifiers): New global.
12442         (ggc_mark_roots): Call ggc_purge_stringpool.  Use
12443         ggc_protect_identifiers.
12444         * ggc.h (ggc_protect_identifiers): Declare.
12445         (gt_ggc_m_S): Update.
12446         (ggc_purge_stringpool): Declare.
12447         * toplev.c (compile_file): Set and reset ggc_protect_identifiers.
12448         * gengtype.c (write_types_process_field) <TYPE_STRING>: Remove
12449         special case.
12450         (write_root): Cast gt_ggc_m_S to gt_pointer_walker.
12451
12452 2008-05-21  David S. Miller  <davem@davemloft.net>
12453
12454         * config.gcc (sparc-*-linux*): Always include sparc/t-linux in
12455         tmake_file.
12456
12457 2008-05-21  Eric Botcazou  <ebotcazou@adacore.com>
12458
12459         * cfgexpand.c (tree_expand_cfg): Zap the EH throw statement table
12460         once finished.
12461
12462 2008-05-20  David Daney  <ddaney@avtrex.com>
12463
12464         * config/mips/mips.md (UNSPEC_SYNC_NEW_OP_12,
12465         UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE_12): New define_constants.
12466         (UNSPEC_SYNC_EXCHANGE, UNSPEC_MEMORY_BARRIER, UNSPEC_SET_GOT_VERSION,
12467         UNSPEC_UPDATE_GOT_VERSION): Renumber.
12468         (optab, insn): Add 'plus' and 'minus' to define_code_attr.
12469         (atomic_hiqi_op): New define_code_iterator.
12470         (sync_compare_and_swap<mode>): Call mips_expand_atomic_qihi instead of
12471         mips_expand_compare_and_swap_12.
12472         (compare_and_swap_12): Use MIPS_COMPARE_AND_SWAP_12 instead of
12473         MIPS_COMPARE_AND_SWAP_12_0.  Pass argument to MIPS_COMPARE_AND_SWAP_12.
12474         (sync_<optab><mode>, sync_old_<optab><mode>,
12475         sync_new_<optab><mode>, sync_nand<mode>, sync_old_nand<mode>,
12476         sync_new_nand<mode>): New define_expands for HI and QI mode operands.
12477         (sync_<optab>_12, sync_old_<optab>_12, sync_new_<optab>_12,
12478         sync_nand_12, sync_old_nand_12, sync_new_nand_12): New insns.
12479         (sync_lock_test_and_set<mode>): New define_expand for HI and QI modes.
12480         (test_and_set_12): New insn.
12481         (sync_old_add<mode>, sync_new_add<mode>, sync_old_<optab><mode>,
12482         sync_new_<optab><mode>, sync_old_nand<mode>,
12483         sync_new_nand<mode>, sync_lock_test_and_set<mode>):  Add early
12484         clobber to operand 0 for SI and DI mode insns.
12485         * config/mips/mips-protos.h (mips_gen_fn_6, mips_gen_fn_5,
12486         mips_gen_fn_4): New typedefs.
12487         (mips_gen_fn_ptrs): Define new union type.
12488         (mips_expand_compare_and_swap_12): Remove declaration.
12489         (mips_expand_atomic_qihi): Declare function.
12490         * config/mips/mips.c (mips_expand_compare_and_swap_12): Rename to...
12491         (mips_expand_atomic_qihi): ... this.  Use new generator function
12492         parameter.
12493         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP_12): Add OPS parameter.
12494         (MIPS_COMPARE_AND_SWAP_12_0): Delete macro.
12495         (MIPS_COMPARE_AND_SWAP_12_ZERO_OP, MIPS_COMPARE_AND_SWAP_12_NONZERO_OP,
12496         MIPS_SYNC_OP_12, MIPS_SYNC_OP_12_NOT_NOP,
12497         MIPS_SYNC_OP_12_NOT_NOT, MIPS_SYNC_OLD_OP_12,
12498         MIPS_SYNC_OLD_OP_12_NOT_NOP, MIPS_SYNC_OLD_OP_12_NOT_NOP_REG,
12499         MIPS_SYNC_OLD_OP_12_NOT_NOT, MIPS_SYNC_OLD_OP_12_NOT_NOT_REG,
12500         MIPS_SYNC_NEW_OP_12, MIPS_SYNC_NEW_OP_12_NOT_NOP,
12501         MIPS_SYNC_NEW_OP_12_NOT_NOT, MIPS_SYNC_EXCHANGE_12,
12502         MIPS_SYNC_EXCHANGE_12_ZERO_OP, MIPS_SYNC_EXCHANGE_12_NONZERO_OP):
12503         New macros.
12504
12505 2008-05-20  H.J. Lu  <hongjiu.lu@intel.com>
12506
12507         * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Add
12508         the missing break.
12509
12510 2008-05-20  Anatoly Sokolov <aesok@post.ru>
12511
12512         * config/avr/avr.h (machine_function): Add 'is_OS_main' field.
12513         * config/avr/avr.c (avr_OS_main_function_p): Add new function.
12514         (avr_attribute_table): Add 'OS_main' function attribute.
12515         (avr_regs_to_save, expand_prologue, expand_epilogue): Handle
12516         functions with 'OS_main' attribute.
12517
12518 2008-05-20  Richard Guenther  <rguenther@suse.de>
12519
12520         PR tree-optimization/35204
12521         * tree-ssa-sccvn.c (extract_and_process_scc_for_name): New
12522         helper, split out from ...
12523         (DFS): ... here.  Make the DFS walk non-recursive.
12524
12525 2008-05-20  Sebastian Pop  <sebastian.pop@amd.com>
12526             Jan Sjodin  <jan.sjodin@amd.com>
12527
12528         PR tree-optimization/36181
12529         * tree-parloops.c (loop_has_vector_phi_nodes): New.
12530         (parallelize_loops): Don't parallelize when the loop has vector
12531         phi nodes.
12532
12533 2008-05-20  Jan Sjodin  <jan.sjodin@amd.com>
12534             Sebastian Pop  <sebastian.pop@amd.com>
12535
12536         * tree-loop-linear.c (gather_interchange_stats): Look in the access
12537         matrix, and never look at the tree representation of the memory
12538         accesses.
12539         (linear_transform_loops): Computes parameters and access matrices.
12540         * tree-data-ref.c (compute_data_dependences_for_loop): Returns false
12541         when fails.
12542         (access_matrix_get_index_for_parameter): New.
12543         * tree-data-ref.h (struct access_matrix): New.
12544         (AM_LOOP_NEST_NUM, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
12545         AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
12546         AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT,
12547         am_vector_index_for_loop): New.
12548         (struct data_reference): Add field access_matrix.
12549         (DR_ACCESS_MATRIX): New.
12550         (compute_data_dependences_for_loop): Update declaration.
12551         (lambda_collect_parameters, lambda_compute_access_matrices): Declared.
12552         * lambda.h (lambda_vector_vec_p): Declared.
12553         * lambda-code.c: Depend on pointer-set.h.
12554         (lambda_collect_parameters_from_af, lambda_collect_parameters,
12555         av_for_af_base, av_for_af, build_access_matrix,
12556         lambda_compute_access_matrices): New.
12557         * Makefile.in (lambda-code.o): Depend on pointer-set.h.
12558
12559 2008-05-20  Joseph Myers  <joseph@codesourcery.com>
12560
12561         * doc/install.texi2html: Generate gcc-vers.texi in $DESTDIR not
12562         $SOURCEDIR/include.
12563
12564 2008-05-20  Jan Sjodin  <jan.sjodin@amd.com>
12565             Sebastian Pop  <sebastian.pop@amd.com>
12566
12567         PR tree-optimization/36206
12568         * tree-scalar-evolution.c: Remove enum INSERT_SUPERLOOP_CHRECS,
12569         FOLD_CONVERSIONS.
12570         (instantiate_scev_1): Rename flags to fold_conversions.
12571         Do not check for INSERT_SUPERLOOP_CHRECS, keep SSA_NAMEs defined
12572         outeside instantiation_loop.
12573         * tree-chrec.h (evolution_function_is_affine_in_loop): New.
12574         (evolution_function_is_affine_or_constant_p): Removed.
12575         * tree-data-ref.c (dr_analyze_indices): Replace resolve_mixers with
12576         instantiate_scev.
12577         (analyze_siv_subscript): Pass in the loop nest number.
12578         Call evolution_function_is_affine_in_loop instead of
12579         evolution_function_is_affine_p.
12580         (analyze_overlapping_iterations): Pass in the loop nest number.
12581
12582 2008-05-20  Jan Sjodin  <jan.sjodin@amd.com>
12583             Sebastian Pop  <sebastian.pop@amd.com>
12584
12585         PR tree-optimization/36206
12586         * tree-chrec.h (chrec_fold_op): New.
12587         * tree-data-ref.c (initialize_matrix_A): Traverse NOP_EXPR, PLUS_EXPR,
12588         and other trees.
12589
12590 2008-05-20  Nathan Sidwell  <nathan@codesourcery.com>
12591
12592         * c-incpath.c (INO_T_EQ): Do not define on non-inode systems.
12593         (DIRS_EQ): New.
12594         (remove_duplicates): Do not set inode on non-inode systems.
12595         Use DIRS_EQ.
12596
12597 2008-05-20  Sandra Loosemore  <sandra@codesourcery.com>
12598
12599         * config.gcc (tm_file): Update comments about relative pathnames.
12600
12601 2008-05-20  Richard Guenther  <rguenther@suse.de>
12602
12603         * tree-ssa-reassoc.c (fini_reassoc): Use the statistics infrastructure.
12604         * tree-ssa-sccvn.c (process_scc): Likewise.
12605         * tree-ssa-sink.c (execute_sink_code): Likewise.
12606         * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
12607         * tree-vrp.c (process_assert_insertions): Likewise.
12608         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Likewise.
12609         (perform_tree_ssa_dce): Likewise.
12610         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Likewise.
12611         (dump_dominator_optimization_stats): Likewise.
12612         * tree-vectorizer.c (vectorize_loops): Likewise.
12613
12614 2008-05-20  Richard Guenther  <rguenther@suse.de>
12615
12616         * tree-vn.c (vn_lookup_with_vuses): Do not use the alias oracle.
12617
12618 2008-05-20  Kai Tietz  <kai.tietz@onevision.com>
12619
12620         * config/i386/i386-protos.h (ix86_return_in_memory): Removed.
12621         (ix86_i386elf_return_in_memory): Likewise.
12622         (ix86_i386interix_return_in_memory): Likewise.
12623         * config/i386/i386-interix.h (TARGET_RETURN_IN_MEMORY): Removed.
12624         (SUBTARGET_RETURN_IN_MEMORY): New.
12625         * config/i386/i386elf.h: Likewise.
12626         * config/i386/ptx4-i.h: Likewise.
12627         * config/i386/sol2-10.h: Likewise.
12628         * config/i386/sysv4.h: Likewise.
12629         * config/i386/vx-common.h: Likewise.
12630         * config/i386/i386.h (TARGET_RETURN_IN_MEMORY): Removed.
12631         * config/i386/i386.c (ix86_return_in_memory): Made static and
12632         make use of optional SUBTARGET_RETURN_IN_MEMORY macro.
12633         (ix86_i386elf_return_in_memory): Removed.
12634         (ix86_i386interix_return_in_memory): Removed.
12635         (TARGET_RETURN_IN_MEMORY): Declared within i386.c only.
12636         * target-def.h (TARGET_RETURN_IN_MEMORY): Remove protection #ifdef.
12637
12638 2008-05-20  Alexandre Oliva  <aoliva@redhat.com>
12639
12640         * cselib.c (cselib_record_sets): Use correct mode for IF_THEN_ELSE.
12641
12642 2008-05-19  Xinliang David Li  <davidxl@google.com>
12643
12644         * tree-ssa-dce.c: Revert patches of 2008-05-17 and 2008-05-18.
12645         * opts.c: Ditto.
12646         * common.opt: Ditto.
12647         * doc/invoke.texi: Ditto.
12648
12649 2008-05-19  Eric Botcazou  <ebotcazou@adacore.com>
12650
12651         * tree.c (substitute_in_expr) <tcc_vl_exp>: Fix thinko.
12652         (substitute_placeholder_in_expr) <tcc_vl_exp>: Minor tweak.
12653
12654 2008-05-19  H.J. Lu  <hongjiu.lu@intel.com>
12655
12656         * config/i386/i386.c (ix86_expand_vector_init_concat): Change
12657         sizes of operand array from 8/4 to 4/2.
12658         (ix86_expand_vector_init_general): Change size of operand array
12659         from 32 to 16.  Remove op0, op1 and half_mode.
12660
12661 2008-05-19  H.J. Lu  <hongjiu.lu@intel.com>
12662
12663         * config/i386/i386.c (ix86_expand_vector_init_concat): New.
12664         (ix86_expand_vector_init_interleave): Likewise.
12665         (ix86_expand_vector_init_general): Use them.  Assert
12666         word_mode == SImode when n_words == 4.
12667
12668 2008-05-19  Uros Bizjak  <ubizjak@gmail.com>
12669
12670         * config/i386/i386.c (ix86_secondary_reload): New static function.
12671         (TARGET_SECONDARY_RELOAD): New define.
12672         * config/i386/i386.h (SECONDARY_OUTPUT_RELOAD_CLASS): Remove.
12673         * config/i386/i386.md (reload_outqi): Remove.
12674
12675 2008-05-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12676
12677         PR middle-end/35509
12678         * builtins.c (mathfn_built_in_1): Renamed from mathfn_built_in.
12679         Add `implicit' parameter.  Handle BUILT_IN_SIGNBIT.
12680         (mathfn_built_in): Rewrite in terms of mathfn_built_in_1.
12681         (fold_builtin_classify): Handle BUILT_IN_ISINF_SIGN.
12682         (fold_builtin_1): Likewise.
12683         * builtins.def (BUILT_IN_ISINF_SIGN): New.
12684         c-common.c (check_builtin_function_arguments): Handle
12685         BUILT_IN_ISINF_SIGN.
12686         * doc/extend.texi: Document __builtin_isinf_sign.
12687         * fold-const.c (operand_equal_p): Handle COND_EXPR.
12688
12689 2008-05-18  Eric Botcazou  <ebotcazou@adacore.com>
12690
12691         * tree-ssa-dom.c (tree_ssa_dominator_optimize): If some blocks need
12692         EH cleanup at the end of the pass, search for those that have been
12693         turned into forwarder blocks and do the cleanup on their successor.
12694
12695 2008-05-18  Richard Guenther  <rguenther@suse.de>
12696
12697         * tree-cfg.c (verify_gimple_expr): Allow conversions from
12698         pointers to sizetype and vice versa.
12699
12700 2008-05-18 Xinliang David Li   <davidxl@google.com>
12701
12702         * gcc/tree-ssa-dce.c: Coding style fix.
12703         (check_pow): Documentation comment.
12704         (check_log): Documenation comment. Coding style fix.
12705         (is_unnecessary_except_errno_call): Ditto.
12706         (gen_conditions_for_pow): Ditto.
12707         (gen_conditions_for_log): Ditto.
12708         (gen_shrink_wrap_conditions): Ditto.
12709         (shrink_wrap_one_built_in_calls): Ditto.
12710         * gcc/doc/invoke.texi: Better documentation string.
12711         * ChangeLog: Fix wrong change log entries from
12712         May 17 checkin on function call DCE.
12713
12714 2008-05-17  Kaz Kojima  <kkojima@gcc.gnu.org>
12715
12716         * config/sh/sh.c (sh_output_mi_thunk): Update the use of init_flow.
12717
12718 2008-05-17  Kenneth Zadeck <zadeck@naturalbridge.com>
12719
12720         * doc/rtl.texi (RTL_CONST_CALL_P, RTL_PURE_CALL_P): Fixed typos.
12721         * df-problems.c (simulation routines): Fixed block comment to
12722         properly say how to add forwards scanning functions.
12723
12724 2008-05-17  Eric Botcazou  <ebotcazou@adacore.com>
12725
12726         * tree-inline.c (setup_one_parameter): Remove dead code.
12727
12728 2008-05-17  Eric Botcazou  <ebotcazou@adacore.com>
12729
12730         * fold-const.c (fold_unary) <CASE_CONVERT>: Fold the cast into
12731         a BIT_AND_EXPR only for an INTEGER_TYPE.
12732
12733 2008-05-17 Xinliang David Li   <davidxl@google.com>
12734
12735         * gcc/tree-ssa-dce.c (cond_dead_built_in_calls): New static variable.
12736         (check_pow, check_log, is_unnecessary_except_errno_call): New
12737         functions to check for eliminating math functions that are pure
12738         except for setting errno.
12739         (gen_conditions_for_pow, gen_conditionas_for_log): New functions to
12740         general condition expressions for shrink-wrapping pow/log calls.
12741         (gen_shrink_wrap_conditions): Ditto.
12742         (shrink_wrap_one_built_in_call): Ditto.
12743         (shrink_wrap_conditional_dead_built_in_calls): Ditto.
12744         (mark_operand_necessary): If debugging, output if OP is necessary.
12745         (eliminate_unnecessary_stmts): Eliminate pow, log calls that are
12746         unnecessary.
12747         * gcc/opts.c (decode_options): set flag_tree_builtin_dce to 1 when
12748         opt level >= 2.
12749         * gcc/common.opt: New user flag -ftree-builtin-dce.
12750         * gcc/doc/invoke.texi (-ftree-builtin-dce): New option.
12751
12752 2008-05-16  David S. Miller  <davem@davemloft.net>
12753
12754         * config/sparc/linux.h (NO_PROFILE_COUNTERS): Undef before overriding.
12755         * config/sparc/linux64.h (NO_PROFILE_COUNTERS): Likewise.
12756
12757 2008-05-16  Uros Bizjak  <ubizjak@gmail.com>
12758
12759         PR target/36246
12760         * config/i386/i386.h (SECONDARY_MEMORY_NEEDED_MODE): New define.
12761
12762 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
12763
12764         * ifcvt.c (dead_or_predicable): Rename
12765         df_simulate_one_insn_backwards to df_simulate_one_insn.
12766         * recog.c (peephole2_optimize): Ditto.
12767         * rtl-factoring.c (collect_pattern_seqs, clear_regs_live_in_seq):
12768         Ditto.
12769         * df.h: Rename df_simulate_one_insn_backwards to
12770         df_simulate_one_insn.  and delete df_simulate_one_insn_forwards.
12771         * df-problems.c (df_simulate_artificial_refs_at_top) Reversed
12772         scanning of defs and uses.
12773         (df_simulate_one_insn_backwards): Renamed to df_simulate_one_insn.
12774         (df_simulate_one_insn_forwards): Removed.
12775
12776 2008-05-16  Doug Kwan  <dougkwan@google.com>
12777
12778         * real.c (real_to_decimal, real_to_hexadecimal): Distinguish
12779         QNaN & SNaN.
12780         (real_from_string): Handle NaNs and Inf as approriate.
12781
12782 2008-05-16  Nathan Froyd  <froydnj@codesourcery.com>
12783
12784         * doc/gty.texi (Source Files Containing Type Information): Note
12785         that headers should appear first in the gtfiles list.
12786
12787 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
12788
12789         * tree.def (COND_EXEC): Properly documented this code.
12790
12791 2008-05-16  Diego Novillo  <dnovillo@google.com>
12792
12793         * dwarf2asm.c (dw2_assemble_integer): Clarify comment.
12794         * tree-nested.c (get_trampoline_type): Set DECL_CONTEXT for
12795         the new field.
12796
12797 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
12798
12799         * tree-ssa-dse (max_stmt_uid): Removed.
12800         (get_stmt_uid, dse_possible_dead_store_p, dse_optimize_stmt,
12801         tree_ssa_dse): Encapsulate all uses of stmt_ann->uid.
12802         * tree-ssa-sccvn.c (compare_ops, init_scc_vn): Ditto.
12803         * function.h (cfun.last_stmt_uid): New field.
12804         * tree-flow-inline.h (set_gimple_stmt_uid, gimple_stmt_uid,
12805         gimple_stmt_max_uid, set_gimple_stmt_max_uid, inc_gimple_stmt_max_uid):
12806         New functions.
12807         * tree-dfa.c (renumber_gimple_stmt_uids): New function.
12808         (create_stmt_ann): Initialize the ann->uid field.
12809         * tree-ssa-pre.c (compute_avail): Encapsulate the stmt_ann->uid
12810         with new calls.
12811         * tree-flow.h (renumber_gimple_stmt_uids): New function.
12812
12813 2008-05-16  Nathan Froyd  <froydnj@codesourcery.com>
12814
12815         * tree-flow.h (init_empty_tree_cfg_for_function): Declare.
12816         * tree-cfg.c (init_empty_tree_cfg_for_function): Define.
12817         (init_empty_tree_cfg): Call it.
12818
12819 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
12820
12821         * cfg.c (init_flow): Add argument THE_FUN.  Use it instead of cfun.
12822         Update all users.
12823
12824 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
12825
12826         * doc/invoke.text (-fdump-tree-*-verbose): New option.
12827         * tree-dump.c (dump_options): New verbose option.
12828         * tree-pretty-print.c (dump_phi_nodes, dump_generic_bb_buff):
12829         Add verbose dump.
12830         * tree-pass.h (TDF_VERBOSE): New dump flag.
12831         * print-tree.c (print_node): Added code to be able to print PHI_NODES.
12832         (tree-flow.h): Added include.
12833         * Makefile.in (print-tree.o):  Added TREE_FLOW_H.
12834
12835 2008-05-16  Bernd Schmidt  <bernd.schmidt@analog.com>
12836
12837         * config/bfin/bfin.c (bfin_discover_loops): Delete empty loops.
12838
12839         From Jie Zhang  <jie.zhang@analog.com>
12840         * config/bfin/t-bfin-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
12841         MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Remove mcpu=bf532-0.3,
12842         mcpu=bf561-none and mcpu=bf561-0.2.
12843         * config/bfin/t-bfin-uclinux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
12844         MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Likewise.
12845         * config/bfin/t-bfin-linux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
12846         MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Likewise.
12847         * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add BFIN_CPU_UNKNOWN.
12848         * config/bfin/elf.h (STARTFILE_SPEC): Use specific CRT for BF561.
12849         (LIB_SPEC): Use proper linker script for bf561.  Error if no mcpu
12850         option.
12851         * config/bfin/bfin.c (bfin_cpu_type): Set to BFIN_CPU_UNKNOWN.
12852         (cputype_selected): Remove.
12853         (bfin_handle_option): Don't use cputype_selected.
12854         (override_options): When no mcpu option, enable all workarounds.
12855         Don't use bfin_workarounds.
12856         * config/bfin/bfin.h (DRIVER_SELF_SPECS): Don't set default
12857         processor type.
12858         (DEFAULT_CPU_TYPE): Don't define.
12859
12860 2008-05-16  Richard Guenther  <rguenther@suse.de>
12861
12862         * tree-ssa-propagate.c (substitute_and_fold): Fix stmt walking
12863         on deletion of the last stmt.
12864
12865 2008-05-15  H.J. Lu  <hongjiu.lu@intel.com>
12866
12867         * config/i386/i386.c (ix86_expand_vector_init_general): Optimize
12868         V8HImode for SSE2 and V16QImode for SSE4.1.
12869
12870 2008-05-15  Kenneth Zadeck <zadeck@naturalbridge.com>
12871
12872         * cgraph.h (compute_inline_parameters): Made public.
12873         * tree-pass.h (ipa_opt_pass): Removed function_generate_summary,
12874         variable_generate_summary, function_write_summary,
12875         variable_write_summary, variable_read_summary.  Added generate_summary,
12876         write_summary, read_summary.
12877         * cgraphunit.c (cgraph_process_new_functions): Changed call from
12878         pass_ipa_inline.function_generate_summary, to
12879         compute_inline_parameters.
12880         * ipa-inline.c (compute_inline_parameters): Made public and added
12881         node parameter.
12882         (compute_inline_parameters_for_current): New function.
12883         (pass_inline_param): Now calls compute_inline_parameters_for_current.
12884         (inline_generate_summary): Removed parameter and made to loop over
12885         all cgraph nodes.
12886         (pass_ipa_inline): Updated for new IPA_PASS structure.
12887         * passes.c (execute_ipa_summary_passes): Now is called once per
12888         pass rather than once per node*pass.
12889
12890 2008-05-15  Anatoly Sokolov <aesok@post.ru>
12891
12892         * config/avr/avr.c (avr_base_arch_macro, avr_have_movw_lpmx_p,
12893         avr_have_mul_p, avr_asm_only_p): Remove variables.
12894         (avr_override_options): Remove initialization of removed variables.
12895         (avr_file_start):  Convert removed variables to fields of
12896         'struct base_arch_s *avr_current_arch'.
12897         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): (Ditto.).
12898         (AVR_HAVE_MUL): (Ditto.).
12899         (AVR_HAVE_MOVW): (Ditto.).
12900         (AVR_HAVE_LPMX): (Ditto.).
12901         (avr_base_arch_macro, avr_have_movw_lpmx_p, avr_have_mul_p,
12902         avr_asm_only_p): Remove declaration.
12903
12904 2008-05-15  Diego Novillo  <dnovillo@google.com>
12905
12906         * config/arm/arm.c (arm_return_in_memory): Fix return type.
12907         * config/arm/arm-protos.h (arm_return_in_memory): Likewise.
12908
12909 2008-05-15  Adam Nemet  <anemet@caviumnetworks.com>
12910
12911         PR middle-end/36194
12912         * combine.c (check_conversion): Rename back to check_promoted_subreg.
12913         Don't call record_truncated_value from here.
12914         (record_truncated_value): Turn it into a for_each_rtx callback.
12915         (record_truncated_values): New function.
12916         (combine_instructions): Call note_uses with record_truncated_values.
12917         Change name of check_conversion to check_promoted_subreg.
12918
12919 2008-05-15  Janis Johnson  <janis187@us.ibm.com>
12920
12921         * doc/sourcebuild.texi: Document support for torture tests.
12922
12923 2008-05-15  Uros Bizjak  <ubizjak@gmail.com>
12924
12925         * config/i386/sse.md (*vec_concatv2sf_sse4_1): Add "m" constraint
12926         to alternative 4 of operand 2.
12927
12928 2008-05-15  Richard Guenther  <rguenther@suse.de>
12929
12930         * tree-pass.h (current_pass): Declare.
12931         (get_pass_for_id): Likewise.
12932         * passes.c (passes_by_id, passes_by_id_size): New globals.
12933         (set_pass_for_id): New function.
12934         (get_pass_for_id): Likewise.
12935         (register_one_dump_file): Use set_pass_for_id to populate passes_by_id.
12936         (execute_function_todo): Flush per function statistics.
12937         * toplev.c (compile_file): Init statistics.
12938         (general_init): Do early statistics initialization.
12939         (finalize): Finish statistics.
12940         * statistics.h (statistics_early_init): Declare.
12941         (statistics_init): Likewise.
12942         (statistics_fini): Likewise.
12943         (statistics_fini_pass): Likewise.
12944         (statistics_counter_event): Likewise.
12945         (statistics_histogram_event): Likewise.
12946         * statistics.c: New file.
12947         * Makefile.in (OBJS-common): Add statistics.o.
12948         (statistics.o): Add dependencies.
12949         * doc/invoke.texi (-fdump-statistics): Document.
12950
12951         * tree-ssa-pre.c (compute_antic): Use statistics_histogram_event.
12952         (insert): Likewise.
12953         (execute_pre): Use statistics_counter_event.
12954         * tree-ssa-propagate.c (struct prop_stats_d): Add num_dce field.
12955         (substitute_and_fold): Increment it.  Use statistics_counter_event.
12956
12957 2008-05-15  Diego Novillo  <dnovillo@google.com>
12958
12959         http://gcc.gnu.org/ml/gcc-patches/2008-05/msg00893.html
12960
12961         * treestruct.def (TS_STRUCT_FIELD_TAG): Remove.
12962         * tree-ssa-alias.c (new_type_alias): Remove references to
12963         sub-variables from comment.
12964         * tree-ssa-operands.c (swap_tree_operands): Likewise.
12965
12966 2008-05-15  H.J. Lu  <hongjiu.lu@intel.com>
12967
12968         * config/i386/sse.md (*vec_concatv2sf_sse4_1): Set prefix_extra
12969         attribute to 1 only for insertps alternative.
12970
12971 2008-05-15  Bernd Schmidt  <bernd.schmidt@analog.com>
12972
12973         * config/bfin/bfin.md (loadbytes): New pattern.
12974         * config/bfin/bfin.c (enum bfin_builtins): Add BFIN_BUILTIN_LOADBYTES.
12975         (bfin_init_builtins): Initialize it.
12976         (bdesc_1arg): Add it.
12977
12978 2008-05-15  Sa Liu  <saliu@de.ibm.com>
12979
12980         * testsuite/gfortran.dg/c_kind_int128_test1.f03: New.
12981         * testsuite/gfortran.dg/c_kind_int128_test2.f03: New.
12982         * testsuite/lib/target-supports.exp: Add
12983         check_effective_target_fortran_integer_16.
12984
12985 2008-05-15  Bernd Schmidt  <bernd.schmidt@analog.com>
12986
12987         * config/bfin/bfin.h (TARGET_RETURN_IN_MEMORY): Don't define here.
12988         * config/bfin/bfin-protos.h (bfin_return_in_memory): Don't declare.
12989         * config/bfin/bfin.c (bfin_return_in_memory): Now static.  Return bool.
12990         (TARGET_RETURN_IN_MEMORY): Define.
12991
12992 2008-05-15  Richard Guenther  <rguenther@suse.de>
12993
12994         PR middle-end/36244
12995         * tree-ssa-alias.c (new_type_alias): Do not set TREE_READONLY.
12996         * tree-flow-inline.h (unmodifiable_var_p): Memory tags never
12997         represent unmodifiable vars.
12998
12999 2008-05-15  Richard Guenther  <rguenther@suse.de>
13000
13001         * tree-dfa.c (refs_may_alias_p): Allow all kinds of
13002         INDIRECT_REF and TARGET_MEM_REF.
13003         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
13004         TARGET_MEM_REF.
13005
13006 2008-05-15  Uros Bizjak  <ubizjak@gmail.com>
13007             H.J. Lu  <hongjiu.lu@intel.com>
13008
13009         * config/i386/sse.md (*vec_concatv2sf_sse4_1): New insn pattern.
13010         (*vec_concatv2si_sse4_1): Use vector_move_operand predicate
13011         for operand 2.  Remove pinsr{q,d} with 0x0 immediate operand from
13012         insn alternatives.  Add missing alternatives.
13013         (*vec_concatv2di_rex64_sse4_1): Likewise.
13014         (*vec_concatv2si_sse2): Use "x" register constraint instead of "Y2".
13015         (*vec_concatv2di_rex64_sse): Rename from *vec_concatv2di_rex64.
13016         Require TARGET_SSE.
13017
13018 2008-05-15  Richard Guenther  <rguenther@suse.de>
13019
13020         PR tree-optimization/36009
13021         PR tree-optimization/36204
13022         * tree-ssa-loop-im.c (tree-ssa-propagate.h): Include.
13023         (determine_invariantness_stmt): Record the loop a store is
13024         always executed in.
13025         * Makefile.in (tree-ssa-loop-im.o): Add tree-ssa-propagate.h
13026         dependency.
13027
13028 2008-05-15  Richard Guenther  <rguenther@suse.de>
13029
13030         PR tree-optimization/34330
13031         * tree-ssa-alias.c (get_smt_for): Only assert that accesses
13032         through the pointer will alias the SMT.
13033
13034 2008-05-14  Andreas Tobler  <a.tobler@schweiz.org>
13035
13036         * config/sparc/sparc.h (NO_PROFILE_COUNTERS): Define as 0.
13037
13038 2008-05-14  H.J. Lu  <hongjiu.lu@intel.com>
13039
13040         * config/i386/sse.md (*sse4_1_pinsrq): Make it 64bit only.
13041
13042 2008-05-14  Michael Meissner  <michael.meissner@amd.com>
13043             Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
13044
13045         * optabs.h (optab_index): Add OTI_vashl, OTI_vlshr, OTI_vashr,
13046         OTI_vrotl, OTI_vrotr to support vector/vector shifts.
13047         (vashl_optab): New optab for vector/vector shifts.
13048         (vashr_optab): Ditto.
13049         (vlshr_optab): Ditto.
13050         (vrotl_optab): Ditto.
13051         (vrotr_optab): Ditto.
13052         (optab_subtype): New enum for optab_for_tree_code call.
13053         (optab_for_tree_code): Add enum optab_subtype argument.
13054
13055         * optabs.c (optab_for_tree_code): Take an additional argument to
13056         distinguish between a vector shift by a scalar and vector shift by
13057         a vector.  Make lshr/ashr/ashl/rotl/rotr optabs just vector
13058         shifted by a scalar.  Use vlshr/vashr/vashl/vrotl/vrotr for the
13059         vector shift by a vector.
13060         (expand_widen_pattern_expr): Pass additional argument to
13061         optab_for_tree_code.
13062
13063         * genopinit.c (optabs): Add vashr_optab, vashl_optab, vlshr_optab,
13064         vrotl_optab, vrotr_optab.
13065
13066         * expr.c (expand_expr_real_1): Update calls to
13067         optab_for_tree_code to distinguish between vector shifted by a
13068         scalar and vector shifted by a vector.
13069         * tree-vectorizer.c (supportable_widening_operation): Ditto.
13070         (supportable_narrowing_operation): Ditto.
13071         * tree-vect-analyze.c (vect_build_slp_tree): Ditto.
13072         * tree-vect-patterns.c (vect_pattern_recog_1): Ditto.
13073         * tree-vect-transform.c (vect_model_reduction_cost): Ditto.
13074         (vect_create_epilog_for_reduction): Ditto.
13075         (vectorizable_reduction): Ditto.
13076         (vectorizable_operation): Ditto.
13077         (vect_strided_store_supported): Ditto.
13078         (vect_strided_load_supported): Ditto.
13079         * tree-vect-generic.c (expand_vector_operations_1): Ditto.
13080         * expmed.c (expand_shift): Ditto.
13081
13082         * doc/md.texi (ashl@var{m}3): Document that operand 2 is always a
13083         scalar type.
13084         (ashr@var{m}3): Ditto.
13085         (vashl@var{m}3): Document new vector/vector shift standard name.
13086         (vashr@var{m}3): Ditto.
13087         (vlshr@var{m}3): Ditto.
13088         (vrotl@var{m}3): Ditto.
13089         (vrotr@var{m}3): Ditto.
13090
13091         * config/i386/i386.md (PPERM_SRC): Move PPERM masks here from i386.c.
13092         (PPERM_INVERT): Ditto.
13093         (PPERM_REVERSE): Ditto.
13094         (PPERM_REV_INV): Ditto.
13095         (PPERM_ZERO): Ditto.
13096         (PPERM_ONES): Ditto.
13097         (PPERM_SIGN): Ditto.
13098         (PPERM_INV_SIGN): Ditto.
13099         (PPERM_SRC1): Ditto.
13100         (PPERM_SRC2): Ditto.
13101
13102         * config/i386/sse.md (mulv2di3): Add SSE5 support.
13103         (sse5_pmacsdql_mem): New SSE5 define_and_split that temporarily
13104         allows a memory operand to be the value being added, and split it
13105         to improve vectorization.
13106         (sse5_pmacsdqh_mem): Ditto.
13107         (sse5_mulv2div2di3_low): SSE5 32-bit multiply and extend function.
13108         (sse5_mulv2div2di3_high): Ditto.
13109         (vec_pack_trunc_v8hi): Add SSE5 pperm support.
13110         (vec_pack_trunc_v4si): Ditto.
13111         (vec_pack_trunc_v2di): Ditto.
13112         (sse5_pcmov_<mode>): Remove code that tried to use use
13113         andps/andnps instead of pcmov.
13114         (vec_widen_smult_hi_v4si): If we have SSE5, use the pmacsdql and
13115         pmacsdqh instructions.
13116         (vec_widen_smult_lo_v4si): Ditto.
13117
13118         * config/i386/i386.c (PPERM_SRC): Move PPERM masks to i386.md.
13119         (PPERM_INVERT): Ditto.
13120         (PPERM_REVERSE): Ditto.
13121         (PPERM_REV_INV): Ditto.
13122         (PPERM_ZERO): Ditto.
13123         (PPERM_ONES): Ditto.
13124         (PPERM_SIGN): Ditto.
13125         (PPERM_INV_SIGN): Ditto.
13126         (PPERM_SRC1): Ditto.
13127         (PPERM_SRC2): Ditto.
13128         (ix86_expand_sse_movcc): Move the SSE5 test after the if
13129         true/false tests.
13130         (ix86_expand_int_vcond): If SSE5 generate all possible integer
13131         comparisons.
13132         (ix86_sse5_valid_op_p): Allow num_memory to be negative, which
13133         says ignore whether the last reference is a memory operand.
13134
13135 2008-05-14  Michael Meissner  <michael.meissner@amd.com>
13136             Paolo Bonzini <bonzini at gnu dot org>
13137
13138         * config/rs6000/rs6000.c (bdesc_2arg): Change the names of vector
13139         shift patterns.
13140
13141         * config/rs6000/altivec.md (vashl<mode>3): Rename from ashl<mode>3.
13142         (vlshr<mode>3): Rename from vlshr<mode>3.
13143         (vashr<mode>3): Rename from vashr<mode>3.
13144         (mulv4sf3): Change the names of vector shift patterns.
13145         (mulv4si3): Ditto.
13146         (negv4sf2): Ditt.
13147
13148         * config/spu/spu.c (spu_initialize_trampoline): Rename vector
13149         shift insns.
13150
13151         * config/spu/spu-builtins.def (SI_SHLH): Rename vector shift insns.
13152         (SI_SHLHI): Ditto.
13153         (SI_SHL): Ditto.
13154         (SI_SHLI): Ditto.
13155         (SI_ROTH): Ditto.
13156         (SI_ROTHI): Ditto.
13157         (SI_ROT): Ditto.
13158         (SI_ROTI): Ditto.
13159         (SPU_RL_0): Ditto.
13160         (SPU_RL_1): Ditto.
13161         (SPU_RL_2): Ditto.
13162         (SPU_RL_3): Ditto.
13163         (SPU_RL_4): Ditto.
13164         (SPU_RL_5): Ditto.
13165         (SPU_RL_6): Ditto.
13166         (SPU_RL_7): Ditto.
13167         (SPU_SL_0): Ditto.
13168         (SPU_SL_1): Ditto.
13169         (SPU_SL_2): Ditto.
13170         (SPU_SL_3): Ditto.
13171         (SPU_SL_4): Ditto.
13172         (SPU_SL_5): Ditto.
13173         (SPU_SL_6): Ditto.
13174         (SPU_SL_7): Ditto.
13175
13176         * config/spu/spu.md (v): New iterator macro to add v for vector types.
13177         (floatunssidf2_internal): Change vector/vector shift names.
13178         (floatunsdidf2_internal): Ditto.
13179         (mulv8hi3): Ditto.
13180         (ashrdi3): Ditto.
13181         (ashrti3): Ditto.
13182         (cgt_df): Ditto.
13183         (cgt_v2df): Ditto.
13184         (dftsv): Ditto.
13185         (vashl<mode>3): Rename from ashl<mode>3.
13186         (vashr<mode>3): Rename from ashr<mode>3.
13187         (vlshr<mode>3): Rename from lshr<mode>3.
13188         (vrotl<mode>3): Rename from rotl<mode>3.
13189
13190 2008-05-14  Michael Meissner  <michael.meissner@amd.com>
13191
13192         PR target/36224
13193         * config/i386/sse.md (vec_widen_smult_hi_v4si): Delete, using unsigned
13194         multiply gives the wrong value when doing widening multiplies.
13195         (vec_widen_smult_lo_v4si): Ditto.
13196
13197 2008-05-14  Kenneth Zadeck <zadeck@naturalbridge.com>
13198
13199         * optabs.c (prepare_cmp_insn): Changed LCT_PURE_MAKE_BLOCK to
13200         LCT_PURE and LCT_CONST_MAKE_BLOCK to LCT_CONST in calls to
13201         emit_library_call_value.
13202         * builtins.c (expand_builtin_powi, expand_builtin_memcmp): Ditto.
13203         * tree.h (ECF_LIBCALL_BLOCK): Removed.
13204         * calls.c (initialize_argument_information, precompute_arguments,
13205         expand_call, emit_library_call_value_1): Remove ECF_LIBCALL_BLOCK.
13206         (precompute_arguments): Removed flags parameter.
13207         * rtl.h (LCT_CONST_MAKE_BLOCK, LCT_PURE_MAKE_BLOCK): Removed.
13208
13209 2008-05-14  Richard Guenther  <rguenther@suse.de>
13210
13211         * tree-ssa-dse.c (dse_possible_dead_store_p): Remove dead code.
13212         Make sure to register the store if the use is a PHI_NODE.
13213
13214 2008-05-14  Olivier Hainque  <hainque@adacore.com>
13215
13216         * expr.c (expand_expr_real_1) <normal_inner_ref>: Force op0 to
13217         memory if the component is to be referenced in BLKmode according
13218         to get_inner_reference.
13219
13220 2008-05-14  Adam Nemet  <anemet@caviumnetworks.com>
13221
13222         * calls.c (emit_library_call_value_1): Restore code clearing
13223         ECF_LIBCALL_BLOCK to ensure that we only call end_sequence once.
13224
13225 2008-05-14  Olivier Hainque  <hainque@adacore.com>
13226             Nicolas Roche  <roche@adacore.com>
13227
13228         * configure.ac: Add support for a "gcc_subdir" variable in
13229         config-lang.in, to denote a subdirectory where the language/GCC
13230         integration files are to be found.
13231         * configure: Regenerate.
13232
13233 2008-05-14  Ira Rosen  <irar@il.ibm.com>
13234
13235         PR tree-optimization/36098
13236         * tree-vect-analyze.c (vect_analyze_group_access): Set the gap
13237         value for the first load in the group in case of a gap.
13238         (vect_build_slp_tree): Check that there are no gaps in loads.
13239
13240 2008-05-14  Kenneth Zadeck <zadeck@naturalbridge.com>
13241
13242         * doc/rtl.texi: Removed reference to REG_NO_CONFLICT notes.
13243         * optabs.c (expand_binop, expand_absneg_bit, expand_unop,
13244         expand_copysign_bit, ): Change call to emit_no_conflict_block to
13245         emit_insn and remove unneeded code to construct extra args.
13246         (emit_no_conflict_block): Removed.
13247         * optabls.h: (emit_no_conflict_block): Removed.
13248         * cse.c (cse_extended_basic_block): Remove search for
13249         REG_NO_CONFLICT note.
13250         * global.c: Removed incorrect comment added in revision 117.
13251         * expr.c (convert_move): Change call to emit_no_conflict_block to
13252         emit_insn.
13253         * recog.c: Change comments so that they do not mention
13254         REG_NO_CONFLICT.
13255         * local_alloc.c (combine_regs): Removed last parameter.
13256         (no_conflict_p): Removed.
13257         (block_alloc): Removed note, no_conflict_combined_regno and set
13258         local vars. Removed all code to process REG_NO_CONFLICT blocks.
13259         (combine_regs): Removed already_dead and code to look for
13260         REG_NO_CONFLICT notes.
13261         * lower_subreg (remove_retval_note): Removed code to look for
13262         REG_NO_CONFLICT block.
13263         (resolve_reg_notes): Removed REG_NO_CONFLICT case.
13264         (resolve_clobber): Remove code to process libcalls that have
13265         REG_NO_CONFLICT notes.
13266         * loop_invariant.c (find_invariant_insn): Removed REG_NO_CONFLICT
13267         case.
13268         * combine.c (can_combine_p, distribute_notes):  Removed
13269         REG_NO_CONFLICT case.
13270         * config/cris/cris.md (movdi pattern): Changed emit_no_conflict_block
13271         to emit_insns.
13272         * config/mn10300/mn10300.md (absdf2, negdf2 patterns): Ditto.
13273         * config/m68k/m68k.md (negdf2, negxf2, absdf2, absxf2 patterns):
13274         Ditto.
13275         * reg-notes.def (NO_CONFLICT): Removed.
13276
13277 2008-05-14  David S. Miller  <davem@davemloft.net>
13278
13279         * config/sparc/sparc.c (sparc_profile_hook): If
13280         NO_PROFILE_COUNTERS, don't generate and pass a label into mcount.
13281         * config/sparc/linux.h (NO_PROFILE_COUNTERS): Define as 1.
13282         * config/sparc/linux64.h (NO_PROFILE_COUNTERS): Likewise.
13283
13284 2008-05-14  Andreas Krebbel  <krebbel1@de.ibm.com>
13285
13286         * cse.c (cse_cc_succs): Invoke delete_insn_and_edges.
13287
13288 2008-05-13  Uros Bizjak  <ubizjak@gmail.com>
13289
13290         PR target/36222
13291         * config/i386/i386.c (ix86_expand_vector_init_general): Rearrange op0
13292         and op1 expansion before vector concat to have less live pseudos.
13293
13294 2008-05-13  H.J. Lu  <hongjiu.lu@intel.com>
13295
13296         * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Use
13297         ix86_expand_vector_set if supported.
13298
13299 2008-05-13  Diego Novillo  <dnovillo@google.com>
13300             Kenneth Zadeck  <zadeck@naturalbridge.com>
13301
13302         http://gcc.gnu.org/ml/gcc-patches/2008-05/msg00748.html
13303
13304         * tree.h (init_phinodes, fini_phinodes, release_phi_node,
13305         phinodes_print_statistics, init_ssanames, fini_ssanames,
13306         make_ssa_name, duplicate_ssa_name, duplicate_ssa_name_ptr_info,
13307         release_ssa_name, release_defs, replace_ssa_name_symbol,
13308         ssanames_print_statistics): Move ...
13309         * tree-flow.h: ... here.
13310         * tree-ssanames.c (init_ssanames): Add arguments FN and SIZE.
13311         Use FN instead of cfun.
13312         (make_ssa_name_fn): Rename from make_ssa_name.
13313         (pass_release_ssa_names): Add TODO_dump_func to finish flags.
13314         * tree-flow-inline.h (make_ssa_name): Move from
13315         tree-ssanames.c.  Convert to static inline.  Call make_ssa_name_fn.
13316         * omp-low.c (expand_omp_parallel):
13317         * tree-flow-inline.h (redirect_edge_var_map_result):
13318         * tree-ssa.c (init_tree_ssa): Add argument FN.
13319         Use it instead of cfun.  Update all users.
13320
13321 2008-05-13  Tom Tromey  <tromey@redhat.com>
13322
13323         PR preprocessor/22168:
13324         * doc/cpp.texi (Top): Update menu.
13325         (Alternatives to Wrapper #ifndef): New node.
13326         (Other Directives): Document deprecation.
13327         (Obsolete Features): Remove menu.
13328         (Assertions): Merge node into Obsolete Features.
13329         (Obsolete once-only headers): Move earlier; rename to Alternatives
13330         to Wrapper #ifndef.
13331         * doc/cppopts.texi: Update.
13332         * c.opt (Wdeprecated): Enable for C and ObjC.
13333         * doc/invoke.texi (Option Summary): Move -Wno-deprecated.
13334         (C++ Dialect Options): Move -Wno-deprecated from here to...
13335         (Warning Options): ... here.
13336
13337 2008-05-13  Richard Guenther  <rguenther@suse.de>
13338
13339         PR middle-end/36227
13340         * fold-const.c (fold_sign_changed_comparison): Do not allow
13341         changes in pointer-ness.
13342
13343 2008-05-12  Kaz Kojima  <kkojima@gcc.gnu.org>
13344
13345         PR target/24713
13346         * config/sh/sh.c (sh_expand_prologue): Don't clear
13347         RTX_FRAME_RELATED_P for push insns.
13348
13349 2008-05-12  Andy Hutchinson  <hutchinsonandy@aim.com>
13350
13351         * config/avr/avr.h (MAX_OFILE_ALIGNMENT): Define.
13352
13353 2008-05-12  Anatoly Sokolov <aesok@post.ru>
13354
13355         * config/avr/avr.h (machine_function): Add 'is_leaf' field.
13356         * config/avr/avr.c (avr_regs_to_save): Compute 'machine->is_leaf'.
13357         Use 'machine->is_leaf' instead of 'leaf_func_p'.
13358
13359 2008-05-12  H.J. Lu  <hongjiu.lu@intel.com>
13360
13361         * config/i386/sse.md (*sse_concatv4sf): Renamed to ...
13362         (*vec_concatv4sf_sse): This.
13363         (*sse2_concatv2si): Renamed to ...
13364         (*vec_concatv2si_sse2): This.
13365         (*sse1_concatv2si): Renamed to ...
13366         (*vec_concatv2si_sse): This.
13367         (*vec_concatv2di_rex): Renamed to ...
13368         (*vec_concatv2di_rex64): This.
13369         (*vec_concatv2si_sse4_1): New.
13370         (*vec_concatv2di_rex64_sse4_1): Likewise.
13371
13372 2008-05-12  Uros Bizjak  <ubizjak@gmail.com>
13373
13374         PR rtl-optimization/36111
13375         * recog.c (validate_replace_rtx_1): Unshare new RTL expression
13376         that was created for swappable operands.
13377
13378 2008-05-12  Samuel Tardieu  <sam@rfc1149.net>
13379
13380         PR ada/36001
13381         * Makefile.in: Substitute GNATMAKE and GNATBIND.
13382         * configure.ac: Add call to ACX_PROG_GNAT.
13383
13384 2008-05-11  Volker Reichelt  <v.reichelt@netcologne.de>
13385
13386         * optc-gen.awk: Fix comment typo.
13387
13388 2008-05-11  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
13389
13390         * pretty-print.c (pp_integer_with_precision): Use
13391         HOST_LONG_LONG_FORMAT.
13392
13393 2008-05-10  Kenneth Zadeck  <zadeck@naturalbridge.com>
13394
13395         * gcse.c (store_killed_in_insn): Negated call to RTL_CONST_CALL_P.
13396
13397 2008-05-10  H.J. Lu  <hongjiu.lu@intel.com>
13398
13399         * config/i386/i386.c (bdesc_ptest): Removed.
13400         (ix86_builtin_type): Add INT_FTYPE_V2DI_V2DI_PTEST.
13401         (bdesc_args): Add __builtin_ia32_ptestz128,
13402         __builtin_ia32_ptestc128 and __builtin_ia32_ptestnzc128.
13403         (ix86_init_mmx_sse_builtins): Updated.
13404         (ix86_expand_args_builtin): Handle INT_FTYPE_V2DI_V2DI_PTEST.
13405         (ix86_expand_builtin): Updated.
13406
13407 2008-05-10  Richard Sandiford  <rdsandiford@googlemail.com>
13408
13409         * tree-cfg.c (valid_fixed_convert_types_p): New function.
13410         (verify_gimple_expr): Handle FIXED_CONVERT_EXPR.
13411
13412 2008-05-10  Uros Bizjak  <ubizjak@gmail.com>
13413
13414         * value-prof.c (interesting_stringop_to_profile): Do not
13415         return early for BUILT_IN_MEMPCPY.
13416
13417 2008-05-09  H.J. Lu  <hongjiu.lu@intel.com>
13418
13419         * calls.c (expand_call): Don't use callgraph to increase
13420         preferred_stack_boundary.
13421
13422         * cgraph.h (cgraph_rtl_info): Use unsigned on
13423         preferred_incoming_stack_boundary.
13424
13425         * final.c (rest_of_clean_state): Use unsigned on
13426         preferred_stack_boundary.
13427
13428 2008-05-09  Tom Tromey  <tromey@redhat.com>
13429
13430         PR preprocessor/22231:
13431         * c-opts.c (sanitize_cpp_opts): Disallow -MG if compilation is
13432         proceeding.
13433
13434 2008-05-09  Uros Bizjak  <ubizjak@gmail.com>
13435
13436         PR tree-optimization/36129
13437         * tree-ssa-ccp.c: Include value-prof.h.
13438         (execute_fold_all_builtins): Call gimple_remove_stmt_histograms if
13439         built-in function was folded to a constant.
13440         * Makefile.in (tree-ssa-ccp.c): Depend on value-prof.h
13441
13442 2008-05-09  Jan Sjodin  <jan.sjodin@amd.com>
13443             Sebastian Pop  <sebastian.pop@amd.com>
13444
13445         * tree-scalar-evolution.c: Document instantiate_scev.
13446         (instantiate_parameters_1): Renamed instantiate_scev_1.
13447         Don't use the same loop for instantiation_loop and evolution_loop.
13448         (instantiate_scev): New.
13449         (instantiate_parameters): Moved...
13450         (resolve_mixers): Update call to instantiate_scev_1 to pass the
13451         same loop twice.  Maintains the semantics for this function.
13452         * tree-scalar-evolution.h (instantiate_scev): Declare.
13453         (instantiate_parameters): ...here.  Now static inline.
13454         * tree-data-ref.c (dr_analyze_indices): Call instantiate_scev
13455         instead of resolve_mixers.
13456
13457 2008-05-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
13458
13459         * rtl-factoring.c (collect_pattern_seqs): Fix typo.
13460
13461 2008-05-09  Tomas Bily  <tbily@suse.cz>
13462
13463         * config/pa/pa.c (reloc_needed): Use CASE_CONVERT.
13464         * tree-cfg.c (verify_expr, verify_gimple_expr): Likewise.
13465         * tree-ssa-structalias.c (get_constraint_for): Likewise.
13466         * c-common.c (c_common_truthvalue_conversion): Likewise.
13467         * tree-object-size.c (compute_object_offset): Likewise.
13468         * tree-inline.c (estimate_num_insns_1): Likewise.
13469         * varasm.c (const_hash_1, compare_constant, copy_constant)
13470         (compute_reloc_for_constant, output_addressed_constants)
13471         (initializer_constant_valid_p): Likewise.
13472         * c-omp.c (check_omp_for_incr_expr): Likewise.
13473         * gimplify.c (gimplify_expr): Likewise.
13474         * c-typeck.c (c_finish_return): Likewise.
13475         * tree-vectorizer.c (supportable_widening_operation)
13476         (supportable_narrowing_operation): Likewise.
13477         * c-pretty-print.c (pp_c_cast_expression, pp_c_expression): Likewise.
13478         * matrix-reorg.c (can_calculate_expr_before_stmt): Likewise.
13479         * expr.c (highest_pow2_factor, expand_expr_real_1): Likewise.
13480         * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info)
13481         (descr_info_loc): Likewise.
13482         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
13483         * fold-const.c (operand_equal_p, make_range, extract_muldiv_1)
13484         (fold_unary): Likewise.
13485         * builtins.c (get_pointer_alignment): Likewise.
13486         * tree-scalar-evolution.c (interpret_rhs_modify_stmt)
13487         (instantiate_parameters_1): Likewise.
13488         * tree.c (expr_align, stabilize_reference): Likewise.
13489         * tree-pretty-print.c (dump_generic_node, op_prio): Likewise.
13490         * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
13491         * convert.c (strip_float_extensions): Use CONVERT_EXPR_P.
13492         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
13493         * config/alpha/alpha.c (va_list_skip_additions): Likewise.
13494         * c-common.c (c_alignof_expr, check_function_arguments_recurse):
13495         Likewise.
13496         * tree-ssa.c (tree_ssa_useless_type_conversion): Likewise.
13497         * varasm.c (initializer_constant_valid_p, output_constant): Likewise.
13498         * tree-ssa-forwprop.c (get_prop_source_stmt, can_propagate_from)
13499         (forward_propagate_addr_expr_1, forward_propagate_addr_expr)
13500         (forward_propagate_comparison)
13501         (tree_ssa_forward_propagate_single_use_vars): Likewise.
13502         * cfgexpand.c (discover_nonconstant_array_refs_r): Likewise.
13503         * emit-rtl.c (component_ref_for_mem_expr)
13504         (set_mem_attributes_minus_bitpos): Likewise.
13505         * tree-ssa-phiopt.c (conditional_replacement): Likewise.
13506         * gimplify.c (gimplify_conversion, goa_lhs_expr_p, gimplify_expr):
13507         Likewise.
13508         * c-typeck.c (default_function_array_conversion, build_indirect_ref)
13509         (build_function_call, pointer_diff, build_compound_expr)
13510         (c_finish_return): Likewise.
13511         * tree-vect-analyze.c (vect_determine_vectorization_factor): Likewise.
13512         * matrix-reorg.c (get_inner_of_cast_expr, may_flatten_matrices_1):
13513         Likewise.
13514         * tree-ssa-ifcombine.c (recognize_single_bit_test): Likewise.
13515         * expr.c (is_aligning_offset): Likewise.
13516         * tree-ssa-alias.c (is_escape_site): Likewise.
13517         * tree-stdarg.c (va_list_counter_bump, check_va_list_escapes)
13518         (check_all_va_list_escapes): Likewise.
13519         * tree-ssa-loop-ivopts.c (determine_base_object)
13520         (determine_common_wider_type): Likewise.
13521         * dojump.c (do_jump): Likewise.
13522         * tree-ssa-sccvn.c (simplify_unary_expression): Likewise.
13523         * tree-gimple.c (is_gimple_cast): Likewise.
13524         * fold-const.c (decode_field_reference, )
13525         (fold_sign_changed_comparison, fold_unary, fold_comparison)
13526         (fold_binary): Likewise.
13527         * tree-ssa-alias-warnings.c (find_alias_site_helper)
13528         (already_warned_in_frontend_p): Likewise.
13529         * builtins.c (get_memory_rtx, fold_builtin_next_arg): Likewise.
13530         * tree.c (really_constant_p, get_unwidened): Likewise.
13531         * tree-ssa-loop-niter.c (expand_simple_operations): Likewise.
13532         * tree-ssa-loop-im.c (rewrite_bittest): Likewise.
13533         * tree-vrp.c (register_edge_assert_for_2, register_edge_assert_for_1):
13534         Likewise.
13535         * tree.h (STRIP_NOPS, STRIP_SIGN_NOPS, STRIP_TYPE_NOPS): Use
13536         CONVERT_EXPR_P.
13537         (CONVERT_EXPR_P): Define.
13538         (CASE_CONVERT): Define.
13539
13540 2008-05-08  Kenneth Zadeck  <zadeck@naturalbridge.com>
13541
13542         PR middle-end/36117
13543         * dce.c (deletable_insn_p): Do not delete calls if df_in_progress.
13544         (delete_unmarked_insns): When deleting a call, call
13545         delete_unreachable_blocks.
13546         * rtl.texi (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
13547         RTL_CONST_OR_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P): Fixed doc.
13548
13549 2008-05-08  Richard Guenther  <rguenther@suse.de>
13550
13551         * doc/invoke.texi (-fdump-tree-salias): Remove documentation.
13552         (-ftree-salias): Likewise.
13553         (salias-max-implicit-fields): Remove param documentation.
13554         (salias-max-array-elements): Likewise.
13555         * tree-pass.h (pass_create_structure_vars): Remove.
13556         * params.h (SALIAS_MAX_IMPLICIT_FIELDS): Remove.
13557         (SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
13558         * tree-ssa-alias.c (create_structure_vars): Remove.
13559         (gate_structure_vars): Likewise.
13560         (pass_create_structure_vars): Likewise.
13561         (gate_build_alias): Likewise.
13562         (pass_build_alias): Adjust to run always and dump the function.
13563         * common.opt (ftree-salias): Hide.
13564         * passes.c (init_optimization_passes): Remove
13565         pass_create_structure_vars, adjust comment.
13566         * params.def (PARAM_SALIAS_MAX_IMPLICIT_FIELDS): Remove.
13567         (PARAM_SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
13568         * opts.c (decode_options): Do not set flag_tree_salias.
13569         (common_handle_option): Add OPT_ftree_salias to the backward
13570         compatibility section.
13571
13572 2008-05-08  Richard Guenther  <rguenther@suse.de>
13573
13574         * tree-flow-inline.h (var_can_have_subvars): Move ...
13575         * tree-ssa-structalias.c (var_can_have_subvars): ... here.
13576         * tree-flow.h (var_can_have_subvars): Remove.
13577         (push_fields_onto_fieldstack): Remove.
13578         (sort_fieldstack): Likewise.
13579         (struct fieldoff): Move ...
13580         * tree-ssa-structalias.c (struct fieldoff): ... here.  Remove
13581         alias_set and base_for_components fields.
13582         (sort_fieldstack): Make static.
13583         (push_fields_onto_fieldstack): Likewise.  Remove code that
13584         handles anything but RECORD_TYPEs.  Remove alias_set and
13585         base_for_components handling.
13586         (create_variable_info_for): Adjust.
13587
13588 2008-05-08  Seongbae Park  <seongbae.park@gmail.com>
13589
13590         * common.opt (Wframe-larger-than=): Shorten the help message
13591         to one line.
13592         * doc/invoke.texi (Wframe-larger-than=): Add more description.
13593
13594 2008-05-08  Rafael Espíndola  <espindola@google.com>
13595
13596         * tree-complex.c (expand_complex_div_wide): Don't create CONDs that
13597         trap.
13598         * tree-gimple.c (is_gimple_condexpr): Check that the expression doesn't
13599         trap and that both operands are gimple values.
13600         (canonicalize_cond_expr_cond): Use is_gimple_condexpr.
13601         * gcc/tree-eh.c (tree_could_trap_p): Correctly detect if a comparison
13602         is a fp operation.
13603
13604 2008-05-08  Richard Sandiford  <rsandifo@nildram.co.uk>
13605
13606         * read-rtl.c (join_c_conditions): Return the first string if the
13607         two strings are equal.
13608
13609 2008-05-08  Richard Sandiford  <rsandifo@nildram.co.uk>
13610
13611         * gensupport.h (pred_data): Add a "num_codes" field.
13612         (add_predicate_code): Declare.
13613         * gensupport.c (add_predicate_code): New function.
13614         (std_pred_table): Add an "allows_const_p" field.
13615         (std_preds): Set this field for predicates that allow RTX_CONST_OBJs.
13616         Remove the (incomplete) list of such codes from the codes field.
13617         (init_predicate_table): Use add_predicate_code.  Add all
13618         RTX_CONST_OBJs if allows_const_p is true.
13619         * genrecog.c (process_define_predicate): Use add_predicate_code.
13620
13621 2008-05-08  David Daney  <ddaney@avtrex.com>
13622             Richard Sandiford  <rsandifo@nildram.co.uk>
13623
13624         * config/mips/mips.md (mips_expand_compare_and_swap_12): Handle
13625         special case of constant zero operands.
13626         * config/mips/mips.c (mips_expand_compare_and_swap_12): Zero extend
13627         old and new values.  Special case constant zero values.
13628         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP): Skip 'sync' if compare
13629         fails.
13630         (MIPS_COMPARE_AND_SWAP_12): Handle constant zero operands.
13631         (MIPS_COMPARE_AND_SWAP_12_0): New macro.
13632
13633 2008-05-08  Paolo Bonzini  <bonzini@gnu.org>
13634
13635         PR target/36090
13636         * simplify-rtx.c (simplify_plus_minus): Create CONST of
13637         similar RTX_CONST_OBJ before CONST_INT.
13638
13639 2008-05-08  Steve Ellcey  <sje@cup.hp.com>
13640
13641         * stmt.c (expand_stack_restore): Change sa mode if needed.
13642
13643 2008-05-08  Richard Guenther  <rguenther@suse.de>
13644
13645         * config/i386/i386-protos.h (ix86_return_in_memory): Adjust
13646         return type to bool.
13647         (ix86_sol10_return_in_memory): Likewise.
13648         (ix86_i386elf_return_in_memory): Likewise.
13649         (ix86_i386interix_return_in_memory): Likewise.
13650         * config/i386/i386.c (ix86_return_in_memory): Likewise.
13651         (ix86_sol10_return_in_memory): Likewise.
13652         (ix86_i386elf_return_in_memory): Likewise.
13653         (ix86_i386interix_return_in_memory): Likewise.
13654
13655 2008-05-08  Kai Tietz  <kai.tietz@onevision.com>
13656
13657         PR bootstrap/36180
13658         * calls.c (compute_argument_block_size ): Add ATTRIBUTE_UNUSED to
13659         fndecl argument.
13660         (emit_library_call_value_1): Add ATTRIBUTE_UNUSED to variable fndecl.
13661         * target-def.h: Check that TARGET_RETURN_IN_MEMORY isn't
13662         declared in front.
13663
13664 2008-05-08  Richard Guenther  <rguenther@suse.de>
13665
13666         * tree-data-ref.c (dr_analyze_alias): Do not set DR_SUBVARS.
13667         * tree-data-ref.h (struct dr_alias): Remove subvars field.
13668         (DR_SUBVARS): Remove.
13669         * tree-dfa.c (dump_subvars_for): Remove.
13670         (debug_subvars_for): Likewise.
13671         (dump_variable): Do not dump subvars.
13672         (remove_referenced_var): Do not remove subvars.
13673         * tree-flow-inline.h (clear_call_clobbered): SFTs no longer exist.
13674         (lookup_subvars_for_var): Remove.
13675         (get_subvars_for_var): Likewise.
13676         (get_subvars_at): Likewise.
13677         (get_first_overlapping_subvar): Likewise.
13678         (overlap_subvar): Likewise.
13679         * tree-flow.h (subvar_t): Remove.
13680         (struct var_ann_d): Remove subvars field.
13681         * tree-ssa-alias.c (mark_aliases_call_clobbered): Remove queued
13682         argument.  Remove special handling of SFTs.
13683         (compute_tag_properties): Likewise.
13684         (set_initial_properties): Likewise.
13685         (compute_call_clobbered): Likewise.
13686         (count_mem_refs): Likewise.
13687         (compute_memory_partitions): Likewise.
13688         (compute_flow_insensitive_aliasing): Likewise.
13689         (setup_pointers_and_addressables): Likewise.
13690         (new_type_alias): Likewise.
13691         (struct used_part): Remove.
13692         (used_portions): Likewise.
13693         (struct used_part_map): Likewise.
13694         (used_part_map_eq): Likewise.
13695         (used_part_map_hash): Likewise.
13696         (free_used_part_map): Likewise.
13697         (up_lookup): Likewise.
13698         (up_insert): Likewise.
13699         (get_or_create_used_part_for): Likewise.
13700         (create_sft): Likewise.
13701         (create_overlap_variables_for): Likewise.
13702         (find_used_portions): Likewise.
13703         (create_structure_vars): Likewise.
13704         * tree.def (STRUCT_FIELD_TAG): Remove.
13705         * tree.h (MTAG_P): Adjust.
13706         (struct tree_memory_tag): Remove base_for_components and
13707         unpartitionable flags.
13708         (struct tree_struct_field_tag): Remove.
13709         (SFT_PARENT_VAR): Likewise.
13710         (SFT_OFFSET): Likewise.
13711         (SFT_SIZE): Likewise.
13712         (SFT_NONADDRESSABLE_P): Likewise.
13713         (SFT_ALIAS_SET): Likewise.
13714         (SFT_UNPARTITIONABLE_P): Likewise.
13715         (SFT_BASE_FOR_COMPONENTS_P): Likewise.
13716         (union tree_node): Remove sft field.
13717         * alias.c (get_alias_set): Remove special handling of SFTs.
13718         * print-tree.c (print_node): Remove handling of SFTs.
13719         * tree-dump.c (dequeue_and_dump): Likewise.
13720         * tree-into-ssa.c (mark_sym_for_renaming): Likewise.
13721         * tree-nrv.c (dest_safe_for_nrv_p): Remove special handling of SFTs.
13722         * tree-predcom.c (set_alias_info): Do not set subvars.
13723         * tree-pretty-print.c (dump_generic_node): Do not handle SFTs.
13724         * tree-ssa-loop-ivopts.c (get_ref_tag): Likewise.
13725         * tree-ssa-operands.c (access_can_touch_variable): Likewise.
13726         (add_vars_for_offset): Remove.
13727         (add_virtual_operand): Remove special handling of SFTs.
13728         (add_call_clobber_ops): Likewise.
13729         (add_call_read_ops): Likewise.
13730         (get_asm_expr_operands): Likewise.
13731         (get_modify_stmt_operands): Likewise.
13732         (get_expr_operands): Likewise.
13733         (add_to_addressable_set): Likewise.
13734         * tree-ssa.c (verify_ssa_name): Do not handle SFTs.
13735         * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
13736         * tree-vect-transform.c (vect_create_data_ref_ptr): Do not set subvars.
13737         * tree.c (init_ttree): Remove STRUCT_FIELD_TAG initialization.
13738         (tree_code_size): Remove STRUCT_FIELD_TAG handling.
13739         (tree_node_structure): Likewise.
13740         * tree-ssa-structalias.c (set_uids_in_ptset): Remove special
13741         handling of SFTs.
13742         (find_what_p_points_to): Likewise.
13743
13744 2008-05-08  Sa Liu  <saliu@de.ibm.com>
13745
13746         * config/spu/spu.md: Fixed subti3 pattern.
13747
13748 2008-05-08  Richard Guenther  <rguenther@suse.de>
13749
13750         PR middle-end/36154
13751         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
13752         sure to create a representative for trailing arrays for PTA.
13753
13754 2008-05-08  Richard Guenther  <rguenther@suse.de>
13755
13756         PR middle-end/36172
13757         * fold-const.c (operand_equal_p): Two objects which types
13758         differ in pointerness are not equal.
13759
13760 2008-05-08  Kai Tietz  <kai.tietz@onevision.com>
13761
13762         * calls.c (compute_argument_block_size): Add argument tree fndecl.
13763         (OUTGOING_REG_PARM_STACK_SPACE): Add function type argument.
13764         (emit_library_call_value_1): Add new variable fndecl initialized by
13765         NULL_TREE. It should be the decl type of orgfun, but this information
13766         seems not to be available here, so it uses the default calling abi.
13767         * config/arm/arm.c (arm_return_in_memory): Add fntype argumen.
13768         * config/arm/arm.h (RETURN_IN_MEMORY): Replace RETURN_IN_MEMORY
13769         by TARGET_RETURN_IN_MEMORY.
13770         * config/i386/i386-interix.h: Likewise.
13771         * config/i386/i386.h: Likewise.
13772         * config/i386/i386elf.h: Likewise.
13773         * config/i386/ptx4-i.h: Likewise.
13774         * config/i386/sol2-10.h: Likewise.
13775         * config/i386/sysv4.h: Likewise.
13776         * config/i386/vx-common.h: Likewise.
13777         * config/cris/cris.h: Removed #if 0 clause.
13778         * config/arm/arm-protos.h (arm_return_in_memory): Add fntype argument.
13779         * config/i386/i386-protos.h (ix86_return_in_memory): Add fntype
13780         argument.
13781         (ix86_sol10_return_in_memory): Likewise.
13782         (ix86_i386elf_return_in_memory): New.
13783         (ix86_i386interix_return_in_memory): New.
13784         * config/mt/mt-protos.h (mt_return_in_memory): New.
13785         * config/mt/mt.c: Likewise.
13786         * config/mt/mt.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
13787         (RETURN_IN_MEMORY):  Replace by TARGET_RETURN_IN_MEMORY.
13788         * config/bfin/bfin.h: Likewise.
13789         * config/bfin/bfin-protos.h (bfin_return_in_memory): Add fntype
13790         argument.
13791         * config/bfin/bfin.c: Likewise.
13792         * config/pa/pa.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
13793         * config/alpha/unicosmk.h: Likewise.
13794         * config/i386/cygming.h: Likewise.
13795         * config/iq2000/iq2000.h: Likewise.
13796         * config/mips/mips.h: Likewise.
13797         * config/mn10300/mn10300.h: Likewise.
13798         * config/rs6000/rs6000.h: Likewise.
13799         * config/score/score.h: Likewise.
13800         * config/spu/spu.h: Likewise.
13801         * config/v850/v850.h: Likewise.
13802         * defaults.h: Likewise.
13803         * doc/tm.texi (OUTGOING_REG_PARM_STACK_SPACE): Adjust documentation.
13804         * expr.c (emit_block_move): Adjust use of
13805         OUTGOING_REG_PARM_STACK_SPACE.
13806         * function.c (STACK_DYNAMIC_OFFSET): Adjust use of
13807         OUTGOING_REG_PARM_STACK_SPACE.
13808         * targhooks.c (default_return_in_memory): Remove RETURN_IN_MEMORY.
13809
13810 2008-05-08  Jakub Jelinek  <jakub@redhat.com>
13811
13812         * tree-parloops.c (create_parallel_loop): Set OMP_RETURN_NOWAIT
13813         on OMP_RETURN for OMP_FOR.
13814
13815         PR debug/35896
13816         * dwarf2out.c (dw_expand_expr, common_check): Removed.
13817         (fortran_common): New function.
13818         (gen_variable_die): Call fortran_common instead of common_check,
13819         adjust for it returning tree instead of rtx.  Formatting.
13820
13821 2008-05-07  Kenneth Zadeck  <zadeck@naturalbridge.com>
13822
13823         PR rtl/7335
13824         PR rtl/33826
13825         * see.c (see_copy_insn): Copy new pure const attributes for new call.
13826         * c-decl.c (merge_decls): Ditto.
13827         * postreload.c (record_opr_changes): Change CONST_OR_PURE_CALL_P
13828         to RTL_CONST_OR_PURE_CALL_P.
13829         * tree.c (define_local_buitin): Rename DECL_IS_PURE to DECL_PURE_P.
13830         Initialized DECL_LOOPING_CONST_PURE.
13831         (process_call_operands): Set tree_side_effects properly.
13832         * tree.h (TREE_READONLY_DECL_P): Removed.
13833         (DECL_IS_PURE): Renamed to DECL_PURE_P.
13834         (DECL_LOOPING_OR_CONST_P): New macro.
13835         (struct tree_function_decl): Added looping_const_or_pure_p.
13836         (ECF_*) Renumbered.
13837         (ECF_LOOPING_OR_CONST_P): New macro.
13838         * rtlanal.c (pure_const_p): Removed.
13839         * builtins.c (expand_builtin): Rename DECL_IS_PURE to DECL_PURE_P.
13840         * reorg.c (delete_prior_computation) Changed CONST_OR_PURE_CALL_P
13841         to RTL_CONST_CALL_P.
13842         * ipa-pure-const.c (pure_const_state_e): Added looping field.
13843         (check_decl, check_tree, check_call, scan_function): Initialize
13844         looping.
13845         (analyze_function): Rename DECL_IS_PURE to DECL_PURE_P.
13846         (static_execute): Set looping true for recursive functions.
13847         Undo setting state to IPA_NEITHER for recursive functions.
13848         * cse.c (cse_insn):
13849         * ifcvt.c (noce_can_store_speculate_p): Changed
13850         CONST_OR_PURE_CALL_P and pure_call_p to RTL_CONST_CALL_P or
13851         RTL_CONST_OR_PURE_CALL_P.
13852         * dse.c (scan_insn): Ditto.
13853         * local-alloc.c (validate_equiv_mem, memref_used_between_p): Ditto.
13854         * gcse.c (oprs_not_seen_p) Changed CONST_OR_PURE_CALL_P to
13855         RTL_CONST_OR_PURE_CALL_P.
13856         (store_killed_in_insn): Changed CONST_OR_PURE_CALL_P and
13857         pure_call_p to RTL_CONST_CALL_P.
13858         * gimplify.c (gimplify_call_expr): Clear side effects for
13859         non-looping pure and constant calls.
13860         * calls.c (emit_call_1): Set rtl flags from ecf flags.
13861         (flags_from_decl_or_type): Set ecf flags from decl flags.
13862         (initialize_argument_information): Turn off
13863         ECF_LOOPING_CONST_OR_PURE when turning off ECF_CONST.
13864         Change const to pure if callee_copies is true rather than just
13865         turning off const.
13866         (expand_call): Turn off ECF_LOOPING_PURE_CONST_CALL and remove old
13867         way of marking pure calls.
13868         (emit_library_call_value_1): Turn off ECF_LOOPING_PURE_CONST_CALL.
13869         Remove hack that was supposed to fix pr7335 and remove old
13870         way of marking pure calls.
13871         * emit-rtl.c (emit_copy_of_insn_after): Copy RTL_CONST_CALL_P,
13872         RTL_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P.
13873         * cselib.c (cselib_process_insn): Changed CONST_OR_PURE_CALL_P to
13874         RTL_CONST_OR_PURE_CALL_P.
13875         * tree-ssa-pre.c (can_value_number_call): Fixed spacing.
13876         * loop-invariant.c (find_exits, find_invariant_bb): Changed
13877         CONST_OR_PURE_CALL_P to RTL_CONST_OR_PURE_CALL_P.
13878         * sched-deps.c (schedule_analyze): Ditto.
13879         * rtl.h (struct rtx_def): Use call field, unchanging field, and
13880         return_val field of calls to represent pure and const function info.
13881         (CONST_OR_PURE_CALL_P): Deleted macro.
13882         (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
13883         RTL_LOOPING_CONST_OR_PURE_CALL_P, RTL_CONST_OR_PURE_P): New macros.
13884         * tree-inline.c (copy_body_r): Changed TREE_READONLY_DECL_P to
13885         TREE_READONLY.
13886         * tree-optimize.c (execute_fixup_cfg): Added test for
13887         ECF_LOOPING_CONST_OR_PURE.
13888         * c-common.c (handle_pure_attribute): Changed DECL_IS_PURE to
13889         DECL_PURE_P.
13890         * tree-cfg.c (update_call_expr_flags): Do not clear tree side
13891         effects for looping pure or const calls.
13892         (verify_gimple_expr): Added verification code.
13893         * config/alpha/alpha.c (alpha_legitimize_address,
13894         alpha_emit_xfloating_libcall): Changed CONST_OR_PURE_CALL_P to
13895         RTL_CONST_CALL_P.
13896         * config/s390/s390.c (s390_emit_tls_call_insn): Ditto.
13897         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Ditto.
13898         * config/mips/mips.c (mips_call_tls_get_addr): Ditto.
13899         * cfgrtl.c (need_fake_edge_p): Changed CONST_OR_PURE_CALL_P to
13900         RTL_CONST_OR_PURE_CALL_P.
13901         * dce.c (deletable_insn_p): Allow non looping, non sibling, pure
13902         and const calls to be deleted.
13903
13904 2008-05-07  Uros Bizjak  <ubizjak@gmail.com>
13905
13906         PR target/35714
13907         * config/i386/mmx.md (mmx_subv2sf3): New expander.
13908         (*mmx_subv2sf3): Rename from mmx_subv2sf3 insn pattern.
13909         (*mmx_eqv2sf3): Rename from mmx_eqv2sf3 insn pattern.
13910         (mmx_eqv2sf3): New expander.  Use ix86_fixup_binary_operands_no_copy
13911         to handle nonimmediate operands.
13912         (*mmx_paddwd): Rename from mmx_paddwd insn pattern.
13913         (mmx_paddwd): New expander.  Use ix86_fixup_binary_operands_no_copy
13914         to handle nonimmediate operands.
13915         (*mmx_pmulhrwv4hi3): Rename from mmx_pmulhrwv4hi3 insn pattern.
13916         (mmx_pmulhrwv4hi3): New expander.  Use
13917         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
13918         (*sse2_umulv1siv1di3): Rename from sse2_umulv1siv1di3 insn pattern.
13919         (sse2_umulv1siv1di3): New expander.  Use
13920         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
13921         (*mmx_eq<mode>3): Rename from mmx_eq<mode>3 insn pattern.
13922         (mmx_eq<mode>3): New expander.  Use
13923         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
13924         (*mmx_uavgv8qi3): Rename from mmx_uavgv8qi3 insn pattern.
13925         (mmx_uavgv8qi3): New expander.  Use
13926         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
13927         (*mmx_uavgv4hi3): Rename from mmx_uavgv4hi3 insn pattern.
13928         (mmx_uavgv4hi3): New expander.  Use
13929         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
13930
13931         * config/i386/sse.md
13932         (sse_movhlps_exp): New expander.  Use ix86_fixup_binary_operands
13933         to handle nonimmediate operands.
13934         (sse_movlhps_exp): New expander.  Use ix86_fixup_binary_operands
13935         to handle nonimmediate operands.
13936         (sse_loadhps_exp): New expander.  Use ix86_fixup_binary_operands
13937         to handle nonimmediate operands.
13938         (sse_loadlps_exp): New expander.  Use ix86_fixup_binary_operands
13939         to handle nonimmediate operands.
13940         (sse2_unpckhpd_exp): New expander.  Use
13941         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
13942         (sse2_unpcklpd_exp): New expander.  Use
13943         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
13944         (sse_loadhpd_exp): New expander.  Use ix86_fixup_binary_operands
13945         to handle nonimmediate operands.
13946         (sse_loadlpd): New expander.  Use ix86_fixup_binary_operands
13947         to handle nonimmediate operands.
13948         (*sse2_<plusminus_insn><mode>3): Rename from
13949         sse2_<plusminus_insn><mode>3 insn pattern.
13950         (sse2_<plusminus_insn><mode>3): New expander.  Use
13951         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
13952         (*sse2_umulv2siv2di3): Rename from sse2_umulv2siv2di3 insn pattern.
13953         (sse2_umulv2siv2di3): New expander.  Use
13954         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
13955         (*sse4_1_mulv2siv2di3): Rename from sse4_1_mulv2siv2di3 insn pattern.
13956         (sse4_1_mulv2siv2di3): New expander.  Use
13957         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
13958         (*sse2_pmaddwd): Rename from sse2_pmaddwd insn pattern.
13959         (sse2_pmaddwd): New expander.  Use
13960         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
13961         (*sse2_eq<mode>3): Rename from sse2_eq<mode>3 insn pattern.
13962         (sse2_eq<mode>3): New expander.  Use
13963         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
13964         (*sse4_1_eqv2di3): Rename from sse4_1_eqv2di3 insn pattern.
13965         (sse4_1_eqv2di3): New expander.  Use
13966         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
13967         (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
13968         (sse2_uavgv16qi3): New expander.  Use
13969         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
13970         (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
13971         (sse2_uavgv16qi3): New expander.  Use
13972         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
13973         (*sse2_uavgv8hi3): Rename from sse2_uavgv8hi3 insn pattern.
13974         (sse2_uavgv8hi3): New expander.  Use
13975         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
13976         (*ssse3_pmulhrswv8hi3): Rename from ssse3_pmulhrswv8hi3 insn pattern.
13977         (ssse3_pmulhrswv8hi3): New expander.  Use
13978         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
13979         (*ssse3_pmulhrswv4hi3): Rename from ssse3_pmulhrswv4hi3 insn pattern.
13980         (ssse3_pmulhrswv4hi3): New expander.  Use
13981         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
13982
13983         (<sse>_vm<plusminus_insn><mode>3): Do not use ix86_binary_operator_ok.
13984         (<sse>_vmmul<mode>3): Ditto.
13985         (divv4sf3): Do not use ix86_fixup_binary_operands_no_copy.
13986         (divv2df3): Ditto.
13987         (ssse3_pmaddubsw128): Use register_operand for operand 1.
13988         (ssse3_pmaddubsw): Ditto.
13989
13990         * config/i386/i386.c (struct_builtin_description)
13991         [IX86_BUILTIN_LOADHPS]: Use CODE_FOR_sse_loadhps_exp.
13992         [IX86_BUILTIN_STOREHPS]: Use CODE_FOR_sse_loadlps_exp.
13993         [IX86_BUILTIN_LOADHPD]: Use CODE_FOR_sse2_loadhpd_exp.
13994         [IX86_BUILTIN_LOADLPD]: Use CODE_FOR_sse2_loadlpd_exp.
13995         [IX86_BUILTIN_MOVHLPS]: Use CODE_FOR_sse_movhlps_exp.
13996         [IX86_BUILTIN_MOVLHPS]: Use CODE_FOR_sse_movlhps_exp.
13997         [IX86_BUILTIN_UNPCKHPD]: Use FOR_sse2_unpckhpd_exp.
13998         [IX86_BUILTIN_UNPCKLPD]: Use FOR_sse2_unpcklpd_exp.
13999         (ix86_fixup_binary_operands): Assert that src1
14000         and src2 must have the same mode when swapped.
14001         (ix86_expand_binop_builtin): Do not use ix86_fixup_binary_operands
14002         and ix86_binary_operator_ok.  Do not force operands in registers
14003         when optimizing.
14004
14005 2008-05-07  Jan Hubicka  <jh@suse.cz>
14006
14007         * cgraph.c (dump_cgraph_node): Update.
14008         * cgraph.h (cgraph_local_info): Break out inline summary.
14009         * cgraphunit.c (cgraph_process_new_functions): Use inliner analysis
14010         hook.
14011         * ipa-inline (inline_summary): New accestor function.
14012         (cgraph_clone_inlined_nodes, cgraph_check_inline_limits,
14013         cgraph_decide_inlining, compute_inline_parameters): Update.
14014         * ipa.c (cgraph_remove_unreachable_nodes): Remove statistics.
14015
14016 2008-05-07  Maxim Kuvyrkov  <maxim@codesourcery.com>
14017
14018         Cleanup ColdFire scheduling support and add V4 pipeline model.
14019
14020         * config/m68k/m68k.md (UNSPEC_TIE): New constant.
14021         (define_attr cpu): Add cfv4 value.
14022         (define_attr type, define_attr type1): Merge into a single 'type'
14023         attribute.  Update all uses.
14024         (define_attr opx_type, define_attr opy_type, define_attr opx_access):
14025         Rearrange and update.  Rename value 'reg' to 'Rn', add value 'FPn'.
14026         Update all uses.
14027         (define_attr opx_mem, define_attr opy_mem): Remove.
14028         (define_attr op_mem): Clean up, update comment.
14029         (define_attr size): Use specific values instead of general int.
14030         (define_attr guess, define_attr split): Remove.  Update all uses.
14031         (movdf_internal, tstsi_internal, tsthi_internal, tstqi_internal,
14032         tst<mode>_68881, pushexthisi_const, movsi_const0_68000_10,
14033         movsi_const0_68040_60, movsi_const0, movsi_cf, movstrictqi_cf,
14034         zero_extendhisi2_cf, zero_extendqisi2_cfv4, cfv4_extendhisi2,
14035         68k_extendhisi2, extendqihi2, cfv4_extendqisi2, 68k_extendqisi2,
14036         floatsi<mode>2_68881, ftrunc<mode>2_68881, ftrunc<mode>2_cf,
14037         fix<mode>qi2_68881, fix<mode>hi2_68881, fix<mode>si2_68881,
14038         adddi_dishl32, addsi3_5200, add<mode>3_floatsi_68881,
14039         add<mode>3_floathi_68881, add<mode>3_floatqi_68881,
14040         add<mode>3_68881, add<mode>3_cf, subdi_dishl32, subsi3,
14041         sub<mode>3_floatsi_68881, sub<mode>3_floathi_68881,
14042         sub<mode>3_floatqi_68881, sub<mode>3_68881, sub<mode>3_cf,
14043         mulhi3, mulhisi3, mulhisisi3_s, mulsi3_68020, mulsi3_cf,
14044         umulhisi3, mulhisisi3_z, mul<mode>3_floatsi_68881,
14045         mul<mode>3_floathi_68881, mul<mode>3_floatqi_68881, fmul<mode>3_cf,
14046         div<mode>3_cf, sqrt<mode>2_cf, abs<mode>2_cf, clzsi2,
14047         one_cmplsi2_5200, subreghi1ashrdi_const32, ashrsi3, lshrsi3,
14048         bsetmemqi, bsetmemqi_ext, bclrmemqi, bclrmemqi_ext,
14049         beq, bne, bgt, blt, bordered, bunordered, buneq, bunge, bungt, bunle,
14050         bunlt, bltgt, tablejump_internal, call, non_symbolic_call_value,
14051         symbolic_call_value_jsr, symbolic_call_value_bsr, link):
14052         Update or set attributes.
14053         (stack_tie): New fake instruction.
14054
14055         * config/m68k/m68k.h (TUNE_CFV4): New macro.
14056         (m68k_sched_attr_size): Update declaration.
14057         (m68k_sched_attr_type2): Remove.
14058         (m68k_sched_address_bypass_p, m68k_sched_indexed_address_bypass_p):
14059         Declare new bypass predicates.
14060
14061         * config/m68k/m68k.c (m68k_sched_issue_rate,
14062         m68k_sched_first_cycle_multipass_dfa_lookahead): Declare hook
14063         implementations.
14064         (TARGET_SCHED_ISSUE_RATE,
14065         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Override hooks.
14066         (override_options): Handle scheduling for ColdFire V4 core.
14067         (m68k_expand_prologue): Emit stack_tie.
14068         (enum attr_op_type): Split value 'OP_TYPE_REG' to 'OP_TYPE_RN' and
14069         'OP_TYPE_FPN'.  Update all uses.
14070         (sched_guess_p): Remove.
14071         (sched_address_type): Handle symbolic addresses.
14072         (sched_get_operand): New static function.
14073         (sched_operand_type): Merge into sched_attr_op_type.
14074         (sched_attr_op_type): Handle FP registers, handle quick constants,
14075         update.
14076         (m68k_sched_attr_opx_type, m68k_sched_attr_opy_type): Update.
14077         (m68k_sched_attr_size): Update.  Move logic to ...
14078         (sched_get_attr_size_int): New static function.
14079         (sched_get_opxy_mem_type): New static function.
14080         (m68k_sched_attr_op_mem): Update.
14081         (m68k_sched_attr_type2): Remove.
14082         (sched_cfv4_bypass_data): New static variable.
14083         (m68k_sched_adjust_cost): Handle ColdFire V4 bypass.
14084         (m68k_sched_issue_rate): Implement scheduler hook.
14085         (struct _sched_ib: enabled_p): New field.
14086         (m68k_sched_variable_issue): Update.  Handle V4.
14087         (SCHED_DUMP_TODO, SCHED_DUMP_DONE, SCHED_DUMP_NOTHING,
14088         sched_dump_class_func_t, sched_dump_split_class,
14089         sched_dump_dfa_guess_unit_code, sched_dump_dfa_state,
14090         sched_dump_dfa_class, m68k_sched_dump): Remove.
14091         (m68k_sched_first_cycle_multipass_dfa_lookahead): Implement scheduler
14092         hook.
14093         (m68k_sched_init_global): Remove statisctics dumping, introduce
14094         sanity check that all instructions have pipeline reservations.  Handle
14095         ColdFire V4 core.
14096         (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
14097         Handle ColdFire V4 core.
14098         (sched_mem_operand_p, sched_get_reg_operand, sched_get_mem_operand):
14099         New static functions.
14100         (m68k_sched_address_bypass_p): New bypass predicate.
14101         (sched_get_indexed_address_scale): New static function.
14102         (m68k_sched_indexed_address_bypass_p): New bypass predicate.
14103
14104         * cf.md: Update comments.
14105         (define_attr type2): Remove.  Use 'type' attribute instead.
14106         Update all uses.
14107         (cf_ib): Rename to cfv123_ib.  Update all uses.
14108         (cf_oep): Rename to cfv123_oep.  Update all uses.
14109         (cf_chr): Rename to cfv123_chr.  Update all uses.
14110         (cf_mem): Rename to cfv123_mem.  Update all uses.
14111         (cf_mac): Move to more appropriate place.
14112         (cfv123_guess): New automaton and cpu_unit.
14113         (cfv123_*, cfv12_*, cfv1_*, cfv2_*, cfv3_*): Use type attribute.
14114         Update uses of 'size' attribute.  Handle before reload scheduling.
14115         (cfv123_guess): New dummy reservation for unhandled instructions.
14116         (cfv4_*): Pipeline description of ColdFire V4 core.
14117         (ignore): New reservation to handle 'ignore' type.
14118
14119 2008-05-07  Ian Lance Taylor  <iant@google.com>
14120
14121         PR middle-end/36013
14122         * gimplify.c (find_single_pointer_decl_1): Don't look through
14123         indirections.
14124         (find_single_pointer_decl): Adjust comments.
14125
14126 2008-05-07  Jakub Jelinek  <jakub@redhat.com>
14127
14128         PR middle-end/36137
14129         * fold-const.c (fold_binary): Use STRIP_SIGN_NOPS instead of
14130         STRIP_NOPS on arguments even for MIN_EXPR and MAX_EXPR.
14131
14132         PR middle-end/36106
14133         * omp-low.c (expand_omp_atomic_pipeline): Load value using the
14134         integral type rather than floating point, then VIEW_CONVERT_EXPR
14135         to the floating point type.
14136
14137 2008-05-07  Uros Bizjak  <ubizjak@gmail.com>
14138
14139         * config/i386/i386.c (ix86_expand_copysign): Force non-zero constant
14140         TFmode op0 to register.
14141
14142 2008-05-07  Alan Modra  <amodra@bigpond.net.au>
14143
14144         * c-decl.c (grokdeclarator): Comment typo.
14145
14146 2008-05-06  Aldy Hernandez  <aldyh@redhat.com>
14147
14148         * tree-flow.h: Remove prototype for computed_goto_p.
14149         * tree-cfg.c (computed_goto_p): Make static.
14150
14151 2008-05-06  H.J. Lu  <hongjiu.lu@intel.com>
14152
14153         PR target/35657
14154         * config/i386/i386.c (contains_128bit_aligned_vector_p): Renamed to ...
14155         (contains_aligned_value_p): This.  Handle _Decimal128.
14156         (ix86_function_arg_boundary): Only align _Decimal128 to its
14157         natural boundary and handle it properly.
14158
14159 2008-05-06  Martin Jambor  <mjambor@suse.cz>
14160
14161         * ipa-cp.c (ipcp_method_orig_node): Renamed to ipcp_get_orig_node.
14162         (ipcp_method_is_cloned): Renamed to ipcp_node_is_clone
14163         (ipcp_method_set_orig_node): Removed.
14164         (ipcp_cval_get_cvalue_type): Removed.
14165         (ipcp_method_get_scale): Renamed to ipcp_get_node_scale.
14166         (ipcp_method_set_scale): Renamed to ipcp_set_node_scale.
14167         (ipcp_cval_set_cvalue_type): Removed.
14168         (ipcp_cval_get_cvalue): Removed.
14169         (ipcp_cval_set_cvalue): Removed.
14170         (ipcp_type_is_const): Renamed to ipcp_lat_is_const.
14171         (ipcp_cval_equal_cvalues): Renamed to ipcp_lats_are_equal
14172         (ipcp_lats_are_equal): Changed parameters to two ipcp_lattice's
14173         (ipcp_cval_meet): Renamed to ipa_lattice_meet
14174         (ipcp_cval_changed): Changed to use ipcp_lat_is_const
14175         (ipcp_method_cval): Renamed to ipcp_get_ith_lattice
14176         (ipcp_get_ith_lattice): Changed parameters.
14177         (ipcp_cval_compute): Renamed to ipcp_lattice_from_jfunc
14178         (ipcp_lattice_from_jfunc): Changed parameters.
14179         (ipcp_redirect): Local lattice pointer instead of lattice type variable.
14180         (ipcp_method_cval_print): Added temporary variable info.
14181         (ipcp_redirect): Removed already unused local variable caller.
14182         (ipcp_redirect): New temporary variable orig_callee_info
14183         (ipcp_redirect): Removed newly unused local variable callee.
14184         (ipcp_redirect): Removed (a bit confusing) local variable type.
14185         (ipcp_insert_stage): Added local variable info.
14186         (ipcp_cval_changed): Renamed to ipcp_lattice_changed, parameters
14187         renamed too
14188         (ipcp_formal_create): Removed.
14189         (ipcp_method_cval_set): Removed.
14190         (ipcp_propagate_stage): Renamed lattice variables.
14191         (ipcp_method_cval_set_cvalue_type): Removed.
14192         (ipcp_method_cval_print): Renamed to ipcp_print_all_lattices
14193         (ipcp_print_all_lattices): Changed printed strings to refer to
14194         lattices rather than cvals.
14195         (ipcp_method_cval_init): Renamed to ipcp_initialize_node_lattices
14196         (ipcp_propagate_const): Changed formal parameters.
14197         (build_const_val): Changed formal parameters.
14198         (ipcp_insert_stage): Removed useless variable cvalue
14199         (build_const_val): Changed formal parameters.
14200         (ipcp_method_compute_scale): Renamed to ipcp_compute_node_scale
14201         (ipcp_after_propagate): Renamed to ipcp_change_tops_to_bottom
14202         (ipcp_callsite_param_print): Renamed to ipcp_print_all_jump_functions
14203         (ipcp_profile_mt_count_print): Renamed to ipcp_print_func_profile_counts
14204         (ipcp_print_func_profile_counts): Changed string from "method" to
14205         "function"
14206         (ipcp_profile_cs_count_print): Renamed to ipcp_print_call_profile_counts
14207         (ipcp_profile_edge_print): Renamed to ipcp_print_edge_profiles
14208         (ipcp_profile_bb_print): Renamed to ipcp_print_bb_profiles
14209         (ipcp_structures_print): Renamed to ipcp_print_all_structures
14210         (ipcp_profile_print): Renamed to ipcp_print_profile_data
14211         (ipcp_lat_is_const): Changed parameters and made inline.
14212         (ipcp_replace_map_create): Renamed to ipcp_create_replace_map
14213         (ipcp_redirect): Renamed to ipcp_need_redirect_p
14214         (ipcp_need_redirect_p): Calls ipcp_lat_is_const instead of using
14215         the predicate condition directly
14216         (ipcp_propagate_stage): Added local variable args. Removed local
14217         variable callee.  (Both are mere code simplifications.)
14218         (ipcp_method_dont_insert_const): Renamed to
14219         ipcp_node_not_modifiable_p.
14220         (ipcp_node_not_modifiable_p): Made inline.
14221         (ipcp_cloned_create): Renamed to ipcp_init_cloned_node
14222         (ipcp_propagate_const): Renamed to ipcp_propagate_one_const
14223         (ipcp_print_all_lattices): Removed variable cvalue
14224         (ipcp_method_scale_print): Renamed to ipcp_function_scale_print
14225         Updated comments.
14226
14227 2008-05-06  Olivier Hainque  <hainque@adacore.com>
14228
14229         * tree-sra.c (try_instantiate_multiple_fields): Early return
14230         if field has POINTER_TYPE.
14231
14232 2008-05-06  Kai Tietz  <kai.tietz@onevision.com>
14233
14234         * config/i386/i386.c (output_set_got): Fix for x86_64 output_emit_asm
14235         by using 'q' specifier for instruction.
14236         (ix86_file_end): Replaced case TARGET_64BIT_MS_ABI by TARGET_64BIT.
14237
14238 2008-05-06  Anatoly Sokolov <aesok@post.ru>
14239
14240         * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
14241         Change mode of zero_extract from QImode to HImode.
14242         (sign bit tests peepholes): (Ditto.).
14243
14244 2008-05-06  Uros Bizjak  <ubizjak@gmail.com>
14245
14246         * config/i386/mmx.md: Remove double backslashes from asm templates.
14247         (*mmx_addv2sf3): Rename from mmx_addv2sf3 insn pattern.
14248         (mmx_addv2sf3): New expander.  Use ix86_fixup_binary_operands_no_copy
14249         to handle nonimmediate operands.
14250         (*mmx_mulv2sf3): Rename from mmx_mulv2sf3 insn pattern.
14251         (mmx_mulv2sf3): New expander.  Use ix86_fixup_binary_operands_no_copy
14252         to handle nonimmediate operands.
14253         (*mmx_<code>v2sf3_finite): New insn pattern.
14254         (*mmx_<code>v2sf3): Rename from mmx_<code>v2sf3 insn pattern.
14255         (mmx_<code>v2sf3): New expander.  Use
14256         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14257         (mmx_<plusminus_insn><mode>3): New expander.  Use
14258         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14259         (*mmx_<plusminus_insn><mode>3): New insn pattern.
14260         (mmx_add<mode>3): Removed.
14261         (mmx_ssadd<mode>3): Ditto.
14262         (mmx_usadd<mode>3): Ditto.
14263         (mmx_sub<mode>3): Ditto.
14264         (mmx_sssub<mode>3): Ditto.
14265         (mmx_ussub<mode>3): Ditto.
14266         (*mmx_mulv4hi3): Rename from mmx_mulv4hi3 insn pattern.
14267         (mmx_mulv4hi3): New expander.  Use ix86_fixup_binary_operands_no_copy
14268         to handle nonimmediate operands.
14269         (*mmx_smulv4hi3_highpart): Rename from mmx_smulv4hi3_highpart
14270         insn pattern.
14271         (mmx_smulv4hi3_highpart): New expander.  Use
14272         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14273         (*mmx_umulv4hi3_highpart): Rename from mmx_umulv4hi3_highpart
14274         insn pattern.
14275         (mmx_umulv4hi3_highpart): New expander.  Use
14276         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14277         (*mmx_<code>v4hi3): Rename from mmx_<code>v4hi3 insn pattern.
14278         (mmx_<code>v4hi3): New expander.  Use
14279         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14280         (*mmx_<code>v8qi3): Rename from mmx_<code>v8qi3 insn pattern.
14281         (mmx_<code>v8qi3): New expander.  Use
14282         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14283         (*mmx_<code><mode>3): Rename from mmx_<code><mode>3 insn pattern.
14284         (mmx_<code><mode>3): New expander.  Use
14285         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14286
14287 2008-05-05  Jan Hubicka  <jh@suse.cz>
14288
14289         PR tree-optimization/36118
14290         * passes.c (pass_init_dump_file): Fix dump header.
14291
14292 2008-05-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>
14293
14294         PR middle-end/36141
14295         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't create
14296         VCE for function decls.
14297
14298 2008-05-05  H.J. Lu  <hongjiu.lu@intel.com>
14299
14300         * config/i386/sse.md (sse2_<plusminus_insn><mode>3): Fix a typo.
14301
14302 2008-05-05  H.J. Lu  <hongjiu.lu@intel.com>
14303
14304         * config/i386/i386.md (sat_plusminus): New.
14305         (plusminus_insn): Likewise.
14306         (plusminus_mnemonic): Likewise.
14307         (addsub): Removed.
14308         (comm): Add ss_plus, us_plus, ss_minus and us_minus.
14309         (*<addsub><mode>3_cc_overflow): Renamed to ...
14310         (*<plusminus_insn><mode>3_cc_overflow): This.
14311         (*<addsub>si3_zext_cc_overflow): Renamed to ...
14312         (*<plusminus_insn>si3_zext_cc_overflow): This.
14313
14314         * config/i386/sse.md (<addsub><mode>3): Renamed to ...
14315         (<plusminus_insn><mode>3): This.
14316         (*<addsub><mode>3): Renamed to ...
14317         (*<plusminus_insn><mode>3): This.
14318         (<sse>_vm<addsub><mode>3): Renamed to ...
14319         (<sse>_vm<plusminus_insn><mode>3): This.
14320         (sse3_h<addsub>v4sf3): Renamed to ...
14321         (sse3_h<plusminus_insn>v4sf3): This.
14322         (sse3_h<addsub>v2df3): Renamed to ...
14323         (sse3_h<plusminus_insn>v2df3): This.
14324         (<plusminus_insn><mode>3): New.
14325         (*<plusminus_insn><mode>3): Likewise.
14326         (sse2_<plusminus_insn><mode>3): Likewise.
14327         (add<mode>): Removed.
14328         (*add<mode>3): Likewise.
14329         (sse2_ssadd<mode>3): Likewise.
14330         (sse2_usadd<mode>3): Likewise.
14331         (sub<mode>3): Likewise.
14332         (*sub<mode>3): Likewise.
14333         (sse2_sssub<mode>3): Likewise.
14334         (sse2_ussub<mode>3): Likewise.
14335
14336 2008-05-05  Benjamin Kosnik  <bkoz@redhat.com>
14337
14338         * gthr-single.h: Add in required interface elements as per gthr.h.
14339         Add stub types for __gthread_key_t, __gthread_once_t. Add defines
14340         for __GTHREAD_ONCE_INIT, __GTHREAD_RECURSIVE_MUTEX_INIT.
14341         Generalize UNUSED macro.
14342         (__gthread_once): Add.
14343         (__gthread_key_create): Add.
14344         (__gthread_key_delete): Add.
14345         (__gthread_getspecific): Add.
14346         (__gthread_setspecific): Add.
14347
14348 2008-05-05  Andrew Pinski  <Andrew.Pinski@playstation.sony.com>
14349
14350         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): If we have
14351         the same size types for the indirect reference on the rhs, then
14352         create a VCE.
14353
14354 2008-05-05  Uros Bizjak  <ubizjak@gmail.com>
14355
14356         * config/i386/i386.md
14357         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit): Use only
14358         one insn template instead of template series.
14359         (*xordi_1_rex64): Ditto.
14360         (*xordi_2_rex64): Ditto.
14361
14362 2008-05-05  Ira Rosen  <irar@il.ibm.com>
14363
14364         PR tree-optimization/36119
14365         * tree-vect-transform.c (vectorizable_assignment): Set NCOPIES to 1
14366         in case of SLP.
14367
14368 2008-06-04  Jan Hubicka  <jh@suse.cz>
14369
14370         tree-optimization/36100
14371         * tree-pass.h (pass_O0_always_inline): Declare.
14372         * ipa-inline.c (inline_transform): Remove dead code.
14373         (cgraph_gate_O0_always_inline, cgraph_O0_always_inline,
14374         pass_O0_always_inline): New.
14375         * passes.c (init_optimization_passes): Add pass_O0_always_inline.
14376
14377 2008-05-04  Kai Tietz  <kai.tietz@onevision.com>
14378
14379         * config/i386/i386.c (x86_output_mi_thunk): Use movq alternative
14380         mnemonic in this_param move for TARGET_64BIT.
14381
14382 2008-05-04  Uros Bizjak  <ubizjak@gmail.com>
14383
14384         * config/i386/i386.md (*strmovsi_1): Simplify asm alternatives.
14385         (*strmovsi_rex_1): Ditto.
14386         (*strsetsi_1): Ditto.
14387         (*strsetsi_rex_1): Ditto.
14388
14389         (add<mode>cc): Macroize expander from addqicc, addhicc, addsicc and
14390         adddicc expanders using SWI mode iterator.
14391
14392 2008-05-04  H.J. Lu  <hongjiu.lu@intel.com>
14393
14394         PR target/36121
14395         * config/i386/i386.c (ix86_expand_special_args_builtin): Remove three
14396         argument handling.
14397
14398 2008-05-04  David S. Miller  <davem@davemloft.net>
14399
14400         * config.gcc (sparc*-*-*): Always set need_64bit_hwint to yes.
14401         (sparc*-*-linux*): Use linux.h in tm_file.
14402         (sparc-*-linux*): If 'enabled_targets' is 'all', build a bi-arch
14403         compiler defaulting to 32-bit.
14404         (sparc*-*-*): Remove explicit target settings of need_64bit_hwint,
14405         no longer needed.
14406         * config/sparc/linux.h: Remove definitions now obtained
14407         properly from linux.h
14408         * config/sparc/linux64.h: Likewise.
14409         (ASM_CPU_DEFAULT_SPEC): Change this to ASM_CPU64_DEFAULT_SPEC, we
14410         don't want this setting for 32-bit builds in a biarch compiler.
14411         * doc/install.texi: Add sparc-linux to list of targets
14412         supporting --enable-targets=all.
14413
14414 2008-05-03  Andrew Pinski  <pinskia@gmail.com>
14415
14416         * Makefile.in (tree-ssa-phiprop.o): Fix dependencies.
14417
14418 2008-05-03  H.J. Lu  <hongjiu.lu@intel.com>
14419
14420         * config/i386/i386.c (ix86_builtin_type): Move V4SI_FTYPE_V4SF
14421         after V4SI_FTYPE_V8HI.
14422         (ix86_init_mmx_sse_builtins): Move case V4HI_FTYPE_V4HI after
14423         case V4SI_FTYPE_V2DF.
14424
14425 2008-05-03  Kenneth Zadeck  <zadeck@naturalbridge.com>
14426
14427         * doc/invoke.texi (max-flow-memory-locations): Removed.
14428         * params.def (PARAM_MAX_FLOW_MEMORY_LOCATIONS): Removed.
14429
14430 2008-05-03  Richard Guenther  <rguenther@suse.de>
14431
14432         PR middle-end/34973
14433         * opts.c (set_Wstrict_aliasing): Handle the turn-off case.
14434
14435 2008-05-02  David S. Miller  <davem@davemloft.net>
14436
14437         * config.gcc (need_64bit_hwint): Document libcpp dependency.
14438
14439 2008-05-02  Simon Baldwin <simonb@google.com>
14440
14441         PR bootstrap/36108
14442         * c-common.h (warn_array_subscript_range): Removed.
14443         * c-common.c (warn_array_subscript_range): Ditto.
14444         * tree-vrp.c (check_array_ref): Revert to ignoring arrays with size 2.
14445         * c-typeck.c (build_array_ref): Remove warn_array_subscript_range.
14446
14447 2008-05-02  H.J. Lu  <hongjiu.lu@intel.com>
14448
14449         * config/i386/i386.c (ix86_special_builtin_type): New.
14450         (bdesc_special_args): Likewise.
14451         (ix86_expand_special_args_builtin): Likewise.
14452         (ix86_init_mmx_sse_builtins): Updated.
14453         (ix86_expand_builtin): Updated.
14454         (ix86_expand_store_builtin): Removed.
14455         (ix86_expand_unop_builtin): Likewise.
14456
14457         * config/i386/mm3dnow.h (__v2sf): Moved to ...
14458         * config/i386/mmintrin.h (__v2sf): Here.
14459
14460         * config/i386/xmmintrin.h (_mm_loadh_pi): Replace __v2si with
14461         const __v2sf.
14462         (_mm_loadl_pi): Likewise.
14463         (_mm_storeh_pi): Replace __v2si with __v2sf.
14464         (_mm_storel_pi): Likewise.
14465
14466         * doc/extend.texi: Correct __builtin_ia32_loadhps,
14467         __builtin_ia32_loadlps, __builtin_ia32_storehps,
14468         __builtin_ia32_storelps, __builtin_ia32_loadhpd and
14469         __builtin_ia32_loadlpd.
14470
14471 2008-05-02  H.J. Lu  <hongjiu.lu@intel.com>
14472
14473         * config/i386/i386.c (ix86_builtin_type): Add FLOAT_FTYPE_FLOAT,
14474         V4SF_FTYPE_V4SF_VEC_MERGE and V2DF_FTYPE_V2DF_VEC_MERGE.
14475         (bdesc_args): Updated.  Add scalar SSE builtins with vec_merge.
14476         (ix86_init_mmx_sse_builtins): Updated.
14477         (ix86_expand_args_builtin): Likewise.
14478         (ix86_expand_builtin): Likewise.
14479         (ix86_expand_unop1_builtin): Renamed to ...
14480         (ix86_expand_unop_vec_merge_builtin): This.
14481
14482 2008-05-01  Jan Hubicka  <jh@suse.cz>
14483
14484         PR bootstrap/36100
14485         * ipa-inline.c (inline_generate_summary): Make static.
14486         (inline_transform): Do not call inlining at -O0; make static.
14487         * passes.c (execute_todo): Add sanity check.
14488         (execute_one_ipa_transform_pass): Execute proper flags.
14489
14490 2008-05-01  Eric Botcazou  <ebotcazou@adacore.com>
14491
14492         * tree.h (TYPE_NONALIASED_COMPONENT): Expand comment.
14493         (DECL_NONADDRESSABLE_P): Likewise.
14494         * alias.c (record_component_aliases): Fix comment.
14495
14496 2008-05-01  Simon Baldwin <simonb@google.com>
14497
14498         * c-common.h (warn_array_subscript_range): New function.
14499         * c-common.c (warn_array_subscript_range): Ditto.
14500         * tree-vrp.c (check_array_ref): Corrected code to agree with
14501         comment, ignoring only arrays of size 0 or size 1.
14502         * c-typeck.c (build_array_ref): Call warn_array_subscript_range.
14503
14504 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
14505
14506         * config/i386/i386.c (ix86_builtin_type): Replace
14507         DI_FTYPE_DI_DI_INT with V1DI2DI_FTYPE_V1DI_V1DI_INT.
14508         (bdesc_args): Updated.
14509         (ix86_init_mmx_sse_builtins): Likewise.
14510         (ix86_expand_args_builtin): Likewise.
14511
14512         * config/i386/tmmintrin.h (_mm_alignr_pi8): Replace long long
14513         with __v1di.
14514
14515         * doc/extend.texi: Correct __builtin_ia32_palignr.
14516
14517 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
14518
14519         PR target/36095
14520         * config/i386/i386.c (bdesc_crc32): Removed.
14521         (ix86_expand_crc32): Likewise.
14522         (ix86_builtin_type): Replace V2DI2TI_FTYPE_V2DI2TI_INT with
14523         V2DI2TI_FTYPE_V2DI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT with
14524         V2DI2TI_FTYPE_V2DI_V2DI_INT.  Add UINT64_FTYPE_UINT64_UINT64,
14525         UINT_FTYPE_UINT_UINT, UINT_FTYPE_UINT_USHORT and
14526         UINT_FTYPE_UINT_UCHAR.
14527         (bdesc_args): Updated. Add crc32 builtins.
14528         (ix86_init_mmx_sse_builtins): Updated.
14529         (ix86_expand_args_builtin): Updated to support subreg.
14530
14531         * doc/extend.texi: Correct __builtin_ia32_crc32di.
14532
14533 2008-05-01  Jan Hubicka  <jh@suse.cz>
14534
14535         * tree-pass.h (opt_pass): Add IPA_PASS.
14536         (varpool_node, cgraph_node): Forward declare.
14537         (ipa_opt_pass): Define.
14538         (pass_ipa_inline): Turn into ipa_opt_pass.
14539         (pass_apply_inline): Remove.
14540         * ipa-inline.c (pass_ipa_inline): Turn into ipa_opt_pass.
14541         (apply_inline): Turn into ....
14542         (inline_transform): ... this one.
14543         (inline_generate_summary): New function.
14544         (pass_apply_inline): Remove.
14545         * function.h (ipa_opt_pass): Forward declare structure; typedef;
14546         vector.
14547         (struct function): Add ipa_transforms_to_apply.
14548         * passes.c (register_one_dump_file): Work on IPA_PASS.
14549         (init_optimization_passes): Remove pass_inline_parameters and
14550         pass_apply_inline.
14551         (pass_init_dump_file, pass_fini_dump_file): Break out from ....
14552         (execute_one_pass) ... here; apply transforms when possible.
14553         (add_ipa_transform_pass, execute_ipa_summary_asses,
14554         execute_one_ipa_transform_pass): New.
14555         (execute_ipa_pass_list): Update for IPA_PASS type.
14556
14557 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
14558
14559         * config/i386/i386.c (ix86_builtin_type): Add
14560         V2DI_FTYPE_V2DI_V16QI, V2DI_FTYPE_V2DI_UINT_UINT and
14561         V2DI_FTYPE_V2DI_V2DI_UINT_UINT.
14562         (bdesc_args): Add SSE4a builtins.
14563         (ix86_init_mmx_sse_builtins): Updated.
14564         (ix86_expand_args_builtin): Likewise.
14565         (ix86_expand_builtin): Likewise.
14566
14567 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
14568
14569         * config/i386/i386.c (ix86_builtin_type): Add
14570         V8HI_FTYPE_V8HI_V8HI_COUNT, V8HI_FTYPE_V8HI_SI_COUNT,
14571         V4SI_FTYPE_V4SI_V4SI_COUNT, V4SI_FTYPE_V4SI_SI_COUNT,
14572         V4HI_FTYPE_V4HI_V4HI_COUNT, V4HI_FTYPE_V4HI_SI_COUNT,
14573         V2DI_FTYPE_V2DI_V2DI_COUNT, V2DI_FTYPE_V2DI_SI_COUNT,
14574         V2SI_FTYPE_V2SI_V2SI_COUNT, V2SI_FTYPE_V2SI_SI_COUNT,
14575         V1DI_FTYPE_V1DI_V1DI_COUNT, V1DI_FTYPE_V1DI_SI_COUNT,
14576         V8HI_FTYPE_V8HI_INT, V4SI_FTYPE_V4SI_INT, V4HI_FTYPE_V4HI_INT,
14577         V2DI2TI_FTYPE_V2DI2TI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT
14578         and DI_FTYPE_DI_DI_INT.
14579         (bdesc_args): Add MMX/SSE shift, shuffle and palignr builtins.
14580         (ix86_init_mmx_sse_builtins): Updated.
14581         (ix86_expand_args_builtin): Likewise.
14582         (ix86_expand_builtin): Likewise.
14583         (ix86_expand_binop_imm_builtin): Removed.
14584
14585         * doc/extend.texi: Correct __builtin_ia32_palignr128.
14586
14587 2008-04-30  Richard Guenther  <rguenther@suse.de>
14588
14589         PR tree-optimization/32921
14590         * tree-ssa-loop-im.c (mem_refs_may_alias_p): Disambiguate with TBAA.
14591
14592 2008-04-30  Richard Sandiford  <rsandifo@nildram.co.uk>
14593
14594         * config/arm/arm.c (arm_unwind_emit): Use
14595         crtl->all_throwers_are_sibcalls instead of
14596         cfun->all_throwers_are_sibcalls.
14597         (arm_output_fn_unwind): Likewise.
14598         * config/frv/frv.c (frv_stack_info): Use crtl->uses_pic_offset_table
14599         instead of cfun->uses_pic_offset_table.
14600         (frv_expand_prologue): Likewise.
14601         (frv_frame_pointer_required): Likewise.
14602         (frv_expand_fdpic_call): Likewise.
14603         (frv_emit_movsi): Likewise.
14604         * config/iq2000/iq2000.c (iq2000_expand_prologue): Use
14605         cfun->returns_pcc_struct instead of
14606         current_function_returns_pcc_struct.
14607         * config/m32c/m32c.c (need_to_save): Use crtl->calls_eh_return
14608         instead of cfun->calls_eh_return.
14609         (m32c_pushm_popm): Likewise.
14610         * config/xtensa/xtensa.h (cfun->calls_alloca): Remove bogus
14611         "extern" declaration.
14612
14613 2008-04-30  Richard Guenther  <rguenther@suse.de>
14614
14615         PR tree-optimization/21636
14616         * tree-ssa-ccp.c (ccp_fold): Handle &p->x with p being a
14617         constant address.
14618         (evaluate_stmt): Print the likely value.
14619         (ccp_visit_stmt): Avoid excessive vertical spacing.
14620
14621 2008-04-30  Rafael Espíndola  <espindola@google.com>
14622
14623         * builtins.c (fold_call_expr): Return realret.
14624         * tree-ssa-threadedge.c
14625         (record_temporary_equivalences_from_stmts_at_dest): Ignore calls to
14626         __builtin_object_size.
14627
14628 2008-04-30  Seongbae Park  <seongbae.park@gmail.com>
14629
14630         * gcc.c (wrapper_string): New variable.
14631         (insert_wrapper): New function.
14632         (execute): New option -wrapper.
14633         * doc/invoke.texi (Overall Options): New driver option -wrapper.
14634
14635 2008-04-30  Nathan Froyd  <froydnj@codesourcery.com>
14636
14637         * config/rs6000/crtresgpr.asm, config/rs6000/crtresxgpr.asm,
14638         config/rs6000/crtsavgpr.asm, config/rs6000/crtresfpr.asm,
14639         config/rs6000/crtresxfpr.asm, config/rs6000/crtsavfpr.asm: Break out
14640         from...
14641         * config/rs6000/crtsavres.asm: ...here.  Remove unneeded file.
14642         * config/rs6000/e500crtres32gpr.asm, config/rs6000/e500crtres64gpr.asm,
14643         config/rs6000/e500crtres64gprctr.asm,
14644         config/rs6000/e500crtrest32gpr.asm, config/rs6000/e500crtrest64gpr.asm,
14645         config/rs6000/e500crtresx32gpr.asm, config/rs6000/e500crtresx64gpr.asm,
14646         config/rs6000/e500crtsav32gpr.asm, config/rs6000/e500crtsav64gpr.asm,
14647         config/rs6000/e500crtsav64gprctr.asm,
14648         config/rs6000/e500crtsavg32gpr.asm, config/rs6000/e500crtsavg64gpr.asm,
14649         config/rs6000/e500crtsavg64gprctr.asm: New files.
14650         * config/rs6000/t-ppccomm: Add build rules for new files.
14651         (LIB2FUNCS_STATIC_EXTRA): Add new files.
14652         * config/rs6000/t-netbsd: Add build rules for new files.
14653         (LIB2FUNCS_STATIC_EXTRA): New variable.
14654         * config/rs6000/sysv4.h (ENDFILE_SPEC): Don't include crtsavres.o
14655         (CRTSAVRES_DEFAULT_SPEC): Likewise.
14656         * config/rs6000/netbsd.h (ENDFILE_SPEC): Likewise.
14657
14658 2008-04-30  H.J. Lu  <hongjiu.lu@intel.com>
14659
14660         * config/i386/i386.c (ix86_builtin_type): Add
14661         FLOAT128_FTYPE_FLOAT128_FLOAT128, V16QI_FTYPE_V16QI_V16QI,
14662         V16QI_FTYPE_V8HI_V8HI, V8QI_FTYPE_V8QI_V8QI,
14663         V8QI_FTYPE_V4HI_V4HI, V8HI_FTYPE_V8HI_V8HI,
14664         V8HI_FTYPE_V16QI_V16QI, V8HI_FTYPE_V4SI_V4SI,
14665         V4SI_FTYPE_V4SI_V4SI, V4SI_FTYPE_V8HI_V8HI,
14666         V4SI_FTYPE_V4SF_V4SF, V4SI_FTYPE_V2DF_V2DF,
14667         V4HI_FTYPE_V4HI_V4HI, V4HI_FTYPE_V8QI_V8QI,
14668         V4HI_FTYPE_V2SI_V2SI, V4SF_FTYPE_V4SF_V4SF,
14669         V4SF_FTYPE_V4SF_V4SF_SWAP, V4SF_FTYPE_V4SF_V2SI,
14670         V4SF_FTYPE_V4SF_V2DF, V4SF_FTYPE_V4SF_DI,
14671         V4SF_FTYPE_V4SF_SI, V2DI_FTYPE_V2DI_V2DI,
14672         V2DI_FTYPE_V16QI_V16QI, V2DI_FTYPE_V4SI_V4SI,
14673         V2DI_FTYPE_V2DF_V2DF, V2SI_FTYPE_V2SI_V2SI,
14674         V2SI_FTYPE_V4HI_V4HI, V2SI_FTYPE_V2SF_V2SF,
14675         V2DF_FTYPE_V2DF_V2DF, V2DF_FTYPE_V2DF_V2DF_SWAP,
14676         V2DF_FTYPE_V2DF_V4SF, V2DF_FTYPE_V2DF_DI,
14677         V2DF_FTYPE_V2DF_SI, V2SF_FTYPE_V2SF_V2SF,
14678         V1DI_FTYPE_V1DI_V1DI, V1DI_FTYPE_V8QI_V8QI and
14679         V1DI_FTYPE_V2SI_V2SI.
14680         (bdesc_2arg): Moved to ...
14681         (bdesc_args): Here.
14682         (ix86_init_mmx_sse_builtins): Updated.
14683         (ix86_expand_args_builtin): Updated.  Take a pointer
14684         to const struct builtin_description.  Handle comparison
14685         builtin functions.
14686         (ix86_expand_sse_compare): Take a new argument for swapping operands.
14687         (ix86_expand_builtin): Updated.
14688
14689         * config/i386/sse.md (ssse3_pmaddubswv8hi3): Renamed to ...
14690         (ssse3_pmaddubsw128): This.
14691         (ssse3_pmaddubswv4hi3): Renamed to ...
14692         (ssse3_pmaddubsw): This.
14693
14694         * doc/extend.texi (__builtin_ia32_packsswb128): Correct prototype.
14695         (__builtin_ia32_packssdw128): Likewise.
14696         (__builtin_ia32_packuswb128): Likewise.
14697         (__builtin_ia32_pmaddubsw): Likewise.
14698         (__builtin_ia32_pmaddubsw128): Likewise.
14699
14700 2008-04-30  Richard Guenther  <rguenther@suse.de>
14701
14702         PR tree-optimization/14847
14703         * tree-ssa-ifcombine.c (get_name_for_bit_test): New helper function.
14704         (recognize_bits_test): Use it.
14705         (recognize_single_bit_test): Likewise.
14706
14707 2008-04-30  Martin Jambor  <mjambor@suse.cz>
14708
14709         * ipa-cp.c (ipcp_init_stage): Calls ipa_set_called_with_variable_arg
14710         instead of setting number of formal parameters to zero.
14711         (ipcp_init_stage): Do not set the number of actual parameters to zero
14712         either.
14713         (ipcp_propagate_stage): Explicitly skipping all calls to nodes
14714         which are called with variable number of arguments.
14715         (ipcp_insert_stage): Explicitely skipping all nodes which are
14716         called with variable number of arguments.
14717         (ipcp_callsite_param_print): Skipps callsites to nodes with varaible
14718         number of parameters.
14719
14720         * ipa-prop.h (struct ipa_node_params): Added flag
14721         called_with_var_arguments
14722         (ipa_set_param_count): Added.  Changed sole setter to use it.
14723         (ipa_get_param_count): Added.  All readers of param_count
14724         converted to use it instead.
14725         (ipa_set_called_with_variable_arg): Added.
14726         (ipa_is_called_with_var_arguments): Added.
14727         (ipa_get_ith_param): Added.  All readers of param_decls converted
14728         to use it instead.
14729         (ipa_set_cs_argument_count): Added, sole writer to argument_count
14730         changed to use it.
14731         (ipa_get_cs_argument_count): Added, all readers of argument_count
14732         changed to cal it.
14733         (ipa_get_ith_jump_func): Added. Accessors of jump values changed
14734         to use it.
14735
14736         * ipa-prop.h (struct ipcp_formal): Renamed to ipcp_lattice
14737         (struct ipcp_lattice): Renamed cval_type to type
14738         (struct ipa_node_params): ipcp_cval renamed to ipcp_lattices
14739
14740         * ipa-cp.c (ipcp_cval_get_cvalue): Changed return value to tree
14741         (ipcp_cval_set_cvalue): Changed type of parameter value to tree
14742         (ipcp_insert_stage): Changed the type of variable cvalue to tree
14743         (ipcp_replace_map_create): Changed the type of parameter cvalue to tree
14744         (build_const_val): Changed the type of parameter cvalue to tree
14745         (ipcp_propagate_const): Changed the type of parameter cvalue to tree
14746         (ipcp_method_cval_set_cvalue_type): Renamed parameter cval_type1 to type
14747
14748         * ipa-prop.h (struct ipcp_formal): Replaced cvalue with tree called
14749         constant
14750
14751         * ipa-prop.c (ipa_methodlist_init): Renamed to ipa_init_func_list
14752         (ipa_methodlist_not_empty): Removed, the sole user now checks directly
14753         (ipa_add_method): Renamed to ipa_push_func_to_list
14754         (ipa_remove_method): Renamed to ipa_pop_func_from_list
14755         (ipa_callsite_param_count): Removed.
14756         (ipa_callsite_param_count_set): Removed.
14757         (ipa_callsite_param): Removed.
14758         (ipa_callsite_callee): Removed.
14759         (ipa_callsite_compute_param): Renamed to ipa_compute_jump_functions
14760         (ipa_callsite_compute_count): Renamed to ipa_count_arguments
14761         (ipa_method_formal_count): Removed.
14762         (ipa_method_formal_count_set): Removed.
14763         (ipa_method_get_tree): Removed.
14764         (ipa_method_tree_map_create): Removed.
14765         (ipa_method_compute_tree_map): Renamed to ipa_create_param_decls_array
14766         (ipa_create_param_decls_array): Creates the array itself
14767         (ipa_create_param_decls_array): Temporary variable info instead of
14768         a few dereferences.
14769         (ipa_method_formal_compute_count): Renamed to ipa_count_formal_params
14770         (ipa_method_compute_modify): Renamed to ipa_detect_param_modifications
14771         (get_type): Removed.
14772         (ipa_jf_get_info_type): Removed.
14773         (ipa_node_create): Renamed to ipa_create_node_params
14774         (ipa_free): Renamed to ipa_free_all_node_params
14775         (ipa_nodes_create): Renamed to ipa_create_all_node_params
14776         (ipa_edges_create): Renamed to ipa_create_all_edge_args
14777         (ipa_edges_free): Renamed to ipa_free_all_edge_args
14778         (ipa_nodes_free): Integrated into ipa_free_all_node_params and removed
14779         (ipa_free_all_node_params): Deallocation to jump_functions moved to
14780         ipa_free_all_edge_args
14781         (ipa_method_tree_print): Renamed to ipa_print_all_tree_maps
14782         (ipa_method_modify_print): Renamed to ipa_print_all_params_modified
14783         (ipa_create_methodlist_node): Removed.
14784         (ipa_methodlist_method): Removed.
14785         (ipa_methodlist_method_set): Removed.
14786         (ipa_methodlist_next_method): Removed.
14787         (ipa_methodlist_next_method_set): Removed.
14788         (ipa_method_is_modified): Removed.
14789         (ipa_method_modify_create): Removed.
14790         (ipa_method_modify_init): Temporary variable info instead of a few
14791         dereferences.
14792         (ipa_detect_param_modifications): Temporary variable info instead of
14793         a few dereferences.
14794         (ipa_compute_jump_functions): Temporary variable info instead of
14795         a few dereferences.
14796         (ipa_method_modify_set): Removed.
14797         (ipa_method_tree_map): Renamed to ipa_get_param_decl_index
14798         (ipa_get_param_decl_index): Now accepts struct ipa_node_params rather
14799         than craph_node as the first parameter.
14800         (ipa_method_modify_stmt): Renamed to ipa_check_stmt_modifications
14801         (ipa_method_modify_init): Removed.
14802         (ipa_compute_jump_functions): Added a temp variable instead of
14803         repeatadly dereferencing the cgraph_edge.aux pointer
14804         (ipa_callsite_param_set_type): Removed.
14805         (ipa_compute_jump_functions): i renamed to index and moved to
14806         an inner block
14807         (ipa_callsite_param_set_info_type_formal): Removed.
14808         (ipa_callsite_param_set_info_type): Removed.
14809         (ipa_callsite_param_map_create): Removed.
14810         (ipa_callsite_tree): Removed.
14811         (ipa_callsite_caller): Removed.
14812         (ipa_pop_func_from_list): return_method removed to return_func
14813
14814         * ipa-prop.h (enum cvalue_type): Renamed to ipa_lattice_type,
14815         prefixed all values with IPA_. Changed all users.
14816         (enum jump_func_type): Rnamed UNKNOWN_IPATYPE to IPA_UNKNOWN,
14817         CONST_IPATYPE to IPA_CONST, CONST_IPATYPE_REF to IPA_CONST_REF
14818         and FORMAL_IPATYPE IPA_PASS_THROUGH.
14819         (union parameter_info): Renamed to jump_func_value.
14820         (union jump_func_value): Renamed value to constant
14821         (struct ipa_jump_func): Renamed info_type to value
14822         (struct ipa_node): Renamed to ipa_node_params
14823         (struct ipa_node_params): Renamed ipa_arg_num to param_count
14824         (struct ipa_node_params): Renamed ipa_param_tree to param_decls
14825         (struct ipa_node_params): Renamed ipa_mod to modified_flags
14826         (struct ipa_edge): Renamed to ipa_edge_args
14827         (struct ipa_edge_args): Renamed ipa_param_num to argument_count
14828         (struct ipa_edge_args): Renamed ipa_param_map to jump_functions
14829         (struct ipa_methodlist): Renamed to ipa_func_list
14830         (struct ipa_func_list): method_p renamed to node, next_method
14831         renamed to next
14832         (ipa_methodlist_p): Removed, switched all users to struct pointer
14833         (IS_VALID_TREE_MAP_INDEX): Renamed to IS_VALID_JUMP_FUNC_INDEX
14834
14835 2008-04-30  Alan Modra  <amodra@bigpond.net.au>
14836
14837         * config/rs6000/rs6000.c (ALWAYS_RESTORE_ALTIVEC_BEFORE_POP): Define.
14838         (rs6000_emit_epilogue): Use backchain to restore only when we
14839         have a large frame.  Make use of frame pointer to restore if we
14840         have one.  Handle ALWAYS_RESTORE_ALTIVEC_BEFORE_POP.
14841
14842 2008-04-29  Paolo Bonzini  <bonzini@gnu.org>
14843
14844         * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
14845         Add mode to zero_extract.
14846         (sign bit tests peepholes): (Ditto.).
14847
14848 2008-04-29  H.J. Lu  <hongjiu.lu@intel.com>
14849
14850         * config/i386/i386.c (ix86_builtins): Replace Prescott New
14851         Instructions in comments with SSE3.
14852         (ix86_builtin_type): This.  Add FLOAT128_FTYPE_FLOAT128,
14853         INT64_FTYPE_V4SF, INT64_FTYPE_V2DF, INT_FTYPE_V16QI,
14854         INT_FTYPE_V8QI, INT_FTYPE_V4SF, INT_FTYPE_V2DF,
14855         V16QI_FTYPE_V16QI, V8HI_FTYPE_V8HI, V8HI_FTYPE_V16QI,
14856         V8QI_FTYPE_V8QI, V4SI_FTYPE_V4SI, V4SI_FTYPE_V16QI,
14857         V4SI_FTYPE_V4SF, V4SI_FTYPE_V8HI, V4SI_FTYPE_V2DF,
14858         V4HI_FTYPE_V4HI, V4SF_FTYPE_V4SF, V4SF_FTYPE_V4SI,
14859         V4SF_FTYPE_V2DF, V2DI_FTYPE_V2DI, V2DI_FTYPE_V16QI,
14860         V2DI_FTYPE_V8HI, V2DI_FTYPE_V4SI, V2DF_FTYPE_V2DF,
14861         V2DF_FTYPE_V4SI, V2DF_FTYPE_V4SF, V2DF_FTYPE_V2SI,
14862         V2SI_FTYPE_V2SI, V2SI_FTYPE_V4SF, V2SI_FTYPE_V2SF,
14863         V2SI_FTYPE_V2DF, V2SF_FTYPE_V2SF and V2SF_FTYPE_V2SI.
14864         (bdesc_sse_args): Renamed to ...
14865         (bdesc_args): This.  Add IX86_BUILTIN_PF2ID, IX86_BUILTIN_PFRCP,
14866         IX86_BUILTIN_PFRSQRT, IX86_BUILTIN_PI2FD, IX86_BUILTIN_PF2IW,
14867         IX86_BUILTIN_PSWAPDSI, IX86_BUILTIN_PSWAPDSF and
14868         IX86_BUILTIN_FABSQ.
14869         (bdesc_1arg): Moved to ...
14870         (bdesc_args): Here.
14871         (ix86_init_mmx_sse_builtins): Updated.  Replace Prescott New
14872         Instructions in comments with SSE3.
14873         (ix86_expand_sse_operands_builtin): Renamed to ...
14874         (ix86_expand_args_builtin): This.  Updated.
14875         (ix86_expand_unop1_builtin): Update comments.
14876         (ix86_expand_builtin): Updated.
14877
14878 2008-04-29  Richard Guenther  <rguenther@suse.de>
14879
14880         PR tree-optimization/36078
14881         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
14882         Update virtual SSA form after cleaning up the CFG.
14883
14884 2008-04-29  Richard Guenther  <rguenther@suse.de>
14885
14886         PR middle-end/15255
14887         * fold-const.c (fold_binary): Fold (A + A) * C to A * 2*C.
14888
14889 2008-04-29  Richard Guenther  <rguenther@suse.de>
14890
14891         * tree-ssa-alias.c (finalize_ref_all_pointers): Remove.
14892         (compute_may_aliases): Do not call finalize_ref_all_pointers.
14893         (compute_flow_insensitive_aliasing): Do not treat
14894         PTR_IS_REF_ALL pointers special.
14895         (get_smt_for): Likewise.
14896         (may_alias_p): Re-structure.
14897         (is_escape_site): A ref-all pointer conversion is not an escape site.
14898         * tree-ssa-structalias.c (find_what_p_points_to): Do not treat
14899         PTR_IS_REF_ALL pointers special.
14900         * tree-ssa-structalias.h (struct alias_info): Remove
14901         ref_all_symbol_mem_tag field.
14902         (PTR_IS_REF_ALL): Remove.
14903
14904 2008-04-29  Richard Guenther  <rguenther@suse.de>
14905
14906         PR middle-end/36077
14907         * fold-const.c (extract_muldiv_1): In combining division constants
14908         make sure to never overflow.
14909
14910 2008-04-29  Nick Clifton  <nickc@redhat.com>
14911
14912         * doc/tm.texi (RETURN_ADDR_RTX): Fix typo.
14913
14914 2008-04-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14915
14916         PR bootstrap/35169
14917         * optc-gen.awk: Work around HP-UX/IA awk bug.
14918
14919 2008-04-28  Danny Smith  <dannysmith@users.sourceforge.net>
14920
14921         * config/i386/cygming-crtend.c (register_frame_ctor): Revert my
14922         2008-04-25 commit.
14923
14924 2008-04-28  Uros Bizjak  <ubizjak@gmail.com>
14925
14926         PR target/36073
14927         * config/i386/i386.md
14928         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit):
14929         Change operand 1 predicate to nonimmediate_operand.
14930
14931 2008-04-28  Jakub Jelinek  <jakub@redhat.com>
14932
14933         PR debug/36060
14934         * dwarf2out.c (struct die_struct): Mark as chain_circular through
14935         die_sub field.
14936         * gengtype.c (walk_type, write_func_for_structure): Handle
14937         chain_circular.
14938         * doc/gty.texi: Document chain_circular.
14939
14940 2008-04-28  Richard Guenther  <rguenther@suse.de>
14941
14942         PR tree-optimization/36066
14943         * tree-vrp.c (execute_vrp): Cleanup the CFG only after finalizing
14944         SCEV and loop.
14945
14946 2008-04-28  Uros Bizjak  <ubizjak@gmail.com>
14947
14948         PR target/36064
14949         * config/i386/i386.md
14950         (floatdi<X87MODEF:mode>2_i387_with_xmm splitters):
14951         Use match_scratch instead of match_operand for operands 3 and 4.
14952
14953 2008-04-27  Richard Guenther  <rguenther@suse.de>
14954
14955         PR tree-optimization/18754
14956         PR tree-optimization/34223
14957         * tree-pass.h (pass_complete_unrolli): Declare.
14958         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Print
14959         loop size before and after unconditionally of UL_NO_GROWTH in effect.
14960         Rewrite loop into loop closed SSA form if it is not already.
14961         (tree_unroll_loops_completely): Re-structure to iterate over
14962         innermost loops with intermediate CFG cleanups.
14963         Unroll outermost loops only if requested or the code does not grow
14964         doing so.
14965         * tree-ssa-loop.c (gate_tree_vectorize): Don't shortcut if no
14966         loops are available.
14967         (tree_vectorize): Instead do so here.
14968         (tree_complete_unroll): Also unroll outermost loops.
14969         (tree_complete_unroll_inner): New function.
14970         (gate_tree_complete_unroll_inner): Likewise.
14971         (pass_complete_unrolli): New pass.
14972         * tree-ssa-loop-manip.c (find_uses_to_rename_use): Only record
14973         uses outside of the loop.
14974         (tree_duplicate_loop_to_header_edge): Only verify loop-closed SSA
14975         form if it is available.
14976         * tree-flow.h (tree_unroll_loops_completely): Add extra parameter.
14977         * passes.c (init_optimization_passes): Schedule complete inner
14978         loop unrolling pass before the first CCP pass after final inlining.
14979
14980 2008-04-27  Nathan Sidwell  <nathan@codesourcery.com>
14981
14982         * targhooks.h (default_emutls_var_fields,
14983         default_emutls_var_init): Declare.
14984         * tree.h (DECL_THREAD_LOCAL): Compare against TLS_MODEL_REAL.
14985         * target.h (struct gcc_target): Add struct emutls member.
14986         * target-def.h (TARGET_EMUTLS_GET_ADDRESS,
14987         TARGET_EMUTLS_REGISTER_COMMON, TARGET_EMUTLS_VAR_SECTION,
14988         TARGET_EMUTLS_TMPL_SECTION, TARGET_EMUTLS_VAR_PREFIX,
14989         TARGET_EMUTLS_TMPL_PREFIX, TARGET_EMUTLS_VAR_FIELDS,
14990         TARGET_EMUTLS_VAR_INIT, TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS,
14991         TARGET_EMUTLS_VAR_ALIGN_FIXED, TARGET_EMUTLS): New.
14992         (TARGET_INITIALIZER): Add TARGET_EMUTLS.
14993         * builtins.def (BUILT_IN_EMUTLS_GET_ADDRESS,
14994         BUILT_IN_EMUTLS_REGISTER_COMMON): Get name from targetm structure.
14995         * dwarf2out.c (loc_descriptor_from_tree_1): Check if emutls can
14996         emit debug information.
14997         * coretypes.h (tls_model): Add TLS_MODEL_EMULATED, TLS_MODEL_REAL.
14998         * varasm.c: Include targhooks.h.
14999         (emutls_object_section, emutls_tmpl_section): New.
15000         (EMUTLS_VAR_PREFIX, EMUTLS_TMPL_PREFIX): Remove.
15001         (EMUTLS_SEPARATOR): New.
15002         (prefix_name): New.
15003         (get_emutls_object_name): New.
15004         (default_emutls_var_fields): New, broken out of ...
15005         (get_emutls_object_type): ... here.  Adjust to use target hooks.
15006         (get_emutls_init_templ_addr): Adjust to use target hooks.
15007         (emutls_decl): Adjust to use target hooks.
15008         (emutls_finish): Likewise.
15009         (default_emutls_var_init): New, broken out of ...
15010         (assemble_variable): ... here.  Adjust to use target hooks.
15011         * output.h (enum section_category): Add SECCAT_EMUTLS_VAR,
15012         SECCAT_EMUTLS_TMPL.
15013         * c-common.c (handle_section_attribute): Prevent overriding
15014         sections for emulated tls with special sections.
15015         * config/i386/i386.c (x86_64_elf_select_section): Add
15016         SECCAT_EMUTLS_VAR and SECCAT_EMUTLS_TMPL.
15017         (x86_64_elf_unique_section): Likewise.
15018         * config/vxworks.c: Include tree.h.
15019         (vxworks_emutls_var_fields, vxworks_emutls_var_init): New.
15020         (vxworks_override_options): Set TLS scheme.
15021         * doc/tm.texi (Emulated TLS): New node.
15022
15023 2008-04-26  Simon Baldwin <simonb@google.com>
15024
15025         PR c/35652
15026         * builtins.c (c_strlen): Suppressed multiple warnings that can occur
15027         with propagated string constants.
15028
15029 2008-04-26  Uros Bizjak  <ubizjak@gmail.com>
15030
15031         * config/i386/i386.md (fix_trunc<mode>_i387_fisttp_with_temp): Use 'X'
15032         constraint for operand 2 when operand 0 is memory operand.
15033         (fix_truncdi_i387_with_temp): : Use 'X' constraint for operand 4 when
15034         operand 0 is memory operand.
15035         (fix_trunc<mode>_i387_with_temp): Ditto.
15036         (*floatsi<mode>2_vector_mixed_with_temp): Use 'X' constraint for
15037         operand 2 when operand 1 is memory operand.
15038         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_with_temp): Ditto.
15039         (*floatsi<mode>2_vector_sse_with_temp): Ditto.
15040         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_with_temp): Ditto.
15041         (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp): Ditto.
15042         (floatdi<X87MODEF:mode>2_i387_with_xmm): Use 'X' constraint for
15043         operands 2,3 and 4 when operand 1 is memory operand.
15044         (fistdi2_with_temp): Use 'X' constraint for operand 2 when operand 0
15045         is memory operand.
15046         (fistdi2_floor_with_temp): Ditto.
15047         (fist<mode>2_floor_with_temp): Ditto.
15048         (fistdi2_ceil_with_temp): Ditto.
15049         (fist<mode>2_ceil_with_temp): Ditto.
15050         (*truncdfsf_fast_mixed): Merge alternatives 0 and 1.
15051
15052 2008-04-26  David Daney  <ddaney@avtrex.com>
15053
15054         * config/mips/mips.md (UNSPEC_COMPARE_AND_SWAP_12): New
15055         unspec_volitile.
15056         (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_EXCHANGE,
15057         UNSPEC_MEMORY_BARRIER, UNSPEC_SET_GOT_VERSION,
15058         UNSPEC_UPDATE_GOT_VERSION): Renumber.
15059         (sync_compare_and_swap<mode>): New expand for QI and HI modes.
15060         (compare_and_swap_12): New insn.
15061         * config/mips/mips-protos.h (mips_expand_compare_and_swap_12): Declare.
15062         * config/mips/mips.c (mips_force_binary): New function.
15063         (mips_emit_int_order_test, mips_expand_synci_loop): Use it.
15064         (mips_expand_compare_and_swap_12): New function.
15065         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP_12): New macro.
15066
15067 2008-04-25  Jan Hubicka  <jh@suse.cz>
15068
15069         PR testsuite/35843
15070         * cfgexpand.c (pass_expand): Turn into RTL pass.
15071         * passes.c (execute_one_pass): Do pass typechecking after execution.
15072         * tree-pass.h (pass_expand): Turn into RTL pass.
15073
15074         * function.h (struct rtl_data): Move here fields
15075         accesses_prior_frames, calls_eh_return, saves_all_registers,
15076         has_nonlocal_goto, has_asm_statement, is_thunk,
15077         all_throwers_are_sibcalls, limit_stack, profile, uses_const_pool,
15078         uses_pic_offset_table, uses_eh_lsda, tail_call_emit,
15079         arg_pointer_save_area_init from struct function; turn into bool.
15080         (struct function): Move
15081         calls_eh_return, saves_all_registers, has_nonlocal_goto,
15082         has_asm_statement, is_thunk, all_throwers_are_sibcalls, limit_stack,
15083         profile, uses_const_pool, uses_pic_offset_table, uses_eh_lsda,
15084         tail_call_emit, arg_pointer_save_area_init
15085         into struct rtl_data.  Remove recursive_call_emit and gimplified flags.
15086         (current_function_returns_struct, current_function_returns_pcc_struct,
15087         current_function_calls_setjmp, current_function_calls_alloca,
15088         current_function_accesses_prior_frames,
15089         current_function_calls_eh_return, current_function_is_thunk,
15090         current_function_stdarg, current_function_profile,
15091         current_function_limit_stack, current_function_uses_pic_offset_table,
15092         current_function_uses_const_pool, current_function_has_nonlocal_label,
15093         current_function_saves_all_registers,
15094         current_function_has_nonlocal_goto,
15095         current_function_has_asm_statement): Remove accesor macros.
15096         * ra-conflict.c (global_conflicts): Update.
15097         * tree-tailcall.c (suitable_for_tail_opt_p): Update.
15098         (suitable_for_tail_call_opt_p): Update.
15099         * builtins.c (expand_builtin_return_addr): Update.
15100         (expand_builtin_setjmp_setup): Update.
15101         (expand_builtin_nonlocal_goto): Update.
15102         * final.c (final_start_function): Update.
15103         (profile_function): Update.
15104         (leaf_function_p): Update.
15105         (only_leaf_regs_used): Update.
15106         * df-scan.c (df_get_exit_block_use_set): Update.
15107         * dojump.c (clear_pending_stack_adjust): Update.
15108         * tree-stdarg.c (gate_optimize_stdarg): Update.
15109         * gimple-low.c (lower_function_body): Update.
15110         * global.c (compute_regsets): Update.
15111         (global_alloc): Update.
15112         * dwarf2out.c (dwarf2out_begin_prologue): Update.
15113         * expr.c (expand_assignment): Update.
15114         * dse.c (dse_step0): Update.
15115         (dse_step1): Update.
15116         * c-decl.c (store_parm_decls): Update.
15117         * local-alloc.c (combine_regs): Update.
15118         (find_free_reg): Update.
15119         * function.c (assign_parms_augmented_arg_list): Update.
15120         (assign_parm_find_data_types): Update.
15121         (assign_parms): Update.
15122         (allocate_struct_function): Update.
15123         (expand_function_start): Update.
15124         (expand_function_end): Update.
15125         (get_arg_pointer_save_area): Update.
15126         (thread_prologue_and_epilogue_insns): Update.
15127         (rest_of_match_asm_constraints): Update.
15128         * stor-layout.c (variable_size): Update.
15129         * gcse.c (gcse_main): Update.
15130         (bypass_jumps): Update.
15131         * gimplify.c (gimplify_function_tree): Update.
15132         * calls.c (emit_call_1): Update.
15133         (expand_call): Update.
15134         * bt-load.c (compute_defs_uses_and_gen): Update.
15135         * except.c (sjlj_assign_call_site_values): Update.
15136         (sjlj_emit_function_enter): Update.
15137         (can_throw_external): Update.
15138         (set_nothrow_function_flags): Update.
15139         (expand_builtin_unwind_init): Update.
15140         (expand_eh_return): Update.
15141         (convert_to_eh_region_ranges): Update.
15142         (output_function_exception_table): Update.
15143         * emit-rtl.c (gen_tmp_stack_mem): Update.
15144         * cfgexpand.c (expand_used_vars): Update.
15145         (tree_expand_cfg): Update.
15146         * cfgcleanup.c (rest_of_handle_jump): Update.
15147         * explow.c (allocate_dynamic_stack_space): Update.
15148         * varasm.c (assemble_start_function): Update.
15149         (force_const_mem): Update.
15150         (mark_constant_pool): Update.
15151         * tree-optimize.c (tree_rest_of_compilation): Update.
15152         * stack-ptr-mod.c (notice_stack_pointer_modification): Update.
15153         * tree-cfg.c (notice_special_calls): Update.
15154         (is_ctrl_altering_stmt): Update.
15155         (tree_can_make_abnormal_goto): Update.
15156         (tree_purge_dead_abnormal_call_edges): Update.
15157         * config/alpha/predicates.md: Update.
15158         * config/alpha/alpha.c (alpha_sa_mask): Update.
15159         (alpha_sa_size): Update.
15160         (alpha_does_function_need_gp): Update.
15161         (alpha_expand_prologue): Update.
15162         (alpha_start_function): Update.
15163         (alpha_output_function_end_prologue): Update.
15164         (alpha_expand_epilogue): Update.
15165         * config/frv/frv.c (frv_stack_info): Update.
15166         (frv_expand_epilogue): Update.
15167         * config/s390/s390.c (s390_regs_ever_clobbered): Update.
15168         (s390_register_info): Update.
15169         (s390_frame_info): Update.
15170         (s390_init_frame_layout): Update.
15171         (s390_can_eliminate): Update.
15172         (save_gprs): Update.
15173         * config/spu/spu.c (spu_split_immediate): Update.
15174         (need_to_save_reg): Update.
15175         (spu_expand_prologue): Update.
15176         (spu_expand_epilogue): Update.
15177         * config/sparc/sparc.md: Update.
15178         * config/sparc/sparc.c (eligible_for_return_delay): Update.
15179         (sparc_tls_got): Update.
15180         (legitimize_pic_address): Update.
15181         (sparc_emit_call_insn): Update.
15182         (sparc_expand_prologue): Update.
15183         (output_return): Update.
15184         (print_operand): Update.
15185         (sparc_function_ok_for_sibcall): Update.
15186         * config/sparc/sparc.h (EXIT_IGNORE_STACK): Update.
15187         * config/m32r/m32r.md: Update.
15188         * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Update.
15189         (m32r_compute_frame_size): Update.
15190         (m32r_expand_prologue): Update.
15191         (m32r_expand_epilogue): Update.
15192         (m32r_legitimize_pic_address): Update.
15193         * config/m32r/m32r.h (FRAME_POINTER_REQUIRED): Update.
15194         * config/i386/linux.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
15195         * config/i386/i386.c (ix86_frame_pointer_required): Update.
15196         (gen_push): Update.
15197         (ix86_save_reg): Update.
15198         (ix86_compute_frame_layout): Update.
15199         (ix86_expand_prologue): Update.
15200         (ix86_expand_epilogue): Update.
15201         * config/sh/sh.c (output_stack_adjust): Update.
15202         (calc_live_regs): Update.
15203         (sh5_schedule_saves): Update.
15204         (sh_expand_prologue): Update.
15205         (sh_expand_epilogue): Update.
15206         (sh_setup_incoming_varargs): Update.
15207         (sh_allocate_initial_value): Update.
15208         (sh_get_pr_initial_val): Update.
15209         * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): Update.
15210         * config/sh/sh.md (label:): Update.
15211         * config/avr/avr.c (out_movhi_mr_r): Update.
15212         * config/crx/crx.h (enum): Update.
15213         * config/xtensa/xtensa.h (along): Update.
15214         * config/stormy16/stormy16.c Update.
15215         (xstormy16_compute_stack_layout): Update.
15216         * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Update.
15217         (fr30_expand_prologue): Update.
15218         * config/cris/cris.c (cris_conditional_register_usage): Update.
15219         (cris_reg_saved_in_regsave_area): Update.
15220         (cris_initial_frame_pointer_offset): Update.
15221         (cris_simple_epilogue): Update.
15222         (cris_expand_prologue): Update.
15223         (cris_expand_epilogue): Update.
15224         (cris_expand_pic_call_address): Update.
15225         (cris_asm_output_symbol_ref): Update.
15226         (cris_asm_output_label_ref): Update.
15227         * config/cris/cris.md Update.
15228         * config/iq2000/iq2000.c (compute_frame_size): Update.
15229         (iq2000_expand_epilogue): Update.
15230         * config/mt/mt.h (save_direction): Update.
15231         * config/mn10300/mn10300.c (mn10300_function_value): Update.
15232         * config/ia64/ia64.c (ia64_compute_frame_size): Update.
15233         (ia64_secondary_reload_class): Update.
15234         * config/m68k/m68k.c (m68k_save_reg): Update.
15235         (m68k_expand_prologue): Update.
15236         (m68k_expand_epilogue): Update.
15237         (legitimize_pic_address): Update.
15238         * config/rs6000/rs6000.c (rs6000_got_register): Update.
15239         (first_reg_to_save): Update.
15240         (first_altivec_reg_to_save): Update.
15241         (compute_vrsave_mask): Update.
15242         (compute_save_world_info): Update.
15243         (rs6000_stack_info): Update.
15244         (spe_func_has_64bit_regs_p): Update.
15245         (rs6000_ra_ever_killed): Update.
15246         (rs6000_emit_eh_reg_restore): Update.
15247         (rs6000_emit_allocate_stack): Update.
15248         (rs6000_emit_prologue): Update.
15249         (rs6000_emit_epilogue): Update.
15250         (rs6000_output_function_epilogue): Update.
15251         (output_profile_hook): Update.
15252         (rs6000_elf_declare_function_name): Update.
15253         * config/rs6000/rs6000.h (rs6000_args): Update.
15254         * config/rs6000/rs6000.md: Update.
15255         * config/mcore/mcore.c (mcore_expand_prolog): Update.
15256         * config/arc/arc.c (arc_output_function_epilogue): Update.
15257         * config/arc/arc.h (FRAME_POINTER_REQUIRED): Update.
15258         * config/darwin.c (machopic_function_base_name): Update.
15259         * config/score/score3.c (score3_compute_frame_size): Update.
15260         (rpush): Update.
15261         (rpop): Update.
15262         (score3_epilogue): Update.
15263         * config/score/score7.c (score7_compute_frame_size): Update.
15264         (score7_prologue): Update.
15265         (score7_epilogue): Update.
15266         * config/score/score.h (FRAME_POINTER_REQUIRED): Update.
15267         * config/arm/linux-elf.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
15268         * config/arm/arm.c (use_return_insn): Update.
15269         (require_pic_register): Update.
15270         (arm_load_pic_register): Update.
15271         (arm_compute_save_reg0_reg12_mask): Update.
15272         (arm_compute_save_reg_mask): Update.
15273         (thumb1_compute_save_reg_mask): Update.
15274         (output_return_instruction): Update.
15275         (arm_output_function_prologue): Update.
15276         (arm_output_epilogue): Update.
15277         (arm_get_frame_offsets): Update.
15278         (arm_expand_prologue): Update.
15279         (thumb_pushpop): Update.
15280         (thumb_exit): Update.
15281         (thumb1_expand_prologue): Update.
15282         (thumb1_expand_epilogue): Update.
15283         (arm_unwind_emit): Update.
15284         (arm_output_fn_unwind): Update.
15285         * config/arm/arm.h (FRAME_POINTER_REQUIRED): Update.
15286         * config/arm/arm.md: Update.
15287         * config/pa/pa.md: Update.
15288         * config/pa/pa.c (legitimize_pic_address): Update.
15289         (compute_frame_size): Update.
15290         (hppa_expand_prologue): Update.
15291         (hppa_expand_epilogue): Update.
15292         (borx_reg_operand): Update.
15293         * config/pa/pa.h (FRAME_POINTER_REQUIRED): Update.
15294         (HARD_REGNO_RENAME_OK): Update.
15295         * config/mips/mips.c (mips_global_pointer): Update.
15296         (mips_save_reg_p): Update.
15297         (mips_compute_frame_info): Update.
15298         (mips_frame_pointer_required): Update.
15299         (mips_expand_prologue): Update.
15300         (mips_expand_epilogue): Update.
15301         (mips_can_use_return_insn): Update.
15302         (mips_reorg_process_insns): Update.
15303         * config/v850/v850.c (compute_register_save_size): Update.
15304         * config/mmix/mmix.h (FRAME_POINTER_REQUIRED): Update.
15305         * config/mmix/mmix.c (along): Update.
15306         (mmix_expand_epilogue): Update.
15307         * config/bfin/bfin.c (legitimize_pic_address): Update.
15308         (must_save_p): Update.
15309         (stack_frame_needed_p): Update.
15310         (add_to_reg): Update.
15311         (bfin_expand_prologue): Update.
15312         * stmt.c (expand_asm_operands): Update.
15313         * reload1.c (reload): Update.
15314         (init_elim_table): Update.
15315
15316 2008-04-25  Bob Wilson  <bob.wilson@acm.org>
15317
15318         * optabs.c (expand_float): Fix REG_EQUAL for UNSIGNED_FLOAT libcall.
15319
15320 2008-04-25  H.J. Lu  <hongjiu.lu@intel.com>
15321
15322         * config/i386/sse.md (mov<mode>): Replace SSEMODEI with SSEMODE.
15323         (*mov<mode>_internal): Likewise.  Support V4SF and V2DF.
15324         (mov<mode>): Removed.
15325         (*movv4sf_internal): Likewise.
15326         (*movv2df_internal): Likewise.
15327
15328 2008-04-25  Pompapathi V Gadad <Pompapathi.V.Gadad@nsc.com>
15329
15330         * config.gcc (crx-*-elf): Remove deprecation.
15331
15332 2008-04-25  Danny Smith  <dannysmith@users.sourceforge.net>
15333
15334         * config/i386/cygming-crtend.c (register_frame_ctor): Register
15335         __gcc_deregister_frame with atexit.
15336         (deregister_frame_dtor): Remove.
15337
15338 2008-04-24  Nathan Froyd  <froydnj@codesourcery.com>
15339             Nathan Sidwell  <nathan@codesourcery.com>
15340
15341         * config/rs6000/rs6000.opt (mspe): Remove Var property.
15342         (misel): Likewise.
15343         * config/rs6000/rs6000.h (rs6000_spe): Declare.
15344         (rs6000_isel): Likewise.
15345         * config/rs6000/rs6000.c (rs6000_spe): New variable.
15346         (rs6000_isel): New variable.
15347         (rs6000_handle_option): Handle OPT_mspe and OPT_misel.
15348
15349 2008-04-24  Jakub Jelinek  <jakub@redhat.com>
15350
15351         PR c++/35758
15352         * c-common.c (handle_vector_size_attribute): Call
15353         lang_hooks.types.reconstruct_complex_type instead of
15354         reconstruct_complex_type.
15355         * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute): Likewise.
15356         * config/spu/spu.c (spu_handle_vector_attribute): Likewise.
15357         * langhooks.h (struct lang_hooks_for_types): Add
15358         reconstruct_complex_type hook.
15359         * langhooks-def.h (LANG_HOOKS_RECONSTRUCT_COMPLEX_TYPE): Define.
15360         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add it.
15361
15362 2008-04-24  Richard Guenther  <rguenther@suse.de>
15363
15364         * c-common.h (check_builtin_function_arguments): Declare.
15365         * c-common.c (validate_nargs): New function.
15366         (check_builtin_function_arguments): Likewise.
15367         * c-typeck.c (build_function_call): Call
15368         check_builtin_function_arguments.
15369         * builtins.c (fold_builtin_classify): Remove error reporting code.
15370         (fold_builtin_unordered_cmp): Likewise.
15371         (fold_builtin_1): Likewise.
15372         (fold_builtin_n): Likewise.
15373
15374 2008-04-24  Jakub Jelinek  <jakub@redhat.com>
15375
15376         PR tree-optimization/36008
15377         * fold-const.c (try_move_mult_to_index): If s == NULL, divide
15378         the original op1, rather than delta by step.
15379
15380 2008-04-22  Antoniu Pop  <antoniu.pop@gmail.com>
15381             Sebastian Pop  <sebastian.pop@amd.com>
15382
15383         * tree-parloops.c (take_address_of, eliminate_local_variables_1,
15384         eliminate_local_variables_stmt, eliminate_local_variables,
15385         separate_decls_in_loop_name, separate_decls_in_loop_stmt,
15386         separate_decls_in_loop, gen_parallel_loop): Make them work on a region
15387         of code delimited by two edges in the CFG.
15388         (separate_decls_in_loop_name): Renamed separate_decls_in_region_name.
15389         (separate_decls_in_loop_stmt): Renamed separate_decls_in_region_stmt.
15390         (separate_decls_in_loop): Renamed separate_decls_in_region.  Isolate
15391         the case of parallelisation of reductions.
15392         (expr_invariant_in_region_p): New.
15393
15394         * tree-flow.h (gather_blocks_in_sese_region): Declared.
15395         * tree-cfg.c (gather_blocks_in_sese_region): Extern.
15396
15397 2008-04-24  Ira Rosen  <irar@il.ibm.com>
15398             Richard Guenther  <rguenther@suse.de>
15399
15400         PR tree-optimization/36034
15401         * tree-vect-analyze.c (vect_analyze_group_access): SLP is
15402         incapable of dealing with loads with gaps.
15403
15404 2008-04-24  Rafael Espíndola  <espindola@google.com>
15405
15406         * tree-flow.h (vrp_evaluate_conditional): Change signature.
15407         * tree-ssa-propagate.c (fold_predicate_in): Update call to
15408         vrp_evaluate_conditional.
15409         * tree-vrp.c (vrp_evaluate_conditional_warnv): Remove.
15410         (vrp_evaluate_conditional): Split the cond argument.
15411         (vrp_visit_cond_stmt): Use vrp_evaluate_conditional_warnv_with_ops.
15412         (simplify_stmt_for_jump_threading): Update call to
15413         vrp_evaluate_conditional.
15414
15415 2008-04-24  Ira Rosen  <irar@il.ibm.com>
15416
15417         PR tree-optimization/35982
15418         * tree-vect-analyze.c (vect_check_interleaving): Check that the
15419         interleaved data-refs are of the same type.
15420
15421 2008-04-24  Danny Smith  <dannysmith@users.net>
15422
15423         * c-format.c (check_format_info_main): Use strncmp rather than a
15424         magic prefix to handle multichar length specs.
15425         * config/i386/msformat-c.c (format_length_info ms_printf_length_specs):
15426         Don't prefix "I64" and "I32" with '\0'.
15427
15428 2008-04-24  Jakub Jelinek  <jakub@redhat.com>
15429
15430         PR target/36015
15431         * config/i386/i386.c (init_cumulative_args): Don't pass anything
15432         in registers for -m32 only if stdarg_p (fntype).
15433
15434 2008-04-24  Uros Bizjak  <ubizjak@gmail.com>
15435
15436         PR rtl-optimization/36006
15437         * expmed.c (store_fixed_bit_field): Copy op0 rtx before moving
15438         temp to op0 in order to avoid invalid rtx sharing.
15439
15440 2008-04-23  Paolo Bonzini  <bonzini@gnu.org>
15441
15442         * tree-cfg.c (verify_expr): Check with is_gimple_address.  Don't
15443         check TREE_INVARIANT.
15444         * tree-gimple.c (is_gimple_address): New.
15445         (is_gimple_invariant_address): Simplify using decl_address_invariant_p.
15446         * tree-gimple.h (is_gimple_address): New.
15447         * tree.h (decl_address_invariant_p): New.
15448         * tree.c (make_node_stat): Don't set TREE_INVARIANT.
15449         (build_string): Likewise.
15450         (decl_address_invariant_p): New, from is_gimple_invariant_address.
15451         (tree_invariant_p_1): Likewise.
15452         (save_expr): Use it.
15453         (tree_invariant_p): New.
15454         (skip_simple_arithmetic): Use it.
15455         (stabilize_reference_1): Use it.
15456         (recompute_tree_invariant_for_addr_expr): Don't update TREE_INVARIANT,
15457         simplify.
15458         (build1_stat): Drop code to compute TREE_INVARIANT.
15459         (build2_stat): Drop code to compute TREE_INVARIANT.
15460         (build3_stat): Drop code to compute TREE_INVARIANT.
15461         (build4_stat): Drop code to compute TREE_INVARIANT.
15462         (build5_stat): Drop code to compute TREE_INVARIANT.
15463         (build7_stat): Drop code to compute TREE_INVARIANT.
15464         (merge_dllimport_decl_attributes): Don't mention TREE_INVARIANT.
15465         * tree.h (struct tree_base): Remove invariant_flag.
15466         (TREE_INVARIANT): Remove.
15467         * builtins.c (build_string_literal): Don't set TREE_INVARIANT.
15468         (fold_builtin_expect): Check TREE_CONSTANT.
15469         * tree-ssa-ccp.c (fold_stmt_r): Adjust comment.
15470         * c-tree.h (c_expr_to_decl): Drop third parameter.
15471         * c-typeck.c (build_external_ref): Don't set TREE_INVARIANT.
15472         (build_c_cast): Don't set TREE_INVARIANT.
15473         (pop_init_level): Don't set TREE_INVARIANT.
15474         (c_objc_common_truthvalue_conversion): Don't set TREE_INVARIANT.
15475         * gimplify.c (gimplify_init_ctor_preeval): Add assertion, test
15476         TREE_CONSTANT.
15477         (gimplify_init_constructor): Don't set TREE_INVARIANT.
15478         (gimplify_addr_expr): Adjust comment.
15479         * tree-mudflap.c (mf_build_string):
15480         * print-tree.c (print_node): Don't print TREE_INVARIANT.
15481         * tree-nested.c (convert_nonlocal_reference): Adjust comment.
15482         * c-common.c (fix_string_type): Don't set TREE_INVARIANT.
15483         * langhooks-def.h (lhd_expr_to_decl): Drop third parameter.
15484         * langhooks.c (lhd_expr_to_decl): Drop third parameter.
15485         * langhooks.h (struct lang_hooks): Drop third parameter from
15486         expr_to_decl.
15487
15488 2008-04-23  Richard Guenther  <rguenther@suse.de>
15489
15490         PR tree-optimization/27799
15491         PR tree-optimization/32921
15492         PR tree-optimization/32624
15493         * tree-ssa-structalias.c (merge_smts_into): Only merge the
15494         SMTs aliases and the tag itself into the solution.
15495         * tree-ssa-alias.c (compute_flow_sensitive_aliasing): Do not
15496         merge the points-to solution back into the SMT aliases.
15497         (may_alias_p): Use alias_set_subset_of instead of
15498         aliases_conflict_p.  A pointer which points to
15499         memory with alias set zero may access any variable.
15500
15501 2008-04-23  Richard Guenther  <rguenther@suse.de>
15502
15503         * alias.c (alias_set_subset_of): Correctly handle asking
15504         if zero is a subset of an alias set with zero child.
15505         * tree-ssa-alias.c (have_common_aliases_p): Simplify logic.
15506         (compute_flow_insensitive_aliasing): Correctly walk all
15507         pointers.  Do not unnecessarily union sets.
15508
15509 2008-04-23  Richard Guenther  <rguenther@suse.de>
15510
15511         PR middle-end/36021
15512         * c-common.c (handle_alloc_size_attribute): Use type_num_arguments.
15513
15514 2008-04-22  Tomas Bily  <tbily@suse.cz>
15515
15516         * tree-cfg.c (verify_expr): Check for NON_LVALUE_EXPR as
15517         unreachable case.
15518         * tree-vrp.c (extract_range_from_unary_expr): Removed unused
15519         NON_LVALUE_EXPR.
15520         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
15521         * tree-ssa-structalias.c (get_constraint_for): Likewise.
15522         * tree-inline.c (estimate_num_insns_1): Likewise.
15523         * varasm.c (const_hash_1, compare_constant, copy_constant)
15524         (compute_reloc_for_constant, output_addressed_constants): Likewise.
15525         * emit-rtl.c (component_ref_for_mem_expr)
15526         (set_mem_attributes_minus_bitpos): Likewise.
15527         * expr.c (highest_pow2_factor, expand_expr_real_1, )
15528         (is_aligning_offset): Likewise.
15529         * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info): Likewise.
15530         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
15531         * dojump.c (do_jump): Likewise.
15532         * builtins.c (get_pointer_alignment, get_memory_rtx)
15533         (integer_valued_real_p, fold_builtin_next_arg): Likewise.
15534         * tree-scalar-evolution.c (instantiate_parameters_1): Likewise.
15535
15536 2008-04-23  Jakub Jelinek  <jakub@redhat.com>
15537
15538         PR rtl-optimization/36017
15539         * builtins.c (expand_errno_check): Clear CALL_EXPR_TAILCALL before
15540         expanding the library call.
15541
15542 2008-04-22  Ian Lance Taylor  <iant@google.com>
15543
15544         * fold-const.c (pointer_may_wrap_p): Call int_size_in_bytes rather
15545         than size_in_bytes.
15546
15547 2008-04-22  Pat Haugen  <pthaugen@us.ibm.com>
15548
15549         * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase cost
15550         of LR/CTR moves for Power6.
15551
15552 2008-04-22  Kenneth Zadeck  <zadeck@naturalbridge.com>
15553
15554         PR middle-end/36003
15555         * passes.c (init_optimization_passes): Remove
15556         pass_fast_rtl_byte_dce.
15557
15558 2008-04-22  Uros Bizjak  <ubizjak@gmail.com>
15559
15560         PR target/29096
15561         * config/i386/xmmintrin.h (_mm_cvtpi16_ps): Rearrange calls to
15562         builtin functions to generate faster code.
15563         (_mm_cvtpu16_ps): Ditto.
15564         (_mm_cvtpi32x2_ps): Ditto.
15565
15566 2008-04-22  Nick Clifton  <nickc@redhat.com>
15567
15568         * common.opt (ftree-loop-distribution): Add Optimization
15569         attribute.
15570
15571         * config/frv/frv.c (frv_stack_info): Use crtl instead of cfun.
15572         (frv_expand_builtin_va_start): Likewise.
15573
15574         * config/arm/arm.c (thumb_find_work_register): Fix location of
15575         argument register count.
15576
15577 2008-04-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
15578
15579         Support scheduling for ColdFire V1 and V3 microarchitecture.
15580         Improve scheduling of multiplication instructions.
15581
15582         * config/m68k/m68k.md (cpu): Add cfv1 and cfv3.  Rename cf_v2 to cfv1.
15583         (mac): New instruction attribute.
15584         * config/m68k/m68k.c (override_options): Handle cfv1, cfv3 and mac.
15585         (m68k_sched_mac): New variable.
15586         (m68k_sched_attr_type2, m68k_sched_md_init_global): Update.
15587         Handle cfv1 and cfv3.
15588         (max_insn_size): New static variable.
15589         (struct _sched_ib): New type.
15590         (sched_ib): New static variable.
15591         (sched_ib_size, sched_ib_filled, sched_ib_insn): Convert variables
15592         to fields of 'struct _sched_ib sched_ib'.  Update all uses.
15593         (m68k_sched_variable_issue): Add modeling of cfv3 instruction buffer.
15594         Update.
15595         (m68k_sched_md_init_global, m68k_sched_md_finish_global,
15596         m68k_sched_md_init, m68k_sched_md_finish): Handle cfv1 and cfv3.  Init
15597         new variables.  Update.
15598         (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
15599         Add modeling of cfv3 instruction buffer.  Update.
15600         * config/m68k/m68k-protos.h (m68k_sched_mac): Declare.
15601         * config/m68k/m68k.h (TUNE_CFV3): New macro.
15602         * config/m68k/cf.md: Change substrings 'cf_v2' to 'cfv12' or 'cfv123'.
15603         (cf_* reservations): Rename to cfv12 or cfv123 to indicate cores
15604         a particular reservation applies to.
15605         (type2): Reorganize attribute values.  Rename alu to alu_reg,
15606         alu_l to alu, move_l to omove.  Join move to alu.  Split mul
15607         to mul_l and mul_w.
15608         (cf_ib_*): Simplify description of instruction buffer.
15609         (cf_ib_w0, cf_ib_w4, cf_ib_w5, cf_ib_w6): Remove.
15610         (cf_mem): Split into cf_mem1 and cf_mem2.
15611         (cf_v2_move_??): Rename to cfv12_alu_??.
15612         (cf_v2_move_l_??): Rename to cfv12_omove_??.
15613         (cf_v2_mul_??): Remove reservations.
15614         (cfv12_mul_l_??, cfv12_mul_w_??, cfv12_mac_w_??, cfv12_mac_l_??,
15615         cfv12_emac_??, cfv12_emac_w_i0): New reservations.
15616         (cfv12_rts, cfv12_call, cfv12_bcc, cfv12_bra, cfv12_jmp): Move to
15617         appropriate place.
15618         (cfv3_alu_10, cfv3_omove_10, cfv3_alu_i0, cfv3_omove_i0, cfv3_alu_01,
15619         cfv3_alu_0i, cfv3_alu_11, cfv3_omove_11, cfv3_alu_i1, cfv3_omove_i1,
15620         cfv3_alu_1i, cfv3_omove_1i, cfv3_pea_11, cfv3_pea_i1, cfv3_mul_w_10,
15621         cfv3_mul_l_10, cfv3_mul_w_i0, cfv3_mac_w_10, cfv3_mac_l_10,
15622         cfv3_mac_w_i0, cfv3_emac_10, cfv3_emac_w_i0, cfv3_rts, cfv3_call,
15623         cfv3_bcc, cfv3_bra, cfv3_jmp): New reservations.
15624         (cfv3_*_1, cfv3_*_2, cfv3_*_3): New instruction reservations that are
15625         expansions of the above reservations for instructions of sizes
15626         1, 2 and 3 words.
15627
15628 2008-04-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
15629
15630         * rtl-factoring.c (collect_patterns_seqs): Handle CC0 targets.
15631
15632 2008-04-21  Adam Nemet  <anemet@caviumnetworks.com>
15633
15634         * coverage.c: Include tree-pass.h.
15635         (coverage_counter_alloc): Print da_file_name to the dump file.
15636
15637 2008-04-21  Kenneth Zadeck  <zadeck@naturalbridge.com>
15638
15639         * sbitmap.c (sbitmap_range_empty_p): New function.
15640         * sbitmap.h (sbitmap_range_empty_p): New function.
15641         * bitmap.h: Now includes obstack.h.
15642
15643 2008-04-21  Richard Sandiford  <rsandifo@nildram.co.uk>
15644             Kenneth Zadeck  <zadeck@naturalbridge.com>
15645
15646         * dbgcnt.def (ra_byte_scan): Added.
15647         * dbgcnt.c (dbg_cnt): Added code to print message to dump_file
15648         when the last hit happens for a counter.
15649         * timevar.def (TV_DF_BYTE_LR): New variable.
15650         * tree-pass.h (pass_fast_rtl_byte_dce): New pass.
15651         * passes.c (pass_fast_rtl_byte_dce): New pass.
15652         * fwprop.c (update_df): Added mode to call df_ref_create.
15653         Renamed DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
15654         DF_REF_EXTRACT_OFFSET.
15655         * df.h (DF_BYTE_LR, DF_BYTE_LR_BB_INFO, DF_BYTE_LR_IN,
15656         DF_BYTE_LR_OUT, df_byte_lr): New macro.
15657         (df_mm): New enum.
15658         (df_ref_extract): Added mode field.
15659         (DF_REF_WIDTH, DF_REF_OFFSET) Renamed to DF_REF_EXTRACT_WIDTH and
15660         DF_REF_EXTRACT_OFFSET.
15661         (DF_REF_EXTRACT_MODE): New macro.
15662         (df_byte_lr_bb_info): New structure.
15663         (df_print_byte_regset, df_compute_accessed_bytes,
15664         df_byte_lr_add_problem, df_byte_lr_get_regno_start,
15665         df_byte_lr_get_regno_len, df_byte_lr_simulate_defs,
15666         df_byte_lr_simulate_uses,
15667         df_byte_lr_simulate_artificial_refs_at_top,
15668         df_byte_lr_simulate_artificial_refs_at_end,
15669         df_compute_accessed_bytes): New function.
15670         (df_ref_create): Add parameter.
15671         (df_byte_lr_get_bb_info): New inline function.
15672         * df-scan.c (df_ref_record, df_uses_record,
15673         df_ref_create_structure): Added mode parameter.
15674         (df_ref_create, df_notes_rescan, df_ref_record, df_def_record_1,
15675         df_defs_record, df_uses_record, df_get_conditional_uses,
15676         df_get_call_refs, df_insn_refs_collect, df_bb_refs_collect,
15677         df_entry_block_defs_collect, df_exit_block_uses_collect):
15678         Added mode parameter to calls to df_ref_record, df_uses_record,
15679         df_ref_create_structure.
15680         (df_ref_equal_p, df_ref_compare): Added test for modes.
15681         (df_ref_create_structure): Added code to set mode.  Renamed
15682         DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
15683         DF_REF_EXTRACT_OFFSET.
15684         * df-core.c (df_print_byte_regset): New function.
15685         * df-byte-scan.c: New file.
15686         * df-problems.c (df_rd_transfer_function): Removed unnecessary
15687         calls to BITMAP_FREE.
15688         (df_byte_lr_problem_data, df_problem problem_BYTE_LR): New structure.
15689         (df_byte_lr_get_regno_start, df_byte_lr_get_regno_len,
15690         df_byte_lr_set_bb_info, df_byte_lr_free_bb_info,
15691         df_byte_lr_check_regs, df_byte_lr_expand_bitmap,
15692         df_byte_lr_alloc, df_byte_lr_reset, df_byte_lr_bb_local_compute,
15693         df_byte_lr_local_compute, df_byte_lr_init,
15694         df_byte_lr_confluence_0, df_byte_lr_confluence_n,
15695         df_byte_lr_transfer_function, df_byte_lr_free,
15696         df_byte_lr_top_dump, df_byte_lr_bottom_dump,
15697         df_byte_lr_add_problem, df_byte_lr_simulate_defs,
15698         df_byte_lr_simulate_uses,
15699         df_byte_lr_simulate_artificial_refs_at_top,
15700         df_byte_lr_simulate_artificial_refs_at_end): New function.
15701         * dce.c (byte_dce_process_block): New function.
15702         (dce_process_block): au is now passed in rather than computed
15703         locally.  Changed loops that look at artificial defs to not look
15704         for conditional or partial ones, because there never are any.
15705         (fast_dce): Now is able to drive byte_dce_process_block or
15706         dce_process_block depending on the kind of dce being done.
15707         (rest_of_handle_fast_dce): Add parameter to fast_dce.
15708         (rest_of_handle_fast_byte_dce): New function.
15709         (rtl_opt_pass pass_fast_rtl_byte_dce): New pass.
15710         * Makefile.in (df-byte-scan.o, debugcnt.o): Added dependencies.
15711
15712 2008-04-21  Daniel Franke  <franke.daniel@gmail.com>
15713
15714         PR fortran/35019
15715         * gcc.h: Added fortran options that take arguments to
15716         DEFAULT_SWITCH_TAKES_ARG and DEFAULT_WORD_SWITCH_TAKES_ARG
15717         macros.
15718
15719 2008-04-20  Eric Botcazou  <ebotcazou@adacore.com>
15720
15721         * tree-sra.c (sra_walk_expr) <VIEW_CONVERT_EXPR>: Disable
15722         scalarization if on the LHS and not a full access.
15723
15724 2008-04-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15725
15726         * Makefile.in (s-gtyp-input): Remove tmp-gi.list before writing it.
15727
15728 2008-04-18  Rafael Espíndola  <espindola@google.com>
15729
15730         * tree-vrp.c (find_case_label_index): Fix the binary search.
15731         (find_case_label_range): New.
15732         (vrp_visit_switch_stmt): Use find_case_label_range.
15733         (simplify_switch_using_ranges): Use find_case_label_range.
15734
15735 2008-04-18  Eric Botcazou  <ebotcazou@adacore.com>
15736
15737         * gimplify.c (gimplify_modify_expr_rhs) <COND_EXPR>: Gimplify the LHS
15738         using the is_gimple_lvalue predicate instead of is_gimple_min_lval.
15739
15740 2008-04-18  Tom Tromey  <tromey@redhat.com>
15741
15742         PR libcpp/15500:
15743         * doc/cpp.texi (Implementation-defined behavior): Mention
15744         -finput-charset.
15745
15746 2008-04-18  Ian Lance Taylor  <iant@google.com>
15747
15748         * fold-const.c (pointer_may_wrap_p): New static function.
15749         (fold_comparison): Add another test for pointer overflow.  Use
15750         pointer_may_wrap_p to disable some false positives.
15751
15752 2008-04-18  Kris Van Hees <kris.van.hees@oracle.com>
15753
15754         * c-common.c (CHAR16_TYPE, CHAR32_TYPE): New macros.
15755         (fname_as_string): Match updated cpp_interpret_string prototype.
15756         (fix_string_type): Support char16_t* and char32_t*.
15757         (c_common_nodes_and_builtins): Add char16_t and char32_t (and
15758         derivative) nodes.  Register as builtin if C++0x.
15759         (c_parse_error): Support CPP_CHAR{16,32}.
15760         * c-common.h (RID_CHAR16, RID_CHAR32): New elements.
15761         (enum c_tree_index) <CTI_CHAR16_TYPE, CTI_SIGNED_CHAR16_TYPE,
15762         CTI_UNSIGNED_CHAR16_TYPE, CTI_CHAR32_TYPE, CTI_SIGNED_CHAR32_TYPE,
15763         CTI_UNSIGNED_CHAR32_TYPE, CTI_CHAR16_ARRAY_TYPE,
15764         CTI_CHAR32_ARRAY_TYPE>: New elements.
15765         (char16_type_node, signed_char16_type_node, unsigned_char16_type_node,
15766         char32_type_node, signed_char32_type_node, char16_array_type_node,
15767         char32_array_type_node): New defines.
15768         * c-lex.c (cb_ident): Match updated cpp_interpret_string prototype.
15769         (c_lex_with_flags): Support CPP_CHAR{16,32} and CPP_STRING{16,32}.
15770         (lex_string): Support CPP_STRING{16,32}, match updated
15771         cpp_interpret_string and cpp_interpret_string_notranslate prototypes.
15772         (lex_charconst): Support CPP_CHAR{16,32}.
15773         * c-parser.c (c_parser_postfix_expression): Support CPP_CHAR{16,32}
15774         and CPP_STRING{16,32}.
15775
15776 2008-04-18  Paolo Bonzini  <bonzini@gnu.org>
15777
15778         PR bootstrap/35457
15779         * aclocal.m4: Regenerate.
15780         * configure: Regenerate.
15781
15782 2008-04-18  Jan Hubicka  <jh@suse.cz>
15783
15784         * except.c (dw2_size_of_call_site_table,
15785         sjlj_size_of_call_site_table): Use vector API for call_site_record.
15786
15787         * cgraphbuild.c (build_cgraph_edges): Update.
15788         * tree-pass.h: Update comment.
15789         * final.c (leaf_function_p): Update.
15790         (leaf_renumber_regs): Update.
15791         (rest_of_clean_state): Update.
15792         * omp-low.c (expand_omp_parallel): Update.
15793         * ipa-reference.c (analyze_function): Update.
15794         * reorg.c (find_end_label): Update.
15795         (optimize_skip): Update.
15796         (fill_simple_delay_slots): Update.
15797         (fill_simple_delay_slots): Update.
15798         (make_return_insns): Update.
15799         (dbr_schedule): Update.
15800         * gimple-low.c (record_vars_into): Update.
15801         * cfgbuild.c (make_edges): Update.
15802         * function.c (assign_stack_local): Update.
15803         (assign_parm_adjust_stack_rtl): Update.
15804         (locate_and_pad_parm): Update.
15805         (allocate_struct_function): Do not initialize stack_alignment_needed
15806         and preferred_stack_boundary here.
15807         (stack_protect_prologue): Update.
15808         (stack_protect_epilogue): Update.
15809         (expand_function_start): Initialize stack_alignment_needed,
15810         preferred_stack_boundary and max_jumptable_ents.
15811         (expand_function_end): Update.
15812         (free_after_compilation): Do not NULLify epilogue_delay_list.
15813         * function.h (struct rtl_data): Add stack_protect_guard,
15814         stack_alignment_needed,
15815         preferred_stack_boundary, epilogue_delay_list.
15816         (struct function): Remove value_histograms, stack_alignment_needed,
15817         preferred_stack_boundary, epilogue_delay_list, max_jumptable_ents,
15818         last_label_uid,
15819         unexpanded_var_list, stack_protect_guard.
15820         (current_function_epilogue_delay_list): Remove.
15821         * ipa-type-escape.c (analyze_function): Update.
15822         * gimplify.c (pop_gimplify_context): Update comment.
15823         * calls.c (expand_call): Update.
15824         (emit_library_call_value_1): Update.
15825         * except.c (set_nothrow_function_flags): Update.
15826         * cfgexpand.c (get_decl_align_unit): Update.
15827         (create_stack_guard): Update.
15828         (estimated_stack_frame_size): Update.
15829         (expand_used_vars): Update.
15830         (tree_expand_cfg): Free histogram earliers, init expansion variables.
15831         * explow.c (allocate_dynamic_stack_space): Update.
15832         * tree-ssa-live.c (remove_unused_locals): Update.
15833         * varasm.c (mark_constant_pool): Update.
15834         * tree-inline.c (remap_decls): Update.
15835         (initialize_cfun): Update.
15836         (declare_return_variable): Update.
15837         (inline_forbidden_p): Update.
15838         (expand_call_inline): Update.
15839         (declare_inline_vars): Update.
15840         (tree_function_versioning): Update.
15841         * tree-flow.h (value_histograms): New.
15842         (VALUE_HISTOGRAMS): New macro.
15843         * basic-block.h (control_flow_graph): Add max_jumptable_ents,
15844         last_label_uid.
15845         * tree-cfg.c (set_bb_for_stmt): Update.
15846         (replace_by_duplicate_decl): Update.
15847         (move_block_to_fn): Update.
15848         (new_label_mapper): Update.
15849         (dump_function_to_file): Update.
15850         * ipa-struct-reorg.c (build_data_structure): Update.
15851         * cfgrtl.c (print_rtl_with_bb): Update.
15852         * reload1.c (reload): Update.
15853         (reload): Update.
15854         * config/i386/i386.c (setup_incoming_varargs_64,
15855         ix86_compute_frame_layout): Update.
15856         * config/arc/arc.c (arc_output_function_epilogue): Update.
15857
15858 2008-04-18  Marius Strobl <marius@FreeBSD.org>
15859
15860         * gthr-posix.h (__gthread_active_p): Use the Solaris implementation
15861         for FreeBSD as well.
15862         * gthr-posix95.h: Likewise.
15863
15864 2008-04-17  Richard Sandiford  <rsandifo@nildram.co.uk>
15865
15866         PR rtl-optimization/35838
15867         * dse.c (find_shift_sequence): Use subreg_lowpart_offset to work
15868         out the byte offset of the first subreg.
15869
15870 2008-04-17  Uros Bizjak  <ubizjak@gmail.com>
15871
15872         * config/i386/i386.md (addti3 splitter): Pass arrays of 3 operands
15873         to split_ti instead of three separate calls with single member arrays.
15874         (subti3 splitter): Ditto.
15875         (adddi3 splitter): Ditto with split_di.
15876         (subdi3 splitter): Ditto.
15877         (negti2 splitter): Pass arrays of 2 operands to split_ti instead of
15878         two separate calls with single member arrays.  Swap match_dup
15879         operands 1 and 2 to better fit into the array.
15880         (negdi2 splitter): Ditto with split_di.
15881         (movdfcc splitter):  Pass arrays of 2 operands to split_di instead of
15882         two separate calls with single member arrays.  Swap match_dup operands
15883         6 and 7 to better fit into the array.
15884
15885 2008-04-17  H.J. Lu  <hongjiu.lu@intel.com>
15886
15887         * config/i386/i386.c (sse_builtin_type): New.
15888         (bdesc_sse_args): Likewise.
15889         (bdesc_sse_3arg): Removed.
15890         (bdesc_2arg): Remove IX86_BUILTIN_AESKEYGENASSIST128.
15891         (bdesc_1arg): Remove IX86_BUILTIN_ROUNDPD and
15892         IX86_BUILTIN_ROUNDPS.
15893         (ix86_init_mmx_sse_builtins): Handle bdesc_sse_args.  Remove
15894         bdesc_sse_3arg.  Remove IX86_BUILTIN_ROUNDPD and
15895         IX86_BUILTIN_ROUNDPS.
15896         (ix86_expand_sse_4_operands_builtin): Removed.
15897         (ix86_expand_sse_operands_builtin): New.
15898         (ix86_expand_unop_builtin): Remove CODE_FOR_sse4_1_roundpd
15899         and CODE_FOR_sse4_1_roundps.
15900         (ix86_expand_builtin): Remove IX86_BUILTIN_AESKEYGENASSIST128.
15901         Handle bdesc_sse_args.  Remove bdesc_sse_3arg.
15902
15903 2008-04-17  Alan Modra  <amodra@bigpond.net.au>
15904
15905         PR target/35907
15906         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Restore vr and vrsave
15907         regs before frame pop when needed.  If use_backchain_to_restore_sp
15908         then load backchain into a temp reg to restore vr and vrsave.  Add
15909         code to restore vr after frame pop if possible.
15910
15911 2008-04-17  Richard Guenther  <rguenther@suse.de>
15912
15913         * tree-vn.c (expressions_equal_p): Do not check type
15914         equality or compatibility before calling operand_equal_p.
15915         * fold-const.c (operand_equal_p): Check equivalence of
15916         integer constants before bailing out due to signedness or
15917         precision differences.
15918         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ignore
15919         spurious differences in type qualification.  Ignore types
15920         for COMPONENT_REFs at all.
15921
15922 2008-04-17  Christian Bruel  <christian.bruel@st.com>
15923
15924         * config/sh/sh.c (expand_cbranchdi4): Use original operands for
15925         msw_skip comparison.
15926
15927 2008-04-16  Jakub Jelinek  <jakub@redhat.com>
15928
15929         PR c/35739
15930         * tree-nrv.c (tree_nrv): Don't optimize if result_type is GIMPLE
15931         reg type.
15932
15933         PR tree-optimization/35899
15934         * tree-inline.c (expand_call_inline): Use GIMPLE_STMT_OPERAND
15935         rather than TREE_OPERAND.
15936
15937 2008-04-16  Uros Bizjak  <ubizjak@gmail.com>
15938
15939         PR target/35944
15940         * config/i386/i386.md (fmodxf3): Copy operand 1 and operand 2 into
15941         temporary registers.  Change operand predicate to general_operand.
15942         (remainderxf3): Ditto.
15943
15944 2008-04-16  Richard Guenther  <rguenther@suse.de>
15945
15946         * Makefile.in (tree-affine.o): Add $(FLAGS_H) dependency.
15947         * tree-affine.c (aff_combination_expand): Look through some
15948         conversions.
15949
15950 2008-04-15  Doug Kwan  <dougkwan@google.com>
15951
15952         * dwarf2asm.c (dw2_assemble_integer): Cast to unsigned HOST_WIDE_INT
15953         for hex printing.
15954         * tree-pretty-print.c (dump_generic_node): Ditto.
15955         * final.c (output_addr_const): Ditto.
15956         * dwarf2out.c (output_cfi): Ditto.
15957         * c-pretty-print.c (pp_c_integer_constant): Ditto.
15958         * print-rtl.c (print_rtx): Ditto.
15959         * print-tree.c (print_node_brief, print_node): Ditto.
15960         * c-common.c (match_case_to_enum_1): Ditto.
15961         * sched-vis.c (print_value): Ditto.
15962         * config/i386/i386.c (print_operand): Cast to long unsigned int
15963         for hex printing.
15964
15965 2008-04-15  Danny Smith  <dannysmith@users.sourceforge.net>
15966         * libgcc2.c [L_trampoline]: Remove  unnecessary prototype for
15967         MS Windows VirtualProtect function.
15968
15969 2008-04-15  Jan Hubicka  <jh@suse.cz>
15970
15971         * gengtype.c (write_root): Param_is argument is OK.
15972         * expr.c (expand_expr_real_1): Update call of get_exception_*.
15973         * function.h: Include varray.h
15974         (rtl_eh): New stucture based on except.c one.
15975         (call_site_record): New forward declaration and vector type.
15976         * calls.c (emit_call_1): Do not call
15977         note_current_region_may_contain_throw.
15978         * except.c (eh_status): Remove cur_region, try_region since they are
15979         unused.
15980         Move filter, exc_ptr, ttype_data, ehspec_data, action_record_data and
15981         exception_handler_label_map, ehr_stackadj, ehr_handler, ehr_label,
15982         sjlj_fc, sjlj_exit_after to rth_eh in function.h.
15983         Remove call_site_data_used, call_site_data_size.
15984         Turn call_site_record into vector in function.h.
15985         (note_current_region_may_contain_throw): Remove.
15986         (get_exception_pointer, get_exception_filter): Do not take struct
15987         function argument; update.
15988         (add_ehl_entry, find_exception_handler_labels, ehspec_filter_hash,
15989         add_ttypes_entry, add_ehspec_entry, assign_filter_values,
15990         build_post_landing_pads, dw2_build_landing_pads,
15991         sjlj_assign_call_site_values, sjlj_mark_call_sites,
15992         sjlj_emit_function_enter, sjlj_emit_function_enter,
15993         sjlj_emit_function_exit, sjlj_emit_dispatch_table,
15994         sjlj_build_landing_pads, finish_eh_generation,
15995         remove_exception_handler_label, remove_eh_handler,
15996         maybe_remove_eh_handler, add_reachable_handler,
15997         reachable_handlers, expand_builtin_eh_return, expand_eh_return,
15998         add_action_record, collect_one_action_chain, add_call_site,
15999         convert_to_eh_region_ranges, sjlj_size_of_call_site_table,
16000         sjlj_output_call_site_table, output_function_exception_table,
16001         * except.h (note_current_region_may_contain_throw): Remove
16002         (get_exception_pointer, get_exception_filter): Do not take struct
16003         function argument.
16004         * Makefile.in (GTFILES): Put varargs before struct function.
16005
16006 2008-04-15  Eric Botcazou  <ebotcazou@adacore.com>
16007
16008         * tree-ssa-structalias.c (get_constraint_for_component_ref): Do not
16009         punt for STRING_CST.
16010         (get_constraint_for): Deal with STRING_CST here instead.
16011
16012 2008-04-15  Richard Guenther  <rguenther@suse.de>
16013
16014         * tree-ssa-propagate.c (substitute_and_fold): Substitute
16015         statements in a basic-block with a backward walk.  Do not
16016         substitute into dead statements but instead remove those.
16017
16018 2008-04-15  Richard Guenther  <rguenther@suse.de>
16019
16020         * params.def (PARAM_MAX_FIELDS_FOR_FIELD_SENSITIVE): Set default
16021         to zero, thus disable creation of SFTs.
16022
16023 2008-04-15  Eric Botcazou  <ebotcazou@adacore.com>
16024
16025         * tree-predcom.c (suitable_reference_p): Return false if the
16026         reference can throw.
16027
16028 2008-04-15  Jakub Jelinek  <jakub@redhat.com>
16029
16030         PR c/35751
16031         * c-decl.c (finish_decl): If extern or static var has variable
16032         size, set TREE_TYPE (decl) to error_mark_node.
16033
16034 2008-04-15  Rafael Espíndola  <espindola@google.com>
16035
16036         * fold-const.c (tree_call_nonnegative_warnv_p): Remove local
16037         variable arg1.
16038
16039 2008-04-15  Richard Guenther  <rguenther@suse.de>
16040
16041         * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
16042         * tree-ssa-sccvn.c (vn_reference_lookup): New parameter maywalk.
16043         (visit_reference_op_load): Do walk vuse-vdef chains on
16044         vn_reference_lookup.
16045         (visit_reference_op_store): But do not here.
16046         * tree-vn.c (vn_lookup): Do not walk vuse-vdef chains on
16047         vn_reference_lookup.
16048         (vn_lookup_with_vuses): But do so here.
16049
16050 2008-04-14  Ian Lance Taylor  <iant@google.com>
16051
16052         * fold-const.c (fold_overflow_warning): Remove assertion.
16053
16054 2008-04-15  Ben Elliston  <bje@au.ibm.com>
16055
16056         * config/alpha/alpha.c (alpha_initialize_trampoline): Remove temp,
16057         temp1 local variables.
16058
16059 2008-04-15  Zuxy Meng  <zuxy.meng@gmail.com>
16060
16061         PR target/35661
16062         * config/i386/winnt.c (i386_pe_section_type_flags): Mark
16063         ".text.unlikely" section as executable.
16064
16065 2008-04-14  James E. Wilson  <wilson@tuliptree.org>
16066
16067         * config/ia64/ia64.c (rtx_needs_barrier): Handle
16068         UNSPEC_FR_SQRT_RECIP_APPROX_RES.
16069         * config/ia64/ia64.c (UNSPEC_FR_SQRT_RECIP_APPROX_RES): Define.
16070         (divsi3_internal, divdi3_internal_lat, divdi3_internal_thr,
16071         divsf3_internal_lat, sqrt_approx, sqrtsf2_internal_thr,
16072         divdf3_internal_lat, sqrtdf2_internal_thr, divxf3_internal_lat,
16073         divxf3_internal_thr, sqrtxf2_internal_thr, recip_approx): Use it.
16074
16075 2008-04-14  Ian Lance Taylor  <iant@google.com>
16076
16077         * flags.h (POINTER_TYPE_OVERFLOW_UNDEFINED): Define.
16078         * fold-const.c (fold_comparison): If appropriate, test
16079         POINTER_TYPE_OVERFLOW_UNDEFINED, and issue an overflow warning.
16080         (fold_binary): Test POINTER_TYPE_OVERFLOW_UNDEFINED when
16081         reassociating a pointer type.
16082         * doc/invoke.texi (Optimize Options): Document that
16083         -fstrict-overflow applies to pointer wraparound.
16084
16085 2008-04-13  Jan Hubicka  <jh@suse.cz>
16086
16087         * m32.c (m32c_pushm_popm): Use crtl->retrun_rtx.
16088
16089 2008-04-12  Andrew Pinski  <pinskia@gmail.com>
16090
16091         * config/rs6000/rs6000.c (compute_save_world_info): Set lr_save_p if
16092         we are going to "save the world".
16093
16094 2008-04-13  Hans-Peter Nilsson  <hp@axis.com>
16095
16096         * config/cris/cris.md ("*andhi_lowpart_non_v32", "*andhi_lowpart_v32")
16097         ("*andqi_lowpart_non_v32", "*andqi_lowpart_v32"): Use "+" for the
16098         operand 0 constraint, not "=".
16099
16100 2008-04-11  James E. Wilson  <wilson@tuliptree.org>
16101
16102         * system.h: Change ASSERT_CHECKING to ENABLE_ASSERT_CHECKING.
16103
16104 2008-04-11  H.J. Lu  <hongjiu.lu@intel.com>
16105
16106         * dse.c (record_store): Use HOST_BITS_PER_WIDE_INT instead
16107         of size of positions_needed * CHAR_BIT.
16108
16109 2008-04-11  H.J. Lu  <hongjiu.lu@intel.com>
16110
16111         PR middle-end/35897
16112         * dse.c (store_info): Change positions_needed to unsigned
16113         HOST_WIDE_INT.
16114         (lowpart_bitmask): New.
16115         (record_store): Cast to unsigned HOST_WIDE_INT for
16116         positions_needed.  Assert width <= size of positions_needed *
16117         CHAR_BIT.  Call lowpart_bitmask to initialize positions_needed.
16118         (check_mem_read_rtx): Use unsigned HOST_WIDE_INT on mask.  Call
16119         lowpart_bitmask to set mask.
16120
16121 2008-04-11  Bernd Schmidt  <bernd.schmidt@analog.com>
16122
16123         * config/bfin/constraints.md: New file.
16124         * config/bfin/bfin.md: Include it.
16125         (adddi3): Use satisfies_constraint functions instead of the old macros.
16126         * config/bfin/bfin.h (REG_CLASS_FROM_LETTER, CONSTRAINT_LEN,
16127         CONST_18UBIT_IMM_P, CONST_16BIT_IMM_P, CONST_16UBIT_IMM_P,
16128         CONST_7BIT_IMM_P, CONST_7NBIT_IMM_P, CONST_5UBIT_IMM_P,
16129         CONST_4BIT_IMM_P, CONST_4UBIT_IMM_P, CONST_3BIT_IMM_P,
16130         CONST_3UBIT_IMM_P, CONST_OK_FOR_K, CONST_OK_FOR_P, CONST_OK_FOR_M,
16131         CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER,
16132         EXTRA_CONSTRAINT): Delete.
16133         * config/bfin/predicates.md (highbits_operand, reg_or_7bit_operand,
16134         reg_or_neg7bit_operand): Use satisfies_constraint functions instead
16135         of the old macros.
16136         * config/bfin/bfin.c: Include "tm-constrs.h".
16137         (bfin_secondary_reload, split_load_immediate, bfin_rtx_costs):
16138         Use satisfies_constraint functions instead of the old macros.
16139         * doc/md.texi (Blackfin Constraints): Update file name reference.
16140
16141 2008-04-11  Richard Guenther  <rguenther@suse.de>
16142
16143         PR tree-optimization/35869
16144         * tree-vrp.c (execute_vrp): Move switch statement update after
16145         jump threading.  Schedule another cfg cleanup run.
16146
16147 2008-04-11  Volker Reichelt  <v.reichelt@netcologne.de>
16148
16149         PR c/35744
16150         * attribs.c (decl_attributes): Return early on errorneous node.
16151
16152 2008-04-10  Oleg Ryjkov  <olegr@google.com>
16153
16154         * tree.h (struct tree_base): Added a new flag default_def_flag.
16155         (SSA_NAME_IS_DEFAULT_DEF): Changed to use the new flag.
16156
16157 2008-04-11  Kaz Kojima  <kkojima@gcc.gnu.org>
16158
16159         * config.gcc (need_64bit_hwint): Need 64bit hwint for sh-*-*.
16160
16161 2008-04-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
16162
16163         PR target/35768
16164         * pa.md: Define mode iterator P.  Define mode attribute dwc.
16165         (dcacheflush): Update pattern to use iterator P and attribute dwc.
16166         (icacheflush): Likewise.
16167         * pa.h (INITIALIZE_TRAMPOLINE): Use dcacheflushsi/icacheflushsi if
16168         !TARGET_64BIT, and dcacheflushdi/icacheflushdi if TARGET_64BIT.
16169
16170 2008-04-11  Ben Elliston  <bje@au.ibm.com>
16171
16172         * config/spu/spu.c (spu_init_builtins): Mark builtins as nothrow.
16173
16174 2008-04-10  Rafael Espíndola  <espindola@google.com>
16175
16176         * tree-vrp.c (extract_range_from_binary_expr): Don't handle
16177         TRUTH_ANDIF_EXPR or TRUTH_ORIF_EXPR.
16178         (extract_range_from_expr): The same.
16179
16180 2008-04-10  Adam Nemet  <anemet@caviumnetworks.com>
16181
16182         * config/mips/mips.md (GPR2): New mode iterator.
16183         (seq): Add comment.
16184         (*seq_<mode>, *seq_<mode>_mips16, *sne_<mode>, *sgt<u>_<mode>,
16185         *sgt<u>_<mode>_mips16, *sge<u>_<mode>, *slt<u>_<mode>,
16186         *slt<u>_<mode>_mips16 *sle<u>_<mode>, *sle<u>_<mode>_mips16):
16187         Rewrite these to take two modes, the mode of comparison and the
16188         mode of the destination.
16189         * config/mips/mips.c (mips_expand_scc): Instead of having
16190         paradoxical subreg as destination, expand "narrowing" scc if mode
16191         of comparison is SI and target is requested in DI mode.
16192         (mips_emit_int_order_test): Update comment.  Make mode of
16193         comparison match CMP0 rather than TARGET.  When creating inverse
16194         target use mode of TARGET.
16195
16196 2008-04-10  Adam Nemet  <anemet@caviumnetworks.com>
16197
16198         * gcov-dump.c (tag_summary): Only print summaries for the first
16199         GCOV_COUNTERS_SUMMABLE counters.
16200
16201 2008-04-10  Uros Bizjak  <ubizjak@gmail.com>
16202
16203         * config/i386/i386.md (absneg): New code iterator.
16204         (absnegprefix): New code attribute.
16205         (<code><mode>2): Macroize expander from abs<mode>2 and neg<mode>2
16206         patterns using absneg code iterator.
16207         (<code>tf2): Macroize expander from abstf2 and negtf2 patterns
16208         using absneg code iterator.
16209         (*<code><mode>2_1): Macroize insn pattern from *abs<mode>2_1 and
16210         *neg<mode>2 patterns using absneg code iterator.
16211         (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
16212         *negextendsfdf2 patterns using absneg code iterator.
16213         (*<code>extendsfxf2): Macroize insn pattern from *absextendsfxf2 and
16214         *negextendsfxf2 patterns using absneg code iterator.
16215         (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
16216         *negextendsfdf2 patterns using absneg code iterator.
16217         * config/i386/sse.md (<code><mode>2): Macroize expander from
16218         abs<mode>2 and neg<mode>2 patterns using absneg code iterator.
16219
16220 2008-04-10  Andreas Krebbel  <krebbel1@de.ibm.com>
16221
16222         * config/s390/s390.h: Remove the remains of the recent search
16223         & replace action of current_function_outgoing_args_size.
16224
16225 2008-04-10  Ira Rosen  <irar@il.ibm.com>
16226
16227         PR tree-optimization/35821
16228         * tree-vect-transform.c (vect_create_data_ref_ptr): Add check that
16229         NEW_STMT_LIST is not NULL.
16230
16231 2008-04-09  David Edelsohn  <edelsohn@gnu.org>
16232
16233         PR libstdc++/35597
16234         * toplev.c (process_options): Remove -ffunction-sections debugging
16235         warning.
16236
16237 2008-04-09  Peter Bergner  <bergner@vnet.ibm.com>
16238
16239         PR middle-end/PR28690
16240         * explow.c (break_out_memory_refs): Use simplify_gen_binary rather
16241         than gen_rtx_fmt_ee to perform more canonicalizations.
16242
16243 2008-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
16244
16245         PR driver/35665
16246         * collect2.c (write_c_file): Don't wrap in "#ifdef __cplusplus".
16247
16248 2008-04-09  Richard Guenther  <rguenther@suse.de>
16249
16250         * tree-cfg.c (verify_stmt): Print complete bogus stmt.
16251         (dump_function_to_file): Dump function arguments with types.
16252
16253 2008-04-08  Richard Guenther  <rguenther@suse.de>
16254
16255         * fold-const.c (fold_widened_comparison): Do not allow
16256         sign-changes that change the result.
16257
16258 2008-04-08  Janis Johnson  <janis187@us.ibm.com>
16259
16260         PR target/35839
16261         * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle additional
16262         kinds of indirect references.
16263
16264 2008-04-08  David Edelsohn  <edelsohn@gnu.org>
16265
16266         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Update
16267         GNU Fortran language string.
16268
16269 2008-04-08  Rafael Espíndola  <espindola@google.com>
16270
16271         * fold-canst.c (tree_call_nonnegative_warnv_p): New.
16272         (tree_invalid_nonnegative_warnv_p): Use tree_call_nonnegative_warnv_p.
16273         * tree.h (tree_call_nonnegative_warnv_p): New.
16274
16275 2008-04-08  Jan Hubicka  <jh@suse.cz>
16276
16277         * function.c (free_after_compilation): Clear out regno_reg_rtx
16278         pointer.
16279
16280 2008-04-08  Peter Bergner  <bergner@vnet.ibm.com>
16281
16282         Revert
16283         2008-04-07  Peter Bergner  <bergner@vnet.ibm.com>
16284
16285         PR middle-end/PR28690
16286         * rtlanal.c: (commutative_operand_precedence): Give SYMBOL_REF's the
16287         same precedence as REG_POINTER and MEM_POINTER operands.
16288
16289 2008-04-08  Richard Guenther  <rguenther@suse.de>
16290
16291         PR middle-end/35834
16292         * tree-ssa-address.c (create_mem_ref): Use POINTER_PLUS_EXPR
16293         for adding index to base.
16294
16295 2008-04-08  Kai Tietz  <kai.tietz@onevision.com>
16296
16297         * config/i386/mingw32.h (ENABLE_EXECUTE_STACK): New.
16298         (MINGW_ENABLE_EXECUTE_STACK): New.
16299         (IN_LIBGCC2): For libgcc include windows.h file for
16300         function declarations.
16301
16302 2008-04-08  Hans-Peter Nilsson  <hp@axis.com>
16303
16304         * config/cris/cris.c (cris_address_cost): For a PLUS, swap tem1
16305         and tem2 if tem1 is not a REG or MULT.
16306
16307 2008-04-08  Jan Hubicka  <jh@suse.cz>
16308
16309         * function.h (incomming_args): Break out of struct function.
16310         (function_subsections): Break out of struct function.
16311         (rtl_data): Add args, subsections fields. Break out outgoing_args_size,
16312         return_rtx and hard_reg_initial_vals from struct function.
16313         Kill inl_max_label_num.
16314         (current_function_pops_args, current_function_args_info,
16315         current_function_args_size, current_function_args_size,
16316         current_function_pretend_args_size,
16317         current_function_outgoing_args_size,
16318         current_function_internal_arg_pointer, current_function_return_rtx):
16319         Kill compatibility accestor macros.
16320         * builtins.c (expand_builtin_apply_args_1): Update.
16321         (expand_builtin_next_arg): Update.
16322         * df-scan.c (df_get_call_refs): Update.
16323         * dbxout.c (dbxout_function_end): Update.
16324         * dwarf2out.c (dwarf2out_switch_text_section): Update.
16325         (output_line_info): Update.
16326         (secname_for_decl): Update.
16327         (dwarf2out_var_location): Update.
16328         * function.c (free_after_compilation): Update.
16329         (assign_parm_find_stack_rtl): Update.
16330         (assign_parms): Update.
16331         (expand_dummy_function_end): Update.
16332         (expand_function_end): Update.
16333         * calls.c (mem_overlaps_already_clobbered_arg_p): Update.
16334         (expand_call): Update.
16335         (emit_library_call_value_1): Update.
16336         (store_one_arg): Update.
16337         * varasm.c (initialize_cold_section_name): Update.
16338         (unlikely_text_section): Update.
16339         (unlikely_text_section_p): Update.
16340         (assemble_start_function): Update.
16341         (assemble_end_function): Update.
16342         (default_section_type_flags): Update.
16343         (switch_to_section): Update.
16344         * integrate.c (set_decl_abstract_flags): Update.
16345         (get_hard_reg_initial_val): Update.
16346         (has_hard_reg_initial_val): Update.
16347         (allocate_initial_values): Update.
16348         * resource.c (init_resource_info): Update.
16349         * config/alpha/alpha.c (NUM_ARGS): Update.
16350         (direct_return): Update.
16351         (alpha_va_start): Update.
16352         (alpha_sa_size): Update.
16353         (alpha_initial_elimination_offset): Update.
16354         (alpha_expand_prologue): Update.
16355         (alpha_start_function): Update.
16356         (alpha_expand_epilogue): Update.
16357         (unicosmk_initial_elimination_offset):
16358         * config/alpha/alpha.md (call expander): Update.
16359         * config/s390/s390.c (s390_register_info): Update.
16360         (s390_register_info): Update.
16361         (s390_frame_info): Update.
16362         (s390_initial_elimination_offset): Update.
16363         (s390_build_builtin_va_list): Update.
16364         (s390_va_start): Update.
16365         * config/spu/spu.c (direct_return): Update.
16366         (spu_expand_prologue): Update.
16367         (spu_initial_elimination_offset): Update.
16368         (spu_build_builtin_va_list): Update.
16369         (spu_va_start): Update.
16370         * config/sparc/sparc.c (sparc_init_modes): Update.
16371         (sparc_compute_frame_size): Update.
16372         (function_value): Update.
16373         * config/m32r/m32r.c (m32r_compute_frame_size): Update.
16374         * config/i386/i386.md (return expander): Update.
16375         * config/i386/i386.c (ix86_va_start): Update.
16376         (ix86_can_use_return_insn_p): Update.
16377         (ix86_compute_frame_layout): Update.
16378         (ix86_expand_epilogue): Update.
16379         * config/sh/sh.c (output_stack_adjust): Update.
16380         (calc_live_regs): Update.
16381         (sh_expand_prologue): Update.
16382         (sh_builtin_saveregs): Update.
16383         (sh_va_start): Update.
16384         (initial_elimination_offset): Update.
16385         (sh_allocate_initial_value): Update.
16386         (sh_function_ok_for_sibcall): Update.
16387         (sh_get_pr_initial_val): Update.
16388         * config/sh/sh.md (return expander): Update.
16389         * config/avr/avr.c (frame_pointer_required_p): UPdate.
16390         * config/crx/crx.c (crx_compute_frame): UPdate.
16391         (crx_initial_elimination_offset): UPdate.
16392         * config/xtensa/xtensa.c (compute_frame_size): Update
16393         (xtensa_builtin_saveregs): Update.
16394         (xtensa_va_start): Update.
16395         (order_regs_for_local_alloc): Update.
16396         * config/stormy16/stormy16.c (xstormy16_compute_stack_layout): Update.
16397         (xstormy16_expand_builtin_va_start): Update.
16398         * config/fr30/fr30.c (fr30_compute_frame_size): Update.
16399         * config/m68hc11/m68hc11.md (return expanders): Update.
16400         * config/m68hc11/m68hc11.c (expand_prologue): Update.
16401         (expand_epilogue): Update.
16402         * config/cris/cris.c (cris_initial_frame_pointer_offset): Update.
16403         (cris_simple_epilogue): Update.
16404         (cris_expand_prologue): Update.
16405         (cris_expand_epilogue): Update.
16406         * config/iq2000/iq2000.c (iq2000_va_start): Update.
16407         (compute_frame_size): Update.
16408         * config/mt/mt.c (mt_compute_frame_size): Update.
16409         * config/mn10300/mn10300.c (expand_prologue): Update.
16410         (expand_epilogue): Update.
16411         (initial_offset): Update.
16412         (mn10300_builtin_saveregs):
16413         * config/mn10300/mn10300.md (return expander): Update.
16414         * config/ia64/ia64.c (ia64_compute_frame_size): Update.
16415         (ia64_initial_elimination_offset): Update.
16416         (ia64_initial_elimination_offset): Update.
16417         (ia64_expand_prologue): Update.
16418         * config/m68k/m68k.md (return expander): Update.
16419         * config/rs6000/rs6000.c (rs6000_va_start): Update.
16420         (rs6000_stack_info): Update.
16421         * config/mcore/mcore.c (layout_mcore_frame): Update.
16422         (mcore_expand_prolog): Update.
16423         * config/arc/arc.c (arc_compute_frame_size): Update.
16424         * config/score/score3.c (score3_compute_frame_size): Update.
16425         * config/score/score7.c (score7_compute_frame_size): Update.
16426         * config/arm/arm.c (use_return_insn): Update.
16427         (thumb_find_work_register): Update.
16428         (arm_compute_save_reg_mask): Update.
16429         (arm_output_function_prologue): Update.
16430         (arm_output_epilogue): Update.
16431         (arm_size_return_regs): Update.
16432         (arm_get_frame_offsets): Update.
16433         (arm_expand_prologue): Update.
16434         (thumb_exit): Update.
16435         (thumb_unexpanded_epilogue): Update.
16436         (thumb1_output_function_prologue): Update.
16437         * config/pa/pa.md (return expander): Update.
16438         * config/pa/pa.c (compute_frame_size): Update.
16439         (hppa_builtin_saveregs): Update.
16440         * config/mips/mips.c (mips_va_start): Update.
16441         (mips16_build_function_stub): Update.
16442         (mips_compute_frame_info): Update.
16443         (mips_restore_gp): Update.
16444         (mips_output_function_prologue): Update.
16445         (mips_expand_prologue): Update.
16446         * config/v850/v850.c (compute_frame_size): Update.
16447         (expand_prologue): * config/mmix/mmix.c (along): update.
16448         (mmix_initial_elimination_offset): update.
16449         (mmix_reorg): update.
16450         (mmix_use_simple_return): update.
16451         (mmix_expand_prologue): update.
16452         (mmix_expand_epilogue): Update.
16453         * config/bfin/bfin.c (bfin_initial_elimination_offset): Update.
16454         (emit_link_insn): Update.
16455
16456 2008-04-08  Anatoly Sokolov <aesok@post.ru>
16457
16458         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Define
16459         __AVR_HAVE_EIJMP_EICALL__ macro if device have EIJMP and EICALL
16460         instructions.
16461         * config/avr/avr.c (avr_mcu_types): Set AVR31 architecture for
16462         atmega103 device.
16463
16464 2008-04-07  Jan Hubicka  <jh@suse.cz>
16465
16466         * function.h (rtl): Rename to x_rtl.
16467         (crtl): New define.
16468         (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
16469         frame_offset, stack_check_probe_note, arg_pointer_save_area,
16470         used_temp_slots avail_temp_slots, temp_slot_level,
16471         nonlocal_goto_handler_labels): Update accesstors.
16472         (rtl): New global variable.
16473         (struct function): Move some fileds to rtl_data.
16474         (get_arg_pointer_save_area): Update prototype.
16475         * builtins.c (expand_builtin_setjmp_receiver): Update call of
16476         get_arg_pointer_save_area.
16477         * expr.c (init_expr): Update
16478         * function.c (get_frame_size): Update
16479         (assign_stack_local): Update
16480         (expand_function_end): Update.
16481         (get_art_pointer_save_area): Update
16482         * function.h
16483         * emit-rtl.c (rtl): Declare.
16484         (regno_reg_rtx): Declare.
16485         (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
16486         Update.
16487         (gen_reg_rtx): Update.
16488         * varasm.c (n_deferred_constatns): Update accestor.
16489         (init_varasm_status): Do not allocate varasm_status.
16490         (force_const_mem, get_pool_size, output_constant_pool): Update.
16491         * stmt.c (force_label_rtx): Do not use x_ prefixes.
16492         (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
16493         * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Update.
16494         * sparc/sparc.h (INIT_EXPANDERS): Update.
16495         * ia64/ia64.h (INIT_EXPANDERS): Update.
16496
16497 2008-04-07  James E. Wilson  <wilson@tuliptree.org>
16498
16499         * reload.c (push_secondary_reload): Add missing break to for loop.
16500
16501 2008-04-07  Peter Bergner  <bergner@vnet.ibm.com>
16502
16503         PR middle-end/PR28690
16504         * rtlanal.c: Update copyright years.
16505         (commutative_operand_precedence): Give SYMBOL_REF's the same precedence
16506         as REG_POINTER and MEM_POINTER operands.
16507         * emit-rtl.c (gen_reg_rtx_and_attrs): New function.
16508         (set_reg_attrs_from_value): Call mark_reg_pointer as appropriate.
16509         * rtl.h (gen_reg_rtx_and_attrs): Add prototype for new function.
16510         * gcse.c: Update copyright years.
16511         (pre_delete): Call gen_reg_rtx_and_attrs.
16512         (hoist_code): Likewise.
16513         (build_store_vectors): Likewise.
16514         (delete_store): Likewise.
16515         * loop-invariant.c (move_invariant_reg): Likewise.
16516         Update copyright years.
16517
16518 2008-04-07  Uros Bizjak  <ubizjak@gmail.com>
16519
16520         * config/i386/i386.md ("*sse_prologue_save_insn"): Use braced output
16521         control string instead of quoted.
16522
16523 2008-04-07  Kenneth Zadeck  <zadeck@naturalbridge.com>
16524
16525         * doc/rtl.texi: Rewrite of subreg section.
16526
16527 2008-04-07  Kai Tietz  <kai.tietz@onevision.com>
16528
16529         PR/35842
16530         * config/i386/i386.c (legitimize_pic_address): Add treating
16531         of dllimport SYM_REF's.
16532         (legitimize_dllimport_symbol): Add prototype.
16533
16534 2008-04-07  Eric Botcazou  <ebotcazou@adacore.com>
16535
16536         * fold-const.c (fold) <ARRAY_REF>: New case.  Try to fold constant
16537         reference in constructor with non self-referential type.
16538
16539 2008-04-07  Eric Botcazou  <ebotcazou@adacore.com>
16540
16541         Removal of Return with Depressed Stack Pointer support
16542         * tree.h (TYPE_RETURNS_STACK_DEPRESSED): Delete.
16543         (ECF_SP_DEPRESSED): Likewise.
16544         (ECF_LIBCALL_BLOCK, ECF_NOVOPS): Adjust.
16545         * calls.c (emit_call_1): Do not test ECF_SP_DEPRESSED.
16546         (flags_from_decl_or_type): Do not test TYPE_RETURNS_STACK_DEPRESSED.
16547         (expand_call): Do not test ECF_SP_DEPRESSED.
16548         * dse.c (dse_step0): Do not test TYPE_RETURNS_STACK_DEPRESSED.
16549         * function.c (keep_stack_depressed): Delete.
16550         (handle_epilogue_set): Likewise.
16551         (update_epilogue_consts): Likewise.
16552         (emit_equiv_load): Likewise.
16553         (thread_prologue_and_epilogue_insns): Remove support for Return with
16554         Depressed Stack Pointer.
16555         * print-tree.c (print_node): Do not test TYPE_RETURNS_STACK_DEPRESSED.
16556
16557 2008-04-06  Richard Guenther  <rguenther@suse.de>
16558
16559         PR tree-optimization/35400
16560         * tree-vrp.c (vrp_evaluate_conditional): Only query value-range
16561         information from SSA_NAMEs.
16562
16563 2008-04-06  Anatoly Sokolov <aesok@post.ru>
16564
16565         * config/avr/avr.h (avr_mega_p): Remove declaration.
16566         (AVR_MEGA): Remove macro.
16567         * config/avr/avr.c (avr_mega_p): Remove variable.
16568         (avr_override_options): Remove inicializion of avr_mega_p.
16569         Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
16570         (print_operand): Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
16571         (avr_jump_mode): (Ditto.).
16572         (avr_output_progmem_section_asm_op): (Ditto.).
16573         (avr_asm_init_sections): (Ditto.).
16574         (avr_asm_init_sections): (Ditto.).
16575         (avr_rtx_costs): (Ditto.).
16576         * config/avr/avr.md: (Ditto.).
16577         * config/avr/avr.h: Use '__AVR_HAVE_JMP_CALL__' instead of
16578         '__AVR_MEGA__'.
16579
16580 2008-04-06  Richard Guenther  <rguenther@suse.de>
16581
16582         PR tree-optimization/35842
16583         * tree-ssa-address.c (fixed_address_object_p): Adjust to match
16584         is_gimple_invariant_address.
16585
16586 2008-04-06  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
16587
16588         * gcc.c (default_compilers): Sync Fortran extensions list with
16589         that in fortran/lang-specs.h.
16590         * doc/invoke.texi: Likewise.
16591         * dbxout.c (get_lang_number): Use "GNU Fortran" in "GNU F95".
16592         * dwarf2out.c (gen_compile_unit_die): Likewise.
16593
16594 2008-04-06  Tom G. Christensen  <tgc@jupiterrise.com>
16595
16596         * gthr-posix95.h (__gthread_cond_wait_recursive): Add missing &.
16597
16598 2008-04-05  Uros Bizjak  <ubizjak@gmail.com>
16599
16600         PR target/12329
16601         * config/i386/i386.c (ix86_function_regparm): Error if regparm(3)
16602         attribute is used for nested functions.
16603
16604 2008-04-05  Jan Hubicka  <jh@suse.cz>
16605
16606         * emit-rtl.c (init_emit): xcalloc regno_pointer_align.
16607
16608         * tree-dump.c (dump_enable_all): Remove prototype; do not accept
16609         letter argument.
16610         (dump_files): Update.
16611         (enable_rtl_dump_file): Do not accept letter argument.
16612         * tree-pass.h (dump_file_info): Remove letter argument.
16613         * toplev.c (decode_d_option): Update -da handling.
16614         * toplev.h (enable_rtl_dump_file): Update prototype.
16615         * passes.c (register_one_dump_file): Do not accept IPA argument; work
16616         it out based on pass type.
16617         (register_dump_files_1): Likewise.
16618         (init_optimization_passes): Update register_one_dump_file calls.
16619         (execute_one_pass): Sanity check that IPA passes are called at IPA
16620         level and RTL passes at RTL level.
16621         (execute_pass_list): IPA pass can not be after or subpass of
16622         GIMPLE/RTL pass.
16623         (execute_ipa_pass_list): Handle IPA subpasses of IPA subpasses and
16624         disallov RTL subpasses of IPA subpasses.
16625
16626 2008-04-05  Ben Elliston  <bje@au.ibm.com>
16627
16628         * tree-cfg.c (need_fake_edge_p): Return false for calls to
16629         builtins that return exactly once and do not throw. Cache call to
16630         call_expr_flags.
16631
16632 2008-04-04 Andy Hutchinson <hutchinsonandy@aim.com>
16633
16634         PR rtl-optimization/34916
16635         PR middle-end/35519
16636         * combine.c (create_log_links): Do not create duplicate LOG_LINKS
16637         between instruction pairs.
16638
16639 2008-04-04  Naveen.H.S  <naveen.hs@kpitcummins.com>
16640
16641         * doc/invoke.texi: Document -mbitops for SH.
16642         * config/sh/constraints.md (K03, K12, Sbv, Sbw): New constraints.
16643         * config/sh/predicates.md (bitwise_memory_operand): New predicate.
16644         * config/sh/sh.c (print_operand): Add %t operand code.
16645         * config/sh/sh.h (GO_IF_LEGITIMATE_INDEX): Add condition for SH2A.
16646         * config/sh/sh.md (*iorsi3_compact): Fix condition for SH2A.
16647         (extendqisi2_compact): Add the alternative for SH2A 4-byte mov.b.
16648         (extendqihi2): Likewise.
16649         (movqi_i): Likewise.
16650         (insv): Use bset, bclr and bst instructions for SH2A if possible.
16651         (extv): Use bld instruction for SH2A if possible.
16652         (extzv): Likewise.
16653         (bclr_m2a, bclrmem_m2a, bset_m2a, bsetmem_m2a, bst_m2a, bld_m2a,
16654         bldsign_m2a, bld_reg, *bld_regqi, band_m2a, bandreg_m2a,
16655         bor_m2a, borreg_m2a, bxor_m2a, bxorreg_m2a): New insns.
16656         (bset.b, bclr.b): Define peepholes.
16657         * config/sh/sh.opt (mbitops): New option.
16658
16659 2008-04-04  Janis Johnson  <janis187@us.ibm.com>
16660
16661         PR target/35620
16662         * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle indirect ref
16663         and view convert expression.
16664
16665 2008-04-04  Jakub Jelinek  <jakub@redhat.com>
16666
16667         PR target/35364
16668         * tree-cfg.c (remove_useless_stmts_1): Handle OMP_* containers.
16669
16670 2008-04-04  H.J. Lu  <hongjiu.lu@intel.com>
16671
16672         * config.gcc (extra_headers): Add wmmintrin.h for x86 and x86-64.
16673
16674         * config/i386/cpuid.h (bit_AES): New.
16675         (bit_PCLMUL): Likewise.
16676
16677         * config/i386/i386.c (pta_flags): Add PTA_AES and PTA_PCLMUL.
16678         (override_options): Handle PTA_AES and PTA_PCLMUL.  Enable
16679         SSE2 if AES or PCLMUL is enabled.
16680         (ix86_builtins): Add IX86_BUILTIN_AESENC128,
16681         IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
16682         IX86_BUILTIN_AESDECLAST128, IX86_BUILTIN_AESIMC128,
16683         IX86_BUILTIN_AESKEYGENASSIST128 and IX86_BUILTIN_PCLMULQDQ128.
16684         (bdesc_sse_3arg): Add IX86_BUILTIN_PCLMULQDQ128.
16685         (bdesc_2arg): Add IX86_BUILTIN_AESENC128,
16686         IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
16687         IX86_BUILTIN_AESDECLAST128 and IX86_BUILTIN_AESKEYGENASSIST128.
16688         (bdesc_1arg): Add IX86_BUILTIN_AESIMC128.
16689         (ix86_init_mmx_sse_builtins): Define __builtin_ia32_aesenc128,
16690         __builtin_ia32_aesenclast128, __builtin_ia32_aesdec128,
16691         __builtin_ia32_aesdeclast128,__builtin_ia32_aesimc128,
16692         __builtin_ia32_aeskeygenassist128 and
16693         __builtin_ia32_pclmulqdq128.
16694         * config/i386/i386.c (ix86_expand_binop_imm_builtin): New.
16695         (ix86_expand_builtin): Use it for IX86_BUILTIN_PSLLDQI128 and
16696         IX86_BUILTIN_PSRLDQI128.  Handle IX86_BUILTIN_AESKEYGENASSIST128.
16697
16698         * config/i386/i386.h (TARGET_AES): New.
16699         (TARGET_PCLMUL): Likewise.
16700         (TARGET_CPU_CPP_BUILTINS): Handle TARGET_AES and TARGET_PCLMUL.
16701
16702         * config/i386/i386.md (UNSPEC_AESENC): New.
16703         (UNSPEC_AESENCLAST): Likewise.
16704         (UNSPEC_AESDEC): Likewise.
16705         (UNSPEC_AESDECLAST): Likewise.
16706         (UNSPEC_AESIMC): Likewise.
16707         (UNSPEC_AESKEYGENASSIST): Likewise.
16708         (UNSPEC_PCLMUL): Likewise.
16709
16710         * config/i386/i386.opt (maes): New.
16711         (mpclmul): Likewise.
16712
16713         * config/i386/sse.md (aesenc): New pattern.
16714         (aesenclast): Likewise.
16715         (aesdec): Likewise.
16716         (aesdeclast): Likewise.
16717         (aesimc): Likewise.
16718         (aeskeygenassist): Likewise.
16719         (pclmulqdq): Likewise.
16720
16721         * config/i386/wmmintrin.h: New.
16722
16723         * doc/extend.texi: Document AES and PCLMUL built-in function.
16724
16725         * doc/invoke.texi: Document -maes and -mpclmul.
16726
16727 2008-04-04  Paolo Bonzini  <bonzini@gnu.org>
16728
16729         * function.c (free_after_parsing): Replace with
16730         cxx_push_function_context from C++ front-end.
16731         (allocate_struct_function): Don't call langhook.
16732         * langhooks.h (struct lang_hooks_for_functions): Delete.
16733         (struct lang_hooks): Add back missing_noreturn_ok_p here, delete
16734         member "function".
16735         * langhooks-def.h (LANG_HOOKS_MISSING_NORETURN_OK_P): Add.
16736         (LANG_HOOKS_FUNCTION_INIT, LANG_HOOKS_FUNCTION_FINAL,
16737         LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P,
16738         LANG_HOOKS_FUNCTION_INITIALIZER): Delete.
16739         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_MISSING_NORETURN_OK_P,
16740         remove LANG_HOOKS_FUNCTION_INITIALIZER.
16741         * tree-cfg.c: Adjust call to missing_noreturn_ok_p langhook.
16742
16743         * c-objc-common.h (LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P):
16744         Rename to LANG_HOOKS_MISSING_NORETURN_OK_P.
16745
16746 2008-04-04  Jakub Jelinek  <jakub@redhat.com>
16747
16748         PR c/35440
16749         * c-pretty-print.c (pp_c_initializer_list): Handle CONSTRUCTOR
16750         for all types.
16751
16752 2008-04-04  Richard Guenther  <rguenther@suse.de>
16753
16754         PR middle-end/35823
16755         * fold-const.c (optimize_minmax_comparison): Use the correct
16756         type for the constant in the simplified comparison.
16757
16758 2008-04-04  Zuxy Meng <zuxy.meng@gmail.com>
16759
16760         * config/i386/driver-i386.c (describe_cache): Add l2_sizekb argument.
16761         Pass L2 size as "--param l2-cache-size" to the compiler.
16762         (decode_l2_cache): New function to decode L2 cache parameters using
16763         0x8000006 extended cpuid function.
16764         (detect_caches_amd): Determine parameters of L2 cache using
16765         decode_l2_caches function.
16766         (decode_caches_intel): Decode L2 cache parameters.
16767         (detect_caches_intel): Determine L2 cache parameters using
16768         decode_caches_intel and decode_l2_caches functions.
16769
16770 2008-04-03  Bob Wilson  <bob.wilson@acm.org>
16771
16772         * config/xtensa/xtensa.c (xtensa_secondary_reload_class): Use a
16773         secondary input reload for subword loads from the constant pool.
16774
16775 2008-04-03  Janis Johnson  <janis187@us.ibm.com>
16776
16777         PR target/35713
16778         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use integer
16779           constants of the appropriate size for runtime calculations.
16780
16781         PR c/35712
16782         * dfp.c (decimal_from_decnumber): Retain trailing zeroes for
16783           decimal-float literal constant zero.
16784
16785 2008-04-03  Jakub Jelinek  <jakub@redhat.com>
16786
16787         PR c/35738
16788         * c-parser.c (c_parser_omp_atomic): Call
16789         default_function_array_conversion on the RHS.
16790
16791         PR middle-end/35818
16792         * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: Don't
16793         call is_variable_sized if decl has incomplete type.
16794
16795 2008-04-03  H.J. Lu  <hongjiu.lu@intel.com>
16796
16797         * config/i386/i386-protos.h (ix86_aligned_p): Removed.
16798
16799 2008-04-03  Adam Nemet  <anemet@caviumnetworks.com>
16800
16801         * config/mips/mips.md (any_gt, any_ge, any_lt, any_le): New code
16802         iterators.
16803         (u): Add attribute values for gt, gtu, ge, geu, lt, ltu, le and leu.
16804         (sgt<u>): Merge sgt and sgtu into new expander.
16805         (sgt, sgtu): Remove expanders.
16806         (*sgt<u>_<mode>): Merge *sgt_<mode> and *sgtu_<mode> into new pattern.
16807         (*sgt_<mode>, *sgtu_<mode>): Remove patterns.
16808         (*sgt<u>_<mode>_mips16): Merge *sgt_<mode>_mips16 and
16809         *sgtu_<mode>_mips16 into new pattern.
16810         (*sgt_<mode>_mips16, *sgtu_<mode>_mips16): Remove patterns.
16811         (sge<u>): Merge sge and sgeu into new expander.
16812         (sge, sgeu): Remove expanders.
16813         (*sge<u>_<mode>): Merge *sge_<mode> and second *sge_<mode> into
16814         new pattern.
16815         (*sge_<mode>, second *sge_<mode>): Remove patterns.
16816         (slt<u>): Merge slt and sltu into new expander.
16817         (slt, sltu): Remove expanders.
16818         (*slt<u>_<mode>): Merge *slt_<mode> and *sltu_<mode> into new pattern.
16819         (*slt_<mode>, *sltu_<mode>): Remove patterns.
16820         (*slt<u>_<mode>_mips16): Merge *slt_<mode>_mips16 and
16821         *sltu_<mode>_mips16 into new pattern.
16822         (*slt_<mode>_mips16, *sltu_<mode>_mips16): Remove patterns.
16823         (sle<u>): Merge sle and sleu into new expander.
16824         (sle, sleu): Remove expanders.
16825         (*sle<u>_<mode>): Merge *sle_<mode> and *sleu_<mode> into new pattern.
16826         (*sle_<mode>, *sleu_<mode>): Remove patterns.
16827         (*sle<u>_<mode>_mips16): Merge *sle_<mode>_mips16 and
16828         *sleu_<mode>_mips16 into new pattern.
16829         (*sle_<mode>_mips16, *sleu_<mode>_mips16): Remove patterns.
16830
16831 2008-04-03  Jan Hubicka  <jh@suse.cz>
16832
16833         PR tree-optimization/35795
16834         * alpha/alpha.c (alpha_output_mi_thunk_osf): Free after compilation.
16835         * sparc/sparc.c (sparc_output_mi_thunk): Likewise.
16836         * ia64/ia64.c (ia64_output_mi_thunk): Likewise.
16837         * m68k/m68k.c (m68k_output_mi_thunk): Likewise.
16838         * score/score3.c (score3_output_mi_thunk): Likewise.
16839         * score/score7.c (score7_output_mi_thunk): Likewise.
16840         * mips/mips.c (mips_output_mi_thunk): Likewise.
16841
16842 2008-04-03  Richard Guenther  <rguenther@suse.de>
16843
16844         * tree-vrp.c (extract_range_from_unary_expr): Handle all
16845         conversions.  Simplify code.
16846
16847 2008-04-03  Kaz Kojima  <kkojima@gcc.gnu.org>
16848
16849         * config/sh/sh.c (sh_output_mi_thunk): Free cfun.
16850
16851 2008-04-03  Tom Tromey  <tromey@redhat.com>
16852             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16853
16854         * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
16855         * config/bfin/t-bfin-linux (generated_files): Add
16856         linux-sysroot-suffix.h.
16857         * doc/install.texi (Prerequisites): Require make 3.80.
16858         * doc/sourcebuild.texi (Front End Directory): Document new
16859         variable.
16860         * Makefile.in (generated_files): New variable.
16861         (ALL_HOST_OBJS): New variable.
16862         ($(ALL_HOST_OBJS)): New target.
16863
16864 2008-04-03  Paolo Bonzini  <bonzini@gnu.org>
16865
16866         * tree-inline.c (copy_generic_body, copy_decl_no_change): Export.
16867         (remap_block): Call id->transform_lang_insert_block instead
16868         of langhook.
16869         (optimize_inline_calls, unsave_expr_now, tree_function_versioning):
16870         Set id.transform_lang_insert_block to NULL.
16871         (clone_body): Move to cp/optimize.c
16872         * tree-inline.h (struct copy_body_data): Change
16873         transform_lang_insert_block to function pointer.
16874         (copy_generic_body, copy_decl_no_change): Export.
16875         * langhooks.h (struct lang_hooks_for_decls): Kill insert_block.
16876         * langhooks-def.h (LANG_HOOKS_INSERT_BLOCK): Kill.
16877         (LANG_HOOKS_DECLS): Remove LANG_HOOKS_INSERT_BLOCK.
16878
16879         * c-tree.h (insert_block): Kill.
16880         * c-decl.c (insert_block): Kill.
16881
16882 2008-04-03  Paolo Bonzini  <bonzini@gnu.org>
16883
16884         * c-objc-common.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
16885         LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
16886         * c-tree.h (c_push_function_context, c_pop_function_context): Remove
16887         argument.
16888         * c-decl.c (c_push_function_context, c_pop_function_context): Remove
16889         argument, call {push,pop}_function_context from here.
16890         * c-parser.c: Use c_{push,pop}_function_context.
16891
16892         * function.c (push_function_context_to): Move meat ...
16893         (push_function_context): ... here.  Simplify.
16894         * function.c (pop_function_context_from): Move meat ...
16895         (pop_function_context): ... here.  Simplify.
16896         * langhooks.h (struct lang_hooks_for_functions): Remove enter_nested,
16897         leave_nested).
16898         * langhooks-def.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
16899         LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
16900         (LANG_HOOKS_FUNCTION_INITIALIZER): Delete them from here.
16901         * tree.h (push_function_context_to, pop_function_context_from): Remove.
16902
16903 2008-04-03  Ben Elliston  <bje@au.ibm.com>
16904
16905         * expmed.c (extract_force_align_mem_bit_field): Remove.
16906
16907 2008-04-03  Richard Guenther  <rguenther@suse.de>
16908
16909         PR middle-end/35800
16910         * expr.h (try_casesi): Adjust prototype.
16911         * expr.c (try_casesi): Take fallback label as extra parameter.
16912         Use that for gen_casesi if default_label is NULL.
16913         * stmt.c (expand_case): Pass fallback label to try_casesi,
16914         make sure to fill gaps with a fallback label if default_label
16915         is not present.
16916
16917 2008-04-03  Dominique d'Humières <dominiq@lps.ens.fr>
16918
16919         PR target/35801
16920         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Free cfun.
16921
16922 2008-04-03  Ben Elliston  <bje@au.ibm.com>
16923
16924         * expmed.c (extract_split_bit_field): Remove if (0) code.
16925         * tree-ssa-structalias.c (do_sd_constraint): Likewise.
16926         (do_ds_constraint): Likewise.
16927
16928 2008-04-02  Joseph Myers  <joseph@codesourcery.com>
16929
16930         * doc/cppopts.texi (-dU): Document.
16931         * c-common.h (flag_dump_macros): Update comment.
16932         * c-opts.c (handle_OPT_d): Handle -dU.
16933         * c-ppoutput.c (macro_queue, define_queue, undef_queue,
16934         dump_queued_macros, cb_used_define, cb_used_undef): New.
16935         (init_pp_output): Handle -dU.
16936         (cb_line_change): Call dump_queued_macros.
16937         * toplev.c (decode_d_option): Accept -dU as preprocessor option.
16938
16939 2008-04-02  Anatoly Sokolov <aesok@post.ru>
16940
16941         * config/avr/predicates.md (io_address_operand): New predicate.
16942         * config/avr/avr-protos.h (avr_io_address_p): Remove declaration.
16943         * config/avr/avr.c (avr_io_address_p): Remove function.
16944         (out_movqi_r_mr): Use 'io_address_operand' predicate instead of
16945         'avr_io_address_p' function.
16946         (out_movhi_r_mr): (Ditto.).
16947         (out_movqi_mr_r): (Ditto.).
16948         (out_movhi_mr_r): (Ditto.).
16949         (avr_address_cost): (Ditto.).
16950
16951 2008-04-02  Uros Bizjak  <ubizjak@gmail.com>
16952
16953         * config/i386/i386.md (*float<SSEMODEI24:mode><X87MODEF:mode>2_1):
16954         Emit gen_floatdi<X87MODEF:mode>2_i387_with_xmm for DImode values
16955         in 32bit mode when XMM registers are available to avoid store
16956         forwarding stalls.
16957         (floatdi<X87MODEF:mode>2_i387_with_xmm): New insn pattern and
16958         corresponding post-reload splitters.
16959
16960 2008-04-02  H.J. Lu  <hongjiu.lu@intel.com>
16961
16962         * config/i386/i386.c (bdesc_sse_3arg): Add __builtin_ia32_shufps
16963         and __builtin_ia32_shufpd.  Provide __builtin_ia32_roundsd and
16964         __builtin_ia32_roundss.
16965         (ix86_init_mmx_sse_builtins): Remove __builtin_ia32_shufps,
16966         __builtin_ia32_shufpd, __builtin_ia32_roundsd and
16967         __builtin_ia32_roundss.
16968         (ix86_expand_builtin): Don't handle IX86_BUILTIN_SHUFPS and
16969         IX86_BUILTIN_SHUFPD here.
16970
16971 2008-04-02  H.J. Lu  <hongjiu.lu@intel.com>
16972
16973         * config/i386/i386.md (plogic): New.
16974         (plogicprefix): Likewise.
16975
16976         * config/i386/mmx.md (mmx_<code><mode>3): New.
16977         (mmx_and<mode>3): Removed.
16978         (mmx_ior<mode>3): Likewise.
16979         (mmx_xor<mode>3): Likewise.
16980
16981         * config/i386/sse.md (<code><mode>3): New.
16982         (*<code><mode>3): Likewise.
16983         (*<code><mode>3): Likewise.
16984         (<code><mode>3): Likewise.
16985         (*sse_<code><mode>3): Likewise.
16986         (*sse2_<code><mode>3): Likewise.
16987         (<code>tf3): Likewise.
16988         (*<code>tf3): Likewise.
16989         (and<mode>3): Likewise.
16990         (*and<mode>3): Likewise.
16991         (ior<mode>3): Removed.
16992         (*ior<mode>3): Likewise.
16993         (xor<mode>3): Likewise.
16994         (*xor<mode>3): Likewise.
16995         (*and<mode>3): Likewise.
16996         (*ior<mode>3): Likewise.
16997         (*xor<mode>3): Likewise.
16998         (and<mode>3): Likewise.
16999         (*sse_and<mode>3): Likewise.
17000         (*sse2_and<mode>3): Likewise.
17001         (andtf3): Likewise.
17002         (*andtf3): Likewise.
17003         (ior<mode>3): Likewise.
17004         (*sse_ior<mode>3): Likewise.
17005         (*sse2_ior<mode>3): Likewise.
17006         (iortf3): Likewise.
17007         (*iortf3): Likewise.
17008         (xor<mode>3): Likewise.
17009         (*sse_xor<mode>3): Likewise.
17010         (*sse2_xor<mode>3): Likewise.
17011         (xortf3): Likewise.
17012         (*xortf3): Likewise.
17013
17014 2008-04-02  Richard Guenther  <rguenther@suse.de>
17015
17016         PR tree-optimization/14495
17017         PR tree-optimization/34793
17018         * tree-vrp.c (struct switch_update): New structure.
17019         (to_remove_edges, to_update_switch_stmts): New VECs.
17020         (simplify_switch_using_ranges): New function.  Remove not taken
17021         case labels and edges.
17022         (simplify_stmt_using_ranges): Call it.
17023         (identify_jump_threads): Mark edges we have queued for removal
17024         so we don't thread them.
17025         (execute_vrp): Remove edges queued for removal, update SWITCH_STMT
17026         case label vector.
17027         * tree-cfg.c (group_case_labels): Deal with missing default label.
17028         (tree_verify_flow_info): Allow missing default label.
17029         * stmt.c (emit_case_bit_tests): Deal with NULL default_label.
17030         (emit_case_nodes): Likewise.
17031         (expand_case): Do not rely on the default label to be present.
17032         * expr.c (try_casesi): Deal with NULL default_label.
17033         (do_tablejump): Likewise.
17034
17035 2008-04-02  Richard Guenther  <rguenther@suse.de>
17036
17037         PR tree-optimization/14495
17038         * tree-vrp.c (vrp_visit_cond_stmt): Do not handle
17039         SWITCH_EXPR here ...
17040         (vrp_visit_switch_stmt): ... but here (new function).
17041         (find_case_label_index): New helper function.
17042         (vrp_visit_stmt): Dispatch to vrp_visit_switch_stmt.
17043
17044 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
17045
17046         * fwprop.c: Fix ISO-C99ism.
17047
17048 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
17049
17050         PR bootstrap/35752
17051         * Makefile.in (objdir): Set it here.
17052         * configure.ac: Not here.  Find dynamic linker characteristics.
17053         * exec-tool.in: Use them.
17054         * aclocal.m4: Regenerate.
17055         * configure: Regenerate.
17056
17057 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
17058
17059         * expr.c (expand_var): Delete it.
17060         * expr.h (expand_var): Delete prototype.
17061         * function.c (expand_function_start): Use expand_decl instead.
17062         * cfgexpand.c (expand_one_static_var, expand_one_var): Don't call
17063         langhook.
17064
17065 2008-04-02  Andy Hutchinson <hutchinsonamdy@aim.com>
17066
17067         PR rtl-optimization/35542
17068         * fwprop.c (forward_propagate_and_simplify): Replace
17069         loc_reg_mentioned_in_p with reg_mentioned_p.
17070
17071 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
17072
17073         PR rtl-optimization/35281
17074         * fwprop.c (PR_CAN_APPEAR, PR_HANDLE_MEM): New.
17075         (propagate_rtx_1): Handle PR_HANDLE_MEM.
17076         (propagate_rtx): Pass PR_HANDLE_MEM if appropriate.
17077         (varying_mem_p): Move above propagate_rtx.
17078         (all_uses_available_at): Do not check MEMs.
17079
17080 2008-04-02  Rafael Espíndola  <espindola@google.com>
17081
17082         * tree-vrp.c (extract_code_and_val_from_cond): Remove.
17083         (register_edge_assert_for_2): Split the cond argument.
17084         (register_edge_assert_for_1): Adjust for the change in
17085         register_edge_assert_for_2.
17086         (register_edge_assert_for): Split the cond argument.
17087         (find_switch_asserts): Adjust for the change in
17088         register_edge_assert_for.
17089
17090 2008-04-02  Kai Tietz  <kai.tietz@onevision.com>
17091
17092         * config.gcc: Add for x86_64-*-mingw* the t-crtfm to tbuild.
17093         * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Add 8 byte
17094         offsets for 64-bit mingw.
17095         * config/i386/i386.c (ix86_pass_by_reference): Correct calling
17096         abi for x86_64-pc-mingw.
17097
17098 2008-04-02  Richard Guenther  <rguenther@suse.de>
17099
17100         * tree-vrp.c (extract_range_from_assert): Make sure to not
17101         produce range min/max with TREE_OVERFOW set.
17102         If merging a anti-range and a range keep the anti-range if
17103         the range covers all values of the type.
17104         (register_edge_assert_for_2): Only allow sign-changing
17105         conversions in detecting canonical range checks.  Also
17106         register an assert for the unsigned name if useful.
17107
17108         PR tree-optimization/35787
17109         * tree-vrp.c (vrp_val_max): New function.
17110         (vrp_val_min): Likewise.
17111         (vrp_val_is_max): Move earlier, use vrp_val_{min,max}.
17112         (vrp_val_is_min): Likewise.
17113         (supports_overflow_infinity): Use vrp_val_{min,max}.
17114         (negative_overflow_infinity): Likewise.
17115         (positive_overflow_infinity): Likewise.
17116         (is_negative_overflow_infinity): Use vrp_val_is_{min,max}.
17117         (is_positive_overflow_infinity): Likewise.
17118         (is_overflow_infinity): Likewise.
17119         (avoid_overflow_infinity): Use vrp_val_{min,max} and
17120         vrp_val_is_{min,max}.
17121         (set_and_canonicalize_value_range): Canonicalize anti-ranges
17122         to ranges if possible.  Avoid empty ranges.
17123
17124 2008-04-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
17125
17126         PR middle-end/35705
17127         * fold-const.c (get_pointer_modulus_and_residue): Return modulus 1 if
17128         the expression is a function address.
17129
17130 2008-04-01  George Helffrich  <george@gcc.gnu.org>
17131
17132         PR fortran/35154, fortran/23057
17133         * dbxout.c: Emit .stabs debug info for Fortran COMMON block
17134         variables as base symbol name + offset using N_BCOMM/N_ECOMM.
17135         (is_fortran, dbxout_common_name, dbxout_common_check): New functions.
17136         (dbxout_symbol_location): Transform N_LCSYM to N_GSYM for storage
17137         in common.
17138         (dbxout_syms): Check for COMMON-based symbol and wrap in
17139         N_BCOMM/N_ECOMM stab bracket, including as many symbols as possible
17140         in bracket for efficiency.
17141
17142         * dwarf2out.c: Emit DWARF debug info for Fortran COMMON block
17143         using DW_TAG_common_block + member offset.
17144         (add_pubname_string): New function.
17145         (dw_expand_expr): New function to find block name and offset for
17146         COMMON var.
17147         (common_check): New function to check whether symbol in Fortran COMMON.
17148         (gen_variable_die): If COMMON, use DW_TAG_common_block.
17149
17150 2008-04-01  Volker Reichelt  <v.reichelt@netcologne.de>
17151
17152         PR c/35436
17153         * c-format.c (init_dynamic_gfc_info): Ignore invalid locus type.
17154
17155 2008-04-02  Ben Elliston  <bje@au.ibm.com>
17156
17157         * config/v850/v850.md (casesi): Remove if (0) code.
17158         * config/i386/uwin.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
17159         * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
17160
17161 2008-04-01  Uros Bizjak  <ubizjak@gmail.com>
17162
17163         * config/i386/i386.md (rex64suffix): New mode attribute.
17164         (floathi<mode>2): Disable expander for SSE math.
17165         (*floathi<mode>2_1): New insn insn_and_split pattern.
17166         (*floathi<mode>2_i387_with_temp): New macroized instruction pattern and
17167         corresponding post-reload splitters.
17168         (*floathi<mode>2_i387): New macroized insn pattern.
17169         (float<SSEMODEI24:mode><X87MODEF:mode>2): New macroized expander.
17170         (*float<SSEMODEI24:mode><X87MODEF:mode>2_1): New macroized
17171         insn_and_split pattern.
17172         (*floatsi<mode>2_vector_mixed_with_temp, *floatsi<mode>2_vector_mixed):
17173         New macroized instruction patterns and corresponding post-reload
17174         splitters.
17175         (*floatsi<mode>2_mixed_with_temp): New macroized instruction pattern
17176         and corresponding post-reload splitters.
17177         (*floatsi<mode>2_mixed_interunit, *floatsi<mode>2_mixed_nointerunit):
17178         New macroized instruction patterns.
17179         (*floatsi<mode>2_vector_sse_with_temp, *floatsi<mode>2_vector_sse): New
17180         macroized instruction patterns and corresponding post-reload splitters.
17181         (*floatsi<mode>2_sse_with_temp): New macroized instruction pattern and
17182         corresponding post-reload splitters.
17183         (*floatsi<mode>2_sse_interunit, *floatsi<mode>2_mixed_nointerunit):
17184         New macroized instruction patterns.
17185         (*floatsi<mode>2_i387_with_temp): New macroized instruction pattern and
17186         corresponding post-reload splitters.
17187         (*floatsi<mode>2_i387): New macroized instruction patterns.
17188
17189 2008-04-01  H.J. Lu  <hongjiu.lu@intel.com>
17190
17191         * config/i386/i386.md (smaxmin): New.
17192         (umaxmin): Likewise.
17193         (maxminiprefix): Likewise.
17194         (maxminfprefix): Likewise.
17195         (<code><mode>3): Likewise.
17196         (smin<mode>3): Removed.
17197         (smax<mode>3): Likewise.
17198
17199         * config/i386/mmx.md (mmx_<code>v2sf3): New.
17200         (mmx_<code>v4hi3): Likewise.
17201         (mmx_<code>v8qi3): Likewise.
17202         (mmx_smaxv2sf3): Removed.
17203         (mmx_sminv2sf3): Likewise.
17204         (mmx_umaxv8qi3): Likewise.
17205         (mmx_smaxv4hi3): Likewise.
17206         (mmx_uminv8qi3): Likewise.
17207         (mmx_sminv4hi3): Likewise.
17208
17209         * config/i386/sse.md (<addsub><mode>3): New.
17210         (*<addsub><mode>3): Likewise.
17211         (<sse>_vm<addsub><mode>3): Likewise.
17212         (<maxmin><mode>3): Likewise.
17213         (*<maxmin><mode>3_finite): Likewise.
17214         (*<maxmin><mode>3): Likewise.
17215         (<sse>_vm<maxmin><mode>3): Likewise.
17216         (sse3_h<addsub>v4sf3): Likewise.
17217         (sse3_h<addsub>v2df3): Likewise.
17218         (<maxmin>v16qi3): Likewise.
17219         (*<maxmin>v16qi3): Likewise.
17220         (<maxmin>v8hi3): Likewise.
17221         (*<maxmin>v8hi3): Likewise.
17222         (*sse4_1_<maxmin><mode>3): Likewise.
17223         (*sse4_1_<maxmin><mode>3): Likewise.
17224         (add<mode>3): Removed.
17225         (*add<mode>3): Likewise.
17226         (<sse>_vmadd<mode>3): Likewise.
17227         (sub<mode>3): Likewise.
17228         (*sub<mode>3): Likewise.
17229         (<sse>_vmsub<mode>3): Likewise.
17230         (smin<mode>3): Likewise.
17231         (*smin<mode>3_finite): Likewise.
17232         (*smin<mode>3): Likewise.
17233         (<sse>_vmsmin<mode>3): Likewise.
17234         (smax<mode>3): Likewise.
17235         (*smax<mode>3_finite): Likewise.
17236         (*smax<mode>3): Likewise.
17237         (<sse>_vmsmax<mode>3): Likewise.
17238         (sse3_haddv4sf3): Likewise.
17239         (sse3_haddv2df3): Likewise.
17240         (sse3_hsubv4sf3): Likewise.
17241         (sse3_hsubv2df3): Likewise.
17242         (umaxv16qi3): Likewise.
17243         (*umaxv16qi3): Likewise.
17244         (smaxv8hi3): Likewise.
17245         (*smaxv8hi3): Likewise.
17246         (*sse4_1_smax<mode>3): Likewise.
17247         (*sse4_1_umax<mode>3): Likewise.
17248         (uminv16qi3): Likewise.
17249         (*uminv16qi3): Likewise.
17250         (sminv8hi3): Likewise.
17251         (*sminv8hi3): Likewise.
17252         (*sse4_1_smin<mode>3): Likewise.
17253         (*sse4_1_umin<mode>3): Likewise.
17254
17255 2008-04-01  Rafael Espíndola  <espindola@google.com>
17256
17257         * tree-cfg.c (verify_expr): remove in_phi.
17258         (verify_stmt): Don't call walk_tree with verify_expr. Use
17259         is_gimple_min_invariant instead of is_gimple_val.
17260
17261 2008-04-01  Joseph Myers  <joseph@codesourcery.com>
17262
17263         * doc/include/gpl_v3.texi: Update for manpage generation.
17264         * doc/gcc.texi, doc/gccint.texi: Include gpl_v3.texi instead of
17265         gpl.texi.
17266         * doc/sourcebuild.texi: Document gpl_v3.texi as well as gpl.texi.
17267         * Makefile.in (TEXI_GCC_FILES, TEXI_GCCINT_FILES): Include
17268         gpl_v3.texi instead of gpl.texi.
17269         (gpl.pod): New.
17270
17271 2008-04-01  Jakub Jelinek  <jakub@redhat.com>
17272
17273         PR pch/13675
17274         * c-pch.c (c_common_read_pch): On error close (fd) resp. fclose (f).
17275
17276 2008-04-01  Rafael Espíndola  <espindola@google.com>
17277
17278         * tree-vrp.c (extract_code_and_val_from_cond_with_ops): New.
17279         (extract_code_and_val_from_cond): Use
17280         extract_code_and_val_from_cond_with_ops.
17281
17282 2008-04-01  Jan Hubicka  <jh@suse.cz>
17283
17284         * function.c (free_after_compilation): Free epilogue_delay_list.
17285         (prepare_function_start): Assert that previous compilation was freed.
17286
17287 2008-04-01  Jan Hubicka  <jh@suse.cz>
17288             Jim Wilson  <wilson@tuliptree.org>
17289             Andreas Tobler <andreast@gcc.gnu.org>
17290
17291         PR middle-end/35781
17292         * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Use
17293         rtl.emit instead cfun->emit.
17294         * sparc/sparc.h (INIT_EXPANDERS): Likewise.
17295         * ia64/ia64.h (INIT_EXPANDERS): Likewise.
17296
17297 2008-04-01  Ben Elliston  <bje@au.ibm.com>
17298
17299         * doc/c-tree.texi (Function Basics): Fix grammatical error.
17300
17301 2008-03-31  Seongbae Park <seongbae.park@gmail.com>
17302
17303         * common.opt (fprofile-dir=, fprofile-use=, fprofile-generate=):
17304         New options
17305         (fprofile-use): Add var flag_profile_use
17306         * coverage.c (coverage_begin_output): Do not open a gcno file for
17307         output only if -ftest-coverage is set.
17308         Do not add getpwd() to gcda file path.
17309         (build_gcov_info): Check the new flag
17310         flag_profile_datafile_relative_path.
17311         (coverage_init): Use profile_data_prefix.
17312         Read profile counter only if flag_profile_use is set.
17313         * opts.c (common_handle_option): New option fprofile-use=,
17314         fprofile-dir=, fprofile-generate=.
17315         * toplev.c (profile_data_prefix): New variable definition.
17316         * toplev.h (profile_data_prefix): New declaration.
17317         * doc/invoke.tex (Option Summary, Optimization Options):
17318         Add new options.
17319
17320 2008-03-31  James E. Wilson  <wilson@tuliptree.org>
17321
17322         * varasm.c (output_constant_pool_1): In LABEL_REF check,
17323         use tmp consistently.
17324
17325         PR target/35695
17326         * config/ia64/div.md (recip_approx_rf): Use UNSPEC not DIV.
17327         * config/ia64/ia64.c (rtx_needs_barrier): Handle
17328         UNSPEC_FR_RECIP_APPROX_RES.
17329         * config/ia64/ia64.md (UNSPEC_FR_RECIP_APPROX_RES): Define.
17330
17331 2008-03-31  Volker Reichelt  <v.reichelt@netcologne.de>
17332
17333         PR c/35750
17334         * c-decl.c (store_parm_decls_oldstyle): Skip invalid parameters.
17335
17336 2008-03-31  Andrew Pinski  <andrew_pinski@playstation.sony.com>
17337
17338         PR middle-end/30186
17339         * fold-const.c (fold_indirect_ref_1): Support accessing non first
17340         element of the vector via a pointer.
17341
17342 2008-03-31  Ian Lance Taylor  <iant@google.com>
17343
17344         * tlink.c (scan_linker_output): Look for symbol name in single quotes.
17345
17346 2008-03-31  Jan Hubicka  <jh@suse.cz>
17347
17348         * builtins.c (expand_builtin_setjmp_receiver): Update call of
17349         get_arg_pointer_save_area.
17350         * expr.c (init_expr): Just clear out rtl.expr.
17351         * function.c (free_after_compilation): Clear out whole RTL structure.
17352         (get_func_frame_size): Merge into ...
17353         (get_frame_size): ... this one.
17354         (assign_stack_local_1): Merge into ...
17355         (assign_stack_local): ... this one.
17356         (expand_function_end): Update call of get_arg_pointer_save_area.
17357         (get_art_pointer_save_area): Remove cfun argument.
17358         * function.h (emit_status): regno_pointer_align does not need length
17359         attribute. Move x_regno_reg_rtx to ...
17360         (regno_reg_rtx): ... new global array.
17361         (reg_rtx_no, seq_stack, REGNO_POINTER_ALIGN): Update accestors.
17362         (pending_stack_adjust, inhibit_defer_pop, saveregs_value,
17363         apply_args_value, forced_labels, stack_pointer_delta):
17364         Update accestors.
17365         (struct varasm_status): Move here from varasm.c
17366         (struct rtl_data): New. Move here some fields from struct function.
17367         (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
17368         frame_offset, stack_check_probe_note, arg_pointer_save_area,
17369         used_temp_slots avail_temp_slots, temp_slot_level,
17370         nonlocal_goto_handler_labels): Update accesstors.
17371         (rtl): New global variable.
17372         (struct function): Move some fileds to rtl_data.
17373         (get_arg_pointer_save_area): Update prototype.
17374         * emit-rtl.c (rtl): Declare.
17375         (regno_reg_rtx): Declare.
17376         (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
17377         Update.
17378         (gen_reg_rtx): Update.
17379         (init_virtual_regs): Do not tate emit_status argument.
17380         (init_emit): Do not allocate emit.
17381         * varasm.c (varasm_statuc): Move to function.h.
17382         (n_deferred_constatns): Update accestor.
17383         (init_varasm_status): Do not allocate varasm_status.
17384         (force_const_mem, get_pool_size, output_constant_pool): Update.
17385         * stmt.c (force_label_rtx): Do not use x_ prefixes.
17386         (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
17387
17388 2008-03-31  Zdenek Dvorak  <ook@ucw.cz>
17389
17390         PR rtl-optimization/35729
17391         * loop-invariant.c (check_maybe_invariant): Disallow volatile memory
17392         references.
17393
17394 2008-03-31  H.J. Lu  <hongjiu.lu@intel.com>
17395
17396         PR target/32000
17397         * config/i386/i386.md (*movti_internal): Emit unaligned SSE
17398         load/store if memory is unaligned.
17399         (*movti_rex64): Likewise.
17400
17401         * config/i386/predicates.md (misaligned_operand): New.
17402
17403 2008-03-31  Andrew Pinski  <pinskia@gmail.com>
17404
17405         PR tree-opt/35431
17406         * tree-ssa-phiopt.c (conditional_replacement): Return early for
17407         complex types.
17408
17409 2008-03-31  Jan Beulich  <jbeulich@novell.com>
17410
17411         * config/ia64/constraints.md: Add 'j' constraint.
17412         * config/ia64/ia64.md (movsi_internal): Add addp4 case.
17413         (movdi_internal): Likewise.
17414
17415 2008-03-30  Volker Reichelt  <v.reichelt@netcologne.de>
17416
17417         PR c/35748
17418         * c-typeck.c (build_c_cast): Skip invalid fields in unions.
17419
17420 2008-03-30  H.J. Lu  <hongjiu.lu@intel.com>
17421
17422         PR target/35757
17423         * config/i386/i386.c (ix86_expand_sse_4_operands_builtin): Issue
17424         proper error message for the third argument on blendpd and
17425         blendps.
17426
17427         * config/i386/sse.md (blendbits): New.
17428         (sse4_1_blendp<ssemodesuffixf2c>): Use it.
17429
17430 2008-03-30  Eric Botcazou  <ebotcazou@adacore.com>
17431
17432         * fold-const.c (fold_binary) <BIT_IOR_EXPR>: Add missing conversions.
17433
17434 2008-03-30  Richard Guenther  <rguenther@suse.de>
17435
17436         PR middle-end/31023
17437         * fold-const.c (fold_sign_changed_comparison): Do leave
17438         conversions to base-types alone.
17439
17440 2008-03-29  Andrew Pinski  <andrew_pinski@playstation.sony.com>
17441
17442         * config/rs6000/rs6000.c (rs6000_stack_info): Don't force saving of
17443         the link register if one altivec register is be saved.
17444
17445 2008-03-30  Ben Elliston  <bje@au.ibm.com>
17446
17447         * final.c (final_scan_insn): Remove if (0) code.
17448
17449 2008-03-28  Volker Reichelt  <v.reichelt@netcologne.de>
17450
17451         * c-parser.c (c_parser_next_token_is_keyword): Simplify.
17452
17453 2008-03-28  H.J. Lu  <hongjiu.lu@intel.com>
17454
17455         * config/i386/sse.md (*and<mode>3): Pass <MODE>mode instead
17456         of V4SFmode to ix86_binary_operator_ok.
17457
17458 2008-03-28  Uros Bizjak  <ubizjak@gmail.com>
17459
17460         * config/i386/i386.c (override_options): Initialize
17461         ix86_veclib_handler to ix86_veclibabi_svml when
17462         -mveclibabi=svml is used.
17463         (ix86_veclibabi_svml): New function for SVML ABI style
17464         vectorization support.
17465         * doc/invoke.texi (-mveclibabi) [svml]: Document new target option.
17466
17467 2008-03-28  Rafael Espíndola  <espindola@google.com>
17468
17469         * fold-const.c (tree_unary_nonnegative_warnv_p): Make it public.
17470         (tree_binary_nonnegative_warnv_p): Make it public.
17471         (tree_single_nonnegative_warnv_p): Make it public.
17472         (tree_invalid_nonnegative_warnv_p): Make it public.
17473         (tree_unary_nonzero_warnv_p): Make it public.
17474         (tree_binary_nonzero_warnv_p): Make it public
17475         (tree_single_nonzero_warnv_p): Make it public.
17476         * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops): New function.
17477         (extract_range_from_binary_expr): Split the expr argument.
17478         (extract_range_from_unary_expr): Split the expr argument.
17479         (extract_range_from_comparison): Split the expr argument.
17480         (extract_range_from_expr): Use the new aux functions.
17481         (vrp_evaluate_conditional_warnv): Use
17482         vrp_evaluate_conditional_warnv_with_ops.
17483         * tree.h (tree_unary_nonzero_warnv_p): Declare.
17484         (tree_binary_nonzero_warnv_p): Declare.
17485         (tree_single_nonzero_warnv_p): Declare.
17486         (tree_expr_nonzero_warnv_p): Declare.
17487         (tree_unary_nonnegative_warnv_p): Declare.
17488         (tree_binary_nonnegative_warnv_p): Declare.
17489         (tree_single_nonnegative_warnv_p): Declare.
17490         (tree_invalid_nonnegative_warnv_p): Declare.
17491
17492 2008-03-28  Richard Guenther  <rguenther@suse.de>
17493
17494         PR tree-optimization/30317
17495         PR tree-optimization/30911
17496         PR tree-optimization/34793
17497         * tree-vrp.c (set_and_canonicalize_value_range): New function.
17498         (struct assert_locus_d): New member EXPR.
17499         (register_new_assert_for): Add EXPR parameter to support
17500         ASSERT_EXPR <name, expr OP limit>.
17501         (register_edge_assert_for_1): Adjust callers.
17502         (find_assert_locations): Likewise.
17503         (process_assert_insertions_for): Build condition from expression.
17504         (extract_range_from_assert): Handle ASSERT_EXPRs
17505         of the form ASSERT_EXPR <name, expr OP limit>.
17506         (register_edge_assert_for_2): New helper registering
17507         asserts for comparisons.  Recognize range tests of the form
17508         (unsigned)i - CST1 OP CST2.
17509         (register_edge_assert_for_1): Use it.
17510         (register_edge_assert_for): Likewise.
17511         (needs_overflow_infinity): Integer sub-types
17512         do not need overflow infinities.
17513         (vrp_val_is_max): The extreme values of integer sub-types
17514         are those of the base type.
17515         (vrp_val_is_min): Likewise.
17516         * tree.def (ASSERT_EXPR): Document extra allowed conditional
17517         expressions.
17518
17519 2008-03-28  Nick Clifton  <nickc@redhat.com>
17520
17521         PR target/31110
17522         * config/mn10300/mn10300.c (mn10300_secondary_reload_class):
17523         Return GENERAL_REGS for stack adjustment reloads.
17524
17525 2008-03-28  Andrew Pinski  <andrew_pinski@playstation.sony.com>
17526
17527         PR target/31334
17528         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Create a
17529         const_vector when all the vectors are constant.
17530
17531 2008-03-27  Bob Wilson  <bob.wilson@acm.org>
17532
17533         * config/xtensa/xtensa.c (gen_float_relational): Handle unordered
17534         comparisons.
17535         * config/xtensa/xtensa.md (any_cond): Add unordered comparisons.
17536         (any_scc_sf): Add uneq, unlt, unle and unordered operators.
17537         (scc_sf): New.
17538         (s<code>_sf): Use new scc_sf attribute for opcode names.
17539
17540 2008-03-27  Tom Tromey  <tromey@redhat.com>
17541
17542         * doc/sourcebuild.texi, doc/install.texi, configure, aclocal.m4,
17543         configure.ac, Makefile.in, config/t-darwin, config/m32c/t-m32c,
17544         config/spu/t-spu-elf, config/i386/t-interix,
17545         config/i386/t-cygming, config/i386/x-i386, config/i386/t-cygwin,
17546         config/i386/x-darwin, config/i386/x-mingw32,
17547         config/i386/t-netware, config/i386/x-cygwin, config/i386/t-nwld,
17548         config/sh/t-sh, config/sh/t-symbian, config/x-linux,
17549         config/t-sol2, config/x-hpux, config/x-darwin, config/ia64/t-ia64,
17550         config/x-solaris, config/t-vxworks, config/m68k/t-uclinux,
17551         config/rs6000/x-rs6000, config/rs6000/x-darwin64,
17552         config/rs6000/x-darwin, config/rs6000/t-rs6000,
17553         config/score/t-score-elf, config/arm/t-strongarm-pe,
17554         config/arm/t-pe, config/arm/t-arm, config/arm/t-wince-pe,
17555         config/v850/t-v850, config/v850/t-v850e, config/bfin/t-bfin-linux:
17556         Revert automatic dependency patch.
17557
17558 2008-03-27  H.J. Lu  <hongjiu.lu@intel.com>
17559
17560         PR target/35657
17561         * config/i386/i386.c (ix86_function_arg_boundary): Align
17562         decimal floating point to its natural boundary.
17563
17564 2008-03-27  Richard Guenther  <rguenther@suse.de>
17565
17566         PR middle-end/35716
17567         * fold-const.c (fold_comparison): Restrict distinct decl
17568         comparison folding to VAR_DECLs and PARM_DECLs.  Do not
17569         solely rely on operand_equal_p.
17570
17571 2008-03-27  Richard Guenther  <rguenther@suse.de>
17572
17573         PR c/32511
17574         * c-common.c (handle_weak_attribute): Reject combination of
17575         weak and inline.
17576
17577 2008-03-27  Richard Guenther  <rguenther@suse.de>
17578
17579         PR tree-optimization/32810
17580         * tree-ssa-ccp.c (get_symbol_constant_value): Strip useless
17581         conversions from DECL_INITIAL.
17582         (fold_const_aggregate_ref): Likewise from constructor elements.
17583
17584 2008-03-27  Zdenek Dvorak  <ook@ucw.cz>
17585
17586         * tree-affine.h (aff_combination_expand): Declare.
17587         (get_inner_reference_aff): Likewise.
17588         * tree-affine.c (aff_combination_expand): Split out from
17589         tree_to_aff_combination_expand.
17590         (get_inner_reference_aff): New function.
17591         * tree-parloops.c (loop_parallel_p): Free vectorizer info.
17592         * tree-ssa-loop-im.c: Include tree-affine.h and pointer-set.h.
17593         (struct lim_aux_data): sm_done field removed.
17594         (mem_ref_loc_p, mem_ref_locs_p): New types.
17595         (struct mem_ref): Added id, stored, accesses_in_loop,
17596         indep_loop, dep_loop, indep_ref, dep_ref fields.
17597         Removed is_stored, locs and next fields.
17598         (memory_accesses): New variable.
17599         (movement_possibility): Do not allow moving statements
17600         that store to memory.
17601         (outermost_indep_loop, simple_mem_ref_in_stmt, mem_ref_in_stmt):
17602         New functions.
17603         (determine_max_movement): For statements with memory references,
17604         find the outermost loop in that the reference is independent.
17605         (move_computations_stmt): Mark the virtual operands for renaming.
17606         (memref_free, mem_ref_alloc, mem_ref_locs_alloc, mark_ref_stored,
17607         gather_mem_refs_stmt, gather_mem_refs_in_loops, vtoe_hash, vtoe_eq,
17608         vtoe_free, record_vop_access, get_vop_accesses, get_vop_stores,
17609         add_vop_ref_mapping, create_vop_ref_mapping_loop,
17610         create_vop_ref_mapping, analyze_memory_references,
17611         cannot_overlap_p, mem_refs_may_alias_p, rewrite_mem_ref_loc,
17612         get_all_locs_in_loop, ref_always_accessed_p,
17613         refs_independent_p, record_indep_loop, ref_indep_loop_p_1,
17614         ref_indep_loop_p, can_sm_ref_p, find_refs_for_sm,
17615         store_motion_loop, store_motion): New functions.
17616         (struct vop_to_refs_elt): New type.
17617         (record_mem_ref_loc, free_mem_ref_locs, rewrite_mem_refs,
17618         memref_hash, memref_eq, hoist_memory_references): Rewritten.
17619         (schedule_sm): Replaced by...
17620         (execute_sm): ... this.
17621         (determine_lsm_ref, hoist_memory_references,
17622         loop_suitable_for_sm, gather_mem_refs_stmt, gather_mem_refs,
17623         find_more_ref_vops, free_mem_ref, free_mem_refs,
17624         determine_lsm_loop, determine_lsm): Removed.
17625         (tree_ssa_lim_finalize): Free data structures used by store motion.
17626         (tree_ssa_lim): Call analyze_memory_references.  Use
17627         store_motion instead of determine_lsm.
17628
17629 2008-03-27  Paolo Bonzini  <bonzini@gnu.org>
17630
17631         * config.cc (m68hc11, m6811, m68hc12, m6812): Add usegas.h,
17632         rename tmake_file to m68hc11/t-m68hc11.
17633         (mcore): Set inhibit_libc to true.
17634         * config.host (alpha*-dec-*vms*): Set extra_programs.
17635         (interix3*): Don't use host_xmake_file.
17636         * configure.ac: Let config.gcc override inhibit_libc.
17637         * configure: Regenerate.
17638
17639         * config/alpha/x-vms (EXTRA_PROGRAMS): Remove.
17640         * config/t-openbsd-thread: Remove commented out lines.
17641
17642         * config/x-interix: Remove.
17643
17644         * config/m68hc11/t-m68hc11-gas: Rename to...
17645         * config/m68hc11/t-m68hc11: ... this.  Remove T_CPPFLAGS.
17646
17647         * config/mcore/t-mcore: Remove T_CFLAGS.
17648         * config/mcore/t-mcore-pe: Likewise.
17649
17650 2008-03-27  Paolo Bonzini  <bonzini@gnu.org>
17651
17652         * configure.ac: Replace custom __GNU_SOURCE test with
17653         AC_USE_SYSTEM_EXTENSIONS.  Move it earlier.
17654         * aclocal.m4: Regenerate.
17655         * configure: Regenerate.
17656         * config.in: Regenerate.
17657
17658 2008-03-27  Richard Guenther  <rguenther@suse.de>
17659
17660         * fold-const.c (target.h): Include.
17661         (fold_comparison): Fold comparison of addresses of decls
17662         that bind locally or of constants.  Consolidate address folding code.
17663         * tree-vrp.c (operand_less_p): Deal with non-INTEGER_CST
17664         results from fold_binary_to_constant.
17665         (compare_values_warnv): Likewise.
17666
17667 2008-03-27  Andrew Pinski  <pinskia@gmail.com>
17668
17669         PR middle-end/35429
17670         * fold-const.c (fold_truthop): Check for integeral types when folding
17671         a == 0 && b == 0 and a != 0 || b != 0 .
17672
17673 2008-03-26  Eric Botcazou  <ebotcazou@adacore.com>
17674
17675         * tree.c (get_unwidened): Remove code fiddling with COMPONENT_REF.
17676
17677 2008-03-26  Andreas Schwab  <schwab@suse.de>
17678
17679         * doc/invoke.texi: Fix use of @item vs. @itemx.
17680
17681 2008-03-26  Tom Tromey  <tromey@redhat.com>
17682
17683         * Makefile.in (build/gensupport.o, build/print-rtl.o,
17684         build/read-rtl.o, build/rtl.o, build/gencondmd.o, build/genattr.o,
17685         build/genattrtab.o, build/genautomata.o, build/gencheck.o,
17686         build/gencodes.o, build/genconditions.o, build/genconfig.o,
17687         build/genconstants.o, build/genemit.o, build/genextract.o,
17688         build/genflags.o, build/genmddeps.o, build/genopinit.o,
17689         build/genoutput.o, build/genpeep.o, build/genrecog.o): Depend on
17690         options.h.
17691
17692 2008-03-26  Richard Guenther  <rguenther@suse.de>
17693
17694         Revert
17695         2008-03-26  Richard Guenther  <rguenther@suse.de>
17696
17697         * fold-const.c (target.h): Include.
17698         (fold_comparison): Fold comparison of addresses of two decls
17699         that bind locally.  Consolidate address folding code.
17700
17701 2008-03-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
17702
17703         * builtins.c (expand_builtin_pow, fold_builtin_cabs,
17704         fold_builtin_sqrt, fold_builtin_cbrt, fold_builtin_logarithm,
17705         fold_builtin_hypot, fold_builtin_pow): Remove uses of dconst3,
17706         dconstsqrt2, dconstthird, dconste and/or dconst10.
17707         * config/i386/i386.c (ix86_emit_swsqrtsf): Likewise.
17708         * emit-rtl.c (dconst3, dconst10, dconstm2, dconstthird,
17709         dconstsqrt2, dconste): Delete.
17710         (init_emit_once): Likewise.  Simplify initializing dconstm1.
17711         Constify variable.
17712         * real.c (get_real_const): New.
17713         * real.h (dconst3, dconst10, dconstm2, dconstthird,
17714         dconstsqrt2, dconste): Delete.
17715         (real_value_const, get_real_const): New.
17716
17717 2008-03-26  H.J. Lu  <hongjiu.lu@intel.com>
17718
17719         * config/i386/cygming.h (BIGGEST_ALIGNMENT): Removed.
17720
17721         * config/i386/i386.c (ix86_function_arg_boundary): Check
17722         BIGGEST_ALIGNMENT instead of 128.
17723         (setup_incoming_varargs_64): Likewise.
17724
17725 2008-03-26  Tom Tromey  <tromey@redhat.com>
17726
17727         * Makefile.in (DEPFILES): Add missing '/'.
17728
17729 2008-03-26  Richard Guenther  <rguenther@suse.de>
17730
17731         * fold-const.c (target.h): Include.
17732         (fold_comparison): Fold comparison of addresses of two decls
17733         that bind locally.  Consolidate address folding code.
17734
17735 2008-03-26  Nick Clifton  <nickc@redhat.com>
17736
17737         PR target/31232
17738         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p): Do
17739         not allow INT+INT as a legitimate addressing mode.
17740
17741 2008-03-26  Richard Guenther  <rguenther@suse.de>
17742
17743         * tree-flow.h (widen_bitfield): Remove declaration.
17744         * tree-ssa-ccp.c (visit_assignment): Remove unneeded code.
17745         (widen_bitfield): Remove function.
17746         * tree-ssa-dom.c (record_equivalences_from_stmt): Remove unneeded
17747         code.
17748
17749 2008-03-25  Andrew Pinski  <andrew_pinski@playstation.sony.com>
17750
17751         PR target/31558
17752         * config/rs6000/rs6000-c.c (rs6000_builtin_type_compatible): Handle
17753         error_mark_node's.
17754
17755 2008-03-25  Richard Sandiford  <rsandifo@nildram.co.uk>
17756
17757         PR rtl-optimization/35232
17758         * reload1.c (reg_reloaded_call_part_clobbered): Clarify comment.
17759         (forget_old_reloads_1, forget_marked_reloads): Don't clear
17760         reg_reloaded_call_part_clobbered here.
17761         (reload_regs_reach_end_p): New function.
17762         (reload_reg_rtx_for_input): New variable.
17763         (reload_reg_rtx_for_output): Likewise.
17764         (emit_input_reload_insns): Use reloadreg rather than rl->reg_rtx
17765         when reassigning a pseudo register.  Load reloadreg from
17766         reload_reg_rtx_for_input, moving the mode and register
17767         calculation to...
17768         (do_input_reload): ...here.  Use the mode-adjusted reg_rtx
17769         instead of the original when deciding whether an input reload
17770         would be a no-op or whether an output reload can be deleted.
17771         (emit_output_reload_insns): Use the mode-adjusted reg_rtx
17772         when setting up new_spill_reg_store.  Load it from
17773         reload_reg_rtx_for_output, moving the mode and register
17774         calculation to...
17775         (do_output_reload): ...here.  Use the mode-adjusted reg_rtx
17776         instead of the original when deciding whether an output reload
17777         would be a no-op.  Do the same when modifying insn notes.
17778         Use rtx_equal_p instead of == to compare the registers.
17779         (inherit_piecemeal_p): Take a mode and two register numbers
17780         as argument.
17781         (emit_reload_insns): Clear new_spill_reg_store for every hard
17782         register in the reload register.  Remove spill registers
17783         from reg_reloaded_valid before considering whether to record
17784         inheritance information for them.  Use reload_reg_rtx_for_output
17785         instead of reg_rtx when recording output reloads.  Use
17786         reload_reg_rtx_for_input instead of reg_rtx when recording
17787         input reloads.  Set or clear reg_reloaded_call_part_clobbered
17788         at the same time as setting reg_reloaded_valid.
17789         (delete_output_reload): Add a new_reload_reg parameter and use it
17790         instead of rld[j].reg_rtx.
17791         (emit_input_reload_insns, do_input_reload, do_output_reload): Adjust
17792         calls accordingly.
17793
17794 2008-03-25  Tom Tromey  <tromey@redhat.com>
17795
17796         * Makefile.in (build/gensupport.o): Depend on insn-modes.h.
17797         (build/genattr.o): Likewise.
17798         (build/genattrtab.o): Likewise.
17799         (build/gencodes.o): Likewise.
17800         (build/genconfig.o): Likewise.
17801         (build/genconstants.o): Likewise.
17802         (build/genemit.o): Likewise.
17803         (build/genextract.o): Likewise.
17804         (build/genflags.o): Likewise.
17805
17806 2008-03-25  Bob Wilson  <bob.wilson@acm.org>
17807
17808         * config/xtensa/xtensa.c (xtensa_va_start): Use build_int_cst
17809         instead of size_int for integer types.
17810         (xtensa_gimplify_va_arg_expr): Likewise.  Convert index to sizetype
17811         to match type of MINUS_EXPR.
17812
17813 2008-03-25  Tom Tromey  <tromey@redhat.com>
17814
17815         * configure: Rebuilt.
17816         * configure.ac (BUILD_DEPMODE): Extract CCDEPMODE from temporary
17817         Makefile.
17818
17819 2008-03-25  Tom Tromey  <tromey@redhat.com>
17820
17821         * config/x-solaris (host-solaris.o): Update.
17822         * config/x-linux (host-linux.o): Update.
17823         * config/x-hpux (host-hpux.o): Update.
17824         * config/x-darwin (host-darwin.o): Update.
17825         * config/v850/t-v850e (v850-c.o): Update.
17826         * config/v850/t-v850 (v850-c.o): Update.
17827         * config/t-vxworks (vxworks.o): Update.
17828         * config/t-sol2 (sol2-c.o, sol2.o): Update.
17829         * config/t-darwin (darwin.o, darwin-c.o, darwin-driver.o): Update.
17830         * config/spu/t-spu-elf (spu-c.o): Update.
17831         (spu.o): Remove.
17832         * config/sh/t-symbian (sh-c.o): Update.
17833         (symbian.o): Update.
17834         * config/sh/t-sh (sh-c.o): Update.
17835         * config/score/t-score-elf (score7.o, score3.o): Update.
17836         * config/rs6000/x-rs6000 (driver-rs6000.o): Update.
17837         * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Update.
17838         * config/rs6000/x-darwin (host-ppc-darwin.o): Update.
17839         * config/rs6000/t-rs6000 (rs6000-c.o): Update.
17840         (rs6000.o): Remove.
17841         * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
17842         * config/m32c/t-m32c (m32c-pragma.o): Update.
17843         * config/ia64/t-ia64 (ia64-c.o): Update.
17844         * config/i386/x-mingw32 (host-mingw32.o): Update.
17845         * config/i386/x-i386 (driver-i386.o): Update.
17846         * config/i386/x-darwin (host-i386-darwin.o): Update.
17847         * config/i386/x-cygwin (host-cygwin.o): Update.
17848         * config/i386/t-nwld (nwld.o): Update.
17849         * config/i386/t-netware (netware.o): Update.
17850         * config/i386/t-interix (winnt.o): Update.
17851         * config/i386/t-cygwin (cygwin1.o, cygwin2.o): Update.
17852         * config/i386/t-cygming (winnt.o, winnt-cxx.o, winnt-stubs.o,
17853         msformat-c.o): Update.
17854         * config/bfin/t-bfin-linux (generated_files): Add
17855         linux-sysroot-suffix.h.
17856         * config/arm/t-wince-pe (pe.o): Update.
17857         * config/arm/t-strongarm-pe (pe.o): Update.
17858         * config/arm/t-pe (pe.o): Update.
17859         * config/arm/t-arm (arm-c.o): Update.
17860         * doc/install.texi (Prerequisites): Require make 3.80.
17861         * Makefile.in: Remove .o targets.
17862         (CCDEPMODE, DEPDIR, depcomp, BUILD_DEPMODE): New variables.
17863         (OBSTACK_H, FIBHEAP_H, PARTITION_H, MD5_H, BCONFIG_H): Remove.
17864         (simple_generated_h, simple_generated_c): Move earlier.
17865         (generated_files): New variable.
17866         (TARGET_H, MACHMODE_H, HOOKS_H, HOSTHOOKS_DEF_H, LANGHOOKS_DEF_H,
17867         TARGET_DEF_H, RTL_BASE_H, RTL_H, PARAMS_H, BUILTINS_DEF, TREE_H,
17868         BASIC_BLOCK_H, GCOV_IO_H, COVERAGE_H, DEMANGLE_H, RECOG_H,
17869         ALIAS_H, EMIT_RTL_H, FLAGS_H, FUNCTION_H, EXPR_H, OPTABS_H,
17870         REGS_H, RA_H, RESOURCE_H, SCHED_INT_H, INTEGRATE_H, CFGLAYOUT_H,
17871         CFGLOOP_H, IPA_UTILS_H, IPA_REFERENCE_H, IPA_TYPE_ESCAPE_H,
17872         CGRAPH_H, DF_H, RESOURCE_H, DDG_H, GCC_H, GGC_H, TIMEVAR_H,
17873         INSN_ATTR_H, C_COMMON_H, C_PRAGMA_H, C_TREE_H, SYSTEM_H,
17874         PREDICT_H, DECNUM_H, MKDEPS_H, SYMTAB_H, TREE_DUMP_H,
17875         TREE_GIMPLE_H, TREE_FLOW_H, TREE_SSA_LIVE_H, PRETTY_PRINT_H,
17876         DIAGNOSTIC_H, C_PRETTY_PRINT_H, SCEV_H, LAMBDA_H, TREE_DATA_REF_H,
17877         VARRAY_H, TREE_INLINE_H, REAL_H, DBGCNT_H, EBIMAP_H): Remove.
17878         (.c.o): Remove.
17879         (COMPILE.base, COMPILE): New variables.
17880         (%.o): New pattern rule.
17881         (ALL_HOST_OBJS): New variable.
17882         (xgcc$(exeext), cpp$(exeext)): Remove extra version.o.
17883         (dummy-checksum.o, cc1-checksum.o): Remove.
17884         (DRIVER_SHLIB): New variable.
17885         (DRIVER_DEFINES): Use it.
17886         (gencondmd.c): Move out of build/.
17887         (s-conditions): Update.
17888         (BUILDCOMPILE.base, BUILDCOMPILE): New variables.
17889         (ALL_BUILD_OBJS): Likewise.
17890         (build/%.o): Use BUILDCOMPILE.
17891         (build/ggc-none.o, build/ggc-none.o, build/min-insn-modes.o,
17892         build/print-rtl.o, build/read-rtl.o, build/rtl.o, build/vec.o,
17893         build/gencondmd.o, build/genattrtab.o, build/genautomata.o,
17894         build/gencheck.o, build/gencodes.o, build/genconditions.o,
17895         build/genconfig.o, build/genconstants.o, build/genemit.o,
17896         build/genextract.o, build/genflags.o, build/genmddeps.o,
17897         build/genopinit.o, build/genoutput.o, build/genpeep.o,
17898         build/genpreds.o, build/genrecog.o, build/gcov-iov.o,
17899         build/gen-protos.o, build/scan.o, build/fix-header.o,
17900         build/scan-decls.o): Simplify.
17901         (collect2.o, c-opts.o, gcc.o, gccspec.o, gcc-options.o,
17902         cppdefault.o, protoize.o, unprotoize.o, intl.o, version.o,
17903         prefix.o, toplev.o): Reduce to variable setting.
17904         (libbackend.o): Use COMPILE.  Remove most dependencies.  Move later.
17905         ($(out_object_file), gcc-options.o): New targets.
17906         ($(ALL_HOST_OBJS)): New target.  Include dependency files.
17907         * configure: Rebuilt.
17908         * configure.ac: Call ZW_CREATE_DEPDIR, ZW_PROG_COMPILER_DEPENDENCIES.
17909         * doc/sourcebuild.texi (Front End Directory): Document new variable.
17910
17911 2008-03-25  Douglas Gregor  <doug.gregor@gmail.com>
17912
17913         * c-common.c (c_sizeof_or_alignof_type): If we're not allowed to
17914         complain when we hit an error, return ERROR_MARK_NODE.
17915
17916 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
17917
17918         * config/sh/constraints.md (Pso, Psz): New constraints.
17919         * config/sh/sh.c (print_operand): Add %V and %W operand codes.
17920         * config/sh/sh.md (*andsi3_bclr, *iorsi3_bset): New insns.
17921
17922 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
17923
17924         * config/sh/sh.c (sh_expand_t_scc): Emit movrt for SH2A if possible.
17925         * config/sh/sh.md (xorsi3_movrt, movrt): New insns.
17926
17927 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
17928
17929         * config/sh/sh.md (prefetch): Add condition for SH2A target.
17930         (prefetch_sh2a): New.
17931
17932 2008-03-25  Jayant Sonar  <Jayant.sonar@kpitcummins.com>
17933             Naveen.H.S  <naveen.hs@kpitcummins.com>
17934
17935         * config/sh/constraints.md (I28): New constraint.
17936         * config/sh/sh.c (broken_move): Add support for movi20s.
17937         * config/sh/sh.md (movsi_ie): Add the alternative for movi20s.
17938
17939 2008-03-25  Anil Paranjape  <anil.paranjape@kpitcummins.com>
17940             Jayant Sonar  <Jayant.sonar@kpitcummins.com>
17941             Naveen.H.S  <naveen.hs@kpitcummins.com>
17942
17943         * config/sh/sh.c (SH_ATTRIBUTES): Define.
17944         (SYMBOL_FLAG_FUNCVEC_FUNCTION): Define.
17945         (print_operand): Handle resbank in %@ operand code.
17946         (sh_encode_section_info): New.
17947         (push_regs): Add conditions for resbank.
17948         (sh_expand_epilogue): Likewise.
17949         (sh_insert_attributes): Likewise.
17950         (sh_attribute_table): Likewise.
17951         (sh_handle_resbank_handler_attribute): New.
17952         (sh2a_handle_function_vector_handler_attribute): New.
17953         (sh2a_is_function_vector_call): New.
17954         (sh2a_get_function_vector_number): New.
17955         (sh2a_function_vector_p): New.
17956         (sh_cfun_resbank_handler_p): New.
17957         * config/sh/sh.md (calli): Emit jsr/n if possible.
17958         (calli_tbr_rel): New.
17959         (calli_pcrel): Emit jsr/n if possible.
17960         (return_i): Emit rts/n if possible.
17961         (call_valuei_tbr_rel): New.
17962         (call_valuei_pcrel): Add condition for SH2A target.
17963         (call_value): Likewise.
17964         * config/sh/sh-protos.h (sh_cfun_resbank_handler_p): Declare.
17965         (sh2a_get_function_vector_number): Likewise.
17966         (sh2a_is_function_vector_call): Likewise.
17967         * doc/extend.texi: Document TBR relative addressing of SH2A.
17968         (resbank): Add description for SH2A.
17969
17970 2008-03-24  Richard Guenther  <rguenther@suse.de>
17971
17972         PR c/22371
17973         * gimplify.c (gimplify_modify_expr): For frontend type-correct
17974         pointer assignments change conversions according to middle-end rules.
17975         (gimplify_modify_expr_rhs): Deal with NULL TARGET_EXPR_INITIAL.
17976         * configure.ac: Include type checking in yes.
17977         * configure: Regenerate.
17978
17979 2008-03-24  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
17980
17981         * diagnostic.c (diagnostic_count_diagnostic): Delete.
17982         (diagnostic_report_diagnostic): Update. Handle ICEs here.
17983
17984 2008-03-24  Nathan Sidwell  <nathan@codesourcery.com>
17985
17986         * gthr-vxworks.h (UNUSED): Define.
17987
17988 2008-03-23  H.J. Lu  <hongjiu.lu@intel.com>
17989
17990         * config/i386/i386.h (STATIC_CHAIN_REGNUM): Use R10_REG and CX_REG.
17991
17992 2008-03-23  Zuxy Meng <zuxy.meng@gmail.com>
17993
17994         * doc/extend.texi (Function Attributes): Add missing comma in the
17995         example of the "alloc_size" attribute.
17996
17997 2008-03-23  Uros Bizjak  <ubizjak@gmail.com>
17998
17999         Revert:
18000         2008-03-05  H.J. Lu  <hongjiu.lu@intel.com>
18001
18002         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
18003         32bit host.
18004
18005         2008-03-19  Uros Bizjak  <ubizjak@gmail.com>
18006
18007         PR target/35496
18008         * stor-layout.c (update_alignment_for_field): Set minimum alignment
18009         of the underlying type of a MS bitfield layout to the natural
18010         alignment of the type.
18011
18012         2008-03-22  Uros Bizjak  <ubizjak@gmail.com>
18013
18014         * config/i386/i386.c (assign_386_stack_local): Align DImode slots
18015         to their natural alignment to avoid store forwarding stalls.
18016
18017 2008-03-22  Richard Guenther  <rguenther@suse.de>
18018
18019         * tree-cfg.c (verify_expr): Recurse again for invariant addresses.
18020         For PHI nodes verify the address is invariant.
18021         * tree-ssa-ccp.c (ccp_decl_initial_min_invariant): Remove.
18022         (get_symbol_constant_value): Use is_gimple_min_invariant.
18023         (maybe_fold_stmt_indirect): Likewise.
18024
18025 2008-03-22  Richard Sandiford  <rsandifo@nildram.co.uk>
18026
18027         PR rtl-optimization/33927
18028         * Makefile.in (dse.o): Depend on $(TM_P_H).
18029         * expr.h (extract_low_bits): Declare.
18030         * expmed.c (extract_low_bits): New function.
18031         * rtlhooks.c (gen_lowpart_general): Generalize SUBREG handling.
18032         * dse.c: Include tm_p.h.
18033         (find_shift_sequence): Remove the read_reg argument and return the
18034         read value.  Emit the instructions instead of returning them.
18035         Iterate on new_mode rather than calculating it each time.
18036         Check MODES_TIEABLE_P.  Use simplify_gen_subreg to convert the
18037         source to NEW_MODE and extract_low_bits to convert the shifted
18038         value to READ_MODE.
18039         (replace_read): Allow the load and store to have different mode
18040         classes.  Use extract_low_bits when SHIFT == 0.  Create the shift
18041         or extraction instructions before trying the replacement.  Update
18042         dump-file code accordingly, avoiding use of REGNO (store_info->rhs).
18043
18044 2008-03-22  Uros Bizjak  <ubizjak@gmail.com>
18045
18046         * config/i386/i386.c (assign_386_stack_local): Align DImode slots
18047         to their natural alignment to avoid store forwarding stalls.
18048
18049 2008-03-21  Andrew Pinski  <andrew_pinski@playstation.sony.com>
18050
18051         PR target/27946
18052         * config/rs6000/rs6000.md (floatdidf2): Discouraging fprs and
18053         encouraging but not allowing gprs for input;
18054         change the input constraint to !f#r.
18055         (fix_truncdfdi2): Discouraging fprs and encouraging but not allowing
18056         gprs for output;
18057         change the output constraint to !f#r.
18058
18059 2008-03-21  Uros Bizjak  <ubizjak@gmail.com>
18060
18061         PR target/13958
18062         * config/i386/i386.md ("*floatunssi<mode2>_1"): New pattern with
18063         corresponding post-reload splitters.
18064         ("floatunssi<mode>2"): Expand to unsigned_float x87 insn pattern
18065         when x87 FP math is selected.
18066         * config/i386/i386-protos.h (ix86_expand_convert_uns_sixf_sse):
18067         New function prototype.
18068         * config/i386/i386.c (ix86_expand_convert_uns_sixf_sse): New
18069         unreachable function to ease macroization of insn patterns.
18070
18071 2008-03-21  Martin Jambor  <mjambor@suse.cz>
18072
18073         * tree-data-ref.c (dump_data_dependence_relation): Avoid data
18074         reference dumps if ddr is NULL or dependence is unknown.
18075
18076 2008-03-20  Kaz Kojima  <kkojima@gcc.gnu.org>
18077
18078         * config/sh/linux-atomic.asm (ATOMIC_TEST_AND_SET): Take
18079         unsigned extension into account.
18080         (ATOMIC_COMPARE_AND_SWAP): Likewise.
18081         (ATOMIC_FETCH_AND_OP, ATOMIC_FETCH_AND_COMBOP): Likewise.
18082         Do computations on a scratch register.
18083
18084 2008-03-21  Richard Guenther  <rguenther@suse.de>
18085
18086         * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
18087         Use is_gimple_min_invariant instead of TREE_INVARIANT.
18088         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
18089         * tree-ssa-dom.c (record_equality): Likewise.
18090         * tree-inline.c (copy_body_r): Likewise.
18091         * tree-ssa-pre.c (make_values_for_stmt): Remove test for
18092         TREE_INVARIANT.
18093
18094 2008-03-20  Kaz Kojima  <kkojima@gcc.gnu.org>
18095
18096         * config/sh/sh.c (split_branches): Pass zero to redirect_jump
18097         as 'delete_unused' argument.
18098
18099 2008-03-20  Richard Guenther  <rguenther@suse.de>
18100
18101         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Remove
18102         special casing of constant qualifiers.
18103         * tree-ssa.c (useless_type_conversion_p_1): Instead do not
18104         care about them in general.
18105         * tree-ssa-ccp.c (ccp_fold): Addresses are constant or not
18106         regardless of their type.
18107         (fold_stmt_r): Forcefully fold *& if we end up with that.
18108
18109 2008-03-20  Paul Brook  <paul@codesourcery.com>
18110
18111         * config.gcc (arm*-*-uclinux*): Remove duplicate arm/uclinux-elf.h.
18112         * config/arm/uclinux-eabi.h (SUBTARGET_EXTRA_LINK_SPEC): Add extra
18113         linker flags.
18114         * config/arm/bpabi.h (SUBTARGET_EXTRA_LINK_SPEC): Provide default
18115         definition.
18116         (LINK_SPEC): Use SUBTARGET_EXTRA_LINK_SPEC.
18117         * config/arm/unwind-arm.h (_Unwind_decode_target2): Add uClinux.
18118
18119 2008-03-20  Volker Reichelt  <v.reichelt@netcologne.de>
18120
18121         * common.opt (Wmudflap): New option.
18122         * tree-mudflap.c (mf_xform_derefs_1): Guard warning by OPT_Wmudflap.
18123         (mx_register_decls): Likewise.
18124         (mudflap_finish_file): Likewise.
18125         * doc/invoke.texi: Document -Wno-mudflap.
18126
18127 2008-03-20  Kai Tietz  <kai.tietz@onevision.com>
18128
18129         * c-format.c (replace_format_name_to_system_name): New.
18130         (cmp_attribs): New.
18131         (convert_format_name_to_system_name): New.
18132         (decode_format_attr): Add use of convert_format_name_to_system_name.
18133         (format_types_orig): Add gnu_ prefix to names.
18134         (check_format_info_main): Special treating of \0 escaped names for
18135         supporting multi-character format specifiers as I32, I64.
18136         (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): Use of user defined attributes.
18137         (gnu_target_overrides_format_attributes): New.
18138         * c-format.h: Add structure target_ovr_attr to hold
18139         system specific formatter names.
18140         * config.gcc: Add for x86&x86_64 cygwin and mingw32 targets the
18141         msformat-c.o file to c_target_objs and cxx_target_objs.
18142         * config/i386/mingw32.h (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
18143         (TARGET_OVERRIDES_FORMAT_ATTRIBUTES_COUNT): New.
18144         (TARGET_N_FORMAT_TYPES): New.
18145         * config/i386/msformat-c.c: New.
18146         * config/i386/t-cygming: Add build rule for msformat-c.o.
18147         * doc/extend.texi: Add new format names gnu_* and ms_* and
18148         further details.
18149         * doc/tm.texi: (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
18150
18151 2008-03-20  Ira Rosen  <irar@il.ibm.com>
18152
18153         * doc/invoke.texi (-O3): Add -ftree-vectorize to the list of
18154         optimizations turned on under -O3.
18155         (ftree-vectorize): Add that the flag is turned on with -O3.
18156
18157 2008-03-20  Ben Elliston  <bje@au.ibm.com>
18158
18159         * regmove.c (try_auto_increment): Fix spelling error in comment.
18160         * final.c (final_scan_insn): Likewise.
18161
18162 2008-03-20  Uros Bizjak  <ubizjak@gmail.com>
18163
18164         PR target/14552
18165         * config/i386/mmx.md (*mov<mode>_internal_rex64"): Adjust register
18166         allocator preferences for "y" and "r" class registers.
18167         ("*mov<mode>_internal"): Ditto.
18168         ("*movv2sf_internal_rex64"): Ditto.
18169         ("*movv2sf_internal"): Ditto.
18170
18171 2008-03-19  Michael Matz  <matz@suse.de>
18172
18173         PR middle-end/35616
18174         * calls.c (expand_call): Check overlap of arguments with call
18175         address for sibcalls.
18176
18177 2008-03-19  Uros Bizjak  <ubizjak@gmail.com>
18178
18179         PR target/35496
18180         * stor-layout.c (update_alignment_for_field): Set minimum alignment
18181         of the underlying type of a MS bitfield layout to the natural
18182         alignment of the type.
18183
18184 2008-03-19  Jan Hubicka  <jh@suse.cz>
18185
18186         PR other/35094
18187         * toplev.c (decode_d_option): Handle all CPP flags.
18188         * tree-vrp.c: Update tree_pass descriptors.
18189         * regrename.c: Update tree_pass descriptors.
18190         * fwprop.c: Update tree_pass descriptors.
18191         * doc/invoke.texi: Remove documentation of dropped -d? flags.
18192         * tree-into-ssa.c: Update tree_pass descriptors.
18193         * tree-dump.c: Update tree_pass descriptors.
18194         * tree-complex.c: Update tree_pass descriptors.
18195         * tree-dump.h: Update tree_pass descriptors.
18196         * see.c: Update tree_pass descriptors.
18197         * cgraphbuild.c: Update tree_pass descriptors.
18198         * tracer.c: Update tree_pass descriptors.
18199         * tree-loop-distribution.c: Update tree_pass descriptors.
18200         * cgraph.c: Update tree_pass descriptors.
18201         * postreload-gcse.c: Update tree_pass descriptors.
18202         * postreload.c: Update tree_pass descriptors.
18203         * tree-ssa-loop-ch.c: Update tree_pass descriptors.
18204         * tree-tailcall.c: Update tree_pass descriptors.
18205         * tree-pass.h (tree_opt_pass): Rename to ...
18206         (opt_pass) ... this one; add "type" field and remove letter field.
18207         (gimple_opt_pass, rtl_opt_pass, simple_ipa_opt_pass): New.
18208         (execute_pass_list, execute_ipa_pass_list, all_passes, all_ipa_passes,
18209         all_lowering_passes): Update declaration.
18210         * ipa-cp.c: Update tree_pass descriptors.
18211         * final.c: Update tree_pass descriptors.
18212         * omp-low.c: Update tree_pass descriptors.
18213         * tree-ssa-dse.c: Update tree_pass descriptors.
18214         * ipa-reference.c: Update tree_pass descriptors.
18215         * tree-ssa-uncprop.c: Update tree_pass descriptors.
18216         * auto-inc-dec.c: Update tree_pass descriptors.
18217         * reorg.c: Update tree_pass descriptors.
18218         * cgraphunit.c: Update tree_pass descriptors.
18219         * tree-ssa-copyrename.c: Update tree_pass descriptors.
18220         * tree-ssa-ccp.c: Update tree_pass descriptors.
18221         * df-core.c: Update tree_pass descriptors.
18222         * mode-switching.c: Update tree_pass descriptors.
18223         * tree-nomudflap.c: Update tree_pass descriptors.
18224         * modulo-sched.c: Update tree_pass descriptors.
18225         * ipa-pure-const.c: Update tree_pass descriptors.
18226         * cse.c: Update tree_pass descriptors.
18227         * web.c: Update tree_pass descriptors.
18228         * tree-stdarg.c: Update tree_pass descriptors.
18229         * tree-ssa-math-opts.c: Update tree_pass descriptors.
18230         * tree-ssa-dom.c: Update tree_pass descriptors.
18231         * tree-nrv.c: Update tree_pass descriptors.
18232         * tree-ssa-alias.c: Update tree_pass descriptors.
18233         * loop-init.c: Update tree_pass descriptors.
18234         * gimple-low.c: Update tree_pass descriptors.
18235         * ipa-inline.c: Update tree_pass descriptors.
18236         * tree-ssa-sink.c: Update tree_pass descriptors.
18237         * global.c: Update tree_pass descriptors.
18238         * ifcvt.c: Update tree_pass descriptors.
18239         * jump.c: Update tree_pass descriptors.
18240         * predict.c: Update tree_pass descriptors.
18241         * tree-ssa-loop.c: Update tree_pass descriptors.
18242         * recog.c: Update tree_pass descriptors.
18243         * dse.c: Update tree_pass descriptors.
18244         * tree-ssa-ifcombine.c: Update tree_pass descriptors.
18245         * tree-eh.c: Update tree_pass descriptors.
18246         * regmove.c: Update tree_pass descriptors.
18247         * local-alloc.c
18248         * function.c: Update tree_pass descriptors.
18249         * tree-vectorizer.c: Update tree_pass descriptors.
18250         * gcse.c: Update tree_pass descriptors.
18251         * ipa-type-escape.c: Update tree_pass descriptors.
18252         * tree-if-conv.c: Update tree_pass descriptors.
18253         * init-regs.c: Update tree_pass descriptors.
18254         * ipa.c: Update tree_pass descriptors.
18255         * tree-ssa-phiopt.c: Update tree_pass descriptors.
18256         * rtl-factoring.c: Update tree_pass descriptors.
18257         * lower-subreg.c: Update tree_pass descriptors.
18258         * bt-load.c: Update tree_pass descriptors.
18259         * tree-dfa.c: Update tree_pass descriptors.
18260         * except.c: Update tree_pass descriptors.
18261         * emit-rtl.c: Update tree_pass descriptors.
18262         * cfgexpand.c: Update tree_pass descriptors.
18263         * tree-cfgcleanup.c: Update tree_pass descriptors.
18264         * cfgcleanup.c: Update tree_pass descriptors.
18265         * tree-ssa-pre.c: Update tree_pass descriptors.
18266         * tree-sra.c: Update tree_pass descriptors.
18267         * tree-mudflap.c: Update tree_pass descriptors.
18268         * tree-ssa-copy.c: Update tree_pass descriptors.
18269         * cfglayout.c: Update tree_pass descriptors.
18270         * tree-ssa-forwprop.c: Update tree_pass descriptors.
18271         * tree-ssa-dce.c: Update tree_pass descriptors.
18272         * tree-ssa.c: Update tree_pass descriptors.
18273         * regclass.c: Update tree_pass descriptors.
18274         * integrate.c: Update tree_pass descriptors.
18275         * tree-optimize.c: Update tree_pass descriptors.
18276         * tree-ssa-phiprop.c: Update tree_pass descriptors.
18277         * tree-object-size.c: Update tree_pass descriptors.
18278         * combine.c: Update tree_pass descriptors.
18279         * tree-outof-ssa.c: Update tree_pass descriptors.
18280         * bb-reorder.c: Update tree_pass descriptors.
18281         * stack-ptr-mod.c: Update tree_pass descriptors.
18282         * var-tracking.c: Update tree_pass descriptors.
18283         * tree-profile.c: Update tree_pass descriptors.
18284         * tree-vect-generic.c: Update tree_pass descriptors.
18285         * reg-stack.c: Update tree_pass descriptors.
18286         * sched-rgn.c: Update tree_pass descriptors.
18287         * tree-ssa-structalias.c: Update tree_pass descriptors.
18288         * tree-cfg.c: Update tree_pass descriptors.
18289         * passes.c (current_pass): Update declaration.
18290         (finish_optimization_passes): Update.
18291         (all_passes, all_ipa_passes, all_lowering_passes): Update declaration.
18292         (register_one_dump_file, register_dump_files_1, next_pass_1):
18293         Update arguments.
18294         (init_optimization_passes): Update handling of new types.
18295         (execute_one_pass, execute_pass_list, execute_ipa_pass_list): Update.
18296         * ipa-struct-reorg.c: Update tree_pass descriptors.
18297         * tree-ssa-reassoc.c: Update tree_pass descriptors.
18298         * combine-stack-adj.c: Update tree_pass descriptors.
18299         * cfgrtl.c: Update tree_pass descriptors.
18300         * dce.c: Update tree_pass descriptors.
18301         * tree-ssanames.c: Update tree_pass descriptors.
18302
18303 2008-03-19  Richard Guenther  <rguenther@suse.de>
18304
18305         PR middle-end/35609
18306         * tree-ssa.c (walk_data): New structure.
18307         (warn_uninitialized_var): If not always_executed warn with "maybe"
18308         instead of "is".
18309         (execute_early_warn_uninitialized): Compute post-dominators.
18310         Initialize always_executed before processing each basic block.
18311
18312 2008-03-18  Mikulas Patocka  <mikulas@artax.karlin.mff.cuni.cz>
18313
18314         PR target/35504
18315         * config/i386/i386.c (x86_this_parameter): Calculate correct location
18316         of "this" pointer when "regparm = N" or "fastcall" is in effect.
18317
18318 2008-03-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18319
18320         * doc/include/texinfo.tex: Update to version 2008-03-17.10.
18321
18322 2008-03-18  Paolo Bonzini  <bonzini@gnu.org>
18323
18324         * expr.c (store_expr): Assume lang_hooks.reduce_bit_field_operations
18325         is true.
18326         (expand_expr_real_1) <REDUCE_BIT_FIELD>: Don't look at ignore.
18327         (expand_expr_real_1): Assume lang_hooks.reduce_bit_field_operations
18328         is true.  Add "&& !ignore" condition to reduce_bit_field.  Modify
18329         target after ignore has been set, and move there also the commputation
18330         of subtarget and original_target.
18331         * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Delete.
18332         (LANG_HOOKS_INITIALIZER): Remove it.
18333         * langhooks.h (struct lang_hooks): Remove reduce_bit_field_operations.
18334
18335 2008-03-18  Richard Guenther  <rguenther@suse.de>
18336
18337         * tree-ssa-sccvn.c (visit_reference_op_load): If the lookup
18338         found an expression with constants, note that in the VN for the lhs.
18339         * tree-ssa-pre.c (eliminate): Visit COND_EXPR statements and
18340         fold them to constants if possible.  Run cleanup_cfg if done so.
18341         (execute_pre): Return todo.
18342         (do_pre): Likewise.
18343         (execute_fre): Likewise.
18344         * tree-ssa-forwprop.c (can_propagate_from): Allow propagation
18345         of constants.
18346         (get_prop_source_stmt): Look through pointer conversions.
18347
18348 2008-03-18  Jan Hubicka  <jh@suse.cz>
18349
18350         * tree-pretty-print.c: Include predict.h.
18351         (dump_generic_node): Dump predictor.
18352         * tree.h (PREDICT_EXPR_OUTCOME, PREDICT_EXPR_PREDICTION): Update.
18353         * tree-gimple.c (is_gimple_stmt): Add PREDICT_EXPR.
18354         * gimple-low.c (lower_stmt): Likewise.
18355         * expr.c (expand_expr_real): Likewise.
18356         * predict.c (tree_bb_level_predictions): Use PREDICT_EXPRs and remove
18357         them.
18358         (build_predict_expr, build_predict_expr): New.
18359         * predict.h (predictor_name, build_predict_expr): Update.
18360         * c-typeck.c (c_finish_bc_stmt): Add prediction.
18361         * gimplify.c (gimplify_expr): Add PREDICT_EXPR.
18362         * predict.def (PRED_CONTINUE): Update hitrate.
18363         * tree.def (PREDICT_EXPR): Define.
18364         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark PREDICT_EXPR;
18365         do not handle BIND_EXPR.
18366         * tree-inline.c (estimate_num_insns_1): PREDICT_EXPR is free.
18367         * tree-cfg.c (verify_gimple_stmt): PREDICT_EXPR is valid.
18368         * tree-ssa-operands.c (get_expr_operands): PREDICT_EXPR takes no
18369         operands.
18370
18371 2008-03-18  Michael Matz  <matz@suse.de>
18372
18373         * gcov-io.h (__gcov_merge_ior, __gcov_fork): Mark hidden.
18374
18375 2008-03-18  Richard Guenther  <rguenther@suse.de>
18376
18377         * tree-gimple.h (is_gimple_invariant_address): Declare.
18378         (is_gimple_constant): Likewise.
18379         * tree-gimple.c (is_gimple_constant): New function.
18380         (is_gimple_invariant_address): Likewise.
18381         (is_gimple_min_invariant): Implement in terms of is_gimple_constant
18382         and is_gimple_invariant_address.
18383         * tree-ssa-loop-niter.c (expand_simple_operations): Revert
18384         previous change.
18385         * tree-data-ref.c (get_references_in_stmt): A SSA_NAME is not
18386         an addressable base.
18387
18388 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
18389
18390         PR middle-end/35611
18391         * gimplify.c (gimplify_expr): Gimplify second operand of
18392         OMP_ATOMIC_LOAD.
18393
18394 2008-03-17  Richard Guenther  <rguenther@suse.de>
18395
18396         PR tree-optimization/19637
18397         * fold-const.c (fold_unary): Remove restrictions of removing
18398         intermediate pointer-conversions (P2)(P1)P0.
18399         * tree-ssa-ccp.c (maybe_fold_stmt_addition): Recover from
18400         conversion to void pointer.
18401         (get_maxval_strlen): Handle addresses of the form &(*p)[0].
18402
18403 2008-03-16  James E. Wilson  <wilson@tuliptree.org>
18404
18405         PR debug/31510
18406         * dbxout.c (dbxout_expand_expr, case VAR_DECL): Return NULL for
18407         emulated thread local variables.
18408
18409 2008-03-16  Richard Guenther  <rguenther@suse.de>
18410
18411         PR middle-end/35607
18412         * tree-ssa-loop-niter.c (expand_simple_operations): Do not
18413         expand TREE_INVARIANT operations that are not gimple invariant.
18414
18415 2008-03-16  Hans-Peter Nilsson  <hp@axis.com>
18416
18417         * doc/extend.texi (Alignment): Say that the ABI controls
18418         the __alignof__ for non-strict-alignment targets rather
18419         than being a recommendation.
18420
18421 2008-03-15  Paul Brook  <paul@codesourcery.com>
18422
18423         * config/arm/arm.c (arm_unwind_emit): Suppress unused unwinding
18424         annotations.
18425         (arm_output_fn_unwind): Mark functions that can not be unwound.
18426
18427 2008-03-15  Paul Brook  <paul@codesourcery.com>
18428
18429         * config/arm/arm.c (arm_rtx_costs_1): Add costs for ARMv6 value
18430         extension instructions.
18431
18432 2008-03-15  Richard Guenther  <rguenther@suse.de>
18433
18434         * tree-ssa-ccp.c (ccp_fold): Also read from constant values
18435         and fold constant aggregate refs.
18436         (fold_const_aggregate_ref): Handle string constants
18437         and constructors in ARRAY_REFs.  Handle INDIRECT_REF.
18438         (evaluate_stmt): Simplify now that ccp_fold folds constant
18439         aggregate refs.
18440
18441 2008-03-15  Paul Brook  <paul@codesourcery.com>
18442
18443         * config/arm/arm.md (insv): Use gen_insv_t2 and gen_insv_zero.
18444         (extzv): Use gen_extzv_t2.
18445         (insv_t2, insv_zero, extv, extzv_t2): New patterns.
18446
18447 2008-03-15  Richard Guenther  <rguenther@suse.de>
18448
18449         * tree-ssa-ccp.c (get_symbol_constant_value): Export.
18450         (fold_const_aggregate_ref): Likewise.
18451         (get_value): Return NULL if we don't have any values.
18452         (ccp_finalize): Set const_val to NULL after freeing it.
18453         * tree-flow.h (get_symbol_constant_value): Declare.
18454         (fold_const_aggregate_ref): Likewise.
18455         * tree-ssa-sccvn.c (try_to_simplify): Use them.
18456
18457 2008-03-15  Richard Guenther  <rguenther@suse.de>
18458
18459         PR middle-end/35593
18460         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Make sure
18461         to not produce negative array indices if not allowed.  Add
18462         parameter to indicate that.
18463         (maybe_fold_offset_to_component_ref): Allow negative array
18464         indices only for the first member of a structure.
18465         (maybe_fold_offset_to_reference): Allow negative array indices.
18466         (maybe_fold_stmt_addition): Likewise.
18467
18468 2008-03-15  Bjoern Haase  <bjoern.m.haase@web.de>
18469             Anatoly Sokolov <aesok@post.ru>
18470
18471         * config/avr/avr.c (avr_arch_types): Add avr6 entry.
18472         (avr_arch): Add ARCH_AVR6.
18473         (avr_mcu_types): Add 'atmega2560' and 'atmega2561' entry.
18474         (initial_elimination_offset): Initialize and use 'avr_pc_size'
18475         instead of fixed value 2.
18476         (print_operand_address): Use gs() asm specifier instead of pm().
18477         (avr_assemble_integer): (Ditto.).
18478         (avr_output_addr_vec_elt): (Ditto.).
18479         (print_operand): Handle "!" code.
18480         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Add
18481         __AVR_3_BYTE_PC__, __AVR_2_BYTE_PC__ and __AVR_HAVE_JMP_CALL__.
18482         (AVR_HAVE_EIJMP_EICALL): Define.
18483         (AVR_3_BYTE_PC): Redefine.
18484         (AVR_2_BYTE_PC): (Ditto.).
18485         (PRINT_OPERAND_PUNCT_VALID_P): Add '!' code.
18486         (LINK_SPEC): Add atmega2560 and atmega2561.
18487         (CRT_BINUTILS_SPEC): Add atmega2560 (crtm2560.o) and atmega2561
18488         (crtm2561.o).
18489         * config/avr/avr.md (call_insn): Use eicall instead of icall
18490         for 3 byte PC devices.
18491         (call_value_insn): (Ditto.).
18492         (*tablejump_enh): Use eijmp instead of ijmp for 3 byte PC devices.
18493         (indirect_jump): Use only for for 2 byte PC devices.
18494         (*tablejump): (Ditto.).
18495         (*indirect_jump_avr6): Add insn.
18496         (*tablejump_rjmp): Don't use for 3 byte PC devices.
18497         * config/avr/libgcc.S (__prologue_saves__): Use eijmp
18498         instead of ijmp for 3 byte PC devices.
18499         (__tablejump2__): (Ditto.).
18500         * config/avr/t-avr (MULITLIB_OPTIONS): Add avr6 architecture.
18501         (MULITLIB_DIRNAMES): (Ditto.).
18502         (MULTILIB_MATCHES): Add atmega2560 and atmega2561 to list.
18503
18504 2008-03-15  Uros Bizjak  <ubizjak@gmail.com>
18505
18506         * config/i386/mmx.md ("sse2_umulv1siv2di3"): Rename from
18507         "sse2_umulsidi3".  Use V1DI mode for operand 0.
18508         ("mmx_psadbw"): Use V1DI mode for operand 0.
18509         * config/i386/i386-modes.def (V1SI): New vector mode.
18510         * config/i386/i386.c (struct builtin_description)
18511         [IX86_BUILTIN_PMULUDQ]: Use CODE_FOR_sse2_umulv1siv1di3.
18512         (v1di_ftype_v8qi_v8qi): Rename from di_ftype_v8qi_v8qi.
18513         (v1di_ftype_v2si_v2si): Rename from di_ftype_v2si_v2si.
18514         (ix86_init_mmx_sse_builtins) [__builtin_ia32_psadbw]: Use
18515         v1di_ftype_v8qi_v8qi type.
18516         [__builtin_ia32_pmuludq]: Use v1di_ftype_v2si_v2si type.
18517
18518         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psadbw,
18519         __builtin_ia32_pmuludq]: Fix the mode of return value.
18520
18521 2008-03-15  Richard Guenther  <rguenther@suse.de>
18522
18523         PR middle-end/35595
18524         * tree-ssa-pre.c (bitmap_find_leader): Handle expression
18525         being a PHI_NODE.
18526
18527 2008-03-14  Bob Wilson  <bob.wilson@acm.org>
18528
18529         * doc/invoke.texi (Option Summary, Xtensa Options): Document
18530         -mserialize-volatile and -mno-serialize-volatile Xtensa options.
18531         * config/xtensa/xtensa.c (print_operand): Do not emit MEMW instructions
18532         unless TARGET_SERIALIZE_VOLATILE is enabled.
18533         * config/xtensa/xtensa.md (*lsiu, *ssiu): Likewise.
18534         * config/xtensa/xtensa.h (TARGET_DEFAULT): Add MASK_SERIALIZE_VOLATILE.
18535         * config/xtensa/xtensa.opt (mserialize_volatile): New option.
18536
18537 2008-03-14  Richard Guenther  <rguenther@suse.de>
18538
18539         PR tree-optimization/34172
18540         * tree-flow.h (refs_may_alias_p): Declare.
18541         (get_single_def_stmt): Likewise.
18542         (get_single_def_stmt_from_phi): Likewise.
18543         (get_single_def_stmt_with_phi): Likewise.
18544         * tree-dfa.c (refs_may_alias_p): New function.
18545         (get_single_def_stmt): Likewise.
18546         (get_single_def_stmt_from_phi): Likewise.
18547         (get_single_def_stmt_with_phi): Likewise.
18548         * tree-ssa-sccvn.c (get_def_ref_stmt_vuses): New function.
18549         (vn_reference_lookup_1): New helper function.
18550         (vn_reference_lookup): Walk the virtual use-def chain to
18551         continue searching for a match if the def does not alias the
18552         reference we are looking for.
18553
18554 2008-03-14  David Edelsohn  <edelsohn@gnu.org>
18555
18556         * doc/install.texi (Binaries): Remove UCLA archive.  Add HVCC
18557         archive and Perzl.  Update The Written Word listing.
18558
18559 2008-03-14  Richard Guenther  <rguenther@suse.de>
18560
18561         PR tree-optimization/34043
18562         PR tree-optimization/33989
18563         * tree-ssa-pre.c (execute_pre): Allow SCCVN to do insertion
18564         when doing FRE.
18565         (bitmap_find_leader): Use extra argument to verify dominance
18566         relationship inside a basic-block.
18567         (can_PRE_operation): Add VIEW_CONVERT_EXPR.
18568         (find_leader_in_sets): Adjust.
18569         (create_component_ref_by_pieces): Take extra argument for
18570         dominance check, handle lookup failures.
18571         (find_or_generate_expression): Likewise.
18572         (create_expression_by_pieces): Likewise.
18573         (insert_into_preds_of_block): Adjust.
18574         (create_value_expr_from): If asked for, verify all operands
18575         are in the blocks AVAIL_OUT set.
18576         (make_values_for_stmt): Check for SSA_NAMEs that are life
18577         over an abnormal edge.
18578         (compute_avail): Remove such check.
18579         (do_SCCVN_insertion): New function.
18580         (eliminate): If we do not find a leader suitable for replacement
18581         insert a replacement expression from SCCVN if available.
18582         * tree-ssa-sccvn.h (run_scc_vn): Update prototype.
18583         (struct vn_ssa_aux): Add needs_insertion flag.
18584         * tree-ssa-sccvn.c (may_insert): New global flag.
18585         (copy_reference_ops_from_ref): Value-number union member access
18586         based on its size, not type and member if insertion is allowed.
18587         (visit_reference_op_load): For a weak match from union type
18588         punning lookup a view-converted value and insert a SSA_NAME
18589         for that value if that is not found.
18590         (visit_use): Make dumps shorter.  Do not disallow value numbering
18591         SSA_NAMEs that are life over an abnormal edge to constants.
18592         (free_scc_vn): Release inserted SSA_NAMEs.
18593         (run_scc_vn): New flag to specify whether insertion is allowed.
18594         Process SSA_NAMEs in forward order.
18595         * tree-ssa-loop-im.c (for_each_index): Handle invariant
18596         ADDR_EXPRs inside VIEW_CONVERT_EXPR.
18597         * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPRs from/to
18598         pointer type to/from integral types that do not change the
18599         precision to regular conversions.
18600
18601 2008-03-13  Uros Bizjak  <ubizjak@gmail.com>
18602
18603         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
18604         __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
18605         __builtin_ia32_psrl?i, __builtin_ia32_psra?i, __builtin_ia32_psll?128,
18606         __builtin_ia32_psrl?128, __builtin_ia32_psra?128]: Fix the mode of
18607         input arguments and the mode of return value.  Built-in functions
18608         that operate on whole 64-bit MMX register now use V1DI mode.
18609
18610 2008-03-13  Alon Dayan  <alond@il.ibm.com>
18611             Olga Golovanevsky  <olga@il.ibm.com>
18612
18613         PR tree-optimization/35041
18614         * ipa-struct-reorg.c (find_pos_in_stmt_1): Add another option
18615         to locate the right position in a statement.
18616
18617 2008-03-13  Uros Bizjak  <ubizjak@gmail.com>
18618
18619         PR target/34000
18620         PR target/35553
18621         * config/i386/xmmintrin.h:  Change all static inline functions to
18622         extern inline and add __gnu_inline__ attribute.
18623         * config/i386/bmintrin.h: Ditto.
18624         * config/i386/smmintrin.h: Ditto.
18625         * config/i386/tmmintrin.h: Ditto.
18626         * config/i386/mmintrin-common.h: Ditto.
18627         * config/i386/ammintrin.h: Ditto.
18628         * config/i386/emmintrin.h: Ditto.
18629         * config/i386/pmmintrin.h: Ditto.
18630         * config/i386/mmintrin.h: Ditto.
18631         * config/i386/mm3dnow.h: Ditto.
18632
18633 2008-03-13  Jakub Jelinek  <jakub@redhat.com>
18634
18635         PR middle-end/35185
18636         * omp-low.c (lower_regimplify, init_tmp_var, save_tmp_var): Removed.
18637         (lower_omp_2): New function.
18638         (lower_omp_1, lower_omp): Rewritten.
18639
18640 2008-03-13  Danny Smith  <dannysmith@users.sourceforge.net>
18641
18642         PR 35054
18643         * doc/extend.texi (Structure-Packing Pragmas): Replace "Win32"
18644         with the phrase "Microsoft Windows compilers".
18645         (Push/Pop Macro Pragmas): New subsection. Document
18646         #pragma push_macro and pragma pop_macro.
18647
18648 2008-03-12  Paul Brook  <paul@codesourcery.com>
18649
18650         * config/arm/arm.c (output_move_double): Prefer LDRD to LDM.
18651
18652 2008-03-12  Paul Brook  <paul@codesourcery.com>
18653
18654         * config/arm/thumb2.md: Extend peephole to cover 3-arg subs.
18655         (thumb2_alusi3_short): Exclude PLUS and MINUS.
18656         (thumb2_addsi_shortim): Rename ...
18657         (thumb2_addsi_short): ... to this.  Allow register operands.
18658         (thumb2_subsi_short): New pattern.
18659         (thumb2_one_cmplsi2_short,
18660         thumb2_negsi2_short): New patterns and peepholes.
18661
18662 2008-03-12  Paul Brook  <paul@codesourcery.com>
18663
18664         * config/arm/arm.c (arm_size_rtx_costs): Use ARM costs for Thumb-2.
18665
18666 2008-03-12  Uros Bizjak  <ubizjak@gmail.com>
18667
18668         * config/i386/i386.md (int_cond): New code iterator.
18669         (fp_cond): Ditto.
18670         ("s<code>"): Macroize expander from seq, sne, sgt, sgtu, slt, sltu,
18671         sge, sgeu, sle and sleu expanders usign int_cond code iterator.
18672         ("s<code>"): Macroize expander from sunordered, sordered, suneq, sunge,
18673         sungt, sunle, sunlt and sltgt expanders usign fp_cond code iterator.
18674         ("b<code>"): Macroize expander from beq, bne, bgt, bgtu, blt, bltu,
18675         bge, bgeu, ble and bleu expanders usign int_cond code iterator.
18676         ("b<code>"): Macroize expander from bunordered, bordered, buneq, bunge,
18677         bungt, bunle, bunlt and bltgt expanders usign fp_cond code iterator.
18678
18679 2008-03-12  Paul Brook  <paul@codesourcery.com>
18680
18681         * config/arm/arm.c (use_return_insn): Use offsets->saved_regs_mask
18682         instead of {arm,thumb}_compute_save_reg_mask.
18683         (output_return_instruction): Ditto.
18684         (thumb_unexpanded_epilogue): Ditto.
18685         (thumb1_expand_prologue): Ditto.
18686         (thumb1_output_function_prologue): Ditto.
18687         (arm_set_return_address): Ditto.
18688         (thumb_set_return_address): Ditto.
18689         (arm_get_frame_offsets): Set offsets->saved_regs_mask.  Push extra
18690         regs to achieve stack alignment.
18691         (thumb1_compute_save_reg_mask): Fix compiler warning.
18692         (arm_output_epilogue): Use offsets->saved_regs_mask.
18693         Adjust stack pointer by poping call clobered registers.
18694         (arm_expand_prologue): Use offsets->saved_regs_mask.
18695         Adjust stack pointer by pushing extra registers.
18696         * config/arm.h (arm_stack_offsets): Add saved_regs_mask.
18697
18698 2008-03-12  Paolo Bonzini  <bonzini@gnu.org>
18699
18700         PR tree-opt/35422
18701         * fold-const.c (fold_unary) <NOP_EXPR>: Distribute a narrowing
18702         conversion to the operands of a multiplication.
18703
18704 2008-03-12  Richard Guenther  <rguenther@suse.de>
18705
18706         * Makefile.in (OBJS-common): Add tree-ssa-phiprop.o
18707         (tree-ssa-phiprop.o): Copy dependencies from tree-ssa-forwprop.o.
18708         * timevar.def (TV_TREE_PHIPROP): Add.
18709         * tree-ssa-phiprop.c: Split from tree-ssa-forwprop.c, added
18710         pass description.  Use TV_TREE_PHIPROP.
18711         * tree-ssa-forwprop.c: Remove phiprop code.
18712
18713 2008-03-12  Jakub Jelinek  <jakub@redhat.com>
18714
18715         PR middle-end/35549
18716         * omp-low.c (maybe_lookup_decl): Constify first argument.
18717         (use_pointer_for_field): Change last argument from bool to
18718         omp_context *.  Disallow shared copy-in/out in nested
18719         parallel if decl is shared in outer parallel too.
18720         (build_outer_var_ref, scan_sharing_clauses,
18721         lower_rec_input_clauses, lower_copyprivate_clauses,
18722         lower_send_clauses, lower_send_shared_vars): Adjust callers.
18723
18724 2008-03-12  Victor Kaplansky  <victork@il.ibm.com>
18725             Ira Rosen  <irar@il.ibm.com>
18726
18727         * tree-vectorizer.c (free_stmt_vec_info): New function.
18728         (destroy_loop_vec_info): Move code to free_stmt_vec_info().
18729         Call free_stmt_vec_info(). Free LOOP_VINFO_STRIDED_STORES..
18730         * tree-vectorizer.h (free_stmt_vec_info): Declare.
18731         * tree-vect-transform.c (vectorizable_conversion): Free
18732         vec_oprnds0 if it was allocated.
18733         (vect_permute_store_chain): Remove unused VECs.
18734         (vectorizable_store): Free VECs that are allocated in the..
18735         function.
18736         (vect_transform_strided_load, vectorizable_load): Likewise.
18737         (vect_remove_stores): Simplify the code.
18738         (vect_transform_loop): Move code to vect_remove_stores().
18739         Call vect_remove_stores() and free_stmt_vec_info().
18740
18741 2008-03-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
18742
18743         * pa.h (TARGET_LONG_PIC_SDIFF_CALL): Conditionalize define on
18744         TARGET_HPUX.  Revise comment.
18745         (TARGET_LONG_PIC_PCREL_CALL): Revise comment.
18746         * pa.c (output_call): Update for revised TARGET_LONG_PIC_SDIFF_CALL.
18747         Use sr4 variant of `be' instruction when not generating PIC code.
18748         (attr_length_call): Adjust for above change.
18749
18750 2008-03-11  Andrew Pinski  <andrew_pinski@playstation.sony.com>
18751
18752         * ipa-reference.c (static_execute): Remove module_statics_const and
18753         associated setting code.
18754
18755 2008-03-11  Uros Bizjak  <ubizjak@gmail.com>
18756
18757         PR target/35540
18758         * config/i386/i386.md (paritysi2, paritydi2): Use register_operand
18759         predicate for operand 1.
18760         (paritysi2_cmp): Use register_operand predicate for operand 2.
18761         Use earlyclobber modifier for operand 1.  Remove support for
18762         memory operands.
18763         (paritydi2_cmp): Use register_operand predicate for operand 3.
18764         Use earlyclobber modifier for operand 1.  Remove support for
18765         memory operands.
18766
18767 2008-03-11  Paul Brook  <paul@codesourcery.com>
18768             Vladimir Prus  <vladimir@codesourcery.com>
18769
18770         * config/arm/arm.c (use_return_insn): Check TARGET_APCS_FRAME.
18771         (arm_compute_save_reg0_reg12_mask): Always
18772         check if register 11 must be saved.  Always safe hard frame pointer
18773         when frame_pointer_needeed.
18774         (arm_compute_save_reg_mask): Save IP and PC
18775         only with apcs frames.
18776         (arm_output_epilogue): Adjust Thumb2 codepath to
18777         be also invoked and work for ARM non-apcs frames.
18778         (arm_expand_prologue): Don't bother saving IP
18779         for non-apcs frame, since it's not clobbered by
18780         prologue code.  Implement non-apcs frame
18781         layout.
18782
18783 2008-03-11  Paolo Bonzini  <bonzini@gnu.org>
18784
18785         PR rtl-optimization/35281
18786         * expr.c (convert_move): Use a new pseudo for the intermediate
18787         from_mode->word_mode result.
18788
18789 2008-03-11  Paolo Bonzini  <bonzini@gnu.org>
18790
18791         * langhooks-def.h (LANG_HOOKS_CLEAR_BINDING_STACK): Delete.
18792         * langhooks.h (struct lang_hooks): Delete clear_binding_stack member.
18793         * toplev.c (compile_file): Don't call it.
18794
18795 2008-03-11  Uros Bizjak  <ubizjak@gmail.com>
18796
18797         PR middle-end/35526
18798         * expr.c (store_expr): Call emit_block_move if the mode
18799         of "temp" RTX is BLKmode.
18800
18801 2008-03-11  Andrew Pinski  <andrew_pinski@playstation.sony.com>
18802             Richard Guenther  <rguenther@suse.de>
18803
18804         PR tree-optimization/31358
18805         * tree-ssa-loop-manip.c (create_iv): Call force_gimple_operand for
18806         the step with a NULL_TREE.
18807         * tree-ssa-loop-ivopts.c (find_bivs): Convert the step
18808         to sizetype if type is a pointer type.
18809         (add_candidate_1): Don't convert the base and step to
18810         the generic type if the orginal type is a pointer type.
18811         (add_iv_value_candidates): Use sizetype for the step
18812         if type is a pointer type.
18813         (cand_value_at): Likewise.
18814         * tree-ssa-address.c (add_to_parts): Use POINTER_PLUS_EXPR
18815         for pointer types.
18816         * tree-affine.c (tree_to_aff_combination <POINTER_PLUS_EXPR>):
18817         Don't convert the tem affine to the type.
18818         (add_elt_to_tree): Use sizetype for the step if a pointer.
18819         Use POINTER_PLUS_EXPR for pointers.
18820         (aff_combination_to_tree): Use sizetype for the step if a
18821         pointer.
18822
18823 2008-03-10  Vladimir Makarov  <vmakarov@redhat.com>
18824
18825         * config/i386/sse.md (ssse3_pmaddubswv8hi3, ssse3_pmaddubswv4hi3):
18826         Remove commutativity hint.
18827
18828 2008-03-10  Jakub Jelinek  <jakub@redhat.com>
18829
18830         PR c/35438
18831         PR c/35439
18832         * c-parser.c (c_parser_omp_threadprivate): Don't add vars with
18833         errorneous type.  Check that v is a VAR_DECL.
18834
18835         PR middle-end/35099
18836         * tree-cfg.c (new_label_mapper): Update cfun->last_label_uid.
18837
18838 2008-03-10  H.J. Lu  <hongjiu.lu@intel.com>
18839
18840         PR tree-optimization/35494
18841         * tree-ssa-ccp.c (get_symbol_constant_value): Check if value
18842         may be overriden at link and run time.
18843
18844 2008-03-10  Richard Guenther  <rguenther@suse.de>
18845
18846         PR tree-optimization/34677
18847         * tree-ssa-pre.c (modify_expr_node_pool): Remove.
18848         (poolify_tree): Likewise.
18849         (modify_expr_template): Likewise.
18850         (poolify_modify_stmt): Likewise.
18851         (insert_fake_stores): Handle all component-ref style stores
18852         in addition to INDIRECT_REF.  Also handle complex types.
18853         Do not poolify the inserted load.
18854         (realify_fake_stores): Do not rebuild the tree but only
18855         make it a SSA_NAME copy.
18856         (init_pre): Remove initialzation of modify_expr_template.
18857         Do not allocate modify_expr_node_pool.
18858         (fini_pre): Do not free modify_expr_node_pool.
18859
18860 2008-03-10  Paul Brook  <paul@codesourcery.com>
18861
18862         * config/arm/arm.md (UNSPEC_STACK_ALIGN, UNSPEC_PIC_OFFSET): Renumber
18863         to avoid conflicts.
18864
18865 2008-03-10  Paul Brook  <paul@codesourcery.com>
18866             Mark Shinwell  <shinwell@codesourcery.com>
18867
18868         * config/arm/cortex-r4.md: New.
18869         * config/arm/thumb2.md (divsi3, udivsi3): Annotate with
18870         insn attributes.
18871         * config/arm/arm.md: Include cortex-r4.md.
18872         (insn): Add smmls, sdiv and udiv values.
18873         (generic_sched): Don't use generic scheduling for Cortex-R4.
18874         (arm_issue_rate): New function.
18875         (TARGET_SCHED_ISSUE_RATE): Define.
18876
18877 2008-03-10  Sebastian Pop  <sebastian.pop@amd.com>
18878
18879         * doc/invoke.texi (-ftree-loop-distribution): Add an example.
18880
18881 2008-03-10  Richard Guenther  <rguenther@suse.de>
18882
18883         * tree-ssa-pre.c (get_sccvn_value): Simplify.
18884         (compute_avail): Do not add stmt uses to AVAIL_OUT.
18885
18886 2008-03-10  Paolo Bonzini  <bonzini@gnu.org>
18887
18888         * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS):
18889         Set default to true.
18890
18891 2008-03-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18892
18893         * c.opt (Wsynth): Deprecate.
18894         * doc/invoke.texi (Option Summary, Warning Options): Document
18895         -Wno-format-contains-nul.
18896
18897 2008-03-09  Uros Bizjak  <ubizjak@gmail.com>
18898
18899         PR target/35496
18900         * config/i386/i386.c (ix86_constant_alignment): Compute alignment using
18901         ALIGN_MODE_128 for VECTOR_CST and INTEGER_CST in addition to REAL_CST.
18902
18903 2008-03-09  Ira Rosen  <irar@il.ibm.com>
18904
18905         * config/rs6000/rs6000.c (builtin_description): Rename vector
18906         left shift operations.
18907         * config/rs6000/altivec.md (UNSPEC_VSL): Remove.
18908         (altivec_vsl<VI_char>): Rename to ...
18909         (ashl<mode>3): ... new name.
18910         (mulv4sf3, mulv4si3, negv4sf2): Replace gen_altivec_vslw with
18911         gen_ashlv4si3.
18912         (absv4sf2): Convert to use ashift:V4SI instead of UNSPEC_VSL.
18913
18914 2008-03-08  Richard Guenther  <rguenther@suse.de>
18915
18916         * coverage.h (tree_coverage_counter_addr): Declare.
18917         * coverage.c (tree_coverage_counter_addr): New function.
18918         * tree-profile.c (tree_gen_edge_profiler): Unshare counter
18919         before using again.
18920         (tree_gen_pow2_profiler): Use tree_coverage_counter_addr.
18921         (tree_gen_one_value_profiler): Likewise.
18922         (tree_gen_ic_profiler): Likewise.
18923         (tree_gen_average_profiler): Likewise.
18924         (tree_gen_ior_profiler): Likewise.
18925
18926 2008-03-08  Richard Guenther  <rguenther@suse.de>
18927
18928         * tree-ssa-sccvn.h (vn_binary_op_lookup): Remove.
18929         (vn_binary_op_insert): Likewise.
18930         (vn_unary_op_lookup): Likewise.
18931         (vn_unary_op_insert): Likewise.
18932         (vn_nary_op_lookup): Declare.
18933         (vn_nary_op_insert): Likewise.
18934         * tree-ssa-sccvn.c (struct vn_tables_s): Merge unary
18935         and binary hashes, use a single obstack for unary_op_pool
18936         and binary_op_pool.
18937         (struct vn_binary_op_s, struct vn_unary_op_s): Replace with
18938         a single struct vn_nary_op_s.  Store tree code length and
18939         a variable number of operands.
18940         (struct vn_reference_op_struct): Remove unused op2.
18941         (vn_reference_op_eq): Do not compare op2.
18942         (vn_reference_op_compute_hash): Do not compute hash of op2.
18943         (vn_unary_op_hash, vn_binary_op_hash): Replace with vn_nary_op_hash.
18944         (vn_unary_op_compute_hash, vn_binary_op_compute_hash): Replace
18945         with vn_nary_op_compute_hash.
18946         (vn_unary_op_eq, vn_binary_op_eq): Replace with vn_nary_op_eq.
18947         (vn_unary_op_lookup, vn_binary_op_lookup): Replace with
18948         vn_nary_op_lookup.
18949         (vn_unary_op_insert, vn_binary_op_insert): Replace with
18950         vn_nary_op_insert.
18951         (visit_unary_op): Call nary functions.
18952         (visit_binary_op): Likewise.
18953         (process_scc): Adjust for struct vn_tables_s changes.
18954         (allocate_vn_table): Likewise.
18955         (free_vn_table): Likewise.
18956         * tree-vn.c (vn_add): Call nary functions.
18957         (vn_lookup): Likewise.
18958
18959 2008-03-08  Jakub Jelinek  <jakub@redhat.com>
18960
18961         PR target/35498
18962         * config/rs6000/rs6000.c (rs6000_expand_compare_and_swapqhi): Shift
18963         wdst back after sync_compare_and_swapqhi_internal.
18964
18965 2008-03-08  Uros Bizjak  <ubizjak@gmail.com>
18966
18967         PR target/22152
18968         * config/i386/i386-modes.def (V1DI): New vector mode.
18969         * config/i386/i386.h (VALID_MMX_REG_MODE): Add V1DImode.
18970         * config/i386/mmx.md (MMXMODEI8): New mode iterator.
18971         (MMXMODE248): Ditto.
18972         (MMXMODE): Add V1DI mode.
18973         (mmxvecsize): Change DI mode to V1DI mode.
18974         ("mov<mode>): Use MMXMODEI8 mode iterator.
18975         ("*mov<mode>_internal_rex64"): Ditto.
18976         ("*mov<mode>_internal"): Ditto.
18977         ("mmx_add<mode>3"): Ditto.  Handle V1DImode for TARGET_SSE2.
18978         ("mmx_sub<mode>3"): Ditto.
18979         ("mmx_adddi3"): Remove insn pattern.
18980         ("mmx_subdi3"): Ditto.
18981         ("mmx_ashr<mode>3"): Use SImode and "yN" constraint for operand 2.
18982         ("mmx_lshr<mode>3"): Ditto. Use MMXMODE248 mode iterator.
18983         ("mmx_ashl<mode>3"): Ditto.
18984         ("mmx_lshrdi3"): Remove insn pattern.
18985         ("mmx_ashldi3"): Ditto.
18986         * config/i386/i386.c (classify_argument): Handle V1DImode.
18987         (function_arg_advance_32): Ditto.
18988         (function_arg_32): Ditto.
18989         (struct builtin_description) [IX86_BUILTIN_PADDQ]: Use
18990         mmx_addv1di3 insn pattern.
18991         [IX86_BUILTIN_PSUBQ]: Use mmx_subv1di3 insn pattern.
18992         [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?, IX86_BUILTIN_PSRA?,
18993         IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I, IX86_BUILTIN_PSRA?I,
18994         IX86_BUILTIN_PSLL?I128, IX86_BUILTIN_PSRL?I128, IX86_BUILTIN_PSRA?I128]:
18995         Remove definitions of built-in functions.
18996         (V1DI_type_node): New node.
18997         (v1di_ftype_v1di_int): Ditto.
18998         (v1di_ftype_v1di_v1di): Ditto.
18999         (v2si_ftype_v2si_si): Ditto.
19000         (v4hi_ftype_v4hi_di): Remove node.
19001         (v2si_ftype_v2si_di): Ditto.
19002         (ix86_init_mmx_sse_builtins): Handle V1DImode.
19003         (__builtin_ia32_psll?, __builtin_ia32_psrl?, __builtin_ia32_psra?):
19004         Redefine builtins using def_builtin_const with *_ftype_*_int node.
19005         (__builtin_ia32_psll?i, __builtin_ia32_psrl?i, __builtin_ia32_psra?i):
19006         Add new builtins using def_builtin_const.
19007         (ix86_expand_builtin) [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?,
19008         IX86_BUILTIN_PSRA?, IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I,
19009         IX86_BUILTIN_PSRA?I]: Handle builtin definitions.
19010         * config/i386/mmintrin.h (__v1di): New typedef.
19011         (_mm_add_si64): Cast arguments to __v1di type.
19012         (_mm_sub_si64): Ditto.
19013         (_mm_sll_pi16): Cast __count to __v4hi type.
19014         (_mm_sll_pi32): Cast __count to __v2si type.
19015         (_mm_sll_si64): Cast arguments to __v1di type.
19016         (_mm_srl_pi16): Cast __count to __v4hi type.
19017         (_mm_srl_pi32): Cast __count to __v2si type.
19018         (_mm_srl_si64): Cast arguments to __v1di type.
19019         (_mm_sra_pi16): Cast __count to __v4hi type.
19020         (_mm_sra_pi32): Cast __count to __v2si type.
19021         (_mm_slli_pi16): Use __builtin_ia32_psllwi.
19022         (_mm_slli_pi32): Use __builtin_ia32_pslldi.
19023         (_mm_slli_si64): Use __builtin_ia32_psllqi. Cast __m to __v1di type.
19024         (_mm_srli_pi16): Use __builtin_ia32_psrlwi.
19025         (_mm_srli_pi32): Use __builtin_ia32_psrldi.
19026         (_mm_srli_si64): Use __builtin_ia32_psrlqi. Cast __m to __v1di type.
19027         (_mm_srai_pi16): Use __builtin_ia32_psrawi.
19028         (_mm_srai_pi32): Use __builtin_ia32_psradi.
19029         * config/i386/i386.md (UNSPEC_NOP): Remove unspec definition.
19030         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
19031         __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
19032         __builtin_ia32_psrl?i, __builtin_ia32_psra?i]: Add new builtins.
19033
19034 2008-03-07  Joseph Myers  <joseph@codesourcery.com>
19035
19036         * doc/include/texinfo.tex: Update to version 2008-03-07.10.
19037
19038 2008-03-07  Peter Bergner  <bergner@vnet.ibm.com>
19039
19040         PR target/35373
19041         * config/rs6000/rs6000.c (rs6000_legitimize_address): Don't generate
19042         reg+const addressing for Altivec modes.  Don't generate reg+reg
19043         addressing for TFmode or TDmode quantities.
19044
19045 2008-03-07  Paolo Bonzini  <bonzini@gnu.org>
19046
19047         * c-common.c (vector_types_convertible_p): Call langhook
19048         instead of comptypes.
19049
19050 2008-03-06  Andrew Pinski  <andrew_pinski@playstation.sony.com>
19051
19052         PR tree-opt/35402
19053         * tree-ssa-ccp.c (get_symbol_constant_value): Handle
19054         integral and scalar float variables which have a
19055         NULL DECL_INITIAL.
19056
19057 2008-03-06  Nathan Froyd  <froydnj@codesourcery.com>
19058
19059         * dwarf2out.c (dwarf2out_frame_debug_expr): Consult the
19060         dwarf_register_span hook when emitting unwind information for
19061         register-to-memory saves.
19062         * config/rs6000/rs6000.c (spe_synthesize_frame): Delete.
19063         (rs6000_frame_related): Remove call to spe_synthesize_frame.
19064
19065 2008-03-06  Jakub Jelinek  <jakub@redhat.com>
19066
19067         * gimplify.c (goa_lhs_expr_p): Allow different ADDR_EXPR nodes
19068         for the same VAR_DECL.
19069
19070 2008-03-06  Tom Tromey  <tromey@redhat.com>
19071
19072         * treelang: Delete.
19073         * doc/standards.texi (Standards): Don't mention treelang.
19074         * doc/invoke.texi (Overall Options): Don't mention treelang.
19075         * doc/install.texi (Prerequisites): Don't mention bison or
19076         treelang.
19077         (Configuration): Don't mention treelang.
19078         (Building): Likewise.
19079         * doc/frontends.texi (G++ and GCC): Don't mention treelang.
19080
19081 2008-03-06  Paolo Bonzini  <bonzini@gnu.org>
19082
19083         * simplify-rtx.c (simplify_subreg): Remove useless shifts from
19084         word-extractions out of a multi-word object.
19085
19086 2008-03-06  Richard Guenther  <rguenther@suse.de>
19087
19088         * tree.def (BIT_FIELD_REF): Constrain result type and its precision.
19089         * tree-cfg.c (verify_expr): Verify BIT_FIELD_REF constraints on
19090         result type and precision.
19091         * expr.c (get_inner_reference): Set unsignedp based on the result
19092         type of BIT_FIELD_REF.
19093         * tree.h (BIT_FIELD_REF_UNSIGNED): Remove.
19094         * tree-sra.c (instantiate_element): Do not set BIT_FIELD_REF_UNSIGNED.
19095         (try_instantiate_multiple_fields): Likewise.  Use the correct type
19096         for BIT_FIELD_REF.
19097         (sra_build_assignment): Likewise.
19098         (sra_build_elt_assignment): Likewise.
19099         (sra_explode_bitfield_assignment): Likewise.
19100         * print-tree.c (print_node): Do not check BIT_FIELD_REF_UNSIGNED.
19101         * tree-vect-transform.c (vect_create_epilog_for_reduction): Do not
19102         set BIT_FIELD_REF_UNSIGNED.
19103         (vectorizable_load): Likewise.
19104
19105 2008-03-06  Andreas Krebbel  <krebbel1@de.ibm.com>
19106
19107         * cse.c (cse_extended_basic_block): Invalidate artificial defs
19108         at bb start.
19109
19110 2008-03-06  Richard Guenther  <rguenther@suse.de>
19111
19112         * alias.c (struct alias_set_entry): Move has_zero_child field
19113         to pack with alias_set.
19114
19115 2008-03-05  H.J. Lu  <hongjiu.lu@intel.com>
19116
19117         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
19118         32bit host.
19119
19120 2008-03-05  Ian Lance Taylor  <iant@google.com>
19121
19122         * alias.h (alias_set_type): Change from HOST_WIDE_INT to int.
19123
19124 2008-03-05  Kenneth Zadeck  <zadeck@naturalbridge.com>
19125
19126         * fwprop.c (update_df): Support width and offset parameters of
19127         df_ref_create.
19128         * ra-conflict.c (mark_reg_store, clear_reg_in_live,
19129         global_conflicts): Change DF_REF_EXTRACT to either
19130         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
19131         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
19132         * df-scan.c (df_ref_record, df_defs_record,
19133         df_ref_create_structure, df_def_record_1, df_uses_record,
19134         df_get_conditional_uses, df_get_call_refs, df_insn_refs_collect,
19135         df_bb_refs_collect, df_entry_block_defs_collect,
19136         df_exit_block_uses_collect): Support new width and offset fields.
19137         (ref_extract_pool): New storage pool.
19138         (df_free_ref): New function.
19139         (df_reg_chain_unlink, df_free_collection_rec,
19140         df_sort_and_compress_refs): Call df_free_ref.
19141         (df_ref_equal_p, df_ref_compare): Compare offset and width fields
19142         of df_ref_extract.
19143         (df_ref_create_structure): Allocate df_ref_extract if offset and
19144         width fields are used.
19145         (df_def_record_1): Get offset and width from ZERO_EXTRACT.
19146         (df_uses_record): Get offset and width from ZERO_EXTRACT
19147         and SIGN_EXTRACT.
19148         * global.c (build_insn_chain): Change DF_REF_EXTRACT to either
19149         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
19150         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
19151         * df.h (df_ref_flags): Change DF_REF_EXTRACT to either
19152         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
19153         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
19154         (df_ref_extract): New structure.
19155         (DF_REF_WIDTH, DF_REF_OFFSET): New macros.
19156         (df_ref_create): Add width and offset parameters.
19157
19158 2008-03-05  Richard Guenther  <rguenther@suse.de>
19159
19160         * tree-ssa-structalias.c (get_constraint_for_component_ref):
19161         Use ranges_overlap_p.
19162         (offset_overlaps_with_access): Rename
19163         to ranges_overlap_p and move ...
19164         * tree-flow-inline.h (ranges_overlap_p): ... here.
19165
19166         * tree.h (get_inner_reference, handled_component_p): Update
19167         comments.
19168
19169         * tree.h (record_component_aliases, get_alias_set,
19170         alias_sets_conflict_p, alias_sets_must_conflict_p,
19171         objects_must_conflict_p): Move declarations ...
19172         * alias.h (record_component_aliases, get_alias_set,
19173         alias_sets_conflict_p, alias_sets_must_conflict_p,
19174         objects_must_conflict_p): ... here.
19175         Include coretypes.h.
19176         * Makefile.in (ALIAS_H): Add coretypes.h dependency.
19177
19178 2008-03-05  Aldy Hernandez  <aldyh@redhat.com>
19179
19180         * cfg.c: Include tree-flow.h.
19181         (remove_edge_raw): Call redirect_edge_var_map_clear.
19182         (redirect_edge_succ_nodup): Call redirect_edge_var_map_dup.
19183         * tree-flow-inline.h (redirect_edge_var_map_def): New.
19184         (redirect_edge_var_map_result): New.
19185         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Replace
19186         PENDING_STMT use with redirect_edge_var_map_*.
19187         * tree-ssa.c (edge_var_maps): New definition.
19188         (redirect_edge_var_map_add): New.
19189         (redirect_edge_var_map_clear): New.
19190         (redirect_edge_var_map_dup): New.
19191         (redirect_edge_var_map_vector): New.
19192         (redirect_edge_var_map_destroy): New.
19193         (ssa_redirect_edge): Replace PENDING_STMT use with
19194         redirect_edge_var_map_*.
19195         (flush_pending_stmts): Same.
19196         (delete_tree_ssa): Destroy edge var map.
19197         * tree-flow.h (struct _edge_var_map): New.
19198         Define edge_var_map vector type.
19199         Declare redirect_edge_var_map_* prototypes.
19200         * Makefile.in (cfg.o): Depend on TREE_FLOW_H.
19201         * tree-cfg.c (reinstall_phi_args): Replace
19202         PENDING_STMT use with redirect_edge_var_map_*.
19203
19204 2008-03-05  Richard Guenther  <rguenther@suse.de>
19205
19206         PR tree-optimization/35472
19207         * tree-ssa-dse.c (dse_optimize_stmt): Do not delete a store
19208         whose single use_stmt has a overlapping set of loaded and
19209         stored symbols as that use_stmt might be a noop assignment then.
19210
19211 2008-03-05  Joel Sherrill <joel.sherrill@oarcorp.com>
19212
19213         * gthr-rtems.h: Implement __gthread_mutex_destroy.
19214
19215 2008-03-05  Richard Guenther  <rguenther@suse.de>
19216
19217         PR c++/35336
19218         * tree.def (BIT_FIELD_REF): Document that operands 1 and 2
19219         should be constants.
19220         * tree-cfg.c (verify_expr): Verify it.
19221         * fold-const.c (fold_truthop): Remove code generating
19222         BIT_FIELD_REFs of structure bases.
19223         (fold_binary): Likewise.
19224         (fold_ternary): Position and size of BIT_FIELD_REFs are
19225         always host integers.
19226         (make_bit_field_ref): Remove.
19227         (optimize_bit_field_compare): Remove.
19228         (all_ones_mask_p): Remove.
19229
19230 2008-03-05  Gabor Loki  <loki@gcc.gnu.org>
19231
19232         PR gcc/33009
19233         * rtl-factoring.c (clear_regs_live_in_seq): Fix backward steps.
19234         (split_block_and_df_analyze): New. Split basic block and rebuild
19235         dataflow.
19236         (block_label_after): Use SPLIT_BLOCK_AND_DF_ANALYZE instead of
19237         SPLIT_BLOCK.
19238         (split_pattern_seq): Likewise.
19239         (erase_matching_seqs): Likewise.
19240         (split_pattern_seq): Skip return insn in case of REG_NORETURN note.
19241
19242 2008-03-04  Geoff Keating  <geoffk@apple.com>
19243
19244         * fold-const.c (tree_single_nonnegative_warnv_p): Fix mixed
19245         declaration and code.
19246         (tree_invalid_nonnegative_warnv_p): Likewise.
19247
19248 2008-03-05  Serge Belyshev  <belyshev@depni.sinp.msu.ru>
19249
19250         * doc/install.texi (Testing): Correct quoting for the RUNTESTFLAGS
19251         examples.  Truncate option-names then causing overfull hbox.
19252
19253 2008-03-04  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
19254
19255         PR target/35222
19256         * configure.ac (CONFIG_SJLJ_EXCEPTIONS): Force SJLJ exceptions
19257         on hpux10.
19258         * configure: Rebuilt.
19259
19260 2008-03-04  Rafael Espíndola  <espindola@google.com>
19261
19262         * fold-const.c (tree_simple_nonnegative_warnv_p): New.
19263         (tree_unary_nonnegative_warnv_p): New.
19264         (tree_binary_nonnegative_warnv_p): New.
19265         (tree_single_nonnegative_warnv_p): New.
19266         (tree_invalid_nonnegative_warnv_p): New.
19267         (tree_expr_nonnegative_warnv_p): Redefine in term of the new functions.
19268
19269 2008-03-04  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
19270
19271         PR 28322
19272         * opts.c (handle_option): Postpone 'unknown option' errors only for
19273         warning options.
19274
19275 2008-03-04  H.J. Lu  <hongjiu.lu@intel.com>
19276
19277         PR target/35453
19278         * config/i386/smmintrin.h (SIDD_XXX): Renamed to ...
19279         (_SIDD_XXX): This.
19280
19281 2008-03-04  Rafael Espíndola  <espindola@google.com>
19282
19283         * fold-const.c (tree_unary_nonzero_warnv_p): New.
19284         (tree_binary_nonzero_warnv_p): New.
19285         (tree_single_nonzero_warnv_p): New.
19286         (tree_expr_nonzero_warnv_p): Redefine using the new functions.
19287
19288 2008-03-04  Uros Bizjak  <ubizjak@gmail.com>
19289
19290         PR middle-end/35456
19291         * fold-const.c (fold_cond_expr_with_comparison): Prevent
19292         transformations for modes that have signed zeros.
19293         * ifcvt.c (noce_try_abs): Ditto.
19294
19295 2008-03-04  Joseph Myers  <joseph@codesourcery.com>
19296
19297         * config/i386/i386.c (override_options): Force
19298         -maccumulate-outgoing-args on if TARGET_STACK_PROBE.
19299
19300 2008-03-04  Jan Hubicka  <jh@suse.cz>
19301
19302         PR c++/35262
19303         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Fix typo
19304         in last commit.
19305
19306 2008-03-04  Danny Smith  <dannysmith@users.sourceforge.net>
19307
19308         * config/i386/i386.md (allocate_stack_worker_32): Use  __chkstk
19309         label to probe the stack.
19310
19311 2008-03-04  Danny Smith  <dannysmith@users.sourceforge.net>
19312
19313         * gthr-win32.h [__GTHREAD_HIDE_WIN32API]
19314         (__gthr_win32_mutex_destroy): Declare.
19315         [__GTHREAD_HIDE_WIN32API] (__gthread_mutex_destroy): Use
19316         __gthr_win32_mutex_destroy.
19317         * config/i386/gthr-win32.c  (__gthr_win32_mutex_destroy): Define.
19318
19319 2008-03-03  Jan Hubicka  <jh@suse.cz>
19320
19321         PR c++/35262
19322         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Be more
19323         aggressive on inlining cold calls.
19324
19325 2008-03-03  Richard Guenther  <rguenther@suse.de>
19326
19327         * tree-ssa-sccvn.c (visit_reference_op_store): Do not insert
19328         struct copies into the expression table.
19329         (simplify_unary_expression): Handle VIEW_CONVERT_EXPR.
19330         (try_to_simplify): Likewise.
19331         * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPR of
19332         integral and pointer arguments which do not change the
19333         precision to NOP_EXPRs.
19334         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Adjust
19335         VIEW_CONVERT_EXPR case.
19336
19337 2008-03-02  Sebastian Pop  <sebastian.pop@amd.com>
19338
19339         * tree-scalar-evolution.c (instantiate_parameters_1): An SSA_NAME
19340         defined in a loop at depth 0 is invariant.
19341         * tree-chrec.c (evolution_function_is_invariant_rec_p): Ditto.
19342         * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Should never
19343         be called at loop depth 0.
19344
19345 2008-03-02  Jakub Jelinek  <jakub@redhat.com>
19346
19347         PR driver/35420
19348         * gcc.c (process_command): Update copyright notice dates.
19349         * gcov.c (print_version): Likewise.
19350         * gcov-dump.c (print_version): Likewise.
19351         * mips-tfile.c (main): Likewise.
19352         * mips-tdump.c (main): Likewise.
19353
19354 2008-03-02  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
19355
19356         PR 24924
19357         * c-common.c (flag_permissive): Delete.
19358         (constant_expression_warnings): Check flags first.
19359         (constant_expression_error): New.
19360         * c-common.h (flag_permissive): Delete.
19361         (constant_expression_error): Declare.
19362         * flags.h (flag_permissive): Declare. Update description.
19363         * diagnostic.c (pedwarn): Update.
19364         (permerror): New.
19365         * diagnostic.h: (pedantic_error_kind): Rename as pedantic_warning_kind.
19366         (permissive_error_kind): New.
19367         * toplev.c (flag_permissive): Define. Update description.
19368         * toplev.h (permissive_error_kind): Declare.
19369         * c-errors.c (pedwarn_c99): Use pedantic_warning_kind.
19370         (pedwarn_c90): Use pedantic_warning_kind.
19371         * c-opts.c (c_common_post_options): flag_permissive does not affect
19372         flag_pedantic_errors.
19373
19374 2008-03-02  Joseph Myers  <joseph@codesourcery.com>
19375
19376         * libgcc2.c (__addvSI3, __addvsi3, __addvDI3, __subvSI3,
19377         __subvsi3, __subvDI3, __negvSI2, __negvsi2, __negvDI2, __absvSI2,
19378         __absvsi2, __absvDI2): Use unsigned arithmetic.
19379
19380 2008-03-02  Andi Kleen  <ak@suse.de>
19381             Richard Guenther  <rguenther@suse.de>
19382
19383         * struct-equiv.c: Remove file.
19384         * cfg_cleanup.c (condjump_equiv_p): Remove.
19385         * Makefile.in (OBJS-common): Remove struct-equiv.o.
19386         (struct-equiv.o): Remove rule.
19387         * basic-block.h (struct_equiv_checkpoint, STRUCT_EQUIV_*,
19388         insns_match_p, struct_equiv_block_eq, struct_equiv_init,
19389         rtx_equiv_p, condjump_equiv_p): Remove prototypes.
19390
19391 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
19392
19393         * ifcvt.c (noce_process_if_block): Try to handle only the then
19394         block if the else block exists but isn't suitable.
19395
19396 2008-03-01  Janne Blomqvist  <jb@gcc.gnu.org>
19397
19398         PR gcc/35063
19399         * gthr-posix.h (__gthread_mutex_destroy): Remove extra declarations.
19400         * gthr-posix95.h (__gthread_mutex_destroy): Likewise. Note this fixes
19401         regression from previous patch.
19402
19403 2008-03-01  Janne Blomqvist  <jb@gcc.gnu.org>
19404
19405         PR gcc/35063
19406         * gthr.h: Add __gthread_mutex_destroy as a function that must be
19407         implemented.
19408         * gthr-vxworks.h (__gthread_mutex_destroy): Null implementation.
19409         * gthr-single.h (__gthread_mutex_destroy): Likewise.
19410         * gthr-rtems.h (__gthread_mutex_destroy): Likewise.
19411         * gthr-mipssde.h (__gthread_mutex_destroy): Likewise.
19412         * gthr-nks.h (__gthread_mutex_destroy): Likewise.
19413         * gthr-solaris.h (__gthread_mutex_destroy): Call mutex_destroy.
19414         * gthr-win32.h (__GTHREAD_MUTEX_DESTROY_FUNCTION): Remove.
19415         (__gthread_mutex_destroy_function): Rename to
19416         __gthread_mutex_destroy.
19417         * gthr-dce.h (__gthread_mutex_destroy): Call
19418         pthread_mutex_destroy.
19419         * gthr-tpf.h (__gthread_mutex_destroy): Likewise.
19420         * gthr-posix.h (__gthread_mutex_destroy): Likewise.
19421         * gthr-posix95.h (__gthread_mutex_destroy): Likewise.
19422
19423 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
19424
19425         * df-scan.c (df_ref_chain_change_bb): Simplify.
19426         (df_insn_change_bb): Add new_bb argument.  Simplify.  Call
19427         set_block_for_insn if there's any change.
19428         * df.h ((df_insn_change_bb): Fix prototype.
19429         * cfgrtl.c (update_bb_for_insn_chain): Pass bb to
19430         df_insn_change_bb, don't call set_block_for_insn.
19431         * emit-rtl.c (reorder_insns): Likewise.
19432         * haifa-sched.c (move_insn): Likewise.
19433
19434 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
19435
19436         * rtlanal.c (loc_mentioned_in_p): Test XVECEXPs correctly.
19437
19438 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
19439
19440         * tree-flow-inline.h (next_readonly_imm_use): Return
19441         NULL_USE_OPERAND_P after the end.
19442
19443 2008-03-01  Richard Guenther  <rguenther@suse.de>
19444
19445         PR tree-optimization/35411
19446         * tree-sra.c (sra_build_assignment): Split conversion to
19447         final type to a separate statement if we are not assigning
19448         to a register.
19449
19450 2008-02-29  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
19451
19452         * fold-const.c (fold_convertible_p): Correct the logic to follow
19453         that in fold_convert().
19454
19455 2008-02-29  Douglas Gregor  <doug.gregor@gmail.com>
19456
19457         PR c++/35315
19458         * tree-inline.c (build_duplicate_type): When we make a
19459         duplicate type, make it unique in the canonical types system.
19460
19461 2008-02-29  Tom Tromey  <tromey@redhat.com>
19462
19463         * toplev.c (input_file_stack, input_file_stack_tick, fs_p,
19464         input_file_stack_history, input_file_stack_restored): Remove.
19465         (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
19466         * input.h (struct file_stack): Remove.
19467         (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
19468         (input_file_stack, input_file_stack_tick, INPUT_FILE_STACK_BITS):
19469         Likewise.
19470         * diagnostic.h (struct diagnostic_context) <last_module>: Change
19471         type.
19472         (diagnostic_last_module_changed): Add 'map' argument.
19473         (diagnostic_set_last_function): Likewise.
19474         * diagnostic.c (undiagnostic_report_current_module): Iterate using
19475         line map, not input_file_stack.
19476         * c-lex.c (fe_file_change): Don't use push_srcloc or pop_srcloc.
19477
19478 2008-02-29  Paul Brook  <paul@codesourcery.com>
19479
19480         * config/arm/arm.md (arm_addsi3): Add r/k/n alternative.
19481
19482 2008-02-29  Paul Brook  <paul@codesourcery.com>
19483
19484         * config/arm/ieee754-df.S (muldf3): Use RET macros.
19485
19486 2008-02-29  Richard Guenther  <rguenther@suse.de>
19487
19488         * tree-ssa-pre.c (get_sccvn_value): Create missing VNs via
19489         vn_lookup_or_add.
19490         * tree-ssa-sccnv.c (visit_reference_op_store): Use the rhs
19491         value for comparing for a store match.
19492         (simplify_unary_expression): Do nothing for SSA_NAMEs.
19493         (try_to_simplify): Do not do a full-blown reference lookup.
19494
19495 2008-02-29  Kaz Kojima  <kkojima@gcc.gnu.org>
19496
19497         * config/sh/sh.c (sh_scalar_mode_supported_p): New function.
19498         (TARGET_SCALAR_MODE_SUPPORTED_P): Define.
19499
19500         * config/sh/sh.h (OVERRIDE_OPTIONS): Don't warn for profiling.
19501
19502 2008-02-29  Sebastian Pop  <sebastian.pop@amd.com>
19503
19504         * tree-loop-linear.c (try_interchange_loops): Compare memory access
19505         strides against cache sizes.
19506
19507 2008-02-29  Kaz Kojima  <kkojima@gcc.gnu.org>
19508
19509         * config/sh/sh.c (sh_secondary_reload): Handle loading a float
19510         constant to fpul.
19511
19512 2008-02-28  Richard Sandiford  <rsandifo@nildram.co.uk>
19513
19514         * simplify-rtx.c (simplify_unary_operation_1): Extend the handling
19515         of SUBREG_PROMOTED_VAR_P to cope with cases where the extended value
19516         is smaller than the original promoted value.
19517         (simplify_subreg): If OP is a SUBREG, try to preserve its
19518         SUBREG_PROMOTED_VAR_P information.
19519
19520 2008-02-28  Steven Bosscher  <stevenb.gcc@gmail.com>
19521
19522         * tree-ssa-sccvn (vn_ssa_aux_obstack): New obstack.
19523         (VN_INFO_GET): Allocate new objects on the obstack.
19524         (init_scc_vn): Initialize the obstack.  Use XDELETE instead of free
19525         for rpo_numbers_temp, for consistency.
19526         (free_scc_vn): Free the obstack.
19527
19528 2008-02-28  Sebastian Pop  <sebastian.pop@amd.com>
19529
19530         * doc/invoke.texi: Document -ftree-loop-distribution.
19531         * tree-loop-distribution.c: New.
19532         * tree-pass.h (pass_loop_distribution): New.
19533         * graphds.h (struct graph): Add htab_t indices.
19534         * timevar.def (TV_TREE_LOOP_DISTRIBUTION): New.
19535         * tree-vectorizer.c (rename_variables_in_loop): Extern.
19536         (slpeel_tree_duplicate_loop_to_edge_cfg): Init PENDING_STMT to NULL.
19537         * tree-vectorizer.h (tree_duplicate_loop_on_edge): Declared.
19538         * tree-data-ref.c (debug_data_dependence_relations): New.
19539         (dump_data_dependence_relation): Also print data references.
19540         (free_data_ref): Extern.
19541         (same_access_functions): Moved...
19542         (find_vertex_for_stmt): Renamed rdg_vertex_for_stmt.
19543         (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
19544         debug_rdg_component, dump_rdg, debug_rdg, dot_rdg_1, dot_rdg,
19545         struct rdg_vertex_info, rdg_vertex_for_stmt): New.
19546         (create_rdg_edge_for_ddr, create_rdg_vertices): Cleaned up.
19547         (stmts_from_loop): Skip LABEL_EXPR.
19548         (hash_stmt_vertex_info, eq_stmt_vertex_info, hash_stmt_vertex_del):
19549         New.
19550         (build_rdg): Initialize rdg->indices htab.
19551         (free_rdg, stores_from_loop, ref_base_address,
19552         rdg_defs_used_in_other_loops_p, have_similar_memory_accesses,
19553         have_similar_memory_accesses_1, ref_base_address_1,
19554         remove_similar_memory_refs): New.
19555         * tree-data-ref.h: Depend on tree-chrec.h.
19556         (debug_data_dependence_relations, free_data_ref): Declared.
19557         (same_access_functions): ... here.
19558         (ddr_is_anti_dependent, ddrs_have_anti_deps, ddr_dependence_level):
19559         New.
19560         (struct rdg_vertex): Add has_mem_write and has_mem_reads.
19561         (RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT,
19562         RDG_MEM_WRITE_STMT, RDG_MEM_READS_STMT): New.
19563         (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
19564         debug_rdg_component, dump_rdg, debug_rdg, dot_rdg,
19565         rdg_vertex_for_stmt): Declared.
19566         (struct rdg_edge): Add level.
19567         (RDGE_LEVEL): New.
19568         (free_rdg, stores_from_loop, remove_similar_memory_refs,
19569         rdg_defs_used_in_other_loops_p, have_similar_memory_accesses):
19570         Declared.
19571         (rdg_has_similar_memory_accesses): New.
19572         * tree-vect-analyze.c: Remove unused static decls.
19573         * lambda.h (dependence_level): New.
19574         * common.opt (ftree-loop-distribution): New.
19575         * tree-flow.h (mark_virtual_ops_in_bb,
19576         slpeel_tree_duplicate_loop_to_edge_cfg,
19577         rename_variables_in_loop): Declared.
19578         * Makefile.in (TREE_DATA_REF_H): Depend on tree-chrec.h.
19579         (OBJS-common): Add tree-loop-distribution.o.
19580         (tree-loop-distribution.o): New rule.
19581         * tree-cfg.c (mark_virtual_ops_in_bb): New.
19582         (mark_virtual_ops_in_region): Use mark_virtual_ops_in_bb.
19583         * passes.c (init_optimization_passes): Schedule pass_loop_distribution.
19584
19585 2008-02-28  Joseph Myers  <joseph@codesourcery.com>
19586
19587         PR target/33963
19588         * tree.c (handle_dll_attribute): Disallow TYPE_DECLs for types
19589         other than structures and unions.
19590
19591 2008-02-28  Richard Guenther  <rguenther@suse.de>
19592
19593         Revert:
19594         2008-02-26  Richard Guenther  <rguenther@suse.de>
19595
19596         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
19597         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
19598         (lookup_decl_from_uid): Declare.
19599         (remove_decl_from_map): Likewise.
19600         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
19601         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
19602         (decl_for_uid_map): New global hashtable mapping DECL_UID
19603         to the decl tree.
19604         (init_ttree): Allocate it.
19605         (insert_decl_to_uid_decl_map): New helper function.
19606         (make_node_stat): Insert new decls into the map.
19607         (copy_node_stat): Likewise.
19608         (lookup_decl_from_uid): New function.
19609         (remove_decl_from_map): Likewise.
19610         (print_decl_for_uid_map_statistics): New helper.
19611         (dump_tree_statistics): Call it.
19612
19613         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
19614         (referenced_var_iterator): Adjust.
19615         (FOR_EACH_REFERENCED_VAR): Adjust.
19616         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
19617         (num_referenced_vars): Adjust.
19618         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
19619         (first_referenced_var): Remove.
19620         (end_referenced_vars_p): Likewise.
19621         (next_referenced_var): Likewise.
19622         (referenced_var_iterator_set): New helper function.
19623         * tree-dfa.c (referenced_var_lookup): Adjust.
19624         (referenced_var_check_and_insert): Likewise.
19625         (remove_referenced_var): Likewise.
19626         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
19627         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
19628         (verify_call_clobbering): Likewise.
19629         (verify_memory_partitions): Likewise.
19630         (init_tree_ssa): Allocate bitmap instead of hashtable for
19631         referenced_vars.
19632         (delete_tree_ssa): Adjust.
19633         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
19634         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
19635         (compute_tag_properties): Likewise.
19636         (set_initial_properties): Likewise.
19637         (find_partition_for): Likewise.
19638         (update_reference_counts): Likewise.
19639         (dump_may_aliases_for): Likewise.
19640         * tree-ssa-operands.c (add_virtual_operand): Likewise.
19641         (add_call_clobber_ops): Likewise.
19642         (add_call_read_ops): Likewise.
19643         (get_asm_expr_operands): Likewise.
19644         * tree-into-ssa.c (dump_decl_set): Likewise.
19645         (update_ssa): Likewise.
19646         * tree-sra.c (scan_function): Likewise.
19647         (decide_instantiations): Likewise.
19648         (scalarize_parms): Likewise.
19649         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
19650         (dsa_named_for): Likewise.
19651         * tree-ssa-structalias.c (update_alias_info): Likewise.
19652         (merge_smts_into): Likewise.
19653
19654 2008-02-27  David Daney  <ddaney@avtrex.com>
19655
19656         PR target/34409
19657         * config/mips/iris.h (MIPS_DEBUGGING_INFO): Define.
19658         * config/mips/openbsd.h (MIPS_DEBUGGING_INFO): Same.
19659         * config/mips/sde.h (MIPS_DEBUGGING_INFO): Remove undef.
19660         * config/mips/vxworks.h (MIPS_DEBUGGING_INFO): Same.
19661         * config/mips/mips.h (MIPS_DEBUGGING_INFO): Remove define.
19662
19663 2008-02-27  Uros Bizjak  <ubizjak@gmail.com>
19664
19665         PR target/25477
19666         * config/darwin-ppc-ldouble-patch.def (BUILT_IN_NANL): Add.
19667         (BUILT_IN_NEXTTOWARD): Remove.
19668         (BUILT_IN_NEXTTOWARDF): Ditto.
19669         * config/darwin.c (darwin_patch_builtin): Use ACONCAT instead of
19670         alloca/strcpy/strcat.  Remove commented-out code.  Fix whitespace.
19671
19672 2008-02-27  Tom Tromey  <tromey@redhat.com>
19673
19674         * tree-dump.c (dequeue_and_dump) <FUNCTION_DECL>: Check
19675         DECL_SAVED_TREE, not DECL_LANG_SPECIFIC, when dumping body.
19676
19677 2008-02-27  Jan Beulich  <jbeulich@novell.com>
19678
19679         * c-decl.c (merge_decls): Use DECL_USER_ALIGN() on olddecl to
19680         update the respective field on newdecl.
19681
19682 2008-02-27  Revital Eres  <eres@il.ibm.com>
19683
19684         PR rtl-optimization/34999
19685         * bb-reorder.c (add_labels_and_missing_jumps): Do not handle
19686         crossing edges that ends with a call insn.
19687         (fix_up_fall_thru_edges): Handle crossing edges that ends with a
19688         call insn and clear the EDGE_CROSSING flag of the crossing edge
19689         when fixing fallthru edges.
19690
19691 2008-02-27  Richard Guenther  <rguenther@suse.de>
19692
19693         PR middle-end/35390
19694         * fold-const.c (fold_unary): Return the correct argument,
19695         converted to the result type.
19696
19697 2008-02-27  Richard Guenther  <rguenther@suse.de>
19698
19699         PR middle-end/34971
19700         * expr.c (expand_expr_real_1): Assert on rotates that operate
19701         on partial modes.
19702         * fold-const.c (fold_binary): Use the types precision, not the
19703         bitsize of the mode if folding rotate expressions.  Build rotates
19704         only for full modes.
19705
19706 2008-02-27  Jakub Jelinek  <jakub@redhat.com>
19707
19708         * c-ppoutput.c (scan_translation_unit): Handle CPP_PRAGMA
19709         and CPP_PRAGMA_EOL.
19710         * c-pragma.c (pragma_ns_name): New typedef.
19711         (registered_pp_pragmas): New variable.
19712         (c_pp_lookup_pragma): New function.
19713         (c_register_pragma_1): If flag_preprocess_only, do nothing
19714         for non-expanded pragmas, for expanded ones push pragma's
19715         namespace and name into registered_pp_pragmas vector.
19716         (c_invoke_pragma_handler): Register OpenMP pragmas even when
19717         flag_preprocess_only, don't register GCC pch_preprocess
19718         pragma if flag_preprocess_only.
19719         * c-opts.c (c_common_init): Call init_pragma even if
19720         flag_preprocess_only.
19721         * c-pragma.c (c_pp_lookup_pragma): New prototype.
19722         * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Don't call
19723         cpp_register_pragma if flag_preprocess_only.
19724
19725 2008-02-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19726
19727         PR c/28800
19728         * c-parser.c (c_parser_translation_unit): Warn for empty
19729         translation unit, not empty source file.
19730
19731 2008-02-26  Paul Brook  <paul@codesourcery.com>
19732
19733         * config/arm/arm.c (thumb_set_frame_pointer): Ensure SP is first
19734         operand for Thumb-2.
19735         * config/arm/arm.h (reg_class): Add CORE_REGS.
19736         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Ditto.
19737         (BASE_REG_CLASS): Use CORE_REGS.
19738         (PREFERRED_RELOAD_CLASS): Add STACK_REG.
19739         (REGNO_MODE_OK_FOR_REG_BASE_P): Use REGNO_MODE_OK_FOR_BASE_P.
19740         (REGNO_OK_FOR_INDEX_P): Exclude SP.
19741         (ARM_REG_OK_FOR_INDEX_P): Always define.  Use
19742         ARM_REGNO_OK_FOR_INDEX_P.
19743         (ARM_PRINT_OPERAND_ADDRESS): Swap operands for [reg, sp].
19744         * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn,
19745         arm_movsi_insn, thumb1_movsi_insni, stack_tie): Add "k" alternatives.
19746         (ldm/stm peepholes): Ditto.
19747         * config/arm/thumb2.md (thumb2_movdi): Add "k" alternatives.
19748         * config/arm/vfp.md (arm_movsi_vfp, thumb2_movsi_vfp): Ditto.
19749         * config/arm/iwmmxt.md (iwmmxt_movsi_insn): Ditto.
19750         * config/arm/constraints.md: Enable "k" constraint on ARM.
19751
19752 2008-02-27  Ben Elliston  <bje@au.ibm.com>
19753
19754         * config/rs6000/rs6000.c: Annotate cache line size field in all
19755         instances of struct processor_costs.
19756
19757 2008-02-26  David Edelsohn  <edelsohn@gnu.org>
19758
19759         * dbgcnt.def (cfg_cleanup, cprop1, cprop2, dce_fast, dce_ud, dse1,
19760         dse2, gcse, if_conversion, if_after_combine, if_after_reload,
19761         jump_bypass): New counters.
19762         * cfgcleanup.c (cleanup_cfg): Add dbg_cnt.
19763         * dce.c (gate_ud_dce): Same.
19764         (gate_fast_dce): Same.
19765         * dse.c (gate_dse1): New function.
19766         (gate_dse2): New function.
19767         (gate_dse): Merge results of new gate functions.
19768         * gcse.c (gcse_main): Bracket cprop1 and cprop2 with dbg_cnt.
19769         (gate_handle_jump_bypass): Add dbg_cnt.
19770         (gate_handle_gcse): Add dbg_cnt.
19771         * ifcvt.c (gate_handle_if_conversion): Same.
19772         (gate_handle_if_after_combine): Same.
19773         (gate_handle_if_after_reload): Same.
19774         * Makefile.in: Add DBGCNT_H to cfgcleanup.o and ifcvt.o.
19775
19776 2008-02-26  Edmar Wienskoski  <edmar@freescale.com>
19777
19778         * config/rs6000/rs6000.c (processor_costs): Update e300 cache
19779         line sizes.
19780         * doc/invoke.texi: Add e300c2 and e300c3 to list of cpus.
19781
19782 2008-02-26  Jason Merrill  <jason@redhat.com>
19783
19784         PR c++/35315
19785         * attribs.c (decl_attributes): Leave ATTR_FLAG_TYPE_IN_PLACE
19786         alone if it's the naming decl for the type's main variant.
19787
19788 2008-02-26  Tom Tromey  <tromey@redhat.com>
19789
19790         * system.h (USE_MAPPED_LOCATION): Poison.
19791         * Makefile.in (GTFILES): Put CPP_ID_DATA_H first.
19792         * tree-cfg.c (make_cond_expr_edges): Remove old location code.
19793         (make_goto_expr_edges): Likewise.
19794         (remove_bb): Likewise.
19795         (execute_warn_function_return): Likewise.
19796         * basic-block.h (struct edge_def) <goto_locus>: Change type to
19797         location_t.
19798         * c-common.c (fname_decl): Remove old location code.
19799         * tree-vect-transform.c (vect_finish_stmt_generation): Remove old
19800         location code.
19801         * rtl.h (ASM_OPERANDS_SOURCE_LOCATION): Remove old-location
19802         variant.
19803         (ASM_INPUT_SOURCE_LOCATION): Likewise.
19804         (gen_rtx_ASM_INPUT): Likewise.
19805         (gen_rtx_ASM_INPUT_loc): Likewise.
19806         (get_rtx_asm_OPERANDS): Remove.
19807         * cfglayout.c (insn_locators_alloc): Remove old location code.
19808         (set_curr_insn_source_location): Likewise.
19809         (curr_insn_locator): Likewise.
19810         * print-tree.c (print_node): Remove old location code.
19811         * tree-mudflap.c (mf_varname_tree): Remove old location code.
19812         (mf_file_function_line_tree): Remove test of USE_MAPPED_LOCATION.
19813         * cfgexpand.c (expand_gimple_cond_expr): Don't use
19814         location_from_locus.
19815         (construct_exit_block): Remove old location code.
19816         * emit-rtl.c (force_next_line_note): Remove old location code.
19817         * profile.c (branch_prob): Remove old location code.
19818         * tree-vectorizer.h (LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE,
19819         LOC_LINE): Remove old-location variants.
19820         * langhooks.c (lhd_print_error_function): Remove old location
19821         code.
19822         * configure, config.in: Rebuilt.
19823         * configure.ac (--enable-mapped-location): Remove.
19824         * c-decl.c (c_init_decl_processing): Remove old location code.
19825         (finish_function): Likewise.
19826         * recog.c (decode_asm_operands): Remove old location code.
19827         * c-pch.c (c_common_read_pch): Remove old location code.
19828         * rtl.def (ASM_INPUT, ASM_OPERANDS): Remove old location
19829         variants.
19830         * gimple-low.c (lower_function_body): Remove old location code.
19831         * toplev.c (unknown_location): Remove.
19832         (push_srcloc): Remove old-location variant.
19833         (process_options): Remove old location code.
19834         (lang_dependent_init): Likewise.
19835         * input.h (UNKNOWN_LOCATION): Move definition.
19836         (location_t): Undeprecate.
19837         (source_locus): Remove.
19838         (location_from_locus): Remove.
19839         (struct location_s): Remove.
19840         Remove all old-location code.
19841         (input_line, input_filename): Remove.
19842         * final.c (final_scan_insn): Remove old location code.
19843         * diagnostic.c (diagnostic_build_prefix): Remove
19844         USE_MAPPED_LOCATION test.
19845         * tree.h (gimple_stmt) <locus>: Now a location_t.
19846         (tree_exp) <locus>: Likewise.
19847         (DECL_IS_BUILTIN): Remove old-location variant.
19848         (annotate_with_file_line, annotate_with_locus): Likewise.
19849         (expr_locus, set_expr_locus): Update.
19850         * tree.c (build1_stat): Remove old location code.
19851         (last_annotated_node): Remove.
19852         (annotate_with_file_line): Remove old-location variant.
19853         (annotate_with_locus): Likewise.
19854         (expr_location): Remove old location code.
19855         (set_expr_location): Likewise.
19856         (expr_has_location): Likewise.
19857         (expr_locus): Likewise.
19858         (set_expr_locus): Likewise.
19859         (expr_filename): Don't use location_from_locus.
19860         (expr_lineno): Likewise.
19861         * rtl-error.c (location_for_asm): Remove old location code.
19862         * c-lex.c (cb_line_change): Remove old location code.
19863         (fe_file_change): Likewise.
19864         (cb_def_pragma): Likewise.
19865         (c_lex_with_flags): Likewise.
19866         * gengtype.c (do_typedef): Don't special-case location types.
19867         (define_location_structures): Remove.
19868         (main): Don't call define_location_structures.
19869         * tree-pretty-print.c (dump_implicit_edges): Remove old location
19870         code.
19871
19872 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
19873
19874         PR 26264
19875         * builtins.def (BUILT_IN_STDARG_START): Remove.
19876         * builtins.c (expand_builtin): Remove BUILT_IN_STDARG_START.
19877         * tree-stdarg.c (execute_optimize_stdarg): Likewise.
19878         * tree-inline.c (inline_forbidden_p_1): Likewise.
19879
19880 2008-02-26  Richard Guenther  <rguenther@suse.de>
19881
19882         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
19883         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
19884         (lookup_decl_from_uid): Declare.
19885         (remove_decl_from_map): Likewise.
19886         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
19887         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
19888         (decl_for_uid_map): New global hashtable mapping DECL_UID
19889         to the decl tree.
19890         (init_ttree): Allocate it.
19891         (insert_decl_to_uid_decl_map): New helper function.
19892         (make_node_stat): Insert new decls into the map.
19893         (copy_node_stat): Likewise.
19894         (lookup_decl_from_uid): New function.
19895         (remove_decl_from_map): Likewise.
19896         (print_decl_for_uid_map_statistics): New helper.
19897         (dump_tree_statistics): Call it.
19898
19899         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
19900         (referenced_var_iterator): Adjust.
19901         (FOR_EACH_REFERENCED_VAR): Adjust.
19902         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
19903         (num_referenced_vars): Adjust.
19904         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
19905         (first_referenced_var): Remove.
19906         (end_referenced_vars_p): Likewise.
19907         (next_referenced_var): Likewise.
19908         (referenced_var_iterator_set): New helper function.
19909         * tree-dfa.c (referenced_var_lookup): Adjust.
19910         (referenced_var_check_and_insert): Likewise.
19911         (remove_referenced_var): Likewise.
19912         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
19913         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
19914         (verify_call_clobbering): Likewise.
19915         (verify_memory_partitions): Likewise.
19916         (init_tree_ssa): Allocate bitmap instead of hashtable for
19917         referenced_vars.
19918         (delete_tree_ssa): Adjust.
19919         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
19920         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
19921         (compute_tag_properties): Likewise.
19922         (set_initial_properties): Likewise.
19923         (find_partition_for): Likewise.
19924         (update_reference_counts): Likewise.
19925         (dump_may_aliases_for): Likewise.
19926         * tree-ssa-operands.c (add_virtual_operand): Likewise.
19927         (add_call_clobber_ops): Likewise.
19928         (add_call_read_ops): Likewise.
19929         (get_asm_expr_operands): Likewise.
19930         * tree-into-ssa.c (dump_decl_set): Likewise.
19931         (update_ssa): Likewise.
19932         * tree-sra.c (scan_function): Likewise.
19933         (decide_instantiations): Likewise.
19934         (scalarize_parms): Likewise.
19935         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
19936         (dsa_named_for): Likewise.
19937         * tree-ssa-structalias.c (update_alias_info): Likewise.
19938         (merge_smts_into): Likewise.
19939
19940 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
19941
19942         PR 34351
19943         * doc/invoke.texi (-Wall): Add -Wvolatile-register-var.
19944         * c-opts.c (c_common_handle_option): Wall enables
19945         Wvolatile-register-var.
19946         * common.opt: Move Wvolatile-register-var to...
19947         * c.opt: ...here.
19948
19949 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
19950
19951         * common.opt (Wlarger-than=): New.
19952         * doc/invoke.texi (Warning Options): Replace -Wlarger-than- with
19953         -Wlarger-than=.
19954         * opts.c (common_handle_option): Handle -Wlarger-than=.
19955         * optc-gen.awk: Likewise.
19956         * opth-gen.awk: Likewise.
19957         * stor-layout.c (layout_decl): Use -Wlarger-than= for warning.
19958         * tree-optimize.c (tree_rest_of_compilation): Likewise.
19959
19960 2008-02-26  Manuel Lopez-Ibanez <manu@gcc.gnu.org>
19961
19962         * c-common.c (match_case_to_enum_1): Add appropriate
19963         OPT_W* parameter to warning.
19964         (c_do_switch_warnings): Likewise.
19965         * c-typeck.c (warning_init): Add one more parameter following
19966         'warning' function.
19967         (push_init_level): Update call to warning_init.
19968         (pop_init_level): Likewise.
19969         (add_pending_init): Likewise.
19970         (output_init_element: Likewise.
19971
19972 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
19973
19974         PR 28322
19975         * toplev.c (toplev_main): If there are warnings or error, print
19976         errors for ignored options.
19977         * opts.c (ignored_options): New static variable.
19978         (postpone_unknown_option_error): New.
19979         (print_ignored_options): New.
19980         (handle_option): Postpone errors for unknown -Wno-* options.
19981         * opts.h (print_ignored_options): Declare.
19982
19983 2008-02-25  Richard Sandiford  <rsandifo@nildram.co.uk>
19984
19985         * config/mips/mips.md (loadgp_blockage, blockage): Change type
19986         to "ghost".
19987
19988 2008-02-25  Richard Guenther  <rguenther@suse.de>
19989
19990         Revert:
19991         2008-02-25  Richard Guenther  <rguenther@suse.de>
19992
19993         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
19994         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
19995         (lookup_decl_from_uid): Declare.
19996         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
19997         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
19998         (decl_for_uid_map): New global hashtable mapping DECL_UID
19999         to the decl tree.
20000         (init_ttree): Allocate it.
20001         (insert_decl_to_uid_decl_map): New helper function.
20002         (make_node_stat): Insert new decls into the map.
20003         (copy_node_stat): Likewise.
20004         (lookup_decl_from_uid): New function.
20005         (print_decl_for_uid_map_statistics): New helper.
20006         (dump_tree_statistics): Call it.
20007
20008         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
20009         (referenced_var_iterator): Adjust.
20010         (FOR_EACH_REFERENCED_VAR): Adjust.
20011         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
20012         (num_referenced_vars): Adjust.
20013         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
20014         (first_referenced_var): Remove.
20015         (end_referenced_vars_p): Likewise.
20016         (next_referenced_var): Likewise.
20017         (referenced_var_iterator_set): New helper function.
20018         * tree-dfa.c (referenced_var_lookup): Adjust.
20019         (referenced_var_check_and_insert): Likewise.
20020         (remove_referenced_var): Likewise.
20021         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
20022         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
20023         (verify_call_clobbering): Likewise.
20024         (verify_memory_partitions): Likewise.
20025         (init_tree_ssa): Allocate bitmap instead of hashtable for
20026         referenced_vars.
20027         (delete_tree_ssa): Adjust.
20028         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
20029         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
20030         (compute_tag_properties): Likewise.
20031         (set_initial_properties): Likewise.
20032         (find_partition_for): Likewise.
20033         (update_reference_counts): Likewise.
20034         (dump_may_aliases_for): Likewise.
20035         * tree-ssa-operands.c (add_virtual_operand): Likewise.
20036         (add_call_clobber_ops): Likewise.
20037         (add_call_read_ops): Likewise.
20038         (get_asm_expr_operands): Likewise.
20039         * tree-into-ssa.c (dump_decl_set): Likewise.
20040         (update_ssa): Likewise.
20041         * tree-sra.c (scan_function): Likewise.
20042         (decide_instantiations): Likewise.
20043         (scalarize_parms): Likewise.
20044         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
20045         (dsa_named_for): Likewise.
20046         * tree-ssa-structalias.c (update_alias_info): Likewise.
20047         (merge_smts_into): Likewise.
20048
20049 2008-02-25  Janne Blomqvist  <jb@gcc.gnu.org>
20050
20051         PR fortran/29549
20052         * doc/invoke.texi (-fcx-limited-range): Document new option.
20053         * toplev.c (process_options): Handle -fcx-fortran-rules.
20054         * common.opt: Add documentation for -fcx-fortran-rules.
20055
20056 2008-02-25  Janne Blomqvist  <jb@gcc.gnu.org>
20057
20058         PR c/35162
20059         * doc/invoke.texi (-fcx-limited-range): Correct to be in line with
20060         actual behaviour and C99.
20061
20062 2008-02-26  Ben Elliston  <bje@au.ibm.com>
20063
20064         * config/rs6000/rs6000.h (ASM_CPU_POWER5_SPEC): Define.
20065         (ASM_CPU_POWER6_SPEC): Likewise.
20066         (ASM_CPU_SPEC): Pass %(asm_cpu_power5) for -mcpu=power5.
20067         Likewise, pass %(asm_cpu_power6) for -mcpu=power6.
20068         (EXTRA_SPECS): Add asm_cpu_power5, asm_cpu_power6 spec strings.
20069
20070 2008-02-25  Richard Guenther  <rguenther@suse.de>
20071
20072         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
20073         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
20074         (lookup_decl_from_uid): Declare.
20075         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
20076         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
20077         (decl_for_uid_map): New global hashtable mapping DECL_UID
20078         to the decl tree.
20079         (init_ttree): Allocate it.
20080         (insert_decl_to_uid_decl_map): New helper function.
20081         (make_node_stat): Insert new decls into the map.
20082         (copy_node_stat): Likewise.
20083         (lookup_decl_from_uid): New function.
20084         (print_decl_for_uid_map_statistics): New helper.
20085         (dump_tree_statistics): Call it.
20086
20087         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
20088         (referenced_var_iterator): Adjust.
20089         (FOR_EACH_REFERENCED_VAR): Adjust.
20090         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
20091         (num_referenced_vars): Adjust.
20092         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
20093         (first_referenced_var): Remove.
20094         (end_referenced_vars_p): Likewise.
20095         (next_referenced_var): Likewise.
20096         (referenced_var_iterator_set): New helper function.
20097         * tree-dfa.c (referenced_var_lookup): Adjust.
20098         (referenced_var_check_and_insert): Likewise.
20099         (remove_referenced_var): Likewise.
20100         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
20101         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
20102         (verify_call_clobbering): Likewise.
20103         (verify_memory_partitions): Likewise.
20104         (init_tree_ssa): Allocate bitmap instead of hashtable for
20105         referenced_vars.
20106         (delete_tree_ssa): Adjust.
20107         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
20108         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
20109         (compute_tag_properties): Likewise.
20110         (set_initial_properties): Likewise.
20111         (find_partition_for): Likewise.
20112         (update_reference_counts): Likewise.
20113         (dump_may_aliases_for): Likewise.
20114         * tree-ssa-operands.c (add_virtual_operand): Likewise.
20115         (add_call_clobber_ops): Likewise.
20116         (add_call_read_ops): Likewise.
20117         (get_asm_expr_operands): Likewise.
20118         * tree-into-ssa.c (dump_decl_set): Likewise.
20119         (update_ssa): Likewise.
20120         * tree-sra.c (scan_function): Likewise.
20121         (decide_instantiations): Likewise.
20122         (scalarize_parms): Likewise.
20123         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
20124         (dsa_named_for): Likewise.
20125         * tree-ssa-structalias.c (update_alias_info): Likewise.
20126         (merge_smts_into): Likewise.
20127
20128 2008-02-25  Andreas Krebbel  <krebbel1@de.ibm.com>
20129
20130         PR target/35258
20131         * cse.c (cse_insn): Avoid creation of overlapping MEMs.
20132         * alias.c (nonoverlapping_memrefs_p): Export for use in other modules.
20133         * alias.h (nonoverlapping_memrefs_p): Likewise.
20134
20135 2008-02-25  Jan Beulich  <jbeulich@novell.com>
20136
20137         * Makefile.in: Also prefix uses of crt0.o and mcrt0.o with $(T).
20138         * config/i386/netware-libgcc.exp: Add __bswap?i2,
20139         __emultls_get_address, __emultls_register_common,
20140         __floatundi?f, and _Unwind_GetIPInfo.
20141         * config/i386/netware.c (gen_stdcall_or_fastcall_decoration):
20142         Sync with config/i386/winnt.c:gen_stdcall_or_fastcall_suffix().
20143         (gen_regparm_prefix): Likewise.
20144         (i386_nlm_encode_section_info): Sync with
20145         config/i386/winnt.c:i386_pe_encode_section_info().
20146         (i386_nlm_maybe_mangle_decl_assembler_name): New.
20147         i386_nlm_mangle_decl_assembler_name): New.
20148         (netware_override_options): New.
20149         * config/i386/netware.h (netware_override_options): Declare.
20150         (OVERRIDE_OPTIONS): Re-define to netware_override_options.
20151         (i386_nlm_mangle_decl_assembler_name): Declare.
20152         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Define.
20153
20154 2008-02-25  Ben Elliston  <bje@au.ibm.com>
20155
20156         PR other/32948
20157         * c-decl.c (grokdeclarator): Remove unused local variables
20158         `typedef_type' and `type_as_written'.
20159         * bb-reorder.c
20160         (find_rarely_executed_basic_blocks_and_crossing_edges): Remove
20161         unused local variable `has_hot_blocks'.
20162         (fix_crossing_conditional_branches): Remove unused local variable
20163         `prev_bb'.
20164
20165 2008-02-25  Uros Bizjak  <ubizjak@gmail.com>
20166
20167         PR middle-end/19984
20168         * builtins.def (BUILT_IN_NAN): Define as c99 builtin
20169         using DEF_C99_BUILTIN.
20170         (BUILT_IN_NANF): Ditto.
20171         (BUILT_IN_NANL): Ditto.
20172
20173 2008-02-25  Ayal Zaks  <zaks@il.ibm.com>
20174             Revital Eres  <eres@il.ibm.com>
20175
20176         * modulo-sched.c (calculate_must_precede_follow): Address TODO
20177         regarding the order of two dependent insns in the same row.
20178
20179 2008-02-25  Eric Botcazou  <ebotcazou@adacore.com>
20180
20181         * stor-layout.c (layout_decl): Do not bump the alignment of a
20182         bit-field to more than byte alignment if it is packed.
20183
20184 2008-02-24  David Edelsohn  <edelsohn@gnu.org>
20185
20186         * config/rs6000/rs6000.c (processor_costs): Add cache costs for
20187         e300c2 and e300c3.
20188
20189 2008-02-24  Diego Novillo  <dnovillo@google.com>
20190
20191         http://gcc.gnu.org/ml/gcc-patches/2008-02/msg01094.html
20192
20193         PR 33738
20194         * tree-vrp.c (vrp_evaluate_conditional): With
20195         -Wtype-limits, emit a warning when comparing against a
20196         constant outside the natural range of OP0's type.
20197         * c.opt (Wtype-limits): Move ...
20198         * common.opt (Wtype-limits): ... here.
20199
20200 2008-02-24  Edmar Wienskoski  <edmar@freescale.com>
20201
20202         * config.gcc (powerpc*-*-*): Add new cores e300c2 and e300c3.
20203         * config/rs6000/e300c2c3.md: New file.
20204         * config/rs6000/rs6000.c (processor_costs): Add new costs for
20205         e300c2 and e300c3.
20206         (rs6000_override_options): Add e300c2 and e300c3 cases to
20207         processor_target_table. Do not allow usage of Altivec or Spe
20208         with e300 cores. Initialize rs6000_cost for e300c2 and e300c3.
20209         (rs6000_issue_rate): Set issue rate for e300c2 and e300c3.
20210         * config/rs6000/rs6000.h (processor_type): Add
20211         PROCESSOR_PPCE300C2 and PROCESSOR_PPCE300C3.
20212         (ASM_CPU_SPEC): Add e300c2 and e300c3.
20213         * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce300c2
20214         and ppce300c3. Include e300c2c3.md.
20215
20216 2008-02-23  David Edelsohn  <edelsohn@gnu.org>
20217
20218         * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Use STRICT_ALIGNMENT
20219         instead of TARGET_STRICT_ALIGN.
20220
20221 2008-02-23  Joseph Myers  <joseph@codesourcery.com>
20222
20223         * explow.c (memory_address): Assert that the generated address is
20224         valid.
20225
20226 2008-02-23  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
20227
20228         PR target/25477
20229         * config/darwin-protos.h: Add darwin_patch_builtins prototype.
20230         * config/darwin-ppc-ldouble-patch.def: New file.
20231         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): New macro.
20232         * config/rs6000/rs6000.c (rs6000_init_builtins): Call
20233         SUBTARGET_INIT_BUILTINS if defined.
20234         * config/darwin.c (darwin_patch_builtin, darwin_patch_builtins):
20235         New functions.
20236
20237 2008-02-23  Andrew Pinski  <andrew_pinski@playstation.sony.com>
20238
20239         PR rtl-opt/33512
20240         * simplify-rtx.c (simplify_binary_operation_1): Add simplification
20241         of (and X (ior (not X) Y) and (and (ior (not X) Y) X).
20242
20243 2008-02-23  Andrew Pinski  <andrew_pinski@playstation.sony.com>
20244
20245         PR pch/35027
20246         * c-pch.c (c_common_valid_pch): Make the "too short to be a PCH
20247         file" warning condtional on -Winvalid-PCH.
20248
20249 2008-02-23  Daniel Jacobowitz  <dan@codesourcery.com>
20250
20251         * expmed.c (extract_bit_field): Always use adjust_address for MEM.
20252
20253 2008-02-23  Uros Bizjak  <ubizjak@gmail.com>
20254
20255         PR target/22076
20256         PR target/34256
20257         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use "!y" to
20258         prevent reload from using MMX registers.
20259         (*mov<mode>_internal): Ditto.
20260         (*movv2sf_internal_rex64): Ditto.
20261         (*movv2sf_internal): Ditto.
20262
20263 2008-02-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20264
20265         PR documentation/31569
20266         * doc/install.texi2html: Use makeinfo --no-number-sections.
20267
20268 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
20269
20270         * config/rs6000/rs6000.c (rs6000_legitimize_address): Check to
20271         ensure that we can address an entire entity > 8 bytes.  Don't
20272         generate reg+reg addressing for such data.
20273
20274 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
20275
20276         * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Don't overalign
20277         strings when optimizing for size, unless the target cares about
20278         alignment.
20279
20280 2008-02-22  Tom Tromey  <tromey@redhat.com>
20281
20282         * regclass.c (current_pass): Remove declaration.
20283
20284 2008-02-22  Anatoly Sokolov <aesok@post.ru>
20285
20286         * config/avr/libgcc.S (__RAMPZ__): Define.
20287         (__do_copy_data): Add for devices with 128KB code memory.
20288
20289 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
20290
20291         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
20292         Use spe_abi.
20293         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Likewise.
20294
20295 2008-02-22  Hans-Peter Nilsson  <hp@axis.com>
20296
20297         * config/cris/cris.h (REG_CLASS_FROM_LETTER): Recognize 'b' for
20298         GENNONACR_REGS.
20299
20300 2008-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20301
20302         PR c/19999
20303         * c-typeck.c (build_binary_op): Warn about floating point
20304         comparisons if FLOAT_TYPE_P, not only for REAL_TYPE.
20305
20306 2008-02-21  Janis Johnson  <janis187@us.ibm.com>
20307
20308         PR target/34526
20309         * config/rs6000/rs6000.c (rs6000_altivec_abi): Clarify comment.
20310         (rs6000_explicit_options): Split abi into spe_abi and altivec_abi,
20311         add vrsave.
20312         (rs6000_override_options): Set altivec_abi as default, not override,
20313         for 64-bit GNU/Linux; for 32-bit GNU/Linux default to altivec_abi for
20314         TARGET_ALTIVEC; default to TARGET_ALTIVEC_VRSAVE when AltiVec ABI
20315         is used; use new member spe_abi.
20316         (rs6000_handle_option): Set rs6000_explicit_options.vrsave; use
20317         spe_abi and altivec_abi.
20318
20319 2008-02-22  Tomas Bily  <tbily@suse.cz>
20320
20321         * tree-vectorizer.c (vect_is_simple_reduction): Fix comment typo.
20322
20323 2008-02-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20324
20325         PR bootstrap/35273
20326         * config.build (build_file_translate): Set to `CMD //c' only if
20327         it works.
20328         * Makefile.in (build_file_translate): Improve comment.
20329
20330 2008-02-21  Jan Hubicka  <jh@suse.cz>
20331
20332         * predict.def (PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL,
20333         PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL, PRED_CALL,
20334         PRED_TREE_EARLY_RETURN, PRED_NULL_RETURN): Update.
20335
20336 2008-02-21  Michael Matz  <matz@suse.de>
20337
20338         PR target/35264
20339         * config/i386/i386.c (ix86_expand_branch): Add missing breaks.
20340
20341 2008-02-21  Uros Bizjak  <ubizjak@gmail.com>
20342
20343         * config/i386/i386.md (mov<mode>cc): Macroize expander from movsfcc,
20344         movdfcc and movxfcc using X87MODEF mode iterator and SSE_FLOAT_MODE_P
20345         as insn constraint.
20346         * config/i386/sse.md (<sse>_movup<ssemodesuffixf2c>): Macroize insn
20347         from sse_movups adn sse2_movupd using SSEMODEF2P mode iterator and
20348         SSE_VEC_FLOAT_MODE_P as insn constraint.
20349         (<sse>_movmskp<ssemodesuffixf2c>): Ditto from similar patterns.
20350         (sse4a_movnt<mode>): Macroize insn from sse4a_movntsf and
20351         sse4a_movntdf using MODEF mode iterator.
20352         (sse4a_vmmovnt<mode>): Macroize insn form sse4a_vmmovntv2df and
20353         sse4a_vmmovntv4sf using SSEMODEF2P mode iterator.
20354         (sse4_1_blendp<ssemodesuffixf2c>): Ditto from similar patterns.
20355         (sse4_1_blendvp<ssemodesuffixf2c>): Ditto.
20356         (sse4_1_dpp<ssemodesuffixf2c>): Ditto.
20357         (sse4_1_roundp<ssemodesuffixf2c>): Ditto.
20358         (sse4_1_rounds<ssemodesuffixf2c>): Ditto.
20359
20360 2008-02-21  Richard Guenther  <rguenther@suse.de>
20361
20362         * tree.def (PAREN_EXPR): New tree code.
20363         * fold-const.c (fold_unary): Remove PAREN_EXPR around constants
20364         and PAREN_EXPR.
20365         * tree-pretty-print.c (dump_generic_node): Handle PAREN_EXPR.
20366         * expr.c (expand_expr_real_1): Likewise.
20367         * tree-inline.c (estimate_num_insns_1): Likewise.
20368         * tree-complex.c (expand_complex_move): Likewise.
20369         * tree-vectorizer.c (vect_is_simple_use): Treat PAREN_EXPR (x)
20370         as plain x.
20371
20372 2008-02-20  Kaz Kojima  <kkojima@gcc.gnu.org>
20373
20374         PR target/35225
20375         * config/sh/sh.c (find_barrier): Don't go past 'from' argument.
20376
20377 2008-02-20  Kaz Kojima  <kkojima@gcc.gnu.org>
20378
20379         PR target/35190
20380         * config/sh/sh.md (jump_compact): Disable for crossing jumps.
20381
20382         * config/sh/sh.c (find_barrier): Don't go past
20383         NOTE_INSN_SWITCH_TEXT_SECTIONS note.
20384
20385 2008-02-20  DJ Delorie  <dj@redhat.com>
20386
20387         * config/h8300/h8300.md (insv): Force source operand to be a register.
20388
20389         * config/h8300/h8300.c (h8300_expand_epilogue): Emit return insn
20390         as a jump, not as a plain insn.
20391
20392 2008-02-20  Seongbae Park <seongbae.park@gmail.com>
20393
20394         * doc/invoke.texi (Warning Options): Add new option
20395         -Wframe-larger-than=.
20396         (-Wframe-larger-than): Document.
20397
20398         * flags.h (warn_frame_larger_than, frame_larger_than_size):
20399         Add declarations for new option variables.
20400
20401         * final.c (final_start_function): Check the frame size
20402         before emission and issue a Wframe-larger-than warning.
20403
20404         * opts.c (warn_frame_larger_than, frame_larger_than_size):
20405         Add definitions for new option variables.
20406         (common_handle_option): Handle new option OPT_Wframe_larger_than_.
20407
20408         * common.opt (Wframe-larger-than=): New option.
20409
20410 2008-02-20  Uros Bizjak  <ubizjak@gmail.com>
20411
20412         * config/i386/sse.md (<sse>_vmmul<mode>3): Fix typo in asm template.
20413         (<sse>_div<mode>3): Ditto.
20414         (<sse>_vmdiv<mode>3): Ditto.
20415         (<sse>_vmsqrt<mode>2): Ditto.
20416         (*smax<mode>3): Ditto.
20417         (sse5_frcz<mode>2): Ditto.
20418         (sse5_vmfrcz<mode>2): Ditto.  Use TARGET_SSE5 instead of TARGET_ROUND
20419         as insn constraint.
20420
20421 2008-02-20  Richard Guenther  <rguenther@suse.de>
20422
20423         PR middle-end/35265
20424         * builtins.c (validate_arg): If we want an INTEGER_TYPE,
20425         be happy with INTEGRAL_TYPE_P.
20426
20427 2008-02-20  Richard Guenther  <rguenther@suse.de>
20428
20429         * fold-const.c (split_tree): Associate floatig-point expressions
20430         if flag_associative_math is set.
20431
20432 2008-02-20  Richard Guenther  <rguenther@suse.de>
20433
20434         * tree.h (fold_real_zero_addition_p): Declare.
20435         * fold-const.c (fold_real_zero_addition_p): Export.
20436         * tree-ssa-reassoc.c (eliminate_using_constants): Also handle
20437         floating-point operations with zero and one.
20438
20439 2008-02-20  Paolo Bonzini  <bonzini@gnu.org>
20440
20441         * doc/install.texi: Correct references to CFLAGS, replacing them
20442         with BOOT_CFLAGS.  Document flags used during bootstrap for
20443         target libraries.
20444
20445 2008-02-20  Uros Bizjak  <ubizjak@gmail.com>
20446
20447         * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): New define.
20448         * config/i386/i386.md (*sse_setcc<mode>): Macroize from *sse_setccsf
20449         and *sse_setccdf using MODEF mode iterator and SSE_FLOAT_MODE_P as
20450         insn constraint.
20451         (smin<mode>3): Ditto from similar patterns.
20452         (smax<mode>3): Ditto.
20453         (*ieee_smin<mode>3): Ditto.
20454         (*ieee_smax<mode>3): Ditto.
20455         * config/i386/sse.md (sse): New mode attribute.
20456         (mov<mode>): Macroize expander from movv4sf and movv2df using
20457         SSEMODEF2P mode iterator.
20458         (<sse>_movnt<mode>): Ditto from similar patterns. Use
20459         SSE_VEC_FLOAT_MODE_P as insn constraint.
20460         (storent<mode>): Ditto.
20461         (storent<mode>): Macroize expander from storentsf and storentdf using
20462         MODEF mode iterator.
20463         (neg<mode>2): Macroize from negv4sf2 and negv2df2 using SSEMODEF2P
20464         mode iterator and SSE_VEC_FLOAT_MODE_P as insn constraint.
20465         (abs<mode>2): Ditto from similar patterns.
20466         (add<mode>3, *add<mode>3, <sse>_vmadd<mode>3): Ditto.
20467         (sub<mode>3, *sub<mode>3, <sse>_vmsub<mode>3): Ditto.
20468         (<sse>_div<mode>3, <sse>_vmdiv<mode>3): Ditto.
20469         (<sse>_vmsqrt<mode>2): Ditto.
20470         (smin<mode>3, *smin<mode>3_finite, *smin<mode>3)
20471         (<sse>_vmsmin<mode>3, *ieee_smin<mode>3): Ditto.
20472         (smax<mode>3, *smax<mode>3_finite, *smax<mode>3)
20473         (<sse>_vmsmax<mode>3, *ieee_smax<mode>3): Ditto.
20474         (<sse>_maskcmp<mode>3): Macroize from sse_maskcmpv4sf3,
20475         sse_maskcmpsf3, sse2_maskcmpv2df3 and sse2_maskcmpdf3 using SSEMODEF4
20476         mode iterator. Use SSE_FLOAT_MODE_P with SSE_VEC_FLOAT_MODE_P as
20477         insn constraint.
20478         (<sse>_comi): Macroize from sse_comi and sse2_comi using MODEF mode
20479         iterator and SSE_FLOAT_MODE_P as insn constraint.
20480         (<sse>_ucomi): Ditto from similar patterns.
20481         (<sse>_vmmaskcmp<mode>3): Macroize from sse_vmmaskcmpv4sf3 and
20482         sse2_vmmaskcmpv2df3 using SSEMODEF2P mode iterator and
20483         SSE_VEC_FLOAT_MODE_P as insn constraint.
20484         (vcond<mode>): Ditto from similar patterns.
20485         (and<mode>3, *and<mode>3): Ditto.
20486         (<sse>_nand<mode>3): Ditto.
20487         (ior<mode>3, *ior<mode>3): Ditto.
20488         (xor<mode>3, *xor<mode>3): Ditto.
20489         (*and<mode>3): Macroize from *andsf3 and *anddf3 using MODEF mode
20490         iterator and SSE_FLOAT_MODE_P as insn constraint.
20491         (*nand<mode>3): Ditto from similar patterns.
20492         (*ior<mode>3): Ditto.
20493         (*xor<mode>3): Ditto.
20494
20495 2008-02-20  Ira Rosen  <irar@il.ibm.com>
20496
20497         * config/spu/spu.md (vec_unpacku_hi_v8hi, vec_unpacku_lo_v8hi,
20498         vec_unpacks_hi_v8hi, vec_unpacks_lo_v8hi, vec_unpacku_hi_v16qi,
20499         vec_unpacku_lo_v16qi, vec_unpacks_lo_v16qi): Implement.
20500
20501 2008-02-19  Jan Hubicka  <jh@suse.cz>
20502
20503         * predict.c (tree_bb_level_predictions): Remove variable next
20504         mistakely introduced by previous commit.
20505
20506 2008-02-19  Jan Hubicka  <jh@suse.cz>
20507
20508         * predict.c (predict_paths_leading_to): Rewrite.
20509         (predict_paths_for_bb): New.
20510         (tree_bb_level_predictions): Update call of predict_paths_leading_to.
20511
20512 2008-02-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20513
20514         PR bootstrap/35218
20515         * Makefile.in (build_file_translate): New.
20516         (gcc-vers.texi): Use it for translating $(abs_srcdir).
20517         * config.build (build_file_translate): Set to `CMD //c' on MinGW.
20518         * configure.ac (build_file_translate): Substitute it.
20519         * configure: Regenerate.
20520
20521 2008-02-19  Jan Hubicka  <jh@suse.cz>
20522
20523         PR rtl-optimization/34408
20524         * see.c (see_def_extension_not_merged): Copy subreg so we don't have
20525         invalid sharing.
20526
20527 2008-02-19  Jan Hubicka  <jh@suse.cz>
20528
20529         PR middle-end/28779
20530         * tree-inline.c (estimate_num_insns_1): Fix counting of cost of
20531         call_expr.
20532
20533 2008-02-19  H.J. Lu  <hongjiu.lu@intel.com>
20534
20535         PR Ada/35186
20536         * config/i386/i386-modes.def: Revert the last DI alignment
20537         change until Ada people can look into it.
20538
20539 2008-02-19  Nick Clifton  <nickc@redhat.com>
20540
20541         * opts.c (print_specific_help): Fix typo in --help text.
20542
20543 2008-02-19  Jakub Jelinek  <jakub@redhat.com>
20544
20545         PR target/35239
20546         * config/i386/cpuid.h (__cpuid, __get_cpuid_max): Use special
20547         32-bit inline asm without asm alternatives for host GCC < 3.0.
20548
20549 2008-02-19  Richard Guenther  <rguenther@suse.de>
20550
20551         PR tree-optimization/34989
20552         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Re-structure.
20553         Allow propagation to INDIRECT_REF if we can simplify only.
20554
20555 2008-02-19  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
20556
20557         * c-common.c (warn_for_collisions_1): Use appropriate option when
20558         warning.
20559
20560 2008-02-19  Nick Clifton  <nickc@redhat.com>
20561
20562         PR other/31349
20563         * opts.c (undocumented_msg): Leave blank unless checking is enabled.
20564         (handle_options): Fix indentation.
20565         (print_filtered_help): If no language-specific options were
20566         displayed tell the user how to list all the options supported by
20567         the language's front-end.
20568         (print_specific_help): Fix indentation and remove duplicate line.
20569         (common_handle_option): Handle the -v option.
20570         For --help enable the display of undocumented options if the -v
20571         switch has been included on the command line.
20572         For --help= check for overlaps in the arguments between the option
20573         classes and the language names and issue a warning when they
20574         cannot be disambiguated.
20575         * c.opt (v): Pass on to the common option handler.
20576
20577 2008-02-19  Revital Eres  <eres@il.ibm.com>
20578
20579         * modulo-sched.c (sms_schedule): Change dump message when
20580         create_ddg function fails.
20581         (try_scheduling_node_in_cycle): Rename row to cycle.
20582         (print_partial_schedule): Rename CYCLE to ROW.
20583
20584 2008-02-19  Christian Bruel  <christian.bruel@st.com>
20585             Zdenek Dvorak  <ook@ucw.cz>
20586
20587         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check step alignment.
20588
20589 2008-02-19  Uros Bizjak  <ubizjak@gmail.com>
20590
20591         PR target/33555
20592         * config/i386/i386.md (*x86_movsicc_0_m1_se): New insn pattern.
20593         (*x86_movdicc_0_m1_se): Ditto.
20594
20595 2008-02-19  Uros Bizjak  <ubizjak@gmail.com>
20596
20597         * config/i386/sfp-machine.h (__gcc_CMPtype): New typedef.
20598         (CMPtype): Define as __gcc_CMPtype.
20599         * config/rs6000/sfp-machine.h (__gcc_CMPtype): New typedef.
20600         (CMPtype): Define as __gcc_CMPtype.
20601
20602 2008-02-19  Hans-Peter Nilsson  <hp@axis.com>
20603
20604         Support valgrind 3.3 for --enable-checking=valgrind.
20605         * system.h: Consolidate ENABLE_VALGRIND_CHECKING-dependent defines
20606         here.
20607         [!VALGRIND_MAKE_MEM_NOACCESS]: Define as VALGRIND_MAKE_NOACCESS.
20608         [!VALGRIND_MAKE_MEM_DEFINED]: Define as VALGRIND_MAKE_READABLE.
20609         [!VALGRIND_MAKE_MEM_UNDEFINED]: Define as VALGRIND_MAKE_WRITABLE.
20610         * ggc-common.c: Remove ENABLE_VALGRIND_CHECKING-dependent defines.
20611         Replace use of VALGRIND_MAKE_READABLE, VALGRIND_MAKE_WRITABLE, and
20612         VALGRIND_MAKE_NOACCESS with VALGRIND_MAKE_MEM_DEFINED,
20613         VALGRIND_MAKE_MEM_UNDEFINED, and VALGRIND_MAKE_MEM_NOACCESS
20614         respectively.
20615         * ggc-zone.c: Similar.
20616         * ggc-page.c: Similar.
20617
20618 2008-02-19  Paul Brook  <paul@codesourcery.com>
20619
20620         PR target/35071
20621         * config/arm/ieee754-df.S: Fix do_it typo.
20622         * config/arm/ieee754-sf.S: Fix do_it typo.
20623
20624 2008-02-18  H.J. Lu  <hongjiu.lu@intel.com>
20625
20626         PR target/35189
20627         * config/i386/i386.c (OPTION_MASK_ISA_MMX_SET): New.
20628         (OPTION_MASK_ISA_3DNOW_SET): Likewise.
20629         (OPTION_MASK_ISA_SSE_SET): Likewise.
20630         (OPTION_MASK_ISA_SSE2_SET): Likewise.
20631         (OPTION_MASK_ISA_SSE3_SET): Likewise.
20632         (OPTION_MASK_ISA_SSSE3_SET): Likewise.
20633         (OPTION_MASK_ISA_SSE4_1_SET): Likewise.
20634         (OPTION_MASK_ISA_SSE4_2_SET): Likewise.
20635         (OPTION_MASK_ISA_SSE4_SET): Likewise.
20636         (OPTION_MASK_ISA_SSE4A_SET): Likewise.
20637         (OPTION_MASK_ISA_SSE5_SET): Likewise.
20638         (OPTION_MASK_ISA_3DNOW_A_UNSET): Likewise.
20639         (OPTION_MASK_ISA_MMX_UNSET): Updated.
20640         (OPTION_MASK_ISA_3DNOW_UNSET): Updated.
20641         (OPTION_MASK_ISA_SSE_UNSET): Likewise.
20642         (OPTION_MASK_ISA_SSE3_UNSET): Likewise.
20643         (OPTION_MASK_ISA_SSSE3_UNSET): Likewise.
20644         (OPTION_MASK_ISA_SSE4_1_UNSET): Likewise.
20645         (OPTION_MASK_ISA_SSE4_2_UNSET): Likewise.
20646         (OPTION_MASK_ISA_SSE4A_UNSET): Likewise.
20647         (OPTION_MASK_ISA_SSE5_UNSET): Likewise.
20648         (OPTION_MASK_ISA_SSE4): Removed.
20649         (ix86_handle_option): Turn on bits in ix86_isa_flags and
20650         ix86_isa_flags_explicit with OPTION_MASK_ISA_XXX_SET for -mXXX.
20651         (override_options): Don't turn on implied SSE/MMX bits in
20652         ix86_isa_flags.
20653
20654 2008-02-18  H.J. Lu  <hongjiu.lu@intel.com>
20655
20656         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
20657         32bit host.
20658
20659 2008-02-18  Joey Ye  <joey.ye@intel.com>
20660
20661         PR middle-end/34921
20662         * tree-nested.c (insert_field_into_struct): Set type alignment
20663         to field alignment if the former is less than the latter.
20664
20665 2008-02-18  Jakub Jelinek  <jakub@redhat.com>
20666
20667         * BASE-VER: Set to 4.4.0.
20668
20669 2008-02-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20670
20671         * doc/c-tree.texi: Use @dots{} and @enddots{} where appropriate.
20672         * doc/cfg.texi: Likewise.
20673         * doc/extend.texi: Likewise.
20674         * doc/gty.texi: Likewise.
20675         * doc/invoke.texi: Likewise.
20676         * doc/loop.texi: Likewise.
20677         * doc/md.texi: Likewise.
20678         * doc/passes.texi: Likewise.
20679         * doc/rtl.texi: Likewise.
20680         * doc/sourcebuild.texi: Likewise.
20681         * doc/tm.texi: Likewise.
20682         * doc/tree-ssa.texi: Likewise.
20683
20684 2008-02-17  Richard Guenther  <rguenther@suse.de>
20685
20686         PR middle-end/35227
20687         * tree-complex.c (init_parameter_lattice_values): Handle parameters
20688         without default definition.
20689
20690 2008-02-17  Richard Guenther  <rguenther@suse.de>
20691
20692         PR tree-optimization/35231
20693         * tree-vrp.c (register_edge_assert_for): Do not assume A == 0
20694         if A | B != 1.
20695
20696 2008-02-17  Uros Bizjak  <ubizjak@gmail.com>
20697
20698         Revert:
20699         2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
20700         * config/i386/sfp-machine.h (CMPtype): Define as typedef using
20701         libgcc_cmp_return mode.
20702
20703 2008-02-16  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
20704
20705         PR c/28368
20706         * doc/invoke.texi (-std): Clarify description of -std= and -ansi.
20707
20708 2008-02-16  Ralf Corsepius  <ralf.corsepius@rtems.org>
20709
20710         * config/m68k/t-rtems (M68K_MLIB_CPU): Add 5208, 5307, 5407, 5475
20711         multilibs.
20712
20713 2008-02-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20714
20715         * doc/c-tree.texi: Use `@.' where appropriate.
20716         * doc/extend.texi: Likewise.
20717         * doc/install.texi: Likewise.
20718         * doc/invoke.texi: Likewise.
20719         * doc/loop.texi: Likewise.
20720         * doc/makefile.texi: Likewise.
20721         * doc/md.texi: Likewise.
20722         * doc/passes.texi: Likewise.
20723         * doc/standards.texi: Likewise.
20724         * doc/tm.texi: Likewise.
20725
20726 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
20727
20728         PR middle-end/35196
20729         * omp-low.c (expand_omp_for_generic): Don't initialize fd->v
20730         in entry_bb.
20731         (expand_omp_for_static_nochunk): Initialize fd->v in seq_start_bb
20732         rather than in entry_bb.
20733
20734 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
20735
20736         * config/i386/sfp-machine.h (CMPtype): Define as typedef using
20737         libgcc_cmp_return mode.
20738
20739 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
20740
20741         PR middle-end/35130
20742         * tree-nested.c (convert_call_expr): Put FRAME.* vars into
20743         OMP_CLAUSE_SHARED rather than OMP_CLAUSE_FIRSTPRIVATE clause.
20744
20745 2008-02-15  Richard Guenther  <rguenther@suse.de>
20746             Zdenek Dvorak  <ook@ucw.cz>
20747
20748         PR tree-optimization/35164
20749         * tree-flow.h (stmt_references_abnormal_ssa_name): Declare.
20750         * tree-dfa.c (stmt_references_abnormal_ssa_name): New function.
20751         * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
20752         Only propagate addresses which do not have abnormal SSA_NAMEs
20753         in their operands.
20754
20755 2008-02-15  Joseph Myers  <joseph@codesourcery.com>
20756
20757         PR target/35088
20758         * config/m68k/m68k.h (DWARF_CIE_DATA_ALIGNMENT): Define.
20759
20760 2008-02-15  Jan Hubicka  <jh@suse.cz>
20761
20762         PR middle-end/35149
20763         * ipa.c (cgraph_remove_unreachable_nodes): Clear local.inlinable flag.
20764
20765 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
20766
20767         PR middle-end/34621
20768         * function.c (pad_to_arg_alignment): Remove test for STACK_BOUNDARY
20769         when calculating alignment_pad.
20770
20771 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
20772
20773         * config/i386/i386.h (CLEAR_RATIO): Use MIN macro.
20774         (WIDEST_HARDWARE_FP_SIZE): Use LONG_DOUBLE_TYPE_SIZE define.
20775         * config/i386/darwin.h (PREFERRED_STACK_BOUNDARY): Use MAX macro
20776         and STACK_BOUNDARY define.
20777
20778 2008-02-14  Danny Smith  <dannysmith@users.sourceforge.net>
20779
20780         PR preprocessor/35061
20781         * c-pragma.c (handle_pragma_pop_macro): Check that
20782         pushed_macro_table has been allocated.
20783
20784 2008-02-14  Eric Botcazou  <ebotcazou@adacore.com>
20785
20786         PR middle-end/35136
20787         * gimplify.c (force_gimple_operand_bsi): Revert 2008-02-12 change.
20788         (force_gimple_operand): Likewise.
20789         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Add new cases
20790         for TARGET_MEM_REF and CONVERT_EXPR/NON_LVALUE_EXPR/NOP_EXPR.
20791         Also recurse on the operand for regular VIEW_CONVERT_EXPRs.
20792         (find_interesting_uses_address): Check addressability and alignment
20793         of the base expression only after substituting bases of IVs into it.
20794
20795 2008-02-14  Michael Matz  <matz@suse.de>
20796
20797         PR target/34930
20798         * function.c (instantiate_virtual_regs_in_insn): Reload address
20799         before falling back to reloading the whole operand.
20800
20801 2008-02-14  Andreas Krebbel  <krebbel1@de.ibm.com>
20802
20803         * config/s390/s390.c (s390_mainpool_start): Emit the pool
20804         before the first section switch note.
20805
20806 2008-02-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20807
20808         * doc/bugreport.texi: Update copyright years.
20809         * doc/c-tree.texi: Likewise.
20810         * doc/cfg.texi: Likewise.
20811         * doc/cpp.texi: Likewise.
20812         * doc/cppinternals.texi: Likewise.
20813         * doc/fragments.texi: Likewise.
20814         * doc/frontends.texi: Likewise.
20815         * doc/gcc.texi: Likewise.
20816         * doc/gty.texi: Likewise.
20817         * doc/hostconfig.texi: Likewise.
20818         * doc/implement-c.texi: Likewise.
20819         * doc/libgcc.texi: Likewise.
20820         * doc/loop.texi: Likewise.
20821         * doc/makefile.texi: Likewise.
20822         * doc/options.texi: Likewise.
20823         * doc/passes.texi: Likewise.
20824         * doc/rtl.texi: Likewise.
20825         * doc/sourcebuild.texi: Likewise.
20826         * doc/standards.texi: Likewise.
20827         * doc/tree-ssa.texi: Likewise.
20828         * doc/trouble.texi: Likewise.
20829
20830         * doc/extend.texi: Use @: or add comma where appropriate.
20831         * doc/invoke.texi: Likewise.
20832         * doc/tm.texi: Likewise.
20833
20834 2008-02-14  Alan Modra  <amodra@bigpond.net.au>
20835
20836         PR target/34393
20837         * config/rs6000/rs6000.md (restore_stack_block): Force operands[1]
20838         to a reg.
20839
20840 2008-02-14  Jesper Nilsson  <jesper.nilsson@axis.com>
20841
20842         * doc/md.texi (clz, ctz): Add reference.
20843         * doc/rtl.texi (clz, ctz): Likewise.
20844
20845 2008-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20846
20847         PR other/35148
20848         * Makefile.in (gcc-vers.texi): Use abs_srcdir for the value of
20849         srcdir.
20850
20851 2008-02-13  Andreas Krebbel  <krebbel1@de.ibm.com>
20852
20853         * config/s390/s390.c (struct constant_pool): New field
20854         emit_pool_after added.
20855         (s390_mainpool_start): Set the emit_pool_after flag according
20856         to the section switch notes.
20857         (s390_mainpool_finish): Consider emit_pool_after when emitting
20858         the literal pool at the end of the function.
20859         (s390_chunkify_start): Force literal pool splits at section
20860         switch notes.
20861
20862 2008-02-13  Michael Matz  <matz@suse.de>
20863
20864         PR debug/35065
20865         * var-tracking.c (clobber_variable_part): Correctly traverse the
20866         list.
20867
20868 2008-02-13  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
20869
20870         PR 29673
20871         * doc/invoke.texi (Debugging Options): Remove -fdump-tree-inlined.
20872         Add -fdump-ipa-inline.
20873         * tree-dump.c (dump_files): Remove tree-inlined dump.
20874         * tree-pass.h (tree_dump_index): Remove TDI_inlined.
20875
20876 2008-02-12  Richard Guenther  <rguenther@suse.de>
20877
20878         PR tree-optimization/35171
20879         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Deal with
20880         default defs.
20881
20882 2008-02-12  Richard Guenther  <rguenther@suse.de>
20883
20884         PR middle-end/35163
20885         * fold-const.c (fold_widened_comparison): Use get_unwidened in
20886         value-preserving mode.  Disallow final truncation.
20887
20888 2008-02-12  Eric Botcazou  <ebotcazou@adacore.com>
20889
20890         PR middle-end/35136
20891         * gimplify.c (force_gimple_operand_bsi): Move SSA renaming
20892         code from here to...
20893         (force_gimple_operand): ...here.
20894
20895 2008-02-12  Jakub Jelinek  <jakub@redhat.com>
20896
20897         PR c++/35144
20898         * tree-sra.c (sra_build_assignment): fold_convert SRC if copying
20899         non-compatible pointers.
20900         (generate_element_copy): If SRC and DST are RECORD_TYPEs with
20901         different FIELD_DECLs, try harder by comparing field offsets, sizes
20902         and types.
20903
20904         PR inline-asm/35160
20905         * function.c (match_asm_constraints_1): Don't replace the same input
20906         multiple times.
20907
20908 2008-02-12  Anatoly Sokolov <aesok@post.ru>
20909
20910         * config/avr/avr.h (AVR_HAVE_RAMPZ): Define.
20911         * config/avr/avr.c (expand_prologue): Save RAMPZ register.
20912         (expand_epilogue): Restore RAMPZ register.
20913         * config/avr/avr.md (RAMPZ_ADDR): New constant.
20914
20915 2008-02-11  Kai Tietz  <kai.tietz@onevision.com>
20916
20917         * config/i386/cygwin.asm: (__alloca): Correct calling
20918         convention and alignment.
20919         (__chkstk): Force 8 byte stack alignment.
20920
20921 2008-02-11  Uros Bizjak  <ubizjak@gmail.com>
20922             Richard Guenther  <rguenther@suse.de>
20923
20924         PR tree-optimization/33992
20925         * tree-ssa-loop-im.c (rewrite_bittest): Fixup the type of
20926         the zero we compare against.
20927
20928 2008-02-10  Danny Smith  <dannysmith@users.sourceforge.net>
20929
20930         PR libfortran/35063
20931         * gthr-win32.h (__gthread_mutex_destroy_function): New function
20932         to CloseHandle after unlocking to prevent accumulation of handle
20933         count.
20934
20935 2008-02-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
20936
20937         PR middle_end/34150
20938         * pa.c (legitimize_pic_address): Add REG_EQUAL note on sets with a
20939         pic_label_operand source.  Similarly, add a REG_LABEL_OPERAND note
20940         and update LABEL_NUSES during and after reload.
20941
20942 2008-02-08  Steven Bosscher  <stevenb.gcc@gmail.com>
20943
20944         PR middle-end/34627
20945         * combine.c (simplify_if_then_else): Make sure the comparison is
20946         against const0_rtx when simplifying to (abs x) or (neg (abs X)).
20947
20948 2008-02-08  Richard Sandiford  <rsandifo@nildram.co.uk>
20949
20950         PR bootstrap/35051
20951         * double-int.h: Don't include gmp.h for GENERATOR_FILEs.
20952         (mpz_set_double_int, mpz_get_double_int): Hide from GENERATOR_FILEs.
20953         * real.h: Don't include gmp.h or mpfr.h for GENERATOR_FILEs.
20954         (real_from_mpfr, mpfr_from_real): Hide from GENERATOR_FILEs.
20955         * tree.h (get_type_static_bounds): Likewise.
20956
20957 2008-02-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20958
20959         * doc/invoke.texi (Option Summary, C++ Dialect Options)
20960         (Objective-C and Objective-C++ Dialect Options, Warning Options):
20961         Make -Wfoo language annotations match what the compiler outputs.
20962
20963 2008-02-08  Sa Liu  <saliu@de.ibm.com>
20964
20965         * config/spu/spu-builtins.def: Fixed wrong parameter type in spu
20966         intrinsics spu_convts, spu_convtu, spu_convtf.
20967
20968 2008-02-08  Hans-Peter Nilsson  <hp@axis.com>
20969
20970         * doc/extend.texi (Function Attributes) <noinline>: Mention
20971         asm ("") as method to keep calls.
20972
20973 2008-02-07  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
20974
20975         PR other/32754
20976         * doc/options.texi (Options): Replace references to opts.sh with
20977         optc-gen.awk.
20978         * opts-common.c: Likewise.
20979         * optc-gen.awk: Likewise.
20980
20981 2008-02-07  Andreas Krebbel  <krebbel1@de.ibm.com>
20982
20983         * config/s390/s390.h (FUNCTION_ARG_REGNO_P): Fix fprs for 64 bit.
20984
20985 2008-02-07  Richard Henderson  <rth@redhat.com>
20986
20987         PR rtl-opt/33410
20988         * config/alpha/alpha.c (alpha_emit_xfloating_compare): Use an
20989         EXPR_LIST for the REG_EQUAL instead of a comparison with a
20990         funny mode.
20991
20992 2008-02-07  Uros Bizjak  <ubizjak@gmail.com>
20993
20994         PR tree-optimization/35085
20995         * tree-ssa-reassoc.c (rewrite_expr_tree): Enable destructive update
20996         for operand entry oe2 in addition to operand entry oe3 in order to
20997         expose more opportunities for vectorizer sum reduction.
20998
20999 2008-02-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
21000
21001         PR other/35107
21002         * Makefile.in (LIBS): Remove $(GMPLIBS).
21003         (cc1-dummy, cc1): Add $(GMPLIBS).
21004
21005 2008-02-06  Jan Hubicka  <jh@suse.cz>
21006
21007         PR target/23322
21008         * i386.md (moddf_integer): Do not produce partial memory stalls for
21009         targets where it hurts.
21010
21011 2008-02-06  Uros Bizjak  <ubizjak@gmail.com>
21012
21013         PR target/35083
21014         * optabs.c (expand_float): Do not check for decimal modes when
21015         expanding unsigned integer through signed conversion.
21016
21017 2008-02-06  Nick Clifton  <nickc@redhat.com>
21018
21019         * config/stormy16/stormy16.md (eqbranchsi): Replace a match_dup
21020         inside the clobber with a match_operand and duplicated operand
21021         number in the constraint.
21022         (ineqbranchsi): Delete redundant comment.
21023
21024 2008-02-06  Ralf Corsepius  <ralf.corsepius@rtems.org>
21025
21026         * config/arm/rtems-elf.h (TARGET_OS_CPP_BUILTINS): Add
21027         builtin_define ("__USE_INIT_FINI__").
21028         * config/h8300/t-rtems (MULTILIB_OPTION,MULTILIB_DIRNAMES): Add
21029         -msx multilibs.
21030         * gthr-rtems.h: Remove __GTHREAD_MUTEX_INIT.
21031
21032 2008-02-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21033
21034         PR documentation/30330
21035         * doc/invoke.texi (C++ Dialect Options)
21036         (Objective-C and Objective-C++ Dialect Options, Warning Options):
21037         For each warning option -Wfoo that allows -Wno-foo, ensure both
21038         -Wfoo and -Wno-foo are listed in the option index.  Fix index
21039         entry of -Wswitch-default, index -Wnormalized= including the
21040         `=', and -Wlarger-than-@var{len} including @var{len}.
21041
21042 2008-02-05  Uros Bizjak  <ubizjak@gmail.com>
21043
21044         * config/i386/i386.md (floatunssisf2): Use
21045         ix86_expand_convert_uns_sisf_sse also for TARGET_SSE.
21046         (floatunssi<mode>2): Rename from floatunssisf2 and floatunssidf2.
21047         Macroize expander using MODEF mode iterator.
21048
21049 2008-02-05  Diego Novillo  <dnovillo@google.com>
21050
21051         http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00140.html
21052
21053         PR 33738
21054         * tree-vrp.c (vrp_evaluate_conditional): Revert fix for PR 33738.
21055
21056 2008-02-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
21057
21058         PR other/35070
21059         * toplev.c (print_version): Honor `indent' for GMP/MPFR warnings.
21060
21061 2008-02-05  H.J. Lu  <hongjiu.lu@intel.com>
21062
21063         PR target/35084
21064         * config/i386/i386.c (ix86_function_sseregparm): Add an arg
21065         to indicate if a message should be generated.
21066         (init_cumulative_args): Updated.
21067         (function_value_32): Likewise.
21068
21069 2008-02-05  Joseph Myers  <joseph@codesourcery.com>
21070
21071         * doc/include/texinfo.tex: Update to version 2008-02-04.16.
21072
21073 2008-02-05  Uros Bizjak  <ubizjak@gmail.com>
21074
21075         PR target/35083
21076         * config/i386/i386.md (floatunsisf2): Enable for TARGET_SSE_MATH only.
21077         Call ix86_expand_convert_uns_sisf_sse for TARGET_SSE2.
21078
21079 2008-02-04  Diego Novillo  <dnovillo@google.com>
21080
21081         http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00110.html
21082
21083         PR 33738
21084         * tree-vrp.c (vrp_evaluate_conditional): With
21085         -Wtype-limits, emit a warning when comparing against a
21086         constant outside the natural range of OP0's type.
21087
21088 2008-02-04  Richard Guenther  <rguenther@suse.de>
21089
21090         PR middle-end/33631
21091         * expr.c (count_type_elements): Give for unions instead of
21092         guessing.
21093
21094 2008-02-04  Richard Guenther  <rguenther@suse.de>
21095
21096         PR middle-end/35043
21097         * gimplify.c (gimplify_init_ctor_eval): Convert array indices
21098         to TYPE_DOMAINs base type instead of using bitsizetype here.
21099
21100 2008-02-03  Jason Merrill  <jason@redhat.com>
21101
21102         * print-tree.c (print_node) [CONSTRUCTOR]: Print elements.
21103
21104 2008-02-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21105
21106         PR other/29972
21107         * doc/invoke.texi (C++ Dialect Options, Optimize Options)
21108         (HPPA Options, i386 and x86-64 Options, IA-64 Options)
21109         (RS/6000 and PowerPC Options): Fix typos and markup.
21110         * doc/passes.texi (Tree-SSA passes): Likewise.
21111
21112 2008-02-02  Michael Matz  <matz@suse.de>
21113
21114         PR target/35045
21115         * postreload-gcse.c (record_last_reg_set_info_regno): Renamed
21116         from record_last_reg_set_info.
21117         (record_last_reg_set_info): Take an RTX argument, iterate over all
21118         constituent hardregs.
21119         (record_last_set_info, record_opr_changes): Change calls to
21120         new signature or to record_last_reg_set_info_regno.
21121
21122 2008-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
21123
21124         * doc/extend.texi (X86 Built-in Functions): Fix grammar.
21125
21126 2008-02-01  Hans-Peter Nilsson  <hp@axis.com>
21127
21128         PR rtl-optimization/34773
21129         * reg-notes.def (EQUAL): Mention significance of combination of
21130         REG_EQUAL and REG_RETVAL.
21131         * fwprop.c (try_fwprop_subst): Don't add REG_EQUAL to an
21132         insn that has a REG_RETVAL.
21133
21134 2008-02-01  Roger Sayle  <roger@eyesopen.com>
21135
21136         PR bootstrap/33781
21137         * configure.ac (--enable-fixed-point): Disable unless explicitly
21138         requested on IRIX.
21139         * configure: Regenerate.
21140
21141 2008-02-01  Richard Guenther  <rguenther@suse.de>
21142
21143         PR other/35042
21144         * invoke.texi (-finline-limit): Remove no longer true parts
21145         of the documentation.  Note that there is no default value.
21146
21147 2008-02-01  Andrew Pinski  <pinskia@gmail.com>
21148             Mark Mitchell  <mark@codesourcery.com>
21149             Ben Elliston  <bje@au.ibm.com>
21150
21151         PR c/29326
21152         * doc/extend.texi (Other Builtins): Document.
21153
21154 2008-01-31  Tom Browder <tom.browder@gmail.com>
21155
21156         * doc/c-tree.texi (Types): Fix grammar.
21157         (Expression trees): Ditto.
21158         * doc/passes.texi (Tree-SSA passes): Ditto.
21159
21160         * doc/configterms.texi (Configure Terms): Fix typo.
21161         * doc/cpp.texi (Common Predefined Macros): Ditto.
21162         * doc/md.texi (Machine Constraints): Ditto.
21163
21164         * doc/makefile.texi (Makefile): Add comma.
21165
21166 2008-01-31  Tom Browder  <tom.browder@gmail.com>
21167             Gerald Pfeifer  <gerald@pfeifer.com>
21168
21169         * doc/sourcebuild.texi (Front End): Remove references to CVS
21170         and CVSROOT/modules.
21171         (Texinfo Manuals): Replace reference to CVS by one to SVN.
21172         (Back End): Remove reference to CVS.
21173
21174 2008-01-31  Richard Sandiford  <rsandifo@nildram.co.uk>
21175
21176         PR target/34900
21177         * config/mips/mips.c (gen_load_const_gp): New function, taking a
21178         comment from...
21179         (mips16_gp_pseudo_reg): ...here.
21180         * config/mips/mips.md (load_const_gp): Replace with...
21181         (load_const_gp_<mode>): ...this :P-based insn.
21182
21183 2008-01-31  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
21184
21185         * doc/invoke.texi (-ansi): Mention explicitly corresponding -std=
21186         options. Minor fixes.
21187         (-std): Move reference to standards closer to where language
21188         standards are first mentioned.
21189
21190 2008-01-31  Richard Sandiford  <rsandifo@nildram.co.uk>
21191
21192         PR rtl-optimization/34995
21193         * reload.c (alternative_allows_const_pool_ref): Take an rtx
21194         parameter and return a bool.  If the rtx parameter is nonnull,
21195         check that it satisfies an EXTRA_MEMORY_CONSTRAINT.
21196         (find_reloads): Update call accordingly.  Pass the new operand
21197         if it needed no address reloads, otherwise pass null.
21198
21199 2008-01-30  Richard Henderson  <rth@redhat.com>
21200
21201         PR c/34993
21202         * tree.c (build_type_attribute_qual_variant): Skip TYPE_DOMAIN
21203         for unbounded arrays.
21204
21205 2008-01-30  Silvius Rus  <rus@google.com>
21206
21207         * config/i386/xmmintrin.h (_mm_prefetch): Add const to first arg.
21208
21209 2008-01-30  Jan Hubicka  <jh@suse.cz>
21210
21211         PR target/34982
21212         * i386.c (init_cumulative_args): Use real function declaration when
21213         calling locally.
21214
21215 2008-01-30  Richard Sandiford  <rsandifo@nildram.co.uk>
21216
21217         PR rtl-optimization/34998
21218         * global.c (build_insn_chain): Treat non-subreg_lowpart
21219         SUBREGs of pseudos as clobbering all the words covered by the
21220         SUBREG, not just all the bytes.
21221         * ra-conflict.c (clear_reg_in_live): Likewise.  Take the
21222         original df_ref rather than an extract parameter.
21223         (global_conflicts): Update call accordingly.
21224
21225 2008-01-30  Andreas Krebbel  <krebbel1@de.ibm.com>
21226
21227         * config/s390/fixdfdi.h (__fixunstfdi, __fixtfdi): Rearrange
21228         the overflow check to make it easier to read.
21229         (__fixtfdi): Change the type of the ll member in union
21230         long_double to UDItype_x.
21231
21232 2008-01-30  Jakub Jelinek  <jakub@redhat.com>
21233
21234         PR middle-end/34969
21235         * cgraph.h (cgraph_update_edges_for_call_stmt): New prototype.
21236         * cgraph.c (cgraph_update_edges_for_call_stmt): New function.
21237         * tree-inline.c (fold_marked_statements): Call
21238         cgraph_update_edges_for_call_stmt if folding a call statement.
21239         * cgraphunit.c (verify_cgraph_node): Set cfun to this_cfun for
21240         debug_generic_stmt calls, reset it back afterwards.
21241
21242         PR c/35017
21243         * c-decl.c (start_decl): Don't pedwarn about TREE_READONLY
21244         static decls.
21245         * c-typeck.c (build_external_ref): Don't pedwarn about
21246         static vars in current function's scope.
21247
21248 2008-01-29  Joseph Myers  <joseph@codesourcery.com>
21249
21250         * config.gcc (i[34567]86-*-nto-qnx*): Remove deprecation.
21251
21252 2008-01-29  Bernhard Fischer  <aldot@gcc.gnu.org>
21253
21254         PR c/35002
21255         * ipa-struct-reorg.c: Fix spelling.
21256         * params.def: Ditto.
21257
21258 2008-01-29  Richard Guenther  <rguenther@suse.de>
21259
21260         PR middle-end/35006
21261         * tree-inline.h (struct copy_body_data): Add remapping_type_depth
21262         field.
21263         * tree-inline.c (remap_type): Increment remapping_type_depth
21264         around remapping types.
21265         (copy_body_r): Only add referenced variables if they are referenced
21266         from code, not types.
21267
21268 2008-01-29  Douglas Gregor  <doug.gregor@gmail.com>
21269
21270         PR c++/34055
21271         PR c++/34103
21272         PR c++/34219
21273         PR c++/34606
21274         PR c++/34753
21275         PR c++/34754
21276         PR c++/34755
21277         PR c++/34919
21278         PR c++/34961
21279         * c-pretty-print.c (pp_c_type_qualifier_list): Don't try to print
21280         qualifiers for an ERROR_MARK_NODE or a NULL_TREE.
21281
21282 2008-01-28  Andy Hutchinson   <hutchinsonandy@netscape.net>
21283
21284         PR target/34412
21285         * config/avr/avr.c (expand_prologue): Use correct QI mode frame
21286         pointer for tiny stack.
21287
21288 2008-01-28  Bernhard Fischer  <aldot@gcc.gnu.org>
21289
21290         * doc/tree-ssa.texi: Add cindex PHI nodes and improve wording.
21291
21292 2008-01-28  Bernhard Fischer  <aldot@gcc.gnu.org>
21293
21294         * config/vx-common.h: Fix typo in comment.
21295
21296 2008-01-28  Ian Lance Taylor  <iant@google.com>
21297
21298         PR c++/34862
21299         PR c++/33407
21300         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
21301         coalesce pointers if they have different DECL_NO_TBAA_P values.
21302         * tree-ssa-copy.c (may_propagate_copy): Don't propagate copies
21303         between variables with different DECL_NO_TBAA_P values.
21304
21305 2008-01-28  Nathan Froyd  <froydnj@codesourcery.com>
21306
21307         PR 31535
21308         * config/rs6000/rs6000.c (small_data_operand): Vectors and floats
21309         are not legitimate small data references on SPE targets.
21310
21311 2008-01-28  David Daney  <ddaney@avtrex.com>
21312
21313         * doc/install.texi (mips-*-*): Recommend binutils 2.18.
21314
21315 2008-01-28  David Daney  <ddaney@avtrex.com>
21316
21317         * doc/install.texi (--disable-libgcj-bc):  Reword documentation.
21318
21319 2008-01-27  Joseph Myers  <joseph@codesourcery.com>
21320
21321         * config.gcc (strongarm*-*, ep9312*-*, xscale*-*, parisc*-*,
21322         m680[012]0-*, *-*-beos*, *-*-kaos*, *-*-linux*aout*,
21323         *-*-linux*libc1*, *-*-solaris2.[0-6], *-*-solaris2.[0-6].*,
21324         *-*-sysv*, *-*-windiss*, alpha*-*-unicosmk*, cris-*-aout,
21325         hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
21326         i[34567]86-sequent-ptx4*, i[34567]86-*-nto-qnx*,
21327         i[34567]86-*-sco3.2v5*, i[34567]86-*-uwin*, powerpc-*-chorusos*,
21328         vax-*-bsd*, vax-*-ultrix*): Mark obsolete.
21329
21330 2008-01-27  Bernhard Fischer  <aldot@gcc.gnu.org>
21331
21332         * basic-block.h (condjump_equiv_p): Fix comment.
21333
21334 2008-01-27  Bernhard Fischer  <aldot@gcc.gnu.org>
21335
21336         * tree-pretty-print.c (print_generic_decl, print_generic_stmt,
21337         print_generic_stmt_indented): Fix comment.
21338
21339 2008-01-27  Bernhard Fischer  <aldot@gcc.gnu.org>
21340
21341         * configure.ac (__stack_chk_fail): Add detecion for availability
21342         of SSP in uClibc by checking if __UCLIBC_HAS_SSP__ is defined.
21343         * configure: Regenerate.
21344
21345 2008-01-26  Maxim Kuvyrkov  <maxim@codesourcery.com>
21346
21347         PR middle-end/34688
21348         * final.c (output_addr_const): Handle TRUNCATE.
21349
21350 2008-01-26  Zdenek Dvorak  <ook@ucw.cz>
21351
21352         PR target/34711
21353         * tree-ssa-loop-ivopts.c (comp_cost): New type.
21354         (zero_cost, infinite_cost): New constants.
21355         (struct cost_pair): Change type of cost to comp_cost.
21356         (struct iv_ca): Change type of cand_use_cost and cost to comp_cost.
21357         (new_cost, add_costs, sub_costs, compare_costs, infinite_cost_p):
21358         New functions.
21359         (set_use_iv_cost, force_expr_to_var_cost, force_var_cost,
21360         split_address_cost, ptr_difference_cost, difference_cost,
21361         get_computation_cost_at, get_computation_cost,
21362         determine_use_iv_cost_generic, determine_use_iv_cost_address,
21363         determine_use_iv_cost_condition, determine_use_iv_costs,
21364         cheaper_cost_pair, iv_ca_recount_cost, iv_ca_set_no_cp,
21365         iv_ca_set_cp, iv_ca_cost, iv_ca_new, iv_ca_dump, iv_ca_extend,
21366         iv_ca_narrow, iv_ca_prune, try_improve_iv_set, find_optimal_iv_set):
21367         Change type of cost to comp_cost.
21368         (determine_iv_cost): Increase cost of non-original ivs, instead
21369         of decreasing the cost of original ones.
21370         (get_address_cost): Indicate the complexity of the addressing mode
21371         in comp_cost.
21372         (try_add_cand_for): Prefer using ivs not specific to some object.
21373         * tree-flow.h (force_expr_to_var_cost): Declaration removed.
21374
21375 2008-01-26  Peter Bergner  <bergner@vnet.ibm.com>
21376             Janis Johnson  <janis187@us.ibm.com>
21377
21378         PR target/34814
21379         * doc/tm.texi (TARGET_EXPAND_TO_RTL_HOOK): Document.
21380         (TARGET_INSTANTIATE_DECLS): Likewise.
21381         * target.h (expand_to_rtl_hook): New target hook.
21382         (instantiate_decls): Likewise.
21383         * function.c (instantiate_decl): Make non-static.  Rename to...
21384         (instantiate_decl_rtl): ... this.
21385         (instantiate_expr): Use instantiate_decl_rtl.
21386         (instantiate_decls_1): Likewise.
21387         (instantiate_decls): Likewise.
21388         (instantiate_virtual_regs: Call new instantiate_decls taget hook.
21389         * function.h (instantiate_decl_rtl): Add prototype.
21390         * cfgexpand.c (target.h): New include.
21391         (tree_expand_cfg): Call new expand_to_rtl_hook target hook.
21392         * target-def.h (TARGET_EXPAND_TO_RTL_HOOK): New define.
21393         (TARGET_INSTANTIATE_DECLS): Likewise.
21394         (TARGET_INITIALIZER): New target hooks added.
21395         * config/rs6000/rs6000-protos.h (rs6000_secondary_memory_needed_rtx):
21396         New prototype.
21397         * config/rs6000/rs6000.c (tree-flow.h): New include.
21398         (machine_function): Add sdmode_stack_slot field.
21399         (rs6000_alloc_sdmode_stack_slot): New function.
21400         (rs6000_instantiate_decls): Likewise.
21401         (rs6000_secondary_memory_needed_rtx): Likewise.
21402         (rs6000_check_sdmode): Likewise.
21403         (TARGET_EXPAND_TO_RTL_HOOK): Target macro defined.
21404         (TARGET_INSTANTIATE_DECLS): Likewise.
21405         (rs6000_hard_regno_mode_ok): Allow SDmode.
21406         (num_insns_constant): Likewise.  Handle _Decimal32 constants.
21407         (rs6000_emit_move): Handle SDmode.
21408         (function_arg_advance): Likewise.
21409         (function_arg): Likewise.
21410         (rs6000_gimplify_va_arg): Likewise.  Add special handling of
21411         SDmode var args for 32-bit compiles.
21412         (rs6000_secondary_reload_class): Handle SDmode.
21413         (rs6000_output_function_epilogue): Likewise.
21414         (rs6000_function_value): Simplify if statement.
21415         (rs6000_libcall_value): Likewise.
21416         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Handle SDmode.
21417         (SECONDARY_MEMORY_NEEDED_RTX): Add define.
21418         * config/rs6000/dfp.md (movsd): New define_expand and splitter.
21419         (movsd_hardfloat): New define_insn.
21420         (movsd_softfloat): Likewise.
21421         (movsd_store): Likewise.
21422         (movsd_load): Likewise.
21423         (extendsddd2): Likewise.
21424         (extendsdtd2): Likewise.
21425         (truncddsd2): Likewise.
21426         (movdd_hardfloat64): Fixup comment.
21427         (UNSPEC_MOVSD_LOAD): New constant.
21428         (UNSPEC_MOVSD_STORE): Likewise.
21429
21430 2008-01-26  Jakub Jelinek  <jakub@redhat.com>
21431
21432         PR c++/34965
21433         * c-pretty-print.c (pp_c_exclusive_or_expression): Handle
21434         TRUTH_XOR_EXPR.
21435         (pp_c_logical_and_expression): Handle TRUTH_AND_EXPR.
21436         (pp_c_logical_or_expression): Handle TRUTH_OR_EXPR.
21437         (pp_c_expression): Handle TRUTH_AND_EXPR, TRUTH_OR_EXPR
21438         and TRUTH_XOR_EXPR.
21439
21440 2008-01-26  David Edelsohn  <edelsohn@gnu.org>
21441
21442         PR target/34794
21443         * config.gcc: Separate AIX 5.3 from AIX 6.1.
21444         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
21445         __LONGDOUBLE128 too.
21446         * config/rs6000/aix61.h: New file.
21447
21448 2008-01-26  Richard Sandiford  <rsandifo@nildram.co.uk>
21449
21450         PR rtl-optimization/34959
21451         * optabs.c (expand_unop): In libcall notes, give ffs, clz, ctz,
21452         popcount and parity rtxes the same mode as their operand.
21453         Truncate or extend the result to the return value's mode
21454         if necessary.
21455
21456 2008-01-26  Richard Sandiford  <rsandifo@nildram.co.uk>
21457
21458         PR target/34981
21459         * config/mips/mips-protos.h (mips_expand_call): Return an rtx.
21460         * config/mips/mips.h (FIRST_PSEUDO_REGISTER): Rename FAKE_CALL_REGNO
21461         to GOT_VERSION_REGNUM.
21462         (CALL_REALLY_USED_REGISTERS): Set the GOT_VERSION_REGNUM entry to 0.
21463         (EPILOGUE_USES): Include GOT_VERSION_REGNUM if TARGET_USE_GOT.
21464         * config/mips/mips.c (mips_emit_call_insn): New function.
21465         (mips_call_tls_get_addr): Call mips_expand_call directly.
21466         (mips16_copy_fpr_return_value): Use mips_emit_call_insn rather than
21467         emit_call_insn.
21468         (mips16_build_call_stub): Likewise.  Return the call insn or null.
21469         (mips_expand_call): Update the call to mips16_build_call_stub
21470         accordingly and a remove redundant condition.  Assert that MIPS16
21471         stubs do not use lazy binding.  Use mips_emit_call_insn and return
21472         the call insn.
21473         (mips_extra_live_on_entry): Include GOT_VERSION_REGNUM if
21474         TARGET_USE_GOT.
21475         (mips_hard_regno_mode_ok_p): Allow SImode for GOT_VERSION_REGNUM.
21476         (mips_avoid_hazard): Remove hazard_set handling.
21477         * config/mips/mips.md (UNSPEC_EH_RECEIVER): Rename to...
21478         (UNSPEC_RESTORE_GP): ...this.
21479         (UNSPEC_SET_GOT_VERSION, UNSPEC_UPDATE_GOT_VERSION): New constants.
21480         (FAKE_CALL_REGNO): Rename to...
21481         (GOT_VERSION_REGNUM): ...this.
21482         (type): Add "ghost" value.  Add an associated insn reservation.
21483         (hazard_set): Remove.
21484         (exception_receiver): Rename to...
21485         (restore_gp): ...this and update the unspec identifier accordingly.
21486         (exception_receiver, nonlocal_got_receiver): New expanders.
21487         (load_call<mode>): Use GOT_VERSION_REGNUM.  Don't set
21488         FAKE_CALL_REGNO.  Remove hazard_set attribute.
21489         (set_got_version, update_got_version): New patterns.
21490
21491 2008-01-26  Danny Smith  <dannysmith@users.sourceforge.net>
21492
21493         PR target/34970
21494         * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Define.
21495
21496 2008-01-25  Joseph Myers  <joseph@codesourcery.com>
21497
21498         PR other/31955
21499         * doc/install.texi2html: Generate gcc-vers.texi.
21500
21501 2008-01-25  DJ Delorie  <dj@redhat.com>
21502
21503         * config/m32c/m32c.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
21504
21505 2008-01-25  Joseph Myers  <joseph@codesourcery.com>
21506
21507         * config/c4x: Remove directory.
21508         * config.gcc (crx-*, mt-*): Mark obsolete.
21509         (c4x-*, tic4x-*, c4x-*-rtems*, tic4x-*-rtems*, c4x-*, tic4x-*,
21510         h8300-*-rtemscoff*, ns32k-*-netbsdelf*, ns32k-*-netbsd*,
21511         sh-*-rtemscoff*): Remove cases.
21512         * defaults.h (C4X_FLOAT_FORMAT): Remove.
21513         * real.c (encode_c4x_single, decode_c4x_single,
21514         encode_c4x_extended, decode_c4x_extended, c4x_single_format,
21515         c4x_extended_format): Remove.
21516         * real.h (c4x_single_format, c4x_extended_format): Remove.
21517         * doc/extend.texi (interrupt, naked): Remove mention of attributes
21518         on C4x.
21519         (Pragmas): Remove comment about c4x pragmas.
21520         * doc/install.texi (c4x): Remove target-specific instructions.
21521         * doc/invoke.texi (TMS320C3x/C4x Options): Remove.
21522         * doc/md.texi (Machine Constraints): Remove C4x documentation.
21523         * doc/tm.texi (MEMBER_TYPE_FORCES_BLK, c_register_pragma): Do not
21524         refer to C4x source files as examples.
21525         (C4X_FLOAT_FORMAT): Remove documentation.
21526
21527 2008-01-25  Bernd Schmidt  <bernd.schmidt@analog.com>
21528
21529         * config/bfin/bfin.c (override_options): Reorder tests so that
21530         flag_pic gets enabled for -msep-data.
21531
21532 2008-01-25  Richard Guenther  <rguenther@suse.de>
21533
21534         PR middle-end/32244
21535         * expr.c (expand_expr_real_1): Reduce result of LSHIFT_EXPR
21536         to its bitfield precision if required.
21537
21538 2008-01-25  Jakub Jelinek  <jakub@redhat.com>
21539
21540         PR middle-end/33880
21541         * tree-nested.c (walk_omp_for): New function.
21542         (convert_nonlocal_reference, convert_local_reference): Call
21543         walk_omp_for on OMP_FOR.
21544         (convert_call_expr): Call walk_body on OMP_FOR's
21545         OMP_FOR_PRE_INIT_BODY.
21546
21547 2008-01-25  Richard Guenther  <rguenther@suse.de>
21548
21549         PR tree-optimization/34966
21550         * tree-ssa-math-opts.c (execute_cse_sincos_1): For all but
21551         default defs and PHI_NODEs we have to insert after the
21552         defining statement.
21553
21554 2008-01-24  Nick Clifton  <nickc@redhat.com>
21555
21556         * config/stormy16/stormy16-lib2.c (MIN_UNITS_PER_WORD):
21557         Provide a default definition.
21558         (LIBGCC2_UNITS_PER_WORD): Likewise.
21559
21560         * config/stormy16/stormy16.c: Include df.h for the prototype
21561         for df_regs_ever_live_p.
21562         (xstormy16_expand_builtin_va_start): Convert the stack offset
21563         into a component_ref and then use POINTER_PLUS_EXPR to add it
21564         to the incoming_virtual_args_rtx.
21565         (xstormy16_gimplify_va_arg_expr): Rename to
21566         xstormy16_gimplify_va_arg_expr.
21567         Use POINTER_PLUS_EXPR when performing pointer arithmetic.
21568         (TARGET_GIMPLIFY_VA_ARG_EXPR): Use renamed
21569         xstormy16_gimplify_va_arg_expr.
21570         Fix up some formatting issues.
21571
21572         * config/stormy16/stormy16.c: (xstormy16_carry_plus_operand):
21573         Move to predicates.md.
21574         (xs_hi_general_operand): Likewise.
21575         (xs_hi_nonmemory_operand): Likewise.
21576         * config/stormy16/predicates.md:
21577         (xstormy16_carry_plus_operand): New predicate.
21578         (xs_hi_general_operand): New predicate.
21579         (xs_hi_nonmemory_operand): New predicate.
21580         * config/stormy16/stormy16-protos.h:
21581         (xstormy16_carry_plus_operand): Delete prototype.
21582         (xs_hi_general_operand): Likewise.
21583         (xs_hi_nonmemory_operand): Likewise.
21584
21585         * config/storm16/stormy16.md (addhi3): Remove earlyclobber
21586         modifiers as they are no longer needed and they can trigger
21587         reload spill failures.
21588
21589         * config/storm16/stormy16.md (ineqbranchsi): Replace match_dup
21590         with a match_operand in order to help reload.
21591
21592         * config/storm16/stormy16.md (movhi_internal): Replace 'r'
21593         constraint with 'e' for the 8th alternative as this version of
21594         the mov.w instruction only accepts the lower 8 registers.
21595
21596 2008-01-25  Uros Bizjak  <ubizjak@gmail.com>
21597
21598         PR target/34856
21599         * simplifx-rtx.c (simplify_const_binary_operation) [VEC_CONCAT]:
21600         Consider only CONST_INT, CONST_DOUBLE and CONST_FIXED as constant
21601         vector elements.
21602
21603 2008-01-25  Jakub Jelinek  <jakub@redhat.com>
21604
21605         PR middle-end/33333
21606         * gimplify.c (gimplify_omp_for): Gimplify OMP_FOR_PRE_BODY.
21607
21608 2008-01-25  Golovanevsky Olga  <olga@il.ibm.com>
21609
21610         * ipa-struct-reorg.c (remove_str_allocs_in_func, remove_str_allocs):
21611         New functions.
21612         (remove_structure): Update allocations list before removing structure.
21613
21614 2008-01-25  Golovanevsky Olga  <olga@il.ibm.com>
21615
21616         * ipa-struct-reorg.c (is_safe_cond_expr,
21617         create_new_stmts_for_cond_expr): Use integer_zerop function,
21618         that recognize not only zero-pointer, but zero-integer too.
21619
21620 2008-01-25  Ben Elliston  <bje@au.ibm.com>
21621
21622         PR other/22232
21623         * fixproto: Escape "." in sed expression that strips leading "./".
21624
21625 2008-01-24  H.J. Lu  <hongjiu.lu@intel.com>
21626
21627         PR driver/34904
21628         * gcc.c (SWITCH_OK): Removed.
21629         (SWITCH_LIVE): Changed to bit.
21630         (SWITCH_FALSE): Likewise.
21631         (SWITCH_IGNORE): Likewise.
21632         (switchstr): Change live_cond to unsigned int.
21633         (process_command): Replace SWITCH_OK with 0.
21634         (do_self_spec): Likewise.
21635         (set_collect_gcc_options): Check the SWITCH_IGNORE bit.
21636         (give_switch): Likewise.
21637         (used_arg): Likewise.
21638         (do_spec_1): Set the SWITCH_IGNORE bit.
21639         (check_live_switch): Check both SWITCH_LIVE and SWITCH_FALSE
21640         bits.  Set the SWITCH_LIVE bit.
21641
21642 2008-01-24  Andreas Krebbel  <krebbel1@de.ibm.com>
21643
21644         * config/s390/s390.h (MOVE_RATIO): Define new target macro.
21645
21646 2008-01-24  Richard Sandiford  <rsandifo@nildram.co.uk>
21647
21648         PR tree-optimization/34472
21649         * ipa-struct-reorg.c (safe_cond_expr_check): Change the DATA
21650         parameter to a "bool *" and set *DATA to false if there is
21651         an unsafe access.  Do not delete the structure here.
21652         (check_cond_exprs): Delete it here instead.
21653         (check_cond_exprs, exclude_cold_structs): Do not increase
21654         I when removing a structure.
21655
21656 2008-01-24  Uros Bizjak  <ubizjak@gmail.com>
21657
21658         PR target/34856
21659         * config/i386/i386.c (ix86_expand_vector_init): Consider only
21660         CONST_INT, CONST_DOUBLE and CONST_FIXED as constant vector elements.
21661
21662 2008-01-24  Jakub Jakub Jelinek  <jakub@redhat.com>
21663
21664         PR middle-end/34934
21665         * tree-stdarg.c (reachable_at_most_once): Use VEC vector instead of
21666         a fixed vector for stack.
21667
21668 2008-01-24  Ben Elliston  <bje@au.ibm.com>
21669
21670         PR c++/25701
21671         * doc/gcc.texi (Software development): Add a direntry for g++.
21672
21673 2008-01-23  Hans-Peter Nilsson  <hp@axis.com>
21674
21675         * config/cris/cris.h (CC1PLUS_SPEC, OPTIMIZATION_OPTIONS): Drop
21676         stale and straggling -fforce-addr comments above.
21677
21678         * config/cris/cris.h (CRIS_SUBTARGET_VERSION, TARGET_VERSION): Don't
21679         define.
21680         * config/cris/linux.h (CRIS_SUBTARGET_VERSION): Don't define.
21681         * config/cris/aout.h (CRIS_SUBTARGET_VERSION): Don't define.
21682
21683 2008-01-23  Michael Matz  <matz@suse.de>
21684
21685         PR debug/34895
21686         * dwarf2out.c (force_type_die): Use modified_type_die instead of
21687         gen_type_die.
21688
21689 2008-01-23  Andreas Krebbel  <krebbel1@de.ibm.com>
21690
21691         * ipa-struct-reorg.c (create_new_malloc): Use pointer type as
21692         malloc result type.
21693
21694 2008-01-23 Anatoly Sokolov <aesok@post.ru>
21695
21696         * config/avr/avr.c (avr_current_arch): New variable.
21697         (avr_arch_types): Add 'avr31' and 'avr51' entries.
21698         (avr_arch): Add 'ARCH_AVR31' and 'ARCH_AVR51'.
21699         (avr_mcu_types): Add 'avr31' and 'avr51' architectures.
21700         (avr_override_options): Init 'avr_current_arch'.
21701         (base_arch_s): Move from here...
21702         * config/avr/avr.h (base_arch_s): ... here. Add new members
21703         'have_elpm', 'have_elpmx', 'have_eijmp_eicall', 'reserved'. Rename
21704         'mega' to 'have_jmp_call'.
21705         (TARGET_CPU_CPP_BUILTINS): Define "__AVR_HAVE_JMP_CALL__",
21706         "__AVR_HAVE_RAMPZ__", "__AVR_HAVE_ELPM__" and "__AVR_HAVE_ELPMX__"
21707         macros.
21708         (LINK_SPEC, CRT_BINUTILS_SPECS, ASM_SPEC): Add 'avr31' and 'avr51'
21709         architectures.
21710         * config/avr/t-avr (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
21711         MULTILIB_MATCHES): Ditto.
21712
21713 2008-01-23  Richard Guenther  <rguenther@suse.de>
21714
21715         PR middle-end/31529
21716         * cgraphunit.c (cgraph_reset_node): Always mark the node
21717         not reachable if it is not queued already.
21718
21719 2008-01-23  Bernd Schmidt  <bernd.schmidt@analog.com>
21720
21721         * config/bfin/bfin-protos.h (WA_RETS, ENABLE_WA_RETS): New macros.
21722         * config/bfin/bfin.c (bfin_cpus): Add WA_RETS everywhere.
21723         (cputype_selected): New static variable.
21724         (bfin_handle_option): Set it if -mcpu is used.
21725         (override_option): Select default set of workarounds if no cpu type
21726         selected on the command line.
21727         (workaround_rts_anomaly): Only run if ENABLE_WA_RETS.
21728
21729         From  Michael Frysinger  <michael.frysinger@analog.com>
21730         * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add
21731         BFIN_CPU_BF547, BFIN_CPU_BF523, BFIN_CPU_BF524, and BFIN_CPU_BF526.
21732
21733         * config/bfin/elf.h (LIB_SPEC): Use proper linker script
21734         for bf547, bf523, bf524, and bf526.
21735         * config/bfin/bfin.c (bfin_cpus[]): Add bf547,  bf523, bf524, and
21736         bf526.
21737         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
21738         __ADSPBF523__ for bf523, __ADSPBF524__ for bf524,
21739         __ADSPBF526__ for bf526, __ADSPBF52x__ for all three, as well as
21740         __ADSPBF547__ and __ADSPBF54x__ for bf547.
21741         * doc/invoke.texi (Blackfin Options): Document that
21742         -mcpu now accept bf547, bf523, bf524, and bf526.
21743
21744 2008-01-22  Eric Botcazou  <ebotcazou@adacore.com>
21745
21746         PR rtl-optimization/34628
21747         * combine.c (try_combine): Stop and undo after the first combination
21748         if an autoincrement side-effect on the first insn has effectively
21749         been lost.
21750
21751 2008-01-22  David Edelsohn  <edelsohn@gnu.org>
21752
21753         PR target/34529
21754         * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
21755         Offset addresses are not valid for Altivec or paired float modes.
21756
21757 2008-01-22  Jakub Jelinek  <jakub@redhat.com>
21758
21759         PR c++/34607
21760         * c-parser.c (c_parser_omp_for_loop): Don't call c_finish_omp_for
21761         if DECL_INITIAL (decl) is error_mark_node.
21762
21763         PR c++/34914
21764         * c-common.c (handle_vector_size_attribute): Only allow
21765         integral, scalar float and fixed point types.  Handle OFFSET_TYPE
21766         the same way as pointer, array etc. types.
21767         * tree.c (reconstruct_complex_type): Handle OFFSET_TYPE.
21768
21769         PR c++/34917
21770         * tree.c (build_type_attribute_qual_variant): Call
21771         build_qualified_type if attributes are equal, but quals are not.
21772
21773 2008-01-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
21774
21775         PR 32102
21776         * doc/invoke.texi (-Wall): -Wall enables -Wstrict-overflow=1.
21777         * flags.h (warn_strict_aliasing): Remove.
21778         (warn_strict_overflow): Remove.
21779         * opts.c (warn_strict_aliasing): Remove.
21780         (warn_strict_overflow): Remove.
21781         * c-opts.c (c_common_handle_option): -Wall only sets
21782         -Wstrict-aliasing or -Wstrict-overflow if they are uninitialized.
21783         (c_common_post_options): Give default values to -Wstrict-aliasing
21784         and -Wstrict-overflow if they are uninitialized.
21785         * common.opt (Wstrict-aliasing): Specify Var and Init.
21786         (Wstrict-overflow): Likewise.
21787
21788 2008-01-22  Kenneth Zadeck  <zadeck@naturalbridge.com>
21789
21790         PR rtl-optimization/26854
21791         PR rtl-optimization/34400
21792         PR rtl-optimization/34884
21793         * ddg.c (create_ddg_dep_from_intra_loop_link): Use
21794         DF_RD->gen.
21795         * df.h (df_changeable_flags.DF_RD_NO_TRIM): Deleted
21796         (df_rd_bb_info.expanded_lr_out): Deleted
21797         * loop_invariant.c (find_defs): Deleted DF_RD_NO_TRIM flag.
21798         * loop_iv.c (iv_analysis_loop_init): Ditto.  * df-problems.c
21799         (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
21800         df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
21801         Removed code to allocate, initialize or free expanded_lr_out.
21802         (df_rd_bb_local_compute_process_def): Restructured to make more
21803         understandable.
21804         (df_rd_confluence_n): Removed code to no apply invalidate_by_call
21805         sets if the sets are being trimmed.
21806
21807 2008-01-22  H.J. Lu  <hongjiu.lu@intel.com>
21808
21809         PR bootstrap/32287
21810         * configure.ac (ld_vers): Support GNU linker version xx.xx.*
21811         (as_vers): Likewise.
21812         * configure: Regenerated.
21813
21814 2008-01-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
21815
21816         PR middle-end/33092
21817         * tree-pass.h (pass_build_alias): New pass.
21818         * tree-ssa-alias.c (gate_build_alias): New.
21819         (pass_build_alias): New.
21820         * passes.c (init_optimization_passes): Add pass_build_alias after
21821         pass_create_structure_vars.
21822
21823 2008-01-22  Wolfgang Gellerich  <gellerich@de.ibm.com>
21824
21825         * config/s390/s390.h (S390_TDC_POSITIVE_NORMALIZED_NUMBER):
21826         Renamed to S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER.
21827         (S390_TDC_NEGATIVE_NORMALIZED_NUMBER): Renamed to
21828         S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER.
21829         (S390_TDC_POSITIVE_DENORMALIZED_NUMBER): Renamed to
21830         S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER.
21831         (S390_TDC_NEGATIVE_DENORMALIZED_NUMBER): Renamed to
21832         S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER.
21833         (S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER): New constant.
21834         (S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER): New constant.
21835         (S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER): New constant.
21836         (S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER): New constant.
21837         * config/s390/s390.md (FP_ALL): New mode iterator.
21838         (_d): New mode attribute.
21839         ("*signbit<mode>2>"): Changed mode of first operand.
21840         ("isinf<mode>2"): Changed mode of first operand.
21841         ("*TDC_insn"): Adaptation for DFP modes.
21842
21843 2008-01-22  Ben Elliston  <bje@au.ibm.com>
21844
21845         * tree.c (check_qualified_type): Improve function description.
21846
21847 2008-01-21  Jason Merrill  <jason@redhat.com>
21848
21849         PR c++/34196
21850         * tree.h (TRY_CATCH_IS_CLEANUP): New macro.
21851         * tree-eh.c (honor_protect_cleanup_actions): Strip TRY_CATCH_EXPR
21852         if it is set.
21853
21854 2008-01-21  DJ Delorie  <dj@redhat.com>
21855
21856         * doc/tm.texi (HARD_REGNO_NREGS): Note that this macro must not
21857         return zero.
21858
21859 2008-01-21  Richard Guenther  <rguenther@suse.de>
21860
21861         PR middle-end/34856
21862         * tree-cfg.c (verify_expr): Allow all invariant expressions
21863         instead of just constant class ones as reference argument.
21864         * tree-ssa-loop-im.c (for_each_index): Handle CONSTRUCTOR
21865         like any other constant.
21866         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
21867
21868 2008-01-21  H.J. Lu  <hongjiu.lu@intel.com>
21869
21870         * regmove.c (fixup_match_1): Update call crossed frequencies.
21871
21872 2008-01-21  Richard Guenther  <rguenther@suse.de>
21873
21874         PR c/34885
21875         * tree-inline.c (setup_one_parameter): Deal with mismatched
21876         types using a VIEW_CONVERT_EXPR.
21877
21878 2008-01-21  Alon Dayan  <alond@il.ibm.com>
21879             Olga Golovanevsky  <olga@il.ibm.com>
21880
21881         PR tree-optimization/34701
21882         * ipa-struct-reorg.c (gen_size): Fix the malloc parameter calculation
21883         when the structure size is not a power of 2.
21884
21885 2008-01-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
21886
21887         * doc/install.texi: Add doc for --enable-checking=df.
21888
21889 2008-01-20  Kaz Kojima  <kkojima@gcc.gnu.org>
21890
21891         PR rtl-optimization/34808
21892         * emit-rtl.c (try_split): Handle REG_RETVAL notes.
21893
21894 2008-01-20  Richard Sandiford  <rsandifo@nildram.co.uk>
21895
21896         * global.c (find_reg): Only compute EH_RETURN_DATA_REGNO once per
21897         input.
21898
21899 2008-01-19  Kenneth Zadeck  <zadeck@naturalbridge.com>
21900
21901         PR rtl-optimization/26854
21902         PR rtl-optimization/34400
21903         * ddg.c (create_ddg_dep_from_intra_loop_link): Do not use
21904         DF_RD->gen.
21905         * df.h (df_changeable_flags.DF_RD_NO_TRIM): New.
21906         (df_rd_bb_info.expanded_lr_out): New.
21907         * loop_invariant.c (find_defs): Added DF_RD_NO_TRIM flag.
21908         * loop_iv.c (iv_analysis_loop_init): Ditto.
21909         * df-problems.c (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
21910         df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
21911         Added code to allocate, initialize or free expanded_lr_out.
21912         (df_rd_bb_local_compute_process_def): Restructured to make
21913         more understandable.
21914         (df_rd_confluence_n): Add code to do nothing with fake edges and
21915         code to no apply invalidate_by_call sets if the sets are being trimmed.
21916         (df_lr_local_finalize): Renamed to df_lr_finalize.
21917         (df_live_local_finalize): Renamed to df_live_finalize.
21918
21919 2008-01-20  Richard Sandiford  <rsandifo@nildram.co.uk>
21920
21921         PR target/34831
21922         * config/mips/mips.md (div<mode>3): Use <recip_condition> when
21923         deciding whether to use reciprocal instructions.
21924
21925 2008-01-19  Uros Bizjak  <ubizjak@gmail.com>
21926
21927         * dwarf2out.c (dwarf2out_switch_text_section): Do not call
21928         dwarf2out_note_section_used if cold_text_section is NULL.
21929
21930 2008-01-19  Jakub Jelinek  <jakub@redhat.com>
21931
21932         PR gcov-profile/34610
21933         * tree-cfg.c (make_edges): Mark both outgoing edges from
21934         OMP_CONTINUE and from OMP_FOR as EDGE_ABNORMAL.
21935         * omp-low.c (expand_omp_for): Clear EDGE_ABNORMAL bits
21936         from OMP_FOR and OMP_CONTINUE outgoing edges.
21937
21938         * tree-profile.c (tree_profiling): Return early if
21939         cfun->after_tree_profile != 0.  Set cfun->after_tree_profile
21940         at the end.
21941         * omp-low.c (expand_omp_parallel): Copy after_tree_profile
21942         from cfun to child_cfun.
21943         * function.h (struct function): Add after_tree_profile bit.
21944
21945 2008-01-19 Anatoly Sokolov <aesok@post.ru>
21946
21947         * config/avr/avr.S (_exit): Disable interrupt.
21948
21949 2008-01-18  Kenneth Zadeck  <zadeck@naturalbridge.com>
21950             Steven Bosscher  <stevenb.gcc@gmail.com>
21951
21952         PR rtl-optimization/26854
21953         PR rtl-optimization/34400
21954         * df-problems.c (df_live_scratch): New scratch bitmap.
21955         (df_live_alloc): Allocate df_live_scratch when doing df_live.
21956         (df_live_reset): Clear the proper bitmaps.
21957         (df_live_bb_local_compute): Only process the artificial defs once
21958         since the order is not important.
21959         (df_live_init): Init the df_live sets only with the variables
21960         found live by df_lr.
21961         (df_live_transfer_function): Use the df_lr sets to prune the
21962         df_live sets as they are being computed.
21963         (df_live_free): Free df_live_scratch.
21964
21965 2008-01-18  Ian Lance Taylor  <iant@google.com>
21966
21967         * common.opt: Add fmerge-debug-strings.
21968         * dwarf2out.c (DEBUG_STR_SECTION_FLAGS): Test
21969         flag_merge_debug_strings rather than flag_merge_constants.
21970         * doc/invoke.texi (Option Summary): Mention
21971         -fmerge-debug-strings.
21972         (Debugging Options): Document -fmerge-debug-strings.
21973
21974 2008-01-18  Ian Lance Taylor  <iant@google.com>
21975
21976         PR c++/33407
21977         * tree.h (DECL_IS_OPERATOR_NEW): Define.
21978         (struct tree_function_decl): Add new field operator_new_flag.
21979         * tree-inline.c (expand_call_inline): When inlining a call to
21980         operator new, force the return value to go into a variable, and
21981         set DECL_NO_TBAA_P on that variable.
21982         * c-decl.c (merge_decls): Merge DECL_IS_OPERATOR_NEW flag.
21983
21984 2008-01-18  Uros Bizjak  <ubizjak@gmail.com>
21985
21986         PR debug/34484
21987         * dwarf2out.c (dwarf2out_switch_text_section): Do not guard with
21988         DWARF2_DEBUGGING_INFO.
21989         (dwarf2out_note_section_used): Ditto.  Add prototype.
21990         (have_multiple_function_sections, text_section_used,
21991         cold_text_section_used, *cold_text_sections): Move declarations
21992         before their uses.
21993
21994 2008-01-17  Bob Wilson  <bob.wilson@acm.org>
21995
21996         * config/xtensa/unwind-dw2-xtensa.h (_Unwind_FrameState): Remove pc
21997         field and add signal_ra.
21998         * config/xtensa/unwind-dw2-xtensa.c (uw_frame_state_for): Remove
21999         assignments to frame state pc.  Move end of stack check after
22000         MD_FALLBACK_FRAME_STATE_FOR.
22001         (uw_update_context_1): Use frame state signal_regs if set, instead
22002         of checking signal_frame flag.
22003         (uw_update_context): Use frame state signal_ra if set.
22004         * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Define.
22005         * config/xtensa/linux-unwind.h: New file.
22006
22007 2008-01-18  Bernhard Fischer  <aldot@gcc.gnu.org>
22008
22009         * modulo-sched.c (get_sched_window): Fix comment typo.
22010
22011 2008-01-17  Andrew MacLeod  <amacleod@redhat.com>
22012
22013         PR tree-optimization/34648
22014         * tree-ssa-sccvn.c (visit_use): Expressions which can throw are varying.
22015
22016 2008-01-17  Anatoly Sokolov <aesok@post.ru>
22017
22018         * config/avr/avr.h (LINK_SPEC): Support -mrelax and -mpmem-wrap-around.
22019         * config/avr/avr.opt (mrelax, mpmem-wrap-around): Add.
22020
22021 2008-01-17  Seongbae Park  <seongbae.park@gmail.com>
22022
22023         PR rtl-optimization/34400
22024         * df-core.c (df_worklist_dataflow_overeager,
22025         df_worklist_dataflow_doublequeue): New functions.
22026         (df_worklist_dataflow): Two different worklist solvers.
22027         * params.def (PARAM_DF_DOUBLE_QUEUE_THRESHOLD_FACTOR):
22028         New param.
22029
22030 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
22031
22032         PR testsuite/34821
22033         * doc/invoke.texi: Document the dependence on pthread for fopenmp
22034         and ftree-parallelize-loops.
22035
22036 2008-01-17  Mircea Namolaru  <namolaru@il.ibm.com>
22037
22038         PR rtl-optimization/34826
22039         * loop-doloop (doloop_modify): Update the REG_BR_PROB note.
22040
22041 2008-01-17  Andreas Krebbel  <krebbel1@de.ibm.com>
22042
22043         * global.c (find_reg): Mark the eh regs as used if necessary.
22044         * ra-conflict.c (global_conflicts): Set no_eh_reg flag.
22045         * ra.h (struct allocno): no_eh_reg field added.  Changed
22046         no_stack_reg type to bitfield.
22047
22048 2008-01-17  Eric Botcazou  <ebotcazou@adacore.com>
22049
22050         * tree.c (substitute_in_expr): Add missing 'break'.
22051
22052 2008-01-17  Richard Guenther  <rguenther@suse.de>
22053
22054         PR tree-optimization/34825
22055         * tree-ssa-math-opts.c (is_division_by): Do not recognize
22056         x / x as division to handle.
22057
22058 2008-01-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
22059
22060         * pa64-hpux.h (LIB_SPEC): Add "-lpthread" in shared links if "-mt" or
22061         "-pthread" is specified.
22062         * pa-hpux11.h (LIB_SPEC): Likewise.
22063
22064 2008-01-16  Janis Johnson  <janis187@us.ibm.com>
22065             Peter Bergner  <bergner@vnet.ibm.com>
22066
22067         PR rtl-optimization/33796
22068         * sparseset.c (sparseset_alloc): Use xcalloc rather than xmalloc.
22069
22070 2008-01-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
22071
22072         PR libgfortran/34699
22073         * pa-hpux.h (LINK_SPEC): Only search /lib/pa1.1 and /usr/lib/pa1.1 on
22074         static links.
22075         * pa-hpux10.h (LINK_SPEC): Likewise.
22076         * pa-hpux11.h (LINK_SPEC): Don't search /lib/pa1.1 and /usr/lib/pa1.1.
22077
22078 2008-01-16  Richard Guenther  <rguenther@suse.de>
22079
22080         PR middle-end/32628
22081         * fold-const.c (fold_convert_const_int_from_int): Do not
22082         set overflow if that occured only because of a sign extension
22083         change when converting from/to a sizetype with the same
22084         precision and signedness.
22085
22086 2008-01-16  Uros Bizjak  <ubizjak@gmail.com>
22087
22088         PR debug/34249
22089         * dwarf2out.c (output_call_frame_info): Move output of FDE initial
22090         location address to the correct place.  Update copyright year.
22091
22092 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
22093
22094         * lambda-code.c (lambda_transform_legal_p): Handle the case of
22095         no dependences in the dependence_relations vector.
22096
22097 2008-01-16  Jan Hubicka  <jh@suse.cz>
22098
22099         PR rtl-optimization/31396
22100         * regstat.c (regstat_bb_compute_ri): Compute FREQ_CALLS_CROSSED.
22101         * cfg.c (dump_reg_info): Print it.
22102         * regs.h (struct reg_info_t): add freq_calls_crossed.
22103         (REG_FREQ_CALLS_CROSSED): New macro.
22104         * global.c (global_alloc): Compute freq_calls_crossed for allocno.
22105         (find_reg): Update call of CALLER_SAVE_PROFITABLE.
22106         * regmove.c (optimize_reg_copy_1, optimize_reg_copy_2, fixup_match_2,
22107         regmove_optimize): Update call crossed frequencies.
22108         * local-alloc.c (struct qty): Add freq_calls_crossed.
22109         (alloc_qty): Copute freq_calls_crossed.
22110         (update_equiv_regs, combine_regs): Update REG_FREQ_CALLS_CROSSED.
22111         (find_free_reg): Update call of CALLER_SAVE_PROFITABLE.
22112         * ra.h (struct allocno): Add freq_calls_crossed.
22113
22114 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
22115
22116         * gcc.c (LINK_COMMAND_SPEC): Add includes and link options for
22117         libgomp when compiling with ftree-parallelize-loops.
22118         (GOMP_SELF_SPECS): Add -pthread for ftree-parallelize-loops.
22119
22120 2008-01-16  Richard Guenther  <rguenther@suse.de>
22121
22122         PR tree-optimization/34769
22123         * tree-data-ref.c (initialize_matrix_A): Revert fix for PR34458.
22124         * tree.c (int_cst_value): Instead make this function more
22125         permissive in what it accepts as valid input.  Document this
22126         function always sign-extends the value.
22127
22128 2008-01-16  Jakub Jelinek  <jakub@redhat.com>
22129             Richard Guenther  <rguenther@suse.de>
22130
22131         PR c/34668
22132         * gimplify.c (fold_indirect_ref_rhs): Rename to ...
22133         (gimple_fold_indirect_ref_rhs): ... this.
22134         (gimple_fold_indirect_ref): New function with foldings
22135         that preserve lvalueness.
22136         (gimplify_modify_expr_rhs): Call gimple_fold_indirect_ref_rhs.
22137         * tree-flow.h (gimple_fold_indirect_ref): Declare.
22138         * tree-inline.c (copy_body_r): Use gimple_fold_indirect_ref
22139         to fold an INDIRECT_REF, fall back to the old use of
22140         fold_indirect_ref_1.
22141
22142 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
22143
22144         * tree-data-ref.c (subscript_dependence_tester_1): Call
22145         free_conflict_function.
22146         (compute_self_dependence): Same.
22147
22148 2008-01-16  Uros Bizjak  <ubizjak@gmail.com>
22149
22150         PR debug/34249
22151         * debug.h (dwarf2out_switch_text_section): Move declaration from ...
22152         * dwarf2out.c (dwarf2out_switch_text_section): ... here.  Make
22153         function global.
22154         * final.c (final_scan_insn) [NOTE_INSN_SWITCH_TEXT_SECTIONS]:
22155         Depending on dwarf2out_do_frame, call dwarf2out_switch_text_section
22156         for DWARF2_UNWIND_INFO targets.
22157
22158 2008-01-16  Richard Guenther  <rguenther@suse.de>
22159
22160         PR c/34768
22161         * c-typeck.c (common_pointer_type): Do not merge inconsistent
22162         type qualifiers for function types.
22163
22164 2008-01-15  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
22165
22166         * tree-parloops.c (gen_parallel_loop): Fix ommision of declaration for
22167         loop_iterator li from previous commit.
22168
22169 2008-01-15  Sebastian Pop  <sebastian.pop@amd.com>
22170
22171         * tree-parloops.c (gen_parallel_loop): Free loop bound estimations.
22172
22173 2008-01-12  Sebastian Pop  <sebastian.pop@amd.com>
22174
22175         * tree-parloops.c (loop_has_blocks_with_irreducible_flag): New.
22176         (parallelize_loops): Don't parallelize irreducible components.
22177
22178 2008-01-14  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
22179
22180         PR c++/24924
22181         * c-opts (c_common_post_options): Do not enable CPP
22182         flag_pedantic_errors by default.
22183
22184 2008-01-14  Eric Botcazou  <ebotcazou@adacore.com>
22185
22186         PR rtl-optimization/31944
22187         * cse.c (remove_pseudo_from_table): New function.
22188         (merge_equiv_classes): Use above function to remove pseudo-registers.
22189         (invalidate): Likewise.
22190
22191 2008-01-13  Richard Guenther  <rguenther@suse.de>
22192
22193         PR middle-end/34601
22194         * emit-rtl.c (set_reg_attrs_for_decl_rtl): Use DECL_MODE
22195         instead of TYPE_MODE to deal with calls from expand_one_error_var.
22196
22197 2008-01-13  Uros Bizjak  <ubizjak@gmail.com>
22198
22199         * gcse.c (cprop_jump): Call validate_unshare_change instead of
22200         validate_change to unshare the source of the PC set.
22201
22202 2008-01-12  Jan Hubicka  <jh@suse.cz>
22203
22204         PR middle-end/32135
22205         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Do not construct
22206         references above array bounds.  This might trigger bounds checks for
22207         pointers to arrays.
22208
22209 2008-01-12  Sebastian Pop  <sebastian.pop@amd.com>
22210
22211         * tree-ssa-ter.c (free_temp_expr_table): Free num_in_part and
22212         new_replaceable_dependencies.
22213
22214 2008-01-12  Doug Kwan  <dougkwan@google.com>
22215
22216         * c-decl.c: (grokdeclarator): Use OPT_Wignored_qualifiers
22217         instead of OPT_Wreturn_type in warning due to ignored return type
22218         qualifiers.
22219         * c-opt.c (c_common_post_option): Add -Wignored-qualifiers to
22220         options included in -Wextra.
22221         * c.opt: New option -Wignored_qualifiers.
22222         * doc/invoke.texi (Warning Options, -Wextra): Add new option
22223         -Wignore_qualifiers.
22224         (-Wignored-qualifiers): Document.
22225         (-Wreturn-type): Remove description of functionality now handled
22226         by -Wignored-qualifiers.
22227
22228 2008-01-12  Eric Botcazou  <ebotcazou@adacore.com>
22229
22230         PR ada/33788
22231         * fold-const.c (fold_unary) <VIEW_CONVERT_EXPR>: Fold an existing
22232         NOP_EXPR if it is between integral types with the same precision.
22233
22234 2008-01-12  Jan Hubicka  <jh@suse.cz>
22235
22236         PR other/28023
22237         * invoke.texi (max-inline-recursive-depth): Fix default value.
22238
22239 2008-01-12  Zdenek Dvorak  <ook@ucw.cz>
22240
22241         * tree-parloops.c (transform_to_exit_first_loop): Cast nit to the
22242         correct type.
22243
22244 2008-01-11  Bob Wilson  <bob.wilson@acm.org>
22245
22246         * config/xtensa/xtensa.c (override_options): Set flag_shlib.
22247
22248 2008-01-11  James E. Wilson  <wilson@specifix.com>
22249
22250         PR target/26015
22251         * config/vax/elf.h (FRAME_POINTER_CFA_OFFSET): Define.
22252
22253 2008-01-11  Anatoly Sokolov <aesok@post.ru>
22254
22255         * config/avr/avr.c (expand_prologue, expand_epilogue): Don't
22256         save/restore frame pointer register and don't use 'call-prologues'
22257         optimization in function with "OS_task" attribute.
22258
22259 2008-01-11  Eric Botcazou  <ebotcazou@adacore.com>
22260
22261         PR middle-end/31309
22262         * expr.c (copy_blkmode_from_reg): Use a mode suited to the size
22263         when copying to memory.
22264
22265 2008-01-11  Steven Bosscher  <stevenb.gcc@gmail.com>
22266
22267         PR rtl-optimization/30905
22268         * cfgcleanup.c: Include dce.h
22269         (crossjumps_occured): New global variable.
22270         (try_crossjump_bb): Exit loop after finding a fallthru edge.
22271         If something changed, set crossjumps_occured to true.
22272         (try_optimize_cfg): Clear crossjumps_occured at the beginning.
22273         Don't add/remove fake edges to exit here...
22274         (cleanup_cfg): ...but do it here, when crossjumping.
22275         Run a fast DCE when successful crossjumps occured in the latest
22276         iteration of try_optimize_cfg.
22277
22278 2008-01-11  Richard Guenther  <rguenther@suse.de>
22279
22280         * tree-ssa-sccvn.c (struct vn_binary_op_s): Move hashcode near opcode.
22281         (struct vn_unary_op_s): Likewise.
22282         (vn_reference_insert): Free old reference on hash collision.
22283
22284 2008-01-10  Raksit Ashok  <raksit@google.com>
22285
22286         PR rtl-optimization/27971
22287         * combine.c (find_split_point): Split PLUS expressions which are
22288         inside a MEM rtx, and whose first operand is complex.
22289
22290 2008-01-10  DJ Delorie  <dj@redhat.com>
22291
22292         * config/m32c/m32c.c (m32c_hard_regno_nregs_1): Renamed from...
22293         (m32c_hard_regno_nregs): ...this, which is now a wrapper.
22294         (m32c_hard_regno_ok): Call the underlying function.
22295
22296 2008-01-10  Richard Guenther  <rguenther@suse.de>
22297
22298         PR middle-end/34683
22299         * tree-cfg.c (tree_merge_blocks): Do not go through the
22300         full-blown folding and stmt updating path if we just deal
22301         with virtual operands.
22302         * tree-ssa-copy.c (may_propagate_copy): Do not short-cut
22303         test for abnormal SSA_NAMEs.
22304
22305 2008-01-10  Andreas Krebbel  <krebbel1@de.ibm.com>
22306
22307         PR middle-end/34641
22308         * reload.c (push_reload): Add assertions.  All constants from
22309         reg_equiv_constant should have been used for replacing the respective
22310         pseudo earlier.
22311         (find_reloads_address): Invoke find_reloads_address_part for
22312         constant taken from the reg_equiv_constant array.
22313
22314 2008-01-10  Steven Bosscher  <stevenb.gcc@gmail.com>
22315
22316         * tree-ssa-sccvn.h (struct vn_ssa_aux): Make the most accessed
22317         field (valnum) the first in the struct.  Replace bools with
22318         unit bit fields.
22319
22320 2008-01-10  Richard Guenther  <rguenther@suse.de>
22321
22322         PR tree-optimization/34651
22323         * tree-sra.c (sra_build_assignment): Sanitize.  Use the correct
22324         types and ordering for masking and converting.
22325
22326 2008-01-09  Sebastian Pop  <sebastian.pop@amd.com>
22327
22328         PR tree-optimization/34017
22329         * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Generate code
22330         also for PHI_NODE expressions.
22331
22332 2008-01-09  Jan Hubicka  <jh@suse.cz>
22333
22334         PR tree-optimization/34708
22335         * tree-inline.c (estimate_num_insns_1): Compute cost of SWITCH_EXPR
22336         based on number of case labels.
22337         (init_inline_once): Remove switch_cost.
22338         * tree-inline.h (eni_weights_d): Remove switch_cost.
22339
22340 2008-01-09  Richard Guenther  <rguenther@suse.de>
22341         Andrew Pinski  <andrew_pinski@playstation.sony.com>
22342
22343         PR middle-end/30132
22344         * gimplify.c (gimplify_cond_expr): Do not create an addressable
22345         temporary if an rvalue is ok or an lvalue is not required.
22346
22347 2008-01-09  Richard Guenther  <rguenther@suse.de>
22348
22349         PR middle-end/34458
22350         * tree-data-ref.c (initialize_matrix_A): Use tree_low_cst,
22351         adjust return type.
22352
22353 2008-01-09  Richard Guenther  <rguenther@suse.de>
22354
22355         PR middle-end/34679
22356         * tree.c (host_integerp): Check for sizetype only if the
22357         type is an integer type.
22358
22359 2008-01-09  Steven Bosscher  <stevenb.gcc@gmail.com>
22360
22361         PR debug/26364
22362         * opts.c (decode_options): Disable inlining of functions called
22363         once if not in unit-at-a-time mode.
22364
22365 2008-01-09  Alexandre Oliva  <aoliva@redhat.com>
22366
22367         * Makefile.in (dse.o): Remove duplicate $(RECOG_H) dependency.
22368
22369 2008-01-08  Richard Guenther  <rguenther@suse.de>
22370
22371         PR middle-end/31863
22372         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Bail
22373         out early if the result will be unused.
22374
22375 2008-01-08  Uros Bizjak  <ubizjak@gmail.com>
22376
22377         PR target/34709
22378         Revert:
22379
22380         2008-01-05  Uros Bizjak  <ubizjak@gmail.com>
22381         * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
22382         for TARGET_RECIP.
22383
22384 2008-01-08  Jan Sjodin  <jan.sjodin@amd.com>
22385
22386         * config/i386/i386.c (k8_cost, amdfam10_cost): Branch costs
22387         for vectorization tuned.
22388
22389 2008-01-08  Richard Guenther  <rguenther@suse.de>
22390
22391         PR tree-optimization/34683
22392         * tree-ssa-operands.c (operand_build_cmp): Export.
22393         * tree-ssa-operands.h (operand_build_cmp): Declare.
22394         * tree-vn.c (vuses_compare): Remove.
22395         (sort_vuses): Use operand_build_cmp.
22396         (sort_vuses_heap): Likewise.
22397         * tree-ssa-sccvn.c (vuses_to_vec): Use VEC_reserve, not VEC_alloc
22398         to re-use old VEC if available.  Do not sort already sorted VUSEs.
22399         (vdefs_to_vec): Do not sort already sorted VDEFs.
22400
22401 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
22402
22403         PR middle-end/34694
22404         * omp-low.c (copy_var_decl): Copy also DECL_SOURCE_LOCATION.
22405
22406 2008-01-08  Uros Bizjak  <ubizjak@gmail.com>
22407
22408         PR target/34702
22409         * doc/invoke.texi (i386 and x86-64 Options) [mrecip]: Document
22410         limitations of reciprocal sequences on x86 targets.
22411
22412 2008-01-08  Richard Guenther  <rguenther@suse.de>
22413
22414         PR tree-optimization/34683
22415         * tree-flow-inline.h (var_ann): Remove overzealous asserts.
22416
22417 2008-01-07  Jakub Jelinek  <jakub@redhat.com>
22418
22419         PR target/34622
22420         * config/darwin.c (darwin_mergeable_string_section): Don't use
22421         .cstring if int_size_in_bytes != TREE_STRING_LENGTH.
22422
22423 2008-01-07  Uros Bizjak  <ubizjak@gmail.com>
22424
22425         PR target/34682
22426         * config/i386/i386.md (neg<mode>2): Rename from negsf2, negdf2 and
22427         negxf2.  Macroize expander using X87MODEF mode iterator.  Change
22428         predicates of op0 and op1 to register_operand.
22429         (abs<mode>2): Rename from abssf2, absdf2 and negxf2.  Macroize
22430         expander using X87MODEF mode iterator.  Change predicates of
22431         op0 and op1 to register_operand.
22432         ("*absneg<mode>2_mixed", "*absneg<mode>2_sse"): Rename from
22433         corresponding patterns and macroize using MODEF macro.  Change
22434         predicates of op0 and op1 to register_operand and remove
22435         "m" constraint. Disparage "r" alternative with "!".
22436         ("*absneg<mode>2_i387"): Rename from corresponding patterns and
22437         macroize using X87MODEF macro.  Change predicates of op0 and op1
22438         to register_operand and remove "m" constraint.  Disparage "r"
22439         alternative with "!".
22440         (absneg splitter with memory operands): Remove.
22441         ("*neg<mode>2_1", "*abs<mode>2_1"): Rename from corresponding
22442         patterns and macroize using X87MODEF mode iterator.
22443         * config/i386/sse.md (negv4sf2, absv4sf2, neg2vdf2, absv2df2):
22444         Change predicate of op1 to register_operand.
22445         * config/i386/i386.c (ix86_expand_fp_absneg_operator): Remove support
22446         for memory operands.
22447
22448 2008-01-07  Nathan Froyd  <froydnj@codesourcery.com>
22449
22450         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add clause for mcpu=8548.
22451
22452 2008-01-07  Richard Guenther  <rguenther@suse.de>
22453
22454         * basic-block.h (struct edge_def): Pair dest_idx with goto_locus
22455         fields.
22456
22457 2008-01-07  Richard Guenther  <rguenther@suse.de>
22458
22459         PR tree-optimization/34683
22460         * tree-ssa-sccvn.c (vuses_to_vec): Pre-allocate the vector of
22461         VOPs of the needed size to save memory.  Use VEC_quick_push
22462         to save compile-time.
22463         (vdefs_to_vec): Likewise.
22464
22465 2008-01-07  Sa Liu  <saliu@de.ibm.com>
22466
22467         * config/spu/spu.md (divdf3): Genetate inline code for double
22468         division.  The implementation doesn't handle INF or NAN, therefore it
22469         only applies when -ffinite-math-only is given.
22470
22471 2008-01-06  Paolo Carlini  <pcarlini@suse.de>
22472
22473         PR libstdc++/34680
22474         * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_RTTI, if appropriate.
22475         * doc/cpp.texi ([Common Predefined Macros]): Document.
22476
22477 2008-01-06  Uros Bizjak  <ubizjak@gmail.com>
22478
22479         * config/i386/i386.c (ix86_emit_swsqrtsf): Use negative constants in
22480         order to use commutative addition instead of subtraction.
22481
22482 2008-01-06  Andrew Pinski  <andrew_pinski@playstation.sony.com>
22483             Mircea Namolaru  <namolaru@il.ibm.com>
22484             Vladimir Yanovsky  <yanov@il.ibm.com>
22485             Revital Eres  <eres@il.ibm.com>
22486
22487         PR tree-optimization/34263
22488         * tree-outof-ssa.c (process_single_block_loop_latch,
22489         contains_tree_r): New functions.
22490         (analyze_edges_for_bb): Call process_single_block_loop_latch
22491         function to empty single-basic-block latch block if possible.
22492
22493 2008-01-05  Uros Bizjak  <ubizjak@gmail.com>
22494
22495         * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
22496         for TARGET_RECIP.
22497         (ix86_emit_swsqrtsf): Do not filter out infinity for rsqrt expansion.
22498
22499 2008-01-05  Richard Sandiford  <rsandifo@nildram.co.uk>
22500
22501         * c-omp.c (check_omp_for_incr_expr): Handle CONVERT_EXPR.
22502
22503 2008-01-05  Richard Sandiford  <rsandifo@nildram.co.uk>
22504
22505         * config/mips/mips.c (mips_in_small_data_p): Reinstate size > 0 check.
22506
22507 2008-01-05  Jakub Jelinek  <jakub@redhat.com>
22508
22509         PR tree-optimization/34618
22510         * tree-outof-ssa.c (create_temp): Copy over DECL_GIMPLE_REG_P
22511         flag from T.
22512
22513 2008-01-05  Uros Bizjak  <ubizjak@gmail.com>
22514
22515         PR target/34673
22516         * config/i386/i386.c (ix86_emit_swsqrtsf): Swap input operands
22517         in the call to gen_rtx_NE.  Remove unneeded VECTOR_MODE_P check.
22518         Update copyright year.
22519
22520         * config/i386/i386.md (rsqrtsf2): Enable for TARGET_SSE_MATH.
22521         Update copyright year.
22522         * config/i386/sse.md (rsqrtv4sf2): Ditto. Unconditionally expand
22523         using NR fixup.
22524
22525 2008-01-05  Zhouyi Zhou  <zhouzhouyi@FreeBSD.org>
22526
22527         * tree-vrp.c (find_conditional_asserts): Remove redundant check that
22528         edge does not point to current bb before changing need_assert.
22529
22530 2008-01-04  Richard Guenther  <rguenther@suse.de>
22531
22532         PR middle-end/34029
22533         * tree-cfg.c (verify_expr): Do not look inside ADDR_EXPRs
22534         for verifying purposes if they are is_gimple_min_invariant.
22535
22536 2008-01-04  Aldy Hernandez  <aldyh@redhat.com>
22537
22538         PR tree-optimization/34448
22539         PR tree-optimization/34465
22540         * gimplify.c (gimplify_init_constructor): Add new parameter
22541         notify_temp_creation.  Use it.
22542         (gimplify_modify_expr_rhs): Take volatiles into account when
22543         optimizing constructors.
22544         Do not optimize constructors if gimplify_init_constructor will dump to
22545         memory.
22546         * gcc.dg/tree-ssa/pr32901.c: Tests const volatiles.
22547         * gcc.c-torture/compile/pr34448.c: New.
22548
22549 2008-01-04  Jakub Jelinek  <jakub@redhat.com>
22550
22551         PR gcov-profile/34609
22552         * tree-inline.c (declare_return_variable): Set TREE_ADDRESSABLE on
22553         return_slot if result is TREE_ADDRESSABLE.
22554
22555 2008-01-04  Richard Sandiford  <rsandifo@nildram.co.uk>
22556
22557         * config/mips/mips.md (sqrt_condition): Tweak comment.
22558         (recip_condition): Likewise.  Require TARGET_FLOAT64 for DFmode.
22559
22560 2008-01-03  Tom Tromey  <tromey@redhat.com>
22561
22562         PR c/34457
22563         * c-common.c (c_type_hash): Handle VLAs.
22564
22565 2008-01-03  Jan Hubicka  <jh@suse.cz>
22566
22567         PR tree-optimization/31081
22568         * tree-inline.c (remap_ssa_name): Initialize uninitialized SSA vars to
22569         0 when inlining and not inlining to first basic block.
22570         (remap_decl): When var is initialized to 0, don't set default_def.
22571         (expand_call_inline): Set entry_bb.
22572         * tree-inline.h (copy_body_data): Add entry_bb.
22573
22574 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
22575
22576         PR c++/34619
22577         * cgraphunit.c (cgraph_build_static_cdtor): set_cfun back to NULL
22578         before returning.
22579
22580         PR tree-optimization/29484
22581         * tree-inline.c (inline_forbidden_p_2): New function.
22582         (inline_forbidden_p): Disallow inlining if some static var
22583         has an address of a local LABEL_DECL in its initializer.
22584         * doc/extend.texi (Labels as Values): Document &&foo behaviour
22585         vs. inlining.
22586
22587 2008-01-03  Sebastian Pop  <sebastian.pop@amd.com>
22588
22589         PR tree-optimization/34635
22590         * tree-data-ref.c (add_other_self_distances): Make sure that the
22591         evolution step is constant.
22592
22593 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
22594
22595         PR middle-end/34608
22596         * omp-low.c (expand_omp_parallel): Purge dead EH edges in the child fn.
22597
22598 2008-01-02  Richard Sandiford  <rsandifo@nildram.co.uk>
22599
22600         * tree-sra.c (scalarize_init): Insert the generate_element_init
22601         statements after the generate_element_zero statements.
22602
22603 2008-01-02  Richard Guenther  <rguenther@suse.de>
22604
22605         PR middle-end/34093
22606         PR middle-end/31976
22607         * tree-ssa-operands.c (ssa_operand_alloc): Also allocate a buffer
22608         for very large number of operands instead of ICEing.
22609
22610 2008-01-02  Arthur Norman <acn1@cam.ac.uk>
22611
22612         PR target/34013
22613         * config/i386/i386.c (ix86_expand_prologue): Save red-zone
22614         while stack probing.
22615
22616 2008-01-01  Douglas Gregor  <doug.gregor@gmail.com>
22617
22618         * c-opts.c (sanitize_cpp_opts): Don't warn about "long long" when
22619         in C++0x mode.
22620
22621 2008-01-01  Volker Reichelt  <v.reichelt@netcologne.de>
22622
22623         PR libmudflap/26442
22624         * tree-mudflap.c (mx_register_decls): Guard warning by
22625         !DECL_ARTIFICIAL check.
22626
22627 2008-01-01  Jakub Jelinek  <jakub@redhat.com>
22628
22629         * config/i386/sse.md (sse5_pperm, sse5_pperm_pack_v2di_v4si,
22630         sse5_pperm_pack_v4si_v8hi, sse5_pperm_pack_v8hi_v16qi,
22631         sse5_perm<mode>): Fix constraints.