OSDN Git Service

* Makefile.in (mips-tfile.o-warn): Don't error out on mips-tfile.c
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2008-09-09  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2
3         * Makefile.in (mips-tfile.o-warn): Don't error out on mips-tfile.c
4         warnings.
5         * mips-tfile.c (copy_object): Cast alloca result to int *.
6         * mips-tdump.c (print_symbol): Cast xmalloc return values to
7         proper types.
8         Rename class to sclass.
9         (read_tfile): Cast read_seek return values to proper types.
10         Cast xcalloc return value to proper type.
11
12 2008-09-09  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
13
14         * config/sol2.h (REGISTER_TARGET_PRAGMAS): Move ...
15         * config/i386/sol2.h (REGISTER_SUBTARGET_PRAGMAS): ... here.
16         * config/sparc/sol2.h (REGISTER_TARGET_PRAGMAS): ... and here.
17
18 2008-09-09  Jan Hubicka  <jh@suse.cz>
19
20         * profile.c (is_edge_inconsistent): Add debug output; ignore negative count
21         on fake edges.
22         (is_inconsistent): Add debug output.
23
24 2008-09-09  Andrey Belevantsev  <abel@ispras.ru>
25
26         * haifa-sched.c (advance_one_cycle): Do not print '\n' before printing
27         dump message.
28         (choose_ready): When first insn is chosen from the ready list, also
29         dump it.
30
31 2008-09-09  Andrey Belevantsev  <abel@ispras.ru>
32
33         PR rtl-optimization/37360
34         * haifa-sched.c (max_issue): Do not assert that we never issue more
35         insns than issue_rate.  Add comment.
36         
37 2008-09-09  Richard Guenther  <rguenther@suse.de>
38
39         * tree-cfg.c (verify_types_in_gimple_op): Remove.
40         (verify_types_in_gimple_call): Rename to ...
41         (verify_gimple_call): ... this.  Enhance.
42         (verify_types_in_gimple_cond): Remove.
43         (verify_gimple_comparison): New function ...
44         (verify_types_in_gimple_assign): ... split out from here.
45         (verify_types_in_gimple_return): Rename to ...
46         (verify_gimple_return): ... this.  Enhance.
47         (verify_types_in_gimple_switch): Rename to ...
48         (verify_gimple_switch): ... this.  Enhance.
49         (verify_gimple_goto): New function.
50         (verify_types_in_gimple_phi): Rename to ...
51         (verify_gimple_phi): ... this.  Enhance.
52         (verify_types_in_gimple_stmt): Adjust calls to helper functions.
53         Fold in single-statement cases from verify_types_in_gimple_seq_2.
54         (verify_types_in_gimple_seq_2): Remove cases handled in
55         verify_types_in_gimple_stmt.
56
57 2008-09-09  Bernd Schmidt  <bernd.schmidt@analog.com>
58
59         * config/bfin/bfin.c (n_regs_to_save): New static variable.
60         (push_multiple_operation, pop_multiple_operation): Set it.
61         (workaround_rts_anomaly): New function.
62         (workaround_speculation): New function, broken out of bfin_reorg.
63         (bfin_reorg): Call the new functions.
64
65 2008-09-09  Richard Guenther  <rguenther@suse.de>
66
67         PR middle-end/37354
68         PR middle-end/30165
69         * gimplify.c (gimplify_conversion): Change conversions of
70         non-register type to VIEW_CONVERT_EXPRs.
71         (gimplify_addr_expr): If we need to make the operand
72         addressable make sure to use a properly initialized
73         temporary for that so it gets a valid gimple store.
74
75 2008-09-09  Aldy Hernandez  <aldyh@redhat.com>
76
77         * function.h (struct function): Add function_start_locus.
78         * cfgexpand.c (gimple_expand_cfg): Use it.
79         * c-parser.c (c_parser_declaration_or_fndef): Set it.
80
81 2008-09-09  Richard Guenther  <rguenther@suse.de>
82
83         PR tree-optimization/37433
84         * tree-ssa-ccp.c (ccp_fold): Properly guard folding of
85         function calls.
86
87 2008-09-09  Richard Guenther  <rguenther@suse.de>
88
89         PR tree-optimization/37387
90         * tree-ssa-ifcombine.c (ifcombine_iforif): Convert the name
91         and bits to a common type.
92
93 2008-09-09  Nick Clifton  <nickc@redhat.com>
94
95         * config/v850/v850.md (return): Restore frame size restriction.
96
97 2008-09-09  Paolo Bonzini  <bonzini@gnu.org>
98
99         * c-common.c (c_expand_decl): Remove.
100         * c-common.h (anon_aggr_type_p): Remove prototype.
101         (DECL_ANON_UNION_ELEMS): Remove.
102         * c-objc-common.h (LANG_HOOKS_EXPAND_DECL): Remove.
103         * c-decl.c (anon_aggr_type_p): Remove.
104         * langhooks-def.h (LANG_HOOKS_EXPAND_DECL): Remove.
105         (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_EXPAND_DECL.
106         * langhooks.h (struct lang_hooks): Remove expand_decl.
107         * langhooks.c (lhd_expand_decl): Remove.
108         * stmt.c (expand_anon_union_decl): Remove.
109         * tree.h (expand_anon_union_decl): Remove prototype.
110
111 2008-08-09  Andy Hutchinson  <hutchinsonandy@aim.com>
112
113         PR target/36609
114         * config/avr/avr.c (avr_reorg): Create RTL for reversed compare with
115         zero.
116         * config/avr/avr.md  (QISI) : Define mode iterator.
117         (negated_tst<mode>) : Redefine as split using mode macro.
118         (reversed_tstqi): Define insn as reversed compare with zero.
119         (reversed_tsthi): Ditto.
120         (reversed_tstsi): Ditto.
121
122 2008-09-08  Jakub Jelinek  <jakub@redhat.com>
123
124         PR middle-end/37393
125         * tree-inline.c (copy_bb): When replacing a gimple_call_va_arg_pack_p
126         call stmt by new_call, clear gimple_bb on stmt after gsi_replace.
127
128         PR middle-end/37414
129         * predict.c (optimize_function_for_size_p): Don't segfault if
130         FUN is NULL.
131         * fold-const.c (LOGICAL_OP_NON_SHORT_CIRCUIT, fold_truthop,
132         tree_swap_operands_p): Don't test cfun != NULL before calling
133         optimize_function_for_s*_p.
134
135 2008-09-08  Eric Botcazou  <ebotcazou@adacore.com>
136
137         * ira-color.c (ira_reuse_stack_slot): Set slot_num on success at the
138         end of the search.
139
140 2008-09-08  M R Swami Reddy <MR.Swami.Reddy@nsc.com>
141
142         * crx/crx.h (IRA_COVER_CLASSES): Define.
143
144 2008-09-08  Jakub Jelinek  <jakub@redhat.com>
145
146         PR middle-end/37337
147         * tree-ssa-dom.c (optimize_stmt): Call maybe_clean_or_replace_eh_stmt
148         even when a stmt has been gimple_modified_p, but after fold_stmt is
149         not any longer.  Remove unneeded may_have_exposed_new_symbols
150         initializations.
151
152 2008-09-08  Richard Guenther  <rguenther@suse.de>
153
154         PR tree-optimization/37421
155         * tree-ssa-sccvn.c (visit_copy): Make sure to fully
156         valueize the RHS.
157
158 2008-09-08  Jakub Jelinek  <jakub@redhat.com>
159
160         PR middle-end/37415
161         * opts.c (common_handle_option): Handle OPT_ftree_store_ccp.
162
163 2008-09-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
164
165         PR driver/37409
166         * pa-hpux.h (LINK_SPEC): Strip -fwhole-program.
167         * pa-hpux10.h (LINK_SPEC): Likewise.
168         * pa-hpux11.h (LINK_SPEC): Likewise.
169
170 2008-09-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
171
172         * pa32-regs.h (IRA_COVER_CLASSES): Define.
173         * pa64-regs.h (IRA_COVER_CLASSES): Define.
174
175 2008-09-07  Helge Deller  <deller@gmx.de>
176
177         * pa/linux-atomic.c: New file.
178         * pa/t-linux (LIB2FUNCS_STATIC_EXTRA): Define.
179         * pa/t-linux64 (LIB2FUNCS_STATIC_EXTRA): Define.
180
181 2008-09-07  Richard Guenther  <rguenther@suse.de>
182             Ira Rosen  <irar@il.ibm.com>
183
184         PR tree-optimization/36630
185         * tree-vect-transform.c (vect_update_ivs_after_vectorizer):
186         Call STRIP_NOPS before calling evolution_part_in_loop_num.
187
188 2008-09-07  Dorit Nuzman  <dorit@il.ibm.com>
189             Ira Rosen  <irar@il.ibm.com>
190
191         PR tree-optimization/35642
192         * config/rs6000/altivec.md (mulv8hi3): Implement.
193
194 2008-09-06  Jeff Law <law@redhat.com>
195
196         * h8300/h8300.h (IRA_COVER_CLASSES): Define.
197
198 2008-09-06  Jan Hubicka  <jh@suse.cz>
199
200         PR tree-optimization/14703
201         * tree-ssa-live.c (remove_unused_scope_block_p): Remove ignored declarations.
202         * passes.c (init_optimization_passes): Recompute inline parameters.
203
204 2008-09-06  Richard Sandiford  <rdsandiford@googlemail.com>
205
206         * config/mips/mips.c (mips_function_ok_for_sibcall): Check for
207         DECL being null.
208
209 2008-09-06  Richard Sandiford  <rdsandiford@goolemail.com>
210             Peter Fuerst  <post@pfrst.de>
211
212         * doc/invoke.texi: Document -mr10k-cache-barrier=.
213         * doc/extend.texi: Document __builtin_mips_cache.
214         * config/mips/mips-ftypes.def: Add a (VOID, SI, CVPOINTER) entry.
215         * config/mips/mips.opt (mr10k-cache-barrier=): New option.
216         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define
217         __GCC_HAVE_BUILTIN_MIPS_CACHE.
218         (TARGET_CACHE_BUILTIN, ISA_HAS_CACHE): New macros.
219         * config/mips/mips.c (mips_r10k_cache_barrier_setting): New enum.
220         (set_push_mips_isas): New variable.
221         (mips_r10k_cache_barrier): New variable.
222         (cache): New availability predicate.
223         (mips_builtins): Add an entry for __builtin_mips_cache.
224         (mips_build_cvpointer_type): New function.
225         (MIPS_ATYPE_CVPOINTER): New macro.
226         (mips_prepare_builtin_arg): Only use the insn's mode if the rtx's
227         mode is VOIDmode.
228         (r10k_simplified_address_p, r10k_simplify_address)
229         (r10k_uncached_address_p, r10k_safe_address_p)
230         (r10k_needs_protection_p_1, r10k_needs_protection_p_store)
231         (r10k_needs_protection_p_call, r10k_needs_protection_p)
232         (r10k_insert_cache_barriers): New functions.
233         (mips_reorg_process_insns): Delete cache barriers after a
234         branch-likely instruction.
235         (mips_reorg): Call r10k_insert_cache_barriers.
236         (mips_handle_option): Handle OPT_mr10k_cache_barrier_.
237         * config/mips/mips.md (UNSPEC_MIPS_CACHE): New constant.
238         (UNSPEC_R10K_CACHE_BARRIER): Likewise.
239         (mips_cache, r10k_cache_barrier): New define_insns.
240
241 2008-09-06  Richard Sandiford  <rdsandiford@googlemail.com>
242
243         * ira-int.h (ira_zero_hard_reg_set, ira_one_hard_reg_set): Delete.
244         * ira-color.c (setup_allocno_left_conflicts_num): Use
245         hard_reg_set_equal_p instead of a comparison with
246         ira_zero_hard_reg_set.
247         * ira.c (setup_reg_subclasses): Likewise.
248         (setup_cover_and_important_classes): Likewise.
249         (setup_class_translate): Likewise.
250         (setup_reg_class_intersect_union): Likewise.
251         (ira_zero_hard_reg_set, ira_one_hard_reg_set): Delete.
252         (ira_init_once): Don't initialize them.
253
254 2008-09-05  Vladimir Makarov  <vmakarov@redhat.com>
255
256         * doc/tm.texi (IRA_COVER_CLASSES): Fix a typo.
257
258 2008-09-05  Vladimir Makarov  <vmakarov@redhat.com>
259
260         * ira-color.c (ira_fast_allocation): Permit global allocno
261         allocation.
262         
263 2008-09-05  Trevor Smigiel <Trevor_Smigiel@playstation.sony.com>
264
265         Improved branch hints, safe hints, and scheduling.
266
267         * haifa-sched.c (sched_emit_insn) : Define.
268         * sched-int.h (sched_emit_insn) : Add prototype.
269         * doc/invoke.texi (-mdual-nops, -mhint-max-nops,
270         -mhint-max-distance -msafe-hints) : Document.
271         * config/spu/spu.c (spu_flag_var_tracking): New.
272         (TARGET_SCHED_INIT_GLOBAL, TARGET_SCHED_INIT,
273         TARGET_SCHED_REORDER, TARGET_SCHED_REORDER2,
274         TARGET_ASM_FILE_START): Define.
275         (TARGET_SCHED_ADJUST_PRIORITY): Remove.
276         (STOP_HINT_P, HINTED_P, SCHED_ON_EVEN_P): Define.
277         (spu_emit_branch_hint): Add blocks argument.
278         (insert_branch_hints, insert_nops): Remove.
279         (pad_bb, insert_hbrp_for_ilb_runout, insert_hbrp, in_spu_reorg,
280         uses_ls_unit, spu_sched_init_global, spu_sched_init,
281         spu_sched_reorder, asm_file_start): New functions.
282         (clock_var, spu_sched_length, pipe0_clock,
283         pipe1_clock, prev_clock_var, prev_priority,
284         spu_ls_first, prev_ls_clock): New static variables.
285         * config/spu/spu.h (TARGET_DEFAULT): Add MASK_SAFE_HINTS.
286         * config/spu.md (iprefetch): Add operand, make it clobber MEM.
287         (nopn_nv): Add a non-volatile version of nop.
288         * config/spu/spu.opt (-mdual-nops, -mhint-max-nops,
289         -mhint-max-distance, -msafe-hints): New options.
290
291 2008-09-05  Janis Johnson  <janis187@us.ibm.com>
292             Samuel Tardieu  <sam@rfc1149.net>
293
294         * opts.c (decode_options): Combine nested if statements.
295
296         PR target/37283
297         * opts.c (decode_options): Handle more relationships among
298         unit-at-a-time, toplevel-reorder, and section-anchors.
299
300 2008-09-05  David Daney  <ddaney@avtrex.com>
301
302         * doc/install.texi (--enable-reduced-reflection): Document new option.
303
304 2008-09-05  Bob Wilson  <bob.wilson@acm.org>
305
306         * config/xtensa/predicates.md (nonimmed_operand, mem_operand): Use
307         constantpool_mem_p.
308         (constantpool_operand): New.
309         (move_operand): Disallow sub-word modes for the constant pool.
310         * config/xtensa/xtensa.c (TARGET_SECONDARY_RELOAD): Define.
311         (xtensa_secondary_reload_class): Replace with....
312         (xtensa_secondary_reload): this function.  Remove SIGN_EXTEND check. 
313         Set icode for sub-word reloads from the constant pool.
314         * config/xtensa/xtensa.h (SECONDARY_INPUT_RELOAD_CLASS): Delete.
315         (SECONDARY_OUTPUT_RELOAD_CLASS): Delete.
316         * config/xtensa/xtensa.md (reload<mode>_literal): New.
317         * config/xtensa/xtensa-protos.h: Update prototypes.
318         
319 2008-09-05  Joseph Myers  <joseph@codesourcery.com>
320
321         * config/mips/mips.h (enum reg_class): Add FRAME_REGS.
322         (REG_CLASS_NAMES): Update.
323         (REG_CLASS_CONTENTS): Update.
324         * config/mips/mips.c (mips_regno_to_class): Use FRAME_REGS instead
325         of ALL_REGS for regs 77 and 78.
326         * function.c (instantiate_virtual_regs_in_insn): Assert that
327         return value of simplify_gen_subreg is not NULL.
328
329 2008-09-05  Paolo Bonzini  <bonzini@gnu.org>
330
331         * emit-rtl.c (gen_rtvec): Rewrite not using gen_rtvec_v.
332         (gen_rtvec_v): Fix coding standards.
333
334 2008-09-04  Jan Hubicka  <jh@suse.cz>
335
336         * i386.c (decide_alg): Be more conservative about optimizing for size.
337
338 2008-09-04  Ian Lance Taylor  <iant@google.com>
339
340         * varasm.c (narrowing_initializer_constant_valid_p): New
341         static function.
342         (initializer_constant_valid_p): Call it.
343
344 2008-09-04  Jeff Law  <law@redhat.com>
345
346         * fold-const.c (native_encode_real): Fix computation of WORDS.
347         (native_interpret_real): Likewise.
348
349 2008-09-04  Janis Johnson  <janis187@us.ibm.com>
350
351         * config/rs6000/t-rs6000: Remove target gt-rs6000.h.
352
353 2008-09-04  Vladimir Makarov  <vmakarov@redhat.com>
354
355         * ira-conflicts.c (process_regs_for_copy): Check insn to check
356         that the cost is already taken into account in ira-costs.c
357
358         * ira-int.h (ira_debug_copy, ira_debug_copies): New.
359
360         * ira-build.c (print_copy, print_copies, ira_debug_copy,
361         ira_debug_copies): New.
362         (ira_bulid): Call print_copies.
363         
364         * doc/tm.texi (IRA_COVER_CLASSES): Fix the description.
365         
366 2008-09-04  Samuel Tardieu  <sam@rfc1149.net>
367
368         PR target/32783
369         * config/rs6000/rs6000.c (optimization_options): Remove check of
370         flag_toplevel_order.
371
372 2008-09-04  Adam Nemet  <anemet@caviumnetworks.com>
373
374         * config/mips/mips.h (ISA_HAS_SEQ_SNE): New macro.
375         * config/mips/mips.c (mips_expand_scc): Also expand seq and sne if
376         second operand is a reg_imm10_operand.
377         * config/mips/mips.md (*seq_<GPR:mode><GPR2:mode>_seq,
378         *sne_<GPR:mode><GPR2:mode>_sne): New patterns.
379         (*seq_<GPR:mode><GPR2:mode>): Rename to
380         *seq_zero_<GPR:mode><GPR2:mode>.  Don't match if
381         ISA_HAS_SEQ_SNE.
382         (*seq_<GPR:mode><GPR2:mode>_mips16): Rename to
383         *seq_zero_<GPR:mode><GPR2:mode>_mip16.  Don't match if
384         ISA_HAS_SEQ_SNE.
385         (*sne_<GPR:mode><GPR2:mode>): Rename to
386         *sne_zero_<GPR:mode><GPR2:mode>.  Don't match if
387         ISA_HAS_SEQ_SNE.
388
389 2008-09-04  Adam Nemet  <anemet@caviumnetworks.com>
390
391         * config/mips/mips.h (ISA_HAS_EXTS): New macro.
392         * config/mips/mips.md (*ashr_trunc<mode>): Name the pattern
393         combining an arithmetic right shift by more than 31 and a
394         trunction.  Don't match for out-of-range shift amounts.  Set
395         attribute mode to <MODE>.
396         (*lshr32_trunc<mode>): Name the pattern combining a logical right
397         shift by 32 and and a truncation.  Set attribute mode to <MODE>.
398         (*<optab>_trunc<mode>_exts): New pattern for truncated right
399         shifts by less than 32.
400         (extv): Change predicate on first operand to accept registers.
401         Change predicate of the other operands from immediate_operand to
402         const_int_operand.  Expand exts when source is a register.
403         (extzv): Change predicate of the constant operands from
404         immediate_operand to const_int_operand.
405         (extzv<mode>): Change predicate of the constant operands from
406         immediate_operand to const_int_operand and no constraint. Also
407         remove mode.
408         (*extzv_trunc<mode>_exts): New pattern.
409
410 2008-09-04  Adam Nemet  <anemet@caviumnetworks.com>
411
412         * config/mips/mips.h (ISA_HAS_CINS): New macro.
413         * config/mips/mips-protos.h (mask_low_and_shift_p,
414         mask_low_and_shift_len): Declare.
415         * config/mips/mips.c (mask_low_and_shift_p,
416         mask_low_and_shift_len): New functions.
417         (mips_print_operand): Handle new operand prefix "m".
418         * config/mips/mips.md (*cins<mode>): New pattern.
419
420 2008-09-04  Bernd Schmidt  <bernd.schmidt@analog.com>
421
422         * config/bfin/bfin.c (gen_one_bundle): Don't create new nops when
423         optimizing for size.
424
425 2008-09-04  Richard Sandiford  <rdsandiford@googlemail.com>
426
427         * df-scan.c (df_get_entry_block_def_set): Add STACK_POINTER_REGNUM
428         regardless of epilogue_completed.
429
430 2008-09-04  Vladimir Makarov  <vmakarov@redhat.com>
431
432         PR middle-end/37359
433         * ira-lives.c (process_bb_node_lives): Check setjmp.
434
435 2008-09-04  Richard Sandiford  <rdsandiford@googlemail.com>
436
437         PR middle-end/37243
438         * ira-build.c (form_loop_tree): Reverse BB walk.
439         (create_bb_allocnos): Likewise.
440         * ira-lives.c (make_regno_born_and_dead, regs_set): Delete.
441         (mark_reg_store): Rename to...
442         (mark_ref_live): ...this and take a df_ref argument instead of
443         note_stores arguments.  Assert that we have a register.
444         (mark_reg_clobber): Delete.
445         (def_conflicts_with_inputs_p): New function.
446         (mark_reg_conflicts): Delete.
447         (mark_reg_death): Rename to...
448         (mark_ref_dead): ...this and take a df_ref argument instead of
449         a register.  Assert that we have a register.
450         (process_bb_node_lives): Hoist frequency calculation out of
451         instruction walk.  Convert from a forwards scan to a backwards scan.
452         Use DF_REF_USES and DF_REF_DEFS instead of register notes and
453         note_stores.  Remove EH_RETURN_DATA_REGNO and regs_set handling.
454         (create_allocno_live_ranges): Don't create regs_set.
455
456 2008-09-04  Ian Lance Taylor  <iant@google.com>
457
458         * rtl.h (LABEL_REF_NONLOCAL_P): Don't check for REG_LABEL_OPERAND
459         or REG_LABEL_TARGET.
460         * calls.c (emit_library_call_value_1): Use MEM_P rather than
461         comparing MODE with MEM.
462         * gimple.c (gimple_build_predict): Cast END_PREDICTORS before
463         comparing with GF_PREDICT_TAKEN.
464         (gimple_get_lhs): Change code to enum gimple_code.
465         (gimple_set_lhs): Likewise.
466         * ifcvt.c (noce_process_if_block): Correct GET_MODE to GET_CODE.
467         * omp-low.c (find_omp_clause): Change kind parameter to enum
468         omp_clause_code.
469         * tree-flow.h (find_omp_clause): Update declaration.
470         * regrename.c (clear_dead_regs): Change kind parameter to enum
471         reg_note.
472         * reload1.c (eliminate_regs_1): Use REG_NOTE_KIND rather than
473         GET_MODE.
474         * see.c (see_get_extension_data): Change return type to enum
475         entry_type.  Change UNKNOWN to NOT_RELEVANT, SIGN_EXTEND to
476         SIGNED_EXTENDED_DEF, ZERO_EXTEND to ZERO_EXTENDED_DEF.
477         (see_gen_normalized_extension): Change extension_code parameter to
478         enum entry_type.
479         (see_seek_pre_extension_expr): Change extension_code to enum
480         entry_type.
481         (see_merge_one_def_extension): Likewise.
482         (see_handle_relevant_defs): Likewise.
483         (see_handle_relevant_uses): Likewise.
484         (see_analyze_one_def): Likewise.
485         * tree-cfg.c (need_fake_edge_p): Compare gimple code with
486         GIMPLE_ASM rather than ASM_EXPR.
487         * tree-ssa-alias.c (is_escape_site): Compare gimple code with
488         GIMPLE_RETURN rather than RETURN_EXPR.
489         * tree-ssa-ccp.c (likely_value): Change code to enum gimple_code.
490         (evaluate_stmt): Likewise.
491         * tree-vect-analyze.c (vect_analyze_operations): Change relevance
492         to enum vect_relevant.
493         (vect_mark_stmts_to_be_vectorized): Change assertion to not
494         compare gimple codes with tree codes.
495
496 2008-09-04  Paul Brook  <paul@codesourcery.com>
497
498         * config/arm/arm.c (arm_size_rtx_costs): Call cost function.
499
500 2008-09-04  Bernd Schmidt  <bernd.schmidt@analog.com>
501
502         * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Restore a null
503         pointer check lost in the recent no-unit-at-a-time patch.
504         
505 2008-09-04  Jan Hubicka  <jh@suse.cz>
506
507         PR middle-end/37343
508         * tree-switch-conversion.c (check_final_bb): Accept only IP
509         invariants.
510
511 2008-09-04  Jan Hubicka  <jh@suse.cz>
512
513         * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
514         Break out from ...
515         (vrp_evaluate_conditional_warnv_with_ops): ... this one.  Add
516         using_ranges argument.
517         (vrp_evaluate_conditional): Avoid bogus warning for type range.
518         (vrp_visit_cond_stmt): Update call of
519         vrp_evaluate_conditional_warnv_with_ops
520
521 2008-09-04  Jan Hubicka  <jh@suse.cz>
522
523         PR tree-optimization/37345
524         PR tree-optimization/37358
525         PR tree-optimization/37357
526         * tree.c (build_function_type_skip_args): Build distinct type copy;
527         set TYPE_CONTEXT.
528         (build_function_decl_skip_args): Set type of new decl not orig decl;
529         clear DECL_VINDEX for methods turned into functions.
530
531 2008-09-04  Nick Clifton  <nickc@redhat.com>
532
533         * configure.ac (HAVE_GAS_LCOMM_WITH_ALIGNMENT): New assembler
534         check.
535         * configure: Regenerate.
536         * config.in: Regenerate.
537         * config/i386/bsd.h (ASM_OUTPUT_ALIGNED_LOCAL): Use .lcomm with an
538         alignment field, if it is supported.
539
540 2008-09-04  Kai Tietz  <kai.tietz@onevision.com>
541
542         * config/i386/t-mingw32 (SHLIB_LC): Change order of import
543         libraries.
544
545 2008-09-03  David Edelsohn  <edelsohn@gnu.org>
546
547         * config/rs6000/rs6000.c (processor_target_table): Do not
548         enable VMX for POWER6.
549
550 2008-09-03  Anton Blanchard  <anton@samba.org>
551
552         * config/rs6000/rs6000.c (rs6000_split_lock_test_and_set): Do not
553         emit memory barrier before operation.
554
555 2008-09-03  John David Anglin  <dave.anglin@nrc.cnrc.gc.ca>
556
557         PR testsuite/37325
558         * config/pa/pa64-hpux.h (ASM_OUTPUT_EXTERNAL_REAL): Call
559         default_elf_asm_output_external.
560
561 2008-09-03  Jeff Law  <law@redhat.com>
562
563         * h8300.c (expand_a_shift): Avoid invalid RTL sharing.
564
565 2008-09-03  Richard Henderson  <rth@redhat.com>
566
567         * config/alpha/alpha.c (alpha_split_lock_test_and_set): Move
568         memory barrier to below the test-and-set.
569         (alpha_split_lock_test_and_set_12): Likewise.
570
571 2008-09-03  Vladimir Makarov  <vmakarov@redhat.com>
572
573         PR rtl-opt/37243
574
575         * ira-int.h (ira_loop_tree_node): Rename mentioned_allocnos to
576         all_allocnos.
577
578         * ira-color.c (print_loop_title): Use all_allocnos.
579         (color_pass): Ditto.  Don't add border_allocnos.  Check that
580         subloop allocno in the correspdoning bitmap all_allocnos.
581
582         * ira-emit.c (change_loop): Use all_allocnos.
583
584         * ira-build.c (create_loop_tree_nodes, finish_loop_tree_node):
585         Ditto.
586         (ira_create_allocno): Set up all_allocnos bit for the created
587         allocno.
588         (create_cap_allocno): Remove setting mentioned_allocnos.
589         (create_insn_allocnos): Ditto.
590         (remove_unnecessary_allocnos): Use all_allocnos.
591         (check_allocno_creation): Check that allocnos are in the
592         corresponding bitmap all_allocnos.
593         
594 2008-09-03  Vladimir Makarov  <vmakarov@redhat.com>
595
596         PR rtl-opt/37243
597         
598         * ira-conflicts.c (REG_SUBREG_P, go_through_subreg): New.
599         (process_regs_for_copy): Process subregs.  Refine check when cost
600         is taken into account in ira-costs.c.
601         (process_reg_shuffles): Use REG_SUBREG_P.
602         (add_insn_allocno_copies): Ditto.  Ignore modes.
603
604         * ira-color.c (conflict_allocno_vec): New.
605         (COST_HOP_DIVISOR): New macro.
606         (update_copy_costs_1): Use it.
607         (update_conflict_hard_regno_costs): New function.
608         (assign_hard_reg): Use it.
609         (ira_color): Allocate and free conflict_allocno_vec.
610  
611 2008-09-03  Vladimir Makarov  <vmakarov@redhat.com>
612
613         PR rtl-opt/37296
614
615         * ira-int.h (ira_sort_insn_chain): Remove.
616
617         * ira.c (basic_block_order_nums, chain_insn_order,
618         chain_freq_compare, chain_bb_compare, ira_sort_insn_chain): Remove.
619         (ira): Don't call ira_sort_insn_chain.
620
621         * reload1.c (reload): Don't call ira_sort_insn_chain.
622
623 2008-09-03  Andrew Pinski  <andrew_pinski@playstation.sony.com>
624
625         PR middle-end/37293
626         * cgraphunit.c (update_call_expr): Remove eh regions from statements
627         which become non throw.
628         (cgraph_function_versioning): Also clear DECL_WEAK.  Call
629         update_call_expr after updating the flags on the decl.
630
631 2008-09-03  Jan Hubicka  <jh@suse.cz>
632
633         PR tree-optimization/37315
634         * cgraph.c (cgraph_create_edge): Use gimple_has_body_p.
635         * cgraphunit.c (verify_cgraph_node): drop gimple_body check.
636         (cgraph_analyze_functions): Use node->analyzed
637         (cgraph_mark_functions_to_output): Likewise.
638         (cgraph_expand_function): All functions can be released after
639         expanding.
640         (cgraph_optimize): Use gimple_has_body_p.
641         * ipa-inline.c (cgraph_clone_inlined_nodes): Use analyzed flag.
642         (cgraph_decide_inlining_incrementally): Likewise.
643         (inline_transform): Inline transform.
644         * tree-inline.c (initialize_cfun): Do now shallow copy structure;
645         copy fields needed.
646         (inlinable_function_p): Drop gimple_body check.
647         (expand_call_inline): Use gimple_has_body_p.
648         * gimple.c (gimple_has_body_p): New.
649         * gimple.h (gimple_has_body_p): Add prototype.
650         * tree-cfg.c (execute_build_cfg): Remove gimple_body.
651         (dump_function_to_file): Use gimple_has_body_p check.
652
653 2008-09-03  Jakub Jelinek  <jakub@redhat.com>
654
655         PR c++/37346
656         * gimple.h (gimple_has_substatements): GIMPLE_OMP_CRITICAL has
657         substatements.
658         * tree-inline.c (remap_gimple_stmt): Handle GIMPLE_OMP_CRITICAL.
659
660 2008-09-03  Bernd Schmidt  <bernd.schmidt@analog.com>
661
662         From Michael Frysinger  <michael.frysinger@analog.com>
663         * config/bfin/bfin.c (bfin_cpus[]): Add 0.1 for bf522, bf523, bf524,
664         bf525, bf526, bf527, bf542, bf544, bf547, bf548, and bf549.  Add 0.2
665         for bf538.
666
667 2008-09-03  Hari Sandanagobalane  <hariharan@picochip.com>
668
669         Add picoChip port.
670         * doc/extend.texi: Document picoChip builtin functions.
671         * doc/invoke.texi: Document picoChip options.
672         * doc/contrib.texi: Add picoChip contribution.
673         * doc/md.texi: Document picoChip constraints.
674         * config.gcc: Add picochip-*-*.
675         * config/picochip/: Add new port.
676
677 2008-09-03  Richard Guenther  <rguenther@suse.de>
678
679         PR tree-optimization/37328
680         * tree-sra.c (sra_build_assignment): Gimplify properly.
681         (generate_copy_inout): Take the correct stmt as definition,
682         remove bogus assert.
683
684 2008-09-03  Bernd Schmidt  <bernd.schmidt@analog.com>
685
686         * config/bfin/bfin.c (bfin_expand_prologue): Honour no_stack_limit
687         attributes.
688
689         From Michael Frysinger  <michael.frysinger@analog.com>
690         * config/bfin/bfin.c (bfin_handle_option): Remove BF561 warning.
691
692 2008-09-03 Danny Smith  <dannysmith@usrs.sourceforge.net>
693
694         * gthr-win32.h (CONST_CAST2): Really make sure CONST_CAST2 is
695         defined.
696         (__gthread_setspecific): Revert 2008-08-31 change to
697         __GTHREAD_HIDE_W32API case.  Apply it to !__GTHREAD_HIDE_W32API
698         case.
699
700 2008-09-02  Aldy Hernandez  <aldyh@redhat.com>
701
702         * diagnostic.c (error_at): New.
703         * toplev.h (error_at): New prototype.
704         * c-typeck.c (build_array_ref): Call error_at instead of error.
705         Pass location to pedwarn.
706
707 2008-09-02  Adam Nemet  <anemet@caviumnetworks.com>
708
709         * sel-sched.c (sel_hard_regno_rename_ok): Mark arguments unused.
710
711 2008-09-02  Jakub Jelinek  <jakub@redhat.com>
712
713         * dwarf2out.c (tree_add_const_value_attribute): Only handle
714         VAR_DECL and CONST_DECL.
715
716 2008-09-02  H.J. Lu  <hongjiu.lu@intel.com>
717             Jakub Jelinek  <jakub@redhat.com>
718
719         * config/i386/i386.c (X86_64_VARARGS_SIZE): Removed.
720         (setup_incoming_varargs_64): Assume cum != NULL. Set/check
721         ix86_varargs_gpr_size and ix86_varargs_fpr_size.  Use
722         ix86_varargs_gpr_size instead of X86_64_REGPARM_MAX.
723         Don't set ix86_save_varrargs_registers.
724         (ix86_setup_incoming_varargs): Assume cum != NULL.
725         (ix86_va_start): Check ix86_varargs_gpr_size and
726         ix86_varargs_fpr_size instead of cfun->va_list_gpr_size and
727         cfun->va_list_fpr_size, respectively.  Subtract 8*X86_64_REGPARM_MAX
728         from frame pointer if ix86_varargs_gpr_size == 0.
729         (ix86_compute_frame_layout): Updated.
730         * config/i386/i386.h (ix86_save_varrargs_registers): Removed.
731         (ix86_varargs_gpr_size): Define.
732         (ix86_varargs_fpr_size): Likewise.
733         (machine_function): Remove save_varrargs_registers.
734         Add varargs_gpr_size and varargs_fpr_size.
735
736 2008-09-02  Jakub Jelinek  <jakub@redhat.com>
737
738         * config/alpha/alpha.c (va_list_skip_additions,
739         alpha_stdarg_optimize_hook, alpha_gimplify_va_arg_1): Tuplify.
740         (alpha_gimplify_va_arg): Call unshare_expr on second use of
741         offset_field.
742
743         PR tree-optimization/36766
744         * tree-cfg.c (gimple_purge_all_dead_eh_edges): Do nothing
745         for already removed basic blocks.
746
747         PR target/36332
748         * real.c (real_maxval): Clear a lower bit to make real_maxval
749         match get_max_float for IBM long double format.
750
751 2008-09-02  Andreas Schwab  <schwab@suse.de>
752
753         * configure.ac: Use m4_quote to quote the expansion of m4_do.
754         * configure: Regenerate.
755
756 2008-09-02  Richard Sandiford  <rdsandiford@googlemail.com>
757
758         * simplify-rtx.c (simplify_binary_operation_1): Check for CONST,
759         SYMBOL_REF and LABEL_REF when applying plus_constant, instead of
760         checking for a non-VOID CONSTANT_P.
761
762 2008-09-02  Jan Hubicka  <jh@suse.cz>
763
764         * predict.c (pass_strip_predict_hints): Avoid bugs dump file.
765         * expmed.c (expand_divmod): Fix test of smod_pow2_cheap and sdiv_pow2_cheap
766
767 2008-09-02  H.J. Lu  <hongjiu.lu@intel.com>
768
769         * expr.c (emit_group_store): Don't assert stack temp mode size.
770
771 2008-09-02  Sebastian Pop  <sebastian.pop@amd.com>
772             Tobias Grosser  <grosser@fim.uni-passau.de>
773             Jan Sjodin  <jan.sjodin@amd.com>
774             Harsha Jagasia  <harsha.jagasia@amd.com>
775             Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
776             Konrad Trifunovic  <konrad.trifunovic@inria.fr>
777             Adrien Eliche  <aeliche@isty.uvsq.fr>
778
779         Merge from graphite branch.
780         * graphite.c: New.
781         * graphite.h: New.
782         * tree-loop-linear.c (perfect_loop_nest_depth): Export.
783         * doc/invoke.texi (-floop-block, -floop-interchange,
784         -floop-strip-mine): Document new flags.
785         * tree-into-ssa.c (gimple_vec): Moved...
786         * tree-loop-distribution.c (rdg_component): Moved...
787         * cfgloopmanip.c: Include tree-flow.h.
788         (update_dominators_in_loop): New.
789         (create_empty_if_region_on_edge): New.
790         (create_empty_loop_on_edge): New.
791         (loopify): Use update_dominators_in_loop.
792         * tree-pass.h (pass_graphite_transforms): Declared.
793         * configure: Regenerate.
794         * tree-phinodes.c (make_phi_node): Export.
795         (add_phi_node_to_bb): New, split from create_phi_node.
796         * tree-chrec.c (for_each_scev_op): New.
797         * tree-chrec.h (for_each_scev_op): Declared.
798         * tree-ssa-loop-ivopts.c (get_phi_with_result): New.
799         (remove_statement): Call get_phi_with_result.
800         * config.in (HAVE_cloog): Undef.
801         * gdbinit.in (pgg): New.
802         * timevar.def (TV_GRAPHITE_TRANSFORMS): New.
803         * tree-ssa-loop.c (graphite_transforms): New.
804         (gate_graphite_transforms): New.
805         (pass_graphite_transforms): New.
806         * configure.ac (PPLLIBS, PPLINC, CLOOGLIBS, CLOOGINC,
807         HAVE_cloog): Defined.
808         * tree-vectorizer.c (rename_variables_in_bb): Export.
809         * tree-data-ref.c (dr_may_alias_p): Export.
810         (stmt_simple_memref_p): New.
811         (find_data_references_in_stmt): Export.
812         (find_data_references_in_loop): Export.
813         (create_rdg_edge_for_ddr): Initialize RDGE_RELATION.
814         (create_rdg_edges_for_scalar): Initialize RDGE_RELATION.
815         (create_rdg_vertices): Export.
816         (build_empty_rdg): New.
817         (build_rdg): Call build_empty_rdg.  Free dependence_relations.
818         * tree-data-ref.h (rdg_component): ... here.
819         (scop_p): New.
820         (struct data_reference): Add a field scop.
821         (DR_SCOP): New.
822         (find_data_references_in_loop): Declared.
823         (find_data_references_in_stmt): Declared.
824         (create_rdg_vertices): Declared.
825         (dr_may_alias_p): Declared.
826         (stmt_simple_memref_p): Declared.
827         (struct rdg_edge): Add a field ddr_p relation.
828         (build_empty_rdg): Declared.
829         * lambda.h (lambda_matrix): Declare a VEC of.
830         (find_induction_var_from_exit_cond): Declared.
831         (lambda_vector_compare): New.
832         * common.opt (fgraphite, floop-strip-mine,
833         floop-interchange, floop-block): New flags.
834         * lambda-code.c (find_induction_var_from_exit_cond): Export.
835         * cfgloop.c (is_loop_exit): New.
836         * cfgloop.h (is_loop_exit): Declared.
837         (create_empty_if_region_on_edge): Declared.
838         (create_empty_loop_on_edge): Declared.
839         * tree-flow.h (add_phi_node_to_bb): Declared.
840         (make_phi_node): Declared.
841         (rename_variables_in_bb): Declared.
842         (perfect_loop_nest_depth): Declared.
843         (graphite_transform_loops): Declared.
844         * Makefile.in (cfgloopmanip.o): Depend on TREE_FLOW_H.
845         (graphite.o-warn): Add -Wno-error.
846         (PPLLIBS, PPLINC, CLOOGLIBS, CLOOGINC): Declared.
847         (LIBS): Add GMPLIBS, CLOOGLIBS, PPLLIBS.
848         (INCLUDES): Add PPLINC, CLOOGINC.
849         (OBJS-common): Add graphite.o.
850         (graphite.o): Add rule.
851         * gimple.h (gimple_vec): ... here.
852         * tree-cfg.c (print_loops): Start printing at ENTRY_BLOCK_PTR.
853         * passes.c (init_optimization_passes): Schedule 
854         pass_graphite_transforms.
855
856 2008-09-02  Samuel Tardieu  <sam@rfc1149.net>
857
858         PR target/37283
859         * opts.c (decode_options): Move processing of -fno-unit-at-a-time
860         and -fno-toplevel-reorder after handle_options.
861
862 2008-09-02  Paul Brook  <paul@codesourcery.com>
863
864         * config/arm/arm.c (arm_tune_cortex_a9): Define.
865         (arm_override_options): Set arm_tune_cortex_a9.
866         (arm_rtx_costs_1): Make register shifts more expensive on Cortex-A9.
867         (arm_issue_rate): Handle cortexa9.
868         * config/arm/arm.h (arm_tune_cortex_a9): Declare.
869         * config/arm/arm-cores.def: Add cortex-a9.
870         * config/arm/arm-tune.md: Regenerate.
871         * config/arm/arm.md: Include cortex-a9.md.
872         (generic_sched, generic_vfp): Add cortexa9.
873         * config/arm/cortex-a9.md: New file.
874
875 2008-09-02  Richard Guenther  <rguenther@suse.de>
876
877         PR tree-optimization/37327
878         * tree-vrp.c (register_new_assert_for): Make sure to not have
879         TREE_OVERFLOW set on the bound.
880
881 2008-09-02  Alexander Monakov  <amonakov@ispras.ru>
882
883         Fixed typo in date of the 2008-09-01 MOVE_RATIO commit.
884
885         * config/ia64/ia64.opt (msched-ar-data-spec): Default to 1.
886         * config/ia64/ia64.c (ia64_set_sched_flags): Always initialize
887         spec_info->mask.
888
889 2008-09-02  Victor Kaplansky  <victork@il.ibm.com>
890
891         * gcc/config/spu/spu.md (divdf3): Removed.
892
893 2008-09-02  Jakub Jelinek  <jakub@redhat.com>
894
895         PR tree-optimization/37095
896         * cgraph.c (cgraph_node): When creating new cgraph node after
897         assembler_name_hash has been populated, record it in the hash
898         table.
899
900 2008-09-01  Paul Brook  <paul@codesourcery.com>
901
902         * doc/invoke.texi: Document -mword-relocations.
903         * config/arm/uclinux-elf.h (TARGET_DEFAULT_WORD_RELOCATIONS): Define.
904         * config/arm/symbian.h (TARGET_DEFAULT_WORD_RELOCATIONS): Define.
905         * config/arm/vxworks.h (TARGET_DEFAULT_WORD_RELOCATIONS): Define.
906         * config/arm/arm.c (arm_split_constant): Use arm_emit_movpair.
907         (arm_rtx_costs_1, arm_size_rtx_costs): Handle HIGH and LO_SUM.
908         (arm_emit_movpair): New function.
909         (arm_print_operand <c>): Handle sybolic addresses.
910         * config/arm/arm.h (TARGET_USE_MOVT): Define.
911         (TARGET_DEFAULT_WORD_RELOCATIONS): Define.
912         * config/arm/arm-protos.h (arm_emit_movpair): Add prototype.
913         * config/arm/arm.opt: Add -mword-relocations.
914         * config/arm/arm.md (movsi): Use arm_emit_movpair.
915         (arm_movt, arm_movw): New.
916
917 2008-09-01  Paul Brook  <paul@codesourcery.com>
918
919         * config/arm/arm.c (arm_override_options): Set arm_abi earlier.
920         Allow Interworking on ARMv4 EABI based targets.
921         * config/arm/bpabi.h (TARGET_FIX_V4BX_SPEC): Define.
922         (SUBTARGET_EXTRA_ASM_SPEC, LINK_SPEC): Add TARGET_FIX_V4BX_SPEC.
923
924 2008-09-01  Paul Brook  <paul@codesourcery.com>
925
926         * config/arm/thumb2.md (thumb2_negscc): Match the correct operand for
927         optimized LT0 test.  Remove optimization for GT.
928
929 2008-09-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
930
931         * pa64-hpux.h (LIB_SPEC): Link against librt when building static
932         openmp applications.
933         * pa-hpux11.h (LIB_SPEC): Likewise.
934
935         * ira.c (setup_eliminable_regset): Only declare i if ELIMINABLE_REGS is
936         defined.
937
938 2008-09-01  Jan Hubicka  <jh@suse.cz>
939
940         * predict.c (maybe_hot_count_p, maybe_hot_edge_p): When profile is
941         present, use only counts; when guessed use only frequencies.
942         (estimate_bb_frequencies): Use function_frequency.
943         * profile.c (compute_branch_probabilities): Exit early when
944         profile reading failed. Set profile_status.
945         (branch_prob): Do not set profile_status.
946
947 2008-09-01  Aldy Hernandez  <aldyh@redhat.com>
948
949         * tree.c (protected_set_expr_location): New.
950         * tree.h (protected_set_expr_location): New prototype.
951         * c-tree.h (build_array_ref): Add argument.
952         (parser_build_unary_op): Same.
953         * c-typeck.c (build_indirect_ref): Handle new location argument.
954         (build_array_ref): Same.
955         (parser_build_unary_op): Same.
956         * gimplify.c (gimplify_asm_expr): Set input_location before calling
957         error.
958         * c-omp.c (c_finish_omp_atomic): Pass location when calling
959         build_indirect_ref.
960         * c-common.c (finish_label_address_expr): Handle new location
961         argument.
962         * c-common.h (build_indirect_ref): Add argument.
963         (finish_label_address_expr): Same.
964         * c-parser.c (c_parser_unary_expression): Pass location to build
965         functions.
966         (c_parser_postfix_expression): Same.
967
968 2008-09-01  Paul Brook  <paul@codesourcery.com>
969
970         * config/arm/arm.md: Include cortex-r4f.md.
971         (attr fpu): Update type list.
972         (attr type): Add fcpys, ffariths, ffarithd, fadds, faddd, fconsts,
973         fconstd, fcmps and fcmpd.
974         (attr tune_cortexr4): Define.
975         (attr generic_sched, attr generic_vfp): Use tune_cortexr4.
976         * config/arm/vfp.md: Document fcpys, ffariths, ffarithd, fadds, faddd,
977         fconsts, fconstd, fcmps and fcmpd.  Use them in insn patterns.
978         * config/arm/arm.c (arm_issue_rate): Add cortexr4f.
979         * config/arm/arm1020e.md (v10_ffarith, v10_farith): Use new insn
980         types.
981         * config/arm/cortex-a8-neon.md (cortex_a8_vfp_add_sub,
982         cortex_a8_vfp_farith: Ditto.
983         * config/arm/vfp11.md (vfp_ffarith, vfp_farith): Ditto.
984         * config/arm/cortex-r4.md: Use tune_cortexr4.
985         * config/arm/cortex-r4f.md: New file.
986
987 2008-09-01  Richard Guenther  <rguenther@suse.de>
988
989         PR tree-optimization/37305
990         * tree-ssa-ccp.c (ccp_fold): Do not set TREE_OVERFLOW on
991         the result of constant conversions.
992         (fold_gimple_assign): Likewise.
993
994 2008-09-01  Andrey Belevantsev  <abel@ispras.ru>
995
996         * sel-sched-ir.c (cmp_v_in_regset_pool): Surround with
997         #ifdef ENABLE_CHECKING.
998
999 2008-09-01  Andrey Belevantsev  <abel@ispras.ru>
1000
1001         * sel-sched-dump.c: Surround with #ifdef INSN_SCHEDULING.
1002         * sched-int.h (print_insn, print_pattern, print_value): Declare also
1003         when !INSN_SCHEDULING.
1004
1005 2008-09-01  Andreas Schwab  <schwab@suse.de>
1006
1007         * config/ia64/ia64.c (TARGET_ADDRESS_COST): Update.
1008
1009 2008-09-01  Paul Brook  <paul@codesourcery.com>
1010
1011         * config/arm/arm.c (arm_no_early_mul_dep): Handle multiply-subtract.
1012
1013 2008-09-01  Jan Hubicka  <jh@suse.cz>
1014
1015         * config/spu/spu.c (spu_expand_block_move) Update call of MOVE_RATIO.
1016
1017         * expr.c (MOVE_BY_PIECES_P, CLEAR_BY_PIECES_P, SET_BY_PIECES_P): Pass speed operand.
1018         * expr.h (MOVE_RATIO, CLEAR_RATIO, SET_RATIO): Update.
1019         * gimplify.c (gimplify_init_constructor): Add speed operand.
1020         * tree-sra.c (decide_block_copy): Likewise.
1021         * tree-inline.c (estimate_move_cost): Likewise.
1022         * config/alpha/alpha.h (MOVE_RATIO): Update.
1023         * config/frv/frv.c (MOVE_RATIO): Update.
1024         * config/spu/spu.h (MOVE_RATIO): Update.
1025         * config/sparc/sparc.h (MOVE_RATIO): Update.
1026         * config/i386/i386.h (MOVE_RATIO, CLEAR_RATIO): Update.
1027         * config/m68hc11/m68hc11.h (MOVE_RATIO): Update.
1028         * config/cris/cris.h (MOVE_RATIO): Update.
1029         * config/mn10300/mn10300.h (MOVE_RATIO): Update.
1030         * config/arm/arm.h (MOVE_RATIO): Update.
1031         * config/pa/pa.md: Update uses of MOVE_RATIO
1032         * config/pa/pa.h (MOVE_RATIO): Update.
1033         * config/mips/mips.h (MOVE_RATIO, MOVE_BY_PIECES, CLEAR_RATIO, SET_RATIO): Update.
1034         * config/h8300/h8300.h (MOVE_RATIO): Update.
1035         * config/v850/v850.h (MOVE_RATIO): Update.
1036         * config/bfin/bfin.h (MOVE_RATIO): Update.
1037
1038 2008-08-31  Andrey Belevantsev  <abel@ispras.ru>
1039         Dmitry Melnik  <dm@ispras.ru>
1040         Dmitry Zhurikhin  <zhur@ispras.ru>
1041         Alexander Monakov  <amonakov@ispras.ru>
1042         Maxim Kuvyrkov  <maxim@codesourcery.com>
1043
1044         * sel-sched.h, sel-sched-dump.h, sel-sched-ir.h, sel-sched.c,
1045         sel-sched-dump.c, sel-sched-ir.c: New files.
1046         * Makefile.in (OBJS-common): Add selective scheduling object
1047         files.
1048         (sel-sched.o, sel-sched-dump.o, sel-sched-ir.o): New entries.
1049         (SEL_SCHED_IR_H, SEL_SCHED_DUMP_H): New entries.
1050         (sched-vis.o): Add dependency on $(INSN_ATTR_H).
1051         * cfghooks.h (get_cfg_hooks, set_cfg_hooks): New prototypes.
1052         * cfghooks.c (get_cfg_hooks, set_cfg_hooks): New functions.
1053         (make_forwarder_block): Update loop latch if we have redirected
1054         the loop latch edge.
1055         * cfgloop.c (get_loop_body_in_custom_order): New function.
1056         * cfgloop.h (LOOPS_HAVE_FALLTHRU_PREHEADERS): New enum field.
1057         (CP_FALLTHRU_PREHEADERS): Likewise.
1058         (get_loop_body_in_custom_order): Declare.
1059         * cfgloopmanip.c (has_preds_from_loop): New.
1060         (create_preheader): Honor CP_FALLTHRU_PREHEADERS.
1061         Assert that the preheader edge will be fall thru when it is set.
1062         * common.opt (fsel-sched-bookkeeping, fsel-sched-pipelining,
1063         fsel-sched-pipelining-outer-loops, fsel-sched-renaming,
1064         fsel-sched-substitution, fselective-scheduling): New flags.
1065         * cse.c (hash_rtx_cb): New.
1066         (hash_rtx): Use it.
1067         * dbgcnt.def (sel_sched_cnt, sel_sched_region_cnt,
1068         sel_sched_insn_cnt): New counters.
1069         * final.c (compute_alignments): Export.  Free dominance info after loop_optimizer_finalize.
1070         * genattr.c (main): Output maximal_insn_latency prototype.
1071         * genautomata.c (output_default_latencies): New. Factor its code from ...
1072         (output_internal_insn_latency_func): ... here.
1073         (output_internal_maximal_insn_latency_func): New.
1074         (output_maximal_insn_latency_func): New.
1075         * hard-reg-set.h (UHOST_BITS_PER_WIDE_INT): Define unconditionally.
1076         (struct hard_reg_set_iterator): New.
1077         (hard_reg_set_iter_init, hard_reg_set_iter_set,
1078         hard_reg_set_iter_next): New functions.
1079         (EXECUTE_IF_SET_IN_HARD_REG_SET): New macro.
1080         * lists.c (remove_free_INSN_LIST_node,
1081         remove_free_EXPR_LIST_node): New functions.
1082         * loop-init.c (loop_optimizer_init): When LOOPS_HAVE_FALLTHRU_PREHEADERS,
1083         set CP_FALLTHRU_PREHEADERS when calling create_preheaders.
1084         (loop_optimizer_finalize): Do not verify flow info after reload.
1085         * recog.c (validate_replace_rtx_1): New parameter simplify.
1086         Default it to true.  Update all uses.  Factor out simplifying
1087         code to ...
1088         (simplify_while_replacing): ... this new function.
1089         (validate_replace_rtx_part,
1090         validate_replace_rtx_part_nosimplify): New.
1091         * recog.h (validate_replace_rtx_part,
1092         validate_replace_rtx_part_nosimplify): Declare.
1093         * rtl.c (rtx_equal_p_cb): New.
1094         (rtx_equal_p): Use it.
1095         * rtl.h (rtx_equal_p_cb, hash_rtx_cb): Declare.
1096         (remove_free_INSN_LIST_NODE, remove_free_EXPR_LIST_node,
1097         debug_bb_n_slim, debug_bb_slim,    print_rtl_slim): Likewise.
1098         * vecprim.h: Add a vector type for unsigned int.
1099         * haifa-sched.c: Include vecprim.h and cfgloop.h.
1100         (issue_rate, sched_verbose_param, note_list, dfa_state_size,
1101         ready_try, cycle_issued_insns, spec_info): Make global.
1102         (readyp): Initialize.
1103         (dfa_lookahead): New global variable.
1104         (old_max_uid, old_last_basic_block): Remove.
1105         (h_i_d): Make it a vector.
1106         (INSN_TICK, INTER_TICK, QUEUE_INDEX, INSN_COST): Make them work
1107         through HID macro.
1108         (after_recovery, adding_bb_to_current_region_p):
1109         New variables to handle correct insertion of the recovery code.
1110         (struct ready_list): Move declaration to sched-int.h.
1111         (rgn_n_insns): Removed.
1112         (rtx_vec_t): Move to sched-int.h.
1113         (find_insn_reg_weight): Remove.
1114         (find_insn_reg_weight1): Rename to find_insn_reg_weight.
1115         (haifa_init_h_i_d, haifa_finish_h_i_d):
1116         New functions to initialize / finalize haifa instruction data.
1117         (extend_h_i_d, init_h_i_d): Rewrite.
1118         (unlink_other_notes): Move logic to add_to_note_list.  Handle
1119         selective scheduler.
1120         (ready_lastpos, ready_element, ready_sort, reemit_notes,
1121         find_fallthru_edge): Make global, remove static prototypes.
1122         (max_issue): Make global.  Add privileged_n and state parameters.  Use
1123         them.
1124         (extend_global, extend_all): Removed.
1125         (init_before_recovery): Add new param.  Fix the handling of the case
1126         when we insert a recovery code before the EXIT which has a predecessor
1127         with a fallthrough edge to it.
1128         (create_recovery_block): Make global.  Rename to
1129         sched_create_recovery_block.  Update.
1130         (change_pattern): Rename to sched_change_pattern.  Make global.
1131         (speculate_insn): Rename to sched_speculate_insn.  Make global.
1132         Split haifa-specific functionality into ...
1133         (haifa_change_pattern): New static function.
1134         (sched_extend_bb): New static function.
1135         (sched_init_bbs): New function.
1136         (current_sched_info): Change type to struct haifa_sched_info.
1137         (insn_cost): Adjust for selective scheduling.
1138         (dep_cost_1): New function.  Move logic from ...
1139         (dep_cost): ... here.
1140         (dep_cost): Use dep_cost_1.
1141         (contributes_to_priority_p): Use sched_deps_info instead of
1142         current_sched_info.
1143         (priority): Adjust to work with selective scheduling.  Process the
1144         corner case when all dependencies don't contribute to priority.
1145         (rank_for_schedule): Use ds_weak instead of dep_weak.
1146         (advance_state): New function.  Move logic from ...
1147         (advance_one_cycle): ... here.
1148         (add_to_note_list, concat_note_lists): New functions.
1149         (rm_other_notes): Make static.  Adjust for selective scheduling.
1150         (remove_notes, restore_other_notes): New functions.
1151         (move_insn): Add two arguments.  Update assert.  Don't call
1152         reemit_notes.
1153         (choose_ready): Remove lookahead variable, use dfa_lookahead.
1154         Remove more_issue, max_points.  Move the code to initialize
1155         max_lookahead_tries to max_issue.
1156         (schedule_block): Remove rgn_n_insns1 parameter.  Don't allocate
1157         ready.  Adjust use of move_insn.  Call restore_other_notes.
1158         (luid): Remove.
1159         (sched_init, sched_finish): Move Haifa-specific initialization/
1160         finalization to ...
1161         (haifa_sched_init, haifa_sched_finish): ... respectively.
1162         New functions.
1163         (setup_sched_dump): New function.
1164         (haifa_init_only_bb): New static function.
1165         (haifa_speculate_insn): New static function.
1166         (try_ready): Use haifa_* instead of speculate_insn and
1167         change_pattern.
1168         (extend_ready, extend_all): Remove.
1169         (sched_extend_ready_list, sched_finish_ready_list): New functions.
1170         (create_check_block_twin, add_to_speculative_block): Use
1171         haifa_insns_init instead of extend_global.  Update to use new
1172         initialization functions.  Change parameter.  Factor out code from
1173         create_check_block_twin to ...
1174         (sched_create_recovery_edges) ... this new function.
1175         (add_block): Remove.
1176         (sched_scan_info): New.
1177         (extend_bb): Use sched_scan_info.
1178         (init_bb, extend_insn, init_insn, init_insns_in_bb, sched_scan): New
1179         static functions for walking through scheduling region.
1180         (sched_luids): New vector variable to replace uid_to_luid.
1181         (luids_extend_insn): New function.
1182         (sched_max_luid): New variable.
1183         (luids_init_insn): New function.
1184         (sched_init_luids, sched_finish_luids): New functions.
1185         (insn_luid): New debug function.
1186         (sched_extend_target): New function.
1187         (haifa_init_insn): New static function.
1188         (sched_init_only_bb): New hook.
1189         (sched_split_block): New hook.
1190         (sched_split_block_1): New function.
1191         (sched_create_empty_bb): New hook.
1192         (sched_create_empty_bb_1): New function.
1193         (common_sched_info, ready): New global variables.
1194         (current_sched_info_var): Remove.
1195         (move_block_after_check): Use common_sched_info.
1196         (haifa_luid_for_non_insn): New static function.
1197         (init_before_recovery): Use haifa_init_only_bb instead of
1198         add_block.
1199         (increase_insn_priority): New.
1200         * modulo-sched.c: (issue_rate): Remove static declaration.
1201         (sms_sched_info): Change type to haifa_sched_info.
1202         (sms_sched_deps_info, sms_common_sched_info): New variables.
1203         (setup_sched_infos): New.
1204         (sms_schedule): Initialize them.  Call haifa_sched_init/finish.
1205         Do not call regstat_free_calls_crossed.
1206         (sms_print_insn): Use const_rtx.
1207         * params.def (PARAM_MAX_PIPELINE_REGION_BLOCKS,
1208         PARAM_MAX_PIPELINE_REGION_INSNS, PARAM_SELSCHED_MAX_LOOKAHEAD,
1209         PARAM_SELSCHED_MAX_SCHED_TIMES, PARAM_SELSCHED_INSNS_TO_RENAME,
1210         PARAM_SCHED_MEM_TRUE_DEP_COST): New.
1211         * sched-deps.c (sched_deps_info): New.  Update all relevant uses of
1212         current_sched_info to use it.
1213         (enum reg_pending_barrier_mode): Move to sched-int.h.
1214         (h_d_i_d): New variable. Initialize to NULL.
1215         ({true, output, anti, spec, forward}_dependency_cache): Initialize
1216         to NULL.
1217         (estimate_dep_weak): Remove static declaration.
1218         (sched_has_condition_p): New function.  Adjust users of
1219         sched_get_condition to use it instead.
1220         (conditions_mutex_p): Add arguments indicating which conditions are
1221         reversed.  Use them.
1222         (sched_get_condition_with_rev): Rename from sched_get_condition.  Add
1223         argument to indicate whether returned condition is reversed.  Do not
1224         generate new rtx when condition should be reversed; indicate it by
1225         setting new argument instead.
1226         (add_dependence_list_and_free): Add deps parameter.
1227         Update all users.  Do not free dependence list when
1228         deps context is readonly.
1229         (add_insn_mem_dependence, flush_pending_lists): Adjust for readonly
1230         contexts.
1231         (remove_from_dependence_list, remove_from_both_dependence_lists): New.
1232         (remove_from_deps): New. Use the above functions.
1233         (cur_insn, can_start_lhs_rhs_p): New static variables.
1234         (add_or_update_back_dep_1): Initialize present_dep_type.
1235         (haifa_start_insn, haifa_finish_insn, haifa_note_reg_set,
1236         haifa_note_reg_clobber, haifa_note_reg_use, haifa_note_mem_dep,
1237         haifa_note_dep): New functions implementing dependence hooks for
1238         the Haifa scheduler.
1239         (note_reg_use, note_reg_set, note_reg_clobber, note_mem_dep,
1240         note_dep): New functions.
1241         (ds_to_dt, extend_deps_reg_info, maybe_extend_reg_info_p): New
1242         functions.
1243         (init_deps): Initialize last_reg_pending_barrier and deps->readonly.
1244         (free_deps): Initialize deps->reg_last.
1245         (sched_analyze_reg, sched_analyze_1, sched_analyze_2,
1246         sched_analyze_insn): Update to use dependency hooks infrastructure
1247         and readonly contexts.
1248         (deps_analyze_insn): New function.  Move part of logic from ...
1249         (sched_analyze): ... here.  Also move some logic to ...
1250         (deps_start_bb): ... here.  New function.
1251         (add_forw_dep, delete_forw_dep): Guard use of INSN_DEP_COUNT with
1252         sel_sched_p.
1253         (sched_deps_init): New function.  Move code from ...
1254         (init_dependency_caches): ... here.  Remove.
1255         (init_deps_data_vector): New.
1256         (sched_deps_finish): New function.  Move code from ...
1257         (free_dependency_caches): ... here.  Remove.
1258         (init_deps_global, finish_deps_global): Adjust for use with
1259         selective scheduling.
1260         (get_dep_weak): Move logic to ...
1261         (get_dep_weak_1): New function.
1262         (ds_merge): Move logic to ...
1263         (ds_merge_1): New static function.
1264         (ds_full_merge, ds_max_merge, ds_get_speculation_types): New functions.
1265         (ds_get_max_dep_weak): New function.
1266         * sched-ebb.c (sched_n_insns): Rename to sched_rgn_n_insns.
1267         (n_insns): Rename to rgn_n_insns.
1268         (debug_ebb_dependencies): New function.
1269         (init_ready_list): Use it.
1270         (begin_schedule_ready): Use sched_init_only_bb.
1271         (ebb_print_insn): Indicate when an insn starts a new cycle.
1272         (contributes_to_priority, compute_jump_reg_dependencies,
1273         add_remove_insn, fix_recovery_cfg): Add ebb_ prefix to function names.
1274         (add_block1): Remove to ebb_add_block.
1275         (ebb_sched_deps_info, ebb_common_sched_info): New variables.
1276         (schedule_ebb): Initialize them.  Use remove_notes instead of
1277         rm_other_notes.  Use haifa_local_init/finish.
1278         (schedule_ebbs): Use haifa_sched_init/finish.
1279         * sched-int.h: Include vecprim.h, remove rtl.h.
1280         (struct ready_list): Delete declaration.
1281         (sched_verbose_param, enum sched_pass_id_t,
1282         bb_vec_t, insn_vec_t, rtx_vec_t): New.
1283         (struct sched_scan_info_def): New structure.
1284         (sched_scan_info, sched_scan, sched_init_bbs,
1285         sched_init_luids, sched_finish_luids, sched_extend_target,
1286         haifa_init_h_i_d, haifa_finish_h_i_d): Declare.
1287         (struct common_sched_info_def): New.
1288         (common_sched_info, haifa_common_sched_info,
1289         sched_emulate_haifa_p): Declare.
1290         (sel_sched_p): New.
1291         (sched_luids): Declare.
1292         (INSN_LUID, LUID_BY_UID, SET_INSN_LUID): Declare.
1293         (sched_max_luid, insn_luid): Declare.
1294         (note_list, remove_notes, restore_other_notes, bb_note): Declare.
1295         (sched_insns_init, sched_insns_finish, xrecalloc, reemit_notes,
1296         print_insn, print_pattern, print_value, haifa_classify_insn,
1297         sel_find_rgns, sel_mark_hard_insn, dfa_state_size, advance_state,
1298         setup_sched_dump, sched_init, sched_finish,
1299         sel_insn_is_speculation_check): Export.
1300         (struct ready_list): Move from haifa-sched.c.
1301         (ready_try, ready, max_issue): Export.
1302         (ebb_compute_jump_reg_dependencies, find_fallthru_edge,
1303         sched_init_only_bb, sched_split_block, sched_split_block_1,
1304         sched_create_empty_bb, sched_create_empty_bb_1,
1305         sched_create_recovery_block, sched_create_recovery_edges): Export.
1306         (enum reg_pending_barrier_mode): Export.
1307         (struct deps): New fields `last_reg_pending_barrier' and `readonly'.
1308         (deps_t): New.
1309         (struct sched_info): Rename to haifa_sched_info.  Use const_rtx for
1310         print_insn field.  Move add_block and fix_recovery_cfg to
1311         common_sched_info_def.  Move compute_jump_reg_dependencies, use_cselib  ...
1312         (struct sched_deps_info_def): ... this new structure.
1313         (sched_deps_info): Declare.
1314         (struct spec_info_def): Remove weakness_cutoff, add
1315         data_weakness_cutoff and control_weakness_cutoff.
1316         (spec_info): Declare.
1317         (struct _haifa_deps_insn_data): Split from haifa_insn_data.  Add
1318         dep_count field.
1319         (struct haifa_insn_data): Rename to struct _haifa_insn_data.
1320         (haifa_insn_data_def, haifa_insn_data_t): New typedefs.
1321         (current_sched_info): Change type to struct haifa_sched_info.
1322         (haifa_deps_insn_data_def, haifa_deps_insn_data_t): New typedefs.
1323         (h_d_i_d): New variable.
1324         (HDID): New accessor macro.
1325         (h_i_d): Change type to VEC (haifa_insn_data_def, heap) *.
1326         (HID): New accessor macro.  Rewrite h_i_d accessor macros through HID
1327         and HDID.
1328         (IS_SPECULATION_CHECK_P): Update for selective scheduler.
1329         (enum SCHED_FLAGS): Update for selective scheduler.
1330         (enum SPEC_SCHED_FLAGS): New flag SEL_SCHED_SPEC_DONT_CHECK_CONTROL.
1331         (init_dependency_caches, free_dependency_caches): Delete declarations.
1332         (deps_analyze_insn, remove_from_deps, get_dep_weak_1,
1333         estimate_dep_weak, ds_full_merge, ds_max_merge, ds_weak,
1334         ds_get_speculation_types, ds_get_max_dep_weak, sched_deps_init,
1335         sched_deps_finish, haifa_note_reg_set, haifa_note_reg_use,
1336         haifa_note_reg_clobber, maybe_extend_reg_info_p, deps_start_bb,
1337         ds_to_dt): Export.
1338         (rm_other_notes): Delete declaration.
1339         (schedule_block): Remove one argument.
1340         (cycle_issued_insns, issue_rate, dfa_lookahead, ready_sort,
1341         ready_element, ready_lastpos, sched_extend_ready_list,
1342         sched_finish_ready_list, sched_change_pattern, sched_speculate_insn,
1343         concat_note_lists): Export.
1344         (struct region): Move from sched-rgn.h.
1345         (nr_regions, rgn_table, rgn_bb_table, block_to_bb, containing_rgn,
1346         RGN_NR_BLOCKS, RGN_BLOCKS, RGN_DONT_CALC_DEPS, RGN_HAS_REAL_EBB,
1347         BLOCK_TO_BB, CONTAINING_RGN): Export.
1348         (ebb_head, BB_TO_BLOCK, EBB_FIRST_BB, EBB_LAST_BB, INSN_BB): Likewise.
1349         (current_nr_blocks, current_blocks, target_bb): Likewise.
1350         (dep_cost_1, sched_is_disabled_for_current_region_p, sched_rgn_init,
1351         sched_rgn_finish, rgn_setup_region, sched_rgn_compute_dependencies,
1352         sched_rgn_local_init, extend_regions,
1353         rgn_make_new_region_out_of_new_block, compute_priorities,
1354         debug_rgn_dependencies, free_rgn_deps, contributes_to_priority,
1355         extend_rgns, deps_join rgn_setup_common_sched_info,
1356         rgn_setup_sched_infos, debug_regions, debug_region, dump_region_dot,
1357         dump_region_dot_file, haifa_sched_init, haifa_sched_finish): Export.
1358         (get_rgn_sched_max_insns_priority, sel_add_to_insn_priority,
1359         increase_insn_priority): Likewise.
1360         * sched-rgn.c: Include sel-sched.h.
1361         (ref_counts): New static variable.  Use it ...
1362         (INSN_REF_COUNT): ... here.  Rewrite and move closer to uses.
1363         (FED_BY_SPEC_LOAD, IS_LOAD_INSN): Rewrite to use HID accessor macro.
1364         (sched_is_disabled_for_current_region_p): Delete static declaration.
1365         (struct region): Move to sched-int.h.
1366         (nr_regions, rgn_table, rgn_bb_table, block_to_bb, containing_rgn,
1367         ebb_head): Define and initialize.
1368         (RGN_NR_BLOCKS, RGN_BLOCKS, RGN_DONT_CALC_DEPS, RGN_HAS_REAL_EBB,
1369         BLOCK_TO_BB, CONTAINING_RGN, debug_regions, extend_regions,
1370         BB_TO_BLOCK, EBB_FIRST_BB, EBB_LAST_BB): Move to
1371         sched-int.h.
1372         (find_single_block_region): Add new argument to indicate that EBB
1373         regions should be constructed.
1374         (debug_live): Delete declaration.
1375         (current_nr_blocks, current_blocks, target_bb): Remove static qualifiers.
1376         (compute_dom_prob_ps, check_live, update_live, set_spec_fed): Delete
1377         declaration.
1378         (init_regions): Delete declaration.
1379         (debug_region, bb_in_region_p, dump_region_dot_file, dump_region_dot,
1380         rgn_estimate_number_of_insns): New.
1381         (too_large): Use estimate_number_of_insns.
1382         (haifa_find_rgns): New. Move the code from ...
1383         (find_rgns): ... here.  Call either sel_find_rgns or haifa_find_rgns.
1384         (free_trg_info): New.
1385         (compute_trg_info): Allocate candidate tables here instead of ...
1386         (init_ready_list): ... here.
1387         (rgn_print_insn): Use const_rtx.
1388         (contributes_to_priority, extend_regions): Delete static declaration.
1389         (add_remove_insn, fix_recovery_cfg): Add rgn_ to function names.
1390         (add_block1): Rename to rgn_add_block.
1391         (debug_rgn_dependencies): Delete static qualifier.
1392         (new_ready): Use sched_deps_info.  Simplify.
1393         (rgn_common_sched_info, rgn_const_sched_deps_info,
1394         rgn_const_sel_sched_deps_info, rgn_sched_deps_info, rgn_sched_info): New.
1395         (region_sched_info): Rename to rgn_const_sched_info.
1396         (deps_join): New, extracted from ...
1397         (propagate_deps): ... here.
1398         (compute_block_dependences, debug_dependencies): Update for selective
1399         scheduling.
1400         (free_rgn_deps, compute_priorities): New functions.
1401         (sched_rgn_init, sched_rgn_finish, rgn_setup_region,
1402         sched_rgn_compute_dependencies): New functions.
1403         (schedule_region): Use them.
1404         (sched_rgn_local_init, sched_rgn_local_free, sched_rgn_local_finish,
1405         rgn_setup_common_sched_info, rgn_setup_sched_infos):
1406         New functions.
1407         (schedule_insns): Call new functions that were split out.
1408         (rgn_make_new_region_out_of_new_block): New.
1409         (get_rgn_sched_max_insns_priority): New.
1410         (rest_of_handle_sched, rest_of_handle_sched2): Call selective
1411         scheduling when appropriate.
1412         * sched-vis.c: Include insn-attr.h.
1413         (print_value, print_pattern): Make global.
1414         (print_rtl_slim, debug_bb_slim, debug_bb_n_slim): New functions.
1415         * target-def.h (TARGET_SCHED_ADJUST_COST_2,
1416         TARGET_SCHED_ALLOC_SCHED_CONTEXT, TARGET_SCHED_INIT_SCHED_CONTEXT,
1417         TARGET_SCHED_SET_SCHED_CONTEXT, TARGET_SCHED_CLEAR_SCHED_CONTEXT,
1418         TARGET_SCHED_FREE_SCHED_CONTEXT, TARGET_SCHED_GET_INSN_CHECKED_DS,
1419         TARGET_SCHED_GET_INSN_SPEC_DS, TARGET_SCHED_SKIP_RTX_P): New target
1420         hooks.  Initialize them to 0.
1421         (TARGET_SCHED_GEN_CHECK): Rename to TARGET_SCHED_GEN_SPEC_CHECK.
1422         * target.h (struct gcc_target): Add them.  Rename gen_check field to
1423         gen_spec_check.
1424         * flags.h (sel_sched_switch_set): Declare.
1425         * opts.c (sel_sched_switch_set): New variable.
1426         (decode_options): Unset flag_sel_sched_pipelining_outer_loops if
1427         pipelining is disabled from command line.
1428         (common_handle_option): Record whether selective scheduling is
1429         requested from command line.
1430         * doc/invoke.texi: Document new flags and parameters.
1431         * doc/tm.texi: Document new target hooks.
1432         * config/ia64/ia64.c (TARGET_SCHED_GEN_SPEC_CHECK): Define to ia64_gen_check.
1433         (dfa_state_size): Do not declare locally.
1434         * config/ia64/ia64.opt (msched-ar-data-spec): Default to 0.
1435         * config/rs6000/rs6000.c (rs6000_init_sched_context,
1436         rs6000_alloc_sched_context, rs6000_set_sched_context,
1437         rs6000_free_sched_context): New functions.
1438         (struct _rs6000_sched_context): New.
1439         (rs6000_sched_reorder2): Do not modify INSN_PRIORITY for selective
1440         scheduling.
1441         (rs6000_sched_finish): Do not run for selective scheduling.
1442
1443 2008-08-31  Jan Hubicka  <jh@suse.cz>
1444
1445         * frv.c (frv_rtx_costs): Update forward declaration.
1446         * spu.c (spu_rtx_costs): Likewise.
1447         * pdp11.c: Include df.h
1448         (pdp11_output_function_epilogue): Use df_set_regs_ever_live.
1449         * m68hc11.c (m68hc11_gen_highpart): Fix call of gen_rtx_SUBREG.
1450         (m68hc11_rtx_costs_1): Fix call of rtx_cost.
1451         * iq2000.c (iq2000_address_cost): Add speed argument.
1452         (iq2000_rtx_costs): Likewise.
1453         * mn10300.c (mn10300_address_cost_1): Remove speed argument;
1454         update call of mn10300_address_cost.
1455         * mcore.c: Include df.h
1456         (mcore_rtx_costs): Update prototype.
1457         * score3.c: Include df.h
1458         (score3_rtx_costs): Remove speed argument.
1459         * score7.c: Include df.h
1460         (score7_address_cost): Remove speed argument.
1461         * score-protos.h (score_address_cost): Update prototype.
1462         * score.c: Include df.h
1463         (score_rtx_costs): Update call of costs functions.
1464         * v850.c (v850_rtx_costs): Add bool argument.
1465
1466 2008-08-31  Hans-Peter Nilsson  <hp@axis.com>
1467
1468         * config/cris/cris.c (cris_rtx_costs): Correct call to rtx_costs.
1469
1470 2008-08-31  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
1471
1472         * gthr-win32.h (__gthread_setspecific): Use CONST_CAST2.
1473         * config/i386/gthr-win32.c (__gthread_setspecific): Same.
1474
1475 2008-08-31  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
1476
1477         * mkmap-flat.awk: Add option pe_dll.
1478         * config/i386/t-cygming (SHLIB_LINK): Support building libgcc_s.
1479         * config/i386/t-cygwin (SHLIB_LC): Add.
1480         * config/i386/t-mingw32 (SHLIB_LC): Add.
1481         * config/i386/mingw32.h (SHARED_LIBGCC_UNDEFS_SPEC): New.
1482         (SUBTARGET_EXTRA_SPECS): Use SHARED_LIBGCC_UNDEFS_SPEC.
1483         (LINK_SPEC): Support libgcc_s.
1484         (LIBGCC_SPEC): Support libgcc_s.
1485         (LIBGCC_SONAME): New.
1486
1487 2008-08-31  Jan Hubicka  <jh@suse.cz>
1488
1489         * predict.c (maybe_hot_bb_p, maybe_hot_edge_p): Previous commit
1490         mistakely had old version of patch.
1491
1492         * ipa-cp.c (ipcp_need_original_clone_p): Remove.
1493         (ipcp_estimate_growth): New.
1494         (ipcp_insert_stage): Use ipcp_estimate_growth.
1495         * profile.c (branch_prob): When reading failed, do not consider
1496         profile as read.
1497
1498 2008-08-31  Jan Hubicka  <jh@suse.cz>
1499
1500         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Check that
1501         loop is optimized for speed.
1502
1503 2008-08-31  Richard Guenther  <rguenther@suse.de>
1504
1505         PR middle-end/37289
1506         * fold-const.c (fold_binary): Retain conversions in folding
1507         ~A + 1 to -A.
1508
1509 2008-08-31  Jan Hubicka  <jh@suse.cz>
1510
1511         * postreload-gcse.c (eliminate_partially_redundant_loads): Use optimize_bb_for_size_p.
1512         * predict.c (maybe_hot_frequency_p): Make inline.
1513         (maybe_hot_count_p): Break out from ...
1514         (maybe_hot_bb_p): ... this one.
1515         (maybe_hot_edge_p): Simplify.
1516         * basic-block.h (probably_cold_bb_p): Remove.
1517
1518 2008-08-31  Jakub Jelinek  <jakub@redhat.com>
1519
1520         PR target/37168
1521         * config/rs6000/rs6000-protos.h (const_vector_elt_as_int): Add
1522         prototype.
1523         * config/rs6000/rs6000.c (const_vector_elt_as_int): No longer static.
1524         * config/rs6000/altivec.md (easy_vector_constant_add_self splitter):
1525         Also split V4SFmode.
1526         * config/rs6000/predicates.md (easy_vector_constant_add_self): Handle
1527         vector float modes.
1528
1529 2008-08-31  Jan Hubicka  <jh@suse.cz>
1530
1531         * predict.c (PROB_VERY_LIKELY): Make small enough so things
1532         become cold.
1533         * predict.def (PRED_NORETURN_CALL, PRED_COLD_CALL): Use it.
1534
1535 2008-08-31  Jakub Jelinek  <jakub@redhat.com>
1536
1537         PR debug/37287
1538         * dwarf2out.c (gen_namespace_die): For DECL_EXTERNAL modules don't
1539         add source coords.
1540
1541         * dwarf2out.c (native_encode_initializer): Subtract min_index for
1542         non-range array index.  Handle VIEW_CONVERT_EXPR and NON_LVALUE_EXPR.
1543
1544 2008-08-31  Jan Hubicka  <jh@suse.cz>
1545
1546         * sparc.h (BRANCH_COST): Fix macro definition.
1547         * avr.c (avr_operand_rtx_cost): Add speed argument.
1548         (avr_rtx_costs): Update calls of avr_operand_rtx_cost.
1549
1550 2008-08-31  Richard Guenther  <rguenther@suse.de>
1551
1552         * tree-cfg.c (verify_types_in_gimple_assign): Dump mismatched
1553         types instead of operands.  Re-instantiate verifying of
1554         binary expression operands.
1555
1556 2008-08-30  Jan Hubicka  <jh@suse.cz>
1557
1558         * fwprop.c (should_replace_address): Add speed attribute.
1559         (PR_OPTIMIZE_FOR_SPEED): New flag.
1560         (propagate_rtx_1): Use it.
1561         (propagate_rtx): Set it.
1562         (try_fwprop_subst): Update call of rtx_costs.
1563         (forward_propagate_and_simplify): LIkewise.
1564         * hooks.c (hook_int_rtx_bool_0): New
1565         (hook_bool_rtx_int_int_intp_false): Replace by ...
1566         (hook_bool_rtx_int_int_intp_bool_false): .. thisone.
1567         * hooks.h (hook_int_rtx_bool_0): New
1568         (hook_bool_rtx_int_int_intp_false): Replace by ...
1569         (hook_bool_rtx_int_int_intp_bool_false): .. thisone.
1570         * optabs.c (avoid_expensive_constant): UPdate call of rtx_cost.
1571         (prepare_cmp_insn): UPdate call of rtx_cost.
1572         * postreload.c (reload_cse_simplify_set): Update call of rtx_cost.
1573         (reload_cse_simplify_operands): Update call of rtx_cost.
1574         (reload_cse_move2add): call of rtx_cost.
1575         * target.h (struct gcc_target): Update rtx_costs and address_costs.
1576         * rtlanal.c (rtx_cost): Add speed argument.
1577         (address_cost): Add speed argument
1578         (default_address_cost): Likewise.
1579         (insn_rtx_cost): Likewise.
1580         * cfgloopanal.c (seq_cost): Add speed argument.
1581         (target_reg_cost, target_spill_cost): Turn to array.
1582         (init_set_costs): Update for speed.
1583         (estimate_reg_pressure_cost): Add speed argument.
1584         * auto-inc-dec.c (attempt_change): Update call of rtx_cost.
1585         * dojump.c (prefer_and_bit_test): UPdate call of rtx_cost.
1586         * tree-ssa-loop-ivopts.c (struct ivopts_data): New field speed.
1587         (seq_cost): Add speed argument.
1588         (computation_cost): Add speed arugment.
1589         (add_cost, multiply_by_const, get_address_cost): add speed argument.
1590         (force_expr_to_var_cost): Update for profile info.
1591         (force_var_cost): Likewise.
1592         (split_address_cost): Likewise.
1593         (ptr_difference_cost): Likewise.
1594         (difference_cost): Likewise.
1595         (get_computation_cost_at): Likewise.
1596         (determine_iv_cost): Likewise.
1597         (ivopts_global_cost_for_size): Likewise.
1598         (rewrite_use_address): Likewise.
1599         (tree_ssa_iv_optimize_loop): Initialize speed field.
1600         * cse.c (optimize_this_for_speed_p): New static var.
1601         (notreg_cost): Update call of rtx_cost.
1602         (cse_extended_basic_block): set optimize_this_for_speed_p.
1603         * ifcvt.c (cheap_bb_rtx_cost_p): Update call of rtx_cost.
1604         (noce_try_cmove_arith): Likewise.
1605         (noce_try_sign_mask): LIkewise.
1606         * expr.c (compress_float_constant): Update rtx_cost calls.
1607         * tree-ssa-address.c (most_expensive_mult_to_index): Add speed argument.
1608         (addr_to_parts): Likewise.
1609         (create_mem_ref): Likewise.
1610         * dse.c (find_shift_sequence): Add speed argument.
1611         (replace_read): Update call.
1612         * calls.c (precompute_register_parameters): Update call of rtx_cost.
1613         * expmed.c (sdiv_pow2_cheap, smod_pow2_cheap, zero_cost, add_cost,
1614         * neg_cost, shift_cost, shiftadd_cost,
1615         shiftsub_cost, mul_cost, sdiv_cost, udiv_cost ,mul_widen_cost,
1616         mul_highpart_cost): Increase dimension.
1617         (init_expmed): Initialize for both size and speed.
1618         (expand_shift): Use profile.
1619         (synth_mult): Use profile.
1620         (choose_mult_variant): Use profile.
1621         (expand_mult): Use profile.
1622         (expand_mult_highpart_optab): Use profile.
1623         (expand_mult_highpart): Use profile.
1624         (expand_smod_pow2): Use profile.
1625         (expand_divmod): Use profile.
1626         * simplify-rtx.c (simplify_binary_operation_1): Update call of rtx_cost.
1627         * loop-invariant.c (create_new_invariant): Use profile.
1628         (gain_for_invariant): Add speed parameter.
1629         (best_gain_for_invariant): Likewise.
1630         (find_invariants_to_move): Likewise.
1631         (move_single_loop_invariants): Set it.
1632         * target-def.h (TARGET_RTX_COSTS): Use hook.
1633         * rtl.h (rtx_cost, address_cost, insn_rtx_cost): Update prototpe.
1634         (optimize_insn_for_size_p, optimize_insn_for_speed_p): Declare.
1635         * output.h (default_address_cost): Update prototype.
1636         * combine.c (optimize_this_for_speed_p): New static var.
1637         (combine_validate_cost): Update call of rtx_cost.
1638         (combine_instructions): Set optimize_this_for_speed_p.
1639         (expand_compound_operation): Update call of rtx_cost.
1640         (make_extraction):Update call of rtx_cost.
1641         (force_to_mode):Update call of rtx_cost.
1642         (distribute_and_simplify_rtx):Update call of rtx_cost.
1643         * cfgloop.h (target_reg_cost, target_spill_cost): Turn to array.
1644         (estimate_reg_pressure_cost): Update prototype.
1645         * tree-flow.h (multiply_by_cost, create_mem_ref): Update prototype.
1646         * basic-block.h (optimize_insn_for_size_p, optimize_insn_for_speed_p):
1647         Remove.
1648         * config/alpha/alpha.c (alpha_rtx_costs): Update.
1649         (alpha_rtx_costs): Update.
1650         * config/frv/frv.c (frv_rtx_costs): Update.
1651         * config/s390/s390.c (s390_rtx_costs): Update.
1652         * config/m32c/m32c.c (m32c_memory_move_cost): Update.
1653         (m32c_rtx_costs): Update.
1654         * config/spu/spu.c (TARGET_ADDRESS_COST): Upate.
1655         (spu_rtx_costs): Update.
1656         * config/sparc/sparc.c (sparc_rtx_costs): Update.
1657         * config/m32r/m32r.c (m32r_rtx_costs): Update.
1658         * config/i386/i386.c (:ix86_address_cost): Update.
1659         (ix86_rtx_costs): Update.
1660         * config/sh/sh.c (sh_rtx_costs, sh_address_cost): Update.
1661         * config/pdp11/pdp11.c (pdp11_rtx_costs): Update.
1662         * config/avr/avr.c (avr_rtx_costs, avr_address_cost): Update.
1663         * config/crx/crx.c (crx_address_cost): Update.
1664         * config/xtensa/xtensa.c (xtensa_rtx_costs): Update.
1665         * config/stormy16/stormy16.c
1666         (xstormy16_address_cost, xstormy16_rtx_costs): Update.
1667         * config/m68hc11/m68hc11.c
1668         (m68hc11_address_cost, m68hc11_rtx_costs): Update.
1669         * config/cris/cris.c (cris_rtx_costs, cris_address_cost): Update.
1670         * config/iq2000/iq2000.c (iq2000_rtx_costs, iq2000_address_cost): Update.
1671         * config/mn10300/mn10300.c (mn10300_address_cost, mn10300_rtx_costs): Update
1672         * config/ia64/ia64.c (ia64_rtx_costs): Update.
1673         * config/m68k/m68k.c (m68k_rtx_costs): Update.
1674         * config/rs6000/rs6000.c (rs6000_rtx_costs): Update.
1675         * config/arc/arc.c (arc_rtx_costs, arc_address_cost): Update.
1676         * config/mcore/mcore.c (TARGET_ADDRESS_COST): Update.
1677         (mcore_rtx_costs): update.
1678         * config/score/score3.c (score3_rtx_costs): Update.
1679         * config/score/score7.c (score7_rtx_costs): Update.
1680         * config/score/score3.h (score3_rtx_costs):Update.
1681         * config/score/score7.h (score7_rtx_costs): Update.
1682         * config/score/score.c (score_rtx_costs): Update.
1683         * config/arm/arm.c (arm_address_cost): Update.
1684         (arm_rtx_costs_1): Update.
1685         (arm_rtx_costs_1): Update.
1686         (arm_size_rtx_costs): Update.
1687         (arm_size_rtx_costs): Update.
1688         (arm_size_rtx_costs): Update.
1689         (arm_xscale_rtx_costs): Update.
1690         (arm_thumb_address_cost): Update.
1691         * config/pa/pa.c (hppa_address_cost): Update.
1692         * config/mips/mips.c (mips_rtx_costs): Update.
1693         * config/vax/vax.c (vax_address_cost): Update.
1694         * config/h8300/h8300.c (h8300_shift_costs): Update.
1695         (h8300_rtx_costs): Update.
1696         * config/v850/v850.c (TARGET_ADDRESS_COST): Update.
1697         (v850_rtx_costs): Update.
1698         * config/mmix/mmix.c (mmix_rtx_costs, mmix_rtx_costs): Update.
1699         * config/bfin/bfin.c
1700         (bfin_address_cost): Update.
1701         (bfin_rtx_costs): Update.
1702         * stmt.c (lshift_cheap_p): Update.
1703
1704 2008-08-30  Andrew Pinski  <andrew_pinski@playstation.sony.com>
1705
1706         PR middle-end/36444
1707         * expmed.c (extract_bit_field_1): Check the mode size to make
1708         sure the vector modes have the same size.
1709
1710 2008-08-29  Michael Meissner  <gnu@the-meissners.org>
1711
1712         * dojump.c (top level): Include basic-block.h to declare
1713         optimize_insn_for_speed_p
1714
1715         * Makefile.in (dodump.h): Add $(BASIC_BLOCK_H) dependency.
1716
1717         * opts.h (CL_SAVE): New option class for marking options that are
1718         target specific options usable in the target attribute.
1719         (CL_MIN_OPTION_CLASS): CL_SAVE is now the minimum option.
1720
1721         * opt-functions.awk (switch_flags): Add CL_SAVE flag so backends
1722         can easily find the target specific options that are safe to use
1723         in the attribute or pragma.
1724
1725         * attribs.c (decl_attributes): Change #pragma GCC option to
1726         #pragma GCC target, and attribute((option(...))) to
1727         attribute((target(...))).
1728
1729         * doc/extend.texi (target attribute): Change from option
1730         attribute.  Delete push/pop/reset.
1731         (#pragma GCC target): Change from #pragma GCC option.  Delete
1732         push/pop/reset.
1733         (#pragma GCC push_options): Document new pragma.
1734         (#pragma GCC pop_options): Document new pragma.
1735         (#pragma GCC reset_options): Document new pragma.
1736
1737         * targhooks.c (default_target_option_valid_attribute_p): Add
1738         warning about port not supporting target attributes.
1739         (default_target_option_pragma_parse): New function, warn about
1740         #pragma GCC target not being supported.
1741
1742         * targhooks.h (default_target_option_pragma_parse): Add
1743         declaration.
1744
1745         * tree.h (TI_CURRENT_TARGET_PRAGMA): Rename from
1746         TI_CURRENT_OPTION_PRAGMA.
1747         (current_target_pragma): Rename from current_option_pragma.
1748
1749         * target.h: (struct target_option): Delete booleans for changing
1750         the optimization level on hot/cold functions.  Change signature of
1751         pragma_parse hook to take a second tree.
1752
1753         * c-tree.h (c_builtin_function_ext_scope): Add declaration.
1754
1755         * c-decl.c (c_builtin_function_ext_scope): New function, guarantee
1756         that the declaration is done at global scope.
1757
1758         * langhooks.c (add_builtin_function_common): Move most of the code
1759         from add_builtin_function here, calling the hook passed in.
1760         (add_builtin_function): Call add_builtin_function_common with
1761         standard builtin hook.
1762         (add_builtin_function_ext_scope): New function to add builtins to
1763         global scope.
1764
1765         * langhooks.h (struct lang_hooks): Add builtin_function_ext_scope
1766         hook.
1767         (add_builtin_function_ext_scope): Add declaration.
1768
1769         * c-pragma.c (handle_pragma_target): Rename from
1770         handle_pragma_option, #pragma GCC option is now #pragma GCC
1771         target.  Move warning about port not supporting target options to
1772         default pragma parse hook.  Remove push/pop/reset from this
1773         pragma.
1774         (handle_pragma_optimize): Remove push/pop/reset from this pragma.
1775         (option_stack): Delete static variable.
1776         (optimize_stack): Ditto.
1777         (optons_stack): New stack of saved target and optimization
1778         options.
1779         (handle_pragma_push_options): New function to handle pushing both
1780         target and optimization options.
1781         (handle_pragma_pop_options): New function to handle popping both
1782         target and optimization options.
1783         (handle_pragma_reset_options): New function to handle resetting
1784         both target and optimization options to their initial state.
1785         (init_pragma): Rename handle_pragma_option to
1786         handle_pragma_target.  Add support for push_options, pop_options,
1787         and reset_options pragmas.
1788
1789         * target-def.h (TARGET_OPTION_PRAGMA_PARSE): Change default to
1790         default_target_option_pragma_parse.
1791         (TARGET_OPTION_VALID_ATTRIBUTE_P): Change default to
1792         default_target_option_valid_attribute_p.
1793         (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): Delete.
1794         (TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION): Ditto.
1795         (TARGET_OPTION_HOOKS): Delete the fields for whether to change
1796         optimization level on hot/cold functions.
1797
1798         * tree-inline.c (tree_can_inline_p): Disable suppressing inlining
1799         if the caller and callee have different optimization levels.
1800
1801         * c-common.c (handle_target_attribute): Rename from
1802         handle_option_attribute, attribute((option(...))) is now
1803         attribute((target(...))).  Move warning if the port does not
1804         support target attributes to the default hook.
1805         (handle_hot_attribute): Delete code to change the optimization
1806         level of hot functions.
1807         (handle_cold_attribute): Ditto.
1808
1809         * config/i386/i386-c.c (ix86_pragma_target_parse): Take a second
1810         argument that is the binary tree options to use if there are no
1811         arguments.  Call ix86_valid_target_attribute_tree instead of
1812         ix86_valid_option_attribute_tree.
1813         (ix86_pragma_target_parse): Rename from ix86_pragma_option_parse.
1814         (ix86_register_pragmas): Use ix86_pragma_target_parse instead of
1815         ix86_pragma_option_parse.
1816
1817         * config/i386/i386-protos.h (ix86_valid_target_attribute_tree):
1818         Rename from ix86_valid_option_attribute_tree.
1819
1820         * config/i386/i386.c (ix86_add_new_builtins): New function to add
1821         new builtins when the ISA changes.
1822         (ix86_valid_target_attribute_tree): Rename from
1823         ix86_valid_option_attribute_tree.  Change callers.  If the
1824         function specified optimization options, use those as the starting
1825         point before setting up the target attributes.  If the
1826         optimization options were changed in the course of setting the
1827         target attributes, record the new optimization options.
1828         (ix86_valid_target_attribute_tree_inner_p): Rename from
1829         ix86_valid_option_attribute_tree_inner_p.  Change callers.  Call
1830         ix86_add_new_builtins if the ISA changed.
1831         (ix86_valid_target_attribute_p): Rename from
1832         ix86_valid_option_attribute_p.  Change callers.
1833         (enum ix86_builtins): Add IX86_BUILTIN_PCMOV to allow both
1834         __builtin_ia32_pcmov and __builtin_ia32_pcmov_v2di to be declared
1835         as delayed builtin functions.
1836         (struct builtin_isa): New structure to record builtin functions
1837         that should be delayed until the ISA for that function is used.
1838         (ix86_builtins_isa): Change from int to struct to track builtin
1839         functions we want to declare at some point.
1840         (def_builtin): If the front end can delay defining the builtin
1841         functions, don't create builtins for ISAs not part of the default
1842         options.
1843         (def_builtin_const): Ditto.
1844         (bdesc_multi_arg): Declare __builtin_ia32_pcmov and
1845         __builtin_ia32_pcmov_v2di to be different builtin functions.
1846         (ix86_expand_builtin): Changes due to ix86_builtins_isa now being
1847         a structure instead of an int.
1848         (TARGET_OPTION_VALID_ATTRIBUTE_P): Use
1849         ix86_valid_target_attribute_p, not ix86_valid_option_attribute_p.
1850         (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): Delete.
1851         (TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION): Ditto.
1852
1853         * config/ia64/ia64.h
1854         (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): Delete.
1855         (TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION): Ditto.
1856
1857         * langhooks-def.h (LANG_HOOKS_BUILTIN_FUNCTION_EXT_SCOPE): New
1858         hook, default to being the same as LANG_HOOKS_BUILTIN_FUNCTION.
1859         (LANG_HOOKS_INITIALIZER): Add
1860         LANG_HOOKS_BUILTIN_FUNCTION_EXT_SCOPE hook.
1861
1862 2008-08-30  Kaz Kojima  <kkojima@gcc.gnu.org>
1863
1864         PR target/37270
1865         * config/sh/sh.h (LEGITIMIZE_RELOAD_ADDRESS): Generate
1866         the reload address with the index register for SFmode
1867         access with a displacement.
1868
1869 2008-08-30  Jan Hubicka  <jh@suse.cz>
1870
1871         * optabs.c (expand_abs_nojump): Update BRANCH_COST call.
1872         * fold-cost.c (LOGICAL_OP_NON_SHORT_CIRCUIT, fold_truthop): Likewise.
1873         * dojump.c (do_jump): Likewise.
1874         * ifcvt.c (MAX_CONDITIONAL_EXECUTE): Likewise.
1875         (note-if_info): Add BRANCH_COST.
1876         (noce_try_store_flag_constants, noce_try_addcc, noce_try_store_flag_mask,
1877         noce_try_cmove_arith, noce_try_cmove_arith, noce_try_cmove_arith,
1878         noce_find_if_block, find_if_case_1, find_if_case_2): Use compuated
1879         branch cost.
1880         * expr.h (BRANCH_COST): Update default.
1881         * predict.c (predictable_edge_p): New function.
1882         * expmed.c (expand_smod_pow2, expand_sdiv_pow2, emit_store_flag):
1883         Update BRANCH_COST call.
1884         * basic-block.h (predictable_edge_p): Declare.
1885         * config/alpha/alpha.h (BRANCH_COST): Update.
1886         * config/frv/frv.h (BRANCH_COST): Update.
1887         * config/s390/s390.h (BRANCH_COST): Update.
1888         * config/spu/spu.h (BRANCH_COST): Update.
1889         * config/sparc/sparc.h (BRANCH_COST): Update.
1890         * config/m32r/m32r.h (BRANCH_COST): Update.
1891         * config/i386/i386.h (BRANCH_COST): Update.
1892         * config/i386/i386.c (ix86_expand_int_movcc): Update use of BRANCH_COST.
1893         * config/sh/sh.h (BRANCH_COST): Update.
1894         * config/pdp11/pdp11.h (BRANCH_COST): Update.
1895         * config/avr/avr.h (BRANCH_COST): Update.
1896         * config/crx/crx.h (BRANCH_COST): Update.
1897         * config/xtensa/xtensa.h (BRANCH_COST): Update.
1898         * config/stormy16/stormy16.h (BRANCH_COST): Update.
1899         * config/m68hc11/m68hc11.h (BRANCH_COST): Update.
1900         * config/iq2000/iq2000.h (BRANCH_COST): Update.
1901         * config/ia64/ia64.h (BRANCH_COST): Update.
1902         * config/rs6000/rs6000.h (BRANCH_COST): Update.
1903         * config/arc/arc.h (BRANCH_COST): Update.
1904         * config/score/score.h (BRANCH_COST): Update.
1905         * config/arm/arm.h (BRANCH_COST): Update.
1906         * config/pa/pa.h (BRANCH_COST): Update.
1907         * config/mips/mips.h (BRANCH_COST): Update.
1908         * config/vax/vax.h (BRANCH_COST): Update.
1909         * config/h8300/h8300.h (BRANCH_COST): Update.
1910         * params.def (PARAM_PREDICTABLE_BRANCH_OUTCOME): New.
1911         * doc/invoke.texi (predictable-branch-cost-outcome): Document.
1912         * doc/tm.texi (BRANCH_COST): Update.
1913
1914 2008-08-30  Samuel Tardieu  <sam@rfc1149.net>
1915
1916         PR target/37283
1917         * config/arm/arm.c (arm_optimization_options): Set
1918         flag_section_anchors to 2 instead of 1 to distinguish it from
1919         -fsection-anchors given explicitely on the command line.
1920
1921 2008-08-30  Richard Sandiford  <rdsandiford@googlemail.com>
1922
1923         * recog.c (split_insn): Consider attaching a REG_EQUAL note to the
1924         final insn of a split.
1925
1926 2008-08-30  Jan Hubicka  <jh@suse.cz>
1927
1928         * postreload-gcse.c (gate_handle_gcse2): Disable for functions
1929         optimized for speed.
1930         * final.c (compute_alignments): Use optimize_bb_for_size_p.
1931         * tree-call-cdce.c (gate_call_cdce): Use optimize_function_for_speed_p.
1932         * opts.c (flag_predictive_commoning_set, flag_unswitch_loops_set,
1933         flag_gcse_after_reload_set): New static vars.
1934         (common_handle_option): Enable those flags for profile-use.
1935         (decode_options): Remove optimize_size flags that are handled
1936         on higher granuality.
1937         * tree-vectorizer.c (vectorize_loops): Use
1938         optimize_loop_nest_for_speed_p.
1939         * tree-ssa-pre.c (do_pre): Use optimize_function_for_speed_p.
1940         * tree-predcom.c (tree_predictive_commoning): Use
1941         optimize_loop_for_speed_p.
1942         * varasm.c (assemble_start_function): Use optimize_function_for_speed_p.
1943         * bb-reorder.c (rest_of_handle_reorder_blocks): Likewise.
1944         * predict.c (optimize_loop_for_speed_p): Fix walk.
1945
1946 2008-08-30  Jan Hubicka  <jh@suse.cz>
1947
1948         * ipa-inline.c (cgraph_estimate_growth): Discover self recursive
1949         functions.
1950         (cgraph_decide_inlining_of_small_function): Use edge->count to detect
1951         profile presence locally.
1952
1953 2008-08-29  Joseph Myers  <joseph@codesourcery.com>
1954
1955         PR bootstrap/37086
1956         * tree-vrp.c (find_switch_asserts): Make idx volatile for GCC
1957         versions before 4.0.
1958
1959 2008-08-29  Jan Hubicka  <jh@suse.cz>
1960
1961         * tree-inline.c (insert_init_stmt): Insert sequence even when
1962         not in SSA form.
1963
1964 2008-08-29  Jeff Law  <law@redhat.com>
1965
1966         * mn10300.c (mn10300_secondary_reload_class): We need secondary
1967         reloads for AM33-2 if IN is a pseudo with an equivalent memory
1968         location and class is an FP register.
1969
1970 2008-08-29  Jan Hubicka  <jh@suse.cz>
1971
1972         * see.c (see_merge_one_def_extension): Silence used uninitialized
1973         warning.
1974         * matrix-reorg.c (check_allocation_function): Likewise.
1975         * config/i386/driver-i386.c (detect_caches_amd): Likewise.
1976
1977 2008-08-29  Jakub Jelinek  <jakub@redhat.com>
1978
1979         PR c/37261
1980         * fold-const.c (fold_binary): In (X | C1) & C2 canonicalization
1981         compute new & and | in type rather than TREE_TYPE (arg0).
1982
1983         * dwarf2out.c (fortran_common): Update comment.
1984         (gen_variable_die): Swap com_die and var_die variables in Fortran
1985         COMMON block handling code.
1986
1987         * dwarf2out.c (descr_info_loc): Handle VAR_DECL.
1988
1989         * dwarf2out.c (gen_const_die): New function.
1990         (size_of_die, value_format, output_die): Output larger
1991         dw_val_class_vec using DW_FORM_block2 or DW_FORM_block4.
1992         (native_encode_initializer): New function.
1993         (tree_add_const_value_attribute): Call it.
1994         (gen_decl_die, dwarf2out_decl): Handle CONST_DECLs if is_fortran ().
1995
1996         * dwarf2out.c (gen_formal_parameter_die, gen_variable_die): For
1997         DECL_BY_REFERENCE decls don't pass TREE_READONLY and
1998         TREE_THIS_VOLATILE to add_type_attribute.
1999
2000         * dwarf2out.c (add_subscript_info): Stop on Fortran TYPE_STRING_FLAG
2001         types.
2002         (gen_array_type_die): Emit DW_TAG_string_type for Fortran character
2003         types.
2004
2005         * dwarf2out.c (loc_by_reference): New function.
2006         (add_location_or_const_value_attribute): Use it.
2007
2008         PR fortran/23057
2009         * dwarf2out.c (gen_variable_die): Represent Fortran COMMON vars
2010         as DW_TAG_variable children of DW_TAG_common_block rather than
2011         DW_TAG_member children.  Put DW_AT_external to individual
2012         DW_TAG_variable DIEs, not to DW_TAG_common_block.
2013
2014         * dwarf2out.c (add_bound_info): If lookup_decl_die failed, try
2015         loc_descriptor_from_tree_1.
2016
2017         PR fortran/29635
2018         PR fortran/23057
2019         * debug.h (struct gcc_debug_hooks): Add NAME and CHILD
2020         arguments to imported_module_or_decl.
2021         (debug_nothing_tree_tree): Removed.
2022         (debug_nothing_tree_tree_tree_bool): New prototype.
2023         * debug.c (do_nothing_debug_hooks): Adjust.
2024         (debug_nothing_tree_tree): Removed.
2025         (debug_nothing_tree_tree_tree_bool): New function.
2026         * dwarf2out.c (is_symbol_die): Handle DW_TAG_module.
2027         (gen_variable_die): Put all common vars for the
2028         same COMMON block under one DW_TAG_common_block.
2029         (declare_in_namespace): Return new context_die, for Fortran
2030         return the module DIE instead of adding extra declarations into
2031         the namespace.
2032         (gen_type_die_with_usage): Adjust declare_in_namespace caller.
2033         (gen_namespace_die): If is_fortran (), generate DW_TAG_module
2034         instead of DW_TAG_namespace.  If DECL_EXTERNAL is set, add
2035         DW_AT_declaration.
2036         (dwarf2out_global_decl): Don't skip Fortran global vars.
2037         (gen_decl_die): Likewise.  Adjust declare_in_namespace callers.
2038         (dwarf2out_imported_module_or_decl): Add NAME and CHILD arguments.
2039         If NAME is non-NULL, add DW_AT_name.  If CHILD is non-NULL, put
2040         DW_TAG_imported_declaration as child of previous
2041         DW_TAG_imported_module.
2042         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Adjust.
2043         * sdbout.c (sdb_debug_hooks): Likewise.
2044         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
2045
2046 2008-08-29  Jan Hubicka  <jh@suse.cz>
2047
2048         * cgraph.c (cgraph_remove_node): Do not remove nested nodes.
2049
2050         * cgraph.h (cgraph_maybe_hot_edge_p): Declare.
2051         * ipa-cp.c (n_cloning_candidates): New static variable.
2052         (ipcp_print_profile_data, ipcp_function_scale_print): Forward declare.
2053         (ipcp_print_all_lattices): Improve debug output.
2054         (ipcp_cloning_candidate_p): New function.
2055         (ipcp_initialize_node_lattices): Use it.
2056         (ipcp_init_stage): Do only analyzis here; prettier debug output.
2057         (ipcp_propagate_stage): Prettier debug output.
2058         (ipcp_iterate_stage): Initialize latices here; prettier debug output.
2059         (ipcp_print_all_structures): Remove.
2060         (ipcp_need_redirect_p): Test !n_cloning_candidates.
2061         (ipcp_insert_stage): Prettier debug output; call
2062         cgraph_remove_unreachable_nodes before propagating.
2063         (pass_ipa_cp): Schedule function removal pass.
2064         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Better
2065         debug output.
2066         (cgraph_maybe_hot_edge_p): Move to ...
2067         * predict.c (cgraph_maybe_hot_edge_p) ... here.
2068         * opts.c (flag_ipa_cp_set, flag_ipa_cp_clone_set): New.
2069         (common_handle_option): Set them; enable ipa-cp when profiling.
2070         * ipa-prop.c (ipa_print_node_jump_functions): Prettier output.
2071         (ipa_print_all_jump_functions): Likewise.
2072         (ipa_print_all_tree_maps, ipa_print_node_param_flags): Remove.
2073         (ipa_print_node_params, ipa_print_all_params): New.
2074         * ipa-prop.h (ipa_print_all_tree_maps, ipa_print_node_param_flags,
2075         ipa_print_all_param_flags): Remove.
2076         (ipa_print_node_params, ipa_print_all_params): New.
2077
2078 2008-08-29  Bob Wilson  <bob.wilson@acm.org>
2079
2080         * config/xtensa/xtensa.c (xtensa_secondary_reload_class): Revert
2081         change from 2008-04-03.
2082         * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Define.
2083
2084 2008-08-29  Vladimir Makarov  <vmakarov@redhat.com>
2085
2086         PR rtl-opt/37251
2087
2088         * ira-color.c (push_allocnos_to_stack): Truncate
2089         removed_splay_allocno_vec.
2090
2091 2008-08-29  Vladimir Makarov  <vmakarov@redhat.com>
2092
2093         PR rtl-opt/37243
2094         * ira-color (ira_fast_allocation): Don't assign hard registers to
2095         global allocnos.
2096
2097 2008-08-29  Jan Hubicka  <jh@suse.cz>
2098
2099         PR middle-end/37278
2100         * predict.c (optimize_loop_nest_for_speed_p): Do not ICE
2101         for cold internal loops.
2102
2103 2008-08-29  Richard Guenther  <rguenther@suse.de>
2104
2105         * tree-ssa-structalias.c (create_variable_info_for): Do not
2106         create fields for heap vars or vars with a noalias state.
2107         For NO_ALIAS_ANYTHING variables add a self-constraint, not one
2108         from ESCAPED.
2109
2110 2008-08-29  Richard Guenther  <rguenther@suse.de>
2111
2112         * common.opt (ftree-store-ccp): Mark as preserved for
2113         backward compatibility.
2114         * doc/invoke.texi (-ftree-store-ccp): Remove documentation.
2115         * tree-pass.h (pass_store_ccp): Remove.
2116         * tree-ssa-propagate.h (struct prop_value_d): Remove mem_ref field.
2117         (first_vdef): Remove declaration.
2118         (get_value_loaded_by): Likewise.
2119         * tree-ssa-ccp.c (do_store_ccp): Remove.
2120         (get_default_value): Simplify as do_store_ccp is always false
2121         now.  Do not initialize mem_ref.
2122         (set_value_varying): Likewise.
2123         (canonicalize_float_value): Likewise.
2124         (set_lattice_value): Likewise.
2125         (likely_value): Likewise.
2126         (surely_varying_stmt_p): Likewise.
2127         (ccp_initialize): Likewise.
2128         (ccp_lattice_meet): Likewise.
2129         (ccp_visit_phi_node): Likewise.
2130         (ccp_fold): Likewise.
2131         (evaluate_stmt): Likewise.
2132         (visit_assignment): Likewise.
2133         (ccp_visit_stmt): Likewise.
2134         (execute_ssa_ccp): Fold into ...
2135         (do_ssa_ccp): ... this.
2136         (do_ssa_store_ccp): Remove.
2137         (gate_store_ccp): Likewise.
2138         (pass_store_ccp): Likewise.
2139         * tree-ssa-copy.c (copy_prop_visit_phi_node): Do not
2140         initialize mem_ref.
2141         * tree-ssa-propagate.c (first_vdef): Remove.
2142         (get_value_loaded_by): Likewise.
2143         (replace_vuses_in): Likewise.
2144         (substitute_and_fold): Do not call replace_vuses_in.
2145         * opts.c (decode_options): Do not set flag_tree_store_ccp.
2146
2147 2008-08-29  Richard Guenther  <rguenther@suse.de>
2148
2149         PR middle-end/37236
2150         * tree-ssa-structalias.c (intra_create_variable_infos): Mark
2151         PARAM_NOALIAS tags with is_heapvar.
2152         * tree-ssa-operands.c (access_can_touch_variable): Offset
2153         based tests do not apply for heapvars.  Fix offset test.
2154
2155 2008-08-29  Jan Hubicka  <jh@suse.cz>
2156
2157         * doc/invoke.texi (-fipa-cp): Enabled by default at -O2/-Os/-O3
2158         (-fipa-cp-clone): Enabled by default at -O3.
2159         * opts.c (decode_options): Enable ipa-cp at -O2, ipa-cp-clone at -O3;
2160         make ipa-cp-clone to imply ipa-cp; disable cloning at -Os.
2161
2162 2008-08-29  Jan Hubicka  <jh@suse.cz>
2163
2164         * tree.c (build_function_type_skip_args, build_function_decl_skip_args):
2165         New functions.
2166         * tree.h (build_function_type_skip_args, build_function_decl_skip_args):
2167         Declare.
2168         * gimple.c (giple_copy_call_skip_args): New function.
2169         (giple_copy_call_skip_args): Declare.
2170
2171         * cgraph.h (cgraph_function_versioning): Add skip_args arugmnet
2172         * ipa-cp.c (ipcp_node_not_modifiable_p): Rename to ...
2173         (ipcp_node_modifiable_p): ... this one; use tree_versionable_function_p.
2174         (ipcp_create_replace_map): Improve debug output.
2175         (ipcp_need_redirect_p): Return false when not clonning.
2176         (ipcp_update_callgraph): Skip args.
2177         (ipcp_insert_stage): UPdate call of !ipcp_node_modifiable_p;
2178         skip args.
2179         * cgraphunit.c (cgraph_function_versioning): Add skip_args argument.
2180         (save_inline_function_body): Update call of tree_function_versioning.
2181         * ipa-prop.c (ipa_edge_removal_hook): Do not ICE on unanalyzed nodes.
2182         * tree-inline.c (copy_arguments_for_versioning): Add skip_args argument.
2183         (tree_function_versioning): Likewise.
2184         * tree-inline.h (tree_function_versioning): Update prototype.
2185
2186 2008-08-29  Jan Hubicka  <jh@suse.cz>
2187
2188         * loop-unswitch.c (unswitch_single_loop): Use optimize_loop_for_speed_p.
2189         * tree-ssa-threadupdate.c (mark_threaded_blocks): Use optimize_function_for_size_p.
2190         * tracer.c (ignore_bb_p): Use optimize_bb_for_size_p.
2191         * postreload-gcse.c (eliminate_partially_redundant_load): Use optimize_bb_for_size_p.
2192         * value-prof.c (gimple_divmod_fixed_value_transform,
2193         gimple_mod_pow2_value_transform, gimple_mod_subtract_transform,
2194         gimple_stringops_transform): Use optimize_bb_for_size_p.
2195         * ipa-cp.c (ipcp_insert_stage): Use optimize_function_for_size_p.
2196         * final.c (compute_alignments): Use optimize_function_for_size_p.
2197         * builtins.c (fold_builtin_cabs): Use optimize_function_for_speed_p.
2198         (fold_builtin_strcpy, fold_builtin_fputs): Use
2199         optimize_function_for_size_p.
2200         * fold-const.c (tree_swap_operands_p): Use optimize_function_for_size_p.
2201         * recog.c (relax_delay_slots): Likewise.
2202         * tree-ssa-math-opts.c (replace_reciprocal): Use optimize_bb_for_speed_p.
2203         (execute_cse_reciprocals): Use optimize_bb_for_size_p.
2204         * ipa-inline.c (cgraph_decide_recursive_inlining): Use
2205         optimize_function_for_size_p.
2206         (cgraph_decide_inlining_of_small_function): Use
2207         optimize_function_for_size_p.
2208         * global.c (find_reg): Use optimize_function_for_size_p.
2209         * opts.c (decode_options): Do not clear flag_tree_ch, flag_inline_functions,
2210         flag_unswitch_loops, flag_unroll_loops, flag_unroll_all_loops and
2211         flag_prefetch_loop_arrays. Those can work it out from profile.
2212         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Use
2213         optimize_loop_for_speed_p.
2214         * predict.c (optimize_bb_for_size_p, optimize_bb_for_speed_p): Constify
2215         argument.
2216         (optimize_loop_nest_for_size_p, optimize_loop_nest_for_speed_p): New.
2217         * tree-parloops.c (parallelize_loops): Use optimize_loop_for_size_p.
2218         * tree-eh.c (decide_copy_try_finally): Use optimize_function_for_size_p.
2219         * local-alloc.c (block_alloc): Pass BB pointer.
2220         (find_free_reg): Add BB pointer, use optimize_bb_for_size_p.
2221         * gcse.c (gcse_main): Use optimize_function_for_size_p.
2222         * loop-unroll.c (decide_unrolling_and_peeling): Use optimize_loop_for_size_p.
2223         (decide_peel_completely): Likewise.
2224         * tree-vect-analyze.c (vect_mark_for_runtime_alias_test): Use
2225         optimize_loop_for_size_p.
2226         (vect_enhance_data_refs_alignment): Likewise.
2227         * tree-ssa-coalesce.c (coalesce_cost): Add optimize_for_size argument.
2228         (coalesce_cost_bb, coalesce_cost_edge, create_outofssa_var_map): Update call.
2229         * cfgcleanup.c (outgoing_edges_match): Use optimize_bb_for_speed_p.
2230         (try_crossjump_bb): Use optimize_bb_for_size_p.
2231         * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Use
2232         optimize_loop_for_speed_p.
2233         * bb-reorder.c (find_traces_1_round): Likewise.
2234         (copy_bb): Use optimize_bb_for_speed_p.
2235         (duplicate_computed_gotos): Likewise.
2236         * basic-block.h (optimize_loop_nest_for_size_p,
2237         optimize_loop_nest_for_speed_p): New.
2238         * stmt.c (expand_case): Use optimize_insn_for_size_p.
2239
2240 2008-08-29  Tristan Gingold  <gingold@adacore.com>
2241
2242         * gcov.c (main): Call expandargv.
2243
2244 2008-08-29  Jan Hubicka  <jh@suse.cz>
2245
2246         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Check that loop
2247         is not cold.
2248         * predict.c (optimize_bb_for_size_p, optimize_bb_for_speed_p):
2249         Constify arguments.
2250         (optimize_loop_for_size_p, optimize_loop_for_speed_p): New functions.
2251         * basic-block.h (optimize_bb_for_size_p, optimize_bb_for_speed_p):
2252         Constify.
2253         (optimize_loop_for_size_p, optimize_loop_for_speed_p): Declare.
2254
2255 2008-08-29  Jan Hubicka  <jh@suse.cz>
2256
2257         * tree-pass.h (pass_strip_predict_hints): Declare.
2258         * predict.c (strip_builtin_expect): Rename to ...
2259         (strip_predict_hints): ... this one; strip also GIMPLE_PREDICT.
2260         (tree_bb_level_predictions): Do not remove GIMPLE_PREDICT.
2261         (tree_estimate_probability): Do not strip builtin_expect.
2262         (pass_strip_predict_hints): New pass.
2263         * tree-inline.c (expand_call_inline): When inlining cold function, predict
2264         it as unlikely.
2265         * passes.c (init_optimization_passes): Add pass_strip_predict_hints.
2266
2267 2008-08-29  Richard Guenther  <rguenther@suse.de>
2268
2269         PR tree-optimization/37207
2270         * tree-vrp.c (extract_range_from_binary_expr): Also try
2271         to constant fold if only one of the operands is a constant.
2272
2273 2008-08-29  Nick Clifton  <nickc@redhat.com>
2274
2275         * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Treat LABEL_REFs in
2276         the same way as SYMBOL_REFs.
2277
2278 2008-08-28  Bob Wilson  <bob.wilson@acm.org>
2279
2280         * config/xtensa/xtensa.md (<u>mulsidi3): Use a temporary register.
2281
2282 2008-08-28  Adam Nemet  <anemet@caviumnetworks.com>
2283
2284         * config/mips/mips.h (ISA_HAS_BBIT): New macro.
2285         * config/mips/mips.md (branch_likely): Remove const.  Fix
2286         comment formatting.
2287         (define_delay for type "branch"): Change to only apply for branch
2288         with likely variant.
2289         (define_delay for type "branch" and "branch_likely" no).  New delay
2290         definition.
2291         (equality_op): New code iterator.
2292         (bbv, bbinv): New code attributes.
2293         (*branch_bit<bbv><mode>, *branch_bit<bbv><mode>_inverted): New
2294         patterns.
2295
2296 2008-08-28  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
2297             Andrew Pinski  <pinskia@gcc.gnu.org>
2298
2299         PR 18050
2300         * c-common.c (verify_tree): Fix handling of ADDR_EXPR.
2301
2302 2008-08-28  Paolo Carlini  <paolo.carlini@oracle.com>
2303
2304         * gtrh-posix.h: Fix uses of _POSIX_TIMEOUTS per the normal Posix
2305         rule that a symbolic constant must be defined and >= 0 for the
2306         corresponding facility to be present at compile-time.
2307         * gthr-posix.c: Likewise.
2308
2309 2008-08-28  Adam Nemet  <anemet@caviumnetworks.com>
2310
2311         * config/mips/mips.h (ISA_HAS_DMUL3): New macro.
2312         * config/mips/mips.md (D): New mode attribute.
2313         (mulsi3, muldi3): Merge it into ...
2314         (mul<mode>3): ... new template.  Use _mul3 ending for 3-op
2315         patterns.
2316         (muldi3_mul3): New pattern.
2317         (mulsi3_mult3): Rename to mulsi3_mul3.
2318
2319 2008-08-28  Jan Hubicka  <jh@suse.cz>
2320
2321         * expmed.c (store_bit_field_1): Be prepared for movstrict expander
2322         to fail.
2323         * predict.c (always_optimize_for_size_p): Rename to ...
2324         (optimize_function_for_size): ... this one; make extern.
2325         (optimize_function_for_speed_p): New.
2326         (optimize_bb_for_size_p, optimize_bb_for_size_p,
2327         optimize_edge_for_size_p,optimize_edge_for_size_p,
2328         optimize_insn_for_size_p, optimize_insn_for_size_p): Update.
2329         * basic-block.h (optimize_function_for_size_p,
2330         optimize_function_for_speed_p): Declare.
2331         * i386.md (optimize_size checks): Replace them by appropriate
2332         predicate.
2333         (standard_80387_constant_p, ix86_compute_frame_layout,
2334         ix86_expand_epilogue, ix86_decompose_address,
2335         print_operand, emit_i387_cw_initialization,
2336         inline_memory_move_cost, ix86_pad_returns,
2337         ix86_reorg): Replace optimize_size checks.
2338
2339 2008-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
2340
2341         * rtl.h (simplify_subreg_regno): Declare.
2342         * rtlanal.c (simplify_subreg_regno): New function, split out from...
2343         * simplify-rtx.c (simplify_subreg): ...here.
2344         * reload.c (find_reloads): Use simplify_subreg_regno instead of
2345         subreg_offset_representable_p.
2346
2347 2008-08-28  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
2348
2349         PR c/30949
2350         * c-typeck.c (convert_for_assignment): Give a note describing what
2351         was passed and what was expected.
2352
2353 2008-08-28  Joey Ye  <joey.ye@intel.com>
2354
2355         * doc/extend.texi: Document AVX built-in functions.
2356         * doc/invoke.texi: Document -mavx.
2357
2358 2008-08-28  H.J. Lu  <hongjiu.lu@intel.com>
2359             Joey Ye  <joey.ye@intel.com>
2360             Xuepeng Guo  <xuepeng.guo@intel.com>
2361
2362         * config.gcc (extra_headers): Add gmmintrin.h for x86 and x86-64.
2363
2364         * config/i386/cpuid.h (bit_FMA): New.
2365         (bit_XSAVE): Likewise.
2366         (bit_OSXSAVE): Likewise.
2367         (bit_AVX): Likewise.
2368
2369         * config/i386/gas.h (ASM_OUTPUT_OPCODE): Undefine before
2370         define.  Use ASM_OUTPUT_AVX_PREFIX.
2371
2372         * config/i386/gmmintrin.h: New.
2373
2374         * config/i386/i386.c (x86_64_reg_class): Add X86_64_AVX_CLASS.
2375         (OPTION_MASK_ISA_AVX_SET): New.
2376         (OPTION_MASK_ISA_FMA_SET): Likewise.
2377         (OPTION_MASK_ISA_AVX_UNSET): Likewise.
2378         (OPTION_MASK_ISA_FMA_SET): Likewise.
2379         (OPTION_MASK_ISA_SSE4_2_UNSET): Updated.
2380         (ix86_handle_option): Handle OPT_mavx and OPT_mfma.
2381         (pta_flags): Add PTA_AVX and PTA_FMA.
2382         (override_options): Handle PTA_AVX and PTA_FMA.
2383         (init_cumulative_args): Handle warn_avx.
2384         (classify_argument): Return 0 for COImode and OImode.  Return
2385         1 and X86_64_AVX_CLASS for 256bit vector types.
2386         (examine_argument): Handle X86_64_AVX_CLASS.
2387         (construct_container): Likewise.
2388         (function_arg_advance_32): Pass OImode and 256bit vector types
2389         in AVX register.
2390         (function_arg_advance_64): Take a new argument to indicate if a
2391         parameter is named.  Handle 256bit vector types.  Return
2392         immediately for unnamed 256bit vector mode parameters.
2393         (function_arg_advance): Updated.
2394         (function_arg_32): Add comments for TImode.  Handle OImode
2395         and 256bit vector types.
2396         (function_arg_64): Take a new argument to indicate if a
2397         parameter is named.  Handle 256bit vector types.  Return NULL
2398         for unnamed 256bit vector mode parameters.
2399         (function_arg): Updated.
2400         (setup_incoming_varargs_64): Support
2401         AVX encoding for *sse_prologue_save_insn.
2402         (ix86_gimplify_va_arg): Handle 256bit vector mode parameters.
2403         (standard_sse_constant_p): Return -2 for all 1s if SSE2 isn't
2404         enabled.  For all 1s in 256bit vector modes, return 3 if AVX is
2405         enabled, otherwise return -3.
2406         (standard_sse_constant_opcode): Handle AVX and 256bit vector
2407         modes.
2408         (print_reg): Support AVX registers.  Handle 'x' and 't'.
2409         Handle 'd' to duplicate the operand.
2410         (print_operand): Likewise.  Also support AVX vector compare
2411         instructions.
2412         (output_387_binary_op): Support AVX.
2413         (output_fp_compare): Likewise.
2414         (ix86_expand_vector_move_misalign): Likewise.
2415         (ix86_attr_length_vex_default): New.
2416         (ix86_builtins): Add IX86_BUILTIN_ADDPD256,
2417         IX86_BUILTIN_ADDPS256, IX86_BUILTIN_ADDSUBPD256,
2418         IX86_BUILTIN_ADDSUBPS256, IX86_BUILTIN_ANDPD256,
2419         IX86_BUILTIN_ANDPS256, IX86_BUILTIN_ANDNPD256,
2420         IX86_BUILTIN_ANDNPS256, IX86_BUILTIN_BLENDPD256,
2421         IX86_BUILTIN_BLENDPS256, IX86_BUILTIN_BLENDVPD256,
2422         IX86_BUILTIN_BLENDVPS256, IX86_BUILTIN_DIVPD256,
2423         IX86_BUILTIN_DIVPS256, IX86_BUILTIN_DPPS256,
2424         IX86_BUILTIN_HADDPD256, IX86_BUILTIN_HADDPS256,
2425         IX86_BUILTIN_HSUBPD256, IX86_BUILTIN_HSUBPS256,
2426         IX86_BUILTIN_MAXPD256, IX86_BUILTIN_MAXPS256,
2427         IX86_BUILTIN_MINPD256, IX86_BUILTIN_MINPS256,
2428         IX86_BUILTIN_MULPD256, IX86_BUILTIN_MULPS256,
2429         IX86_BUILTIN_ORPD256, IX86_BUILTIN_ORPS256,
2430         IX86_BUILTIN_SHUFPD256, IX86_BUILTIN_SHUFPS256,
2431         IX86_BUILTIN_SUBPD256, IX86_BUILTIN_SUBPS256,
2432         IX86_BUILTIN_XORPD256, IX86_BUILTIN_XORPS256,
2433         IX86_BUILTIN_CMPSD, IX86_BUILTIN_CMPSS, IX86_BUILTIN_CMPPD,
2434         IX86_BUILTIN_CMPPS, IX86_BUILTIN_CMPPD256,
2435         IX86_BUILTIN_CMPPS256, IX86_BUILTIN_CVTDQ2PD256,
2436         IX86_BUILTIN_CVTDQ2PS256, IX86_BUILTIN_CVTPD2PS256,
2437         IX86_BUILTIN_CVTPS2DQ256, IX86_BUILTIN_CVTPS2PD256,
2438         IX86_BUILTIN_CVTTPD2DQ256, IX86_BUILTIN_CVTPD2DQ256,
2439         IX86_BUILTIN_CVTTPS2DQ256, IX86_BUILTIN_EXTRACTF128PD256,
2440         IX86_BUILTIN_EXTRACTF128PS256, IX86_BUILTIN_EXTRACTF128SI256,
2441         IX86_BUILTIN_VZEROALL, IX86_BUILTIN_VZEROUPPER,
2442         IX86_BUILTIN_VZEROUPPER_REX64, IX86_BUILTIN_VPERMILVARPD,
2443         IX86_BUILTIN_VPERMILVARPS, IX86_BUILTIN_VPERMILVARPD256,
2444         IX86_BUILTIN_VPERMILVARPS256, IX86_BUILTIN_VPERMILPD,
2445         IX86_BUILTIN_VPERMILPS, IX86_BUILTIN_VPERMILPD256,
2446         IX86_BUILTIN_VPERMILPS256, IX86_BUILTIN_VPERMIL2PD,
2447         IX86_BUILTIN_VPERMIL2PS, IX86_BUILTIN_VPERMIL2PD256,
2448         IX86_BUILTIN_VPERMIL2PS256, IX86_BUILTIN_VPERM2F128PD256,
2449         IX86_BUILTIN_VPERM2F128PS256, IX86_BUILTIN_VPERM2F128SI256,
2450         IX86_BUILTIN_VBROADCASTSS, IX86_BUILTIN_VBROADCASTSD256,
2451         IX86_BUILTIN_VBROADCASTSS256, IX86_BUILTIN_VBROADCASTPD256,
2452         IX86_BUILTIN_VBROADCASTPS256, IX86_BUILTIN_VINSERTF128PD256,
2453         IX86_BUILTIN_VINSERTF128PS256, IX86_BUILTIN_VINSERTF128SI256,
2454         IX86_BUILTIN_LOADUPD256, IX86_BUILTIN_LOADUPS256,
2455         IX86_BUILTIN_STOREUPD256, IX86_BUILTIN_STOREUPS256,
2456         IX86_BUILTIN_LDDQU256, IX86_BUILTIN_LOADDQU256,
2457         IX86_BUILTIN_STOREDQU256, IX86_BUILTIN_MASKLOADPD,
2458         IX86_BUILTIN_MASKLOADPS, IX86_BUILTIN_MASKSTOREPD,
2459         IX86_BUILTIN_MASKSTOREPS, IX86_BUILTIN_MASKLOADPD256,
2460         IX86_BUILTIN_MASKLOADPS256, IX86_BUILTIN_MASKSTOREPD256,
2461         IX86_BUILTIN_MASKSTOREPS256, IX86_BUILTIN_MOVSHDUP256,
2462         IX86_BUILTIN_MOVSLDUP256, IX86_BUILTIN_MOVDDUP256,
2463         IX86_BUILTIN_SQRTPD256, IX86_BUILTIN_SQRTPS256,
2464         IX86_BUILTIN_SQRTPS_NR256, IX86_BUILTIN_RSQRTPS256,
2465         IX86_BUILTIN_RSQRTPS_NR256, IX86_BUILTIN_RCPPS256,
2466         IX86_BUILTIN_ROUNDPD256, IX86_BUILTIN_ROUNDPS256,
2467         IX86_BUILTIN_UNPCKHPD256, IX86_BUILTIN_UNPCKLPD256,
2468         IX86_BUILTIN_UNPCKHPS256, IX86_BUILTIN_UNPCKLPS256,
2469         IX86_BUILTIN_SI256_SI, IX86_BUILTIN_PS256_PS,
2470         IX86_BUILTIN_PD256_PD, IX86_BUILTIN_SI_SI256,
2471         IX86_BUILTIN_PS_PS256, IX86_BUILTIN_PD_PD256,
2472         IX86_BUILTIN_VTESTZPD, IX86_BUILTIN_VTESTCPD,
2473         IX86_BUILTIN_VTESTNZCPD, IX86_BUILTIN_VTESTZPS,
2474         IX86_BUILTIN_VTESTCPS, IX86_BUILTIN_VTESTNZCPS,
2475         IX86_BUILTIN_VTESTZPD256, IX86_BUILTIN_VTESTCPD256,
2476         IX86_BUILTIN_VTESTNZCPD256, IX86_BUILTIN_VTESTZPS256,
2477         IX86_BUILTIN_VTESTCPS256, IX86_BUILTIN_VTESTNZCPS256,
2478         IX86_BUILTIN_PTESTZ256, IX86_BUILTIN_PTESTC256,
2479         IX86_BUILTIN_PTESTNZC256, IX86_BUILTIN_MOVMSKPD256
2480         and IX86_BUILTIN_MOVMSKPS256,
2481         (ix86_special_builtin_type): Add V32QI_FTYPE_PCCHAR,
2482         V8SF_FTYPE_PCV4SF, V8SF_FTYPE_PCFLOAT, V4DF_FTYPE_PCV2DF,
2483         V4DF_FTYPE_PCDOUBLE, V8SF_FTYPE_PCV8SF_V8SF,
2484         V4DF_FTYPE_PCV4DF_V4DF, V4SF_FTYPE_PCV4SF_V4SF,
2485         V2DF_FTYPE_PCV2DF_V2DF, VOID_FTYPE_PCHAR_V32QI,
2486         VOID_FTYPE_PFLOAT_V8SF, VOID_FTYPE_PDOUBLE_V4DF,
2487         VOID_FTYPE_PV8SF_V8SF_V8SF, VOID_FTYPE_PV4DF_V4DF_V4DF,
2488         VOID_FTYPE_PV4SF_V4SF_V4SF and VOID_FTYPE_PV2DF_V2DF_V2DF,
2489         (ix86_builtin_type): Add INT_FTYPE_V8SF_V8SF_PTEST,
2490         INT_FTYPE_V4DI_V4DI_PTEST, INT_FTYPE_V4DF_V4DF_PTEST,
2491         INT_FTYPE_V4SF_V4SF_PTEST, INT_FTYPE_V2DF_V2DF_PTEST,
2492         INT_FTYPE_V8SF, INT_FTYPE_V4DF, V8SI_FTYPE_V8SF, V8SI_FTYPE_V4SI,
2493         V8SF_FTYPE_V8SF, V8SF_FTYPE_V8SI, V8SF_FTYPE_V4SF,
2494         V4SI_FTYPE_V8SI, V4SI_FTYPE_V4DF, V4DF_FTYPE_V4DF,
2495         V4DF_FTYPE_V4SI, V4DF_FTYPE_V4SF, V4DF_FTYPE_V2DF,
2496         V4SF_FTYPE_V4DF, V4SF_FTYPE_V8SF, V2DF_FTYPE_V4DF,
2497         V8SF_FTYPE_V8SF_V8SF, V8SF_FTYPE_V8SF_V8SI,
2498         V4DF_FTYPE_V4DF_V4DF, V4DF_FTYPE_V4DF_V4DI,
2499         V4SF_FTYPE_V4SF_V4SI, V2DF_FTYPE_V2DF_V2DI,
2500         V8SF_FTYPE_V8SF_INT, V4SI_FTYPE_V8SI_INT, V4SF_FTYPE_V8SF_INT,
2501         V2DF_FTYPE_V4DF_INT, V4DF_FTYPE_V4DF_INT,
2502         V8SF_FTYPE_V8SF_V8SF_V8SF, V4DF_FTYPE_V4DF_V4DF_V4DF,
2503         V8SI_FTYPE_V8SI_V8SI_INT, V8SF_FTYPE_V8SF_V8SF_INT,
2504         V4DF_FTYPE_V4DF_V4DF_INT, V4DF_FTYPE_V4DF_V2DF_INT,
2505         V8SF_FTYPE_V8SF_V8SF_V8SI_INT, V4DF_FTYPE_V4DF_V4DF_V4DI_INT,
2506         V4SF_FTYPE_V4SF_V4SF_V4SI_INT and V2DF_FTYPE_V2DF_V2DF_V2DI_INT.
2507         (bdesc_special_args): Add IX86_BUILTIN_VZEROALL,
2508         IX86_BUILTIN_VZEROUPPER. IX86_BUILTIN_VZEROUPPER_REX64,
2509         IX86_BUILTIN_VBROADCASTSS, IX86_BUILTIN_VBROADCASTSD256,
2510         IX86_BUILTIN_VBROADCASTSS256, IX86_BUILTIN_VBROADCASTPD256,
2511         IX86_BUILTIN_VBROADCASTPS256, IX86_BUILTIN_LOADUPD256,
2512         IX86_BUILTIN_LOADUPS256, IX86_BUILTIN_STOREUPD256,
2513         IX86_BUILTIN_STOREUPS256, IX86_BUILTIN_LOADDQU256,
2514         IX86_BUILTIN_STOREDQU256, IX86_BUILTIN_LDDQU256,
2515         IX86_BUILTIN_MASKLOADPD, IX86_BUILTIN_MASKLOADPS,
2516         IX86_BUILTIN_MASKLOADPD256, IX86_BUILTIN_MASKLOADPS256,
2517         IX86_BUILTIN_MASKSTOREPD, IX86_BUILTIN_MASKSTOREPS,
2518         IX86_BUILTIN_MASKSTOREPD256 and IX86_BUILTIN_MASKSTOREPS256.
2519         (ix86_builtins): Add IX86_BUILTIN_ADDPD256,
2520         IX86_BUILTIN_ADDPS256, IX86_BUILTIN_ADDSUBPD256,
2521         IX86_BUILTIN_ADDSUBPS256, IX86_BUILTIN_ANDPD256,
2522         IX86_BUILTIN_ANDPS256, IX86_BUILTIN_ANDNPD256,
2523         IX86_BUILTIN_ANDNPS256, IX86_BUILTIN_DIVPD256,
2524         IX86_BUILTIN_DIVPS256, IX86_BUILTIN_HADDPD256,
2525         IX86_BUILTIN_HSUBPS256, IX86_BUILTIN_HSUBPD256,
2526         IX86_BUILTIN_HADDPS256, IX86_BUILTIN_MAXPD256,
2527         IX86_BUILTIN_MAXPS256, IX86_BUILTIN_MINPD256,
2528         IX86_BUILTIN_MINPS256, IX86_BUILTIN_MULPD256,
2529         IX86_BUILTIN_MULPS256, IX86_BUILTIN_ORPD256,
2530         IX86_BUILTIN_ORPS256, IX86_BUILTIN_SUBPD256,
2531         IX86_BUILTIN_SUBPS256, IX86_BUILTIN_XORPD256,
2532         IX86_BUILTIN_XORPS256, IX86_BUILTIN_VPERMILVARPD,
2533         IX86_BUILTIN_VPERMILVARPS, IX86_BUILTIN_VPERMILVARPD256,
2534         IX86_BUILTIN_VPERMILVARPS256, IX86_BUILTIN_BLENDPD256,
2535         IX86_BUILTIN_BLENDPS256, IX86_BUILTIN_BLENDVPD256,
2536         IX86_BUILTIN_BLENDVPS256, IX86_BUILTIN_DPPS256,
2537         IX86_BUILTIN_SHUFPD256, IX86_BUILTIN_SHUFPS256,
2538         IX86_BUILTIN_CMPSD, IX86_BUILTIN_CMPSS, IX86_BUILTIN_CMPPD,
2539         IX86_BUILTIN_CMPPS,
2540         IX86_BUILTIN_CMPPD256,IX86_BUILTIN_CMPPS256,
2541         IX86_BUILTIN_EXTRACTF128PD256, IX86_BUILTIN_EXTRACTF128PS256,
2542         IX86_BUILTIN_EXTRACTF128SI256, IX86_BUILTIN_CVTDQ2PD256,
2543         IX86_BUILTIN_CVTDQ2PS256, IX86_BUILTIN_CVTPD2PS256,
2544         IX86_BUILTIN_CVTPS2DQ256, IX86_BUILTIN_CVTPS2PD256,
2545         IX86_BUILTIN_CVTTPD2DQ256, IX86_BUILTIN_CVTPD2DQ256,
2546         IX86_BUILTIN_CVTTPS2DQ256, IX86_BUILTIN_VPERM2F128PD256,
2547         IX86_BUILTIN_VPERM2F128PS256, IX86_BUILTIN_VPERM2F128SI256,
2548         IX86_BUILTIN_VPERMILPD, IX86_BUILTIN_VPERMILPS,
2549         IX86_BUILTIN_VPERMILPD256, IX86_BUILTIN_VPERMILPS256,
2550         IX86_BUILTIN_VPERMIL2PD, IX86_BUILTIN_VPERMILPS,
2551         IX86_BUILTIN_VPERMILPD256, IX86_BUILTIN_VPERMILPS256,
2552         IX86_BUILTIN_VPERMIL2PD, IX86_BUILTIN_VPERMIL2PS,
2553         IX86_BUILTIN_VPERMIL2PD256, IX86_BUILTIN_VPERMIL2PS256,
2554         IX86_BUILTIN_VINSERTF128PD256, IX86_BUILTIN_VINSERTF128PS256,
2555         IX86_BUILTIN_VINSERTF128SI256, IX86_BUILTIN_MOVSHDUP256,
2556         IX86_BUILTIN_MOVSLDUP256, IX86_BUILTIN_MOVDDUP256,
2557         IX86_BUILTIN_SQRTPD256, IX86_BUILTIN_SQRTPS256,
2558         IX86_BUILTIN_SQRTPS_NR256, IX86_BUILTIN_RSQRTPS256,
2559         IX86_BUILTIN_RSQRTPS_NR256, IX86_BUILTIN_RCPPS256,
2560         IX86_BUILTIN_ROUNDPD256, IX86_BUILTIN_ROUNDPS256,
2561         IX86_BUILTIN_UNPCKHPD256, IX86_BUILTIN_UNPCKLPD256,
2562         IX86_BUILTIN_UNPCKHPS256, IX86_BUILTIN_UNPCKLPS256,
2563         IX86_BUILTIN_SI256_SI, IX86_BUILTIN_PS256_PS,
2564         IX86_BUILTIN_PD256_PD, IX86_BUILTIN_SI_SI256,
2565         IX86_BUILTIN_PS_PS256, IX86_BUILTIN_PD_PD256,
2566         IX86_BUILTIN_VTESTZPD, IX86_BUILTIN_VTESTCPD,
2567         IX86_BUILTIN_VTESTNZCPD, IX86_BUILTIN_VTESTZPS,
2568         IX86_BUILTIN_VTESTCPS, IX86_BUILTIN_VTESTNZCPS,
2569         IX86_BUILTIN_VTESTZPD256, IX86_BUILTIN_VTESTCPD256,
2570         IX86_BUILTIN_VTESTNZCPD256, IX86_BUILTIN_VTESTZPS256,
2571         IX86_BUILTIN_VTESTCPS256, IX86_BUILTIN_VTESTNZCPS256,
2572         IX86_BUILTIN_PTESTZ256, IX86_BUILTIN_PTESTC256,
2573         IX86_BUILTIN_PTESTNZC256, IX86_BUILTIN_MOVMSKPD256 and
2574         IX86_BUILTIN_MOVMSKPS256.
2575         (ix86_init_mmx_sse_builtins): Support AVX builtins.
2576         (ix86_expand_args_builtin): Likewise.
2577         (ix86_expand_special_args_builtin): Likewise.
2578         (ix86_hard_regno_mode_ok): Handle AVX modes.
2579         (ix86_expand_vector_init_duplicate): Likewise.
2580         (ix86_expand_vector_init_one_nonzero): Likewise.
2581         (ix86_expand_vector_init_one_var): Likewise.
2582         (ix86_expand_vector_init_concat): Likewise.
2583         (ix86_expand_vector_init_general): Likewise.
2584         (ix86_expand_vector_set): Likewise.
2585         (ix86_vector_mode_supported_p): Likewise.
2586         (x86_extended_reg_mentioned_p): Check INSN_P before using
2587         PATTERN.
2588
2589         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
2590         OPTION_MASK_ISA_AVX and OPTION_MASK_ISA_FMA.
2591
2592         * config/i386/i386.h (TARGET_AVX): New.
2593         (TARGET_FMA): Likewise.
2594         (TARGET_CPU_CPP_BUILTINS): Handle TARGET_AVX and TARGET_FMA.
2595         (BIGGEST_ALIGNMENT): Set to 256 for TARGET_AVX.
2596         (VALID_AVX256_REG_MODE): New.
2597         (AVX256_VEC_FLOAT_MODE_P): Likewise.
2598         (AVX_FLOAT_MODE_P): Likewise.
2599         (AVX128_VEC_FLOAT_MODE_P): Likewise.
2600         (AVX256_VEC_FLOAT_MODE_P): Likewise.
2601         (AVX_VEC_FLOAT_MODE_P): Likewise.
2602         (ASM_OUTPUT_AVX_PREFIX): Likewise.
2603         (ASM_OUTPUT_OPCODE): Likewise.
2604         (UNITS_PER_SIMD_WORD): Add a FIXME for 32byte vectorizer
2605         support.
2606         (SSE_REG_MODE_P): Allow 256bit vector modes.
2607         (ix86_args): Add a warn_avx field.
2608
2609         * config/i386/i386.md (UNSPEC_PCMP): New.
2610         (UNSPEC_VPERMIL): Likewise.
2611         (UNSPEC_VPERMIL2): Likewise.
2612         (UNSPEC_VPERMIL2F128): Likewise.
2613         (UNSPEC_MASKLOAD): Likewise.
2614         (UNSPEC_MASKSTORE): Likewise.
2615         (UNSPEC_CAST): Likewise.
2616         (UNSPEC_VTESTP): Likewise.
2617         (UNSPECV_VZEROALL): Likewise.
2618         (UNSPECV_VZEROUPPER): Likewise.
2619         (XMM0_REG): Likewise.
2620         (XMM1_REG): Likewise.
2621         (XMM2_REG): Likewise.
2622         (XMM3_REG): Likewise.
2623         (XMM4_REG): Likewise.
2624         (XMM5_REG): Likewise.
2625         (XMM6_REG): Likewise.
2626         (XMM8_REG): Likewise.
2627         (XMM9_REG): Likewise.
2628         (XMM10_REG): Likewise.
2629         (XMM11_REG): Likewise.
2630         (XMM12_REG): Likewise.
2631         (XMM13_REG): Likewise.
2632         (XMM14_REG): Likewise.
2633         (XMM15_REG): Likewise.
2634         (prefix): Likewise.
2635         (prefix_vex_imm8): Likewise.
2636         (prefix_vex_w): Likewise.
2637         (length_vex): Likewise.
2638         (maxmin): Likewise.
2639         (movoi): Likewise.
2640         (*avx_ashlti3): Likewise.
2641         (*avx_lshrti3): Likewise.
2642         (*avx_setcc<mode>): Likewise.
2643         (*fop_<mode>_comm_mixed_avx): Likewise.
2644         (*fop_<mode>_comm_avx): Likewise.
2645         (*fop_<mode>_1_mixed_avx): Likewise.
2646         (*fop_<mode>_1_avx): Likewise.
2647         (*avx_<code><mode>3): Likewise.
2648         (*avx_ieee_smin<mode>3): Likewise.
2649         (*avx_ieee_smax<mode>3): Likewise.
2650         (mode): Add OI, V8SF and V4DF.
2651         (length): Support VEX prefix.
2652         (*cmpfp_i_mixed): Set prefix attribute.
2653         (*cmpfp_i_sse): Likewise.
2654         (*cmpfp_iu_mixed): Likewise.
2655         (*cmpfp_iu_sse): Likewise.
2656         (*movsi_1): Support AVX.
2657         (*movdi_2): Likewise.
2658         (*movdi_1_rex64): Likewise.
2659         (*movti_internal): Likewise.
2660         (*movti_rex64): Likewise.
2661         (*movsf_1): Likewise.
2662         (*movdf_nointeger): Likewise.
2663         (*movdf_integer_rex64): Likewise.
2664         (*movtf_internal): Likewise.
2665         (zero_extendsidi2_32): Likewise.
2666         (zero_extendsidi2_rex64): Likewise.
2667         (*extendsfdf2_mixed): Likewise.
2668         (*extendsfdf2_sse): Likewise.
2669         (*truncdfsf_fast_mixed): Likewise.
2670         (*truncdfsf_fast_sse): Likewise.
2671         (*truncdfsf_mixed): Likewise.
2672         (fix_trunc<mode>di_sse): Likewise.
2673         (fix_trunc<mode>si_sse): Likewise.
2674         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit): Likewise.
2675         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit): Likewise.
2676         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit): Likewise.
2677         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit): Likewise.
2678         (*rcpsf2_sse): Likewise.
2679         (*rsqrtsf2_sse): Likewise.
2680         (*sqrt<mode>2_sse): Likewise.
2681         (sse4_1_round<mode>2): Likewise.
2682         (*sse_prologue_save_insn): Disallow REX prefix for AVX.
2683         Support AVX.  Set length attribute properly for AVX.
2684
2685         * config/i386/i386-modes.def (VECTOR_MODES (INT, 32)): New.
2686         (VECTOR_MODES (FLOAT, 32)): Likewise.
2687         (VECTOR_MODE (INT, DI, 8)): Likewise.
2688         (VECTOR_MODE (INT, HI, 32)): Likewise.
2689         (VECTOR_MODE (INT, QI, 64)): Likewise.
2690         (VECTOR_MODE (FLOAT, DF, 8)): Likewise.
2691         (VECTOR_MODE (FLOAT, SF, 16)): Likewise.
2692         (VECTOR_MODE (INT, DI, 4)): Removed.
2693         (VECTOR_MODE (INT, SI, 8)): Likewise.
2694         (VECTOR_MODE (INT, HI, 16)): Likewise.
2695         (VECTOR_MODE (INT, QI, 32)): Likewise.
2696         (VECTOR_MODE (FLOAT, SF, 8)): Likewise.
2697         (INT_MODE (OI, 32)): Likewise.
2698
2699         * config/i386/i386.opt (mavx): New.
2700         (mfma): Likewise.
2701
2702         * config/i386/i386-protos.h (ix86_attr_length_vex_default): New.
2703
2704         * config/i386/mmx.md (*mov<mode>_internal_rex64): Support AVX.
2705         (*mov<mode>_internal_avx): New.
2706         (*movv2sf_internal_rex64_avx): Likewise.
2707         (*movv2sf_internal_avx): Likewise.
2708
2709         * config/i386/predicates.md (const_4_to_5_operand): New.
2710         (const_6_to_7_operand): Likewise.
2711         (const_8_to_11_operand): Likewise.
2712         (const_12_to_15_operand): Likewise.
2713         (avx_comparison_float_operator): Likewise.
2714
2715         * config/i386/sse.md (AVX256MODEI): New.
2716         (AVX256MODE): Likewise.
2717         (AVXMODEQI): Likewise.
2718         (AVXMODE): Likewise.
2719         (AVX256MODEF2P): Likewise.
2720         (AVX256MODE2P): Likewise.
2721         (AVX256MODE4P): Likewise.
2722         (AVX256MODE8P): Likewise.
2723         (AVXMODEF2P): Likewise.
2724         (AVXMODEF4P): Likewise.
2725         (AVXMODEDCVTDQ2PS): Likewise.
2726         (AVXMODEDCVTPS2DQ): Likewise.
2727         (avxvecmode): Likewise.
2728         (avxvecpsmode): Likewise.
2729         (avxhalfvecmode): Likewise.
2730         (avxscalarmode): Likewise.
2731         (avxcvtvecmode): Likewise.
2732         (avxpermvecmode): Likewise.
2733         (avxmodesuffixf2c): Likewise.
2734         (avxmodesuffixp): Likewise.
2735         (avxmodesuffixs): Likewise.
2736         (avxmodesuffix): Likewise.
2737         (vpermilbits): Likewise.
2738         (pinsrbits): Likewise.
2739         (mov<mode>): Likewise.
2740         (*mov<mode>_internal): Likewise.
2741         (push<mode>1): Likewise.
2742         (movmisalign<mode>): Likewise.
2743         (avx_movup<avxmodesuffixf2c><avxmodesuffix>): Likewise.
2744         (avx_movdqu<avxmodesuffix>): Likewise.
2745         (avx_lddqu<avxmodesuffix>): Likewise.
2746         (<plusminus_insn><mode>3): Likewise.
2747         (*avx_<plusminus_insn><mode>3): Likewise.
2748         (*avx_vm<plusminus_insn><mode>3): Likewise.
2749         (mul<mode>3): Likewise.
2750         (*avx_mul<mode>3): Likewise.
2751         (*avx_vmmul<mode>3): Likewise.
2752         (divv8sf3): Likewise.
2753         (divv4df3): Likewise.
2754         (avx_div<mode>3): Likewise.
2755         (*avx_div<mode>3): Likewise.
2756         (*avx_vmdiv<mode>3): Likewise.
2757         (avx_rcpv8sf2): Likewise.
2758         (*avx_vmrcpv4sf2): Likewise.
2759         (sqrtv8sf2): Likewise.
2760         (avx_sqrtv8sf2): Likewise.
2761         (*avx_vmsqrt<mode>2): Likewise.
2762         (rsqrtv8sf2): Likewise.
2763         (avx_rsqrtv8sf2): Likewise.
2764         (*avx_vmrsqrtv4sf2): Likewise.
2765         (<code><mode>3): Likewise.
2766         (*avx_<code><mode>3_finite): Likewise.
2767         (*avx_<code><mode>3): Likewise.
2768         (*avx_vm<code><mode>3): Likewise.
2769         (*avx_ieee_smin<mode>3): Likewise.
2770         (*avx_ieee_smax<mode>3): Likewise.
2771         (avx_addsubv8sf3): Likewise.
2772         (avx_addsubv4df3): Likewise.
2773         (*avx_addsubv4sf3): Likewise.
2774         (*avx_addsubv2df3): Likewise.
2775         (avx_h<plusminus_insn>v4df3): Likewise.
2776         (avx_h<plusminus_insn>v8sf3): Likewise.
2777         (*avx_h<plusminus_insn>v4sf3): Likewise.
2778         (*avx_h<plusminus_insn>v2df3): Likewise.
2779         (avx_cmpp<avxmodesuffixf2c><mode>3): Likewise.
2780         (avx_cmps<ssemodesuffixf2c><mode>3): Likewise.
2781         (*avx_maskcmp<mode>3): Likewise.
2782         (avx_nand<mode>3): Likewise.
2783         (*avx_<code><mode>3): Likewise.
2784         (*avx_nand<mode>3): Likewise.
2785         (*avx_<code><mode>3): Likewise.
2786         (*avx_cvtsi2ss): Likewise.
2787         (*avx_cvtsi2ssq): Likewise.
2788         (*avx_cvtsi2sd): Likewise.
2789         (*avx_cvtsi2sdq): Likewise.
2790         (*avx_cvtsd2ss): Likewise.
2791         (avx_cvtss2sd): Likewise.
2792         (avx_cvtdq2ps<avxmodesuffix>): Likewise.
2793         (avx_cvtps2dq<avxmodesuffix>): Likewise.
2794         (avx_cvttps2dq<avxmodesuffix>): Likewise.
2795         (*avx_cvtsi2sd): Likewise.
2796         (*avx_cvtsi2sdq): Likewise.
2797         (avx_cvtdq2pd256): Likewise.
2798         (avx_cvtpd2dq256): Likewise.
2799         (avx_cvttpd2dq256): Likewise.
2800         (*avx_cvtsd2ss): Likewise.
2801         (*avx_cvtss2sd): Likewise.
2802         (avx_cvtpd2ps256): Likewise.
2803         (avx_cvtps2pd256): Likewise.
2804         (*avx_movhlps): Likewise.
2805         (*avx_movlhps): Likewise.
2806         (avx_unpckhps256): Likewise.
2807         (*avx_unpckhps): Likewise.
2808         (avx_unpcklps256): Likewise.
2809         (*avx_unpcklps): Likewise.
2810         (avx_movshdup256): Likewise.
2811         (avx_movsldup256): Likewise.
2812         (avx_shufps256): Likewise.
2813         (avx_shufps256_1): Likewise.
2814         (*avx_shufps_<mode>): Likewise.
2815         (*avx_loadhps): Likewise.
2816         (*avx_storelps): Likewise.
2817         (*avx_loadlps): Likewise.
2818         (*avx_movss): Likewise.
2819         (*vec_dupv4sf_avx): Likewise.
2820         (*vec_concatv2sf_avx): Likewise.
2821         (*vec_concatv4sf_avx): Likewise.
2822         (*vec_setv4sf_0_avx): Likewise.
2823         (*vec_setv4sf_avx): Likewise.
2824         (*avx_insertps): Likewise.
2825         (avx_vextractf128<mode>): Likewise.
2826         (vec_extract_lo_<mode>): Likewise.
2827         (vec_extract_hi_<mode>): Likewise.
2828         (vec_extract_lo_<mode>): Likewise.
2829         (vec_extract_hi_<mode>): Likewise.
2830         (vec_extract_lo_v16hi): Likewise.
2831         (vec_extract_hi_v16hi): Likewise.
2832         (vec_extract_lo_v32qi): Likewise.
2833         (vec_extract_hi_v32qi): Likewise.
2834         (avx_unpckhpd256): Likewise.
2835         (*avx_unpckhpd): Likewise.
2836         (avx_movddup256): Likewise.
2837         (*avx_movddup): Likewise.
2838         (avx_unpcklpd256): Likewise.
2839         (*avx_unpcklpd): Likewise.
2840         (avx_shufpd256): Likewise.
2841         (avx_shufpd256_1): Likewise.
2842         (*avx_punpckhqdq): Likewise.
2843         (*avx_punpcklqdq): Likewise.
2844         (*avx_shufpd_<mode>): Likewise.
2845         (*avx_storehpd): Likewise.
2846         (*avx_loadhpd): Likewise.
2847         (*avx_loadlpd): Likewise.
2848         (*avx_movsd): Likewise.
2849         (*vec_concatv2df_avx): Likewise.
2850         (*avx_<plusminus_insn><mode>3): Likewise.
2851         (*avx_<plusminus_insn><mode>3): Likewise.
2852         (*avx_mulv8hi3): Likewise.
2853         (*avxv8hi3_highpart): Likewise.
2854         (*avx_umulv8hi3_highpart): Likewise.
2855         (*avx_umulv2siv2di3): Likewise.
2856         (*avx_mulv2siv2di3): Likewise.
2857         (*avx_pmaddwd): Likewise.
2858         (*avx_mulv4si3): Likewise.
2859         (*avx_ashr<mode>3): Likewise.
2860         (*avx_lshr<mode>3): Likewise.
2861         (*avx_ashl<mode>3): Likewise.
2862         (*avx_<code><mode>3): Likewise.
2863         (*avx_eq<mode>3): Likewise.
2864         (*avx_gt<mode>3): Likewise.
2865         (*avx_nand<mode>3): Likewise.
2866         (*avx_nand<mode>3): Likewise.
2867         (*avx_<code><mode>3): Likewise.
2868         (*avx_<code><mode>3): Likewise.
2869         (*avx_packsswb): Likewise.
2870         (*avx_packssdw): Likewise.
2871         (*avx_packuswb): Likewise.
2872         (*avx_punpckhbw): Likewise.
2873         (*avx_punpcklbw): Likewise.
2874         (*avx_punpckhwd): Likewise.
2875         (*avx_punpcklwd): Likewise.
2876         (*avx_punpckhdq): Likewise.
2877         (*avx_punpckldq): Likewise.
2878         (*avx_pinsr<avxmodesuffixs>): Likewise.
2879         (*avx_pinsrq): Likewise.
2880         (*avx_loadld): Likewise.
2881         (*vec_extractv2di_1_rex64_avx): Likewise.
2882         (*vec_extractv2di_1_avx): Likewise.
2883         (*vec_dupv2di_avx): Likewise.
2884         (*vec_concatv2si_avx): Likewise.
2885         (*vec_concatv4si_1_avx): Likewise.
2886         (*vec_concatv2di_avx): Likewise.
2887         (*vec_concatv2di_rex64_avx): Likewise.
2888         (*avx_uavgv16qi3): Likewise.
2889         (*avx_uavgv8hi3): Likewise.
2890         (*avx_psadbw): Likewise.
2891         (avx_movmskp<avxmodesuffixf2c>256): Likewise.
2892         (*avx_phaddwv8hi3): Likewise.
2893         (*avx_phadddv4si3): Likewise.
2894         (*avx_phaddswv8hi3): Likewise.
2895         (*avx_phsubwv8hi3): Likewise.
2896         (*avx_phsubdv4si3): Likewise.
2897         (*avx_phsubswv8hi3): Likewise.
2898         (*avx_pmaddubsw128): Likewise.
2899         (*avx_pmulhrswv8hi3): Likewise.
2900         (*avx_pshufbv16qi3): Likewise.
2901         (*avx_psign<mode>3): Likewise.
2902         (*avx_palignrti): Likewise.
2903         (avx_blendp<avxmodesuffixf2c><avxmodesuffix>): Likewise.
2904         (avx_blendvp<avxmodesuffixf2c><avxmodesuffix>): Likewise.
2905         (avx_dpp<avxmodesuffixf2c><avxmodesuffix>): Likewise.
2906         (*avx_mpsadbw): Likewise.
2907         (*avx_packusdw): Likewise.
2908         (*avx_pblendvb): Likewise.
2909         (*avx_pblendw): Likewise.
2910         (avx_vtestp<avxmodesuffixf2c><avxmodesuffix>): Likewise.
2911         (avx_ptest256): Likewise.
2912         (avx_roundp<avxmodesuffixf2c>256): Likewise.
2913         (*avx_rounds<ssemodesuffixf2c>): Likewise.
2914         (*avx_aesenc): Likewise.
2915         (*avx_aesenclast): Likewise.
2916         (*avx_aesdec): Likewise.
2917         (*avx_aesdeclast): Likewise.
2918         (avx_vzeroupper): Likewise.
2919         (avx_vzeroupper_rex64): Likewise.
2920         (avx_vpermil<mode>): Likewise.
2921         (avx_vpermilvar<mode>3): Likewise.
2922         (avx_vpermil2<mode>3): Likewise.
2923         (avx_vperm2f128<mode>3): Likewise.
2924         (avx_vbroadcasts<avxmodesuffixf2c><avxmodesuffix>): Likewise.
2925         (avx_vbroadcastss256): Likewise.
2926         (avx_vbroadcastf128_p<avxmodesuffixf2c>256): Likewise.
2927         (avx_vinsertf128<mode>): Likewise.
2928         (vec_set_lo_<mode>): Likewise.
2929         (vec_set_hi_<mode>): Likewise.
2930         (vec_set_lo_<mode>): Likewise.
2931         (vec_set_hi_<mode>): Likewise.
2932         (vec_set_lo_v16hi): Likewise.
2933         (vec_set_hi_v16hi): Likewise.
2934         (vec_set_lo_v32qi): Likewise.
2935         (vec_set_hi_v32qi): Likewise.
2936         (avx_maskloadp<avxmodesuffixf2c><avxmodesuffix>): Likewise.
2937         (avx_maskstorep<avxmodesuffixf2c><avxmodesuffix>): Likewise.
2938         (avx_<avxmodesuffixp><avxmodesuffix>_<avxmodesuffixp>): Likewise.
2939         (avx_<avxmodesuffixp>_<avxmodesuffixp><avxmodesuffix>): Likewise.
2940         (vec_init<mode>): Likewise.
2941         (*vec_concat<mode>_avx): Likewise.
2942         (blendbits): Support V8SF and V4DF.
2943         (sse2_movq128): Support AVX.
2944         (<sse>_movnt<mode>): Likewise.
2945         (sse2_movntv2di): Likewise.
2946         (sse_rcpv4sf2): Likewise.
2947         (sse_sqrtv4sf2): Likewise.
2948         (sse_rsqrtv4sf2): Likewise.
2949         (<sse>_comi): Likewise.
2950         (<sse>_ucomi): Likewise.
2951         (sse_cvtss2si): Likewise.
2952         (sse_cvtss2si_2): Likewise.
2953         (sse_cvtss2siq): Likewise.
2954         (sse_cvtss2siq_2): Likewise.
2955         (sse_cvttss2si): Likewise.
2956         (sse_cvttss2siq): Likewise.
2957         (sse2_cvtsd2si): Likewise.
2958         (sse2_cvtsd2si_2): Likewise.
2959         (sse2_cvtsd2siq): Likewise.
2960         (sse2_cvtsd2siq_2): Likewise.
2961         (sse2_cvttsd2si): Likewise.
2962         (sse2_cvttsd2siq): Likewise.
2963         (sse2_cvtdq2pd): Likewise.
2964         (*sse2_cvtpd2dq): Likewise.
2965         (*sse2_cvttpd2dq): Likewise.
2966         (*sse2_cvtpd2ps): Likewise.
2967         (sse2_cvtps2pd): Likewise.
2968         (sse3_movshdup): Likewise.
2969         (sse3_movsldup): Likewise.
2970         (sse_storehps): Likewise.
2971         (*sse4_1_extractps): Likewise.
2972         (sse2_storelpd): Likewise.
2973         (vec_dupv2df_sse3): Likewise.
2974         (*vec_concatv2df_sse3): Likewise.
2975         (*sse4_1_pextrb): Likewise.
2976         (*sse4_1_pextrb_memory): Likewise.
2977         (*sse2_pextrw): Likewise.
2978         (*sse4_1_pextrw_memory): Likewise.
2979         (*sse4_1_pextrd): Likewise.
2980         (*sse4_1_pextrq): Likewise.
2981         (sse2_pshufd_1): Likewise.
2982         (sse2_pshuflw_1): Likewise.
2983         (sse2_pshufhw_1): Likewise.
2984         (*sse2_storeq_rex64): Likewise.
2985         (*vec_dupv4si): Likewise.
2986         (<sse>_movmskp<ssemodesuffixf2c>): Likewise.
2987         (sse2_pmovmskb): Likewise.
2988         (*sse2_maskmovdqu): Likewise.
2989         (*sse2_maskmovdqu_rex64): Likewise.
2990         (sse_ldmxcsr): Likewise.
2991         (sse_stmxcsr): Likewise.
2992         (abs<mode>2): Likewise.
2993         (sse4_1_movntdqa): Likewise.
2994         (sse4_1_phminposuw): Likewise.
2995         (sse4_1_extendv8qiv8hi2): Likewise.
2996         (*sse4_1_extendv8qiv8hi2): Likewise.
2997         (sse4_1_extendv4qiv4si2): Likewise.
2998         (*sse4_1_extendv4qiv4si2): Likewise.
2999         (sse4_1_extendv2qiv2di2): Likewise.
3000         (*sse4_1_extendv2qiv2di2): Likewise.
3001         (sse4_1_extendv4hiv4si2): Likewise.
3002         (*sse4_1_extendv4hiv4si2): Likewise.
3003         (sse4_1_extendv2hiv2di2): Likewise.
3004         (*sse4_1_extendv2hiv2di2): Likewise.
3005         (sse4_1_extendv2siv2di2): Likewise.
3006         (*sse4_1_extendv2siv2di2): Likewise.
3007         (sse4_1_zero_extendv8qiv8hi2): Likewise.
3008         (*sse4_1_zero_extendv8qiv8hi2): Likewise.
3009         (sse4_1_zero_extendv4qiv4si2): Likewise.
3010         (*sse4_1_zero_extendv4qiv4si2): Likewise.
3011         (sse4_1_zero_extendv2qiv2di2): Likewise.
3012         (*sse4_1_zero_extendv2qiv2di2): Likewise.
3013         (sse4_1_zero_extendv4hiv4si2): Likewise.
3014         (*sse4_1_zero_extendv4hiv4si2): Likewise.
3015         (sse4_1_zero_extendv2hiv2di2): Likewise.
3016         (*sse4_1_zero_extendv2hiv2di2): Likewise.
3017         (sse4_1_zero_extendv2siv2di2): Likewise.
3018         (*sse4_1_zero_extendv2siv2di2): Likewise.
3019         (sse4_1_ptest): Likewise.
3020         (sse4_1_roundp<ssemodesuffixf2c>): Likewise.
3021         (sse4_2_pcmpestri): Likewise.
3022         (sse4_2_pcmpestrm): Likewise.
3023         (sse4_2_pcmpistri): Likewise.
3024         (sse4_2_pcmpistrm): Likewise.
3025         (aesimc): Likewise.
3026         (aeskeygenassist): Likewise.
3027
3028 2008-08-28  Uros Bizjak  <ubizjak@gmail.com>
3029
3030         * config/i386/predicates.md (vzeroall_operation): New.
3031
3032         * config/i386/sse.md (avx_vzeroall): New.
3033         (*avx_vzeroall): Likewise.
3034
3035 2008-08-28  Paul Brook  <paul@codesourcery.com>
3036             Mark Shinwell  <shinwell@codesourcery.com>
3037             Richard Earnshaw  <richard.earnshaw@arm.com>
3038
3039         * config/arm/arm.c (TARGET_MAX_ANCHOR_OFFSET): New.
3040         (TARGET_MIN_ANCHOR_OFFSET): New.
3041         (arm_override_options): Set correct anchor ranges for Thumb-1
3042         and Thumb-2 if required.
3043         (legitimize_pic_address): Handle case involving a TLS symbol
3044         reference with an addend.
3045         (arm_optimization_options): Enable section anchors at -O1 and
3046         above.
3047         * config/arm/arm.h (OPTIMIZATION_OPTIONS): New.
3048         * config/arm/arm-protos.h (arm_optimization_options): New.
3049
3050 2008-08-28  Nick Clifton  <nickc@redhat.com>
3051
3052         * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Define.
3053         * config/stormy16/stormy16.md (zero_extendqihi2): Fix length
3054         attribute.
3055
3056         * config/v850/v850.h (IRA_COVER_CLASSES): Define.
3057         * config/v850/v850.md (return): Remove frame size restriction.
3058
3059         * config/mcore/mcore.h (IRA_COVER_CLASSES): Define.
3060
3061         * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Define.
3062
3063         * config/fr30/fr30.h (IRA_COVER_CLASSES): Define.
3064
3065         * config/m32r/m32r.h (IRA_COVER_CLASSES): Define.
3066
3067 2008-08-28  Paul Brook  <paul@codesourcery.com>
3068
3069         * config/arm/vfp11.md: Update license notice.
3070         * config/arm/cortex-r4.md: Ditto.
3071
3072 2008-08-28  Richard Guenther  <rguenther@suse.de>
3073
3074         PR tree-optimization/37207
3075         * tree-ssa-ifcombine.c (recognize_single_bit_test): Fix
3076         tuplification bug.
3077
3078 2008-08-28  Dodji Seketeli  <dodji@redhat.com>
3079
3080         PR c++/36741
3081         * tree.c (int_fits_type_p): Don't forget unsigned integers
3082           of type sizetype which higher end word equals -1.
3083
3084 2008-08-28  Ira Rosen  <irar@il.ibm.com>
3085
3086         * target.h (struct vectorize): Add new target builtin.
3087         * tree-vectorizer.c (destroy_loop_vec_info): Call
3088         vect_free_slp_instance instead of vect_free_slp_node.
3089         * tree-vectorizer.h (enum slp_load_perm_type): New.
3090         (struct _slp_instance): Add new fields.
3091         (SLP_INSTANCE_LOAD_PERMUTATION): New.
3092         (SLP_INSTANCE_LOADS): New.
3093         (vect_free_slp_tree): Remove.
3094         (vect_free_slp_instance): Declare.
3095         (SLP_TREE_LOADS_PERM_TYPE, TARG_VEC_PERMUTE_COST): New.
3096         (vectorizable_load): Add argument.
3097         (vect_transform_slp_perm_load): New.
3098         * tree-vect-analyze.c (vect_analyze_operations): Add an argument to
3099         vectorizable_load.
3100         (vect_get_place_in_interleaving_chain): New function.
3101         (vect_free_slp_tree): Make static.
3102         (vect_free_slp_instance): New function.
3103         (vect_build_slp_tree): Add new arguments. Allow load permutations and
3104         collect the load location in the interleaving chain.
3105         (vect_supported_slp_permutation_p): New function.
3106         (vect_supported_load_permutation_p): Likewise.
3107         (vect_analyze_slp_instance): In case of loads permutation, call
3108         vect_supported_load_permutation_p to check that the permutation is
3109         supported.
3110         * target-def.h (TARGET_VECTORIZE_BUILTIN_VEC_PERM): New.
3111         * tree-vect-transform.c (vect_transform_stmt): Add new argument.
3112         (vect_create_mask_and_perm): New function.
3113         (vect_get_mask_element, vect_transform_slp_perm_load): Likewise.
3114         (vectorizable_load): Add an argument. Don't keep the created vectors
3115         statements in the node if permutation is required. Call
3116         vect_transform_slp_perm_load to generate the permutation.
3117         (vect_transform_stmt): Add new argument. Call vectorizable_load with
3118         additional argument.
3119         (vect_schedule_slp_instance): In case of loads permutation, allocate
3120         vectorized statements structure for all the related SLP nodes. Call
3121         vect_transform_stmt with addditional argument.
3122         (vect_transform_loop): Call vect_transform_stmt with correct arguments.
3123         * config/spu/spu.c (spu_builtin_vec_perm): New.
3124         (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Redefine.
3125         * config/spu/spu.h (TARG_VEC_PERMUTE_COS): Define.
3126         * config/rs6000/rs6000.c (rs6000_builtin_vec_perm): New.
3127         (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Redefine.
3128
3129 2008-08-28  Chris Fairles  <chris.fairles@gmail.com>
3130
3131         * gthr-posix.h (__gthread_create,  __gthread_join, __gthread_detach,
3132         __gthread_mutex_timed_lock, __gthread_recursive_mutex_timed_lock,
3133         __gthread_cond_signal, __gthread_cond_timedwait,
3134         __gthread_cond_timedwait_recursive): New functions.
3135         * gthr-posix.c (pthread_mutex_timedlock, pthread_cond_timedwait):
3136         Likewise.
3137         * gthr.h: Comment on defining __GTHREADS_CXX0X macro in conforming
3138         thread interfaces.
3139
3140 2008-08-28  Richard Guenther  <rguenther@suse.de>
3141
3142         PR middle-end/37005
3143         * fold-const.c (maybe_canonicalize_comparison_1): Require
3144         undefined overflow only for canonicalizing A +- CST cmp CST.
3145         Make sure to not generate new constants that are not inside
3146         their TYPE_MIN/MAX_VALUE range.
3147         (maybe_canonicalize_comparison): Remove undefined overflow
3148         checking from here.
3149         (fold_binary): Remove now duplicate folding.
3150
3151 2008-08-27  Paolo Carlini  <paolo.carlini@oracle.com>
3152
3153         * c-typeck.c (convert_for_assignment): Adjust WARN_FOR_ASSIGNMENT
3154         use not updated in the last change.
3155
3156 2008-08-27  Kaz Kojima  <kkojima@gcc.gnu.org>
3157
3158         * config/sh/sh.h (REG_CLASS_CONTENTS): Drop fr32 from FPUL_REGS.
3159         (IRA_COVER_CLASSES): Add FPUL_REGS.
3160
3161 2008-08-27  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
3162
3163         PR 37217
3164         * c-common.c (conversion_warning): Check for null operands.
3165
3166 2008-08-27  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
3167
3168         PR c/31673
3169         * c-decl.c (check_for_loop_decls): Improve error message. Give
3170         hint.
3171
3172 2008-08-27  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
3173
3174         PR c/37186
3175         * c-typeck.c (WARN_FOR_ASSIGNMENT): Add OPT parameter.
3176         (convert_for_assignment): Pass corrent OPT_W* parameter to
3177         WARN_FOR_ASSIGNMENT.
3178
3179 2008-08-27  Paolo Carlini  <paolo.carlini@oracle.com>
3180
3181         PR c++/35321
3182         * c-common.c (fold_offsetof_1): Handle TARGET_EXPR like CALL_EXPR.
3183
3184 2008-08-27  Paul Brook  <paul@codesourcery.com>
3185
3186         * config.gcc: Loosen checks for arm uclinux eabi targets.
3187
3188 2008-08-27  Paul Brook  <paul@codesourcery.com>
3189
3190         * config/arm/t-arm-coff (LIB1ASMFUNCS): Add missing undescrore on
3191         _clzsi2.
3192         * config/arm/t-linux (LIB1ASMFUNCS): Ditto.
3193
3194 2008-08-26  Douglas Gregor  <doug.gregor@gmail.com>
3195
3196         * c-common.c (do_switch_warnings): Look through the CONST_DECLs in
3197         the enumerators of an ENUMERAL_TYPE.
3198         * dbxout.c (dbxout_type): Ditto.
3199
3200 2008-08-26  Andrew Pinski  <andrew_pinski@playstation.sony.com>
3201
3202         PR rtl-opt/37219
3203         * fwprop.c (fwprop): Check that the loop_father is the outer loop.
3204         (fwprop_addr): Check that the loop_father is not the outer loop.
3205
3206 2008-08-26  Paul Brook  <paul@codesourcery.com>
3207
3208         * config/arm/vfp.md: Document fmul{s,d} and fmac{s,d} types.
3209         Remove documentation entry for fmul type.
3210         Use fmuls to annotate single-precision multiplication patterns,
3211         fmuld to annotate double-precision multiplication patterns,
3212         fmacs to annotate single-precision multiply-accumulate patterns
3213         and fmacd to annotate double-precision multiply-accumulate patterns.
3214         * config/arm/vfp11.md: Update reservations accordingly.
3215         * config/arm/arm.md: Note that certain values of the "type"
3216         attribute are documented in vfp.md.
3217         * config/arm/arm1020e.md: Remove out of date duplicate comment.
3218         (v10_cvt): Use new fmul types.
3219
3220 2008-08-26  Paul Brook   <paul@codesourcery.com>
3221
3222         * config/arm/vfp.md: Move pipeline description for VFP11 to...
3223         * config/arm/vfp11.md: ...here.  New.
3224         * config/arm/arm.md: Include vfp11.md.
3225
3226 2008-08-26  Hans-Peter Nilsson  <hp@axis.com>
3227
3228         * opts.c (decode_options) [!IRA_COVER_CLASSES]: Add missing
3229         parameter to inform call.
3230
3231 2008-08-26  Jeff Law  <law@redhat.com>
3232
3233         * mn10300.md (movqi, movhi): Split i->d*a case into two cases to
3234         avoid the possibility of getting DATA_OR_ADDRESS_REGS as the
3235         preferred class when copying a constant into a partial word register.
3236
3237 2008-08-26  Ben Elliston  <bje@au.ibm.com>
3238
3239         * rtlanal.c: Fix uses of "it's" with "its" where appropriate.
3240         * cp/typeck.c: Likewise.
3241         * cp/tree.c: Likewise.
3242         * gimple-low.c: Likewise.
3243         * jump.c: Likewise.
3244
3245 2008-08-26  Vladimir Makarov  <vmakarov@redhat.com>
3246
3247         * ira-build.c, ira-color.c, ira-costs.c, ira.h, ira-lives.c,
3248         ira.c, ira-conflicts.c, ira-emit.c, ira-int.h: New files.
3249
3250         * doc/passes.texi: Describe IRA.
3251
3252         * doc/tm.texi (IRA_COVER_CLASSES,
3253         IRA_HARD_REGNO_ADD_COST_MULTIPLIER): Describe the new macros.
3254
3255         * doc/invoke.texi (ira-max-loops-num): Describe the new parameter.
3256         (-fira, -fira-algorithm, -fira-coalesce, -fno-ira-move-spills,
3257         -fira-propagate-cost, -fno-ira-share-save-slots,
3258         -fno-ira-share-spill-slots, -fira-verbose): Describe new options.
3259
3260         * flags.h (ira_algorithm): New enumeration.
3261         (flag_ira_algorithm, flag_ira_verbose): New external variable
3262         declarations.
3263
3264         * postreload.c (gate_handle_postreload): Don't do post reload
3265         optimizations unless the reload is completed.
3266
3267         * reload.c (push_reload, find_dummy_reload): Use DF_LR_OUT for
3268         IRA.
3269
3270         * tree-pass.h (pass_ira): New external variable declaration.
3271
3272         * reload.h: Add 2008 to the Copyright.
3273
3274         * cfgloopanal.c: Include params.h.
3275         (estimate_reg_pressure_cost): Decrease cost for IRA optimization
3276         mode.
3277
3278         * params.h (IRA_MAX_LOOPS_NUM): New macro.
3279
3280         * toplev.c (ira.h): New include.
3281         (flag_ira_algorithm, flag_ira_verbose): New external variables.
3282         (backend_init_target): Call ira_init.
3283         (backend_init): Call ira_init_once.
3284         (finalize): Call finish_ira_once.
3285
3286         * toplev.h (flag_ira, flag_ira_coalesce, flag_ira_move_spills,
3287         flag_ira_share_save_slots, flag_ira_share_spill_slots): New
3288         external variables.
3289
3290         * regs.h (contains_reg_of_mode, move_cost, may_move_in_cost,
3291         may_move_out_cost): New external variable declarations.
3292         (move_table): New typedef.
3293
3294         * caller-save.c: Include headers output.h and ira.h.
3295         (no_caller_save_reg_set): New global variable.
3296         (save_slots_num, save_slots): New variables.
3297         (reg_save_code, reg_restore_code, add_stored_regs): Add
3298         prototypes.
3299         (init_caller_save): Set up no_caller_save_reg_set.
3300         (init_save_areas): Reset save_slots_num.
3301         (saved_hard_reg): New structure.
3302         (hard_reg_map, saved_regs_num, all_saved_regs): New variables.
3303         (initiate_saved_hard_regs, new_saved_hard_reg,
3304         finish_saved_hard_regs, saved_hard_reg_compare_func): New
3305         functions.
3306         (setup_save_areas): Add code for sharing stack slots.
3307         (all_blocks): New variable.
3308         (save_call_clobbered_regs): Process pseudo-register too.
3309         (mark_set_regs): Process pseudo-register too.
3310         (insert_one_insn): Put the insn after bb note in a empty basic
3311         block.  Add insn check.
3312
3313         * global.c (eliminable_regset): Make it external.
3314         (mark_elimination): Use DF_LR_IN for IRA.
3315         (pseudo_for_reload_consideration_p): New.
3316         (build_insn_chain): Make it external.  Don't ignore spilled
3317         pseudos for IRA.  Use pseudo_for_reload_consideration_p.
3318         (gate_handle_global_alloc): New function.
3319         (pass_global_alloc): Add the gate function.
3320
3321         * opts.c (decode_options): Set up flag_ira.  Print the warning for
3322         -fira.
3323         (common_handle_option): Process -fira-algorithm and -fira-verbose.
3324
3325         * timevar.def (TV_IRA, TV_RELOAD): New passes.
3326
3327         * regmove.c (regmove_optimize): Don't do replacement of output for
3328         IRA.
3329
3330         * hard-reg-set.h (no_caller_save_reg_set, reg_class_subclasses):
3331         New external variable declarations.
3332
3333         * local-alloc.c (update_equiv_regs): Make it external.  Return
3334         true if jump label rebuilding should be done.  Rescan new_insn for
3335         notes.
3336         (gate_handle_local_alloc): New function.
3337         (pass_local_alloc): Add the gate function.
3338
3339         * alias.c (value_addr_p, stack_addr_p): New functions.
3340         (nonoverlapping_memrefs_p): Use them for IRA.
3341
3342         * common.opt (fira, fira-algorithm, fira-coalesce,
3343         fira-move-spills, fira-share-save-slots, fira-share-spill-slots,
3344         fira-verbose): New options.
3345
3346         * regclass.c (reg_class_subclasses, contains_reg_of_mode,
3347         move_cost, may_move_in_cost, may_move_out_cost): Make the
3348         variables external.
3349         (move_table): Remove typedef.
3350         (init_move_cost): Make it external.
3351         (allocate_reg_info, resize_reg_info, setup_reg_classes): New
3352         functions.
3353
3354         * rtl.h (init_move_cost, allocate_reg_info, resize_reg_info,
3355         setup_reg_classes): New function prototypes.
3356         (eliminable_regset): New external variable declaration.
3357         (build_insn_chain, update_equiv_regs): New function prototypes.
3358
3359         * Makefile.in (IRA_INT_H): New definition.
3360         (OBJS-common): Add ira.o, ira-build.o, ira-costs.o,
3361         ira-conflicts.o, ira-color.o, ira-emit.o, and ira-lives.o.
3362         (reload1.o, toplev.o): Add dependence on ira.h.
3363         (cfgloopanal.o): Add PARAMS_H.
3364         (caller-save.o): Add dependence on output.h and ira.h.
3365         (ira.o, ira-build.o, ira-costs.o, ira-conflicts.o, ira-color.o,
3366         ira-emit.o, ira-lives.o): New entries.
3367
3368         * passes.c (pass_ira): New pass.
3369
3370         * params.def (PARAM_IRA_MAX_LOOPS_NUM): New parameter.
3371
3372         * reload1.c (ira.h): Include the header.
3373         (changed_allocation_pseudos): New bitmap.
3374         (init_reload): Initiate the bitmap.
3375         (compute_use_by_pseudos): Permits spilled registers in FROM.
3376         (temp_pseudo_reg_arr): New variable.
3377         (reload): Allocate and free temp_pseudo_reg_arr.  Sort pseudos for
3378         IRA.  Call alter_reg with the additional parameter.  Don't clear
3379         spilled_pseudos for IRA.  Restore original insn chain for IRA.
3380         Clear changed_allocation_pseudos at the end of reload.
3381         (calculate_needs_all_insns): Call IRA's mark_memory_move_deletion.
3382         (hard_regno_to_pseudo_regno): New variable.
3383         (count_pseudo): Check spilled pseudos.  Set up
3384         hard_regno_to_pseudo_regno.
3385         (count_spilled_pseudo): Check spilled pseudos. Update
3386         hard_regno_to_pseudo_regno.
3387         (find_reg): Use better_spill_reload_regno_p.  Check
3388         hard_regno_to_pseudo_regno.
3389         (alter_reg): Set up spilled_pseudos.  Add a new parameter.  Add
3390         code for IRA.
3391         (eliminate_regs_1): Use additional parameter for alter_reg.
3392         (finish_spills): Set up pseudo_previous_regs only for spilled
3393         pseudos.  Call reassign_pseudos once for all spilled pseudos, pass
3394         more arguments.  Don't clear live_throughout and dead_or_set for
3395         spilled pseudos.  Use additional parameter for alter_reg.  Call
3396         mark_allocation_change.  Set up changed_allocation_pseudos.
3397         Remove sanity check.
3398         (emit_input_reload_insns, delete_output_reload): Use additional
3399         parameter for alter_reg.  Call mark_allocation_change.
3400         (substitute, gen_reload_chain_without_interm_reg_p): New
3401         functions.
3402         (reloads_conflict): Use gen_reload_chain_without_interm_reg_p.
3403
3404         * testsuite/gcc.dg/20080410-1.c: New file.
3405
3406         * config/s390/s390.h (IRA_COVER_CLASSES,
3407         IRA_HARD_REGNO_ADD_COST_MULTIPLIER): Define.
3408
3409         * config/sparc/sparc.h (IRA_COVER_CLASSES): New macro.
3410
3411         * config/i386/i386.h (IRA_COVER_CLASSES): Ditto.
3412
3413         * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
3414
3415         * config/rs6000/rs6000.h (IRA_COVER_CLASSES): Ditto.
3416
3417         * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
3418
3419         * config/alpha/alpha.h (IRA_COVER_CLASSES): Ditto.
3420
3421         2008-08-24  Jeff Law  <law@redhat.com>
3422         * ira.c (setup_reg_class_intersect_union): Prefer smallest class
3423         when ignoring unavailable registers.
3424
3425         2008-08-24  Jeff Law  <law@redhat.com>
3426         * ira-color.c (coalesced_pseudo_reg_slot_compare): Check
3427         FRAME_GROWS_DOWNWARD and STACK_GROWS_DOWNWARD.
3428         * ira.c (setup_eliminable_regset): Check stack_realign_needed.
3429         * config/mn10300/mn10300.h (IRA_COVER_CLASSES): New macro.
3430
3431         2008-06-03 Steve Chamberlain <steve.chamberlain@gmail.com>
3432         * ira-build.c (allocno_range_compare_func): Stabilize sort.
3433
3434         2008-05-29 Andy Hutchinson <hutchinsonandy@aim.com>
3435         * config/avr/avr.h (IRA_COVER_CLASSES): New macro.
3436         * reload1.c (find_reg): Process registers in register allocation order.
3437
3438         2008-05-10 Richard Sandiford <rsandifo@nildram.co.uk>
3439         * toplev.c (backend_init_target): Move ira_init call from
3440         here...
3441         (lang_dependent_init_target): ...to here.
3442
3443         2008-05-10 Richard Sandiford <rsandifo@nildram.co.uk>
3444         * ira.c (setup_class_subset_and_memory_move_costs): Don't
3445         calculate memory move costs for NO_REGS.
3446
3447         2008-05-05 Kaz Kojima <kkojima@gcc.gnu.org>
3448         * ira-color.c (ira_fast_allocation): Use no_stack_reg_p only if
3449         STACK_REGS is defined.
3450
3451         2008-04-08 Andrew Pinski <andrew_pinski@playstation.sony.com>
3452         * config/spu/spu.h (IRA_COVER_CLASSES): New macro.
3453
3454         2008-04-04 Bernd Schmidt <bernd.schmidt@analog.com>
3455         * config/bfin/bfin.h (IRA_COVER_CLASSES): New macro.
3456
3457         2008-04-04 Kaz Kojima <kkojima@gcc.gnu.org>
3458         * config/sh/sh.h (IRA_COVER_CLASSES): Define.
3459         * config/sh/sh.md (movsicc_true+3): Check if emit returns a
3460         barrier.
3461
3462 2008-08-26  Victor Kaplansky  <victork@il.ibm.com>
3463             Dorit Nuzman  <dorit@il.ibm.com>
3464
3465         * gcc/config/spu/spu.md (vec_extract_evenv4si,
3466         vec_extract_evenv4sf, vec_extract_evenv8hi,
3467         vec_extract_evenv16qi, vec_extract_oddv4si,
3468         vec_extract_oddv4sf, vec_extract_oddv8hi, vec_extract_oddv16qi,
3469         vec_interleave_highv4sf, vec_interleave_lowv4sf,
3470         vec_interleave_highv4si, vec_interleave_lowv4si,
3471         vec_interleave_highv8hi, vec_interleave_lowv8hi,
3472         vec_interleave_highv16qi, vec_interleave_lowv16qi,
3473         vec_pack_trunc_v8hi, vec_pack_trunc_v4si): Implement.S
3474
3475 2008-08-25  Janis Johnson  <janis187@us.ibm.com>
3476
3477         PR target/36756
3478         * config/rs6000/rs6000.c (optimization_options): Don't default to
3479         section anchors without toplevel reorder.
3480
3481 2008-08-25  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3482
3483         * config/spu/spu_mfcio.h (mfc_begin_critical_section): New function.
3484         (mfc_end_critical_section): Likewise.
3485
3486 2008-08-25  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3487
3488         * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute): Propagate
3489         all type qualifiers from element type to vector type.
3490
3491 2008-08-25  David Daney  <ddaney@avtrex.com>
3492
3493         * config/mips/mips.md (immediate_insn): Move up in file, fix
3494         comment typo, reformat.
3495         (fetchop_bit, atomic_hiqi_op memory_barrier,
3496         sync_compare_and_swap<mode>, compare_and_swap_12, sync_add<mode>,
3497         sync_<optab><mode>, sync_<optab>_12, sync_old_<optab><mode>,
3498         sync_old_<optab>_12, sync_new_<optab><mode>, sync_new_<optab>_12,
3499         sync_nand<mode>, sync_nand_12, sync_old_nand<mode>,
3500         sync_old_nand_12, sync_new_nand<mode>, sync_new_nand_12,
3501         sync_sub<mode>, sync_old_add<mode>, sync_old_sub<mode>,
3502         sync_new_add<mode>, sync_new_sub<mode>, sync_<optab><mode>,
3503         sync_old_<optab><mode>, sync_new_<optab><mode>, sync_nand<mode>,
3504         sync_old_nand<mode>, sync_new_nand<mode>,
3505         sync_lock_test_and_set<mode>, sync_lock_test_and_set<mode>,
3506         test_and_set_12): Moved to sync.md.
3507         (sync.md): Include.
3508         * config/mips/sync.md: New file.
3509
3510 2008-08-25  Richard Henderson  <rth@redhat.com>
3511
3512         * dwarf2out.c (def_cfa_1): Don't scale by DWARF_CIE_DATA_ALIGNMENT.
3513         (regsave): Likewise.
3514         (lookup_cfa_1): Don't rescale by DWARF_CIE_DATA_ALIGNMENT.
3515         (output_cfi_directive): Likewise.
3516         (div_data_align): New.
3517         (output_cfi): Use it.
3518
3519 2008-08-24  Adam Nemet  <anemet@caviumnetworks.com>
3520
3521         * config.gcc (mips64*-*-linux*): Handle mips64octeon*-*-linux*.
3522         * config/mips/mips.h (enum processor_type): Add PROCESSOR_OCTEON.
3523         (TARGET_OCTEON): New macro.
3524         (TARGET_CPU_CPP_BUILTINS): Define __OCTEON__ for Octeon.
3525         (MIPS_ISA_LEVEL_SPEC, MIPS_ARCH_FLOAT_SPEC): Handle -march=octeon.
3526         (ISA_HAS_POP): New macro.
3527         * config/mips/driver-native.c (host_detect_local_cpu): Handle
3528         Octeon.
3529         * config/mips/mips.c (mips_cpu_info_table, mips_rtx_cost_data):
3530         Handle Octeon.
3531         * config/mips/mips.md (cpu): Add octeon.
3532         (type): Add pop attribute value.
3533         (popcount<mode>2): New pattern.
3534         * doc/invoke.texi (-march=@var{arch}): Add octeon.
3535
3536 2008-08-24  Jan Hubicka  <jh@suse.cz>
3537
3538         * doc/invoke.texi (-fipa-cp-clone): New option.
3539         (-fipa-cp): Update docs.
3540         (--param ipcp-unit-growth):New.
3541         * ipa-cp.c: Include fibheap.h, params.h
3542         (ipcp_initialize_node_lattices): When not cloning, all externally
3543         visible functions are bottom.
3544         (ipcp_need_redirect_p): Accept clones.
3545         (ipcp_insert_stage): Use cost driven heuristics.
3546         (max_count, dead_nodes): New static vars.
3547         (ipcp_need_original_clone_p, ipcp_estimate_cloning_cost,
3548         ipcp_const_param_count): New functions.
3549         * common.opt (ipa-cp-clone): New command line option.
3550         * params.def (ipcp-unit-growth): New.
3551
3552 2008-08-24  Jan Hubicka  <jh@suse.cz>
3553
3554         * tree-inline.c (tree_function_versioning): Look harder
3555         for referenced vars.
3556
3557 2008-08-24  Razya Ladelsky  <razya@il.ibm.com>
3558
3559         PR tree-optimization/37185
3560         * matrix-reorg.c (transform_access_sites): Update changed stmt.
3561
3562 2008-08-23  Jan Hubicka  <jh@suse.cz>
3563
3564         * ipa-cp.c (ipcp_analyze_node): New function.
3565         (ipcp_update_cloned_node): Use it.
3566         (ipcp_init_stage): Likewise.
3567         * ipa-inline.c (function_insertion_hook_holder): New static var.
3568         (analyze_function): Break out from ....
3569         (inline_generate_summary): Here; register insertion hook.
3570         (cgraph_decide_inlining): Remove hook.
3571         (add_new_function): New function.
3572
3573 2008-08-23  Jan Hubicka  <jh@suse.cz>
3574
3575         * opts.c (decode_options): Revert accidental change enabling ipa-cp.
3576
3577 2008-08-23  Jan Hubicka  <jh@suse.cz>
3578
3579         * ipa-cp.c (constant_val_insert): Remove.
3580         (ipcp_propagate_one_const): Remove.
3581         (ipcp_create_replace_map): Always insert replacements to the map.
3582         (ipcp_insert_stage): Do not try to insert statements by hand.
3583         * tree-inline.c (insert_init_stmt): Break out from ...
3584         (setup_one_parameter): ... here; allow NULL BB pointer.
3585         (tree_function_versioning): Use setup_one_parameter to process
3586         replacement map.
3587
3588 2008-08-23  Jan Hubicka  <jh@suse.cz>
3589
3590         * tree.c (decl_address_ip_invariant_p): New function.
3591         * tree.h (decl_address_ip_invariant_p): Declare.
3592         * gimple.c (strip_invariant_refs): Break out from ...
3593         (is_gimple_invariant_address): ... here
3594         (is_gimple_ip_invariant_address): New function.
3595         (is_gimple_ip_invariant): New function.
3596         * gimple.h (is_gimple_ip_invariant_address, is_gimple_ip_invariant):
3597         Declare.
3598
3599         * ipa-cp.c (ipcp_lat_is_const): Remove handling of IPA_CONST_VALUE_REF.
3600         (ipcp_lat_is_insertable): All constants are insertable.
3601         (ipcp_lattice_from_jfunc, ipcp_print_all_lattices): Remove handling of
3602         IPA_CONST_VALUE_REF.
3603         (ipcp_initialize_node_lattices): Propagate all types of operands.
3604         (build_const_val): Do not handle IPA_CONST_VALUE_REF.
3605         (ipcp_create_replace_map): Reformat.
3606         (ipcp_need_redirect_p): Simplify.
3607         (ipcp_insert_stage): Check that argument is used before clonning.
3608         * ipa-prop.c (ipa_print_node_jump_functions): Do not handle IPA_CONST_REF.
3609         (compute_scalar_jump_functions): Simplify using is_gimple_ip_invariat.
3610         (determine_cst_member_ptr): Keep wrapping ADDR_EXPR of members.
3611         (update_call_notes_after_inlining): Expect ADDR_EXPR in operand.
3612         * ipa-prop.h (jump_func_type): Remove IPA_CONST_REF.
3613         (jump_func_type): Remove IPA_CONST_VALUE_REF.
3614         * tree-inline.c (tree_function_versioning): Add variables referenced by
3615         replacing trees.
3616
3617 2008-08-23  Jan Hubicka  <jh@suse.cz>
3618
3619         PR target/37094
3620         * i386.c (standard_80387_constant_p): Use optimize_size.
3621
3622 2008-08-23  Ira Rosen  <irar@il.ibm.com>
3623
3624         PR tree-optimization/37161
3625         * tree-vectorizer.h (vect_get_smallest_scalar_type): Declare.
3626         * tree-vect-analyze.c (vect_get_smallest_scalar_type): New function.
3627         (vect_determine_vectorization_factor): Move the scalar type
3628         retrieval to vect_get_smallest_scalar_type.
3629         (vect_build_slp_tree): Call vect_get_smallest_scalar_type to get
3630         scalar type. Remove redundant computation.
3631         * tree-vect-transform.c (vect_get_constant_vectors): Add argument.
3632         (vect_get_slp_defs): Take the type of RHS into account if
3633         necessary by calling vect_get_smallest_scalar_type. Call
3634         vect_get_constant_vectors with additional argument.
3635
3636 2008-08-23  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
3637
3638         PR 35648
3639         * doc/invoke.texi (Wwrite-strings): Clarify description.
3640
3641 2008-08-23  Ira Rosen  <irar@il.ibm.com>
3642
3643         PR tree-optimization/37174
3644         * tree-vect-analyze.c (vect_get_and_check_slp_defs): Check that the
3645         def stmt is a part of the loop before accessing its stmt_vec_info.
3646
3647 2008-08-22  Anatoly Sokolov  <aesok@post.ru>
3648
3649         PR target/11259
3650         * config/avr/avr.md (UNSPEC_SWAP): New constants.
3651         (*swap): New insn pattern.
3652         (*ashlqi3): Rename from ashlqi3 insn pattern.
3653         (ashlqi3): New expanders.
3654         (*lshrqi3): Rename from lshrqi3 insn pattern.
3655         (lshrqi3): New expanders.
3656         (ashlqi3_const4, ashlqi3_const5, ashlqi3_const6, lshrqi3_const4,
3657         lshrqi3_const5, lshrqi3_const6): New splitters.
3658         (andi, ashlqi3_l_const4, ashlqi3_l_const5, ashlqi3_l_const6,
3659         lshrqi3_l_const4, lshrqi3_l_const5, lshrqi3_l_const6): Define
3660         peephole2 patterns.
3661
3662 2008-08-22  Richard Guenther  <rguenther@suse.de>
3663
3664         PR tree-optimization/37078
3665         * tree-vrp.c (extract_range_from_unary_expr): Avoid generating
3666         [+INF, +INF] ranges.
3667
3668 2008-08-22  Richard Guenther  <rguenther@suse.de>
3669
3670         PR tree-optimization/37143
3671         * tree-vect-transform.c (vect_create_cond_for_align_checks): Build
3672         a conversion statement instead of a copy.
3673
3674 2008-08-22  Uros Bizjak  <ubizjak@gmail.com>
3675
3676         PR target/37184
3677         * config/i386/i386.c (ix86_match_ccmode): Handle CCAmode,
3678         CCCmode, CCOmode and CCSmode destination modes.
3679
3680         PR target/37191
3681         * config/i386/mmx.md (*vec_extractv2sf_0): Avoid combining registers
3682         from different units in a single alternative.
3683         (*vec_extractv2sf_1): Ditto.
3684         (*vec_extractv2si_0): Ditto.
3685         (*vec_extractv2si_1): Ditto.
3686         * config/i386/sse.md (sse2_storehpd): Ditto.
3687         (sse2_storelpd): Ditto.
3688         (sse2_loadhpd): Ditto.
3689         (sse2_loadlpd): Ditto.
3690
3691         PR target/37197
3692         * config/i386/i386.md (clzsi2_abm): Fix operand 1 constraints.
3693         (popcountsi2): Ditto.
3694         (clzdi2_abm): Ditto.
3695         (popcountdi2): Ditto.
3696         (clzhi2_abm): Ditto.
3697         (popcounthi2): Ditto.
3698
3699 2008-08-22  Richard Guenther  <rguenther@suse.de>
3700
3701         PR middle-end/36548
3702         PR middle-end/37125
3703         * fold-const.c (extract_muldiv_1): Optimize (X * C1) % C2 only
3704         if the multiplication does not overflow.
3705
3706 2008-08-21  Nathan Sidwell  <nathan@codesourcery.com>
3707
3708         * c-ppoutput.c (init_pp_output): Initialize src_line to 1.
3709
3710 2008-08-21  Richard Henderson  <rth@redhat.com>
3711
3712         * configure.ac (HAVE_GAS_CFI_PERSONALITY_DIRECTIVE): Remove
3713         spurrious comma from test.
3714         * configure: Rebuild.
3715
3716 2008-08-21  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
3717
3718         PR 30457
3719         * builtins.c (fold_builtin_next_arg): Add warning about undefined
3720         behaviour.
3721
3722 2008-08-21  Aldy Hernandez  <aldyh@redhat.com>
3723
3724         * c-tree.h (grokfield): New argument.
3725         * c-decl.c (grokfield): Handle new location argument.
3726         * c-parser.c (c_parser_struct_declaration): Pass location to
3727         grokfield.
3728
3729 2008-08-21  Richard Guenther  <rguenther@suse.de>
3730
3731         * tree-ssa-ccp.c (ccp_fold): Fold VIEW_CONVERT_EXPRs of constants.
3732
3733 2008-08-21  Jan Hubicka  <jh@suse.cz>
3734
3735         * cgraph.c (first_cgraph_function_insertion_hook): New variable.
3736         (cgraph_add_function_insertion_hook,
3737         cgraph_remove_function_insertion_hook,
3738         cgraph_call_function_insertion_hooks): New functions.
3739         * cgraph.h (cgraph_add_function_insertion_hook,
3740         cgraph_remove_function_insertion_hook,
3741         cgraph_call_function_insertion_hooks): Declare.
3742         * ipa-reference.c (function_insertion_hook_holder): New variable.
3743         (check_operand, look_for_address_of): When checking late, do not care
3744         about module bitmaps.
3745         (add_new_function): New function.
3746         (generate_summary): Register hooks; zero module bitmaps.
3747         (propagate): Unregister hooks.
3748         * ipa-pure-const.c (function_insertion_hook_holder): New variable.
3749         (add_new_function): New function.
3750         (generate_summary): Register hook.
3751         (propagate): Remove hook.
3752
3753         * ipa-cp.c (ipcp_need_redirect_p): Fix to not be constant 0.
3754
3755         * tree-pass.h (pass_ipa_cp): Make ipa_opt_pass.
3756         * ipa-cp.c (ipcp_update_cloned_node): New function.
3757         (build_const_val): Handle functions correctly; bring type logic
3758         into sync with tree-inline.c
3759         (ipcp_init_stage):  Take care of computing stuff needed by
3760         indirect inlining; update clones.
3761         (ipcp_generate_summary): Break out of ipcp_driver.
3762         (ipcp_driver): Do only execution and transformation.
3763         (pass_ipa_cp): Make IPA_PASS.
3764         * tree-ssa-ccp.c (fold_stmt_r): Check type before trying to fold
3765         offset to address.
3766         * ipa-inline.c (inline_indirect_intraprocedural_analysis): When doing
3767         ipcp, some info is already available.
3768         * ipa-prop.c (ipa_count_arguments): Grow edge lists as needed.
3769         * tree-inline.c (remap_ssa_name): Unshare expression.
3770
3771 2008-08-21  Richard Guenther  <rguenther@suse.de>
3772
3773         * tree-ssa-pre.c (insert_into_preds_of_block): Before inserting
3774         a PHI ask VN if it is already available.
3775         * tree-ssa-sccvn.h (vn_phi_lookup): Declare.
3776         * tree-ssa-sccvn.c (vn_phi_lookup): Export.
3777
3778 2008-08-21  Richard Guenther  <rguenther@suse.de>
3779
3780         PR middle-end/36817
3781         * tree-chrec.c (chrec_apply): Always call chrec_fold_plus which
3782         makes sure to produce a result of the correct type.
3783
3784 2008-08-21  Jan Hubicka  <jh@suse.cz>
3785         Backport from LTO branch:
3786
3787         2008-05-05  Kenneth Zadeck <zadeck@naturalbridge.com>
3788                     Jan Hubicka  <jh@suse.cz>
3789
3790         * ipa-pure-const.c
3791         (init_state, finish_state, set_function_state, generate_summary):
3792         New functions.
3793         (scan_stmt): Renamed from scan_function.  Changed to keep state in
3794         local static vars rather than cgraph aux field.
3795         (propagate): Renamed from static_execute. Changed to keep state in
3796         local static vars rather than cgraph aux field.
3797         (pass_ipa_pure_const): Changed from SIMPLE_IPA_PASS to IPA_PASS.
3798         * tree-pass.h (pass_ipa_pure_const): Turn into IPA_PASS.
3799
3800         2008-07-15  Kenneth Zadeck <zadeck@naturalbridge.com>
3801
3802         * tree-pass.h (pass_ipa_reference): Make into ipa_opt_pass.
3803         * ipa-reference.c (init_function_info, generate_summary,
3804         propagate): New functions.
3805         (analyze_function):  Call init_function_info.
3806         (static_execute): Stripped into generate_summary and propagate.
3807         (pass_ipa_reference): Made into ipa_opt_pass.
3808
3809 2008-08-21  Richard Guenther  <rguenther@suse.de>
3810
3811         PR tree-optimization/37181
3812         * tree-vrp.c (extract_range_from_binary_expr): Check for NULL
3813         folding result.
3814         (extract_range_from_unary_expr): Likewise.
3815
3816 2008-08-21  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
3817
3818         * diagnostic.c (pedwarn_at): Rename as pedwarn.
3819         (pedwarn): Delete.
3820         * toplev.h (pedwarn_at): Likewise.
3821         * builtins.c: Update all calls to pedwarn.
3822         * c-lex.c: Likewise.
3823         * toplev.c: Likewise.
3824         * c-tree.h: Likewise.
3825         * c-decl.c: Likewise.
3826         * c-errors.c: Likewise.
3827         * c-typeck.c: Likewise.
3828         * c-common.c: Likewise.
3829         * c-parser.c: Likewise.
3830
3831 2008-08-20  Joseph Myers  <joseph@codesourcery.com>
3832
3833         PR target/31070
3834         * config/sparc/sparc.c (function_arg_slotno): Handle structure
3835         with MODE_VECTOR_INT mode.
3836
3837 2008-08-21  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
3838
3839         PR middle-end/179
3840         * tree-ssa.c (warn_uninit): Do not warn for variables that can be
3841         initialized outside the current module.
3842         (warn_uninitialized_var): Ignore left-hand side when walking the
3843         trees. Ignore address expressions. Examine VUSE operands in gimple
3844         statements with a variable declaration on the right-hand side.
3845
3846 2008-08-20  Richard Sandiford  <rdsandiford@googlemail.com>
3847
3848         PR bootstrap/37155
3849         * rtlanal.c (subreg_offset_representable_p): Revert last change.
3850
3851 2008-08-20  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
3852
3853         PR 35701
3854         * c-common.c (conversion_warning): Do not warn if applying bit-and
3855         operator to unsigned constant that fits in the target type.
3856
3857 2008-08-20  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
3858
3859         PR c++/35602
3860         * c-common.c (conversion_warning): Do not warn for artificial
3861         expressions.
3862
3863 2008-08-20  Richard Guenther  <rguenther@suse.de>
3864
3865         * tree-vrp.c (op_with_constant_singleton_value_range): New function.
3866         (extract_range_from_binary_expr): Fall back to constant propagation.
3867         (extract_range_from_unary_expr): Likewise.
3868
3869 2008-08-20  Richard Guenther  <rguenther@suse.de>
3870
3871         * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Do not mess
3872         with TREE_THIS_VOLATILE on shared nodes.
3873         (fold_stmt_r): Likewise.
3874
3875 2008-08-20  Jakub Jelinek  <jakub@redhat.com>
3876
3877         PR c/37171
3878         * c-parser.c (c_parser_attributes): For keywords use canonical
3879         spelling for attr_name.
3880
3881 2008-08-20  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
3882
3883         * value-prof.c (check_counter): Revert wrong call to error.
3884
3885 2008-08-20  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
3886
3887         * profile.c: Update calls to inform.
3888         * value-prof.c: Update calls to inform.
3889
3890 2008-08-20  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
3891
3892         * diagnostic.c (inform): Add an explicit location_t parameter.
3893         * toplev.h (inform): Update declaration.
3894         * builtins.c: Update all calls to inform.
3895         * c-common.c: Likewise.
3896         * c-decl.c: Likewise.
3897         * c-opts.c: Likewise.
3898         * c-pch.c: Likewise.
3899         * c-pragma.c: Likewise.
3900         * c-typeck.c: Likewise.
3901         * coverage.c: Likewise.
3902         * opts.c: Likewise.
3903         * toplev.c: Likewise.
3904         * tree-cfg.c: Likewise.
3905         * tree-ssa.c: Likewise.
3906
3907 2008-08-20  H.J. Lu  <hongjiu.lu@intel.com>
3908
3909         PR target/37169
3910         * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): In
3911         V2DI mode, for SSE4.1, use movq instead of vector set if the
3912         second element is zero and inter-unit moves are OK.
3913
3914 2008-08-20  Richard Guenther  <rguenther@suse.de>
3915
3916         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): More
3917         properly handle conversion/copy chains after tuplification.
3918
3919 2008-08-20  Richard Guenther  <rguenther@suse.de>
3920
3921         * passes.c (init_optimization_passes): Move the second
3922         forwprop pass before alias computation.  Remove the second
3923         DCE pass.  Remove the first dominator and phi copy/const
3924         prop passes.
3925
3926 2008-08-20  Nick Clifton  <nickc@redhat.com>
3927
3928         * configure.ac (HAVE_GAS_CFI_DIRECTIVE): Always test for assembler
3929         support of this feature.  Do not assume that a sufficiently new
3930         assembler will support the feature regardless of the target type.
3931         (HAVE_GAS_CFI_PERSONALITY_DIRECTIVE): Likewise.
3932         * configure: Regenerate.
3933
3934 2008-08-20  Richard Guenther  <rguenther@suse.de>
3935
3936         * tree-vrp.c (found_in_subgraph): Remove.
3937         (live): New global static.
3938         (live_on_edge): New function.
3939         (blocks_visited): Remove.
3940         (register_edge_assert_for_2): Use live_on_edge.
3941         (find_conditional_asserts): Remove code dealing with
3942         found_in_subgraph.  Do not walk the CFG.
3943         (find_switch_asserts): Likewise.
3944         (find_assert_locations_1): Renamed from find_assert_locations.
3945         Move finding assert locations for conditional and switch
3946         statements first.  Update live bitmap.  Do not walk the CFG.
3947         (find_assert_locations): New function.
3948         (insert_range_assertions): Remove entry of CFG walk.
3949         Adjust call to find_assert_locations.
3950         * tree-ssa-pre.c (do_regular_insertion): Ignore critical edges
3951         that only can appear because of fake exit edges but assert we
3952         never try to insert on those.
3953         (fini_pre): Do not remove fake exit edges here...
3954         (execute_pre): ...but here, before committing edge inserts.
3955
3956 2008-08-19  Richard Guenther  <rguenther@suse.de>
3957
3958         * passes.c (init_optimization_passes): Exchange store-ccp
3959         with a ccp pass.
3960
3961 2008-08-19  Rafael Espíndola  <espindola@google.com>
3962
3963         * varasm.c (weak_decls): Move earlier in the file.
3964         (assemble_external): Add weak decls to the weak_decls list.
3965         (declare_weak): Don't add decls to the weak_decls list.
3966
3967 2008-08-19  H.J. Lu  <hongjiu.lu@intel.com>
3968
3969         PR target/37157
3970         * config/i386/sse.md (sse2_punpckhqdq, sse2_punpcklqdq): Moved
3971         before (sse2_shufpd_<mode>).
3972
3973 2008-08-19  Jakub Jelinek  <jakub@redhat.com>
3974
3975         PR debug/37156
3976         * pretty-print.c (pp_base_format): Deal with recursive BLOCK trees.
3977         * tree.c (block_nonartificial_location): Likewise.
3978
3979 2008-08-19  Richard Guenther  <rguenther@suse.de>
3980
3981         PR tree-optimization/35972
3982         PR tree-optimization/23094
3983         * tree-ssa-sccvn.h (vn_reference_lookup_pieces): Add maywalk
3984         parameter.
3985         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Properly
3986         handle MISALIGNED_INDIRECT_REF.
3987         (get_ref_from_reference_ops): New helper.
3988         (vn_reference_lookup_pieces): Walk the use-def chain using the
3989         alias-oracle if requested.
3990         * tree-ssa-pre.c (phi_translate_1): Do reference lookup with
3991         walking the use-def chain.
3992         (compute_avail): But not here.
3993         (create_component_ref_by_pieces_1): Properly handle
3994         MISALIGNED_INDIRECT_REF.
3995         (do_regular_insertion): Handle fully redundant
3996         expressions after PHI-translation also for SSA_NAME values, not
3997         only constants.  Correctly use edoubleprime for that.
3998
3999 2008-08-19  Ira Rosen  <irar@il.ibm.com>
4000
4001         * tree-vectorizer.c (supportable_widening_operation): Support
4002         multi-step conversion, return the number of steps in such conversion
4003         and the required intermediate types.
4004         (supportable_narrowing_operation): Likewise.
4005         * tree-vectorizer.h (vect_pow2): New function.
4006         (supportable_widening_operation): Change argument types.
4007         (supportable_narrowing_operation): Likewise.
4008         (vectorizable_type_promotion): Add an argument.
4009         (vectorizable_type_demotion): Likewise.
4010         * tree-vect-analyze.c (vect_analyze_operations): Call
4011         vectorizable_type_promotion and vectorizable_type_demotion with
4012         additional argument.
4013         (vect_get_and_check_slp_defs): Detect patterns.
4014         (vect_build_slp_tree): Add an argument, don't fail in case of multiple
4015         types.
4016         (vect_analyze_slp_instance): Don't fail in case of multiple types. Call
4017         vect_build_slp_tree with correct arguments. Calculate unrolling factor
4018         according to the smallest type in the loop.
4019         (vect_detect_hybrid_slp_stmts): Include statements from patterns.
4020         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Call
4021         supportable_widening_operation with correct arguments.
4022         * tree-vect-transform.c (vect_get_slp_defs): Allocate output vector
4023         operands lists according to the number of vector statements in left
4024         or right node, if exists.
4025         (vect_gen_widened_results_half): Remove unused argument.
4026         (vectorizable_conversion): Call supportable_widening_operation,
4027         supportable_narrowing_operation, and vect_gen_widened_results_half
4028         with correct arguments.
4029         (vectorizable_assignment): Change documentation, support multiple
4030         types in SLP.
4031         (vectorizable_operation): Likewise.
4032         (vect_get_loop_based_defs): New function.
4033         (vect_create_vectorized_demotion_stmts): Likewise.
4034         (vectorizable_type_demotion): Support loop-aware SLP and general
4035         multi-step conversion. Call vect_get_loop_based_defs and
4036         vect_create_vectorized_demotion_stmts for transformation.
4037         (vect_create_vectorized_promotion_stmts): New function.
4038         (vectorizable_type_promotion): Support loop-aware SLP and general
4039         multi-step conversion. Call vect_create_vectorized_promotion_stmts
4040         for transformation.
4041         (vectorizable_store): Change documentation, support multiple
4042         types in SLP.
4043         (vectorizable_load): Likewise.
4044         (vect_transform_stmt): Pass SLP_NODE to
4045         vectorizable_type_promotion and vectorizable_type_demotion.
4046         (vect_schedule_slp_instance): Move here the calculation of number
4047         of vectorized statements for each node from...
4048         (vect_schedule_slp): ... here.
4049         (vect_transform_loop): Call vect_schedule_slp without the last
4050         argument.
4051
4052 2008-08-19  Dorit Nuzman  <dorit@il.ibm.com>
4053
4054         PR bootstrap/37152
4055         * tree-vect-transform.c (vect_create_epilog_for_reduction): Change =
4056         to == in assert statement.
4057         (vectorizable_reduction): Fix typo.
4058
4059 2008-08-18  H.J. Lu  <hongjiu.lu@intel.com>
4060
4061         PR bootstrap/37153
4062         * value-prof.c (check_counter): Dereference pointer to overall
4063         count when printing it.
4064
4065 2008-08-18  H.J. Lu  <hongjiu.lu@intel.com>
4066
4067         * profile.h: Really add it.
4068
4069 2008-08-18  H.J. Lu  <hongjiu.lu@intel.com>
4070
4071         * mcf.c: Really add it.
4072
4073 2008-08-18  Paul Yuan  <yingbo.com@gmail.com>
4074             Vinodha Ramasamy  <vinodha@google.com>
4075
4076         * cgraph.c (cgraph_edge): Handle inconsistent counts when setting
4077         count_scale.
4078         * value-prof.c (check_counter): Fix the counter if
4079         flag_profile_correction is true.
4080         (tree_divmod_fixed_value_transform, tree_mod_pow2_value_transform,
4081         tree_mod_subtract_transform):
4082         Follow check_counter parameter change.
4083         * common.opt (fprofile-correction): New option.
4084         * mcf.c: New file.
4085         * profile.h: Likewise.
4086         * profile.c (edge_info, EDGE_INFO): Moved to new file profile.h.
4087         (sum_edge_counts, is_edge_inconsistent, correct_negative_edge_counts,
4088         is_inconsistent, set_bb_counts, read_profile_edge_counts): New
4089         functions.
4090         (compute_branch_probabilities): Refactored. Invokes mcf_smooth_cfg if
4091         flag_profile_correction is set.
4092
4093 2008-08-18  Richard Sandiford  <rdsandiford@googlemail.com>
4094
4095         * rtlanal.c (subreg_offset_representable_p): Check HARD_REGNO_MODE_OK.
4096
4097 2008-08-18  Tomas Bily  <tbily@suse.cz>
4098
4099         * tree.h (IS_CONVERT_EXPR_CODE_P): Renamed to CONVERT_EXPR_CODE_P.
4100         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Use
4101         CONVERT_EXPR_P.
4102         * tree-data-ref.c (split_constant_offset_1): Likewise.
4103         * tree-inline.c (estimate_operator_cost): Use CASE_CONVERT.
4104         * tree-sra.c (sra_walk_expr): Likewise.
4105         * matrix-reorg.c (ssa_accessed_in_assign_rhs): Likewise.
4106         * tree-ssa-loop-niter.c (expand_simple_operations): Likewise.
4107         * gimple.h (gimple_assign_cast_p): Use CONVERT_EXPR_CODE_P.
4108         * tree-ssa-structalias.c (find_func_aliases, find_func_aliases):
4109         Likewise.
4110         * gimple.c (gimple_assign_unary_nop_p): Likewise.
4111         * tree-vect-transform.c (vectorizable_type_demotion)
4112         (vectorizable_type_promotion): Likewise.
4113         * tree-inline.c (expand_call_inline):
4114         * tree-ssa-forwprop.c (get_prop_source_stmt, can_propagate_from)
4115         (forward_propagate_addr_expr_1, forward_propagate_comparison)
4116         (tree_ssa_forward_propagate_single_use_vars): Likewise.
4117         * expr.c (expand_expr_real_1): Likewise.
4118         * tree-ssa-dom.c (hashable_expr_equal_p, iterative_hash_hashable_expr)
4119         (gimple_assign_unary_useless_conversion_p): Likewise.
4120         * tree-stdarg.c (execute_optimize_stdarg): Likewise.
4121         * tree-ssa-ccp.c (ccp_fold, fold_gimple_assign): Likewise.
4122         * fold-const.c (fold_unary): Likewise.
4123         * tree.h (CONVERT_EXPR_P): Likewise.
4124         * tree.c (simple_cst_equal, iterative_hash_expr): Likewise.
4125         * tree-ssa-loop-im.c (rewrite_bittest): Likewise.
4126         * tree-vrp.c:
4127         (register_edge_assert_for_2, extract_range_from_unary_expr)
4128         (register_edge_assert_for_1): Likewise.
4129
4130 2008-08-18  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
4131
4132         * real.h (dconst_e, dconst_third, dconst_sqrt2, dconst_e_ptr,
4133         dconst_third_ptr, dconst_sqrt2_ptr): Declare.
4134         (enum real_value_const): Delete.
4135         (get_real_const): Delete.
4136         * real.c (get_real_const): Delete.
4137         (dconst_e_ptr): Define.
4138         (dconst_third_ptr): Define.
4139         (dconst_sqrt2_ptr): Define.
4140         * builtins.c: Update all callers.
4141
4142 2008-08-18  Richard Guenther  <rguenther@suse.de>
4143
4144         * tree-ssa-reassoc.c (reassociate_bb): Properly reset the
4145         statement iterator after statement removal.
4146
4147 2008-08-18  Andreas Tobler  <a.tobler@schweiz.org>
4148
4149         * config/rs6000/driver-rs6000.c (detect_caches_freebsd): New function.
4150         (detect_processor_freebsd): Likewise.
4151         (host_detect_local_cpu): Call newly added functions for FreeBSD.
4152
4153 2008-08-18  Richard Guenther  <rguenther@suse.de>
4154
4155         * tree-cfg.c (verify_types_in_gimple_assign): Verify copies
4156         and loads have the correct types.
4157
4158 2008-08-18  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
4159
4160         PR cpp/7263
4161         * c-opts.c (cpp_opts): Remove static.
4162         * c-parser.c (cpp_opts): Declare it extern.
4163         (disable_extension_diagnostics): Handle cpp options.
4164         (enable_extension_diagnostics): Likewise.
4165
4166 2008-08-18  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
4167
4168         * diagnostics.c (permerror_at): Rename as permerror.
4169         (permerror): Delete.
4170         * toplev.h: Likewise.
4171
4172 2008-08-18  Richard Guenther  <rguenther@suse.de>
4173
4174         * passes.c (init_optimization_passes): Remove cleanup_cfg1,
4175         sdse1 and addressables2 passes.  Replace dce1 with cddce1.
4176         Move call_cdce before build_alias.  Move copyrename2,
4177         cunrolli and ccp2 beafore build_alias.  Re-add addressable2
4178         right after final inlining.
4179         * tree-cfg.c (build_gimple_cfg): Do not dump function here.
4180         (pass_build_cfg): But instead via TODO_dump_func.
4181
4182 2008-08-18  Richard Guenther  <rguenther@suse.de>
4183
4184         * tree-sra.c (generate_element_init_1): Deal with NULL constructor
4185         element index.
4186         (scalarize_init): If we failed to generate some initializers
4187         do not generate zeros for not instantiated members.  Instead
4188         rely on the copy out.
4189         * tree-ssa-operands.c (get_addr_dereference_operands): Warn
4190         about missing flow-sensitive alias info only if we have
4191         aliases computed.
4192
4193 2008-08-17  Nick Clifton  <nickc@redhat.com>
4194
4195         * doc/extend.texi (Function Attributes): Fix typo in description
4196         if hot function attribute.
4197
4198 2008-08-17  Daniel Jacobowitz  <dan@codesourcery.com>
4199             Richard Sandiford  <rdsandiford@googlemail.com>
4200
4201         * doc/install.texi (--with-mips-plt): Document.
4202         * doc/invoke.texi (-mplt, -mno-plt): Document.
4203         * config.gcc (mips*-*-*): Add mips-plt to supported_defaults
4204         and handle ${with_mips_plt}.
4205         * config/mips/mips.opt (mplt): New option.
4206         * config/mips/mips.h (TARGET_ABICALLS_PIC0): New macro.
4207         (TARGET_ABICALLS_PIC2): Likewise.
4208         (TARGET_GPWORD): Return false for TARGET_ABSOLUTE_ABICALLS.
4209         (OPTION_DEFAULT_SPECS): Add a mips-plt entry.
4210         (ASM_SPEC): Use !mabi=* instead of !mabi*.
4211         (MIPS_CALL): Use TARGET_ABICALLS_PIC2 instead of TARGET_ABICALLS
4212         to decide whether to output ".option picX" directives.
4213         * config/mips/linux.h (SUBTARGET_ASM_SPEC): Remove -mabi=64 handling.
4214         Pass -call_nonpic rather than -KPIC for -mplt.
4215         (BASE_DRIVER_SELF_SPECS): Remove -mplt if -mno-shared is not present
4216         on the command line.  Also remove it when -mabi=64 is used without
4217         -msym32.
4218         * config/mips/linux64.h (SUBTARGET_ASM_SPEC): Delete.
4219         * config/mips/mips.c (mips_use_pic_fn_addr_reg_p): Handle
4220         TARGET_ABICALLS_PIC0.
4221         (mips_classify_symbol): Use TARGET_ABICALLS_PIC2 instead of
4222         TARGET_ABICALLS.
4223         (mips16_build_function_stub): Only output ".option pic" directives
4224         and PIC stubs if TARGET_ABICALLS_PIC2.  Call through $25 instead of $1.
4225         (mips16_build_call_stub): Fix comment and remove redundant
4226         ".set at"/"set .noat" directives.
4227         (mips_function_rodata_section): Use the default behaviour for
4228         TARGET_ABSOLUTE_ABICALLS.
4229         (mips_file_start): Emit ".option pic0" for TARGET_ABICALLS_PIC0.
4230         (mips_global_pointer): Handle TARGET_ABICALLS_PIC0.
4231         (mips_restore_gp): Do nothing if the current function doesn't use
4232         a global pointer.
4233         (mips_expand_prologue): Only save $gp if the current function uses it.
4234         Use a normal move for TARGET_ABICALLS_PIC0.
4235         (mips_override_options): Only set flag_pic if TARGET_ABICALLS_PIC2.
4236
4237 2008-08-17  Richard Sandiford  <rdsandiford@googlemail.com>
4238
4239         * config/mips/mips.c (mips_save_reg_p): Don't short-circuit rest
4240         of function when handling GLOBAL_POINTER_REGNUM.
4241
4242 2008-08-16  Eric Botcazou  <ebotcazou@adacore.com>
4243
4244         PR ada/20548
4245         * common.opt (-fstack-check): Do not declare the variable here.
4246         (-fstack-check=): New option variant.
4247         * doc/invoke.texi (Code Gen Options): Document it.
4248         * expr.h (STACK_OLD_CHECK_PROTECT): New macro.
4249         (STACK_CHECK_PROTECT): Bump to 3 pages if DWARF-2 EH is used.
4250         (STACK_CHECK_STATIC_BUILTIN): New macro.
4251         * doc/tm.texi (Stack Checking): Document STACK_CHECK_STATIC_BUILTIN.
4252         * opts.c: Include expr.h.
4253         (common_handle_option) <OPT_fold_stack_check_>: New case.
4254         <OPT_fstack_check>: Likewise.
4255         * calls.c (initialize_argument_information): Use TYPE_SIZE_UNIT
4256         consistently in the test for variable-sized types.  Adjust for
4257         new behaviour of flag_stack_check.
4258         * explow.c: Include except.h.
4259         (allocate_dynamic_stack_space): Do not take into account
4260         STACK_CHECK_MAX_FRAME_SIZE for static builtin stack checking.
4261         * function.c (gimplify_parameters): Use DECL_SIZE_UNIT in the test
4262         for variable-sized parameters.  Treat all parameters whose size is
4263         greater than STACK_CHECK_MAX_VAR_SIZE as variable-sized if generic
4264         stack checking is enabled.
4265         * gimplify.c (gimplify_decl_expr): Treat non-static objects whose
4266         size is greater than STACK_CHECK_MAX_VAR_SIZE as variable-sized
4267         if generic stack checking is enabled.
4268         (expand_function_end): Adjust for new behaviour of flag_stack_check.
4269         * reload1.c (reload): Likewise.
4270         * stmt.c (expand_decl): Assert that all automatic variables have
4271         fixed size at this point and remove dead code.
4272         * flags.h (stack_check_type): New enumeration type.
4273         (flag_stack_check): Declare.
4274         * toplev.c (flag_stack_check): New global variable.
4275         * Makefile.in (opts.o): Add dependency on EXPR_H.
4276         (explow.o): Add dependency on except.h.
4277
4278 2008-08-16  Andy Hutchinson  <hutchinsonandy@aim.com>
4279
4280         * config/avr/avr.c (avr_override_options): Reduce value of
4281         PARAM_INLINE_CALL_COST.
4282
4283 2008-08-15  Eric Botcazou  <ebotcazou@adacore.com>
4284
4285         * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: When converting
4286         to BLKmode, try to fetch an inner memory reference.  Use 'mode' in
4287         lieu of TYPE_MODE (type) throughout.
4288
4289 2008-08-15  Joseph Myers  <joseph@codesourcery.com>
4290
4291         * config/arm/arm.c (add_minipool_backward_ref): Check for
4292         8-byte-aligned entries in second case of forcing insertion after a
4293         particular entry.  Change third case to avoid inserting
4294         non-8-byte-aligned entries before 8-byte-aligned ones.
4295
4296 2008-08-15  Richard Guenther  <rguenther@suse.de>
4297
4298         * tree-ssa-ccp.c (maybe_fold_offset_to_reference): Do not
4299         strip components for unknown size accesses.
4300
4301 2008-08-15  Wolfgang Gellerich  <gellerich@de.ibm.com>
4302
4303         * config/s390/2097.md New file.
4304         * config/s390/s390.md ("z10prop" attribute): Define none,
4305         z10_super, z10_super_E1, z10_super_A1, z10_super_c,
4306         z10_super_c_E1, z10_fwd, z10_fwd_A1, z10_fwd_A3, z10_fwd_E1,
4307         z10_rec, z10_fr, z10_fr_A3, z10_fr_E1, z10_c, and z10_cobra as
4308         possible values and apply them to insns as appropriate.
4309         ("type" attribute): Removed itof and added ftrunctf,ftruncdf,
4310         ftruncsd, ftruncdd, itoftf, itofdf, itofsf, itofdd, itoftd,
4311         fdivdd, fdivtd, floaddd, floadsd, fmuldd, fmultd, fsimpdd,
4312         fsimpsd, fsimptd, fstoredd, fstoresd, ftoidfp as possible
4313         values.
4314         ("bfp" mode attribute): Removed.  Every occurence replaced
4315         with <mode>.
4316         * config/s390/s390.c (struct "z10_cost"): Updated entries.
4317         * config/s390/2084.md (insn_reservation "x_itof"): Updated
4318           type attribute.
4319
4320 2008-08-14  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
4321
4322         PR c/28152
4323         * c-parser.c (c_lex_one_token): Do not store the canonical spelling
4324         for keywords.
4325
4326 2008-08-14  Dorit Nuzman  <dorit@il.ibm.com>
4327
4328         * tree-vect-transform.c (vect_create_epilog_for_reduction): Takes an
4329         additional argument. Support reduction when duplication is needed due
4330         to data-types of different sizes in the loop.
4331         (get_initial_def_for_induction): Fix printout.
4332         (vect_get_vec_def_for_stmt_copy): Support case where the
4333         vec_stmt_for_operand is a phi node.
4334         (vectorizable_reduction): Support reduction when duplication is needed
4335         due to data-types of different sizes in the loop.
4336         (vectorizable_call): Remove restriction to not vectorize in case we
4337         have data-types of different sizes in the loop.
4338         (vectorizable_conversion): Likewise.
4339         (vectorizable_operation): Likewise.
4340         (vectorizable_type_demotion): Likewise.
4341         (vectorizable_type_promotion): Likewise.
4342         (vectorizable_induction): Add restriction to not vectorize in case
4343         we have data-types of different sizes in the loop.
4344
4345 2008-08-14  Christophe Saout  <christophe@saout.de>
4346             Uros Bizjak  <ubizjak@gmail.com>
4347
4348         PR target/37101
4349         * config/i386/sse.md (vec_concatv2di): Remove movlps alternative.
4350         (*vec_concatv2di_rex64_sse4_1): Ditto.
4351         (*vec_concatv2di_rex64_sse): Ditto.
4352
4353 2008-08-14  Jakub Jelinek  <jakub@redhat.com>
4354
4355         PR middle-end/37103
4356         * fold-const.c (fold_widened_comparison): Do not allow
4357         sign changes that change the result even if shorter type
4358         is wider than arg1_unw's type.
4359
4360 2008-08-13  Kazu Hirata  <kazu@codesourcery.com>
4361
4362         * gcc.dg/arm-g2.c, gcc.dg/arm-mmx-1.c, gcc.dg/arm-scd42-2.c:
4363         Skip if the multilib testing specifies -march that does not
4364         agree with the one specified in the testcase.
4365
4366 2008-08-13  Joseph Myers  <joseph@codesourcery.com>
4367
4368         * config/sparc/sparc.c (emit_soft_tfmode_cvt): Explicitly sign or
4369         zero extend SImode values being converted to TFmode before passing
4370         to libcalls.
4371
4372 2008-08-13  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4373
4374         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Predefine
4375         __PPU__ when targeting the Cell/B.E. PPU processor.
4376
4377 2008-08-13  Eric Botcazou  <ebotcazou@adacore.com>
4378
4379         * gimple.h (gimple_call_set_chain): Accept SSA variables.
4380         * tree-ssa-pre.c (create_component_ref_by_pieces_1) <CALL_EXPR>:
4381         Rematerialize the static chain, if any.
4382         * tree-ssa-sccvn.c (copy_reference_ops_from_call): Also copy the
4383         static chain.
4384
4385 2008-08-13  H.J. Lu  <hongjiu.lu@intel.com>
4386
4387         * dwarf2out.c (dwarf_stack_op_name): Remove prototype.
4388         (new_loc_descr): Likewise.
4389         (add_loc_descr): Likewise.
4390         (size_of_loc_descr): Likewise.
4391         (size_of_locs): Likewise.
4392         (output_loc_operands): Likewise.
4393         (output_loc_sequence): Likewise.
4394         (new_reg_loc_descr): New.
4395         (build_cfa_loc): Use it.
4396         (build_cfa_aligned_loc): Likewise.
4397         (one_reg_loc_descriptor): Likewise.
4398         (based_loc_descr): Likewise.
4399
4400 2008-08-13  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
4401
4402         PR 30551
4403         * doc/invoke.texi (Wmain): Update.
4404         * c-decl.c (start_decl): warn_main is only 0 or 1.
4405         (start_function): Likewise. Fix formatting.
4406         (finish_function): Delete redundant warning.
4407         * c.opt (Wmain): Add Var(warn_main) and Init(-1).
4408         * c-opts (c_common_handle_option): -Wall only has effect if
4409         warn_main is uninitialized. OPT_Wmain is automatically
4410         handled. -pedantic also enables Wmain.
4411         (c_common_post_options): Handle all logic for Wmain here.
4412         * c-common.c (warn_main): Delete.
4413         (check_main_parameter_types): Make pedwarns conditional on
4414         OPT_Wmain.
4415         * c-common.h (warn_main): Delete.
4416
4417 2008-08-13  H.J. Lu  <hongjiu.lu@intel.com>
4418
4419         PR middle-end/36701
4420         * expr.c (emit_group_store): Allocate stack temp with the
4421         largest alignment when copying from register to stack.
4422
4423 2008-08-13  Richard Guenther  <rguenther@suse.de>
4424
4425         * tree.h (maybe_fold_offset_to_address): Declare.
4426         * tree-ssa-ccp.c (surely_varying_stmt_p): Fix typo in last commit.
4427         (ccp_fold): Handle pointer conversions the same as fold_stmt.
4428         Likewise for POINTER_PLUS_EXPR.
4429         (maybe_fold_offset_to_reference): Enable disabled code.
4430         (maybe_fold_offset_to_address): New function.
4431         (fold_stmt_r): Use it.
4432         (fold_gimple_assign): Likewise.
4433         * gimplify.c (gimplify_conversion): Use maybe_fold_offset_to_address.
4434         (gimplify_expr): Likewise.
4435
4436 2008-08-13  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
4437
4438         * toplev.h (pedwarn_at): Fix declaration.
4439
4440 2008-08-13  Joseph Myers  <joseph@codesourcery.com>
4441
4442         * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
4443         LINK_SPEC): Use %R in -Y P argument.
4444
4445 2008-08-13  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
4446
4447         PR c/15236
4448         * diagnostic.c (pedwarn_at): New.
4449         * toplev.h (pedwarn_at): Declare.
4450         * c-tree.h (build_enumerator): Update declaration.
4451         * c-decl.c (finish_enum): Update comment.
4452         (build_enumerator): Take a location parameter. Give a pedwarn but do
4453         not perform any conversion.
4454         * c-parser.c (c_parser_enum_specifier): Set correct location for
4455         enumerator.
4456
4457 2008-08-13  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
4458
4459         PR 35635
4460         * c-common.c (conversion_warning): Use a switch. Ignore boolean
4461         expressions except for conversions to signed:1 bitfields. Handle
4462         COND_EXPR with constant operands.
4463
4464 2008-08-13  Richard Guenther  <rguenther@suse.de>
4465
4466         PR tree-optimization/15255
4467         * tree-ssa-reassoc.c (linearize_expr_tree): Declare.
4468         (struct oecount_s): New struct and VEC types.
4469         (cvec): New global.
4470         (oecount_hash): New function.
4471         (oecount_eq): Likewise.
4472         (oecount_cmp): Likewise.
4473         (zero_one_operation): New function.
4474         (build_and_add_sum): Likewise.
4475         (undistribute_ops_list): Perform un-distribution of multiplication
4476         and division on the chain of summands.
4477         (should_break_up_subtract): Also break up subtracts for factors.
4478         (reassociate_bb): Delete dead visited statements.
4479         Call undistribute_ops_list.  Re-sort and optimize if it did something.
4480         * passes.c (init_optimization_passes): Move DSE before
4481         reassociation.
4482         * tree-ssa-loop-niter.c (stmt_dominates_stmt_p): Correctly handle
4483         PHI nodes.
4484
4485 2008-08-12  Janis Johnson  <janis187@us.ibm.com>
4486
4487         * doc/invoke.texi (-fipa-pta): Say the option is experimental.
4488
4489         * doc/invoke.texi: Revert unintended checkin.
4490
4491 2008-08-12  Nathan Froyd  <froydnj@codesourcery.com>
4492
4493         PR libgomp/26165
4494         * gcc.c (include_spec_function): Tweak call to find_a_file.
4495
4496 2008-08-12  Jakub Jelinek  <jakub@redhat.com>
4497
4498         PR middle-end/37014
4499         * expr.c (expand_expr_real_1): Handle TRUTH_ANDIF_EXPR
4500         and TRUTH_ORIF_EXPR.
4501         * dojump.c (do_jump): Likewise.
4502
4503         PR tree-optimization/37084
4504         * tree-inline.c (copy_bb): Call gimple_regimplify_operands
4505         if id->regimplify, don't assume stmt is a cast assignment.
4506
4507 2008-08-12  Anatoly Sokolov  <aesok@post.ru>
4508
4509         * final.c (final_scan_insn): Use app_enable/app_disable functions.
4510
4511 2008-08-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4512
4513         PR bootstrap/37097
4514         * builtins.c (do_mpfr_bessel_n): Fix copy-and-paste bug introduced
4515         by last change.
4516
4517 2008-08-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4518
4519         * defaults.h (TARGET_FLOAT_FORMAT): Remove.
4520         (UNKNOWN_FLOAT_FORMAT, IEEE_FLOAT_FORMAT, VAX_FLOAT_FORMAT): Remove.
4521
4522         * config/alpha/alpha.h (TARGET_FLOAT_FORMAT): Remove.
4523         * config/iq2000/iq2000.h (TARGET_FLOAT_FORMAT): Remove.
4524         * config/pdp11/pdp11.h (TARGET_FLOAT_FORMAT): Remove.
4525         * config/score/score.h (TARGET_FLOAT_FORMAT): Remove.
4526         * config/vax/vax.h (TARGET_FLOAT_FORMAT): Remove.
4527
4528         * doc/tm.texi (Storage Layout): Remove documentation for
4529         TARGET_FLOAT_FORMAT.
4530
4531         * simplify-rtx.c (simplify_binary_operation_1): Replace
4532         TARGET_FLOAT_FORMAT check by appropriate HONOR_... checks.
4533
4534 2008-08-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4535
4536         * real.h (struct real_format): New member has_sign_dependent_rounding.
4537         * real.c (ieee_single_format, mips_single_format, motorola_single_format,
4538         spu_single_format, ieee_double_format, mips_double_format,
4539         motorola_double_format, ieee_extended_motorola_format,
4540         ieee_extended_intel_96_format, ieee_extended_intel_128_format,
4541         ieee_extended_intel_96_round_53_format, ibm_extended_format,
4542         mips_extended_format, ieee_quad_format, mips_quad_format,
4543         vax_f_format, vax_d_format, vax_g_format): Initialize it.
4544         * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
4545
4546         * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES,
4547         MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): Remove.
4548         * config/spu/spu.h (MODE_HAS_NANS, MODE_HAS_INFINITIES,
4549         MODE_HAS_SIGN_DEPENDENT_ROUNDING): Remove.
4550         (ROUND_TOWARDS_ZERO): Likewise.
4551
4552         * real.h (REAL_MODE_FORMAT): Protect MODE against macro expansion.
4553         (FLOAT_MODE_FORMAT): New macro.
4554         (REAL_MODE_FORMAT_COMPOSITE_P): Remove, replace by ...
4555         (MODE_COMPOSITE_P): ... this new macro.
4556         (MODE_HAS_NANS, MODE_HAS_INFINITIES, MODE_HAS_SIGNED_ZEROS,
4557         MODE_HAS_SIGN_DEPENDENT_ROUNDING): New macros.
4558         * machmode.h (GET_MODE_INNER): Cast result to enum machine_mode.
4559
4560         * flags.h: Include "real.h".
4561
4562         * fold-const.c (const_binop): Use MODE_COMPOSITE_P instead of
4563         REAL_MODE_FORMAT_COMPOSITE_P.
4564         * simplify-rtx.c (simplify_const_binary_operation): Likewise.
4565
4566         * doc/tm.texi (Storage Layout): Remove documentation of
4567         MODE_HAS_NANS, MODE_HAS_INFINITIES, MODE_HAS_SIGNED_ZEROS,
4568         MODE_HAS_SIGN_DEPENDENT_ROUNDING.  Update documentation of
4569         ROUND_TOWARDS_ZERO and LARGEST_EXPONENT_IS_NORMAL to clarify
4570         they only apply to libgcc2.a.
4571
4572 2008-08-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4573
4574         * config/spu/float_disf.c: New file.
4575         * config/spu/float_unsdisf.c: New file.
4576         * config/spu/t-elf (LIB2FUNCS_STATIC_EXTRA): Add them.
4577         (LIB2FUNCS_EXCLUDE): Define.
4578
4579 2008-08-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4580             Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
4581
4582         * real.h (struct real_format): New member round_towards_zero.
4583         * real.c (round_for_format): Respect fmt->round_towards_zero.
4584         (ieee_single_format, mips_single_format, motorola_single_format,
4585         spu_single_format, ieee_double_format, mips_double_format,
4586         motorola_double_format, ieee_extended_motorola_format,
4587         ieee_extended_intel_96_format, ieee_extended_intel_128_format,
4588         ieee_extended_intel_96_round_53_format, ibm_extended_format,
4589         mips_extended_format, ieee_quad_format, mips_quad_format,
4590         vax_f_format, vax_d_format, vax_g_format): Initialize it.
4591         * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
4592
4593         * builtins.s (do_mpfr_arg1): Consider round_towards_zero member of
4594         real_format to choose rounding mode when calling MPFR functions.
4595         (do_mpfr_arg2, do_mpfr_arg3, do_mpfr_sincos): Likewise.
4596         (do_mpfr_bessel_n, do_mpfr_remquo, do_mpfr_lgamma_r): Likewise.
4597
4598         * real.h (real_to_decimal_for_mode): Add prototype.
4599         * real.c (real_to_decimal_for_mode): Renames old real_to_decimal.
4600         Respect target rounding mode when generating decimal representation.
4601         (real_to_decimal): New stub for backwards compatibility.
4602         * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Use
4603         real_to_decimal_for_mode instead of real_to_decimal.
4604
4605         * config/spu/spu.md ("floatdisf2", "floatunsdisf2"): New.
4606
4607 2008-08-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4608             Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
4609
4610         * real.c (spu_single_format): New variable.
4611         * real.h (spu_single_format): Declare.
4612
4613         * config/spu/spu.c (spu_override_options): Install SFmode format.
4614         (spu_split_immediate): Use integer mode to operate on pieces of
4615         floating-point values in all cases.
4616
4617         * config/spu/spu.md (UNSPEC_FLOAT_EXTEND, UNSPEC_FLOAT_TRUNCATE): New.
4618         ("extendsfdf2"): Use UNSPEC_FLOAT_EXTEND instead of FLOAT_EXTEND.
4619         ("truncdfsf2"): Use UNSPEC_FLOAT_TRUNCATE instead of FLOAT_TRUNCATE.
4620
4621 2008-08-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4622
4623         * config/spu/spu.c (spu_safe_dma): Respect TARGET_SAFE_DMA.
4624
4625 2008-08-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4626
4627         * config/spu/spu.h (DWARF_FRAME_RETURN_COLUMN): Define.
4628
4629 2008-08-12  Jakub Jelinek  <jakub@redhat.com>
4630
4631         PR c++/36688
4632         * gimplify.c (gimplify_modify_expr_rhs): Test TREE_READONLY
4633         on the VAR_DECL instead of TYPE_READONLY on its type.
4634
4635 2008-08-12  Ira Rosen  <irar@il.ibm.com>
4636
4637         * tree-vectorizer.c: Depend on langhooks.h.
4638         (supportable_widening_operation): Add two arguments. Support double
4639         type conversions.
4640         (supportable_narrowing_operation): Likewise.
4641         * tree-vectorizer.h (supportable_widening_operation): Add two
4642         arguments.
4643         (supportable_narrowing_operation): Likewise.
4644         * tree-vect-patterns.c (vect_recog_widen_mult_pattern) : Call
4645         supportable_widening_operation with correct arguments.
4646         * tree-vect-transform.c (vectorizable_conversion): Likewise.
4647         (vectorizable_type_demotion): Support double type conversions.
4648         (vectorizable_type_promotion): Likewise.
4649         * Makefile.in (tree-vectorizer.o): Depend on langhooks.h.
4650
4651 2008-08-11  Michael Matz  <matz@suse.de>
4652
4653         * i386/i386.c (override_options): Move initialisation from
4654         flag_schedule_insns_after_reload to here from ...
4655         (optimization_options): ... here.
4656
4657 2008-08-11  Jakub Jelinek  <jakub@redhat.com>
4658
4659         PR rtl-optimization/36998
4660         * dwarf2out.c (compute_barrier_args_size_1,
4661         compute_barrier_args_size): Temporarily remove assertions.
4662
4663 2008-08-10  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
4664
4665         PR middle-end/20644
4666         * tree-ssa.c (struct walk_data): Add new flag
4667         warn_possibly_uninitialized.
4668         (warn_uninitialized_var): Use it.
4669         (warn_uninitialized_vars): New.
4670         (execute_early_warn_uninitialized): Call it.
4671         (execute_late_warn_uninitialized): Likewise.
4672
4673 2008-08-09  Andrew Pinski  <andrew_pinski@playstation.sony.com>
4674
4675         PR middle-end/36238
4676         * reload1.c (gen_reload): Guard calls to get_secondary_mem
4677         for memory subregs.
4678
4679 2008-08-09  Jan Hubicka  <jh@suse.cz>
4680
4681         PR target/37055
4682         * optabs.c (maybe_emit_unop_insn): Remove produced code if
4683         expansion failed.
4684         (expand_fix): Be prepared for expansion to fail.
4685         (expand_sfix_optab): Remove instructions if expansion failed.
4686
4687 2008-08-09  Anatoly Sokolov  <aesok@post.ru>
4688
4689         * config/avr/avr.c (avr_mcu_types): Move the AT43USB320 device to
4690         avr31 architecture.
4691         * config/avr/avr.h (CRT_BINUTILS_SPECS): (Ditto.).
4692         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
4693
4694 2008-08-09  Richard Sandiford  <rdsandiford@googlemail.com>
4695
4696         * config.gcc (mips*-*-linux*, mips64*-*-linux*): Add
4697         mips/t-libgcc-mips16 to tmake_file.
4698         * config/mips/mips-protos.h (mips_call_type): New enum.
4699         (mips_pic_base_register, mips_got_load): Declare.
4700         (mips_restore_gp): Take an rtx argument.
4701         (mips_use_pic_fn_addr_reg_p): Declare.
4702         (mips_expand_call): Replace the sibcall_p argument with
4703         a mips_call_type argument.  Add a lazy_p parameter.
4704         (mips_split_call): Declare.
4705         * config/mips/mips.h (MIPS16_PIC_TEMP_REGNUM): New macro.
4706         (MIPS16_PIC_TEMP): Likewise.
4707         (reg_class): Delete M16_NA_REGS.
4708         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update accordingly.
4709         (SYMBOL_FLAG_BIND_NOW, SYMBOL_REF_BIND_NOW_P): New macros.
4710         (mips_split_hi_p): Declare.
4711         * config/mips/mips.c (mips_split_hi_p): New array.
4712         (mips_regno_to_class): Change M16_NA_REGS entries to M16_REGS.
4713         (mips_got_symbol_type_p): New function.
4714         (mips_global_symbol_p): Check SYMBOL_REF_EXTERNAL_P.
4715         (mips16_stub_function_p): New function.
4716         (mips16_local_function_p): Likewise.
4717         (mips_use_pic_fn_addr_reg_p): Likewise.
4718         (mips_cannot_force_const_mem): Return false for HIGHs.
4719         Extend CONST_INT and symbolic handling to MIPS16, using
4720         mips_symbol_insns to check that the base symbol type is a
4721         legitimate constant.  Reject GOT-based constants if
4722         TARGET_MIPS16_PCREL_LOADS.
4723         (mips_const_insns): Check targetm.cannot_force_const_mem when
4724         decomposing a symbolic base and a large offset.
4725         (mips_emit_call_insn): Add ORIG_ADDR and ADDR parameters.
4726         When calling a function that needs $25 from MIPS16 code,
4727         move the target address into $25 separately and add a USE
4728         to the call insn.
4729         (mips16_gp_pseudo_reg): Insert the initializer immediately
4730         before the first real insn.
4731         (mips_pic_base_register, mips_got_load): New functions.
4732         (mips_split_symbol): Generalize the name of the LO_SUM_OUT
4733         parameter to LOW_OUT.  Say that it can be any valid SET_SRC
4734         when splitting a load-address operation.  Split SYMBOL_GOT_DISP
4735         constants and highs of SYMBOL_GOT_PAGE_OFST constants.
4736         (mips_call_tls_get_addr): Update the call to mips_expand_call,
4737         also passing NULL_RTX rather than const0_rtx as the aux argument.
4738         (mips_rewrite_small_data_p): Check mips_lo_relocs and mips_split_p
4739         instead of TARGET_EXPLICIT_RELOCS.
4740         (mips_ok_for_lazy_binding_p): Check SYMBOL_REF_BIND_NOW_P.
4741         (mips_load_call_address): Replace the sibcall_p argument with
4742         a mips_call_type argument.  Use mips_got_load.
4743         (mips16_local_alias): New structure.
4744         (mips16_local_aliases): New variable.
4745         (mips16_local_aliases_hash): New function.
4746         (mips16_local_aliases_eq): Likewise.
4747         (mips16_local_alias): Likewise.
4748         (mips16_stub_function): Likewise.
4749         (mips16_build_function_stub): Create a local alias for the target
4750         function.  Handle TARGET_ABICALLS.  For PIC abicalls, emit a
4751         .cpload directive and an R_MIPS_NONE relocation for the target
4752         function, then load the alias rather than the function itself.
4753         Wrap the non-PIC abicalls version in ".option pic0/.option pic2".
4754         (mips16_copy_fpr_return_value): Use mips16_stub_function and
4755         mips_expand_call.  Set SYMBOL_REF_BIND_NOW on the symbol.
4756         (mips16_build_call_stub): Replace the FN parameter with an
4757         FN_PTR parameter.  Force the address into a register if it
4758         isn't a call_insn_operand; don't rely on the caller to do this.
4759         If a call to a locally-defined and locally-binding MIPS16
4760         function must be made indirectly, redirect the call to the
4761         function's local alias.  Use mips16_stub_function_p,
4762         mips16_stub_function, mips_expand_call and use_reg.
4763         Set SYMBOL_FLAG_BIND_NOW on __mips_call_* symbols.
4764         Use explicit %hi and %lo accesses where possible.
4765         Use MIPS_CALL to generate the correct code form of a
4766         jal instruction.  Add clobbers of $18 instead of uses.
4767         Update the call to mips_emit_call_insn.
4768         (mips_expand_call): Replace the SIBCALL_P argument with a
4769         mips_call_type argument and handle the new MIPS_CALL_EPILOGUE value.
4770         Take a LAZY_P parameter.  Call mips16_build_call_stub first,
4771         allowing it to modify the call address.  Update the calls to
4772         mips_load_call_address and mips_emit_call_insn.
4773         (mips_split_call): New function.
4774         (mips_init_relocs): Clear mips_split_hi_p.  Only use %gp_rel if
4775         !TARGET_MIPS16.  Split SYMBOL_GOT_DISP, and the high parts of
4776         SYMBOL_GOT_PAGE_OFST, for MIPS16 code.
4777         (mips_global_pointer): Check mips16_cfun_returns_in_fpr_p.
4778         (mips_extra_live_on_entry): Include MIPS16_PIC_TEMP_REGNUM
4779         if TARGET_MIPS16.
4780         (mips_cprestore_slot): New function.
4781         (mips_restore_gp): Take a TEMP parameter.  Handle TARGET_MIPS16
4782         and use mips_cprestore_slot.
4783         (mips_output_function_prologue): Handle TARGET_MIPS16 for
4784         LOADGP_OLDABI.
4785         (mips_emit_loadgp): Move into MIPS16_PIC_TEMP for MIPS16,
4786         then use a copygp_mips16 instruction to set up $28.
4787         (mips_expand_prologue): Initialize the cprestore slot for MIPS16 too.
4788         (mips16_lay_out_constants): Call split_all_insns_noflow.
4789         (mips_reorg_process_insns): Explicitly set all_noreorder_p to
4790         false if TARGET_MIPS16.
4791         (mips_reorg): Don't call vr4130_align_insns if TARGET_MIPS16.
4792         (mips_output_mi_thunk): Use mips_got_symbol_type_p.  Use the
4793         mips_dangerous_for_la25_p approach for MIPS16 PIC calls too.
4794         (mips_set_mips16_mode): Always set MASK_EXPLICIT_RELOCS for
4795         MIPS16 code.  Allow MIPS16 o32 PIC.
4796         (mips_override_options): Allow MIPS16 o32 PIC.
4797         * config/mips/mips.md: Lower CONST_GP_P moves into register moves
4798         after reload if TARGET_USE_GOT.
4799         (UNSPEC_COPYGP): New constant.
4800         (length): Use a default length of 8 for MIPS16 GOT loads.
4801         (*got_disp<mode>): Check mips_split_p instead of TARGET_XGOT.
4802         (*got_page<mode>): Check mips_split_hi_p.
4803         (*got_disp<mode>, *got_page<mode>): Use mips_got_load.
4804         (unspec_got<mode>, unspec_call<mode>): New expanders.
4805         (load_got<mode>, load_call<mode>): Remove the length attributes.
4806         Use a got attribute instead of a type attribute.
4807         (copygp_mips16): New insn.
4808         (restore_gp): Add a scratch clobber and pass it to mips_restore_gp.
4809         (load_call<mode>): Use a "d" constraint instead of an "r" constraint.
4810         (sibcall, sibcall_value, call, call_value): Update the calls
4811         to mips_expand_call.
4812         (call_internal, call_value_internal): Use mips_split_call.
4813         (call_value_multiple_internal): Likewise.
4814         (call_split): Move after call_internal (the insn it is split from).
4815         (call_internal_direct, call_value_internal_direct): Turn into
4816         define_insn_and_splits.  Split if TARGET_SPLIT_CALLS.
4817         (call_direct_split, call_value_direct_split): New patterns.
4818         * config/mips/constraints.md (c): Handle TARGET_MIPS16 first
4819         and use M16_REGS instead of M16_NA_REGS.
4820         * config/mips/predicates.md (const_call_insn_operand): Replace
4821         the TARGET_ABSOLUTE_ABICALLS-based check with a more general
4822         mips_use_pic_fn_addr_reg_p check.
4823         (move_operand): Reject HIGHs if mips_split_hi_p.
4824         * config/mips/mips16.S: Assembly as empty if the ABI is not suitable.
4825         (__mips16_floatunsisf): Inline __mips16_floatsisf.
4826         (CALL_STUB_NO_RET, CALL_STUB_REG): Copy the target register to $25.
4827         * config/mips/libgcc-mips16.ver: New file.
4828         * config/mips/t-libgcc-mips16 (SHLIB_MAPFILES): Add
4829         $(srcdir)/config/mips/libgcc-mips16.ver.
4830
4831 2008-08-09  Richard Sandiford  <rdsandiford@googlemail.com>
4832
4833         * config/mips/mips.c (mips_unspec_address_offset): Move earlier in file.
4834         (mips_unspec_address, mips_unspec_offset_high): Likewise.
4835         (mips_ok_for_lazy_binding_p, mips_load_call_address): Likewise.
4836         (mips16_cfun_returns_in_fpr_p): Likewise.
4837
4838 2008-08-09  Richard Sandiford  <rdsandiford@googlemail.com>
4839
4840         * config/mips/mips.h (MASK_RETURN_ADDR): Expand commentary.
4841         * config/mips/linux-unwind.h (mips_fallback_frame_state): Add 2
4842         rather than 4 to PC.
4843
4844 2008-08-09  Richard Sandiford  <rdsandiford@googlemail.com>
4845
4846         * config/mips/mips.h (STATIC_CHAIN_REGNUM): Remap to $15.
4847         (FUNCTION_PROFILER): Save the static chain pointer into $2
4848         beforehand and restore it aftewards.
4849         (TRAMPOLINE_TEMPLATE): Adjust accordingly.  Load the target
4850         address directly into $25 and call the function through $25;
4851         do not clobber $3.  Pad the DImode version to cover the space
4852         left by the deleted $25 <- $3 move.
4853         (TRAMPOLINE_SIZE): Adjust the size of the SImode version after
4854         the removal of the $25 <- $3 move.
4855         (INITIALIZE_TRAMPOLINE): Update offsets accordingly.
4856         * config/mips/sdemtk.h (FUNCTION_PROFILER): As for mips.h.
4857
4858 2008-08-09  Richard Sandiford  <rdsandiford@googlemail.com>
4859             Daniel Jacobowitz  <dan@codesourcery.com>
4860
4861         * config/mips/mips.h (FUNCTION_NAME_ALREADY_DECLARED): Delete.
4862         * config/mips/linux.h (ASM_DECLARE_FUNCTION_NAME): Delete.
4863         (ASM_DECLARE_FUNCTION_SIZE, FUNCTION_NAME_ALREADY_DECLARED): Delete.
4864         * config/mips/mips.c (mips_start_function_definition): New function.
4865         (mips_end_function_definition): Likewise.
4866         (mips_output_function_prologue): Use mips_start_function_definition.
4867         (mips_output_function_epilogue): Use mips_end_function_definition.
4868         (build_mips16_function_stub): Use mips_start_function_definition
4869         and mips_end_function_definition.
4870         (build_mips16_call_stub): Likewise.
4871
4872 2008-08-09  Richard Guenther  <rguenther@suse.de>
4873
4874         * gimple.c (gimple_build_call_1): Deal with FUNCTION_DECL fn.
4875         * gimple.h (gimple_call_fn): Adjust comment.
4876         (gimple_call_set_fndecl): New function.
4877         (gimple_call_fndecl): Adjust for GIMPLE_CALL no
4878         longer having bare FUNCTION_DECL operand.
4879         (gimple_call_return_type): Likewise.
4880         * tree-cfg.c (verify_stmt): Verify function operand of a GIMPLE_CALL.
4881
4882         * value-prof.c (gimple_divmod_fixed_value): Do not emit labels.
4883         (gimple_mod_pow2): Likewise.
4884         (gimple_mod_subtract): Likewise.
4885         (gimple_ic): Likewise.
4886         (gimple_stringop_fixed_value): Likewise.
4887         (gimple_indirect_call_to_profile): Fix for GIMPLE_CALL no
4888         longer having bare FUNCTION_DECL operand.
4889         * ipa-cp.c (ipcp_update_callgraph): Use gimple_call_set_fndecl.
4890         * omp-low.c (optimize_omp_library_calls): Likewise.
4891         * cgraphunit.c (update_call_expr): Likewise.
4892         * tree-ssa-math-opts.c (execute_cse_reciprocals): Likewise.
4893         (execute_convert_to_rsqrt): Likewise.
4894         * cfgexpand.c (gimple_to_tree): Simplify.
4895         (release_stmt_tree): Fix for GIMPLE_CALL no longer having
4896         bare FUNCTION_DECL operand.
4897         * tree-nested.c (init_tmp_var_with_call): Use gimple_call_return_type.
4898         (convert_gimple_call): Use gimple_call_fndecl.
4899         * c-common.c (c_warn_unused_result): Likewise.
4900
4901 2008-08-09  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
4902
4903         PR c/17880
4904         * c-typeck.c (digest_init): Call verify_sequence_points from here.
4905         (c_finish_return): Likewise.
4906         (c_start_case): Likewise.
4907         * c-common.c (warn_for_collisions_1): Use explicit location in
4908         warning.
4909         * c-parser.c (c_parser_condition): New. Call
4910         verify_sequence_points.
4911         (c_parser_paren_condition): Call c_parser_condition.
4912         (c_parser_for_statement): Call c_parser_condition.
4913
4914 2008-08-09  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
4915
4916         PR 36901
4917         * diagnostic.def (DK_PEDWARN, DK_PERMERROR): New.
4918         * diagnostic.c (pedantic_warning_kind, permissive_error_kind):
4919         Moved from diagnostic.h
4920         (diagnostic_report_diagnostic): Return bool. Handle DK_PEDWARN and
4921         DK_PERMERROR.
4922         (emit_diagnostic): New.
4923         (warning0, pedwarn0): Delete.
4924         (warning, warning_at, pedwarn, permerror): Return bool.
4925         * diagnostic.h (pedantic_warning_kind, permissive_error_kind):
4926         Moved to diagnostic.c.
4927         (struct diagnostic_context): Use correct type for
4928         classify_diagnostic.
4929         (diagnostic_report_diagnostic): Update declaration.
4930         (emit_diagnostic): Declare.
4931         * errors.c (warning): Return bool.
4932         * errors.h (warning): Update declaration.
4933         * toplev.h (warning0, pedwarn0): Delete.
4934         (warning, warning_at, pedwarn, permerror): Return bool.
4935         * c-errors.c (pedwarn_c99, pedwarn_c90): Use DK_PEDWARN.
4936         * c-decl.c (locate_old_decl): Delete 'diag' argument. Always use
4937         inform. Update all calls.
4938         (diagnose_mismatched_decls): Check return value of warning/pedwarn
4939         before giving informative note.
4940         (implicit_decl_warning): Likewise.
4941         * c-typeck.c (build_function_call): Likewise.
4942         * tree-sssa.c (warn_uninit): Likewise.
4943         * builtins.c (gimplify_va_arg_expr): Likewise.
4944
4945 2008-08-09  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
4946
4947         PR 7651
4948         * doc/invoke.texi (-Wextra): Move warning from here...
4949         (-Wuninitialized): ... to here.
4950
4951 2008-08-08  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
4952
4953         PR 28875
4954         * flags.h (set_Wunused): Delete
4955         * toplev.c (process_options): Handle Wunused flags here.
4956         * opts.c (maybe_warn_unused_parameter): Delete.
4957         (common_handle_option): Replace set_Wunused by warn_unused.
4958         (set_Wextra): Do not handle Wunused-parameter here.
4959         (set_Wunused): Delete.
4960         * c-opts.c (c_common_handle_option): Replace set_Wunused by
4961         warn_unused.
4962         * common.opt (Wunused): Add Var and Init.
4963         (Wunused-function): Likewise.
4964         (Wunused-label): Likewise.
4965         (Wunused-parameter): Likewise.
4966         (Wunused-value): Likewise.
4967         (Wunused-variable): Likewise.
4968
4969 2008-08-08  Peter Bergner  <bergner@vnet.ibm.com>
4970
4971         * doc/invoke.texi: Add cpu_type power7.
4972         * config.in (HAVE_AS_VSX): New.
4973         * config.gcc: Add cpu_type power7.
4974         * configure.ac (HAVE_AS_VSX): Check for assembler support of the
4975         VSX instructions.
4976         * configure: Regenerate.
4977         * config/rs6000/rs6000.c (rs6000_override_options): Alias power7 to
4978         power5.
4979         * config/rs6000/rs6000.h (ASM_CPU_POWER7_SPEC): Define.
4980         (ASM_CPU_SPEC): Pass %(asm_cpu_power7) for -mcpu=power7.
4981         (EXTRA_SPECS): Add asm_cpu_power7 spec string.
4982
4983 2008-08-08  Dorit Nuzman  <dorit@il.ibm.com>
4984
4985         * tree-vect-transform.c (vectorizable_conversion): Pass the integral
4986         type to vectorize.builtin_conversion.
4987         (vectorizable_conversion): Likewise.
4988         * config/i386/i386.c (ix86_vectorize_builtin_conversion): Always takes
4989         integral type as input.
4990         * config/rs6000/rs6000.c (rs6000_builtin_conversion): Add case for
4991         FIX_TRUNC_EXPR.
4992         (rs6000_expand_builtin): Add case for ALTIVEC_BUILTIN_VCTUXS
4993         and ALTIVEC_BUILTIN_VCTSXS.
4994         (rs6000_builtin_mul_widen_even. rs6000_builtin_mul_widen_odd): Fix
4995         formatting.
4996
4997 2008-08-08  Richard Guenther  <rguenther@suse.de>
4998
4999         * tree-ssa-ccp.c (likely_value): Calls are not all varying.
5000         (surely_varying_stmt_p): Calls are varying only if they are
5001         non-builtin and not indirect or have no result.
5002         (ccp_fold): Re-instantiate code before the tuples merge.
5003
5004 2008-08-08  Richard Guenther  <rguenther@suse.de>
5005
5006         PR tree-optimization/37056
5007         * gimple.h (gimple_assign_rhs_class): New helper function.
5008         * tree-ssa-loop-niter.c (get_val_for): Fix tuplification, handle
5009         unary operations properly.
5010
5011 2008-08-07  Jan Hubicka  <jh@suse.cz>
5012
5013         * i386.h (ix86_size_cost): Declare.
5014         (ix86_cur_cost): New function macro.
5015         * i386.md (peepholes expanding size and splitters): Predicate by
5016         optimize_insn_for_speed_p.
5017         (peepholes reduce size and splitters): Predicate by
5018         optimize_insn_for_size_p.
5019         * i386.c (ix86_size_cost): Rename from ...
5020         (size_cost): This one.
5021         (override_options): Update.
5022         (decide_alg): Likewise.
5023         (ix86_expand_clear): Use RTL profile.
5024         (ix86_pad_returns): Use RTL profile.
5025
5026 2008-08-07  Jan Hubicka  <jh@suse.cz>
5027
5028         * recog.c (split_all_insns): Set RTL profile
5029         (peephole2_optimize): Likewise.
5030         * function.c (thread_prologue_and_epilogue_insns): Likewise.
5031         * combine.c (combine_instructions): Likewise.
5032
5033 2008-08-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5034
5035         * c-common.c (c_common_reswords): Also warn about keyword "bool".
5036
5037 2008-08-07  Bob Wilson  <bob.wilson@acm.org>
5038
5039         * config/xtensa/xtensa.c (xtensa_copy_incoming_a7): Copy incoming
5040         value in a6 after the set_frame_ptr insn.
5041
5042 2008-08-07  Richard Henderson  <rth@redhat.com>
5043
5044         PR debug/37033
5045         * gcc.c (cpp_options): Pass along -g*.
5046
5047 2008-08-07  Joseph Myers  <joseph@codesourcery.com>
5048
5049         * config/arm/arm.c (output_move_neon): Update comment describing
5050         big-endian vector layout.
5051         (arm_assemble_integer): Do not handle big-endian NEON vectors
5052         specially.
5053         * config/arm/neon.md (vec_set<mode>_internal, vec_extract<mode>,
5054         neon_vget_lane<mode>_sext_internal,
5055         neon_vget_lane<mode>_zext_internal, neon_vget_lane<mode>): Adjust
5056         element indices for big-endian.
5057
5058 2008-08-07  Richard Henderson  <rth@redhat.com>
5059
5060         * configure.ac (HAVE_GAS_CFI_PERSONALITY_DIRECTIVE): New.
5061         * configure, config.in: Rebuild.
5062         * debug.h (dwarf2out_do_cfi_asm): Declare.
5063         * c-cppbuiltin.c (c_cpp_builtins): Use it.
5064         * dwarf2out.c (dwarf2out_do_cfi_asm): New.
5065         (dwarf2out_cfi_label, add_fde_cfi, output_call_frame_info,
5066         dwarf2out_begin_prologue, dwarf2out_end_epilogue): Use it.
5067
5068 2008-08-07  Joseph Myers  <joseph@codesourcery.com>
5069
5070         * config/arm/iwmmxt.md (movv8qi_internal, movv4hi_internal,
5071         movv2si_internal): Combine into mov<mode>_internal.
5072         (movv2si_internal_2): Remove.
5073
5074 2008-08-07  Jan Hubicka  <jh@suse.cz>
5075
5076         PR target/37048
5077         * i386.md (single stringop patterns): Enable unconditionally.
5078
5079 2008-08-07  H.J. Lu  <hongjiu.lu@intel.com>
5080
5081         PR target/36992
5082         * config/i386/emmintrin.h (_mm_move_epi64): Use
5083         __builtin_ia32_movq128.
5084
5085         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MOVQ128.
5086         (bdesc_args): Add IX86_BUILTIN_MOVQ128.
5087
5088         * config/i386/sse.md (sse2_movq128): New.
5089
5090         * doc/extend.texi: Document __builtin_ia32_movq128.
5091
5092 2008-08-07  Richard Guenther  <rguenther@suse.de>
5093
5094         PR middle-end/37042
5095         * tree-ssa-alias-warnings.c (nonstandard_alias_p): Ref-all
5096         pointers can access anything.
5097
5098 2008-08-06  Jan Hubicka  <jh@suse.cz>
5099
5100         * optabs.c (emit_unop_insn): Break out to ...
5101         (maybe_emit_unop_insn): ... this one.
5102         (expand_sfix_optab): Use maybe variant.
5103         * optabs.h (maybe_emit_unop_insn): Declare.
5104
5105         * i386.md (mov0 patterns): Enable by default.
5106         (FP conversion expanders): Disable expansion of code expanding
5107         sequences when instruction should be optimized for size.
5108         (single strinop patterns): Enable when optimizing for size.
5109         (string expanders): Disable expanding of code expanding sequences
5110         when optimizning instruction for size.
5111         * i386.c (ix86_expand_vector_move_misalign): Do code size optimization
5112         per BB basis.
5113         (ix86_fp_comparison_sahf_cost): Likewise.
5114         (ix86_expand_branch): Likewise.
5115         (ix86_expand_ashl_const): Likewise.
5116         (ix86_split_ashl): Likewise.
5117         (ix86_expand_strlen): Likewise.
5118         (ix86_emit_fp_unordered_jump): Likewie.
5119
5120 2008-08-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5121
5122         * c-common.c: Fix typo.
5123         (c_common_reswords): Activate more C++ keyword warnings.
5124
5125         * matrix-reorg.c (compute_offset): Avoid C++ keywords.
5126
5127 2008-08-06  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
5128
5129         PR 26785
5130         * diagnostic.c (permerror_at): New.
5131         * toplev.h (permerror_at): Declare.
5132
5133 2008-08-06  Victor Kaplansky  <victork@il.ibm.com>
5134             Ira Rosen  <irar@il.ibm.com>
5135
5136         * tree-vect-transform.c (vect_model_simple_cost): Return
5137         immediately if stmt is pure SLP.
5138         (vect_model_store_cost): Ditto.
5139         (vect_model_load_cost): Ditto.
5140         (vectorizable_store): Remove PURE_SLP check before call
5141         to vect_model_store_cost.
5142         (vect_model_store_cost): When checking whether stmt describe
5143         strided access, add a check that it is not slp_node.
5144
5145 2008-08-06  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
5146
5147         PR 8715
5148         * c-common.c (warn_for_sign_compare): New. Handle separately the
5149         case that 'constant' is zero.
5150         * c-typeck.c (build_binary_op): Move code to c-common.c
5151
5152 2008-08-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5153
5154         * config/alpha/alpha.c (alpha_preferred_reload_class,
5155         alpha_secondary_reload, alpha_emit_set_const_1, function_value,
5156         alpha_output_mi_thunk_osf): Avoid C++ keywords.
5157         * config/arm/arm.c (output_move_vfp, output_move_neon): Likewise.
5158         * config/arm/arm.md: Likewise.
5159         * config/avr/avr-protos.h (preferred_reload_class,
5160         test_hard_reg_class, avr_simplify_comparison_p,
5161         out_shift_with_cnt, class_max_nregs): Likewise.
5162         * config/avr/avr.c (class_max_nregs, avr_simplify_comparison_p,
5163         output_movqi, output_movhi, output_movsisf, out_shift_with_cnt,
5164         preferred_reload_class, test_hard_reg_class): Likewise.
5165         * config/bfin/bfin.c (legitimize_pic_address, hard_regno_mode_ok,
5166         bfin_memory_move_cost, bfin_secondary_reload,
5167         bfin_output_mi_thunk): Likewise.
5168         * config/crx/crx.c (crx_secondary_reload_class,
5169         crx_memory_move_cost): Likewise.
5170         * config/frv/frv-protos.h (frv_secondary_reload_class,
5171         frv_class_likely_spilled_p, frv_class_max_nregs): Likewise.
5172         * config/frv/frv.c (frv_override_options, frv_alloc_temp_reg,
5173         frv_secondary_reload_class, frv_class_likely_spilled_p,
5174         frv_class_max_nregs): Likewise.
5175         * config/h8300/h8300.c (h8300_classify_operand,
5176         h8300_unary_length, h8300_bitfield_length, h8300_asm_insn_count):
5177         Likewise.
5178         * config/i386/winnt.c (i386_pe_declare_function_type): Likewise.
5179         * config/ia64/ia64.c (ia64_preferred_reload_class,
5180         ia64_secondary_reload_class, ia64_output_mi_thunk): Likewise.
5181         * config/iq2000/iq2000.c (gen_int_relational): Likewise.
5182         * config/m32c/m32c.c (class_can_hold_mode, m32c_output_compare):
5183         Likewise.
5184         * config/m68hc11/m68hc11.c (preferred_reload_class,
5185         m68hc11_memory_move_cost): Likewise.
5186         * config/mcore/mcore.c (mcore_secondary_reload_class,
5187         mcore_reload_class): Likewise.
5188         * config/mips/mips.c (mips_hard_regno_mode_ok_p,
5189         mips_class_max_nregs, mips_cannot_change_mode_class,
5190         mips_preferred_reload_class, mips_secondary_reload_class,
5191         mips_output_mi_thunk): Likewise.
5192         * config/mmix/mmix.c (mmix_preferred_reload_class,
5193         mmix_preferred_output_reload_class, mmix_secondary_reload_class):
5194         Likewise.
5195         * config/mn10300/mn10300.c (mn10300_secondary_reload_class):
5196         Likewise.
5197         * config/pa/pa.c (pa_secondary_reload, pa_combine_instructions,
5198         pa_can_combine_p, pa_cannot_change_mode_class): Likewise.
5199         * config/pa/pa.h (LEGITIMIZE_RELOAD_ADDRESS): Likewise.
5200         * config/rs6000/rs6000.c (paired_expand_vector_init,
5201         rs6000_secondary_reload_class, rs6000_output_mi_thunk,
5202         compare_section_name, rs6000_memory_move_cost): Likewise.
5203         * config/s390/s390.c (s390_emit_compare_and_swap,
5204         s390_preferred_reload_class, s390_secondary_reload,
5205         legitimize_pic_address, legitimize_tls_address,
5206         legitimize_reload_address, s390_expand_cs_hqi, s390_expand_atomic,
5207         s390_class_max_nregs): Likewise.
5208         * config/s390/s390.h (LEGITIMIZE_RELOAD_ADDRESS): Likewise.
5209         * config/s390/s390.md: Likewise.
5210         * config/score/score-protos.h (score_secondary_reload_class,
5211         score_preferred_reload_class): Likewise.
5212         * config/score/score.c (score_preferred_reload_class,
5213         score_secondary_reload_class): Likewise.
5214         * config/score/score3.c (score3_output_mi_thunk,
5215         score3_preferred_reload_class, score3_secondary_reload_class,
5216         score3_hard_regno_mode_ok): Likewise.
5217         * config/score/score3.h (score3_preferred_reload_class,
5218         score3_secondary_reload_class): Likewise.
5219         * config/score/score7.c (score7_output_mi_thunk,
5220         score7_preferred_reload_class, score7_secondary_reload_class,
5221         score7_hard_regno_mode_ok): Likewise.
5222         * config/score/score7.h (score7_preferred_reload_class,
5223         score7_secondary_reload_class): Likewise.
5224         * config/sh/sh.c (prepare_move_operands, output_far_jump,
5225         output_branchy_insn, add_constant, gen_block_redirect,
5226         sh_insn_length_adjustment, sh_cannot_change_mode_class,
5227         sh_output_mi_thunk, replace_n_hard_rtx, sh_secondary_reload):
5228         Likewise.
5229         * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
5230         * config/stormy16/stormy16.c (xstormy16_output_cbranch_hi,
5231         xstormy16_output_cbranch_si, xstormy16_secondary_reload_class,
5232         xstormy16_preferred_reload_class): Likewise.
5233         * config/xtensa/xtensa.c (xtensa_expand_compare_and_swap,
5234         xtensa_expand_atomic, override_options,
5235         xtensa_preferred_reload_class, xtensa_secondary_reload_class):
5236         Likewise.
5237         * reorg.c (try_merge_delay_insns): Likewise.
5238         * tree.c (merge_dllimport_decl_attributes): Likewise.
5239
5240         * config/frv/frv.c (frv_print_operand): Change isalpha to ISALPHA.
5241
5242 2008-08-06  Michael Matz  <matz@suse.de>
5243
5244         * Makefile.in (write_entries_to_file): Quote words.
5245         * gengtype.c: (read_input_line): Skip over leading white-space.
5246
5247 2008-08-06  Marc Gauthier  <marc@tensilica.com>
5248
5249         * config.gcc: Match more processor names for Xtensa.
5250         * configure.ac: Likewise.
5251         * doc/install.texi (Specific): Likewise.
5252         * configure: Regenerate.
5253
5254 2008-08-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5255
5256         * builtins.c (expand_builtin_profile_func): Avoid C++ keywords.
5257         * calls.c (avoid_likely_spilled_reg): Likewise.
5258         * cfgexpand.c (gimple_assign_rhs_to_tree): Likewise.
5259         * cgraph.c (cgraph_clone_edge, cgraph_clone_node): Likewise.
5260         * config/i386/i386.c (ix86_expand_special_args_builtin,
5261         ix86_secondary_reload): Likewise.
5262         * except.c (struct eh_region, gen_eh_region_catch,
5263         remove_unreachable_regions, duplicate_eh_regions,
5264         assign_filter_values, build_post_landing_pads,
5265         sjlj_find_directly_reachable_regions, remove_eh_handler,
5266         reachable_next_level, foreach_reachable_handler,
5267         can_throw_internal_1, can_throw_external_1,
5268         collect_one_action_chain): Likewise.
5269         * expr.c (expand_expr_real_1, vector_mode_valid_p): Likewise.
5270         * fold-const.c (twoval_comparison_p, eval_subst): Likewise.
5271         * function.c (update_temp_slot_address, instantiate_new_reg,
5272         instantiate_virtual_regs_in_rtx,
5273         instantiate_virtual_regs_in_insn): Likewise.
5274         * gimple.c (extract_ops_from_tree, gimple_seq_copy): Likewise.
5275         * gimplify.c (gimplify_call_expr, gimplify_init_constructor,
5276         gimplify_cleanup_point_expr): Likewise.
5277         * ipa-cp.c (ipcp_lattice_changed): Likewise.
5278         * passes.c (next_pass_1): Likewise.
5279         * print-tree.c (print_node_brief, print_node): Likewise.
5280         * profile.c (branch_prob): Likewise.
5281         * tree-dump.c (dump_register): Likewise.
5282         * tree-eh.c (replace_goto_queue_cond_clause, lower_catch):
5283         Likewise.
5284         * tree-inline.c (remap_ssa_name, remap_type_1, remap_blocks,
5285         copy_statement_list, remap_gimple_op_r, copy_tree_body_r,
5286         copy_edges_for_bb, copy_cfg_body, copy_tree_r,
5287         copy_arguments_for_versioning, copy_static_chain): Likewise.
5288         * tree-into-ssa.c (names_replaced_by, add_to_repl_tbl,
5289         add_new_name_mapping, register_new_name_mapping): Likewise.
5290         * tree-mudflap.c (mf_xform_derefs): Likewise.
5291         * tree-predcom.c (struct chain, dump_chain, replace_ref_with,
5292         get_init_expr, combine_chains): Likewise.
5293         * tree-pretty-print.c (dump_generic_node): Likewise.
5294         * tree-ssa-structalias.c (create_variable_info_for): Likewise.
5295         * tree-vrp.c (simplify_cond_using_ranges): Likewise.
5296         * tree.c (substitute_in_expr, iterative_hash_expr): Likewise.
5297         * value-prof.c (gimple_duplicate_stmt_histograms): Likewise.
5298
5299 2008-08-06  H.J. Lu  <hongjiu.lu@intel.com>
5300
5301         PR middle-end/37010
5302         * calls.c (expand_call): Use the biggest preferred stack
5303         boundary.
5304
5305 2008-08-06  Michael Matz  <matz@suse.de>
5306
5307         PR target/36613
5308         * reload.c (push_reload): Merge in,out,in_reg,out_reg members
5309         for reused reload, instead of overwriting them.
5310
5311 2008-08-06  H.J. Lu  <hongjiu.lu@intel.com>
5312
5313         PR middle-end/37009
5314         * cfgexpand.c (expand_stack_alignment): Check parm_stack_boundary
5315         for incoming stack boundary.
5316
5317         * function.c (assign_parm_find_entry_rtl): Update
5318         parm_stack_boundary.
5319
5320         * function.h (rtl_data): Add parm_stack_boundary.
5321
5322         * config/i386/i386.c (ix86_finalize_stack_realign_flags): Check
5323         parm_stack_boundary for incoming stack boundary.
5324
5325 2008-08-06  Joseph Myers  <joseph@codesourcery.com>
5326
5327         * jump.c (rtx_renumbered_equal_p): Do not call subreg_regno_offset
5328         for unrepresentable subregs or treat them as equal to other regs
5329         or subregs with the same register number.
5330
5331 2008-08-06  Aldy Hernandez  <aldyh@redhat.com>
5332
5333         PR middle-end/35432
5334         * gimplify.c (gimplify_modify_expr): Do not optimize zero-sized types
5335         if want_value.
5336
5337 2008-08-06  Jan Hubicka  <jh@suse.cz>
5338
5339         * predict.c (maybe_hot_frequency_p): When profile is absent, all
5340         frequencies might be hot.
5341
5342 2008-08-06  Andreas Krebbel  <krebbel1@de.ibm.com>
5343
5344         * reload.c (find_reloads): Force constants into literal pool
5345         also if they are wrapped in a SUBREG.
5346
5347 2008-08-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
5348
5349         PR target/35659
5350         * haifa-sched.c (sched_insn_is_legitimate_for_speculation_p): Move ...
5351         * sched-deps.c (sched_insn_is_legitimate_for_speculation_p): ... here.
5352         Don't allow predicated instructions for data speculation.
5353         * sched-int.h (sched_insn_is_legitimate_for_speculation_p): Move
5354         declaration.
5355
5356 2008-08-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
5357
5358         * haifa-sched.c (extend_global): Split to extend_global_data and
5359         extend_region_data.  Update all uses.
5360         (extend_all): Rename to extend_block_data.
5361
5362 2008-08-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
5363
5364         * sched-rgn.c (new_ready): Check if instruction can be
5365         speculatively scheduled before attempting speculation.
5366         (debug_rgn_dependencies): Remove wrongful assert.
5367
5368 2008-08-05  Bob Wilson  <bob.wilson@acm.org>
5369
5370         * config/xtensa/t-xtensa: Remove dependency for gt-xtensa.h.
5371
5372 2008-08-05  Bob Wilson  <bob.wilson@acm.org>
5373
5374         * config/xtensa/xtensa.c (xtensa_va_start): Unshare valist.
5375         (xtensa_gimplify_va_arg_expr): Unshare valist, orig_ndx, ndx, array,
5376         va_size, and type_size.
5377
5378 2008-08-04  Jason Merrill  <jason@redhat.com>
5379
5380         PR c++/37016
5381         * tree-ssa.c (useless_type_conversion_p_1): Call langhook
5382         if TYPE_STRUCTURAL_EQUALITY_P is true for both types.
5383
5384 2008-08-05  Richard Henderson  <rth@redhat.com>
5385
5386         * configure.ac (HAVE_GAS_CFI_DIRECTIVE): Check .cfi_personality.
5387         * configure: Rebuild.
5388
5389 2008-08-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>
5390
5391         PR tree-opt/37024
5392         * tree-tailcall.c (process_assignment): Use gimple_assign_cast_p
5393         instead of IS_CONVERT_EXPR_CODE_P for seeing if the assignment
5394         is a conversion.
5395
5396 2008-08-05  Richard Henderson  <rth@redhat.com>
5397
5398         * Makefile.in (c-cppbuiltin.o): Depend on debug.h.
5399         * c-cppbuiltin.c (c_cpp_builtins): Define __GCC_HAVE_DWARF2_CFI_ASM.
5400         * doc/cpp.texi (__GCC_HAVE_DWARF2_CFI_ASM): Document it.
5401         * common.opt (fdwarf2-cfi-asm): New.
5402         * configure.ac (HAVE_GAS_CFI_DIRECTIVE): New.
5403         * config.in, configure: Rebuild.
5404         * dwarf2asm.c (dw2_asm_output_data_raw): New.
5405         (dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_sleb128_raw): New.
5406         (dw2_force_const_mem): Externalize.
5407         * dwarf2asm.h: Update.
5408         * dwarf2out.c (dwarf2out_cfi_label): If flag_dwarf2_cfi_asm, don't
5409         generate a real label.
5410         (output_cfi_directive): New.
5411         (add_fde_cfi): If flag_dwarf2_cfi_asm, use it.
5412         (output_call_frame_info): Do nothing if flag_dwarf2_cfi_asm.
5413         (dwarf2out_begin_prologue): Emit .cfi_startproc, .cfi_personality,
5414         and .cfi_lsda.
5415         (dwarf2out_end_epilogue): Emit .cfi_endproc.
5416         (output_loc_operands_raw, output_loc_sequence_raw): New.
5417         (output_cfa_loc_raw): New.
5418
5419 2008-08-05  Paul Brook  <paul@codesourcery.com>
5420
5421         * doc/invoke.texi: Document new ARM -mfpu= and -mcpu= options.
5422         * config/arm/arm.c (all_fpus): Add vfpv3 and vfpv3-d16.
5423         (fp_model_for_fpu): Add entry for FPUTYPE_VFP3D16.
5424         (arm_file_start): Add FPUTYPE_VFP3D16.  Rename vfp3 to vfpv3.
5425         * config/arm/arm.h (TARGET_VFPD32): Define.
5426         (TARGET_VFP3): Use TARGET_VFPD32.
5427         (fputype): Add FPUTYPE_VFP3D16.
5428         (LAST_VFP_REGNUM): Use TARGET_VFPD32.
5429         * config/arm/constraints.md ("w"): Use TARGET_VFPD32.
5430         * config/arm/arm-cores.def: Add cortex-r4f.
5431         * config/arm/arm-tune.md: Regenerate.
5432
5433 2008-08-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5434
5435         * config/spu_spu_mfcio.h: Wrap in extern "C" if __cplusplus.
5436         Reword some comments throughout the file.
5437
5438         (MFC_MIN_DMA_LIST_ELEMENTS): New define.
5439         (MFC_MAX_DMA_LIST_ELEMENTS): Likewise.
5440         (MFC_MIN_DMA_LIST_SIZE): Redefine in terms of MFC_MIN_DMA_LIST_ELEMENTS.
5441         (MFC_MAX_DMA_LIST_SIZE): Redefine in terms of MFC_MAX_DMA_LIST_ELEMENTS.
5442
5443         (MFC_START_ENABLE): Remove PPU-only define.
5444         (MFC_PUTS_CMD, MFC_PUTFS_CMD, MFC_PUTBS_CMD): Likewise.
5445         (MFC_GETS_CMD, MFC_GETFS_CMD, MFC_GETBS_CMD): Likewise.
5446
5447         (MFC_PUTB_CMD, MFC_PUTF_CMD): Reimplement using symbolic constants.
5448         (MFC_PUTL_CMD, MFC_PUTLB_CMD, MFC_PUTLF_CMD): Likewise.
5449         (MFC_PUTR_CMD, MFC_PUTRB_CMD, MFC_PUTRF_CMD): Likewise.
5450         (MFC_PUTRL_CMD, MFC_PUTRLB_CMD, MFC_PUTRLF_CMD): Likewise.
5451         (MFC_GETB_CMD, MFC_GETF_CMD): Likewise.
5452         (MFC_GETL_CMD, MFC_GETLB_CMD, MFC_GETLF_CMD): Likewise.
5453         (MFC_SNDSIGB_CMD, MFC_SNDSIGF_CMD): Likewise.
5454
5455         (MFC_SDCRT_CMD, MFC_SDCRTST_CMD): New defines.
5456         (MFC_SDCRZ_CMD, MFC_SDCRST_CMD, MFC_SDCRF_CMD): Likewise.
5457         (mfc_sdcrt, mfc_sdcrtst): Likewise.
5458         (mfc_sdcrz, mfc_sdcrst, mfc_sdcrf): Likewise.
5459
5460         (spu_read_machine_status): Fix typo.
5461
5462 2008-08-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5463
5464         * config/spu/spu.h (CANNOT_CHANGE_MODE_CLASS): Allow (multi)word-sized
5465         SUBREG of multi-word hard register.
5466         * config/spu/spu.c (valid_subreg): Likewise.
5467         (adjust_operand): Handle SUBREGs of multi-word hard registers.
5468
5469 2008-08-04  Richard Guenther  <rguenther@suse.de>
5470
5471         * tree-ssa-loop-ivopts.c (add_iv_value_candidates): Also add
5472         the candidate with the stripped base if that base is different
5473         from the original base even for offset zero.
5474
5475 2008-08-04  Richard Guenther  <rguenther@suse.de>
5476
5477         PR middle-end/36691
5478         * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Correctly
5479         check for no_overflow.
5480
5481 2008-08-04  Richard Guenther  <rguenther@suse.de>
5482
5483         * tree-vect-transform.c (vectorizable_call): Fix tuplification.
5484
5485 2008-08-04  Paul Brook  <paul@codesourcery.com>
5486
5487         * cofig/arm/arm.c (thumb_core_reg_alloc_order): New.
5488         (arm_order_regs_for_local_alloc): New function.
5489         * config/arm/arm-protos.h (arm_order_regs_for_local_alloc): Add
5490         prototype.
5491         * config/arm/arm.h (ORDER_REGS_FOR_LOCAL_ALLOC): Define.
5492
5493 2008-08-04  H.J. Lu  <hongjiu.lu@intel.com>
5494
5495         PR target/37012
5496         * config/i386/i386.c (ix86_expand_prologue): Use UNITS_PER_WORD
5497         instead of STACK_BOUNDARY / BITS_PER_UNIT to align stack.
5498         (ix86_expand_epilogue): Likewise.
5499
5500 2008-08-04  H.J. Lu  <hongjiu.lu@intel.com>
5501
5502         * config/i386/i386.c (ix86_compute_frame_layout): Fix a typo
5503         in comments.
5504
5505 2008-08-03  Uros Bizjak  <ubizjak@gmail.com>
5506
5507         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use Yi instead of x
5508         to avoid inter-unit moves for !TARGET_INTER_UNIT_MOVES.
5509         (*movv2sf_internal_rex64): Ditto.
5510
5511 2008-08-03  Jan Hubicka  <jh@suse.cz>
5512
5513         * optabs.c (expand_binop, expand_builtin_pow, expand_builtin_powi,
5514         expand_builtin_strcat): Upse optimize_insn_for_speed predicate.
5515         * expmed.c (expand_smod_pow2): Likewise.
5516
5517 2008-08-03  Uros Bizjak  <ubizjak@gmail.com>
5518
5519         PR target/36992
5520         * config/i386/sse.md (vec_concatv2di): Add Y2 constraint to
5521         alternative 0 of operand 1.
5522         (*vec_concatv2di_rex64_sse): Ditto.
5523         (*vec_concatv2di_rex64_sse4_1): Add x constraint to alternative 0
5524         of operand 1.
5525         (*sse2_storeq_rex64): Penalize allocation of "r" registers.
5526         * config/i386/mmx.md (*mov<mode>_internal_rex64): Penalize allocation
5527         of "Y2" registers to avoid SSE <-> MMX conversions for DImode moves.
5528         (*movv2sf_internal_rex64): Ditto.
5529
5530 2008-08-02  Richard Guenther  <rguenther@suse.de>
5531
5532         PR target/35252
5533         * config/i386/sse.md (SSEMODE4S, SSEMODE2D): New mode iterators.
5534         (ssedoublesizemode): New mode attribute.
5535         (sse_shufps): Call gen_sse_shufps_v4sf.
5536         (sse_shufps_1): Macroize.
5537         (sse2_shufpd): Call gen_Sse_shufpd_v2df.
5538         (sse2_shufpd_1): Macroize.
5539         (vec_extract_odd, vec_extract_even): New expanders.
5540         (vec_interleave_highv4sf, vec_interleave_lowv4sf,
5541         vec_interleave_highv2df, vec_interleave_lowv2df): Likewise.
5542         * i386.c (ix86_expand_vector_init_one_nonzero): Call
5543         gen_sse_shufps_v4sf instead of gen_sse_shufps_1.
5544         (ix86_expand_vector_set): Likewise.
5545         (ix86_expand_reduc_v4sf): Likewise.
5546
5547 2008-08-01  Doug Kwan  <dougkwan@google.com>
5548
5549         * matrix-reorg.c: Re-enable all code.
5550         (struct malloc_call_data): Change CALL_STMT to gimple type.
5551         (collect_data_for_malloc_call): Tuplify.
5552         (struct access_site_info): Change STMT to gimple type.
5553         (struct matrix_info): Change MIN_INDIRECT_LEVEL_ESCAPE_STMT,
5554         and MALLOC_FOR_LEVEL to gimple and gimple pointer type.
5555         (struct free_info): Change STMT to gimple type.
5556         (struct matrix_access_phi_node):  Change PHI to gimple type.
5557         (get_inner_of_cast_expr): Remove.
5558         (may_flatten_matrices_1): Tuplify.
5559         (may_flatten_matrices): Ditto.
5560         (mark_min_matrix_escape_level): Ditto.
5561         (ssa_accessed_in_tree): Refactor statement RHS related code into ...
5562         (ssa_accessed_in_call_rhs): New
5563         (ssa_accessed_in_assign_rhs): New
5564         (record_access_alloc_site_info): Tuplify.
5565         (add_allocation_site): Ditto.
5566         (analyze_matrix_allocation_site): Ditto.
5567         (analyze_transpose): Ditto.
5568         (get_index_from_offset): Ditto.
5569         (update_type_size): Ditto.
5570         (analyze_accesses_for_call_expr): Tuplify and renamed into ...
5571         (analyze_accesses_for_call_stmt): New. Also handle LHS of a call.
5572         (analyze_accesses_for_phi_node): Tuplify.
5573         (analyze_accesses_for_modify_stmt): Tuplify and renamed into ...
5574         (analyze_accesses_for_assign_stmt): Remove code for handling call LHS.
5575         (analyze_matrix_accesses): Tuplify.
5576         (check_var_data): New call-back type for check_var_notmodified_p.
5577         (check_var_notmodified_p): Tuplify and use call-back struct to
5578         return statement found.
5579         (can_calculate_expr_before_stmt): Factor out statement related code
5580         into ...
5581         (can_calculate_stmt_before_stmt): New.
5582         (check_allocation_function): Tuplify.
5583         (find_sites_in_func): Ditto.
5584         (record_all_accesses_in_func): Ditto.
5585         (transform_access_sites): Ditto.
5586         (transform_allocation_sites): Ditto.
5587         (matrix_reorg): Re-enable.
5588         (gate_matrix_reorg): Re-enable.
5589
5590 2008-08-01  Jakub Jelinek  <jakub@redhat.com>
5591
5592         * dwarf2out.c (compute_barrier_args_size): Set barrier_args_size
5593         for labels for which it hasn't been set yet.  If it has been set,
5594         stop walking insns and continue with next worklist item.
5595         (dwarf2out_stack_adjust): Don't call compute_barrier_args_size
5596         if the only BARRIER is at the very end of a function.
5597
5598 2008-08-01  H.J. Lu  <hongjiu.lu@intel.com>
5599
5600         * cfgexpand.c (expand_stack_alignment): Assert that
5601         stack_realign_drap and drap_rtx must match.
5602
5603         * function.c (instantiate_new_reg): If DRAP is used to realign
5604         stack, replace virtual_incoming_args_rtx with internal arg
5605         pointer.
5606
5607 2008-08-01  Richard Guenther  <rguenther@suse.de>
5608
5609         * tree-ssa-pre.c (fini_pre): Take in_fre parameter.  Free
5610         loop information only if we initialized it.
5611         (execute_pre): Call fini_pre with in_fre.
5612         * tree-ssa-loop-ivcanon (try_unroll_loop_completely): Dump
5613         if we do not unroll because we hit max-completely-peeled-insns.
5614         Use our estimation for consistency, do allow shrinking.
5615
5616 2008-08-01  H.J. Lu  <hongjiu.lu@intel.com>
5617
5618         * config/i386/i386.c (override_options): Replace ABI_STACK_BOUNDARY
5619         with MIN_STACK_BOUNDARY.
5620         (ix86_update_stack_boundary): Likewise.
5621         (ix86_expand_prologue): Assert MIN_STACK_BOUNDARY instead of
5622         STACK_BOUNDARY.
5623
5624         * config/i386/i386.h (ABI_STACK_BOUNDARY): Renamed to ...
5625         (MIN_STACK_BOUNDARY): This.
5626
5627 2008-08-01  Richard Guenther  <rguenther@suse.de>
5628
5629         PR middle-end/36997
5630         * gimplify.c (gimplify_call_expr): Set error_mark_node on GS_ERROR.
5631
5632 2008-08-01  Richard Guenther  <rguenther@suse.de>
5633
5634         PR tree-optimization/36988
5635         * tree-ssa-ccp.c (ccp_fold): Conversions of constants only
5636         do not matter if that doesn't change volatile qualification.
5637
5638 2008-08-01  Paolo Bonzini  <bonzini@gnu.org>
5639
5640         * configure.ac: Do not generate libada-mk.  Do not subst
5641         host_cc_for_libada.
5642         * libada-mk.in: Remove.
5643         * Makefile.in: Pass TARGET_LIBGCC2_CFLAGS to libgcc.mvars.
5644         * configure: Regenerate.
5645
5646 2008-08-01  Basile Starynkevitch  <basile@starynkevitch.net>
5647
5648         * tree-pass.h: Added comment about not dumping passes with name
5649         starting with star in struct opt_pass.
5650         * passes.c (register_dump_files_1): Don't do dump for a pass with
5651         name starting with star.
5652         * doc/passes.texi (Pass manager): Mention pass names and special
5653         meaning of star prefix to avoid dump.
5654
5655 2008-07-31  Adam Nemet  <anemet@caviumnetworks.com>
5656
5657         * config.gcc (mipsisa64r2*-*-linux*): New configuration.  Set ISA
5658         to MIPS64r2.
5659         * config/mips/mips.h (GENERATE_MIPS16E): Update comment.
5660         (ISA_MIPS64R2): New macro.
5661         (TARGET_CPU_CPP_BUILTINS, MULTILIB_ISA_DEFAULT): Handle it.
5662         (ISA_HAS_64BIT_REGS, ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE,
5663         ISA_HAS_8CC, ISA_HAS_FP4, ISA_HAS_PAIRED_SINGLE,
5664         ISA_HAS_MADD_MSUB, ISA_HAS_NMADD4_NMSUB4, ISA_HAS_CLZ_CLO,
5665         ISA_HAS_ROR, ISA_HAS_PREFETCH, ISA_HAS_PREFETCHX, ISA_HAS_SEB_SEH,
5666         ISA_HAS_EXT_INS, ISA_HAS_MXHC1, ISA_HAS_HILO_INTERLOCKS,
5667         ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Return true for ISA_MIPS64R2.
5668         (MIPS_ISA_LEVEL_SPEC, ASM_SPEC, LINK_SPEC): Handle -mips64r2.
5669         (TARGET_LOONGSON_2E, TARGET_LOONGSON_2F, TARGET_LOONGSON_2EF):
5670         Move up to keep list alphabetically sorted.
5671         (TUNE_20KC, TUNE_24K, TUNE_74K, TUNE_LOONGSON_2EF): Likewise.
5672         * config/mips/mips.c (mips_cpu_info_table): Add default MIPS64r2
5673         processor.
5674         * doc/invoke.texi (MIPS Options): Add -mips64r2.
5675         (-march=@var{arch}): Add mips64r2.
5676
5677 2008-07-31  H.J. Lu  <hongjiu.lu@intel.com>
5678
5679         * config/i386/darwin.h (MAIN_STACK_BOUNDARY): Define to 128.
5680
5681 2008-07-31  Steve Ellcey  <sje@cup.hp.com>
5682
5683         * expr.c (expand_assignment): Check for complete type.
5684
5685 2008-07-31  H.J. Lu  <hongjiu.lu@intel.com>
5686
5687         PR debug/36977
5688         * cfgexpand.c (expand_stack_alignment): Set stack_realign_tried.
5689
5690         * dwarf2out.c (based_loc_descr): Check crtl->stack_realign_tried
5691         for stack alignment.
5692
5693         * function.h (rtl_data): Add stack_realign_tried.  Update comments.
5694
5695 2008-07-31  Kaz Kojima  <kkojima@gcc.gnu.org>
5696
5697         * config/sh/sh.c (sh_canonical_va_list_type): Remove.
5698         (TARGET_CANONICAL_VA_LIST_TYPE): Remove.
5699
5700 2008-07-31  Jakub Jelinek  <jakub@redhat.com>
5701
5702         PR rtl-optimization/36419
5703         * dwarf2out.c (barrier_args_size): New variable.
5704         (compute_barrier_args_size, compute_barrier_args_size_1): New
5705         functions.
5706         (dwarf2out_stack_adjust): For BARRIERs call compute_barrier_args_size
5707         if not called yet in the current function, use barrier_args_size
5708         array to find the new args_size value.
5709         (dwarf2out_frame_debug): Free and clear barrier_args_size.
5710
5711 2008-07-31  H.J. Lu  <hongjiu.lu@intel.com>
5712
5713         PR debug/36980
5714         * dwarf2out.c (dwarf2out_frame_debug_expr): Move rule 17 before
5715         rule 19.
5716
5717 2008-07-31  H.J. Lu  <hongjiu.lu@intel.com>
5718
5719         PR debug/36976
5720         * dwarf2out.c (dwarf2out_args_size_adjust): New.
5721         (dwarf2out_stack_adjust): Use it.
5722         (dwarf2out_frame_debug_expr): Likewise.
5723
5724 2008-07-31  Richard Guenther  <rguenther@suse.de>
5725
5726         PR tree-optimization/36978
5727         * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): Do not fold
5728         the generated condition.
5729
5730 2008-07-31  Richard Guenther  <rguenther@suse.de>
5731
5732         * passes.c (init_optimization_passes): Always call
5733         pass_early_warn_uninitialized.
5734         * opts.c (decode_options): Do not warn about -Wuninitialized at -O0.
5735         * doc/invoke.texi (-Wuninitialized): Correct for enabling at -O0.
5736         * doc/passes.texi (Warn for uninitialized variables): Adjust.
5737
5738 2008-07-31  Jakub Jelinek  <jakub@redhat.com>
5739
5740         PR c/36970
5741         * builtins.c (maybe_emit_free_warning): New function.
5742         (expand_builtin): Process BUILT_IN_FREE even at -O0.  Call
5743         maybe_emit_free_warning for BUILT_IN_FREE.
5744
5745         PR debug/36278
5746         * dwarf2out.c (get_context_die): New function.
5747         (force_decl_die, force_type_die): Use it.
5748         (dwarf2out_imported_module_or_decl): Likewise.  If base_type_die
5749         returns NULL, force generation of DW_TAG_typedef and put that into
5750         DW_AT_import.
5751
5752         PR preprocessor/36649
5753         * c-pch.c (c_common_read_pch): Save and restore
5754         line_table->trace_includes across PCH restore.
5755
5756 2008-07-30  Eric Botcazou  <ebotcazou@adacore.com>
5757
5758         PR ada/36554
5759         * dwarf2out.c (is_subrange_type): Deal with BOOLEAN_TYPE.
5760
5761 2008-07-30  Rafael Ávila de Espíndola  <espindola@google.com>
5762
5763         PR 36974
5764         * final.c (call_from_call_insn): Handle COND_EXEC.
5765
5766 2008-07-30  H.J. Lu  <hongjiu.lu@intel.com>
5767
5768         * builtins.c (std_gimplify_va_arg_expr): Replace
5769         PREFERRED_STACK_BOUNDARY with MAX_SUPPORTED_STACK_ALIGNMENT.
5770         * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
5771
5772 2008-07-30  Joey Ye  <joey.ye@intel.com>
5773             H.J. Lu  <hongjiu.lu@intel.com>
5774
5775         * builtins.c (expand_builtin_setjmp_receiver): Replace
5776         virtual_incoming_args_rtx with crtl->args.internal_arg_pointer.
5777         (expand_builtin_apply_args_1): Likewise.
5778         (expand_builtin_longjmp): Need DRAP for stack alignment.
5779         (expand_builtin_apply): Likewise.
5780
5781         * caller-save.c (setup_save_areas): Call assign_stack_local_1
5782         instead of assign_stack_local to allow alignment reduction.
5783
5784         * calls.c (emit_call_1): Need DRAP for stack alignment if
5785         return pops.
5786         (expand_call): Replace virtual_incoming_args_rtx with
5787         crtl->args.internal_arg_pointer.
5788         * stmt.c (expand_nl_goto_receiver): Likewise.
5789
5790         * cfgexpand.c (get_decl_align_unit): Estimate stack variable
5791         alignment and store to stack_alignment_estimated and
5792         max_used_stack_slot_alignment.
5793         (expand_one_var): Likewise.
5794         (expand_stack_alignment): New function.
5795         (tree_expand_cfg): Initialize max_used_stack_slot_alignment
5796         and stack_alignment_estimated fields in rtl_data.  Call
5797         expand_stack_alignment at end.
5798
5799         * defaults.h (INCOMING_STACK_BOUNDARY): New.
5800         (MAX_STACK_ALIGNMENT): Likewise.
5801         (MAX_SUPPORTED_STACK_ALIGNMENT): Likewise.
5802         (SUPPORTS_STACK_ALIGNMENT): Likewise.
5803
5804         * emit-rtl.c (gen_reg_rtx): Estimate stack alignment for
5805         stack alignment when generating virtual registers.
5806
5807         * function.c (assign_stack_local): Renamed to ...
5808         (assign_stack_local_1): This.  Add a parameter to indicate
5809         if it is OK to reduce alignment.
5810         (assign_stack_local): Use it.
5811         (instantiate_new_reg): Instantiate virtual incoming args rtx
5812         to vDRAP if stack realignment and DRAP is needed.
5813         (assign_parms): Collect parameter/return type alignment and
5814         contribute to stack_alignment_estimated.
5815         (locate_and_pad_parm): Likewise.
5816         (get_arg_pointer_save_area): Replace virtual_incoming_args_rtx
5817         with crtl->args.internal_arg_pointer.
5818
5819         * function.h (rtl_data): Add new field drap_reg,
5820         max_used_stack_slot_alignment, stack_alignment_estimated,
5821         stack_realign_needed, need_drap, stack_realign_processed and
5822         stack_realign_finalized.
5823         (stack_realign_fp): New macro.
5824         (stack_realign_drap): Likewise.
5825
5826         * global.c (compute_regsets): Frame pointer is needed when
5827         stack is realigned.  Can eliminate frame pointer when stack is
5828         realigned and dynamic realigned argument pointer isn't used.
5829
5830         * reload1.c (update_eliminables):  Frame pointer is needed
5831         when stack is realigned.
5832         (init_elim_table): Can eliminate frame pointer when stack is
5833         realigned and dynamic realigned argument pointer isn't used.
5834
5835         * rtl.h (assign_stack_local_1): Declare new funtion.
5836
5837         * target-def.h (TARGET_UPDATE_STACK_BOUNDARY): New.
5838         (TARGET_GET_DRAP_RTX): Likewise.
5839         (TARGET_CALLS): Add TARGET_UPDATE_STACK_BOUNDARY and
5840         TARGET_GET_DRAP_RTX.
5841
5842         * target.h (gcc_target): Add update_stack_boundary and get_drap_rtx.
5843
5844         * tree-vectorizer.c (vect_can_force_dr_alignment_p): Replace
5845         STACK_BOUNDARY with MAX_STACK_ALIGNMENT.
5846
5847 2008-07-30  Xuepeng Guo  <xuepeng.guo@intel.com>
5848             H.J. Lu  <hongjiu.lu@intel.com>
5849
5850         * dwarf2out.c (dw_fde_struct): Add stack_realignment, drap_reg,
5851         vdrap_reg, stack_realign and drap_reg_saved.
5852         (add_cfi): Don't allow redefining CFA when DRAP is used.
5853         (reg_save): Handle stack alignment.
5854         (dwarf2out_frame_debug_expr): Add rules 16-20 to handle stack
5855         alignment.  Don't generate DWARF information for (set fp sp)
5856         when DRAP is used.
5857         (dwarf2out_begin_prologue): Initialize drap_reg and vdrap_reg
5858         to INVALID_REGNUM.
5859         (int_loc_descriptor): Move prototype forward.  Also define if
5860         DWARF2_UNWIND_INFO is true.
5861         (output_cfa_loc): Handle DW_CFA_expression.
5862         (build_cfa_aligned_loc): New.
5863         (based_loc_descr): Update assert for stack realign.  For local
5864         variables, use sp+offset when stack is aligned without drap and
5865         fp+offset when stack is aligned with drap.  For arguments, use
5866         cfa+offset when drap is used to align stack.
5867
5868 2008-07-30  Joey Ye  <joey.ye@intel.com>
5869             H.J. Lu  <hongjiu.lu@intel.com>
5870
5871         * config/i386/i386.c (ix86_force_align_arg_pointer_string):
5872         Break long line.
5873         (ix86_gen_andsp): New.
5874         (ix86_user_incoming_stack_boundary): Likewise.
5875         (ix86_default_incoming_stack_boundary): Likewise.
5876         (ix86_incoming_stack_boundary): Likewise.
5877         (ix86_can_eliminate): Likewise.
5878         (find_drap_reg): Likewise.
5879         (ix86_update_stack_boundary): Likewise.
5880         (ix86_get_drap_rtx): Likewise.
5881         (ix86_finalize_stack_realign_flags): Likewise.
5882         (TARGET_UPDATE_STACK_BOUNDARY): Likewise.
5883         (TARGET_GET_DRAP_RTX): Likewise.
5884         (override_options): Overide option value for new options.
5885         (ix86_function_ok_for_sibcall): Remove check for
5886         force_align_arg_pointer.
5887         (ix86_handle_cconv_attribute): Likewise.
5888         (ix86_function_regparm): Likewise.
5889         (setup_incoming_varargs_64): Don't set stack_alignment_needed here.
5890         (ix86_va_start): Replace virtual_incoming_args_rtx with
5891         crtl->args.internal_arg_pointer.
5892         (ix86_select_alt_pic_regnum): Check DRAP register.
5893         (ix86_save_reg): Replace force_align_arg_pointer with drap_reg.
5894         (ix86_compute_frame_layout): Compute frame layout wrt stack
5895         realignment.
5896         (ix86_internal_arg_pointer): Just return virtual_incoming_args_rtx.
5897         (ix86_expand_prologue): Decide if stack realignment is needed
5898         and generate prologue code accordingly.
5899         (ix86_expand_epilogue): Generate epilogue code wrt stack
5900         realignment is really needed or not.
5901
5902         * config/i386/i386.h (MAIN_STACK_BOUNDARY): New.
5903         (ABI_STACK_BOUNDARY): Likewise.
5904         (PREFERRED_STACK_BOUNDARY_DEFAULT): Likewise.
5905         (STACK_REALIGN_DEFAULT): Likewise.
5906         (INCOMING_STACK_BOUNDARY): Likewise.
5907         (MAX_STACK_ALIGNMENT): Likewise.
5908         (ix86_incoming_stack_boundary): Likewise.
5909         (FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN): Removed.
5910         (REAL_PIC_OFFSET_TABLE_REGNUM): Updated to use BX_REG.
5911         (CAN_ELIMINATE): Defined with ix86_can_eliminate.
5912         (machine_function): Remove force_align_arg_pointer.
5913
5914         * config/i386/i386.md (BX_REG): New.
5915         (R13_REG): Likewise.
5916
5917         * config/i386/i386.opt (mforce_drap): New.
5918         (mincoming-stack-boundary): Likewise.
5919         (mstackrealign): Add Init(-1).
5920
5921         * config/i386/i386-protos.h (ix86_can_eliminate): New
5922
5923 2008-07-30  H.J. Lu  <hongjiu.lu@intel.com>
5924
5925         * doc/extend.texi: Update force_align_arg_pointer.
5926
5927         * doc/invoke.texi: Document -mincoming-stack-boundary.  Update
5928         -mstackrealign.
5929
5930         * doc/tm.texi (MAX_STACK_ALIGNMENT): Add macro.
5931         (INCOMING_STACK_BOUNDARY): Likewise.
5932         (TARGET_UPDATE_STACK_BOUNDARY): New target hook.
5933         (TARGET_GET_DRAP_RTX): Likewise.
5934
5935 2008-07-30  Andreas Schwab  <schwab@suse.de>
5936
5937         PR rtl-optimization/36929
5938         * dse.c (replace_inc_dec): Use emit_insn_before instead of
5939         add_insn_before and fix argument order.
5940         (replace_inc_dec_mem): Handle NULL rtx.
5941
5942 2008-07-30  Andrew Jenner  <andrew@codesourcery.com>
5943
5944         * config/arm/arm.c (arm_compute_static_chain_stack_bytes): New
5945         function.
5946         (arm_compute_initial_elimination_offset): Use it.
5947         (arm_compute_save_reg_mask): Include static chain save slot when
5948         calculating alignment.
5949         (arm_get_frame_offsets): Ditto.
5950         (thumb1_compute_save_reg_mask): Ensure we have a low register saved
5951         that we can use to decrement the stack when the stack decrement
5952         could be too big for an immediate value in a single insn.
5953         (thumb1_expand_prologue): Avoid using r12 for stack decrement.
5954
5955 2008-07-30  Richard Guenther  <rguenther@suse.de>
5956
5957         PR tree-optimization/36967
5958         * tree-predcom.c (remove_stmt): Use gimple_assign_ssa_name_copy_p.
5959         Release defs of statements we remove.
5960
5961 2008-07-30  Nathan Froyd  <froydnj@codesourcery.com>
5962
5963         * config/arm/arm.c (arm_expand_prologue): Use 0-length rtvec
5964         instead of NULL_RTVEC.
5965
5966 2008-07-30  Nathan Froyd  <froydnj@codesourcery.com>
5967
5968         PR target/35866
5969
5970         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Add clause for
5971         vector modes.
5972
5973 2008-07-30  Rafael Ávila de Espíndola  <espindola@google.com>
5974
5975         * final.c (call_from_call_insn): New.
5976         (final_scan_insn): Call assemble_external on FUNCTION_DECLs.
5977
5978 2008-07-30  Paolo Bonzini  <bonzini@gnu.org>
5979
5980         * configure.ac: Substitute ADA_CFLAGS.
5981         * configure: Regenerate.
5982         * config.host: Remove mention of pa/x-ada and pa/x-ada-hpux10 files.
5983         * Makefile.in: Remove mention of X_* variables.
5984         * config/pa/x-ada-hpux10: Remove.
5985         * config/pa/x-ada: Remove.
5986
5987         * doc/fragments.texi: Update.
5988
5989 2008-07-30  Olivier Hainque  <hainque@adacore.com>
5990
5991         * config/mips/irix-crti.asm: .hide __gcc_init and __gcc_fini.
5992         * config/mips/iris6.h (IRIX_SUBTARGET_LINK_SPEC, irix ld): Hide
5993         __dso_handle explicitly here.
5994
5995 2008-07-30  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
5996
5997         PR 34389
5998         * c-typeck.c (build_binary_op): Encapsulate code into...
5999         * c-common.c (shorten_binary_op): ...this new function.
6000         (conversion_warning): Use the new function. Handle non-negative
6001         constant in bitwise-and.
6002         * c-common.h (shorten_binary_op): Declare.
6003
6004 2008-07-30  Olivier Hainque  <hainque@adacore.com>
6005
6006         * scan.c (make_sstring_space): Add explicit conversions of
6007         allocator's return value.
6008         * fix-header.c (recognized_function): Likewise.
6009
6010 2008-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6011
6012         * doc/cpp.texi: Update to GFDL 1.2.
6013         * doc/gcc.texi: Do not list GPL as Invariant Section.
6014         * doc/gccint.texi: Likewise.  Update copyright years.
6015         * doc/install.texi: Update copyright years.
6016
6017 2008-07-30  Alan Modra  <amodra@bigpond.net.au>
6018
6019         PR target/36955
6020         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add
6021         a use of pic_offset_table_rtx for -msecure-plt __tls_get_addr calls.
6022
6023 2008-07-29  Jan Hubicka  <jh@suse.cz>
6024
6025         * c-decl.c (merge_decls): Do not handle DECL_INLINE.
6026         (grokdeclarator): Likewise.
6027         * langhooks.c (lhd_warn_unused_global_decl): Use
6028         DECL_DECLARED_INLINE_P.
6029         * print-tree.c (print_node): Remove DECL_INLINE check.
6030
6031 2008-07-29  Richard Guenther  <rguenther@suse.de>
6032
6033         PR tree-optimization/36945
6034         * tree-ssa-sccvn.h (copy_reference_ops_from_ref): Declare.
6035         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Export.
6036         Record invariant addresses un-decomposed.
6037         (copy_reference_ops_from_call): Record reference call
6038         arguments properly.  Simplify.
6039         * tree-ssa-pre.c (create_component_ref_by_pieces_1): New
6040         helper split out from ...
6041         (create_component_ref_by_pieces): ... here.  Simplify.
6042         Prepare for recursive invocation for call arguments.
6043         (create_expression_by_pieces): Adjust call to
6044         create_component_ref_by_pieces.
6045         (compute_avail): Process operand 2 of reference ops.
6046
6047 2008-07-29  Richard Guenther  <rguenther@suse.de>
6048
6049         * gimplify.c (gimplify_expr): Clear TREE_SIDE_EFFECTS for OBJ_TYPE_REF.
6050
6051 2008-07-29  Jakub Jelinek  <jakub@redhat.com>
6052
6053         * c-format.c (check_format_types): Revert unwanted checkin.
6054
6055 2008-07-29  Jan Hubicka  <jh@suse.cz>
6056
6057         * flags.h (flag_really_no_inline): Remove.
6058         * cgraph.c (cgraph_function_possibly_inlined_p): Simplify.
6059         * toplev.c (flag_really_no_inline): Remove.
6060         * c-cppbuiltin.c (c_cpp_builtins): Use flag_no_inline.
6061         * ipa-inline.c (cgraph_decide_inlining): Do not check flag_no_inline.
6062         (cgraph_decide_inlining_incrementally): Likewise.
6063         (compute_inline_parameters): Likewise.
6064         * opts.c (decode_options): Simplify.
6065         * c-opts.c (c_common_post_options): Do not set flag_no_inline.
6066         * common.opt (finline): Initialize to 1.
6067         * tree-inline.c (inlinable_function_p): Check flag_no_inline.
6068
6069 2008-07-29  Jan Hubicka  <jh@suse.cz>
6070
6071         * predict.c (always_optimize_for_size_p): New function.
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): New global
6075         functions.
6076         (rtl_profile_for_bb, rtl_profile_for_edge, rtl_default_profile): New.
6077         * function.c (prepare_function_start): Set default profile.
6078         * function.h (rtl_data): Add maybe_hot_insn_p.
6079         * cfgexpand.c (expand_gimple_basic_block): Set RTL profile.
6080         (construct_exit_block): Likewise.
6081         (tree_expand_cfg): Likewise.
6082         * basic-block.h
6083         (optimize_bb_for_size_p, optimize_bb_for_speed_p,
6084         optimize_edge_for_size_p, optimize_edge_for_speed_p,
6085         optimize_insn_for_size_p, optimize_insn_for_speed_p): Declare.
6086         (rtl_profile_for_bb, rtl_profile_for_edge, default_rtl_profile):
6087         Declare.
6088
6089 2008-07-29  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
6090
6091         PR 34985
6092         * c-decl.c (merge_decls): Merge USED flags.
6093
6094 2008-07-29  Kaz Kojima  <kkojima@gcc.gnu.org>
6095
6096         * config/sh/sh.c (sh_gimplify_va_arg_expr): Unshare the addr,
6097         valist, next_fp, next_fp_tmp, next_fp_limit, next_o, next_o_limit,
6098         next_stack, lab_false and lab_over trees.
6099
6100 2008-07-28  Richard Guenther  <rguenther@suse.de>
6101
6102         PR tree-optimization/36957
6103         * tree-flow.h (tree_ssa_useless_type_conversion): Remove.
6104         (useless_type_conversion_p): Remove.
6105         (types_compatible_p): Remove.
6106         * gimple.h (tree_ssa_useless_type_conversion): Declare.
6107         (useless_type_conversion_p): Declare.
6108         (types_compatible_p): Declare.
6109         (gimple_expr_type): Return the base type only if it is
6110         trivially convertible to the subtype.
6111
6112 2008-07-28  Andreas Tobler  <a.tobler@schweiz.org>
6113
6114         * configure.ac: Use the m4_do macro to concatenate the warnings into
6115         one string in ACX_PROG_CC_WARNING_OPTS,
6116         ACX_PROG_CC_WARNING_ALMOST_PEDANTIC and ACX_PROG_CC_WARNINGS_ARE_ERRORS.
6117         * configure: Regenerate.
6118
6119 2008-07-28  Richard Guenther  <rguenther@suse.de>
6120
6121         * tree-ssa-pre.c (insert_into_preds_of_block): Remove dead code.
6122         (insert_fake_stores): Remove.
6123         (realify_fake_stores): Likewise.
6124         (execute_pre): Remove dead code.
6125         * tree-ssa-structalias.c (get_constraint_for_1): Remove tcc_unary case.
6126         (find_func_aliases): Deal with it here instead.
6127         Re-enable gcc_unreachable call.
6128
6129 2008-07-28  Richard Guenther  <rguenther@suse.de>
6130
6131         Merge from gimple-tuples-branch.
6132
6133         * ChangeLog.tuples: ChangeLog from gimple-tuples-branch.
6134         * gimple.def: New file.
6135         * gsstruct.def: Likewise.
6136         * gimple-iterator.c: Likewise.
6137         * gimple-pretty-print.c: Likewise.
6138         * tree-gimple.c: Removed.  Merged into ...
6139         * gimple.c: ... here.  New file.
6140         * tree-gimple.h: Removed.  Merged into ...
6141         * gimple.h: ... here.  New file.
6142
6143         * Makefile.in: Add dependencies on GIMPLE_H and tree-iterator.h.
6144         * configure.ac: Added support for ENABLE_GIMPLE_CHECKING and the
6145         --enable-checking=gimple flag.
6146         * config.in: Likewise.
6147         * configure: Regenerated.
6148
6149         * tree-ssa-operands.h: Tuplified.
6150         * tree-vrp.c: Likewise.
6151         * tree-loop-linear.c: Likewise.
6152         * tree-into-ssa.c: Likewise.
6153         * tree-ssa-loop-im.c: Likewise.
6154         * tree-dump.c: Likewise.
6155         * tree-complex.c: Likewise.
6156         * cgraphbuild.c: Likewise.
6157         * tree-ssa-threadupdate.c: Likewise.
6158         * tree-ssa-loop-niter.c: Likewise.
6159         * tree-pretty-print.c: Likewise.
6160         * tracer.c: Likewise.
6161         * gengtype.c: Likewise.
6162         * tree-loop-distribution.c: Likewise.
6163         * tree-ssa-loop-unswitch.c: Likewise.
6164         * cgraph.c: Likewise.
6165         * cgraph.h: Likewise.
6166         * tree-ssa-loop-manip.c: Likewise.
6167         * value-prof.c: Likewise.
6168         * tree-ssa-loop-ch.c: Likewise.
6169         * tree-tailcall.c: Likewise.
6170         * value-prof.h: Likewise.
6171         * tree.c: Likewise.
6172         * tree.h: Likewise.
6173         * tree-pass.h: Likewise.
6174         * ipa-cp.c: Likewise.
6175         * tree-scalar-evolution.c: Likewise.
6176         * tree-scalar-evolution.h: Likewise.
6177         * target.h: Likewise.
6178         * lambda-mat.c: Likewise.
6179         * tree-phinodes.c: Likewise.
6180         * diagnostic.h: Likewise.
6181         * builtins.c: Likewise.
6182         * tree-ssa-alias-warnings.c: Likewise.
6183         * cfghooks.c: Likewise.
6184         * fold-const.c: Likewise.
6185         * cfghooks.h: Likewise.
6186         * omp-low.c: Likewise.
6187         * tree-ssa-dse.c: Likewise.
6188         * ipa-reference.c: Likewise.
6189         * tree-ssa-uncprop.c: Likewise.
6190         * toplev.c: Likewise.
6191         * tree-gimple.c: Likewise.
6192         * tree-gimple.h: Likewise.
6193         * tree-chrec.c: Likewise.
6194         * tree-chrec.h: Likewise.
6195         * tree-ssa-sccvn.c: Likewise.
6196         * tree-ssa-sccvn.h: Likewise.
6197         * cgraphunit.c: Likewise.
6198         * tree-ssa-copyrename.c: Likewise.
6199         * tree-ssa-ccp.c: Likewise.
6200         * tree-ssa-loop-ivopts.c: Likewise.
6201         * tree-nomudflap.c: Likewise.
6202         * tree-call-cdce.c: Likewise.
6203         * ipa-pure-const.c: Likewise.
6204         * c-format.c: Likewise.
6205         * tree-stdarg.c: Likewise.
6206         * tree-ssa-math-opts.c: Likewise.
6207         * tree-ssa-dom.c: Likewise.
6208         * tree-nrv.c: Likewise.
6209         * tree-ssa-propagate.c: Likewise.
6210         * ipa-utils.c: Likewise.
6211         * tree-ssa-propagate.h: Likewise.
6212         * tree-ssa-alias.c: Likewise.
6213         * gimple-low.c: Likewise.
6214         * tree-ssa-sink.c: Likewise.
6215         * ipa-inline.c: Likewise.
6216         * c-semantics.c: Likewise.
6217         * dwarf2out.c: Likewise.
6218         * expr.c: Likewise.
6219         * tree-ssa-loop-ivcanon.c: Likewise.
6220         * predict.c: Likewise.
6221         * tree-ssa-loop.c: Likewise.
6222         * tree-parloops.c: Likewise.
6223         * tree-ssa-address.c: Likewise.
6224         * tree-ssa-ifcombine.c: Likewise.
6225         * matrix-reorg.c: Likewise.
6226         * c-decl.c: Likewise.
6227         * tree-eh.c: Likewise.
6228         * c-pretty-print.c: Likewise.
6229         * lambda-trans.c: Likewise.
6230         * function.c: Likewise.
6231         * langhooks.c: Likewise.
6232         * ebitmap.h: Likewise.
6233         * tree-vectorizer.c: Likewise.
6234         * function.h: Likewise.
6235         * langhooks.h: Likewise.
6236         * tree-vectorizer.h: Likewise.
6237         * ipa-type-escape.c: Likewise.
6238         * ipa-type-escape.h: Likewise.
6239         * domwalk.c: Likewise.
6240         * tree-if-conv.c: Likewise.
6241         * profile.c: Likewise.
6242         * domwalk.h: Likewise.
6243         * tree-data-ref.c: Likewise.
6244         * tree-data-ref.h: Likewise.
6245         * tree-flow-inline.h: Likewise.
6246         * tree-affine.c: Likewise.
6247         * tree-vect-analyze.c: Likewise.
6248         * c-typeck.c: Likewise.
6249         * gimplify.c: Likewise.
6250         * coretypes.h: Likewise.
6251         * tree-ssa-phiopt.c: Likewise.
6252         * calls.c: Likewise.
6253         * tree-ssa-coalesce.c: Likewise.
6254         * tree.def: Likewise.
6255         * tree-dfa.c: Likewise.
6256         * except.c: Likewise.
6257         * except.h: Likewise.
6258         * cfgexpand.c: Likewise.
6259         * tree-cfgcleanup.c: Likewise.
6260         * tree-ssa-pre.c: Likewise.
6261         * tree-ssa-live.c: Likewise.
6262         * tree-sra.c: Likewise.
6263         * tree-ssa-live.h: Likewise.
6264         * tree-predcom.c: Likewise.
6265         * lambda.h: Likewise.
6266         * tree-mudflap.c: Likewise.
6267         * ipa-prop.c: Likewise.
6268         * print-tree.c: Likewise.
6269         * tree-ssa-copy.c: Likewise.
6270         * ipa-prop.h: Likewise.
6271         * tree-ssa-forwprop.c: Likewise.
6272         * ggc-page.c: Likewise.
6273         * c-omp.c: Likewise.
6274         * tree-ssa-dce.c: Likewise.
6275         * tree-vect-patterns.c: Likewise.
6276         * tree-ssa-ter.c: Likewise.
6277         * tree-nested.c: Likewise.
6278         * tree-ssa.c: Likewise.
6279         * lambda-code.c: Likewise.
6280         * tree-ssa-loop-prefetch.c: Likewise.
6281         * tree-inline.c: Likewise.
6282         * tree-inline.h: Likewise.
6283         * tree-iterator.c: Likewise.
6284         * tree-optimize.c: Likewise.
6285         * tree-ssa-phiprop.c: Likewise.
6286         * tree-vect-transform.c: Likewise.
6287         * tree-object-size.c: Likewise.
6288         * tree-outof-ssa.c: Likewise.
6289         * cfgloop.c: Likewise.
6290         * system.h: Likewise.
6291         * tree-profile.c: Likewise.
6292         * cfgloop.h: Likewise.
6293         * c-gimplify.c: Likewise.
6294         * c-common.c: Likewise.
6295         * tree-vect-generic.c: Likewise.
6296         * tree-flow.h: Likewise.
6297         * c-common.h: Likewise.
6298         * basic-block.h: Likewise.
6299         * tree-ssa-structalias.c: Likewise.
6300         * tree-switch-conversion.c: Likewise.
6301         * tree-ssa-structalias.h: Likewise.
6302         * tree-cfg.c: Likewise.
6303         * passes.c: Likewise.
6304         * ipa-struct-reorg.c: Likewise.
6305         * ipa-struct-reorg.h: Likewise.
6306         * tree-ssa-reassoc.c: Likewise.
6307         * cfgrtl.c: Likewise.
6308         * varpool.c: Likewise.
6309         * stmt.c: Likewise.
6310         * tree-ssanames.c: Likewise.
6311         * tree-ssa-threadedge.c: Likewise.
6312         * langhooks-def.h: Likewise.
6313         * tree-ssa-operands.c: Likewise.
6314         * config/alpha/alpha.c: Likewise.
6315         * config/frv/frv.c: Likewise.
6316         * config/s390/s390.c: Likewise.
6317         * config/m32c/m32c.c: Likewise.
6318         * config/m32c/m32c-protos.h: Likewise.
6319         * config/spu/spu.c: Likewise.
6320         * config/sparc/sparc.c: Likewise.
6321         * config/i386/i386.c: Likewise.
6322         * config/sh/sh.c: Likewise.
6323         * config/xtensa/xtensa.c: Likewise.
6324         * config/stormy16/stormy16.c: Likewise.
6325         * config/ia64/ia64.c: Likewise.
6326         * config/rs6000/rs6000.c: Likewise.
6327         * config/pa/pa.c: Likewise.
6328         * config/mips/mips.c: Likewise.
6329
6330 2008-07-28  Simon Baldwin  <simonb@google.com>
6331
6332         * c-pragma.c (handle_pragma_message): New function.
6333         (init_pragma): Register handle_pragma_message.
6334         * doc/extend.texi (Diagnostic Pragmas): Added #pragma message
6335         documentation.
6336
6337 2008-07-27  Victor Kaplansky  <victork@il.ibm.com>
6338
6339         PR tree-optimization/35252
6340         * tree-vect-analyze.c (vect_build_slp_tree): Make IMAGPART_EXPR and
6341         REALPART_EXPR to be considered as same load operation.
6342
6343 2008-07-27  Eric Botcazou  <ebotcazou@adacore.com>
6344
6345         PR tree-optimization/36830
6346         * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Hash operand #2.
6347         (expressions_equal_p): Return false if only one operand is null.
6348
6349 2008-07-26  Gerald Pfeifer  <gerald@pfeifer.com>
6350
6351         * doc/install.texi (powerpc-*-netbsd*): Remove redundant texinfo
6352         version requirements.
6353
6354 2008-07-26  Olivier Hainque  <hainque@adacore.com>
6355
6356         * collect2.c (symkind): New enum.  Symbol kinds we care about.
6357         (is_ctor_dtor): Return symkind instead of int.  Adjust prototype,
6358         code and head comment accordingly.
6359         (scan_prog_file): Use symkind names instead of bare integers.
6360
6361 2008-07-25  Jan Hubicka  <jh@suse.cz>
6362
6363         * cgraph.c (cgraph_function_possibly_inlined_p): Do not rely on
6364         DECL_INLINE.
6365         * cgraphunit.c (record_cdtor_fn): Do not initialize DECL_INLINE
6366         (cgraph_preserve_function_body_p): Do not rely on DECL_INLINE.
6367         * dojump.c (clear_pending_stack_adjust): Likewise.
6368         * print-tree.c (print_node): Ignore DECL_INLINE.
6369         * tree-inline.c (inlinable_function_p): Likewise.
6370
6371 2008-07-25  Michael Meissner  <gnu@the-meissners.org>
6372
6373         * doc/extend.texi (hot attribute): Document that the hot attribute
6374         turns on -O3 for some ports.
6375         (cold attribute): Document that the cold attribute turns on -Os
6376         for some ports
6377
6378         * doc/tm.texi (OPTIMIZATION_OPTIONS): Update documentation to
6379         reflect function specific option support.
6380
6381         * target.h (struct target_option_hooks): Add fields to say whether
6382         the cold attribute implies -Os and the hot attribute implies -O3.
6383
6384         * target-def.h (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION):
6385         By default, do not turn on -Os for cold functions.
6386         (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): By default, do
6387         not turn on -O3 for hot functions.
6388
6389         * c-common.c (handle_hot_attribute): Use target hook to determine
6390         if hot functions should enable -O3.
6391         (handle_cold_attribute): Use target hook to determine if cold
6392         functions should enable -Os.
6393
6394         * config/i386/i386.c (ix86_target_string): Add -m3dnowa support.
6395         (override_options): Move disable scheduling to
6396         optimization_options.
6397         (optimization_options): Disable scheduling here, not
6398         override_options.
6399         (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): Define.
6400         (TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION): Define.
6401
6402         * config/ia64/ia64.c (ia64_override_options): Move setting
6403         scheduling flags to ia64_optimization_options.
6404         (ia64_optimization_options): Disable scheduling options here, and
6405         not in ia64_override_options.
6406         (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): Define.
6407         (TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION): Define.
6408
6409 2008-07-25  H.J. Lu  <hongjiu.lu@intel.com>
6410
6411         PR target/36936
6412         * config/i386/i386.c (override_options): Don't clear TARGET_CMOVE.
6413
6414 2008-07-25  Martin Jambor  <mjambor@suse.cz>
6415
6416         PR tree-optimization/36926
6417         * ipa-prop.c (ipa_analyze_call_uses): Call
6418         ipa_is_ssa_with_stmt_def instead of SSA_NAME_IS_DEFAULT_DEF.
6419
6420 2008-07-25  Joseph Myers  <joseph@codesourcery.com>
6421
6422         * config/arm/iwmmxt.md (movv8qi_internal, movv4hi_internal,
6423         movv2si_internal): Add mem = reg alternative.
6424
6425 2008-07-25  Andreas Tobler  <a.tobler@schweiz.org>
6426
6427         PR bootstrap/36918
6428         * config/sparc/sparc.h (DEFAULT_PCC_STRUCT_RETURN): Define
6429         DEFAULT_PCC_STRUCT_RETURN to 127.
6430
6431 2008-07-24  Jan Hubicka  <jh@suse.cz>
6432
6433         * cgraphbuild.c (record_reference): Drop non-unit-at-a-time code.
6434         (build_cgraph_edges): Likewise.
6435         * cgraph.c (cgraph_node): Do not update assembler hash.
6436         (cgraph_remove_node): Drop non-unit-at-a-time code.
6437         * tree-pass.h (pass_O0_always_inline): Remove.
6438         * ipa-reference.c (gate_reference): Remove unit-at-a-time check.
6439         * toplev.c (process_options): Flag unit-at-a-time does not imply
6440         no section anchors.
6441         * cgraphunit.c: Update comments.
6442         (decide_is_function_needed): Drop non-unit-at-a-time mode.
6443         (cgraph_assemble_pending_functions): Remove.
6444         (cgraph_reset_node): Drop non-unit-at-a-time code.
6445         (cgraph_finalize_function): Likewise.
6446         (cgraph_analyze_function): Likewise.
6447         (cgraph_finalize_compilation_unit): Likewise.
6448         (cgraph_expand_function): Likewise.
6449         (cgraph_optimize): Likesise.
6450         (save_inline_function_body): Likewise.
6451         * ipa-pure-const.c (gate_pure_const): Drop flag_unit_at_a_time check.
6452         * tree-ssa-alias.c (maybe_be_aliased): Likewise.
6453         * ipa-inline.c: Update comments.
6454         (enum inlining_mode): remove INLINE_SPEED.
6455         (cgraph_clone_inlined_nodes): Drop unit-at-a-time check.
6456         (cgraph_mark_inline_edge): Likewise.
6457         (try_inline): Likewise.
6458         (cgraph_decide_inlining_incrementally): Likewise.
6459         (cgraph_gate_inlining): Remove.
6460         (cgraph_early_inlining): Remove flag_unit_at_a_time checks.
6461         (cgraph_gate_early_inlining): Likewise.
6462         (gate_inline_passes): Remove.
6463         (pass_inline_parameters, pass_ipa_inline): Remove gates.
6464         (cgraph_gate_O0_always_inline, cgraph_O0_always_inline,
6465         pass_O0_always_inline): Remove.
6466         * c-pch.c (c_pch_matching): Remove -funit-at-a-time.
6467         * dwarf2out.c (reference_to_unused): Remove flag_unit_at_a_time check.
6468         * opts.c (no_unit_at_a_time_default): Remove.
6469         (decode_options): Remove flag_unit_at_a_time reset and warning.
6470         * opts.h (no_unit_at_a_time_default): Remove.
6471         * c-decl.c (diagnose_mismatched_decls): Do not require inline keyword
6472         early in GNU dialect.
6473         (merge_decls): Update comment; drop unit-at-a-time check.
6474         (finish_decl): Likewise.
6475         (grok_declaration): Remove flag_inline_trees code.
6476         (finish_functions): Return on function returning non-void on all
6477         statics.
6478         * ipa-tye-escape.c (gate_type_escape_vars): Remove.
6479         * cfgexpand.c (expand_one_static_var): Remove.
6480         (expand_one_var): Remove expand_one_static_var call.
6481         (expand_used_vars_for_block): Remove flag_unit_a_time check.
6482         * c-opts.c (c_common_post_options): Remove flag_inline_trees code
6483         and flag_unit_at_a-time compatibility checks.
6484         * varasm.c (assemble_alias): Remove flag_unit_at_a_time check.
6485         * tree-inline.c (flag_inline_trees): Remove.
6486         (inlinable_function_p): Don't check it.
6487         (expand_call_inline): Remove non-unit-at-a-time code.
6488         * tree-inline.h (flag_inline_trees): Remove.
6489         * tree-optimize.c (execute_early_local_optimizations): Remove
6490         unit-at-a-time checks.
6491         (tree_rest_of_compilation): Likewise.
6492         * combine.c (setup_incoming_promotions): Likewise.
6493         * tree-profile.c (tree_gen_ic_func_profiler): Likewise.
6494         * tree-ssa-structalias.c (delete_points_to_sets): Likewise.
6495         * passes.c (pass_inline_parameters): Update comments; remove
6496         O0_alwaysinline pass.
6497         (execute_one_ipa_transform_pass): Do not reset in_gimple_form.
6498         (execute_one_pass): Likewise.
6499         * i386.c (ix86_function_regparm): Remove unit-at-a-time check.
6500         (ix86_function_sseregparm): Likewise.
6501         * arm.c (arm_function_in_section_p): Likewise.
6502         * bfin.c (bfin_load_pic_reg, bfin_function_ok_for_sibcall): Likewise.
6503         * varpool.c: Update comments.
6504         (decide_is_variable_needed): Remove unit-at-a-time checks.
6505         (varpool_finalize_decl): Likewise.
6506
6507 2008-07-24  Kaz Kojima  <kkojima@gcc.gnu.org>
6508
6509         * config/sh/sh.h (OPTIMIZATION_OPTIONS): Set flag_omit_frame_pointer
6510         to 2 instead of -1.
6511         (OVERRIDE_OPTIONS): Check if flag_omit_frame_pointer is equal to 2.
6512
6513 2008-07-24  Kai Tietz  <kai.tietz@onevision.com>
6514
6515         * config/i386/i386.c (get_dllimport_decl): Treat user_label_prefix for
6516         imp symbol extension.
6517
6518         2008-07-23  Ian Lance Taylor  <iant@google.com>
6519
6520         * tree-vrp.c (infer_value_range): Ignore asm statements when
6521         looking for memory accesses for -fdelete-null-pointer-checks.
6522
6523 2008-07-24  Ben Elliston  <bje@au.ibm.com>
6524
6525         * config/spu/spu-c.c (__vector_keyword): New variable.
6526         (vector_keyword): Likewise.
6527         (spu_categorize_keyword): New function.
6528         (spu_macro_to_expand): Likewise.
6529         (spu_cpu_cpp_builtins): Enable context-sensitive macros if not
6530         compiling an ISO C dialect.
6531
6532 2008-07-24  Ben Elliston  <bje@au.ibm.com>
6533
6534         * config/rs6000/rs6000-c.c: Move GTY(()) markers to match
6535         conventional usage.
6536
6537 2008-07-23  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
6538
6539         * configure: Regenerate.
6540         * configure.ac: Require texinfo 4.7.
6541         * doc/install.texi: Document texinfo 4.7 requirement.
6542
6543 2008-07-23  Martin Jambor  <mjambor@suse.cz>
6544
6545         * ipa-cp.c (ipcp_print_edge_profiles): Test for node->analyzed
6546         rather than for DECL_SAVED_TREE.
6547         * ipa-prop.c: Include diagnostic.h.
6548         (ipa_check_stmt_modifications): Check LHS of GIMPLE_MODIFY_EXPRs
6549         thoroughly.
6550         (ipa_detect_param_modifications): Function rewritten from scratch.
6551         (ipa_compute_jump_functions): Changed accesses to modification flags.
6552         (ipa_free_node_params_substructures): Update flags destruction.
6553         (ipa_node_duplication_hook): Update flags duplication.
6554         (ipa_print_all_params_modified): Updated flag access.
6555         * ipa-prop.h (struct ipa_param_flags): New structure.
6556         (struct ipa_node_params): New field modification_analysis_done,
6557         modified_flags changed into param_flags.
6558         (ipa_is_ith_param_modified): Changed to use new flags.
6559         * Makefile.in (ipa-prop.o): Add $(DIAGNOSTIC_H) to dependencies.
6560
6561         * ipa-prop.c (ipa_print_all_jump_functions): Moved here from
6562         ipa-cp.c and split into two functions.
6563         (ipa_print_node_jump_functions): New function.
6564         (compute_scalar_jump_functions): New function.
6565         (type_like_member_ptr_p): New function.
6566         (compute_pass_through_member_ptrs): New function.
6567         (fill_member_ptr_cst_jump_function): New function.
6568         (determine_cst_member_ptr): New function.
6569         (compute_cst_member_ptr_arguments): New function.
6570         (ipa_compute_jump_functions): Complete rewrite.
6571         * ipa-prop.h (enum jump_func_type): Make explicit that we depend
6572         on IPA_UNKNOWN being zero. Added value IPA_CONST_MEMBER_PTR.
6573         (struct ipa_member_ptr_cst): New structure.
6574         (union jump_func_value): New field member_cst.
6575         * ipa-cp.c (ipcp_lat_is_insertable): New function.
6576         (ipcp_lattice_from_jfunc): Produces bottom lattices for unhandled
6577         jump function types.
6578         (ipcp_print_all_lattices): Slight fprintf rearrangement.
6579         (ipcp_print_all_structures): Call ipa_print_all_jump_functions
6580         instead of ipcp_print_all_jump_functions.
6581         (ipcp_insert_stage): Use ipcp_lat_is_insertable, create replace maps
6582         only for replacable scalars.
6583
6584         * doc/invoke.texi (Optimize options): Add description of
6585         -findirect-inlining.
6586         * common.opt (flag_indirect_inlining): New flag.
6587         * opts.c (decode_options): Set flag_indirect_inlining when
6588         optimize >= 3.
6589
6590         * ipa-inline.c: Include ipa-prop.h.
6591         (inline_indirect_intraprocedural_analysis): New function.
6592         (inline_generate_summary): Allocate parameter and argument info
6593         structures, call inline_indirect_intraprocedural_analysis on each
6594         node when doing indirect inlining and deallocate indirect inlining
6595         data structures in the end.
6596         * ipa-prop.c (ipa_create_param_decls_array): Return if already done.
6597         (free_all_ipa_structures_after_iinln): New function.
6598         (free_all_ipa_structures_after_ipa_cp): Checks whether iinln will be
6599         done.
6600         * Makefile.in (ipa-inline.o): Added $(IPA_PROP_H) to dependencies.
6601
6602         * cgraphbuild.c (compute_call_stmt_bb_frequency): New function.
6603         (build_cgraph_edges): Call compute_call_stmt_bb_frequency instead
6604         of computing the frequency separately.
6605         (rebuild_cgraph_edges): Call compute_call_stmt_bb_frequency instead
6606         of computing the frequency separately.
6607         * ipa-cp.c (ipcp_print_all_structures): Replace a call to
6608         ipa_print_all_param_modified with a call to ipa_print_all_param_flags.
6609         * ipa-prop.c (ipa_get_member_ptr_load_param): New function.
6610         (ipa_get_stmt_member_ptr_load_param): New function.
6611         (ipa_is_ssa_with_stmt_def): New function.
6612         (ipa_note_param_call): New function.
6613         (ipa_analyze_call_uses): New function.
6614         (ipa_analyze_stmt_uses): New function.
6615         (ipa_analyze_params_uses): New function.
6616         (ipa_free_node_params_substructures): Also free the param_calls linked
6617         list.
6618         (ipa_node_duplication_hook): Also duplicate the param_calls linked list.
6619         (ipa_print_node_param_flags): New function.
6620         (ipa_print_all_params_modified): Renamed to ipa_print_all_param_flags.
6621         (ipa_print_all_param_flags): Calls ipa_print_node_param_flags.
6622         * ipa-prop.h (struct ipa_param_flags): New field called.
6623         (struct ipa_param_call_note): New structure.
6624         (struct ipa_node_params): New fields param_calls and
6625         uses_analysis_done.
6626         (ipa_is_ith_param_called): New function.
6627         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
6628         ipa_analyze_params_uses and dump parameter flags.
6629
6630         * ipa-inline.c (cgraph_decide_recursive_inlining): Call
6631         ipa_propagate_indirect_call_infos if performing indirect inlining,
6632         pass a new parameter new_edges to it.
6633         (add_new_edges_to_heap): New fucntion.
6634         (cgraph_decide_inlining_of_small_functions): New vector
6635         new_indirect_edges for newly found indirect edges , call
6636         ipa_propagate_indirect_call_infos after inlining.
6637         (cgraph_decide_inlining): Call ipa_propagate_indirect_call_infos after
6638         inlining if performing indirect inlining.  Call
6639         free_all_ipa_structures_after_iinln when doing so too.
6640         (inline_generate_summary): Do not call
6641         free_all_ipa_structures_after_iinln here.
6642         * ipa-prop.c (update_jump_functions_after_inlining): New function.
6643         (print_edge_addition_message): New function.
6644         (update_call_notes_after_inlining): New function.
6645         (propagate_info_to_inlined_callees): New function.
6646         (ipa_propagate_indirect_call_infos): New function.
6647         * ipa-prop.h: Include cgraph.h
6648         (struct ipa_param_call_note): Fields reordered, new field processed.
6649         * cgraph.h (cgraph_edge): Shrink loop_nest field to 31 bits, add a new
6650         flag indirect_call.
6651         * cgraphunit.c (verify_cgraph_node): Allow indirect edges not to have
6652         rediscovered call statements.
6653         * cgraph.c (cgraph_create_edge): Initialize indirect_call to zero.
6654         (dump_cgraph_node): Dump also the indirect_call flag.
6655         (cgraph_clone_edge): Copy also the indirect_call flag.
6656         * tree-inline.c (copy_bb): Do not check for fndecls from call
6657         expressions, check for edge availability when moving clones.
6658         (get_indirect_callee_fndecl): New function.
6659         (expand_call_inline): If callee declaration is not apprent from
6660         the statement, try calling get_indirect_callee_fndecl.  Do not
6661         issue warnings or call sorry when not inlinings an indirect edge.
6662         * Makefile.in (IPA_PROP_H): Added $(CGRAPH_H) to dependencies.
6663
6664         * ipa-prop.c (ipa_print_node_param_flags): Make the dump format a
6665         bit more frandly to matching.
6666         * testsuite/g++.dg/ipa/iinline-1.C: New testcase.
6667         * testsuite/gcc.dg/ipa/iinline-1.c: New testcase.
6668         * testsuite/gcc.dg/ipa/modif-1.c: New testcase.
6669
6670 2008-07-23  Michael Meissner  <gnu@the-meissners.org>
6671
6672         PR 36907
6673         * opth-gen.awk: Suppress function specific features when building
6674         target libraries.
6675         * optc-gen.awk: Ditto.
6676
6677 2008-07-23  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
6678
6679         PR 35058
6680         * diagnostic.c (pedwarn): Add opt parameter.
6681         (pedwarn0): New.
6682         * c-tree.h (pedwarn_init): Add opt parameter.
6683         (pedwarn_c90): Likewise.
6684         (pedwarn_c99): Likewise.
6685         * c-errors.c (pedwarn_c99): Likewise.
6686         (pedwarn_c90): Likewise.
6687         * toplev.h (pedwarn): Update declaration.
6688         (pedwarn0): Declare.
6689         * c-lex.c: All calls to pedwarn changed.
6690         * builtins.c: All calls to pedwarn changed.
6691         * toplev.c: All calls to pedwarn changed.
6692         * c-decl.c: All calls to pedwarn changed.
6693         * c-typeck.c: All calls to pedwarn changed.
6694         * c-common.c: All calls to pedwarn changed.
6695         * c-parser.c: All calls to pedwarn changed.
6696
6697 2008-07-23  Michael Meissner  <gnu@the-meissners.org>
6698             Karthik Kumar  <karthikkumar@gmail.com>
6699
6700         * attribs.c (file scope): Include c-common.h.
6701         (decl_attributes): Add support for #pragma GCC optimize and
6702         #pragma GCC option.
6703
6704         * targhooks.c (default_can_inline_p): New function that is the
6705         default for the TARGET_CAN_INLINE_P target hook.
6706
6707         * targhooks.h (default_can_inline_p): Add declaration.
6708
6709         * tree.c (cl_optimization_node): New static tree for building
6710         OPTIMIZATION_NODE tree.
6711         (cl_target_option_node): New static tree for building
6712         TARGET_OPTION_NODE tree.
6713         (cl_option_hash_table): New hash table for hashing
6714         OPTIMIZATION_NODE and TARGET_OPTION_NODE trees.
6715         (cl_option_hash_hash): New function to provide the hash value for
6716         OPTIMIZATION_NODE and TARGET_OPTION_NODE trees.
6717         (cl_option_hash_eq): New function to provide an equality test for
6718         OPTIMIZATION_NODE and TARGET_OPTION_NODE trees.
6719         (tree_code_size): Add support for OPTIMIZATION_NODE and
6720         TARGET_OPTION_NODE trees.
6721         (tree_code_structure): Add support for OPTIMIZATION_NODE and
6722         TARGET_OPTION_NODE trees.
6723         (build_optimization_node): Build a tree that has all of the
6724         current optimization options.
6725         (build_target_option_node): Build a tree that has the target
6726         options that might be changed on a per function basis.
6727
6728         * tree.h (file scope): Include options.h.
6729         (DECL_FUNCTION_SPECIFIC_TARGET): New accessor macro.
6730         (DECL_FUNCTION_SPECIFIC_OPTIMIZATION): Ditto.
6731         (TREE_OPTIMIZATION): Ditto.
6732         (TREE_TARGET_SPECIFIC): Ditto.
6733         (struct tree_function_decl): Add fields for remembering the
6734         current optimization options and target specific options.
6735         (struct tree_optimization_option): New tree variant that remembers
6736         the optimization options.
6737         (struct tree_target_option): New tree variant that remembers the
6738         target specific flags that might change for compiling a particular
6739         function.
6740         (union tree_node): Include tree_optimization_option and
6741         tree_target_option fields.
6742         (enum tree_index): Add TI_OPTIMIZATION_DEFAULT,
6743         TI_OPTIMIZATION_CURRENT, TI_OPTIMIZATION_COLD,
6744         TI_OPTIMIZATION_HOT, TI_TARGET_OPTION_DEFAULT,
6745         TI_TARGET_OPTION_CURRENT, TI_CURRENT_OPTION_PRAGMA,
6746         TI_CURRENT_OPTIMIZE_PRAGMA entries for saving function specific
6747         optimization and target options.
6748         (optimization_default_node): New macro to refer to global_trees
6749         field.
6750         (optimization_current_node): Ditto.
6751         (optimization_cold_node): Ditto.
6752         (optimization_hot_node): Ditto.
6753         (target_option_default_node): Ditto.
6754         (target_option_current_node): Ditto.
6755         (current_option_pragma): Ditto.
6756         (current_optimize_pragma): Ditto.
6757
6758         * target.h (struct gcc_target): Add valid_option_attribute_p,
6759         target_option_save, target_option_restore, target_option_print,
6760         target_option_pragma_parse, and can_inline_p hooks.
6761
6762         * toplev.h (parse_optimize_options): Add declaration.
6763         (fast_math_flags_struct_set_p): Ditto.
6764
6765         * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): New function to
6766         adjust the current __OPTIMIZE__, etc. macros when #pragma GCC
6767         optimize is used.
6768
6769         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Call
6770         tree_can_inline_p hook to see if one function can inline another.
6771         (cgraph_decide_inlining): Ditto.
6772         (cgraph_decide_inlining_incrementally): Ditto.
6773
6774         * opts.c (decode_options): Add support for running multiple times
6775         to allow functions with different target or optimization options
6776         than was specified on the command line.
6777         (fast_math_flags_struct_set_p): New function that is similar to
6778         fast_math_flags_set_p, except it uses the values in the
6779         cl_optimization structure instead of global variables.
6780
6781         * optc-gen.awk: Add support for TargetSave to allow a back end to
6782         declare new fields that need to be saved when using function
6783         specific options.  Include flags.h and target.h in the options.c
6784         source.  Add support for Save to indicate which options can be set
6785         for individual functions.  Generate cl_optimize_save,
6786         cl_optimize_restore, cl_optimize_print, cl_target_option_save,
6787         cl_target_option_restore, cl_target_option_print functions to
6788         allow functions to use different optimization or target options.
6789
6790         * opt-functions.awk (var_type_struct): Return the type used for
6791         storing the field in a structure.
6792
6793         * opth-gen.awk: Add support for TargetSave to allow a back end to
6794         declare new fields that need to be saved when using function
6795         specific options.  Add support for Save to indicate which options
6796         can be set for individual functions.  Only generate one extern for
6797         Mask fields.  Generate cl_optimization and cl_target_option
6798         structures to remember optimization and target options.
6799
6800         * treestruct.def (TS_OPTIMIZATION): Add support for garbage
6801         collecting new tree nodes.
6802         (TS_TARGET_OPTION): Ditto.
6803
6804         * c-decl.c (merge_decls): Merge function specific target and
6805         optimization options.
6806
6807         * function.c (invoke_set_current_function_hook): If the function
6808         uses different optimization options, change the global variables
6809         to reflect this.
6810
6811         * coretypes.h (struct cl_optimization): Add forward reference.
6812         (struct cl_target_option): Ditto.
6813
6814         * c-pragma.c (option_stack): New static vector to remember the
6815         current #pragma GCC option stack.
6816         (handle_pragma_option): New function to support #pragma GCC option
6817         to change target options.
6818         (optimize_stack): New static vector to remember the current
6819         #pragma GCC optimize stack.
6820         (handle_pragma_optimize): New function to support #pragma GCC
6821         optimize to change optimization options.
6822         (init_pragma): Add support for #pragma GCC optimize and #pragma
6823         GCC option.
6824
6825         * tree.def (OPTIMIZATION_NODE): New tree code for remembering
6826         optimization options.
6827         (TARGET_OPTION_NODE): New tree code for remembering certain target
6828         options.
6829
6830         * print-tree.c (print_node): Add support for OPTIMIZATION_NODE and
6831         TARGET_OPTION_NODE trees.
6832
6833         * common.opt (-O): Add Optimization flag.
6834         (-Os): Ditto.
6835         (-fmath-errno): Ditto.
6836         (-falign-functions): Add UInteger flag to make sure flag gets full
6837         int in cl_optimization structure.
6838         (-falign-jumps): Ditto.
6839         (-falign-labels): Ditto.
6840         (-falign-loops): Ditto.
6841         (-fsched-stalled-insns): Ditto.
6842         (-fsched-stalled-insns-dep): Ditto.
6843
6844         * target-def.h (TARGET_VALID_OPTION_ATTRIBUTE_P): Add default
6845         definition.
6846         (TARGET_OPTION_SAVE): Ditto.
6847         (TARGET_OPTION_RESTORE): Ditto.
6848         (TARGET_OPTION_PRINT): Ditto.
6849         (TARGET_OPTION_PRAGMA_PARSE): Ditto.
6850         (TARGET_CAN_INLINE_P): Ditto.
6851         (TARGET_INITIALIZER): Add new hooks.
6852
6853         * tree-inline.c (tree_can_inline_p): New function to determine
6854         whether one function can inline another.  Check if the functions
6855         use compatible optimization options, and also call the backend
6856         can_inline_p hook.
6857
6858         * tree-inline.h (tree_can_inline_p): Add declaration.
6859
6860         * c-common.c (c_common_attribute): Add support for option and
6861         optimize attributes.
6862         (handle_option_attribute): Add support for the option attribute to
6863         allow the user to specify different target options for compiling a
6864         specific function.
6865         (handle_optimize_attribute): Add support for the optimize
6866         attribute to allow the user to specify different optimization
6867         options for compiling a specific function.
6868         (handle_hot_attribute): Turn on -O3 optimization for this one
6869         function if it isn't the default optimization level.
6870         (handle_cold_attribute): Turn on -Os optimization for this one
6871         function if it insn't the default optimization.
6872         (const_char_p): New const char * typedef.
6873         (optimize_args): New static vector to remember the optimization
6874         arguments.
6875         (parse_optimize_options): New function to set up the optimization
6876         arguments from either the optimize attribute or #pragma GCC optimize.
6877
6878         * c-common.h (c_cpp_builtins_optimize_pragma): Add declaration.
6879         (builtin_define_std): Ditto.
6880
6881         * config.gcc (i[3467]86-*-*): Add i386-c.o to C/C++ languages.
6882         Add t-i386 Makefile fragment to add i386-c.o and i386.o dependencies.
6883         (x86_64-*-*): Ditto.
6884
6885         * Makefile.in (TREE_H): Add options.h.
6886         (options.o): Add $(TARGET_H) $(FLAGS_H) dependencies.
6887
6888         * doc/extend.texi (option attribute): Document new attribute.
6889         (optimize attribute): Ditto.
6890         (hot attribute): Document hot attribute sets -O3.
6891         (cold attribute): Document cold attribute sets -Os.
6892         (#pragma GCC option): Document new pragma.
6893         (#pragma GCC optimize): Ditto.
6894
6895         * doc/options.texi (TargetSave): Document TargetSave syntax.
6896         (UInteger): Document UInteger must be used for certain flags.
6897         (Save): Document Save option to create target specific options
6898         that can be saved/restored on a function specific context.
6899
6900         * doc/c-tree.texi (DECL_FUNCTION_SPECIFIC_TARGET): Document new macro.
6901         (DECL_FUNCTION_SPECIFIC_OPTIMIZATION): Ditto.
6902
6903         * doc/tm.texi (TARGET_VALID_OPTION_ATTRIBUTE_P): Document new hook.
6904         (TARGET_OPTION_SAVE): Ditto.
6905         (TARGET_OPTION_RESTORE): Ditto.
6906         (TARGET_OPTION_PRINT): Ditto.
6907         (TARGET_OPTION_PRAGMA_PARSE): Ditto.
6908         (TARGET_CAN_INLINE_P): Ditto.
6909
6910         * doc/invoke.texi (-mfpmath=sse+387): Document as an alias for
6911         -mfpmath=sse,387.
6912         (-mfpmath=both): Ditto.
6913
6914 2008-07-23  Michael Meissner  <gnu@the-meissners.org>
6915             Karthik Kumar  <karthikkumar@gmail.com>
6916
6917         * config/i386/i386.h (TARGET_ABM): Move switch into ix86_isa_flags.
6918         (TARGET_POPCNT): Ditto.
6919         (TARGET_SAHF): Ditto.
6920         (TARGET_AES): Ditto.
6921         (TARGET_PCLMUL): Ditto.
6922         (TARGET_CMPXCHG16B): Ditto.
6923         (TARGET_RECIP): Move switch into target_flags.
6924         (TARGET_FUSED_MADD): Ditto.
6925         (ix86_arch_features): Make an unsigned char type.
6926         (ix86_tune_features): Ditto.
6927         (OVERRIDE_OPTIONS): Add bool argument to override_options call.
6928         (TARGET_CPU_CPP_BUILTINS): Move into ix86_target_macros.
6929         (REGISTER_TARGET_PRAGMAS): Define, call ix86_register_pragmas.
6930
6931         * config/i386/i386.opt (arch): New TargetSave field to define
6932         fields that need to be saved for function specific option support.
6933         (tune): Ditto.
6934         (fpmath): Ditto.
6935         (branch_cost): Ditto.
6936         (ix86_isa_flags_explicit): Ditto.
6937         (tune_defaulted): Ditto.
6938         (arch_specified): Ditto.
6939         (-m128-long-double): Add Save flag to save option for target
6940         specific option support.
6941         (-m80387): Ditto.
6942         (-maccumulate-outgoing-args): Ditto.
6943         (-malign-double): Ditto.
6944         (-malign-stringops): Ditto.
6945         (-mfancy-math-387): Ditto.
6946         (-mhard-float): Ditto.
6947         (-mieee-fp): Ditto.
6948         (-minline-all-stringops): Ditto.
6949         (-minline-stringops-dynamically): Ditto.
6950         (-mms-bitfields): Ditto.
6951         (-mno-align-stringops): Ditto.
6952         (-mno-fancy-math-387): Ditto.
6953         (-mno-push-args): Ditto.
6954         (-mno-red-zone): Ditto.
6955         (-mpush-args): Ditto.
6956         (-mred-zone): Ditto.
6957         (-mrtd): Ditto.
6958         (-msseregparm): Ditto.
6959         (-mstack-arg-probe): Ditto.
6960         (-m32): Ditto.
6961         (-m64): Ditto.
6962         (-mmmx): Ditto.
6963         (-m3dnow): Ditto.
6964         (-m3dnowa): Ditto.
6965         (-msse): Ditto.
6966         (-msse2): Ditto.
6967         (-msse3): Ditto.
6968         (-msse4.1): Ditto.
6969         (-msse4.2): Ditto.
6970         (-msse4): Ditto.
6971         (-mno-sse4): Ditto.
6972         (-msse4a): Ditto.
6973         (-msse5): Ditto.
6974         (-mrecip): Move flag into target_flags.
6975         (-mcld): Ditto.
6976         (-mno-fused-madd): Ditto.
6977         (-mfused-madd): Ditto.
6978         (-mabm): Move flag into ix86_isa_flags.
6979         (-mcx16): Ditto.
6980         (-mpopcnt): Ditto.
6981         (-msahf): Ditto.
6982         (-maes): Ditto.
6983         (-mpclmul): Ditto.
6984
6985         * config/i386/i386-c.c: New file for #pragma support.
6986         (ix86_target_macros_internal): New function to #define or #undef
6987         target macros based when the user uses the #pragma GCC option to
6988         change target options.
6989         (ix86_pragma_option_parse): New function to add #pragma GCC option
6990         support.
6991         (ix86_target_macros): Move defining the target macros here from
6992         TARGET_CPU_CPP_BUILTINS in i386.h.
6993         (ix86_register_pragmas): Register the #pragma GCC option hook.  If
6994         defined, initialize any subtarget #pragmas.
6995
6996         * config/i386/darwin.h (REGISTER_SUBTARGET_PRAGMAS): Rename from
6997         REGISTER_TARGET_PRAGMAS.
6998
6999         * config/i386/t-i386: New file for x86 dependencies.
7000         (i386.o): Make dependencies mirror the include files used.
7001         (i386-c.o): New file, add dependencies.
7002
7003         * config/i386/i386-protos.h (override_options): Add bool argument.
7004         (ix86_valid_option_attribute_tree): Add declaration.
7005         (ix86_target_macros): Ditto.
7006         (ix86_register_macros): Ditto.
7007
7008         * config/i386/i386.c (ix86_tune_features): Move initialization of
7009         the target masks to initial_ix86_tune_features to allow functions
7010         to have different target options.  Make type unsigned char,
7011         instead of unsigned int.
7012         (initial_ix86_tune_features): New static vector to hold processor
7013         masks for the tune variables.
7014         (ix86_arch_features): Move initialization of the target masks to
7015         initial_ix86_arch_features to allow functions to have different
7016         target options.  Make type unsigned char, instead of unsigned int.
7017         (initial_ix86_arch_features): New static vector to hold processor
7018         masks for the arch variables.
7019         (enum ix86_function_specific_strings): New enum to describe the
7020         string options used for attribute((option(...))).
7021         (ix86_target_string): New function to return a string that
7022         describes the target options.
7023         (ix86_debug_options): New function to print the current options in
7024         the debugger.
7025         (ix86_function_specific_save): New function hook to save the
7026         function specific global variables in the cl_target_option structure.
7027         (ix86_function_specific_restore): New function hook to restore the
7028         function specific variables from the cl_target_option structure to
7029         the global variables.
7030         (ix86_function_specific_print): New function hook to print the
7031         target specific options in the cl_target_option structure.
7032         (ix86_valid_option_attribute_p): New function hook to validate
7033         attribute((option(...))) arguments.
7034         (ix86_valid_option_attribute_tree): New function that is common
7035         code between attribute((option(...))) and #pragma GCC option
7036         support that parses the options and returns a tree holding the options.
7037         (ix86_valid_option_attribute_inner_p): New helper function for
7038         ix86_valid_option_attribute_tree.
7039         (ix86_can_inline_p): New function hook to decide if one function
7040         can inline another on a target specific basis.
7041         (ix86_set_current_function); New function hook to switch target
7042         options if the user used attribute((option(...))) or #pragma GCC
7043         option.
7044         (ix86_tune_defaulted): Move to static file scope from
7045         override_options.
7046         (ix86_arch_specified): Ditto.
7047         (OPTION_MASK_ISA_AES_SET): New macro for moving switches into
7048         ix86_isa_flags.
7049         (OPTION_MASK_ISA_PCLMUL_SET): Ditto.
7050         (OPTION_MASK_ISA_ABM_SET): Ditto.
7051         (OPTION_MASK_ISA_POPCNT_SET): Ditto.
7052         (OPTION_MASK_ISA_CX16_SET): Ditto.
7053         (OPTION_MASK_ISA_SAHF_SET): Ditto.
7054         (OPTION_MASK_ISA_AES_UNSET): Ditto.
7055         (OPTION_MASK_ISA_PCLMUL_UNSET): Ditto.
7056         (OPTION_MASK_ISA_ABM_UNSET): Ditto.
7057         (OPTION_MASK_ISA_POPCNT_UNSET): Ditto.
7058         (OPTION_MASK_ISA_CX16_UNSET): Ditto.
7059         (OPTION_MASK_ISA_SAHF_UNSET): Ditto.
7060         (struct ptt): Move to static file scope from override_options.
7061         (processor_target_table): Ditto.
7062         (cpu_names): Ditto.
7063         (ix86_handle_option): Add support for options that are now isa options.
7064         (override_options): Add support for declaring functions that
7065         support different target options than were specified on the
7066         command line.  Move struct ptt, processor_target_table, cpu_names,
7067         ix86_tune_defaulted, ix86_arch_specified to static file scope.
7068         Add bool argument.  Fix up error messages so the appropriate error
7069         is given for either command line or attribute.
7070         (ix86_previous_fndecl): New static to remember previous function
7071         declaration to see if we need to change target options.
7072         (ix86_builtins_isa): New array to record the ISA of each builtin
7073         function.
7074         (def_builtin): Always create the builtin function, even if the
7075         current ISA doesn't support it.
7076         (ix86_init_mmx_sse_builtins): Remove TARGET_AES and TARGET_PCLMUL
7077         tests for those builtins.
7078         (ix86_init_builtins): Remove TARGET_MMX test for calling
7079         ix86_init_mmx_sse_builtins.
7080         (ix86_expand_builtin): If the current ISA doesn't support a given
7081         builtin, signal an error.
7082         (TARGET_VALID_OPTION_ATTRIBUTE_P): Set target hook.
7083         (TARGET_SET_CURRENT_FUNCTION): Ditto.
7084         (TARGET_OPTION_SAVE): Ditto.
7085         (TARGET_OPTION_RESTORE): Ditto.
7086         (TARGET_OPTION_PRINT): Ditto.
7087         (TARGET_CAN_INLINE_P): Ditto.
7088
7089 2008-07-22  Rafael Ávila de Espíndola  <espindola@google.com>
7090
7091         * c-typeck.c (build_external_ref): Don't call assemble_external.
7092         * final.c (output_operand): Call assemble_external.
7093
7094 2008-07-21  DJ Delorie  <dj@redhat.com>
7095
7096         * config/h8300/h8300.c (h8300_hard_regno_scratch_ok): New.
7097         (TARGET_HARD_REGNO_SCRATCH_OK): Define.
7098
7099 2008-07-21  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7100
7101         * config/spu/spu.md ("div<mode>3"): Convert into expander, move
7102         original insn and splitter contents into ...
7103         ("*div<mode>3_fast"): ... this new pattern.  Enable only if
7104         flag_unsafe_math_optimizations.  Add dummy scratch register.
7105         ("*div<mode>3_adjusted"): New insn and splitter.  Enable only if
7106         !flag_unsafe_math_optimizations.  Returns number with next
7107         highest magnitude if this is still less or equal to the true
7108         quotient in magnitude.
7109
7110 2008-07-21  Rafael Ávila de Espíndola  <espindola@google.com>
7111
7112         * Makefile.in: Replace toplev.h with TOPLEV_H.
7113         * c-decl.c (merge_decls): Don't set DECL_IN_SYSTEM_HEADER.
7114         * c-lex.c (fe_file_change): Don't set in_system_header.
7115         * c-parser.c (c_token): Remove in_system_header.
7116         (c_lex_one_token): Don't set in_system_header.
7117         (c_parser_set_source_position_from_token): Don't set in_system_header.
7118         * diagnostic.c (diagnostic_report_diagnostic): Use location from
7119         diagnostic_info.
7120         (warning_at): New.
7121         * diagnostic.h (diagnostic_report_warnings_p): Add LOC argument.
7122         * flags.h (in_system_header): Remove.
7123         * function.c (saved_in_system_header): Remove.
7124         (push_cfun): Don't set in_system_header.
7125         (pop_cfun): Don't set in_system_header.
7126         (push_struct_function): Don't set in_system_header.
7127         * input.h (expanded_location): Add sysp.
7128         (in_system_header_at): New.
7129         (in_system_header): New.
7130         * toplev.c (in_system_header): Remove.
7131         * toplev.h: Include input.h
7132         (warning_at): New.
7133         * tree-cfg.c (execute_warn_function_return): Call warning_at.
7134         * tree-ssa.c (warn_uninit): Call warning_at.
7135         (warn_uninitialized_var): Update calls to warn_uninit.
7136         (warn_uninitialized_phi): Update calls to warn_uninit.
7137         * tree.c (make_node_stat): Don't set DECL_IN_SYSTEM_HEADER.
7138         (expand_location): Initialize xloc.sysp.
7139         * tree.h (DECL_IN_SYSTEM_HEADER): Use in_system_header_at.
7140         (tree_decl_with_vis): Remove in_system_header_flag.
7141
7142 2008-07-21  Andreas Krebbel  <krebbel1@de.ibm.com>
7143
7144         PR target/36822
7145         * recog.c (asm_operand_ok): Change the order of the extra
7146         memory constraint checks.
7147
7148 2008-07-20  Andrew Pinski  <andrew_pinski@playstation.sony.com>
7149
7150         PR tree-opt/36879
7151         * tree-switch-conversion.c (build_one_array): Call
7152         varpool_mark_needed_node and varpool_finalize_decl
7153         instead of assemble_variable.
7154
7155 2008-07-19  Jan Hubicka  <jh@suse.cz>
7156
7157         * cgraph.c (cgraph_add_new_function): Do early local passes.
7158         * tree-nrv.c (gate_pass_return_slot): New gate.
7159         (pass_nrv): Add the gate.
7160         * tree-ssa-coalese.c (hash_ssa_name_by_var, eq_ssa_name_by_var): New
7161         functions.
7162         (coalesce_ssa_name): Coalesce SSA names.
7163         * tree-ssa-live.c (remove_unused_locals): Be more conservative when
7164         not optimizing so unused user vars remains visible.
7165         * common.opt (flag_tree_ter): Always enable by default.
7166         * tree-ssa-ter.c: Include flags.h
7167         (is_replaceable_p): Check that locations match; when aliasing is missing
7168         be conservative about loads.
7169         * tree-optimize.c (gate_init_datastructures): Remove.
7170         (pass_init_datastructures): New.
7171         * passes.c: Reorder passes so we always go into SSA.
7172
7173 2008-07-19  Jan Hubicka  <jh@suse.cz>
7174
7175         * doc/extend.texi (flatten attribute): Remove note about unit-at-a-time
7176         * doc/invoke.texi (--combine): Likewise.
7177         (-finline-functions-called-once): Update levels when enabled.
7178         (-funit-at-a-time): Document new behaviour.
7179         (-ftoplevel-reorder): Document that it is enabled -O0 and imply
7180         -fno-section-anchors when disabled explicitly.
7181         (inline params): They are not ignored now.
7182         (precompiled headers): Remove unit-at-a-time as being incompatible.
7183         * opts.c (decode_options): Handle unit-at-a-time as alias;
7184         imply -fno-section-anchors when toplevel reorder is disabled
7185         explicitly.
7186         * common.opt (ftoplevel-reorder): Set default value to 2.
7187         (funit-at-a-time): Set default value to 1.
7188         * config/rs6000/rs6000.c (optimization_options): Set section anchors
7189         to 2.
7190
7191 2008-07-19  Jan Hubicka  <jh@suse.cz>
7192
7193         * builtins.c (expand_builtin_int_roundingfn,
7194         expand_builtin_int_roundingfn_2): Do not take subtarget argument;
7195         it is not useful.
7196
7197 2008-07-19  Richard Guenther  <rguenther@suse.de>
7198
7199         PR bootstrap/36864
7200         * tree-ssa-sccvn.h (get_constant_value_id): Declare.
7201         * tree-ssa-sccvn.c (get_constant_value_id): New function.
7202         * tree-ssa-pre.c (get_expr_value_id): For newly created
7203         constant value-ids make sure to add the expression to its
7204         expression-set.
7205
7206 2008-07-19  Jakub Jelinek  <jakub@redhat.com>
7207
7208         PR middle-end/36877
7209         * omp-low.c (expand_omp_atomic_fetch_op): Make sure the
7210         return value of the builtin is ignored.
7211
7212 2008-07-19  Olivier Hainque  <hainque@adacore.com>
7213
7214         * doc/tm.texi (MALLOC_ABI_ALIGNMENT): New macro. Alignment, in
7215         bits, a C conformant malloc implementation has to provide.
7216         * defaults.h (MALLOC_ABI_ALIGNMENT): Default to BITS_PER_WORD.
7217
7218 2008-07-19  Joseph Myers  <joseph@codesourcery.com>
7219
7220         PR target/36780
7221         PR target/36827
7222         * reload.c (find_reloads_subreg_address): Only reload address if
7223         reloaded == 0, not for reloaded != 1.
7224
7225         Revert:
7226         2008-07-16  Joseph Myers  <joseph@codesourcery.com>
7227         * config/m32c/m32c.c (BIG_FB_ADJ): Move definition earlier.
7228         (m32c_legitimate_address_p): Handle "++rii" addresses created by
7229         m32c_legitimize_reload_address.
7230
7231         2008-07-15  Kaz Kojima  <kkojima@gcc.gnu.org>
7232         * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Allow
7233         (plus (plus (reg) (const_int)) (const_int)) when reload_in_progress.
7234
7235 2008-07-19  Olivier Hainque  <hainque@adacore.com>
7236
7237         * dwarf2out.c (add_subscript_info): New explicit COLLAPSE_P
7238         argument, saying whether nested array are to be collapsed
7239         into a single array type DIE with multiple subscripts.
7240         (gen_array_type_die): Factorize comments about the MIPS_DEBUG_INFO
7241         issues, centralize the nested array types collapsing control and
7242         disable the transformation for Ada.
7243
7244 2008-07-18  Uros Bizjak  <ubizjak@gmail.com>
7245
7246         PR target/36786
7247         * config/i386/i386.md (x86_64_shift_adj_1): Rename from
7248         x86_64_shift_adj.
7249         (x86_64_shift_adj_2): New expander.
7250         (x86_64_shift_adj_3): Ditto.
7251         * config/i386/i386.c (ix86_split_ashr): Use gen_x86_64_shift_adj_3
7252         to split TImode operands.
7253         (ix86_split_ashl): Use gen_x86_64_shift_adj_2 to split TImode operands.
7254         (ix86_split_lshr): Ditto.
7255
7256 2008-07-18  Kris Van Hees  <kris.van.hees@oracle.com>
7257
7258         * c-common.c (c_stddef_cpp_builtins): Define __CHAR16_TYPE__
7259         and __CHAR32_TYPE__.
7260         * c-typeck.c (digest_init): Support char16_t and char32_t.
7261         (set_nonincremental_init_from_string): Idem.
7262
7263 2008-07-18  H.J. Lu  <hongjiu.lu@intel.com>
7264
7265         PR middle-end/36859
7266         * builtins.c (std_gimplify_va_arg_expr): Limit alignment to
7267         PREFERRED_STACK_BOUNDARY.
7268         * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
7269
7270 2008-07-18  H.J. Lu  <hongjiu.lu@intel.com>
7271
7272         PR middle-end/36858
7273         * function.c (locate_and_pad_parm): Cap boundary earlier.
7274
7275 2008-07-17  Julian Brown  <julian@codesourcery.com>
7276
7277         * config/arm/arm.c (arm_cxx_determine_class_data_visibility): Make
7278         no-op for targets which don't use DLLs.
7279
7280 2008-07-17  Martin Jambor  <mjambor@suse.cz>
7281
7282         * ipa-cp.c (ipcp_print_all_lattices): New variable info, check
7283         that nodes are relevant by examining the node->analyzed flag.
7284         (ipcp_init_stage): Check which nodes are relevant, assert that the
7285         relevant ones are also required.
7286         (ipcp_propagate_stage): Check on the side arrays are properly
7287         allocated.
7288         (ipcp_print_all_jump_functions): Make sure not to touch any node
7289         that is not analyzed or an edge that does not have a corresponding
7290         entry in the on-the-side vectors.
7291         (ipcp_function_scale_print): Likewise.
7292         (ipcp_update_callgraph): Check that the node is relevant.
7293         (ipcp_insert_stage): Check that the node is relevant.  Check there is
7294         an info for every node and edge.
7295         * ipa-prop.c (ipa_init_func_list): Check the nodes are relevant.
7296         (ipa_print_all_tree_maps): Likewise and a new variable info.
7297         (ipa_print_all_params_modified): Likewise.
7298         * ipa-prop.h (ipa_edge_args_info_available_for_edge_p): New function.
7299
7300 2008-07-17  Roman Zippel <zippel@linux-m68k.org>
7301
7302         PR target/25343
7303         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for __mc68000__.
7304
7305 2008-07-17  Paolo Bonzini  <bonzini@gnu.org>
7306
7307         PR rtl-optimization/36753
7308         * fwprop.c (use_killed_between): Don't shortcut
7309         single-definition global registers.
7310
7311 2008-07-16  Jan Hubicka  <jh@suse.cz>
7312
7313         * cgraph.h (varpool_empty_needed_queue): Declare.
7314         * cgraphunit.c (output_in_order): Mark all variables as needed;
7315         empty the queue.
7316         * varpool.c (varpool_assemble_node): Update debug queue.
7317         (varpool_assemble_pending_decls): Don't do it here.
7318         (varpool_empty_needed_queue):  New function.
7319
7320 2008-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7321
7322         * recog.c (peephole2_optimize): Fix formatting.
7323
7324 2008-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7325
7326         * c-pch.c (get_ident): Avoid C++ keywords.
7327         * combine-stack-adj.c (single_set_for_csa): Likewise.
7328         * final.c (asm_insn_count, final_scan_insn, alter_subreg,
7329         output_asm_insn): Likewise.
7330         * reload.c (push_secondary_reload, find_reusable_reload,
7331         push_reload, combine_reloads, find_reloads,
7332         debug_reload_to_stream): Likewise.
7333         * reload.h (struct reload): Likewise.
7334         * reload1.c (reload_reg_class_lower, find_reg, find_reload_regs,
7335         allocate_reload_reg, choose_reload_regs, emit_input_reload_insns,
7336         emit_output_reload_insns): Likewise.
7337         * targhooks.c (default_secondary_reload): Likewise.
7338         * varasm.c (section_entry_eq, object_block_entry_eq): Likewise.
7339
7340 2008-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7341
7342         * recog.c (validate_change_1, validate_change,
7343         validate_unshare_change, validate_replace_rtx_1, struct
7344         funny_match, constrain_operands, peephole2_optimize): Avoid C++
7345         keywords.
7346         * reload.c (push_secondary_reload, secondary_reload_class,
7347         scratch_reload_class, find_valid_class, find_reusable_reload,
7348         push_reload, find_dummy_reload, find_reloads_address_1,
7349         find_reloads_address_part, find_equiv_reg): Likewise.
7350         * reload1.c (spill_failure, eliminate_regs_1, allocate_reload_reg,
7351         choose_reload_regs): Likewise.
7352         * rtlanal.c (replace_rtx, nonzero_bits1, num_sign_bit_copies1):
7353         Likewise.
7354         * rtlhooks.c (gen_lowpart_if_possible): Likewise.
7355         * sched-ebb.c (add_deps_for_risky_insns): Likewise.
7356         * sched-rgn.c (concat_INSN_LIST): Likewise.
7357         * stor-layout.c (mode_for_size, mode_for_size_tree,
7358         smallest_mode_for_size): Likewise.
7359
7360 2008-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7361
7362         * cfg.c (dump_reg_info): Avoid C++ keywords.
7363         * dwarf2asm.c (dw2_force_const_mem,
7364         dw2_asm_output_encoded_addr_rtx): Likewise.
7365         * except.c (gen_eh_region, add_action_record, output_ttype): Likewise.
7366         * expmed.c (expand_shift): Likewise.
7367         * global.c (find_reg): Likewise.
7368         * graph.c (draw_edge): Likewise.
7369         * local-alloc.c (reg_meets_class_p, find_free_reg): Likewise.
7370         * optabs.c (expand_binop, expand_twoval_unop, expand_twoval_binop,
7371         widen_clz, widen_bswap, expand_parity, expand_unop,
7372         emit_cmp_and_jump_insn_1): Likewise.
7373         * postreload.c (reload_cse_simplify_operands): Likewise.
7374         * ra.h (add_neighbor): Likewise.
7375         * reg-stack.c (remove_regno_note, change_stack): Likewise.
7376         * regclass.c (memory_move_secondary_cost, dump_regclass, regclass,
7377         record_reg_classes, copy_cost, record_address_regs,
7378         invalid_mode_change_p): Likewise.
7379         * regrename.c (regrename_optimize, scan_rtx_reg,
7380         dump_def_use_chain, find_oldest_value_reg,
7381         replace_oldest_value_reg, copyprop_hardreg_forward_1): Likewise.
7382
7383 2008-07-16  David Edelsohn  <edelsohn@gnu.org>
7384
7385         * config/rs6000/rs6000.c (processor_target_table): Remove duplicate
7386         MASK_POWERPC64 for power4 in previous commit.
7387
7388 2008-07-16  Olivier Hainque  <hainque@adacore.com>
7389
7390         * collect2.c (scan_prog_file, COFF version): Use CONST_CAST
7391         instead of bare conversion to cast const-ness away.
7392
7393 2008-07-16  Anatoly Sokolov  <aesok@post.ru>
7394
7395         * config/xtensa/xtensa.h (FUNCTION_OUTGOING_VALUE,
7396         XTENSA_FUNCTION_VALUE, XTENSA_FUNCTION_VALUE): Remove.
7397         * config/xtensa/xtensa.c (xtensa_function_value): New function.
7398         (TARGET_FUNCTION_VALUE): Define.
7399
7400 2008-07-16  David Edelsohn  <edelsohn@gnu.org>
7401
7402         * config/rs6000/rs6000.c (processor_target_table): Add
7403         MASK_PPC_GPOPT for power4, power5, power5+, power6, and power6x.
7404
7405 2008-07-16  Joseph Myers  <joseph@codesourcery.com>
7406
7407         PR target/36827
7408         * config/m32c/m32c.c (BIG_FB_ADJ): Move definition earlier.
7409         (m32c_legitimate_address_p): Handle "++rii" addresses created by
7410         m32c_legitimize_reload_address.
7411
7412 2007-07-16  Rafael Ávila de Espíndola  <espindola@google.com>
7413
7414         * c-decl.c (merge_decls): Keep DECL_SOURCE_LOCATION and
7415         DECL_IN_SYSTEM_HEADER in sync.
7416
7417 2008-07-15  Daniel Berlin  <dberlin@dberlin.org>
7418
7419         * tree-ssa-sccvn.c (expressions_equal_p): Check type equality.
7420         * tree-ssa-pre.c (pre_expr_eq): Ditto
7421         (get_constant_for_value_id): Take a type as an argument.
7422         (fully_constant_expression): Pass in type.
7423         (find_or_generate_expression): Short circuit constant case.
7424         (create_expression_by_pieces): Remove special casing of
7425         pointer_plus.
7426         (do_regular_insertion): Short circuit constant case.
7427         (do_partial_partial_insertion): Ditto.
7428
7429 2008-07-15  Kaz Kojima  <kkojima@gcc.gnu.org>
7430
7431         PR target/36782
7432         * config/sh/sh.md (symGOT_load): Don't add REG_EQUAL note.
7433
7434 2008-07-15  Bob Wilson  <bob.wilson@acm.org>
7435
7436         * config/xtensa/libgcc-xtensa.ver: New file.
7437         * config/xtensa/t-linux (SHLIB_MAPFILES): Append libgcc-xtensa.ver.
7438
7439 2008-07-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7440
7441         * df-problems.c (df_set_note): Avoid C++ keywords.
7442         * df-scan.c (df_ref_change_reg_with_loc_1): Likewise.
7443         * dse.c (record_store, remove_useless_values): Likewise.
7444         * emit-rtl.c (gen_reg_rtx, update_reg_offset, gen_rtx_REG_offset,
7445         gen_reg_rtx_offset, operand_subword, change_address_1,
7446         change_address, adjust_address_1, offset_address,
7447         widen_memory_access, emit_copy_of_insn_after): Likewise.
7448         * explow.c (round_push, allocate_dynamic_stack_space): Likewise.
7449         * fwprop.c (should_replace_address, propagate_rtx_1,
7450         propagate_rtx, try_fwprop_subst, forward_propagate_and_simplify):
7451         Likewise.
7452         * gcse.c (cprop_jump, find_implicit_sets, bypass_block,
7453         gcse_emit_move_after, update_ld_motion_stores): Likewise.
7454         * lcm.c (compute_insert_delete, pre_edge_lcm,
7455         compute_rev_insert_delete, pre_edge_rev_lcm): Likewise.
7456         * lower-subreg.c (resolve_reg_notes): Likewise.
7457         * mode-switching.c (optimize_mode_switching): Likewise.
7458
7459 2008-07-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7460
7461         * bt-load.c (add_btr_def, migrate_btr_def,
7462         branch_target_load_optimize): Avoid C++ keywords.
7463         * caller-save.c (insert_restore, insert_save, insert_one_insn):
7464         Likewise.
7465         * combine.c (subst, simplify_set, make_extraction,
7466         make_compound_operation, known_cond, simplify_shift_const_1): Likewise.
7467         * cse.c (make_regs_eqv, merge_equiv_classes, validate_canon_reg,
7468         fold_rtx, equiv_constant, cse_insn, cse_process_notes_1): Likewise.
7469
7470 2008-07-15  Richard Guenther  <rguenther@suse.de>
7471
7472         PR middle-end/36369
7473         * c-common.c (strict_aliasing_warning): Do not warn for
7474         TYPE_REF_CAN_ALIAS_ALL pointers.
7475         (c_common_get_alias_set): may_alias types are not special.
7476         * tree.c (build_pointer_type_for_mode): Look up the may_alias
7477         attribute and set can_ref_all accordingly.
7478         (build_reference_type_for_mode): Likewise.
7479         * doc/extend.texi (may_alias): Clarify.
7480
7481 2008-07-15  Kaz Kojima  <kkojima@gcc.gnu.org>
7482
7483         PR target/36780
7484         * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Allow
7485         (plus (plus (reg) (const_int)) (const_int)) when reload_in_progress.
7486
7487 2008-07-15  Andrew Pinski  <andrew_pinski@playstation.sony.com>
7488
7489         PR target/31568
7490         * config/rs6000/rs6000.c (print_operand <case 'y'>): Don't use
7491         gcc_assert, instead call output_operand_lossage.
7492
7493 2008-07-15  Kai Tietz  <kai.tietz@onevision.com>
7494
7495         * builtins.c (std_canonical_va_list): Treat structure based
7496         va_list types.
7497
7498 2008-07-15  Ben Elliston  <bje@au.ibm.com>
7499
7500         * emit-rtl.c (set_mem_attributes_minus_bitpos): Improve comment.
7501
7502 2007-07-14  Rafael Ávila de Espíndola  <espindola@google.com>
7503
7504         * c-decl.c (diagnose_mismatched_decls): Don't warn if TREE_NO_WARNING
7505         is set.
7506
7507 2008-07-14  Jan Hubicka  <jh@suse.cz>
7508
7509         * i386.md (sse5 cmov pattern): Update call of ix86_sse5_valid_op_p
7510         * sse.md (sse5 patterns): Update call of ix86_sse5_valid_op_p;
7511         fix predicates and constraints.
7512         * i386.c (ix86_sse5_valid_op_p): Add commutative parameter.
7513         * i386-protos.h (ix86_sse5_valid_op_p): Update declaration.
7514
7515 2008-07-14  Doug Kwan  <dougkwan@google.com>
7516
7517         * config.gcc (arm*-*-eabi*): Include arm/eabi.h and use
7518         additional option file arm/eabi.opt.
7519         * config/arm/eabi.h (File): New configuration file for EABI targets.
7520         * config/arm/elf.h (SUBTARGET_EXTRA_SPECS): Add
7521         SUBSUBTARGET_EXTRA_SPECS.
7522         (SUBSUBTARGET_EXTRA_SPECS): Provide empty default.
7523         * config/arm/unknown-elf.h (UNKNOWN_ELF_STARTFILE_SPEC): Renamed
7524         from STARTFILE_SPEC so that it can be referenced in an override.
7525         (STARTFILE_SPEC): Use UNKNOWN_ELF_STARTFILE_SPEC.
7526         (UNKNOWN_ELF_ENDFILE_SPEC): Renamed from ENDFILE_SPEC so that it
7527         can be referenced in an override.
7528         (ENDFILE_SPEC): Use UNKNOWN_ELF_ENDFILE_SPEC.
7529         * config/arm/bpabi.h (BPABI_LINK_SPEC): Renamed from LINK_SPEC
7530         so that it can be referenced in an override.
7531         (LINK_SPEC): Use BPABI_LINK_SPEC.
7532         * config/arm/eabi.opt (File): New.
7533
7534 2008-07-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7535
7536         * Makefile.in (TARGET_DEF_H): Add targhooks.h.
7537         (FIXED_VALUE_H): New variable.
7538         (RTL_BASE_H): Use $(INPUT_H) and $(FIXED_VALUE_H) instead of
7539         input.h, fixed-value.h.
7540         (TREE_H): Use $(INPUT_H), add $(SYMTAB_H).
7541         (BASIC_BLOCK_H): Use $(BITMAP_H).
7542         (FUNCTION_H): Add varray.h.
7543         (IPA_REFERENCE_H): Use $(BITMAP_H).
7544         (CGRAPH_H): Add $(BASIC_BLOCK_H).
7545         (DF_H): Use $(BITMAP_H).
7546         (GGC_H): Add statistics.h.
7547         (INSN_ADDR_H): New.
7548         (INSN_ATTR_H): Use it.
7549         (SYSTEM_H): Add safe-ctype.h, filenames.h.
7550         (INPUT_H): New.
7551         (SYMTAB_H): Add $(OBSTACK_H).
7552         (CPP_INTERNAL_H): New.
7553         (TREE_DUMP_H): Add tree-pass.h.
7554         (TREE_FLOW_H): Use $(BITMAP_H)
7555         (PRETTY_PRINT_H): Use $(INPUT_H).
7556         (EBITMAP_H): Rename from typo-ed EBIMAP_H.
7557         (GSTAB_H): New.
7558         (BITMAP_H): New.
7559         (many object files): Fix lots of header dependencies throughout.
7560
7561 2008-07-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7562
7563         * Makefile.in (write_entries_to_file, write_entries_to_file_split):
7564         New macros.
7565         (s-gtyp-input): Use them to write tmp-gi.list.
7566         (echo_to_gi.list): Remove.
7567
7568 2008-07-14  Richard Guenther  <rguenther@suse.de>
7569
7570         * tree-ssa-sccvn.c (pre_info): Remove.
7571         (switch_to_PRE_table): Likewise.
7572         (free_scc_vn): Do not clear SSA_NAME_VALUE.  Do not free pre_info.
7573         (set_hashtable_value_ids): Do not create value-ids for the
7574         optimistic tables.
7575         (run_scc_vn): Remove double test.  Remove bogus special-case
7576         in value-number printing.
7577         * tree-ssa-sccvn.h (switch_to_PRE_table): Remove.
7578         * tree-ssa-ccp.c (get_symbol_constant_value): Do not look at
7579         SSA_NAME_VALUE.
7580         * tree-flow-inline.h (get_value_handle): Remove.
7581         * tree-flow.h (get_value_handle): Remove.
7582
7583 2008-07-14  Martin Jambor  <mjambor@suse.cz>
7584
7585         * tree-switch-conversion.c (gen_inbound_check): Make sure the type
7586         in which we generate arithmetics is not a subrange.
7587
7588 2008-07-14  Martin Jambor  <mjambor@suse.cz>
7589
7590         * Makefile.in (IPA_PROP_H): Added ipa-prop.h to IPA_PROP_H variable.
7591
7592 2008-07-14  Richard Guenther  <rguenther@suse.de>
7593
7594         * tree-ssa-pre.c (insert_into_preds_of_block): Do not call convert.
7595
7596 2008-07-14  Andreas Krebbel  <krebbel1@de.ibm.com>
7597
7598         PR target/36745
7599         * config/s390/s390.c: (s390_secondary_reload): Add a secondary
7600         reload for symbol refs moved to r0 with -fPIC.
7601         (legitimize_pic_address): Use the target register as temporary
7602         reg if possible.
7603         (emit_symbolic_move): Adjust comment.
7604         * config/s390/s390.md (reloadsi_PIC_addr, reloaddi_PIC_addr):
7605         New expanders.
7606
7607 2008-07-14  Ben Elliston  <bje@au.ibm.com>
7608
7609         * c-common.h (C_CPP_HASHNODE): New macro.
7610         * coretypes.h (struct cpp_token): Forward declare.
7611         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
7612         the context-sensitive keyword method.
7613         * config/rs6000/rs6000-c.c (__vector_keyword, vector_keyword,
7614         __pixel_keyword, pixel_keyword, __bool_keyword, bool_keyword,
7615         expand_bool_pixel): New.
7616         (altivec_categorize_keyword): New function.
7617         (init_vector_keywords): New function.
7618         (rs6000_macro_to_expand): Likewise.
7619         (rs6000_cpu_cpp_builtins): Enable context-sensitive macros if not
7620         compiling an ISO C dialect.
7621
7622 2008-07-13  Daniel Berlin  <dberlin@dberlin.org>
7623
7624         * tree-ssa-pre.c (fully_constant_expression): Add fold_convert calls.
7625         (create_expression_by_pieces): Fix typo.
7626         (do_regular_insertion): Use debug counter here too.
7627
7628 2008-07-14  Hans-Peter Nilsson  <hp@axis.com>
7629
7630         PR target/35492.
7631         * config/cris/cris.h (CRIS_CONST_OK_FOR_LETTER_P): Renamed from
7632         CONST_OK_FOR_LETTER_P.  All port-local users changed.
7633         (CONST_OK_FOR_CONSTRAINT_P): Define; implement Kc as old K,
7634         implement Kp matching power-of-two.
7635         (CONSTRAINT_LEN): Define to match.
7636         * config/cris/cris.md: Replace all use of constraint K with Kc.
7637         ("*btst*): Use Kp for operand 0 of last alternative.
7638
7639 2008-07-13  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7640
7641         PR testsuite/36440
7642         * tree-call-cdce.c (check_target_format): Accept MIPS single, double
7643         and quad formats.
7644
7645 2008-07-13  Jan Hubicka  <jh@suse.cz>
7646
7647         * tree.c (decl_assembler_name_equal): Expect assembler name of decl
7648         to be mangled too.
7649
7650 2008-07-13  Richard Guenther  <rguenther@suse.de>
7651
7652         PR middle-end/36811
7653         * langhooks.c (lhd_print_error_function): Deal with recursive
7654         BLOCK trees.
7655
7656 2008-07-12  Jan Hubicka  <jh@suse.cz>
7657
7658         * cgraph.c (assembler_name_hash): New static var.
7659         (hash_node_by_assembler_name, eq_assembler_name): New.
7660         (cgraph_node_for_asm): Use hashtable.
7661         (cgraph_remove_node): Maintain hashtable.
7662         (change_decl_assembler_name): Sanity check that names are not changing
7663         after aliasing was processed.
7664         * cgraph.h (varpoon_node): Add next GGC marker.
7665         * tree.c (decl_assembler_name_equal): Constify.
7666         (decl_assembler_name_hash): New.
7667         * tree.h (decl_assembler_name_equal): Constify.
7668         (decl_assembler_name_hash): Update.
7669
7670 2008-07-12  David Daney  <ddaney@avtrex.com>
7671
7672         * config/mips/driver-native.c (host_detect_local_cpu): Handle
7673         sb1 and r5000 cpus.
7674
7675 2008-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
7676
7677         * doc/md.texi: Document the MIPS "v" constraint.
7678         * config/mips/mips.h (reg_class): Revert last change.
7679         (REG_CLASS_NAMES): Likewise.
7680         (REG_CLASS_CONTENTS): Likewise.
7681         * config/mips/mips.c (mips_regno_to_class): Likewise.
7682         * config/mips/constraints.md (v): Likewise, but add documentation.
7683         Add a comment to say that this constraint should not be used in
7684         gcc code.
7685
7686 2008-07-11  DJ Delorie  <dj@redhat.com>
7687
7688         * config/h8300/h8300.md (length): Fix branch offset limit.
7689
7690 2008-07-11  Anatoly Sokolov  <aesok@post.ru>
7691
7692         * config/avr/avr-protos.h (avr_peep2_scratch_safe): Remove prototype.
7693         * config/avr/avr.c (avr_peep2_scratch_safe): Remove.
7694         (avr_hard_regno_scratch_ok): New function.
7695         (TARGET_HARD_REGNO_SCRATCH_OK): Define.
7696         * config/avr/avr.md (all peepholes that request a scratch register):
7697         Remove avr_peep2_scratch_safe use.
7698
7699 2008-07-11  Tom Tromey  <tromey@redhat.com>
7700             Ian Lance Taylor  <iant@google.com>
7701
7702         * c-common.h (enum rid): Add RID_CXX_COMPAT_WARN.
7703         (struct c_common_resword): Define.
7704         (D_CONLY, D_CXXONLY, D_C99, D_CXX0X, D_EXT, D_EXT89): Define.
7705         (D_ASM, D_OBJC, D_CXX_OBJC, D_CXXWARN): Define.
7706         (c_common_reswords, num_c_common_reswords): Declare.
7707         * c-common.c (c_common_reswords): New global const array.
7708         (num_c_common_reswords): New const int.
7709         * c-parser.c (struct resword, reswords): Don't define.
7710         (D_C89, D_EXT, D_EXT89, D_OBJC): Don't define.
7711         (c_parse_init): Clarify mask code.  Use c_common_reswords rather
7712         than reswords.  If warning about C++ keywords, give them a special
7713         RID code.
7714         (c_lex_one_token): Warn about C++ keywords.  Call
7715         objc_is_reserved_word rather than OBJC_IS_AT_KEYWORD.
7716         (c_parser_external_declaration): Look for RID_xxx rather than
7717         RID_AT_xxx, for ObjC++ keywords which are also C++ keywords.
7718         (c_parser_statement_after_labels): Likewise.
7719         (c_parser_objc_class_instance_variables): Likewise.
7720         (c_parser_objc_class_declaration): Likewise.
7721         (c_parser_objc_try_catch_statement): Likewise.
7722         * c-decl.c (c_print_identifier): Ignore RID_CXX_COMPAT_WARN.
7723         (declspecs_add_type): Likewise.
7724
7725 2008-07-11  Angelo Graziosi  <angelo.graziosi@alice.it>
7726
7727         * ggc-page.c (alloc_page):
7728         Substituting xmalloc, xcalloc with
7729         XNEWVEC and XCNEWVAR macros which add the
7730         needed casts.
7731
7732 2008-07-11  Richard Guenther  <rguenther@suse.de>
7733
7734         PR tree-optimization/36765
7735         * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Add
7736         aliases from HEAP vars to SMTs.
7737
7738 2008-07-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7739
7740         * Makefile.in (LOOSE_WARN, STRICT_WARN): Update comments.
7741         * configure.ac (loose_warn): Move -Wc++-compat from here...
7742         (strict_warn): ...to here.
7743         * configure: Regenerate.
7744
7745 2008-07-10  Joseph Myers  <joseph@codesourcery.com>
7746
7747         * config.gcc (arm-*-coff*, armel-*-coff*, h8300-*-*,
7748         i[34567]86-*-aout*, i[34567]86-*-coff*, m68k-*-aout*,
7749         m68k-*-coff*, sh-*-*, mips-sgi-irix[56]*, pdp11-*-bsd,
7750         rs6000-ibm-aix4.[12]*, powerpc-ibm-aix4.[12]*): Deprecate targets,
7751         excluding more specific h8300-*-* and sh-*-* targets.
7752
7753 2008-07-10  Daniel Berlin  <dberlin@dberlin.org>
7754
7755         * tree-ssa-pre.c (create_expression_by_pieces): Add fold_convert calls.
7756         (eliminate): Ditto.
7757         (execute_pre): Call loop_optimizer_finalize in early exit.
7758
7759 2008-07-10  Jakub Jelinek  <jakub@redhat.com>
7760
7761         PR middle-end/36790
7762         * omp-low.c (lower_omp_2): If task_shared_vars, test all DECL_P
7763         uids in the bitmap, not just VAR_DECL uids.
7764
7765         PR rtl-optimization/36419
7766         * combine-stack-adj.c (adjust_frame_related_expr): New function.
7767         (combine_stack_adjustments_for_block): Call it if needed.  Delete
7768         correct insn.
7769         * dwarf2out.c (dwarf2out_frame_debug_expr): Adjust
7770         DW_CFA_GNU_args_size if CSA pass merged some adjustments into
7771         prologue sp adjustment.
7772
7773 2008-07-10  Peter Maydell  <pmaydell@chiark.greenend.org.uk>
7774
7775         PR other/28322
7776         * opts.c (print_ignored_options): Report postponed diagnostics for
7777         unknown -Wno-* options as warnings, not errors.
7778         (postpone_unknown_option_error): Renamed to...
7779         (postpone_unknown_option_warning): ... this.
7780
7781 2008-07-09  Doug Kwan  <dougkwan@google.com>
7782
7783         Revert:
7784         2008-07-08  Doug Kwan  <dougkwan@google.com>
7785
7786         * config/arm/arm.opt (mandroid): New option.
7787         * config/arm/bpabi.h (ANDROID_LINK_SPEC): New macro.
7788         (LINK_SPEC): Enable Android specific behaviour when -mandroid is used.
7789         (CC1_SPEC): Same.
7790         (CC1PLUS_SPEC): Same.
7791         (LIB_SPEC): Same.
7792         (STARTFILE_SPEC): Same.
7793         (ENDFILE_SPEC): Same.
7794         (TARGET_BPABI_CPP_BUILTINS): Define __ANDROID__ when -mandroid is
7795         used.
7796
7797 2008-07-09  Richard Sandiford  <rdsandiford@googlemail.com>
7798
7799         PR target/35802
7800         * config/mips/mips.h (reg_class): Remove V1_REG.
7801         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update accordingly.
7802         * config/mips/mips.c (mips_regno_to_class): Map $3 to M16_NA_REGS
7803         instead of V1_REGS.
7804         (mips_get_tp): New function.
7805         (mips_legitimize_tls_address): Use it.
7806         * config/mips/constraints.md (v): Delete.
7807         * config/mips/mips.md (TLS_GET_TP_REGNUM): New constant.
7808         (tls_get_tp_<mode>): Allow any GPR destination and clobber $3.
7809         After reload, split into a move and ...
7810         (*tls_get_tp_<mode>_split): ...this new instruction.
7811
7812 2008-07-09  David Daney  <ddaney@avtrex.com>
7813
7814         * config/mips/driver-native.c: Include coretypes.h and tm.h.
7815
7816 2008-07-09  Jakub Jelinek  <jakub@redhat.com>
7817
7818         * gimplify.c (struct gimplify_ctx): Move to tree-gimple.h.
7819         (push_gimplify_context): Don't allocate temp_htab nor c itself here.
7820         Add c argument.
7821         (pop_gimplify_context): Check c->temp_htab instead of optimize whether
7822         htab_delete should be called.  Don't free c.
7823         (lookup_tmp_var): Create temp_htab lazily.
7824         (gimplify_scan_omp_clauses, gimplify_omp_parallel, gimplify_omp_task,
7825         gimplify_body, force_gimple_operand): Adjust push_gimplify_context
7826         callers.
7827         * omp-low.c (lower_omp_sections, lower_omp_single, lower_omp_master,
7828         lower_omp_ordered, lower_omp_critical, lower_omp_for,
7829         create_task_copyfn, lower_omp_taskreg, execute_lower_omp):
7830         * tree-ssa-ccp.c (convert_to_gimple_builtin): Likewise.
7831         * tree-sra.c (generate_element_init): Likewise.
7832         * tree-mudflap.c (execute_mudflap_function_ops,
7833         execute_mudflap_function_decls): Likewise.
7834         * tree-inline.c (setup_one_parameter, optimize_inline_calls): Likewise.
7835         * tree-gimple.h (struct gimplify_ctx): New type.
7836         (push_gimplify_context): Adjust prototype.
7837
7838 2008-07-09  Daniel Berlin  <dberlin@dberlin.org>
7839
7840         * tree-ssa-pre.c (phi_translate_1): Update placement of
7841         add_to_value calls.
7842
7843 2008-07-09  Anatoly Sokolov  <aesok@post.ru>
7844
7845         * target.h (struct gcc_target): Add hard_regno_scratch_ok field.
7846         * target-def.h (TARGET_HARD_REGNO_SCRATCH_OK): New.
7847         (TARGET_INITIALIZER): Use TARGET_HARD_REGNO_SCRATCH_OK.
7848         * targhooks.c (default_hard_regno_scratch_ok): New function.
7849         * targhooks.h (default_hard_regno_scratch_ok): Declare function.
7850         * doc/tm.texi: Document TARGET_HARD_REGNO_SCRATCH_OK hook.
7851         * recog.c:  Include "target.h".
7852         (peep2_find_free_register): Add check for global regs. Add target
7853         specific check.
7854         * Makefile.in (recog.o): Depend on target.h.
7855
7856 2008-07-09  Kaz Kojima  <kkojima@gcc.gnu.org>
7857
7858         * config/sh/sh.c (sh_canonical_va_list_type): New.
7859         (TARGET_CANONICAL_VA_LIST_TYPE): Define.
7860
7861 2008-07-09  Raksit Ashok <raksit@google.com>
7862
7863         * doc/invoke.texi (Option Summary): Mention new option
7864         -Wdisallowed-function-list=...
7865         (Warning Options): Document -Wdisallowed-function-list=...
7866         * common.opt (Wdisallowed-function-list=): New flag.
7867         * flags.h (warn_disallowed_functions): External definition of new
7868         boolean warning flag.
7869         (warn_if_disallowed_function_p): Declare new function.
7870         * opts.c (warning_disallowed_functions): New static variable.
7871         (warn_disallowed_functions): New boolean warning flag.
7872         (warn_if_disallowed_function_p): New function.
7873         (add_comma_separated_to_vector): Rename
7874         add_instrument_functions_exclude_list to this.
7875         (common_handle_option): Handle new option. Rename calls to
7876         add_instrument_functions_exclude_list into calls to
7877         add_comma_separated_to_vector.
7878         * c-parser.c (c_parser_postfix_expression_after_primary): New warning
7879         based on flag warn_disallowed_functions.
7880
7881 2008-07-09  Christian Bruel  <christian.bruel@st.com>
7882
7883         * final.c (get_attr_length_1): Call get_attr_length_1 with fallback_fn
7884          instead of get_attr_length.
7885
7886 2008-07-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7887
7888         * genattrtab.c (insert_right_side, evaluate_eq_attr): Avoid C++
7889         keywords.
7890         * genemit.c (gen_insn): Likewise.
7891         * gengtype.c (note_def_vec): Likewise.
7892         * gengtype.h (note_def_vec): Likewise.
7893         * genoutput.c (struct data, output_insn_data, process_template,
7894         gen_expand, gen_split, note_constraint): Likewise.
7895         * genrecog.c (new_decision, add_to_sequence, factor_tests,
7896         make_insn_sequence): Likewise.
7897         * gensupport.c (record_insn_name): Likewise.
7898
7899 2008-07-08  Doug Kwan  <dougkwan@google.com>
7900
7901         * config/arm/arm.opt (mandroid): New option.
7902         * config/arm/bpabi.h (ANDROID_LINK_SPEC): New macro.
7903         (LINK_SPEC): Enable Android specific behaviour when -mandroid is used.
7904         (CC1_SPEC): Same.
7905         (CC1PLUS_SPEC): Same.
7906         (LIB_SPEC): Same.
7907         (STARTFILE_SPEC): Same.
7908         (ENDFILE_SPEC): Same.
7909         (TARGET_BPABI_CPP_BUILTINS): Define __ANDROID__ when -mandroid is
7910         used.
7911
7912 2008-07-08  Raksit Ashok  <raksit@google.com>
7913
7914         * expr.c (emit_block_move_via_movmem): Fix expected_align parameter.
7915         (set_storage_via_setmem): Fix expected_align parameter.
7916         * doc/invoke.texi (i386 and x86-64 Options): Add a couple of options
7917         missing from the list.
7918         * doc/md.texi (movmem): Explicitly state that expected alignment is
7919         to be expressed in bytes.
7920         (setmem): Explicitly state that expected alignment is to be expressed
7921         in bytes.
7922
7923 2008-07-08  Joseph Myers  <joseph@codesourcery.com>
7924
7925         * reload.c (find_reloads_subreg_address): Do not require validity
7926         of address in original mode before reloading address.
7927
7928 2008-07-07  Tianwei Sheng  <tianweis@google.com>
7929
7930         * df-core.c (df_remove_problem): Adjust the access to avoid out of
7931         bounds array access.
7932
7933 2008-07-08  Jakub Jelinek  <jakub@redhat.com>
7934
7935         * tree-sra.c (sra_build_assignment): Handle CONVERT_EXPR_P dst.
7936
7937 2008-07-05  Daniel Berlin  <dberlin@dberlin.org>
7938
7939         Fix PR tree-optimization/23455
7940         Fix PR tree-optimization/35286
7941         Fix PR tree-optimization/35287
7942         * Makefile.in (OBJS-common): Remove tree-vn.o.
7943         (tree-vn.o): Remove.
7944         * dbgcnt.def: Add treepre_insert debug counter.
7945         * gcc/tree-flow.h (add_to_value): Updated for other changes.
7946         (debug_value_expressions): Ditto.
7947         (print_value_expressions): Ditto.
7948         * tree-pretty-print.c (dump_generic_node): Updated for
7949         VALUE_HANDLE removal.
7950         * tree-ssa-dom.c (record_equality): Ditto.
7951         (cprop_operand): Ditto.
7952         (lookup_avail_expr): Ditto.
7953         * tree-ssa-threadedge.c
7954         (record_temporary_equivalences_from_stmts_at_dest): Ditto.
7955         (simplify_control_stmt_condition): Ditto.
7956         * tree.c (tree_code_size): Ditto.
7957         (tree_node_structure): Ditto.
7958         (iterative_hash_expr): Ditto.
7959         * tree.def: Ditto.
7960         * tree.h (VALUE_HANDLE_ID): Ditto.
7961         (VALUE_HANDLE_EXPR_SET): Ditto.
7962         (struct tree_value_handle): Ditto.
7963         (union tree_node): Ditto.
7964         * treestruct.def: Ditto.
7965         * tree-vn.c: Removed.
7966         * tree-ssa-pre.c: Rewritten entirely.
7967         * tree-ssa-sccvn.c (constant_to_value_id): New hashtable.
7968         (constant_value_ids): Ditto.
7969         (vn_nary_op_t): Moved to header.
7970         (vn_phi_t): Ditto.
7971         (vn_reference_op_t): Ditto
7972         (vn_reference_t): Ditto.
7973         (next_value_id): New variable.
7974         (VN_INFO): Add an assert.
7975         (vn_constant_eq): New function.
7976         (vn_constant_hash): Ditto.
7977         (get_or_alloc_constant_value_id): Ditto.
7978         (value_id_constant_p): Ditto.
7979         (vn_reference_compute_hash): De-staticify.
7980         (copy_reference_ops_from_ref): Don't use get_callee_fndecl.
7981         Disable some code with a FIXME.  Remove VALUE_HANDLE use.
7982         (valueize_refs): Update opcode if it changes from ssa name to constant.
7983         (vn_reference_lookup_1): Add new argument.
7984         (vn_reference_lookup):  Ditto.
7985         (vn_reference_lookup_pieces): New function.
7986         (vn_reference_insert): Add return type. Modify to deal with value ids.
7987         (vn_reference_insert_pieces):  New function.
7988         (vn_nary_op_compute_hash): De-staticify.
7989         (vn_nary_op_eq): Ditto.
7990         (vn_nary_op_lookup_pieces): New function.
7991         (vn_nary_op_lookup): Add new argument.
7992         (vn_nary_op_insert_pieces): New function.
7993         (vn_nary_op_insert): Add return type. Modify to deal with value ids.
7994         (vn_phi_insert): Ditto.
7995         (visit_unary_op): Update for callee changes.
7996         (visit_binary_op): Ditto.
7997         (visit_reference_op_load): Ditto.
7998         (visit_reference_op_store): Ditto.
7999         (init_scc_vn): Init next_value_id, constant_to_value_id and
8000         constant_value_ids.
8001         (free_scc_vn): Free them.
8002         (set_hashtable_value_ids): New function.
8003         (run_scc_vn): Use it.
8004         (get_max_value_id): New function.
8005         (get_next_value_id): Ditto.
8006         (expressions_equal_p): Moved from tree-vn.c
8007         (sort_vuses): Ditto.
8008         (sort_vuses_heap): Ditto.
8009         * tree-ssa-sccvn.h: Structures moved from tree-ssa-sccvn.c (noted
8010         above).
8011         * tree.c (iterative_hash_hashval_t): Made non-static
8012         * tree.h (iterative_hash_hashval_t): Declare it.
8013
8014 2008-07-08  Martin Jambor  <mjambor@suse.cz>
8015
8016         * ipa-cp.c (ipcp_init_cloned_node): Call ipa_check_create_node_params
8017         instead of ipa_create_node_params.
8018         (ipcp_driver): Allocate infos with ipa_check_create_node_params and
8019         ipa_check_create_edge_args, free them with
8020         free_all_ipa_structures_after_ipa_cp, call ipa_register_cgraph_hooks.
8021
8022         * ipa-prop.c: Include flags.h and tree-inline.h.
8023         (ipa_node_params_vector): New variable.
8024         (ipa_edge_args_vector): New variable.
8025         (edge_removal_hook_holder): New variable.
8026         (node_removal_hook_holder): New variable.
8027         (edge_duplication_hook_holder): New variable.
8028         (node_duplication_hook_holder): New variable.
8029         (ipa_detect_param_modifications): Check for presence of modified flags.
8030         (ipa_compute_jump_functions): Check for presence of jump functions.
8031         (ipa_free_edge_args_substructures): New function.
8032         (ipa_create_node_params): Removed.
8033         (ipa_free_all_edge_args): Changed to deallocate the on-the-side vector.
8034         (ipa_free_node_params_substructures): New function.
8035         (ipa_free_all_node_params): Changed to deallocate the on-the-side
8036         vector.
8037         (ipa_edge_removal_hook): New function.
8038         (ipa_node_removal_hook): New function.
8039         (duplicate_array): New function.
8040         (ipa_edge_duplication_hook): New function.
8041         (ipa_node_duplication_hook): New function.
8042         (ipa_register_cgraph_hooks): New function.
8043         (ipa_unregister_cgraph_hooks): New function.
8044         (free_all_ipa_structures_after_ipa_cp): New function.
8045
8046         * ipa-prop.h: Include vec.h.
8047         (ipa_node_params_t): New typedef with vector types for it.
8048         (ipa_edge_args_t):  New typedef with vector types for it.
8049         (IPA_NODE_REF): Changed to access an on-the-side vector.
8050         (IPA_EDGE_REF): Changed to access an on-the-side vector.
8051         (ipa_check_create_node_params): New function.
8052         (ipa_check_create_edge_args): New function.
8053
8054         * Makefile.in (IPA_PROP_H): New variable for ipa-prop.h.  Converted
8055         all users.
8056
8057 2008-07-07  Tom Tromey  <tromey@redhat.com>
8058
8059         * configure, config.in: Rebuilt.
8060         * configure.ac: Don't check for scandir or alphasort.
8061
8062 2008-07-07  Joseph Myers  <joseph@codesourcery.com>
8063
8064         * config/arm/arm.c (arm_init_neon_builtins): Register built-in
8065         types immediately after creating them.
8066
8067 2008-07-07  Joseph Myers  <joseph@codesourcery.com>
8068
8069         * config/arm/aout.h (DOLLARS_IN_IDENTIFIERS): Remove.
8070
8071 2008-07-07  Fernando Pereira <fernando@cs.ucla.edu>
8072
8073         * tree-ssa-structalias.c (compute_points_to_sets): Add call to
8074         dump_constraint_graph.
8075         (dump_constraint_edge): New function.
8076         (dump_constraint_graph): New function.
8077         (debug_constraint_graph): New function.
8078         (dump_constraint): Removed useless comparison.
8079         * tree-ssa-structalias.h (dump_constraint_edge): Declare.
8080         (dump_constraint_graph): Declare.
8081         (debug_constraint_graph): Declare.
8082         * tree-dump.c (struct dump_option_value_info): Declare TDF_GRAPH.
8083
8084 2008-07-07  Kai Tietz  <kai.tietz@onevision.com>
8085
8086         * config/i386/i386.c (is_va_list_char_pointer): New.
8087         (ix86_va_start): Replace compare with ms_va_list_type_node
8088         by is_va_list_char_pointer.
8089         (ix86_gimplify_va_arg): Likewise.
8090
8091 2008-07-07  Martin Jambor  <mjambor@suse.cz>
8092
8093         * cgraph.c (cgraph_edge_max_uid): New variable.
8094         (struct cgraph_edge_hook_list): New type.
8095         (struct cgraph_node_hook_list): New type.
8096         (struct cgraph_2edge_hook_list): New type.
8097         (struct cgraph_2node_hook_list): New type.
8098         (first_cgraph_edge_removal_hook): New variable.
8099         (first_cgraph_node_removal_hook): New variable.
8100         (first_cgraph_edge_duplicated_hook): New variable.
8101         (first_cgraph_node_duplicated_hook): New variable.
8102         (cgraph_add_edge_removal_hook): New function.
8103         (cgraph_remove_edge_removal_hook): New function.
8104         (cgraph_call_edge_removal_hooks):  New function.
8105         (cgraph_add_node_removal_hook):  New function.
8106         (cgraph_remove_node_removal_hook):  New function.
8107         (cgraph_call_node_removal_hooks):  New function.
8108         (cgraph_add_edge_duplication_hook):  New function.
8109         (cgraph_remove_edge_duplication_hook):  New function.
8110         (cgraph_call_edge_duplication_hooks):  New function.
8111         (cgraph_add_node_duplication_hook):  New function.
8112         (cgraph_remove_node_duplication_hook):  New function.
8113         (cgraph_call_node_duplication_hooks):  New function.
8114         (cgraph_create_edge): Assign to edge uid.
8115         (cgraph_remove_edge): Call edge removal hooks.
8116         (cgraph_node_remove_callees): Call edge removal hooks.
8117         (cgraph_node_remove_callers): Call edge removal hooks.
8118         (cgraph_remove_node): Call node removal hooks.
8119         (cgraph_clone_edge): Call edge duplication hooks.
8120         (cgraph_clone_node): Call node duplication hooks.
8121
8122         * cgraph.h (cgraph_edge): New field uid.
8123         (cgraph_edge_hook): New type.
8124         (cgraph_node_hook): New type.
8125         (cgraph_2edge_hook): New type.
8126         (cgraph_2node_hook): New type.
8127
8128 2008-07-07  Andreas Tobler  <a.tobler@schweiz.org>
8129
8130         * config.in: Regenerate.
8131
8132 2008-07-07  Vladimir Prus  <vladimir@codesourcery.com>
8133
8134         * gcc.c (print_sysroot): New.
8135         (option_map, display_help, process_command): Handle the
8136         -print-sysroot option.
8137         (main): Print the sysroot if requested.
8138         * doc/invoke.texi (Debugging Options): Document -print-sysroot.
8139
8140 2008-07-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8141
8142         PR target/34780
8143         * unwind-pe.h (size_of_encoded_value): add attribute unused.
8144
8145 2008-07-07  Daniel Jacobowitz  <dan@codesourcery.com>
8146
8147         * function.c (assign_parm_remove_parallels): Check mode of entry_parm.
8148         (assign_parm_setup_block_p): Also check mode of entry_parm.
8149
8150 2008-07-07  Richard Guenther  <rguenther@suse.de>
8151
8152         * tree-ssa-structalias.h (set_used_smts): Remove.
8153         * tree-ssa-structalias.c (used_smts): Likewise.
8154         (set_used_smts): Likewise.
8155         * tree-ssa-alias.c (compute_flow_sensitive_aliasing): Remove
8156         call to set_used_smts.
8157
8158 2008-07-07  Richard Guenther  <rguenther@suse.de>
8159
8160         * tree-ssa-structalias.c (struct variable_info): Add is_full_var flag.
8161         (new_var_info): Set it to false.
8162         (solution_set_add): Correctly handle pointers outside a var and
8163         inside a field.
8164         (type_safe): Treat variables with is_full_var properly.
8165         (do_sd_constraint): Likewise.
8166         (do_ds_constraint): Likewise.
8167         (process_constraint): Remove zeroing offset for !use_field_sensitive.
8168         (get_constraint_for_ptr_offset): New function.
8169         (get_constraint_for_component_ref): For addresses at least include
8170         the last field of the variable.  Handle is_full_vars properly.
8171         (get_constraint_for_1): Factor common code, handle POINTER_PLUS_EXPR.
8172         (handle_ptr_arith): Remove.
8173         (find_func_aliases): Simplify assignment handling.
8174         (create_function_info_for): For parameter and result varinfos set
8175         is_full_var flag.
8176         (create_variable_info_for): Set is_full_var flag whenever we
8177         just created a single varinfo for a decl.
8178         (init_alias_vars): Initialize use_field_sensitive from
8179         max-fields-for-field-sensitive parameter.
8180
8181 2008-07-07  Richard Guenther  <rguenther@suse.de>
8182
8183         PR tree-optimization/36713
8184         * tree-flow-inline.h (is_call_used): New function.
8185         * tree-nrv.c (dest_safe_for_nrv_p): Use it.
8186         * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
8187         * tree-outof-ssa.c (create_temp): Set call-used flag if required.
8188
8189 2008-07-07  Maxim Kuvyrkov  <maxim@codesourcery.com>
8190
8191         * config/m68k/m68k.c (m68k_return_in_memory): Fix arguments types.
8192
8193 2008-07-07  Mark Shinwell  <shinwell@codesourcery.com>
8194
8195         * config/m68k/lb1sf68.asm: Add PIC macros for Linux targets.
8196
8197 2008-07-07  Maxim Kuvyrkov  <maxim@codesourcery.com>
8198             Nathan Sidwell  <nathan@codesourcery.com>
8199
8200         * config.gcc (m68k-*-linux*): Add with_arch.  Add sysroot-suffix.h
8201         to tm_file.  Add m68k/t-floatlib, m68k/t-linux & m68k/t-mlibs to
8202         tmake_file.
8203         * config/m68k/t-linux: New.
8204         * doc/install.texi: Document m68k-*-linux is now multilibbed by
8205         default.
8206
8207 2008-07-07  Nathan Sidwell  <nathan@codesourcery.com>
8208
8209         * config/m68k/t-cf (MULTILIB_EXTRA_OPTS): Add no-mac.
8210         * config/m68k/m68k-devices.def: Remove multilibs that only differ
8211         by MAC/EMAC.
8212
8213 2008-07-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8214
8215         * gcc.c (execute): Fix -Wc++-compat warning.
8216
8217 2008-07-06  H.J. Lu  <hongjiu.lu@intel.com>
8218
8219         PR target/36720
8220         * config/ia64/ia64.c (ia64_split_tmode): Fix typo in TImode
8221         constant for little endian.
8222
8223 2008-07-06  Richard Sandiford  <rdsandiford@googlemail.com>
8224
8225         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Check
8226         mips_base_mips16 instead of TARGET_MIPS16.
8227         (mips_base_mips16): Declare.
8228         * config/mips/mips.c (mips_base_mips16): Make global.
8229         (was_mips16_p): Remove GTY marker.
8230         (was_mips16_pch_p): New variable.
8231         (mips_set_mips16_mode): Check both was_mips16_p and was_mips16_pch_p.
8232         (mips_override_options): Force to non-MIPS16 mode initially.
8233         Do not complain about MIPS16 PIC incompatibilities here.
8234         Only allow -mgpopt if -mexplicit-relocs is in force for
8235         non-MIPS16 code.
8236
8237 2008-07-06  Andreas Tobler  <a.tobler@schweiz.org>
8238
8239         * configure.ac: Check for caddr_t, define to char * if not defined.
8240         * configure: Regenerate.
8241         * ggc-common.c (mmap_gt_pch_get_address): Fix -Wc++-compat warnings.
8242         (mmap_gt_pch_use_address): Likewise.
8243         * config/host-solaris.c (sol_gt_pch_use_address): Likewise.
8244
8245 2008-07-06  Richard Guenther  <rguenther@suse.de>
8246
8247         * tree-ssa-structalias.c (struct variable_info): Remove has_union.
8248         (new_var_info): Deal with it.
8249         (solution_set_add): Likewise.
8250         (bitpos_of_field): Make signed, fix.
8251         (struct fieldoff): Remove type and decl fields.  Make size field
8252         unsigned HOST_WIDE_INT.  Add has_unknown_size and may_have_pointers
8253         flags.
8254         (fieldoff_compare): Deal with it.
8255         (push_fields_onto_fieldstack): Remove has_union argument, glob
8256         adjacent non-pointer fields together.
8257         (create_function_info_for): Do not set has_union.
8258         (create_variable_info_for): Simplify.
8259
8260 2008-07-06  Kai Tietz  <kai.tietz@onevision.com>
8261
8262         * config.gcc (extra_headers): Add cross-stdarg.h for target
8263         x86_64-*-* and i?86-*-*.
8264         * config/i386/cross-stdarg.h: New.
8265         * builtins.c (std_fn_abi_va_list): New.
8266         (std_canonical_va_list_type): New.
8267         (stabilize_va_list): Replace va_list_type_node use by
8268         mtarget.canonical_va_list_type.
8269         (gimplify_va_arg_expr): Likewise.
8270         (expand_builtin_va_copy): Replace va_list_type_node use by
8271         mtarget.fn_abi_va_list.
8272         * tree-sra.c (is_va_list_type): New helper.
8273         (decl_can_be_decomposed_p): Replace
8274         va_list_type_node use by is_va_list_type.
8275         * tree-ssa-ccp.c (optimize_stdarg_builtin): Likewise.
8276         * tree-stdarg.c (execute_optimize_stdarg): Likewise.
8277         * c-common.c (c_common_nodes_and_builtins): Use TARGET_ENUM_VA_LIST.
8278         * config/i386/i386-protos.h (ix86_get_valist_type): New.
8279         (ix86_enum_va_list): New.
8280         * config/i386/i386.c (sysv_va_list_type_node): New.
8281         (ms_va_list_type_node): New.
8282         (ix86_function_type_abi): Remove sorry.
8283         (ix86_build_builtin_va_list_abi): New.
8284         (ix86_build_builtin_va_list): Call ix86_build_builtin_va_list_abi
8285         for 64-bit targets.
8286         (ix86_va_start): Replace va_list_type_node by sysv_va_list_type_node.
8287         (ix86_init_builtins_va_builtins_abi): New.
8288         (ix86_init_builtins): Use ix86_init_builtins_va_builtins_abi
8289         for 64-bit targets.
8290         (ix86_handle_abi_attribute): New.
8291         (attribute_spec): Add sysv_abi and ms_abi.
8292         (ix86_fn_abi_va_list): New.
8293         (ix86_canonical_va_list_type): New.
8294         (ix86_enum_va_list): New.
8295         (TARGET_FN_ABI_VA_LIST): New.
8296         (TARGET_CANONICAL_VA_LIST_TYPE): New.
8297         * config/i386/i386.h (TARGET_ENUM_VA_LIST): New.
8298         * doc/tm.texi (TARGET_FN_ABI_VA_LIST): New.
8299         (TARGET_CANONICAL_VA_LIST_TYPE): New.
8300         (TARGET_ENUM_VA_LIST): New.
8301         * expr.h (std_fn_abi_va_list): New.
8302         (std_canonical_va_list_type): New.
8303         * target-def.h (TARGET_FN_ABI_VA_LIST): New.
8304         (TARGET_CANONICAL_VA_LIST_TYPE): New.
8305         (TARGET_INITIALIZER): Add TARGET_FN_ABI_VA_LIST and
8306         TARGET_CANONICAL_VA_LIST_TYPE.
8307         * target.h (struct gcc_target): Add fn_abi_va_list hook
8308         and canonical_va_list_type hook.
8309
8310 2008-07-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>
8311
8312         * fold-const.c (fold_convert_const): Treat OFFSET_TYPE the same as
8313         integral and pointer types.
8314
8315 2008-07-04  Roger Sayle  <roger@eyesopen.com>
8316
8317         * config/rs6000/host-darwin.c (darwin_rs6000_extra_signals): Cast
8318         the "void*" result of xmalloc to "char*" to fix bootstrap breakage.
8319
8320 2008-07-04  Kaz Kojima  <kkojima@gcc.gnu.org>
8321
8322         PR target/36684
8323         * config/sh/sh.h (OVERRIDE_OPTIONS): Disable -fschedule-insns for PIC.
8324
8325 2008-07-04  Jakub Jelinek  <jakub@redhat.com>
8326
8327         * tree-switch-conversion.c (build_one_array, gen_def_assigns): Use
8328         build_gimple_modify_stmt.
8329         (build_arrays, gen_inbound_check): Likewise.  Force RHS to be
8330         gimple operand.  Use fold_build* instead of build*.
8331
8332 2008-07-04  Richard Guenther  <rguenther@suse.de>
8333
8334         * tree-ssa-structalias.c (lookup_vi_for_tree): Declare.
8335         (do_sd_constraint): Handle a dereference of ESCAPED and CALLUSED
8336         properly to compute the reachability set if we do field-sensitive PTA.
8337         * invoke.texi (max-fields-for-field-sensitive): Document default.
8338         * opts.c (decode_options): Set max-fields-for-field-sensitive to
8339         100 for optimize >= 2.
8340
8341 2008-07-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8342
8343         * ggc-zone.c (lookup_page_table_if_allocated,
8344         set_page_table_entry, zone_find_object_size, alloc_small_page,
8345         alloc_large_page, ggc_free, gt_ggc_m_S, ggc_marked_p, init_ggc,
8346         new_ggc_zone, init_ggc_pch, ggc_pch_this_base, ggc_pch_read): Fix
8347         -Wc++-compat and/or -Wcast-qual warnings.
8348
8349 2008-07-04  Alan Modra  <amodra@bigpond.net.au>
8350
8351         PR target/36634
8352         * config/rs6000/rs6000.md (call, call_value): Don't arrange for
8353         pic_offset_table_rtx to be marked as used here.
8354         (call_nonlocal_sysv, call_value_nonlocal_sysv): Add split for
8355         TARGET_SECURE_PLT to "use" pic_offset_table_rtx.
8356         (call_nonlocal_sysv_secure, call_value_nonlocal_sysv_secure): New insn.
8357         (sibcall_nonlocal_sysv, sibcall_value_nonlocal_sysv): Assert
8358         !TARGET_SECURE_PLT.
8359
8360 2008-07-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8361
8362         * alloc-pool.c (hash_descriptor, eq_descriptor,
8363         alloc_pool_descriptor): Fix -Wc++-compat warnings.
8364         * bitmap.c (hash_descriptor, eq_descriptor, bitmap_descriptor):
8365         Likewise.
8366         * ggc-common.c (hash_descriptor, eq_descriptor, hash_ptr, eq_ptr,
8367         loc_descriptor, ggc_prune_ptr, ggc_free_overhead,
8368         final_cmp_statistic, cmp_statistic, dump_ggc_loc_statistics): Likewise.
8369         * varray.c (hash_descriptor, eq_descriptor, varray_descriptor):
8370         Likewise.
8371
8372 2008-07-03  Eric Botcazou  <ebotcazou@adacore.com>
8373
8374         * tree-flow.h (loop_only_exit_p): Declare.
8375         * tree-ssa-loop-niter.c (loop_only_exit_p): Make public.
8376         * tree-ssa-loop-ivopts.c (may_eliminate_iv): Reinstate direct check on
8377         the number of iterations if it is constant.  Otherwise, if this is the
8378         only possible exit of the loop, use the conservative estimate on the
8379         number of iterations of the entire loop if available.
8380
8381 2008-07-03  Richard Sandiford  <rdsandiford@googlemail.com>
8382
8383         * Makefile.in (libgcc.mvars): Add LIBGCC_SYNC and LIBGCC_SYNC_CFLAGS.
8384         * libgcc-std.ver (GCC_4.4.0): New version, inherited from GCC_4.3.0.
8385         Add synchronization functions.
8386         * config/sync.c: New file.
8387         * config/mips/t-libgcc-mips16 (LIBGCC_SYNC): Define.
8388         (LIBGCC_SYNC_CFLAGS): Likewise.
8389
8390 2008-07-03  Uros Bizjak  <ubizjak@gmail.com>
8391
8392         PR target/36710
8393         * config/i386/i386.md (mode): Add TF to "mode" attribute.
8394         (*pushtf_sse): New insn pattern.
8395         (pushtf splitters): New splitters.
8396
8397 2008-07-03  Michael Meissner  <gnu@the-meissners.org>
8398
8399         PR middle-end/35736
8400         * predict.c (build_predict_expr): Use void_type_node for the tree
8401         type, instead of NULL_TREE.
8402
8403 2008-07-03  H.J. Lu  <hongjiu.lu@intel.com>
8404
8405         * config/i386/i386.c (contains_aligned_value_p): Return true
8406         for TCmode.
8407         (ix86_data_alignment): Align TCmode to 128bits.
8408         (ix86_local_alignment): Likewise.
8409
8410 2008-07-03  Andrew Haley  <aph@redhat.com>
8411
8412         PR bootstrap/33304
8413         * vec.h (VEC_TA): New.
8414         (DEF_VEC_I, DEF_VEC_P, DEF_VEC_ALLOC_I, DEF_VEC_ALLOC_P,
8415         DEF_VEC_O, DEF_VEC_ALLOC_O: Use VEC_TA.
8416         * c-common.c (C_COMMON_FIXED_TYPES_SAT): New macro.
8417         (C_COMMON_FIXED_MODE_TYPES_SAT): New macro.
8418         (C_COMMON_FIXED_TYPES): Remove first arg.
8419         (C_COMMON_FIXED_MODE_TYPES): Likewise.
8420         * tree.c (MAKE_FIXED_TYPE_NODE): Break into two macros,
8421         MAKE_FIXED_TYPE_NODE and MAKE_FIXED_TYPE_NODE_WIDTH in order
8422         not to use empty macro arguments.
8423
8424 2008-07-02  Joseph Myers  <joseph@codesourcery.com>
8425
8426         * config/alpha/vms_tramp.asm, config/arm/crti.asm,
8427         config/arm/crtn.asm, config/bfin/crti.s, config/bfin/crtlibid.s,
8428         config/bfin/crtn.s, config/fr30/crti.asm, config/fr30/crtn.asm,
8429         config/frv/lib1funcs.asm, config/i386/sol2-c1.asm,
8430         config/i386/sol2-ci.asm, config/i386/sol2-cn.asm,
8431         config/i386/sol2-gc1.asm, config/ia64/crti.asm,
8432         config/ia64/crtn.asm, config/m68hc11/larith.asm,
8433         config/m68hc11/m68hc11-crt0.S, config/m68k/crti.s,
8434         config/m68k/crtn.s, config/mcore/crti.asm, config/mcore/crtn.asm,
8435         config/rs6000/crtresfpr.asm, config/rs6000/crtresgpr.asm,
8436         config/rs6000/crtresxfpr.asm, config/rs6000/crtresxgpr.asm,
8437         config/rs6000/crtsavfpr.asm, config/rs6000/crtsavgpr.asm,
8438         config/rs6000/crtsavres.asm, config/rs6000/e500crtres32gpr.asm,
8439         config/rs6000/e500crtres64gpr.asm,
8440         config/rs6000/e500crtres64gprctr.asm,
8441         config/rs6000/e500crtrest32gpr.asm,
8442         config/rs6000/e500crtrest64gpr.asm,
8443         config/rs6000/e500crtresx32gpr.asm,
8444         config/rs6000/e500crtresx64gpr.asm,
8445         config/rs6000/e500crtsav32gpr.asm,
8446         config/rs6000/e500crtsav64gpr.asm,
8447         config/rs6000/e500crtsav64gprctr.asm,
8448         config/rs6000/e500crtsavg32gpr.asm,
8449         config/rs6000/e500crtsavg64gpr.asm,
8450         config/rs6000/e500crtsavg64gprctr.asm, config/rs6000/eabi-ci.asm,
8451         config/rs6000/eabi-cn.asm, config/rs6000/eabi.asm,
8452         config/rs6000/sol-ci.asm, config/rs6000/sol-cn.asm,
8453         config/rs6000/tramp.asm, config/sparc/sol2-ci.asm,
8454         config/sparc/sol2-cn.asm: Remove .file directives.
8455
8456 2008-07-02  Richard Sandiford  <rdsandiford@googlemail.com>
8457
8458         * resource.c (mark_referenced_resources): Look inside
8459         UNSPEC_VOLATILEs and ASM_INPUTs.
8460
8461 2008-07-02  Ian Lance Taylor  <iant@google.com>
8462
8463         * rtlanal.c (add_reg_note): New function.
8464         * rtl.h (add_reg_note): Declare.
8465         * auto-inc-dec.c (attempt_change): Use add_reg_note.
8466         * bb-reorder.c (add_reg_crossing_jump_notes): Likewise.
8467         * builtins.c (expand_builtin_longjmp): Likewise.
8468         (expand_builtin_nonlocal_goto): Likewise.
8469         * calls.c (emit_call_1, expand_call): Likewise.
8470         * cfgexpand.c (add_reg_br_prob_note): Likewise.
8471         * cfglayout.c (fixup_reorder_chain): Likewise.
8472         * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
8473         (commit_one_edge_insertion): Likewise.
8474         * combine.c (move_deaths, distribute_notes): Likewise.
8475         * df-problems.c (df_set_note): Likewise.
8476         * emit-rtl.c (link_cc0_insns, try_split): Likewise.
8477         (set_unique_reg_note): Likewise.
8478         (emit_copy_of_insn_after): Likewise.
8479         * expr.c (expand_expr_real): Likewise.
8480         * gcse.c (add_label_notes): Likewise.
8481         * haifa-sched.c (create_check_block_twin): Likewise.
8482         * jump.c (mark_jump_label_1): Likewise.
8483         * loop-doloop.c (add_test, doloop_modify): Likewise.
8484         * loop-unswitch.c (compare_and_jump_seq): Likewise.
8485         * lower-subreg.c (move_eh_region_note): Likewise.
8486         * optabs.c (emit_libcall_block): Likewise.
8487         * predict.c (predict_insn): Likewise.
8488         (combine_predictions_for_insn): Likewise.
8489         * recog.c (peephole2_optimize): Likewise.
8490         * regmove.c (try_auto_increment): Likewise.
8491         * reg-stack.c (emit_pop_insn, move_for_stack_reg): Likewise.
8492         * reload.c (find_reloads): Likewise.
8493         * reload1.c (fixup_eh_region_note): Likewise.
8494         (reload_as_needed, add_auto_inc_notes, copy_eh_notes): Likewise.
8495         * reorg.c (delete_prior_computation): Likewise.
8496         (delete_computation, dbr_schedule): Likewise.
8497         * config/pa/pa.c (legitimize_pic_address): Likewise.
8498         * config/sh/sh.c (sh_reorg): Likewise.
8499
8500 2008-07-02  H.J. Lu  <hongjiu.lu@intel.com>
8501
8502         PR target/36669
8503         * config/libgcc-glibc.ver: Add %exclude.
8504         * config/m32r/libgcc-glibc.ver: Likwise.
8505         * config/s390/libgcc-glibc.ver: Likwise.
8506         * config/sh/libgcc-glibc.ver: Likwise.
8507         * config/sparc/libgcc-sparc-glibc.ver: Likwise.
8508
8509         * config/i386/libgcc-glibc.ver: New.
8510
8511         * config/i386/libgcc-x86_64-glibc.ver: Removed.
8512
8513 2008-07-02  H.J. Lu  <hongjiu.lu@intel.com>
8514
8515         * config.gcc: Remove i386/t-fprules-softfp64 soft-fp/t-softfp
8516         from tmake_file from i[34567]86-*-darwin*, x86_64-*-darwin*,
8517         i[34567]86-*-linux*, x86_64-*-linux*.  Add
8518         i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file for
8519         i[34567]86-*-darwin*, x86_64-*-darwin*, i[34567]86-*-linux*,
8520         x86_64-*-linux*.  Add i386/t-linux to tmake_file for
8521         i[34567]86-*-linux*, x86_64-*-linux*.
8522
8523         * libgcc-std.ver: Add empty GCC_4.4.0.
8524
8525         * mkmap-symver.awk: Support multiple versions per symbol.
8526
8527         * config/i386/i386.c (ix86_init_builtins): Always define
8528         __builtin_fabsq and __builtin_copysignq with fallbacks.
8529         (ix86_expand_builtin): Emit normal call for __builtin_fabsq
8530         and __builtin_copysignq if SSE2 isn't available.
8531
8532         * config/i386/linux.h (LIBGCC2_HAS_TF_MODE): Defined.
8533         (LIBGCC2_TF_CEXT): Likwise.
8534         (TF_SIZE): Likwise.
8535
8536         * config/i386/linux64.h (LIBGCC2_HAS_TF_MODE): Defined as 1.
8537
8538         * config/i386/sfp-machine.h: Moved to libgcc.
8539
8540         * config/i386/sfp-machine.h: New.
8541         * config/i386/t-linux: Likwise.
8542
8543         * config/i386/t-darwin: Remove softfp_wrap_start and
8544         softfp_wrap_end.
8545         * config/i386/t-darwin64: Likewise.
8546
8547         * config/i386/t-fprules-softfp64: Renamed to ...
8548         * config/i386/t-fprules-softfp: This.
8549
8550         * config/i386/t-linux64: Remove SHLIB_MAPFILES, softfp_wrap_start
8551         and softfp_wrap_end.
8552
8553 2008-07-02  Jason Merrill  <jason@redhat.com>
8554
8555         * tree.c (ctor_to_list): Use FOR_EACH_CONSTRUCTOR_ELT.
8556
8557         * tree.c (ctor_to_list): New fn.
8558         * tree.h: Declare it.
8559         (CONSTRUCTOR_ELT): New macro.
8560         (CONSTRUCTOR_NELTS): New macro.
8561
8562 2008-07-02  Richard Guenther  <rguenther@suse.de>
8563
8564         * tree-ssa-structalias.c (struct variable_info): Reorder
8565         to fill padding on 64bit hosts.  Make collapsed_to an int.
8566         (get_varinfo_fc): Deal with that.
8567         (new_var_info): Likewise.
8568         (collapse_rest_of_var): Likewise.
8569
8570 2008-07-02  Joshua Sumali  <jsumali@redhat.com>
8571
8572         * doc/install.texi (--enable-java-home): Document.
8573         (--enable-aot-compile-rpm): Likewise.
8574         (--with-arch-directory): Likewise.
8575         (--with-os-directory): Likewise.
8576         (--with-origin-name): Likewise.
8577         (--with-arch-suffix): Likewise.
8578         (--with-jvm-root-dir): Likewise.
8579         (--with-jvm-jar-dir): Likewise.
8580         (--with-python-dir): Likewise.
8581
8582 2008-07-02  Richard Guenther  <rguenther@suse.de>
8583
8584         * tree-ssa-forwprop.c (can_propagate_from): Exclude loads
8585         from decls explicitly.  Merge operand checking from tuples.
8586
8587 2008-07-02  Martin Jambor  <mjambor@suse.cz>
8588
8589         * tree-switch-conversion.c: Included timevar.h which I forgot before.
8590
8591 2008-07-02  Martin Jambor  <mjambor@suse.cz>
8592
8593         * tree-switch-conversion.c: Included timevar.h
8594         (pass_convert_switch): Added a timevar id (TV_TREE_SWITCH_CONVERSION).
8595
8596         * timevar.def: Added TV_TREE_SWITCH_CONVERSION.
8597
8598 2008-07-02  Martin Jambor  <mjambor@suse.cz>
8599
8600         * tree-switch-conversion.c: Corrected various comments and
8601         whitespace issues
8602         (build_constructors): Fixed minor formatting mistakes.
8603
8604         * invoke.texi (Optimize Options): Corrected the
8605         switch-conversion-max-branch-ratio parameter.
8606
8607 2008-07-02  Mark Shinwell  <shinwell@codesourcery.com>
8608
8609         * final.c (asm_insn_count): Return zero for an empty asm body.
8610
8611 2008-07-02  Richard Guenther  <rguenther@suse.de>
8612
8613         * bitmap.h (bitmap_set_bit): Return bool.
8614         (bitmap_clear_bit): Likewise.
8615         * bitmap.c (bitmap_set_bit): Return if the bit changed.  Only
8616         write to the bitmap if it would.
8617         (bitmap_clear_bit): Likewise.
8618         * tree-ssa-structalias.c (add_implicit_graph_edge): Use
8619         bitmap_set_bit return value.
8620         (add_pred_graph_edge): Likewise.
8621         (add_graph_edge): Likewise.
8622         (do_sd_constraint): Likewise.
8623         (do_ds_constraint): Likewise.
8624
8625 2008-07-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8626
8627         * config/alpha/alpha.c (alpha_need_linkage, alpha_use_linkage):
8628         Fix -Wc++-compat and/or -Wcast-qual warnings.
8629         * config/i386/netware.c (gen_stdcall_or_fastcall_decoration,
8630         gen_regparm_prefix): Likewise.
8631         * vmsdbgout.c (write_modbeg, lookup_filename,
8632         vmsdbgout_source_line, vmsdbgout_init): Likewise.
8633
8634 2008-07-02  Danny Smith  <dannysmith@users.sourceforge.net>
8635
8636         * config/i386/mingw32.h (TARGET_USE_JCR_SECTION): Undef to let
8637         defaults.h definition apply.
8638
8639 2008-07-01  Daniel Jacobowitz  <dan@codesourcery.com>
8640
8641         * function.c (assign_parm_remove_parallels): New.
8642         (assign_parm_setup_block_p): Do not return true for non-BLKmode
8643         PARALLELs.
8644         (assign_parm_setup_block): Do not handle them.
8645         (assign_parm_setup_reg, assign_parm_setup_stack): Call
8646         assign_parm_remove_parallels.
8647
8648 2008-07-01  Daniel Jacobowitz  <dan@codesourcery.com>
8649
8650         * c-typeck.c (convert_for_assignment): Use
8651         vector_targets_convertible_p.
8652         * c-common.c (vector_targets_convertible_p): New.
8653         * c-common.h (vector_targets_convertible_p): New prototype.
8654         * config/rs6000/rs6000.c (rs6000_is_opaque_type): Do not check
8655         opaque_p_V2SI_type_node.
8656
8657 2008-07-01  Steve Ellcey  <sje@cup.hp.com>
8658
8659         * config/ia64/ia64.c (ia64_cannot_force_const_mem): Do not allow
8660         RFmode constants.
8661
8662 2008-07-01  Uros Bizjak  <ubizjak@gmail.com>
8663
8664         * config/i386/i386.c (ix86_build_signbit_mask): Generate TImode and
8665         TFmode constants via two element DImode vector for hosts with
8666         HOST_BITS_PER_WIDE_INT < 64.
8667         (ix86_init_builtins): Define __builtin_fabsq and __builtin_copysignq
8668         also for HOST_BITS_PER_WIDE_INT < 64.
8669
8670 2008-07-01  Richard Guenther  <rguenther@suse.de>
8671
8672         PR tree-optimization/36666
8673         * tree-ssa-structalias.c (get_constraint_for_1): Declare.
8674         (get_constraint_exp_from_ssa_var): Split into ...
8675         (get_constraint_exp_for_temp): ... this ...
8676         (get_constraint_for_ssa_var): ... and that.
8677         Return constraint expressions for all touched sub-fields
8678         if the results address is not taken.
8679         (process_constraint): Remove assertion that aggregate
8680         assignments do not happen at this place.
8681         (get_constraint_for_component_ref): Add address_p argument.
8682         Return constraint expressions for all touched sub-fields
8683         if the results address is not taken.
8684         (do_deref): Use get_constraint_exp_for_temp.
8685         (get_constraint_for_1): Rename from ...
8686         (get_constraint_for): ... this.  Add the old function as wrapper.
8687         (do_structure_copy): Use get_constraint_for_1.
8688
8689 2008-07-01  Martin Jambor  <mjambor@suse.cz>
8690
8691         * Makefile.in (tree-switch-conversion.o): Add.
8692         (OBJS-common): Add tree-swtch-conversion.o.
8693         * passes.c (init_optimization_passes): Add pass_convert_switch.
8694         * tree-pass.h: (pass_convert_switch): Add.
8695         * tree-switch-conversion.c: New file.
8696         * gcc.dg/tree-ssa/cswtch.c: New testcase.
8697         * common.opt (ftree-cswtch): New option.
8698         * params.h (PARAM_SWITCH_CONVERSION_BRANCH_RATIO): New parameter.
8699         * params.def (PARAM_SWITCH_CONVERSION_BRANCH_RATIO): New parameter.
8700         * opts.c (decode_options): Set flag_tree_switch_conversion when
8701         optimization level is >= 2.
8702         * doc/invoke.texi (Optimize Options): Added description of
8703         -ftree-swtch-conversion and switch-conversion-max-branch-ratio.
8704
8705 2008-06-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8706
8707         * config/darwin-driver.c (darwin_default_min_version): Fix
8708         -Wc++-compat warnings.
8709
8710 2008-06-30  Uros Bizjak  <ubizjak@gmail.com>
8711
8712         * config/i386/i386.md (*movti_rex64): Add "!" to "r" constraint
8713         of operand 0.
8714
8715 2008-06-30  Kenneth Zadeck <zadeck@naturalbridge.com>
8716
8717         * ifcvt.c (cond_move_process_if_block): Free vectors on false return.
8718
8719 2008-06-30  Kenneth Zadeck <zadeck@naturalbridge.com>
8720
8721         PR rtl-optimization/34744
8722         * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): New macros.
8723         (df_scan_free_internal): Free data structures not
8724         allocated in storage pools.
8725         (df_mw_hardreg_chain_delete_eq_uses): Use df_scan_free_mws_vec.
8726         (df_refs_add_to_chains): Use df_scan_free_ref_vec and
8727         df_scan_free_mws_vec.
8728         * dse.c (dse_step6): Free offset_map_p and offset_map_n
8729         unconditionally.
8730
8731 2008-06-30  H.J. Lu  <hongjiu.lu@intel.com>
8732
8733         * config/i386/i386.c (contains_aligned_value_p): Return true
8734         for __float128.
8735         (ix86_function_arg_boundary): Return its natural boundary
8736         for __float128.
8737         (return_in_memory_32): Don't check TDmode.
8738         (ix86_split_to_parts): Support splitting into 4 parts and
8739         support TFmode for 32bit target.
8740         (ix86_split_long_move): Support splitting into 4 parts.
8741         (bdesc_args): Enable IX86_BUILTIN_FABSQ and IX86_BUILTIN_COPYSIGNQ
8742         for SSE2.
8743         (ix86_init_mmx_sse_builtins): Move __float80 and __float128 to ...
8744         (ix86_init_builtins): Here.
8745         (ix86_scalar_mode_supported_p): Always return true for TFmode.
8746         (ix86_c_mode_for_suffix): Always return TFmode and XFmode for
8747         'q' and 'w', respectively.
8748
8749         * config/i386/i386.md (movtf): Check TARGET_SSE2 instead of
8750         TARGET_64BIT.
8751         (movtf_internal): Likewise.
8752         (<code>tf2): Likewise.
8753         (*absnegtf2_sse): Likewise.
8754         (copysign<mode>3): Likewise.
8755         (copysign<mode>3_const): Likewise.
8756         (copysign<mode>3_var): Likewise.
8757         (define_split UNSPEC_COPYSIGN): Likewise.
8758         * config/i386/sse.md (*nandtf3): Likewise.
8759         (<code>tf3): Likewise.
8760         (*<code>tf3): Likewise.
8761
8762 2008-06-30  Joey Ye  <joey.ye@intel.com>
8763             H.J. Lu  <hongjiu.lu@intel.com>
8764
8765         * global.c (compute_regsets): Set frame_pointer_needed here.
8766         * reload1.c (init_elim_table): Don't set frame_pointer_needed here.
8767
8768 2008-06-30  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
8769
8770         * doc/install.texi (specific): Expand Windows build notes.
8771
8772 2008-06-30  Ira Rosen  <irar@il.ibm.com>
8773
8774         PR tree-optimization/36648
8775         * tree-vect-transform.c (vect_do_peeling_for_loop_bound): Divide
8776         number of prolog iterations by step. Fix the comment.
8777
8778 2008-06-30  Richard Guenther  <rguenther@suse.de>
8779
8780         PR middle-end/36671
8781         * tree-ssa-structalias.c (handle_lhs_call): Add flags argument,
8782         handle calls from ECF_MALLOC functions.
8783         (handle_pure_call): ECF_MALLOC functions do not return
8784         call-used memory.
8785         (find_func_aliases): Handle all calls, adjust calls to handle_lhs_call.
8786
8787 2008-06-29  Andreas Schwab  <schwab@suse.de>
8788
8789         * config/m68k/m68k.c (print_operand): Always print a float
8790         constant in hex.
8791         * config/m68k/m68k.h (ASM_OUTPUT_FLOAT_OPERAND)
8792         (ASM_OUTPUT_DOUBLE_OPERAND, ASM_OUTPUT_LONG_DOUBLE_OPERAND):
8793         Remove macros.
8794
8795         * config/rs6000/x-linux64: Remove never used file.
8796
8797 2008-06-29  Richard Guenther  <rguenther@suse.de>
8798
8799         * tree-ssa-structalias.h (compute_points_to_sets): Adjust
8800         prototype.
8801         (struct alias_info): Move ...
8802         * tree-ssa-alias.c: ... here.
8803         (update_alias_info): Declare.
8804         (compute_may_aliases): Call it.
8805         (update_alias_info): New function.
8806         * tree-ssa-structalias.c (update_alias_info): Move ...
8807         * tree-ssa-alias.c (update_alias_info_1): ... here.
8808         * tree-ssa-structalias.c (process_constraint_1): Remove
8809         unused from_call argument.  Rename to ...
8810         (process_constraint): ... this.  Delete old wrapper.
8811         (make_constraint_to): Adjust callers.
8812         (handle_const_call): Likewise.
8813         (handle_pure_call): Likewise.
8814         (init_base_vars): Likewise.
8815         (handle_lhs_call): Likewise.  Remove unnecessary constraint.
8816         (find_func_aliases): We don't need structure copies for
8817         complex types.
8818         (make_constraint_from_anything): Remove.
8819         (create_variable_info_for): For globals make constraints
8820         from escaped, not from anything.
8821         (compute_points_to_sets): Do not call update_alias_info.
8822         (ipa_pta_execute): Use make_constraint_from.
8823
8824 2008-06-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8825
8826         * Makefile.in (CXX_COMPAT_WARN, cxx_compat_warn): Delete.
8827         (bitmap.o-warn, dominance.o-warn): New.
8828         * configure.ac (cxx_compat_warn): Delete.
8829         (loose_warn): Add -Wcast-qual and -Wc++-compat.
8830         * system.h: Remove #pragma diagnostic for -Wcast-qual and
8831         -Wc++-compat.
8832         * configure: Regenerate.
8833
8834         * optabs.c (libfunc_decl_hash, libfunc_decl_eq): Fix -Wcast-qual
8835         warnings.
8836
8837 2008-06-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8838
8839         * alloc-pool.c (create_alloc_pool): Fix -Wc++-compat warnings.
8840         * df-scan.c (df_notes_rescan): Likewise.
8841         * ggc-page.c (set_page_table_entry): Likewise.
8842         * intl.c (gcc_gettext_width): Likewise.
8843         * varasm.c (get_unnamed_section, get_noswitch_section,
8844         get_section): Likewise.
8845
8846 2008-06-28  Andrew Jenner  <andrew@codesourcery.com>
8847
8848         * regrename.c (build_def_use): Don't copy RTX.
8849
8850 2008-06-28  Sandra Loosemore  <sandra@codesourcery.com>
8851
8852         * doc/extend.texi (Variable Attributes): Use @ref instead of @xref.
8853         (Type Attributes): Fix nesting of @table and @subsection.  Adjust
8854         punctuation.  Use @ref instead of @xref.
8855         (Function Names): Remove stray @display/@end display.
8856         (C++ Attributes): Use @ref instead of @xref.
8857         (Deprecated Features): Fix punctuation around @xref.
8858         (Backwards Compatibility): Likewise.
8859         * doc/rtl.texi (Incdec): Remove stray @table/@end table.
8860
8861 2008-06-28  Joseph Myers  <joseph@codesourcery.com>
8862
8863         * config/rs6000/predicates.md (easy_fp_constant): Reject TFmode
8864         constants for E500 double.
8865
8866 2008-06-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8867
8868         * doc/rtl.texi (const_vector): Document const_fixed as legitimate
8869         element type of const_vector.
8870
8871 2008-06-28  Uros Bizjak  <ubizjak@gmail.com>
8872
8873         * config/i386/i386.md (addti3, adddi3, addsi3, addhi3, addqi3):
8874         Remove FLAGS_REG clobber from expander pattern.
8875         (subti3, subdi3, subsi3, subhi3, subqi3): Ditto.
8876         (anddi3, andsi3, andhi3, andqi3): Ditto.
8877         (iordi3, iorsi3, iorhi3, iorqi3): Ditto.
8878         (xordi3, xorsi3, xorhi3, xorqi3): Ditto.
8879         (negti2, negdi2, negsi2, neghi2, negqi2): Ditto.
8880         (ashlsi3, ashlhi3, ashlqi3): Ditto.
8881         (ashrsi3, ashrhi3, ashrqi3): Ditto.
8882         (lshrsi3, lshrhi3, lshrqi3): Ditto.
8883         (rotldi3, rotlsi3, rotlhi3, rotlqi3): Ditto.
8884         (rotrdi3, rotrsi3, rotrhi3, rotrqi3): Ditto.
8885
8886 2008-06-28  Richard Guenther  <rguenther@suse.de>
8887
8888         * tree-ssa-structalias.c (callused_id, var_callused,
8889         callused_tree): Add.
8890         (handle_pure_call): New function.
8891         (find_func_aliases): Call it.
8892         (find_what_p_points_to): Handle the call-used set.
8893         (clobber_what_escaped): Likewise.
8894         (compute_call_used_vars): New function.
8895         (init_base_vars): Init the call-used variable.
8896         (do_sd_constraint): Do not propagate the solution from CALLUSED
8897         but use CALLUSED as a placeholder.
8898         (solve_graph): Likewise.
8899         * tree-flow-inline.h (gimple_call_used_vars): New function.
8900         * tree-flow.h (struct gimple_df): Add call_used_vars bitmap.
8901         (compute_call_used_vars): Declare.
8902         * tree-ssa-alias.c (set_initial_properties): Call
8903         compute_call_used_vars.
8904         (reset_alias_info): Clear call-used variables.
8905         (add_call_clobber_ops): Assert we are not called for const/pure
8906         functions.  Remove handling of them.
8907         (add_call_read_ops): Handle pure functions by adding the
8908         call-used set of variables as VUSEs.
8909         * tree-ssa.c (init_tree_ssa): Allocate call-used bitmap.
8910         (delete_tree_ssa): Free it.
8911         * tree-dfa.c (remove_referenced_var): Clear the var from the
8912         call-used bitmap.
8913
8914 2008-06-28  Kai Tietz  <kai.tietz@onevision.com>
8915
8916         * tree.c (build_varargs_function_type_list): New.
8917         (build_function_type_list_1): New.
8918         (build_function_type_list): Use build_function_type_list_1.
8919         * tree.h (build_varargs_function_type_list): New.
8920
8921 2008-06-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8922
8923         PR target/34856
8924         * config/spu/spu.c (spu_builtin_splats): Do not generate
8925         invalid CONST_VECTOR expressions.
8926         (spu_expand_vector_init): Likewise.
8927
8928 2008-06-28  Richard Sandiford  <rdsandiford@googlemail.com>
8929
8930         * optabs.c (libfunc_decls): New variable.
8931         (libfunc_decl_hash, libfunc_decl_eq): New functions.
8932         (init_one_libfunc): Reuse decls and SYMBOL_REFs when asked
8933         for the same function twice.
8934
8935 2008-06-27  Uros Bizjak  <ubizjak@gmail.com>
8936
8937         * config/i386/i386.md (ashlti3, ashrti3, lshrti3): Expand using
8938         ix86_expand_binary_operator directly.
8939         (*ashlti3_1): Rename from ashlti3_1.  Use nonmemory_operand predicate
8940         for operand 2.
8941         (*ashrti3_1): Ditto.
8942         (*lshrti3_1): Ditto.
8943         (*ashlti3_2, *ashrti3_2, *lshrti3_2): Remove insn patterns.
8944         (ashlti, ashrti and lshrti splitters): Handle nonmemory operand 2
8945         using only one splitter.  Conditionaly execute splitter before or
8946         after peephole2 pass.
8947         (ashlti, ashrti and lshrti peephole2): Define peephole2 patterns.
8948         (x86_shld): Rename from x86_shld_1.  Compress operand 2 constraints.
8949         Use only one alternative in asm template.
8950         (x86_64_shld): Compress operand 2 constraints. Use only one alternative
8951         in asm template.
8952         (*ashldi3_cmp_rex64): Use const_1_to_63_operand operand predicate and
8953         "J" operand constraint for operand 2.
8954         (*ashldi3_cconly_rex64): Ditto.
8955         (*ashrdi3_cmp_rex64): Ditto.
8956         (*ashrdi3_cconly_rex64): Ditto.
8957         (*lshrdi3_cmp_rex64): Ditto.
8958         (*lshrdi3_cconly_rex64): Ditto.
8959         * config/i386/predicates.md (const_1_to_63_operand): New predicate.
8960         * config/i386/i386.md (print_operand) ['s']: Print ", " using fputs.
8961         (split_ashr, split_ashl, split_lshr): Use gen_x86_shrd instead of
8962         gen_x86_shrd_1.
8963
8964 2008-06-27  Jakub Jelinek  <jakub@redhat.com>
8965
8966         * gimplify.c (omp_is_private): Don't return true if decl is not
8967         already private on #pragma omp for or #pragma omp parallel for.
8968
8969         PR debug/36617
8970         * tree-cfg.c (struct move_stmt_d): Replace block field with
8971         orig_block and new_block fields.
8972         (move_stmt_r): Only set TREE_BLOCK to p->new_block if
8973         if it used to be NULL, p->orig_block or if p->orig_block is NULL.
8974         (move_block_to_fn): Replace vars_map and new_label_map arguments
8975         with struct move_stmt_d pointer.
8976         (replace_block_vars_by_duplicates): New function.
8977         (move_sese_region_to_fn): Add ORIG_BLOCK argument.  Adjust
8978         move_block_to_fn caller.  If ORIG_BLOCK is non-NULL, move over
8979         all subblocks of ORIG_BLOCK to the new function.  Call
8980         replace_block_vars_by_duplicates.
8981         * tree-flow.h (move_sese_region_to_fn): Adjust prototype.
8982         * omp-low.c (expand_omp_taskreg): Set TREE_USED on DECL_INITIAL
8983         BLOCK of the new function.  Adjust move_sese_region_to_fn caller.
8984         Prune vars with original DECL_CONTEXT from child_cfun->local_decls.
8985         (expand_omp): Temporarily set input_location to the location of
8986         region's controlling stmt.
8987         (lower_omp_sections, lower_omp_for): Add a BLOCK into outermost
8988         BIND_EXPR, push ctx->block_vars and gimplification vars into
8989         the BIND_EXPR and its block's BLOCK_VARS instead of directly
8990         into dest function.
8991         (lower_omp_single): Set TREE_USED on the BIND_EXPR's BLOCK if
8992         there are any BLOCK_VARS.
8993         (lower_omp_taskreg): Set BLOCK on a BIND_EXPR containing the
8994         OMP_PARALLEL or OMP_TASK stmt.
8995         (lower_omp): Save and restore input_location around the lower_omp_1
8996         call.
8997
8998 2008-06-27  Richard Guenther  <rguenther@suse.de>
8999
9000         PR tree-optimization/36400
9001         PR tree-optimization/36373
9002         PR tree-optimization/36344
9003         * tree-ssa-structalias.c (var_escaped, escaped_tree, escaped_id,
9004         var_nonlocal, nonlocal_tree, nonlocal_id): New globals
9005         (update_alias_info): Remove call clobbering code.
9006         (make_constraint_to): New helper function.
9007         (make_escape_constraint): Likewise.
9008         (handle_rhs_call): Use it on all pointer containing arguments.
9009         Also mark the static chain escaped.
9010         (handle_lhs_call): Make constraints from NONLOCAL and ESCAPED
9011         instead of ANYTHING.
9012         (make_constraint_from): New helper split out from ...
9013         (make_constraint_from_anything): ... here.
9014         (find_func_aliases): Add constraints for escape sites.
9015         (intra_create_variable_infos): Make constraints from NONLOCAL
9016         for parameters.
9017         (find_what_p_points_to): Interpret NONLOCAL and ESCAPED the same
9018         as ANYTHING.
9019         (clobber_what_p_points_to): Remove.
9020         (clobber_what_escaped): New function.
9021         (init_base_vars): Init NONLOCAL and ESCAPED.
9022         (do_sd_constraint): Do not propagate the solution from ESCAPED
9023         but use ESCAPED as a placeholder.
9024         (solve_graph): Likewise.
9025         * tree-flow.h (clobber_what_p_points_to): Remove.
9026         (clobber_what_escaped): Declare.
9027         * tree-ssa-alias.c (set_initial_properties): Call it.
9028         Remove code clobbering escaped pointers.
9029
9030 2008-06-27  Richard Sandiford  <rdsandiford@googlemail.com>
9031
9032         * function.c (allocate_struct_function): Only allocate a unique
9033         funcdef_no if the decl is nonzero.
9034
9035 2008-06-27  Richard Sandiford  <rdsandiford@googlemail.com>
9036
9037         * config/mips/mips-protos.h (mips_split_const_insns): Declare.
9038         * config/mips/mips.c (mips_split_const_insns): New function.
9039         * config/mips/mips.md (move_type): New attribute.
9040         (mode): Move attribute definition earlier in file.  Add "TI" and "TF".
9041         (dword_mode): New attribute.
9042         (type): Avoid long line.  Map "move_type"s to "type"s,
9043         choosing "multi" for doubleword moves if appropriate.
9044         Swap MTC/MFC comments to match their declaration order.
9045         (extended_mips16): Default to "yes" if "move_type" is "sll0",
9046         "type" is "branch" or "jal" is "direct".
9047         (length): Handle "extended_mips16" first.  Make the default
9048         "0" for "ghost" instructions.  Set the length from "move_type".
9049         (truncdisi2, truncdihi2, truncdiqi2): Use "move_type" instead
9050         of "type", with "sll0" for the register alternative.  Remove the
9051         "extended_mips16" attribute.
9052         (zero_extendsidi2, *clear_upper32): Use "move_type" instead
9053         of "type", with "shift_shift" for the register alternative.
9054         Remove the "length" attribute.
9055         (*extend<SHORT:mode><GPR:mode>2, *extendqihi2): Likewise.
9056         (*zero_extend<SHORT:mode><GPR:mode>2): Use "move_type" instead
9057         of "type", with "andi" for the register alternative.
9058         (*zero_extendqihi2): Likewise.
9059         (*zero_extend<SHORT:mode><GPR:mode>2_mips16e): Use a "move_type"
9060         of "andi" instead of a "type" of "arith".
9061         (*zero_extend<SHORT:mode><GPR:mode>2_mips16): Use "move_type"
9062         instead of "type".
9063         (*zero_extendqihi2_mips16, mov_<load>l, mov_<load>r, mov_<store>l)
9064         (mov_<store>r, *mov<mode>_ra): Likewise.
9065         (extendsidi2): Use "move_type" instead of "type", with "move"
9066         for the register alternative.
9067         (*extend<SHORT:mode><GPR:mode>2_mips16e): Use "move_type" instead
9068         of "type", with "signext" for the register alternative.
9069         (*extend<SHORT:mode><GPR:mode>2_se<SHORT:size>): Likewise.
9070         (*extendqihi2_mips16e, *extendqihi2_seb): Likewise.
9071         (fix_truncdfsi2_insn, fix_truncsfsi2_insn, fix_truncdfdi2)
9072         (fix_truncsfdi2, floatsidf2, floatdidf2, floatsisf2, floatdisf2)
9073         (floatdisf2, *branch_equality<mode>_mips16): Likewise.
9074         (unnamed branch insn): Likewise.
9075         (*movdi_gp32_fp64): Fold into...
9076         (*movdi_32bit): ...here.
9077         (*movdf_hardfloat_64bit, *movdf_hardfloat_32bit): Combine into...
9078         (*movdf_hardfloat): ...this new pattern.
9079         (*movdf_softfloat): Remove redundant FPR alternatives.
9080         (*movti, *movti_mips16, *movtf, *movtf_mips16): Add "mode" attributes.
9081         (*movv2sf_hardfloat_64bit, *movv2sf_hardfloat_32bit): Combine into...
9082         (*movv2sf): ...this new pattern.  Use "DF" rather than "SF" for
9083         the "move" attribute.
9084         (*movdi_32bit): Use "move_type" instead of "type" and remove the
9085         "length" attribute.  Use "fpload" and "fpstore" instead of "load"
9086         and "store" for COP loads and stores.
9087         (*movdi_32bit_mips16, *movdi_64bit, *movsi_internal, movcc)
9088         (*movhi_internal, *movhi_mips16, *movqi_internal, *movqi_mips16)
9089         (*movsf_hardfloat, *movsf_softfloat, *movsi_mips16, *movdf_hardfloat)
9090         (*movdf_softfloat, *movdf_mips16, *movti, *movti_mips16, *movtf)
9091         (*movtf_mips16, *movv2sf): Likewise.
9092         (mfhi<GPR:mode>_<HILO:mode>, mflo<GPR:mode>_<HILO:mode>)
9093         (load_low<mode>, load_high<mode>, store_word<mode>, mthc1<mode>)
9094         (mfhc1<mode>): Use "move_type" instead of "move".
9095         (*low<mode>_mips16): Use "extended_mips16" instead of "length".
9096         (loadgp_blockage): Remove the "length" attribute.
9097         (blockage, set_got_version, update_got_version): Likewise.
9098         (call_internal): Remove the "extended_mips16" attribute.
9099         (call_value_internal, call_value_multiple_internal): Likewise.
9100         * config/mips/loongson.md (mov<mode>_internal): Use "move_type"
9101         instead of "move".
9102         * config/mips/mips-dsp.md (mips_lbux, mips_lhx, mips_lwx): Remove
9103         the "length" attribute.
9104
9105 2008-06-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9106
9107         * c-format.c (handle_format_attribute): Fix -Wc++-compat and/or
9108         -Wcast-qual warnings.
9109         * c-pragma.c (dpm_eq, handle_pragma_push_macro,
9110         handle_pragma_pop_macro): Likewise.
9111         * collect2.c (resolve_lib_name): Likewise.
9112         * config/arc/arc.c (arc_init): Likewise.
9113         * config/arm/arm.c (neon_builtin_compare,
9114         locate_neon_builtin_icode): Likewise.
9115         * config/arm/pe.c (arm_mark_dllexport, arm_pe_unique_section): Likewise.
9116         * config/bfin/bfin.c (bfin_init_machine_status,
9117         bfin_optimize_loop): Likewise.
9118         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Likewise.
9119         * config/cris/cris.c (cris_init_expanders): Likewise.
9120         * config/darwin-c.c (frameworks_in_use, add_framework): Likewise.
9121         * config/darwin.c (machopic_indirection_eq,
9122         machopic_indirection_name, machopic_output_indirection): Likewise.
9123         * config/frv/frv.c (frv_init_machine_status, frv_compare_insns,
9124         frv_io_check_address, frv_io_handle_set, frv_io_handle_use_1,
9125         frv_optimize_membar): Likewise.
9126         * config/i386/cygwin.h (mingw_scan,
9127         GCC_DRIVER_HOST_INITIALIZATION): Likewise.
9128         * config/i386/cygwin1.c (mingw_scan): Likewise.
9129         * config/i386/i386.c (machopic_output_stub): Likewise.
9130         * config/i386/winnt.c (gen_stdcall_or_fastcall_suffix,
9131         i386_pe_unique_section): Likewise.
9132         * config/ia64/ia64.c (ia64_init_machine_status,
9133         ia64_h_i_d_extended, get_free_bundle_state, bundling, ia64_reorg):
9134         Likewise.
9135         * config/iq2000/iq2000.c, iq2000_init_machine_status): Likewise.
9136         * config/m68hc11/m68hc11.c (m68hc11_encode_label): Likewise.
9137         * config/m68k/m68k.c (m68k_handle_option,
9138         m68k_sched_md_init_global): Likewise.
9139         * config/mcore/mcore.c (mcore_mark_dllexport, mcore_mark_dllimport,
9140         mcore_unique_section): Likewise.
9141         * config/mips/mips.c (mips_block_move_straight,
9142         mips16_rewrite_pool_refs, mips_sim_wait_regs_2, mips_sim_record_set):
9143         Likewise.
9144         * config/mmix/mmix.c (mmix_init_machine_status,
9145         mmix_encode_section_info): Likewise.
9146         * config/pa/pa.c (pa_init_machine_status, hppa_encode_label): Likewise.
9147         * config/rs6000/rs6000.c (rs6000_init_machine_status,
9148         print_operand_address, output_toc, redefine_groups,
9149         rs6000_elf_encode_section_info, machopic_output_stub): Likewise.
9150         * config/s390/s390.c (s390_init_machine_status): Likewise.
9151         * config/score/score.c (score_block_move_straight,
9152         score_block_move_loop_body): Likewise.
9153         * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
9154         * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
9155         * emit-rtl.c (find_auto_inc): Likewise.
9156         * gcc.c (translate_options, process_command): Likewise.
9157         * reorg.c (dbr_schedule): Likewise.
9158         * sdbout.c (sdbout_start_source_file, sdbout_init): Likewise.
9159         * xcoffout.c (xcoffout_declare_function): Likewise.
9160
9161 2008-06-27  Daniel Berlin  <dberlin@dberlin.org>
9162
9163         * tree-ssa-structalias.c (find_func_aliases): Trivial fix to get
9164         ipa-pta working again.
9165
9166 2008-06-27  David Edelsohn  <edelsohn@gnu.org>
9167
9168         * config/rs6000/t-aix52: Append large data option to LDFLAGS for
9169         genautomata.
9170
9171 2008-06-27  Edmar Wienskoski  <edmar@freescale.com>
9172
9173         * config.gcc (powerpc*-*-*): Add new core e500mc.
9174         * config/rs6000/e500mc.md: New file.
9175         * config/rs6000/rs6000.c (processor_costs): Add new costs for
9176         e500mc.
9177         (rs6000_override_options): Add e500mc case to
9178         processor_target_table. Altivec and Spe options not allowed
9179         with e500mc. Add isel instruction to e500mc by
9180         default. Initialize rs6000_cost for e500mc.
9181         (rs6000_issue_rate): Set issue rate for e500mc.
9182         * config/rs6000/rs6000.h (processor_type): Add
9183         PROCESSOR_PPCE500MC.
9184         (ASM_CPU_SPEC): Add e500mc.
9185         Set TARGET_ISEL to rs6000_isel.
9186         * config/rs6000/e500.h: Remove redefinition of TARGET_ISEL.
9187         (CHECK_E500_OPTIONS): Remove TARGET_ISEL.
9188         * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce500mc.
9189         Include e500mc.md.
9190         * doc/invoke.texi: Add e500mc to list of cpus.
9191
9192 2008-06-27  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
9193
9194         PR c/34867
9195         * c-lex.c (lex_charconst): Initialize unsignedp.
9196
9197 2008-06-27  Olivier Hainque  <hainque@adacore.com>
9198
9199         * gimplify.c (gimplify_modify_expr_to_memset): Assert our
9200         documented assumptions.
9201
9202 2008-06-26  H.J. Lu  <hongjiu.lu@intel.com>
9203
9204         * dwarf2out.c: Remove trailing white spaces.  Break long line
9205         in comments.
9206
9207 2008-06-26  Richard Sandiford  <rdsandiford@googlemail.com>
9208
9209         * libfuncs.h (LTI_synchronize): New libfunc_index.
9210         (synchronize_libfunc): Declare.
9211         * builtins.c (expand_builtin_synchronize): Consider using
9212         synchronize_libfunc before falling back on an asm blockage.
9213         * config/mips/mips.c: Include libfuncs.h
9214         (mips_init_libfuncs): Initialize synchronize_libfunc for TARGET_MIPS16.
9215
9216 2008-06-26  Nathan Froyd  <froydnj@codesourcery.com>
9217
9218         * config/rs6000/rs6000.c (emit_allocate_stack): Add copy_r11
9219         parameter.  Copy stack_reg to r11 where appropriate.
9220         (no_global_regs_above): Add gpr parameter.
9221         (rs6000_stack_info): Only add padding for SPE save area if we
9222         are saving SPE GPRs and CR.
9223         (saveres_routine_syms): New variable.
9224         (FIRST_SAVRES_REGISTER, LAST_SAVRES_REGISTER, N_SAVRES_REGISTERS):
9225         Define.
9226         (rs6000_savres_routine_sym): New function.
9227         (rs6000_emit_stack_reset, rs6000_restore_saved_cr): New functions,
9228         split out of...
9229         (rs6000_emit_epilogue): ...here.  Use rs6000_use_multiple_p and
9230         rs6000_savres_strategy.  Restore GPRs out-of-line if appropriate.
9231         Tweak FPR out-of-line saving.
9232         (rs6000_make_savres_rtx): New function.
9233         (rs6000_use_multiple_p): New function.
9234         (rs6000_savres_strategy): New function.
9235         (rs6000_emit_prologue): Use rs6000_savres_strategy.  Save GPRs
9236         out-of-line if appropriate.
9237         * config/rs6000/sysv4.h (FP_SAVE_INLINE): Save FPRs out-of-line
9238         if we are optimizing for size.
9239         (GP_SAVE_INLINE): Define.
9240         (SAVE_FP_SUFFIX, RESTORE_FP_SUFFIX): Only use _l on 64-bit targets.
9241         * config/rs6000/darwin.h (GP_SAVE_INLINE): Define.
9242         * config/rs6000/aix.h (GP_SAVE_INLINE): Define.
9243         * config/rs6000/rs6000.md (*save_gpregs_<mode>): New insn.
9244         (*save_fpregs_<mode>): Add use of r11.
9245         (*restore_gpregs_<mode>): New insn.
9246         (*return_and_restore_gpregs_<mode>): New insn.
9247         (*return_and_restore_fpregs_<mode>): Adjust to clobber LR and
9248         use r11.
9249         * config/rs6000/spe.md (*save_gpregs_spe): New insn.
9250         (*restore_gpregs_spe): New insn.
9251         (*return_and_restore_gpregs_spe): New insn.
9252         * config/rs6000/predicates.md (save_world_operation): Fix check.
9253
9254 2008-06-26  Steven Bosscher  <steven@gcc.gnu.org>
9255
9256         * tree-into-ssa (insert_phi_nodes_for): 'var' must be a DECL at
9257         this point, so assert that.
9258
9259 2008-06-26  Steven Bosscher  <steven@gcc.gnu.org>
9260
9261         * cfganal.c: Include vec.h and vecprim.h.
9262         (compute_idf): Import from...
9263         * tree-into-ssa (compute_idf): ...here.
9264         * basic-block.h (compute_idf): Export.
9265
9266 2008-06-26  Joseph Myers  <joseph@codesourcery.com>
9267
9268         * c-decl.c (merge_decls): Use !current_function_decl to check for
9269         extern declaration of C99 inline function being at file scope.
9270
9271 2008-06-25  John David Anglin  <dave.anglin@gcc-cnrc.gc.ca>
9272
9273         * config.gcc (hppa[12]*-*-hpux10*): Don't use fixproto.
9274
9275 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9276
9277         * alias.c (record_alias_subset, init_alias_analysis): Fix
9278         -Wc++-compat and/or -Wcast-qual warnings.
9279         * attribs.c (lookup_attribute_spec): Likewise.
9280         * bb-reorder.c (find_traces, rotate_loop, find_traces_1_round,
9281         copy_bb, connect_traces,
9282         find_rarely_executed_basic_blocks_and_cr): Likewise.
9283         * bt-load.c (find_btr_def_group, add_btr_def, new_btr_user,
9284         note_btr_set, migrate_btr_defs): Likewise.
9285         * builtins.c (result_vector, expand_builtin_memcpy,
9286         expand_builtin_mempcpy_args, expand_builtin_strncpy,
9287         builtin_memset_read_str, expand_builtin_printf,
9288         fold_builtin_memchr, rewrite_call_expr, fold_builtin_printf):
9289         Likewise.
9290         * caller-save.c (mark_set_regs): Likewise.
9291         * calls.c (expand_call, emit_library_call_value_1): Likewise.
9292         * cgraph.c (cgraph_edge): Likewise.
9293         * combine.c (likely_spilled_retval_1): Likewise.
9294         * coverage.c (htab_counts_entry_hash, htab_counts_entry_eq,
9295         htab_counts_entry_del, get_coverage_counts): Likewise.
9296         * cselib.c (new_elt_list, new_elt_loc_list, entry_and_rtx_equal_p,
9297         new_cselib_val): Likewise.
9298         * dbgcnt.c (dbg_cnt_process_opt): Likewise.
9299         * dbxout.c (dbxout_init, dbxout_type, output_used_types_helper):
9300         Likewise.
9301         * df-core.c (df_compact_blocks): Likewise.
9302         * df-problems.c (df_grow_bb_info, df_chain_create): Likewise.
9303         * df-scan.c (df_grow_reg_info, df_ref_create,
9304         df_insn_create_insn_record, df_insn_rescan, df_notes_rescan,
9305         df_ref_compare, df_ref_create_structure, df_bb_refs_record,
9306         df_record_entry_block_defs, df_record_exit_block_uses,
9307         df_bb_verify): Likewise.
9308         * df.h (DF_REF_EXTRACT_WIDTH_CONST, DF_REF_EXTRACT_OFFSET_CONST,
9309         DF_REF_EXTRACT_MODE_CONST): New.
9310         * dominance.c (get_immediate_dominator, get_dominated_by,
9311         nearest_common_dominator, root_of_dom_tree,
9312         iterate_fix_dominators, first_dom_son, next_dom_son): Fix
9313         -Wc++-compat and/or -Wcast-qual warnings.
9314         * dse.c (clear_alias_set_lookup, get_group_info, gen_rtx_MEM,
9315         record_store, replace_read, check_mem_read_rtx, scan_insn,
9316         dse_step1, dse_record_singleton_alias_set): Likewise.
9317         * dwarf2asm.c (dw2_force_const_mem): Likewise.
9318
9319 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9320
9321         * dwarf2out.c (new_cfi, queue_reg_save, dwarf2out_begin_prologue,
9322         dwarf2out_frame_init, new_loc_descr, new_die, lookup_decl_die,
9323         lookup_decl_loc, add_var_loc_to_decl, compute_section_prefix,
9324         assign_symbol_names, htab_cu_hash, htab_cu_eq, htab_cu_del,
9325         build_abbrev_table, new_loc_list, output_comp_unit, add_arange,
9326         add_ranges_num, add_ranges_by_labels, file_info_cmp,
9327         file_name_acquire, output_file_names, add_const_value_attribute,
9328         premark_used_types_helper, file_table_eq, file_table_hash,
9329         lookup_filename, dwarf2out_var_location, dwarf2out_source_line,
9330         dwarf2out_init, file_table_relative_p): Fix -Wc++-compat and/or
9331         -Wcast-qual warnings.
9332         * ebitmap.c (ebitmap_array_grow, ebitmap_array_init,
9333         ebitmap_alloc, ebitmap_ior, ebitmap_and_compl): Likewise.
9334         * emit-rtl.c (get_mem_attrs, get_reg_attrs, gen_rtvec,
9335         gen_reg_rtx, start_sequence, init_emit): Likewise.
9336         * et-forest.c (et_new_occ, et_new_tree): Likewise.
9337         * except.c (init_eh_for_function, gen_eh_region,
9338         remove_unreachable_regions, add_ehl_entry, duplicate_eh_regions_1,
9339         arh_to_landing_pad, arh_to_label, add_action_record,
9340         add_call_site, switch_to_exception_section): Likewise.
9341         * expmed.c (synth_mult): Likewise.
9342         * expr.c (gen_group_rtx, emit_group_load, emit_group_store,
9343         store_expr): Likewise.
9344         * final.c (shorten_branches, final_scan_insn, debug_queue_symbol):
9345         Likewise.
9346         * function.c (assign_stack_temp_for_type,
9347         allocate_struct_function, match_asm_constraints_1): Likewise.
9348         * gcov-io.c (gcov_allocate): Likewise.
9349         * gcse.c (GNEW, GCNEW, GNEWVEC, GCNEWVEC, GRESIZEVEC, GNEWVAR,
9350         GCNEWVAR, GRESIZEVAR, GOBNEW, GOBNEWVAR): New.
9351         (gcse_main, alloc_gcse_mem, alloc_gcse_mem, alloc_reg_set_mem,
9352         record_one_set, insert_expr_in_table, insert_set_in_table,
9353         dump_hash_table, compute_hash_table_work, alloc_hash_table,
9354         pre_ldst_expr_hash, pre_ldst_expr_eq, find_rtx_in_ldst,
9355         reg_set_info, reg_clear_last_set): Fix -Wc++-compat and/or
9356         -Wcast-qual warnings.
9357
9358 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9359
9360         * cse.c (approx_reg_cost_1, cse_insn): Fix -Wc++-compat and/or
9361         -Wcast-qual warnings.
9362         * gcc.c (process_command): Likewise.
9363         * genattrtab.c (oballoc): Use XOBNEW.
9364         (oballocvec): Define.
9365         (attr_hash_add_rtx, attr_hash_add_string, attr_string,
9366         get_attr_value, fill_attr, make_length_attrs, gen_attr, gen_insn,
9367         gen_delay, find_attr, gen_insn_reserv, gen_bypass_1): Fix
9368         -Wc++-compat and/or -Wcast-qual warnings.
9369         * genautomata.c (XCREATENODE, XCREATENODEVEC, XCREATENODEVAR,
9370         XCOPYNODE, XCOPYNODEVEC, XCOPYNODEVAR): New.
9371         (gen_cpu_unit, gen_query_cpu_unit, gen_bypass, gen_excl_set,
9372         gen_presence_absence_set, gen_automaton, gen_regexp_el,
9373         gen_regexp_repeat, gen_regexp_allof, gen_regexp_oneof,
9374         gen_regexp_sequence, gen_reserv, gen_insn_reserv, process_excls,
9375         add_excls, process_presence_absence_names,
9376         process_presence_absence_patterns, add_presence_absence,
9377         process_regexp, add_advance_cycle_insn_decl, get_free_alt_state,
9378         get_free_state, add_arc, get_free_automata_list_el,
9379         form_reserv_sets_list, copy_insn_regexp, transform_1, transform_2,
9380         transform_3, cache_presence, create_ainsns, create_automata,
9381         create_state_ainsn_table, dfa_insn_code_enlarge,
9382         output_trans_func, output_min_issue_delay_func,
9383         output_dead_lock_func, output_reset_func,
9384         output_get_cpu_unit_code_func, output_dfa_start_func,
9385         expand_automata): Likewise.
9386         * genextract.c (gen_insn): Likewise.
9387         * gengtype-lex.l: Likewise.
9388         * gengtype.c (read_input_list, adjust_field_type,
9389         process_gc_options): Likewise.
9390         * genoutput.c (note_constraint): Likewise.
9391         * genpreds.c (mangle, add_constraint): Likewise.
9392         * genrecog.c (process_define_predicate, new_decision,
9393         add_to_sequence): Likewise.
9394         * gensupport.c (record_insn_name): Likewise.
9395
9396 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9397
9398         * config/i386/driver-i386.c (detect_caches_amd,
9399         detect_caches_intel, host_detect_local_cpu): Fix -Wc++-compat
9400         and/or -Wcast-qual warnings.
9401         *ggc-common.c (ggc_mark_roots, gt_pch_note_object,
9402         gt_pch_note_reorder, relocate_ptrs, write_pch_globals,
9403         gt_pch_save): Likewise.
9404         * ggc-page.c (push_depth, push_by_depth, alloc_anon, alloc_page,
9405         gt_ggc_m_S, clear_marks, ggc_pch_read): Likewise.
9406         * global.c (compute_regsets): Likewise.
9407         * graph.c (print_rtl_graph_with_bb, clean_graph_dump_file,
9408         finish_graph_dump_file): Likewise.
9409         * haifa-sched.c (schedule_block, extend_h_i_d, extend_ready,
9410         unlink_bb_notes): Likewise.
9411         * integrate.c (get_hard_reg_initial_val): Likewise.
9412         * ipa-prop.c (ipa_push_func_to_list): Likewise.
9413         * ipa-struct-reorg.c (gen_var_name, gen_cluster_name): Likewise.
9414         * local-alloc.c (update_equiv_regs): Likewise.
9415         * loop-invariant.c (check_invariant_table_size,
9416         hash_invariant_expr, eq_invariant_expr, find_or_insert_inv):
9417         Likewise.
9418         * loop-iv.c (check_iv_ref_table_size, analyzed_for_bivness_p,
9419         altered_reg_used, mark_altered): Likewise.
9420         * loop-unroll.c (si_info_eq, ve_info_eq, allocate_basic_variable,
9421         insert_var_expansion_initialization,
9422         combine_var_copies_in_loop_exit, apply_opt_in_copies,
9423         release_var_copies): Likewise.
9424         * matrix-reorg.c (mat_acc_phi_hash, mat_acc_phi_eq, mtt_info_eq,
9425         analyze_matrix_decl, add_allocation_site, analyze_transpose,
9426         analyze_accesses_for_phi_node, check_var_notmodified_p,
9427         check_allocation_function, find_sites_in_func,
9428         record_all_accesses_in_func, transform_access_sites,
9429         transform_allocation_sites): Likewise.
9430         * omp-low.c (new_omp_region, create_omp_child_function_name,
9431         check_omp_nesting_restrictions, check_combined_parallel,
9432         lower_omp_2, diagnose_sb_1, diagnose_sb_2): Likewise.
9433         * optabs.c (no_conflict_move_test, gen_libfunc, gen_fp_libfunc,
9434         gen_intv_fp_libfunc, gen_interclass_conv_libfunc,
9435         gen_intraclass_conv_libfunc, set_optab_libfunc, set_conv_libfunc):
9436         Likewise.
9437         * opts-common.c (prune_options): Likewise.
9438         * opts.c (add_input_filename, print_filtered_help,
9439         get_option_state): Likewise.
9440         * params.c (add_params): Likewise.
9441         * passes.c (set_pass_for_id, next_pass_1,
9442         do_per_function_toporder, pass_fini_dump_file): Likewise.
9443         * postreload.c (reload_cse_simplify_operands): Likewise.
9444         * predict.c (tree_predicted_by_p, tree_predict_edge,
9445         clear_bb_predictions, combine_predictions_for_bb): Likewise.
9446
9447 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9448
9449         * ra.h (add_neighbor): Fix -Wc++-compat and/or -Wcast-qual
9450         warnings.
9451         * recog.c (check_asm_operands, validate_change_1): Likewise.
9452         * reg-stack.c (check_asm_stack_operands, subst_asm_stack_regs,
9453         subst_asm_stack_regs): Likewise.
9454         * regclass.c (regclass, som_hash, som_eq, record_subregs_of_mode,
9455         cannot_change_mode_set_regs, invalid_mode_change_p): Likewise.
9456         * regmove.c (reg_is_remote_constant_p): Likewise.
9457         * regrename.c (regrename_optimize, scan_rtx_reg,
9458         kill_clobbered_value, kill_set_value, kill_autoinc_value):
9459         Likewise.
9460         * regstat.c (regstat_init_n_sets_and_refs, regstat_compute_ri,
9461         regstat_compute_calls_crossed): Likewise.
9462         * reload1.c (init_reload, new_insn_chain,
9463         has_nonexceptional_receiver, reload, copy_reloads,
9464         calculate_needs_all_insns, init_elim_table): Likewise.
9465         * rtl-factoring.c (compute_rtx_cost, fill_hash_bucket): Likewise.
9466         * rtl.c (shallow_copy_rtx_stat): Likewise.
9467         * rtlanal.c (parms_set): Likewise.
9468         * sbitmap.c (sbitmap_alloc, sbitmap_alloc_with_popcount,
9469         sbitmap_resize, sbitmap_vector_alloc): Likewise.
9470         * sched-ebb.c (earliest_block_with_similiar_load,
9471         add_deps_for_risky_insns): Likewise.
9472         * sched-rgn.c (find_rgns, gather_region_statistics, extend_rgns,
9473         schedule_region): Likewise.
9474         * see.c (eq_descriptor_pre_extension,
9475         hash_descriptor_pre_extension, hash_del_pre_extension,
9476         eq_descriptor_properties, hash_descriptor_properties,
9477         hash_del_properties, see_seek_pre_extension_expr,
9478         see_initialize_data_structures, see_print_register_properties,
9479         see_print_pre_extension_expr, see_delete_merged_def_extension,
9480         see_delete_unmerged_def_extension, see_emit_use_extension,
9481         see_pre_delete_extension, see_map_extension, see_commit_changes,
9482         see_analyze_merged_def_local_prop,
9483         see_analyze_merged_def_local_prop,
9484         see_analyze_unmerged_def_local_prop, see_analyze_use_local_prop,
9485         see_set_prop_merged_def, see_set_prop_unmerged_def,
9486         see_set_prop_unmerged_use, see_print_one_extension,
9487         see_merge_one_use_extension, see_merge_one_def_extension,
9488         see_store_reference_and_extension, see_update_uses_relevancy,
9489         see_update_defs_relevancy): Likewise.
9490         * statistics.c (hash_statistics_hash, hash_statistics_eq,
9491         hash_statistics_free, curr_statistics_hash): Likewise.
9492         * stmt.c (parse_output_constraint, decl_overlaps_hard_reg_set_p,
9493         expand_asm_operands, expand_return, case_bit_test_cmp,
9494         expand_case): Likewise.
9495         * stor-layout.c (start_record_layout): Likewise.
9496         * stringpool.c (ggc_alloc_string, gt_pch_n_S,
9497         gt_pch_save_stringpool): Likewise.
9498         * tree-data-ref.c (hash_stmt_vertex_info,
9499         have_similar_memory_accesses_1, ref_base_address_1): Likewise.
9500         * tree-ssa-phiopt.c (name_to_bb_hash): Likewise.
9501
9502 2008-06-25  Uros Bizjak  <ubizjak@gmail.com>
9503
9504         PR target/36627
9505         * config/i386/i386.md : Change constraints of HImode and QImode
9506         immediate operands from "i" to "n".  Change SImode "ni" constraint to
9507         "i" and SImode "rmi" constraint to "g".  Remove all constraints
9508         from const0_operand and const1_operand predicated operands.
9509         (i): Change QImode and HImode attribute from "i" to "n".
9510         (*subqi_2): Change HImode operands to QImode.
9511         (*subqi_3): Ditto.
9512
9513 2008-06-25  Olivier Hainque  <hainque@adacore.com>
9514
9515         * Makefile.in (GTFILES_H): Use | instead of ; as separator in
9516         sed substitutions.
9517
9518 2008-06-25  Richard Guenther  <rguenther@suse.de>
9519
9520         * tree-ssa-structalias.c (fieldoff_compare): Make sure to
9521         not overflow the result type.
9522
9523 2008-06-25  Richard Guenther  <rguenther@suse.de>
9524
9525         * tree-vn.c (vn_add): Handle TRUTH_*_EXPR.
9526         (vn_lookup): Likewise.
9527
9528 2008-06-25  Richard Guenther  <rguenther@suse.de>
9529
9530         PR tree-optimization/35518
9531         * fold-const.c (fold_ternary): Strip trivial BIT_FIELD_REFs.
9532         * tree-sra.c (instantiate_element): Use fold_build3 to build
9533         BIT_FIELD_REFs.
9534         (try_instantiate_multiple_fields): Likewise.
9535
9536 2008-06-24  Andrew Pinski  <andrew_pinski@playstation.sony.com>
9537
9538         * config/rs6000/rs6000.md: Change all string instruction's clobber to
9539         be early clobbers.
9540
9541 2008-06-24  Andrew Pinski  <andrew_pinski@playstation.sony.com>
9542
9543         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Set
9544         use_backchain_to_restore_sp to true
9545         if the offset of the link register save area would go over the 32k - 1
9546         offset limit of the load
9547         instructions.
9548
9549 2008-06-25  Hans-Peter Nilsson  <hp@axis.com>
9550
9551         * doc/invoke.texi (Optimize Options) <fstrict-aliasing>: Add
9552         anchor for the type-punning blurb.  Cross-reference "Structures
9553         unions enumerations and bit-fields implementation".  Provide a
9554         cast-through-pointer example.  Make final sentence self-contained.
9555         * doc/implement-c.texi (Structures unions enumerations and
9556         bit-fields implementation): Cross-reference the type-punning blurb
9557         in the -fstrict-aliasing documentation.
9558
9559 2008-06-24  Andrew Pinski  <andrew_pinski@playstation.sony.com>
9560
9561         PR middle-end/36594
9562         * builtins.c (expand_builtin_nonlocal_goto): Stabilize the address of
9563         the memory instead of the memory itself for the save area.
9564
9565 2008-06-24  Olivier Hainque  <hainque@adacore.com>
9566             Nicolas Roche  <roche@adacore.com>
9567
9568         * gengtype.c (srcdir_len): size_t instead of int.
9569         (get_file_realbasename): New function.  For F a filename, the real
9570         basename of F, with all the path components stripped.
9571         (get_file_srcdir_relative_path): New function.  For F a filename, the
9572         relative path to F from $(srcdir).
9573         (get_file_basename): Rewrite using get_file_srcdir_relative_path and
9574         get_file_realbasename.  Adjust the head comment.
9575         (get_prefix_langdir_index): New function. For F a filename, return the
9576         lang_dir_names[] relative index of the language directory that is
9577         a prefix in F.
9578         (get_file_langdir): For F a filename, return the name of the language
9579         directory where F is located.
9580         (get_file_gtfilename): New function. The gt- output file name for an
9581         input filename F.
9582         (get_output_file_with_visibility): Replace in-line computations with
9583         uses of get_file_gtfilename and get_prefix_langdir_index.
9584         * Makefile.in (GTFILES_H): Adjust to match what gengtype generates.
9585
9586 2008-06-24  Jakub Jelinek  <jakub@redhat.com>
9587
9588         PR tree-optimization/36504
9589         * tree-ssa-loop-prefetch.c (gather_memory_references_ref): Skip
9590         references without base address.
9591
9592 2008-06-23  Uros Bizjak  <ubizjak@gmail.com>
9593
9594         PR middle-end/36584
9595         * calls.c (expand_call): Increase alignment for recursive functions.
9596
9597 2008-06-23  Anatoly Sokolov  <aesok@post.ru>
9598
9599         * config/avr/avr.c (avr_function_value): Add new 'outgoing' argument.
9600         (TARGET_FUNCTION_VALUE): New define.
9601         * config/avr/avr-protos.h (avr_function_value): Remove declaration.
9602         * config/avr/avr.h (FUNCTION_VALUE): Remove.
9603
9604 2008-06-23  Uros Bizjak  <ubizjak@gmail.com>
9605
9606         * config/i386/i386.md (fmodxf3): Change sequence of move instructions.
9607         (fmod<mode>3): Ditto.
9608         (remainderxf3): Ditto.
9609         (remainder<mode>3): Ditto.
9610
9611 2008-06-23  Jakub Jelinek  <jakub@redhat.com>
9612
9613         PR target/36533
9614         * emit-rtl.c (set_reg_attrs_from_value): Do nothing if
9615         REG is a hard register.
9616
9617         PR tree-optimization/36508
9618         * tree-ssa-pre.c (compute_antic): Allow num_iterations up to
9619         499, don't check it at all in release compilers.
9620
9621 2008-06-23  Uros Bizjak  <ubizjak@gmail.com>
9622
9623         * config/i386/i386.md (*fop_<mode>_1_i387): Use SSE_FLOAT_MODE_P
9624         together with SSE_TARGET_MATH to disable insn pattern.
9625         (*fop_<MODEF:mode>_2_i387): Ditto.
9626         (*fop_<MODEF:mode>_3_i387): Ditto.
9627
9628 2008-06-22  Andy Hutchinson  <hutchinsonandy@aim.com>
9629
9630         * config/avr/avr.h (SUPPORTS_INIT_PRIORITY): Define.
9631
9632 2008-06-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
9633
9634         PR middle-end/34906
9635         * gimplify.c (gimplify_asm_expr): Check the return code of
9636         parse_output_constraint call, set function return and is_inout
9637         value if it failed.
9638
9639 2008-06-22  Ian Lance Taylor  <iant@google.com>
9640
9641         * c-lex.c (narrowest_unsigned_type): Change itk to int.
9642         (narrowest_signed_type): Likewise.
9643         * c-typeck.c (c_common_type): Change local variable mclass to enum
9644         mode_class, twice.
9645         (parser_build_binary_op): Compare the TREE_CODE_CLASS with
9646         tcc_comparison, not the tree code itself.
9647         * c-common.c (def_fn_type): Pass int, not an enum, to va_arg.
9648         (c_expand_expr): Cast modifier to enum expand_modifier.
9649         * c-common.h (C_RID_CODE): Add casts.
9650         (C_SET_RID_CODE): Define.
9651         * c-parser.c (c_parse_init): Use C_SET_RID_CODE.
9652         (c_lex_one_token): Add cast to avoid warning.
9653         (c_parser_objc_type_name): Rename local typename to type_name.
9654         (check_no_duplicate_clause): Change code parameter to enum
9655         omp_clause_code.
9656         (c_parser_omp_var_list_parens): Change kind parameter to enum
9657         omp_clause_code.
9658         (c_parser_omp_flush): Pass OMP_CLAUSE_ERROR, not 0, to
9659         c_parser_omp_list_var_parens.
9660         (c_parser_omp_threadprivate): Likewise.
9661         * cp/lex.c (init_reswords): Use C_SET_RID_CODE.
9662         * cp/parser.c (cp_lexer_get_preprocessor_token): Likewise.
9663         * c-format.c (NO_FMT): Define.
9664         (printf_length_specs): Use NO_FMT.
9665         (asm_fprintf_length_specs): Likewise.
9666         (gcc_diag_length_specs): Likewise.
9667         (scanf_length_specs): Likewise.
9668         (strfmon_length_specs): Likewise.
9669         (gcc_gfc_length_specs): Likewise.
9670         (printf_flag_specs): Change 0 to STD_C89.
9671         (asm_fprintf_flag_specs): Likewise.
9672         (gcc_diag_flag_specs): Likewise.
9673         (gcc_cxxdiag_flag_specs): Likewise.
9674         (scanf_flag_specs): Likewise.
9675         (strftime_flag_specs): Likewise.
9676         (strfmon_flag_specs): Likewise.
9677         (print_char_table): Likewise.
9678         (asm_fprintf_char_table): Likewise.
9679         (gcc_diag_char_table): Likewise.
9680         (gcc_tdiag_char_table): Likewise.
9681         (gcc_cdiag_char_table): Likewise.
9682         (gcc_cxxdiag_char_table): Likewise.
9683         (gcc_gfc_char_table): Likewise.
9684         (scan_char_table): Likewise.
9685         (time_char_table): Likewis.
9686         (monetary_char_table): Likewise.
9687         * c-format.h (BADLEN): Likewise.
9688
9689 2008-06-21  Ian Lance Taylor  <iant@google.com>
9690
9691         * tree.h (enum tree_code): Include all-tree.def, not tree.def.
9692         Define END_OF_BASE_TREE_CODES around inclusion.
9693         * tree.c (tree_code_type): New global array.
9694         (tree_code_length, tree_code_name): Likewise.
9695         * Makefile.in (TREE_H): Add all-tree.def, c-common.def, and
9696         $(lang_tree_files).
9697         (all-tree.def, s-alltree): New targets.
9698         (gencheck.h, s-gencheck): Remove.
9699         (tree.o): Depend upon all-tree.def.
9700         (build/gencheck.o): Remove gencheck.h dependency.
9701         (mostlyclean): Don't remove gencheck.h.
9702         * c-common.h (enum c_tree_code): Remove.
9703         * c-lang.c (tree_code_type): Remove.
9704         (tree_code_length, tree_code_name): Remove.
9705         * gencheck.c (tree_codes): Include all-tree.def, rather than
9706         tree.def, c-common.def, and gencheck.h.  Undefined DEFTREECODE
9707         after it is used.
9708         * tree-browser.c (tb_tree_codes): Include all-tree.def, rather
9709         than tree.def.
9710         * cp/cp-tree.h (enum cplus_tree_code): Remove.
9711         (operator_name_info): Size to MAX_TREE_CODES.
9712         (assignment_operator_name_info): Likewise.
9713         * cp/cp-lang.c (tree_code_type): Remove.
9714         (tree_code_length, tree_code_name): Remove.
9715         * cp/lex.c (operator_name_info): Size to MAX_TREE_CODES.
9716         (assignment_operator_name_info): Likewise.
9717         * cp/decl.c (grok_op_properties): Change LAST_CPLUS_TREE_CODE to
9718         MAX_TREE_CODES.
9719         * cp/mangle.c (write_expression): Likewise.
9720         * cp/Make-lang.in (CXX_TREE_H): Remove cp/cp-tree.def.
9721         * fortran/f95-lang.c (tree_code_type): Remove.
9722         (tree_code_length, tree_code_name): Remove.
9723         * java/java-tree.h (enum java_tree_code): Remove.
9724         * java/lang.c (tree_code_type): Remove.
9725         (tree_code_length, tree_code_name): Remove.
9726         * java/Make-lang.in (JAVA_TREE_H): Remove java/java-tree.def.
9727         * objc/objc-act.h (enum objc_tree_code): Remove.
9728         * objc/objc-lang.c (tree_code_type): Remove.
9729         (tree_code_length, tree_code_name): Remove.
9730         * objcp/objcp-lang.c (tree_code_type): Remove.
9731         (tree_code_length, tree_code_name): Remove.
9732         * ada/ada-tree.h (enum gnat_tree_code): Remove.
9733         * ada/Make-lang.in (ADA_TREE_H): Remove ada/ada-tre.def.
9734         * ada/misc.c (tree_code_type): Remove.
9735         (tree_code_length, tree_code_name): Remove.
9736
9737 2008-06-21  Bernhard Fischer  <aldot@gcc.gnu.org>
9738
9739         * tree-ssa-pre.c (fini_antic): Bitmap_sets have to be freed before
9740         the grand_bitmap_obstack.
9741
9742 2008-06-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9743
9744         * ggc.h (GGC_RESIZEVAR): New, reorder macros.
9745         * tracer.c (tail_duplicate): Fix for -Wc++-compat.
9746         * tree-affine.c (aff_combination_expand, free_name_expansion): Likewise.
9747         * tree-cfg.c (replace_by_duplicate_decl, replace_ssa_name,
9748         move_stmt_r, new_label_mapper): Likewise.
9749         * tree-complex.c (cvc_lookup): Likewise.
9750         * tree-dfa.c (create_function_ann): Likewise.
9751         * tree-dump.c (dump_register): Likewise.
9752         * tree-if-conv.c (tree_if_conversion, add_to_predicate_list,
9753         find_phi_replacement_condition): Likewise.
9754         * tree-inline.c (copy_phis_for_bb, estimate_num_insns_1,
9755         tree_function_versioning): Likewise.
9756         * tree-into-ssa.c (cmp_dfsnum): Likewise.
9757         * tree-iterator.c (tsi_link_before, tsi_link_after): Likewise.
9758         * tree-nested.c (lookup_field_for_decl, lookup_tramp_for_decl,
9759         get_nonlocal_debug_decl, convert_nonlocal_reference,
9760         convert_nonlocal_omp_clauses, get_local_debug_decl,
9761         convert_local_reference, convert_local_omp_clauses,
9762         convert_nl_goto_reference, convert_nl_goto_receiver,
9763         convert_tramp_reference, convert_call_expr): Likewise.
9764         * tree-outof-ssa.c (contains_tree_r): Likewise.
9765         * tree-parloops.c (reduction_phi, initialize_reductions,
9766         eliminate_local_variables_1, add_field_for_reduction,
9767         add_field_for_name, create_phi_for_local_result,
9768         create_call_for_reduction_1, create_loads_for_reductions,
9769         create_stores_for_reduction, create_loads_and_stores_for_name):
9770         Likewise.
9771         * tree-phinodes.c (allocate_phi_node): Likewise.
9772         * tree-predcom.c (order_drefs, execute_pred_commoning_cbck): Likewise.
9773         * tree-sra.c (sra_elt_hash, sra_elt_eq, lookup_element): Likewise.
9774         * tree-ssa-alias.c (get_mem_sym_stats_for): Likewise.
9775         * tree-ssa-coalesce.c (compare_pairs): Likewise.
9776         * tree-ssa-loop-im.c (mem_ref_in_stmt, memref_hash, memref_eq,
9777         memref_free, gather_mem_refs_stmt, vtoe_hash, vtoe_eq, vtoe_free,
9778         record_vop_access, get_vop_accesses, get_vop_stores): Likewise.
9779         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Likewise.
9780         * tree-ssa-sccvn.c (VN_INFO_GET, free_phi, free_reference,
9781         vn_nary_op_insert): Likewise.
9782         * tree-ssa.c (redirect_edge_var_map_add,
9783         redirect_edge_var_map_clear, redirect_edge_var_map_dup): Likewise.
9784         * tree-vectorizer.c (vectorize_loops): Likewise.
9785         * tree.c (make_node_stat, copy_node_stat, build_int_cst_wide,
9786         build_fixed, build_real, make_tree_binfo_stat, make_tree_vec_stat,
9787         tree_cons_stat, build1_stat, build_variant_type_copy,
9788         decl_init_priority_lookup, decl_fini_priority_lookup,
9789         decl_priority_info, decl_restrict_base_lookup,
9790         decl_restrict_base_insert, decl_debug_expr_lookup,
9791         decl_debug_expr_insert, decl_value_expr_lookup,
9792         decl_value_expr_insert, type_hash_eq, type_hash_lookup,
9793         type_hash_add, get_file_function_name, tree_check_failed,
9794         tree_not_check_failed, tree_range_check_failed,
9795         omp_clause_range_check_failed, build_omp_clause,
9796         build_vl_exp_stat): Likewise.
9797         * value-prof.c (gimple_histogram_value,
9798         gimple_duplicate_stmt_histograms): Likewise.
9799         * var-tracking.c (attrs_list_insert, attrs_list_copy,
9800         unshare_variable, variable_union_info_cmp_pos, variable_union,
9801         dataflow_set_different_1, dataflow_set_different_2,
9802         vt_find_locations, variable_was_changed, set_variable_part,
9803         emit_notes_for_differences_1, emit_notes_for_differences_2): Likewise.
9804         * varasm.c (prefix_name, emutls_decl, section_entry_eq,
9805         section_entry_hash, object_block_entry_eq,
9806         object_block_entry_hash, create_block_symbol,
9807         initialize_cold_section_name, default_function_rodata_section,
9808         strip_reg_name, set_user_assembler_name, const_desc_eq,
9809         build_constant_desc, output_constant_def, lookup_constant_def,
9810         const_desc_rtx_hash, const_desc_rtx_eq, const_rtx_hash_1,
9811         create_constant_pool, force_const_mem, compute_reloc_for_rtx_1,
9812         default_internal_label): Likewise.
9813         * varray.c (varray_init, varray_grow): Likewise.
9814         * vec.c (vec_gc_o_reserve_1, vec_heap_o_reserve_1): Likewise.
9815
9816 2008-06-20  Uros Bizjak  <ubizjak@gmail.com>
9817
9818         * config/i386/i386.md (*jcc_fused_1): Handle all valid compare
9819         operators for "test" insn.  Macroize insn using SWI mode macro.
9820         (*jcc_fused_2): Ditto.
9821         (*jcc_fused_3): Macroize insn using SWI mode macro.
9822         (*jcc_fused_4): Ditto.
9823
9824 2008-06-20  Bernhard Fischer  <aldot@gcc.gnu.org>
9825
9826         * tree-ssa-pre.c: Fix typo in comment.
9827         (init_antic, fini_antic): Add explicit funtions for
9828         initializing and deinitializing ANTIC and AVAIL sets.
9829         (create_expression_by_pieces): Fix typo in comment.
9830         Remove redundant set of new_stuff and use NULL_TREE instead of NULL.
9831         (execute_pre): Eventually dump details about ANTIC_IN.
9832
9833 2008-06-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9834
9835         * collect2.c (main, add_to_list): Fix for -Wc++-compat.
9836         * gcc.c (translate_options, init_spec, store_arg, read_specs,
9837         add_to_obstack, file_at_path, find_a_file, execute,
9838         add_preprocessor_option, add_assembler_option, add_linker_option,
9839         process_command, insert_wrapper, do_option_spec, do_self_spec,
9840         spec_path, do_spec_1, is_directory, main, used_arg,
9841         getenv_spec_function): Likewise.
9842         * tlink.c (symbol_hash_lookup, file_hash_lookup,
9843         demangled_hash_lookup, symbol_push, file_push, frob_extension):
9844         Likewise.
9845
9846 2008-06-19  Kenneth Zadeck <zadeck@naturalbridge.com>
9847
9848         * doc/rtl.texi: Updated subreg section.
9849
9850 2008-06-19  Jakub Jelinek  <jakub@redhat.com>
9851
9852         PR c++/36523
9853         * cgraphunit.c (cgraph_process_new_functions): Don't clear
9854         node->needed and node->reachable.
9855         * cgraphbuild.c (record_reference): Handle OMP_PARALLEL and OMP_TASK.
9856         * omp-low.c (delete_omp_context): Call finalize_task_copyfn.
9857         (expand_task_call): Don't call expand_task_copyfn.
9858         (expand_task_copyfn): Renamed to...
9859         (finalize_task_copyfn): ... this.
9860
9861 2008-06-19  Jan Hubicka  <jh@suse.cz>
9862
9863         * builtins.c (expand_builtin_nonlocal_goto): Stabilize r_sp before
9864         clobbering framepointer.
9865
9866 2008-06-19  Jan Hubicka  <jh@suse.cz>
9867
9868         * tree-optimize.c (execute_early_local_optimizations): Set
9869         cgraph_state only at first invocation.
9870
9871 2008-06-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9872
9873         * system.h (-Wc++-compat): Activate as a warning, no an error.
9874
9875 2008-06-19  Uros Bizjak  <ubizjak@gmail.com>
9876
9877         * config/i386/i386.md (*jcc_fused_1): Use ASM_COMMENT_START
9878         instead of "#" in insn asm template.
9879         (*jcc_fused_2): Ditto.
9880
9881 2008-06-19  Uros Bizjak  <ubizjak@gmail.com>
9882
9883         * config/i386/i386.h (ix86_tune_indices)
9884         [X86_TUNE_FUSE_CMP_AND_BRANCH]: New.
9885         (TARGET_FUSE_CMP_AND_BRANCH): New define.
9886         * config/i386/i386.md (*jcc_fused_1): New insn pattern
9887         (*jcc_fused_2): Ditto.
9888         * config/i386/i386.c (ix86_tune_features): Add m_CORE2 to
9889         X86_TUNE_FUSE_CMP_AND_BRANCH targets.
9890         (print operand): Handle 'E' and 'e' code.
9891
9892 2008-06-19  Anatoly Sokolov  <aesok@post.ru>
9893
9894         * config/avr/avr.c (avr_mcu_t): Add attiny13a.
9895         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
9896         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
9897
9898 2008-06-19  Bernhard Fischer  <aldot@gcc.gnu.org>
9899
9900         * cgraphunit.c (cgraph_finalize_function): Remove redundant setting of
9901         node->decl.
9902         (cgraph_expand_function): Use local copy of decl.
9903         (cgraph_expand_all_functions): Remove redundant initialization of
9904         order_pos.
9905         (cgraph_optimize): Reword internal_error message.
9906
9907 2008-06-19  Chung-Lin Tang  <ctang@marvell.com>
9908
9909         * arm-protos.h (arm_return_in_memory): Remove public
9910         arm_return_in_memory() prototype.
9911         * arm.c (arm_return_in_memory): Add static prototype, add target
9912         hook macro, change definition and comments.
9913         * arm.h (TARGET_RETURN_IN_MEMORY): Remove.
9914
9915 2008-06-19  Ben Elliston  <bje@au.ibm.com>
9916
9917         * dfp.h, dfp.c, config/dfp-bit.h, config/dfp-bit.c, real.h,
9918         real.c: Remove references to IEEE 754R.
9919         * doc/install.texi (Configuration): IEEE 754R -> IEEE 754-2008.
9920         * doc/libgcc.texi (Decimal float library routines): Likewise.
9921
9922 2008-06-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9923
9924         * targhooks.h (struct gcc_target): New member unwind_word_mode.
9925         (default_unwind_word_mode): Add prototype.
9926         * targhooks.c (default_unwind_word_mode): New function.
9927         (default_eh_return_filter_mode): Return targetm.unwind_word_mode ()
9928         instead of word_mode.
9929         * target-def.h (TARGET_UNWIND_WORD_MODE): New macro.
9930         (TARGET_INITIALIZER): Use it.
9931
9932         * c-common.c (handle_mode_attribute): Support "unwind_word"
9933         mode attribute.
9934         * unwind-generic.h (_Unwind_Word, _Unwind_Sword): Use it.
9935
9936         * except.c (init_eh): Use targetm.unwind_word_mode () instead of
9937         word_mode to access SjLj_Function_Context member "data".
9938         (sjlj_emit_dispatch_table): Likewise.  Also, perform type
9939         conversion from targetm.eh_return_filter_mode () to
9940         targetm.unwind_word_mode () if they differ.
9941
9942         * builtin-types.def (BT_UNWINDWORD): New primitive type.
9943         (BT_FN_UNWINDWORD_PTR): New function type.
9944         (BT_FN_WORD_PTR): Remove.
9945         * builtins.def (BUILT_IN_EXTEND_POINTER): Use BT_FN_UNWINDWORD_PTR.
9946         * except.c (expand_builtin_extend_pointer): Convert pointer to
9947         targetm.unwind_word_mode () instead of word_mode.
9948
9949         * config/spu/spu-protos.h (spu_eh_return_filter_mode): Remove.
9950         * config/spu/spu.c (spu_eh_return_filter_mode): Remove.
9951         (spu_unwind_word_mode): New function.
9952         (TARGET_EH_RETURN_FILTER_MODE): Do not define.
9953         (TARGET_UNWIND_WORD_MODE): Define.
9954         * config/spu/t-spu-elf (TARGET_LIBGCC2_CFLAGS): Remove -D__word__=SI.
9955
9956 2008-06-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9957
9958         * config/spu/spu.c (reg_align): Remove.
9959         (regno_aligned_for_load): Also accept ARG_POINTER_REGNUM.
9960         (spu_split_load): Use regno_aligned_for_load instead of reg_align.
9961         (spu_split_store): Likewise.
9962
9963 2008-06-18  Bernhard Fischer  <aldot@gcc.gnu.org>
9964
9965         * gcc/tree-vn.c: Fix typo in comment.
9966
9967 2008-06-18  Jan Hubicka  <jh@suse.cz>
9968
9969         * cgraphunit.c (cgraph_optimize): Output debug info when doing
9970         toplevel reorder too.
9971
9972 2008-06-18  Jan Hubicka  <jh@suse.cz>
9973
9974         * c-opts.c (c_common_post_options): PCH is not compatible with
9975         no-unit-at-a-time.
9976         * opts.c (handle_options): Enable unit-at-a-time at O0 along with
9977         -fno-toplevel-reorder by default now.
9978
9979 2008-06-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9980
9981         PR documentation/30739
9982         * doc/install.texi (Prerequisites): Document dependency on awk.
9983
9984 2008-06-18  Uros Bizjak  <ubizjak@gmail.com>
9985             Ian Lance Taylor  <iant@google.com>
9986
9987         PR rtl-optimization/35604
9988         * jump.c (redirect_exp_1): Skip the condition of an IF_THEN_ELSE. We
9989         only want to change jump destinations, not eventual label comparisons.
9990
9991 2008-06-16  Jan Hubicka  <jh@suse.cz>
9992
9993         * cgraphunit.c (cgraph_expand_pending_functions): Give up at
9994         syntax errors.
9995         (cgraph_analyze_function): Likewise.
9996
9997 2008-06-16  Jan Hubicka  <jh@suse.cz>
9998
9999         * cgraph.h (cgraph_mark_if_needed): New function.
10000         * cgraphunit.c (cgraph_mark_if_needed): New function.
10001         * c-decl.c (duplicate_decl): Use it.
10002
10003 2008-06-16  Jan Hubicka  <jh@suse.cz>
10004
10005         * cgraph.c (cgraph_add_new_function): When in expansion state, do
10006         lowering.
10007
10008 2008-06-16  Jan Hubicka  <jh@suse.cz>
10009
10010         * tree-outof-ssa.c (pass_out_of_ssa): Do not depend on PROP_alias.
10011
10012 2008-06-16  Daniel Jacobowitz  <dan@codesourcery.com>
10013             Kazu Hirata  <kazu@codesourcery.com>
10014             Maxim Kuvyrkov  <maxim@codesourcery.com
10015
10016         * config.gcc (mips64el-st-linux-gnu): Use mips/st.h and mips/t-st.
10017         * config.host: Use driver-native.o and mips/x-native for mips*-linux*.
10018         * config/mips/linux.h (host_detect_local_cpu): Declare, add to
10019         EXTRA_SPEC_FUNCTIONS.
10020         (MARCH_MTUNE_NATIVE_SPECS, BASE_DRIVER_SELF_SPECS): New macros.
10021         (DRIVER_SELF_SPECS): Adjust.
10022         * config/mips/linux64.h (DRIVER_SELF_SPECS): Update.
10023         * config/mips/st.h, config/mips/t-st: New.
10024         * config/mips/driver-native.c, config/mips/x-native: New.
10025         * doc/invoke.texi (MIPS): Document 'native' value for -march and
10026         -mtune options.
10027
10028 2008-06-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
10029
10030         * config/mips/mips.h (ISA_HAS_CONDMOVE): Slice ISA_HAS_FP_CONDMOVE
10031         from it.
10032         (ISA_HAS_FP_CONDMOVE): New macro.
10033         (ISA_HAS_FP_MADD4_MSUB4, ISA_HAS_FP_MADD3_MSUB3): New macros.
10034         (ISA_HAS_NMADD_NMSUB): Rename to ISA_HAS_NMADD4_NMSUB4.
10035         (ISA_HAS_NMADD3_NMSUB3): New macro.
10036         * config/mips/mips.c (mips_rtx_costs): Update.
10037         * config/mips/mips.md (MOVECC): Don't use FP conditional moves when
10038         compiling for ST Loongson 2E/2F.
10039         (madd<mode>): Rename to madd4<mode>.  Update.
10040         (madd3<mode>): New pattern.
10041         (msub<mode>): Rename to msub4<mode>.  Update.
10042         (msub3<mode>): New pattern.
10043         (nmadd<mode>): Rename to nmadd4<mode>.  Update.
10044         (nmadd3<mode>): New pattern.
10045         (nmadd<mode>_fastmath): Rename to nmadd4<mode>_fastmath.  Update.
10046         (nmadd3<mode>_fastmath): New pattern.
10047         (nmsub<mode>): Rename to nmsub4<mode>.  Update.
10048         (nmsub3<mode>): New pattern.
10049         (nmsub<mode>_fastmath): Rename to nmsub4<mode>_fastmath.  Update.
10050         (nmsub3<mode>_fastmath): New pattern.
10051         (mov<SCALARF:mode>_on_<MOVECC:mode>, mov<mode>cc): Update.
10052
10053 2008-06-18  Steven Bosscher  <steven@gcc.gnu.org>
10054
10055         * df.h (struct df_ref): Replace 'insn' field with 'insn_info' field.
10056         (DF_REF_INSN_INFO): New.
10057         (DF_REF_INSN, DF_REF_INSN_UID): Rewrite macros using DF_REF_INSN_INFO.
10058         (DF_REF_IS_ARTIFICIAL): Artificial refs are now identified as refs
10059         with a NULL DF_REF_INSN_INFO.
10060         (DF_INSN_INFO_GET, DF_INSN_INFO_SET): Renamed from DF_INSN_GET and
10061         DF_INSN_SET.
10062         (DF_INSN_INFO_LUID, DF_INSN_INFO_DEFS, DF_INSN_INFO_USES,
10063         DF_INSN_INFO_EQ_USES): New.
10064         (DF_INSN_LUID, DF_INSN_DEFS, DF_INSN_USES, DF_INSN_EQ_USES,
10065         DF_INSN_UID_LUID, DF_INSN_UID_DEFS, DF_INSN_UID_USES,
10066         DF_INSN_UID_EQ_USES): Rewrite using DF_INSN_INFO_* macros.
10067         * df-core.c: Update comment for above changes.
10068         (df_insn_debug_regno): Use DF_INSN_INFO_GET instead of INSN_UID and
10069         DF_INSN_UID_* macros.
10070         (df_ref_debug): Check for NULL DF_REF_INSN_INFO.
10071         * df-scan.c (df_ref_record): Take a df_insn_info instead of an
10072         insn rtx.  Update all callers.
10073         (df_def_record_1, df_defs_record, df_uses_record, df_get_call_refs,
10074         df_ref_create_structure, df_insn_refs_collect): Likewise.
10075         (df_ref_equal_p): Compare DF_REF_INSN_INFO pointers for the refs.
10076         * df-problems.c (df_chain_dump): Test for non-NULL DF_REF_INSN_INFO.
10077         (df_live_bb_local_compute): Retrieve DF_INSN_INFO, use DF_INSN_INFO_*
10078         macros to access the insn refs.
10079         (df_chain_top_dump, df_chain_bottom_dump, df_byte_lr_alloc): Likewise.
10080         * fwprop.c (use_killed_between): Use DF_REF_INSN accessor macro.
10081         (all_uses_available): Retrieve DF_INSN_INFO for def_insn, and use it
10082         for accessing the refs.
10083         (try_fwprop_subst): Likewise.
10084         * ddg.c (add_cross_iteration_register_deps): Use DF_REF_INSN macro.
10085         * web.c (union_defs): Retrieve DF_INSN_INFO for def_insn, and use it
10086         for accessing the refs.
10087         * loop-invariant.c (invariant_for_use): Use DF_REF_BB macro.
10088         (check_dependencies): Use DF_INSN_INFO_GET, use DF_INSN_INFO_* macros
10089         to look at the insn refs.
10090         (record_uses): Likewise.
10091         * dce.c (deletable_insn_p): Don't tolerate artificial DEFs in this
10092         function anymore.
10093         (mark_artificial_uses): Don't mark_insn for artificial refs.
10094         (mark_reg_rependencies): Likewise.
10095
10096         * doc/rtl.texi: Remove documentation of ADDRESSOF.
10097
10098 2008-06-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10099
10100         * configure: Regenerate.
10101
10102 2008-06-17  Eric B. Weddington  <eric.weddington@atmel.com>
10103
10104         * config/avr/avr.c (avr_mcu_t): Remove atmega32hvb.
10105         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
10106         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
10107
10108 2008-06-17  Eric B. Weddington  <eric.weddington@atmel.com>
10109
10110         * config/avr/avr.c (avr_mcu_t): Add attiny167.
10111         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
10112         * gcc/config/avr/t-avr (MULTILIB_MATCHES): Likewise.
10113
10114 2008-06-17  Eric B. Weddington  <eric.weddington@atmel.com>
10115
10116         * config/avr/avr.c (avr_mcu_t): Add atmega32u4.
10117         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
10118         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
10119
10120 2008-06-17  Bernhard Fischer  <aldot@gcc.gnu.org>
10121
10122         * tree-ssa-sccvn.c: Fix format of comments.
10123
10124 2008-06-17  Bernhard Fischer  <aldot@gcc.gnu.org>
10125
10126         * cgraph.c: Remove unneeded forward declarations of eq_node()
10127         and hash_node().
10128
10129 2008-06-17  Steven Bosscher  <steven@gcc.gnu.org>
10130
10131         * see.c (see_analyse_one_def): Do not look for REG_LIBCALL and
10132         REG_RETVAL notes.
10133         (see_update_relevancy): Likewise.
10134         * fwprop.c (try_fwprop_subst): Likewise.
10135         * rtlanal.c (noop_move_p): Likewise.
10136         * builtins.c (expand_buitlin_mathfn): Don't try to add REG_EQUAL
10137         notes to non-existing libcall blocks.
10138         * cse.c (cse_insn): Change prototype.  Don't update libcall notes.
10139         Remove orig_set.
10140         (cse_extended_basic_block): Don't track libcall and no-conflict notes.
10141         (dead_libcall_p): Remove.
10142         (delete_trivially_dead_insns): Don't use it.
10143         * web.c (union_defs): Remove comment about keeping nops.
10144         * gcse.c (hash_scan_insn): Don't take libcall pointers.
10145         (compute_hash_table_work): Don't track libcall notes.
10146         (do_local_cprop): Don't take libcall pointers.  Don't update
10147         libcall notes.
10148         (adjust_libcall_notes): Deleted.
10149         (local_cprop_pass): Remove stack for nested libcalls (which shouldn't
10150         ever have existed in the first place).
10151         (replace_store_insn): Don't try to remove libcall notes.
10152         * lower-subreg.c (move_libcall_note, move_retval_note): Deleted.
10153         (resolve_reg_notes): Don't call them.
10154         (resolve_simple_move): Likewise.
10155         (decompose_multiword_subregs): Remove block handling REG_RETVAL notes.
10156         Don't remove REG_RETVAL notes.
10157         * emit-rtl.c (try_split): Don't update libcall notes.
10158         (emit_copy_of_insn_after): Dito.
10159         * cselib.c (cselib_current_insn_in_libcall): Remove.
10160         (cselib_process_insn): Don't set/clear it.
10161         (new_elt_loc_list): Don't record it.
10162         (cselib_init): Don't initialize it.
10163         * cselib.c (struct elt_loc_list): Remove in_libcall field.
10164         * loop-invariant.c (find_invariant_insn): Don't look for libcall
10165         notes.
10166         * sched-deps.c (sched_analyze_insn): Don't group libcall blocks.
10167         (sched_analyze): Don't set up deps->libcall_block_tail_insn.
10168         (init_deps): Don't initialize it.
10169         * sched-int.h (struct deps): Rremove libcall_block_tail_insn field.
10170         * combine.c (delete_noop_moves): Don't update libcall notes.
10171         (can_combine_p): Remove now pointless #if 0 block.
10172         (try_combine): Remove another obsolete #if 0 block.
10173         (distribute_notes): Don't distribute libcall notes.
10174         * reg-notes.def (REG_LIBCALL, REG_RETVAL): Remove.
10175         * dce.c (libcall_dead_p): Remove.
10176         (delete_unmarked_insns): Don't handle libcall blocks.
10177         (preserve_libcall_for_dce): Remove.
10178         (prescan_insns_for_dce): Don't special-case libcall block insns.
10179         * reload1 (reload): Don't handle libcall notes.
10180         * doc/rtl.texi (REG_LIBCALL, REG_RETVAL, REG_LIBCALL_ID): Remove
10181         documentation.
10182
10183 2008-06-16  Eric B. Weddington  <eric.weddington@atmel.com>
10184
10185         * config/avr/avr.c (avr_mcu_t): Add atmega32c1.
10186         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
10187         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
10188
10189 2008-06-16  Eric B. Weddington  <eric.weddington@atmel.com>
10190
10191         * config/avr/avr.c (avr_mcu_t): Add atmega32m1.
10192         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
10193         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
10194
10195 2008-06-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10196
10197         * Makefile.in (FLAGS_TO_PASS): Add $(datarootdir).
10198
10199 2008-06-16  Ira Rosen  <irar@il.ibm.com>
10200
10201         PR tree-optimization/36493
10202         * tree-vect-transform.c (vect_create_data_ref_ptr): Remove TYPE from
10203         the arguments list. Use VECTYPE to create vector pointer.
10204         (vectorizable_store): Fail if accesses through a pointer to vectype
10205         do not alias the original memory reference operands.
10206         Call vect_create_data_ref_ptr without the removed argument.
10207         (vectorizable_load): Likewise.
10208         (vect_setup_realignment): Call vect_create_data_ref_ptr without the
10209         removed argument.
10210
10211 2008-06-015  Andy Hutchinson  <hutchinsonandy@aim.com>
10212
10213         PR target/36336
10214         * config/avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Add check for
10215         reg_equiv_constant.
10216
10217 2008-06-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
10218
10219         * config/mips/loongson2ef.md: New file.
10220         * config/mips/mips.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
10221         (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
10222         (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
10223         (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): New constants.
10224         (define_attr "cpu"): Rename loongson2e and loongson2f to loongson_2e
10225         and loongson_2f.
10226         (loongson2ef.md): New include.
10227         * config/mips/loongson.md (vec_pack_ssat_<mode>, vec_pack_usat_<mode>)
10228         (add<mode>3, paddd, ssadd<mode>3, usadd<mode>3)
10229         (loongson_and_not_<mode>, loongson_average_<mode>, loongson_eq_<mode>)
10230         (loongson_gt_<mode>, loongson_extract_halfword)
10231         (loongson_insert_halfword_0, loongson_insert_halfword_2)
10232         (loongson_insert_halfword_3, loongson_mult_add, smax<mode>3)
10233         (umax<mode>3, smin<mode>3, umin<mode>3, loongson_move_byte_mask)
10234         (umul<mode>3_highpart, smul<mode>3_highpart, loongson_smul_lowpart)
10235         (loongson_umul_word, loongson_pasubub, reduc_uplus_<mode>)
10236         (loongson_psadbh, loongson_pshufh, loongson_psll<mode>)
10237         (loongson_psra<mode>, loongson_psrl<mode>, sub<mode>3, psubd)
10238         (sssub<mode>3, ussub<mode>3, vec_interleave_high<mode>)
10239         (vec_interleave_low<mode>): Define type attribute.
10240         * config/mips/mips.c (mips_ls2): New static variable.
10241         (mips_issue_rate): Update to handle tuning for Loongson 2E/2F.
10242         (mips_ls2_init_dfa_post_cycle_insn, mips_init_dfa_post_cycle_insn)
10243         (sched_ls2_dfa_post_advance_cycle, mips_dfa_post_advance_cycle):
10244         Implement target scheduling hooks.
10245         (mips_multipass_dfa_lookahead): Update to handle tuning for
10246         Loongson 2E/2F.
10247         (mips_sched_init): Initialize data for Loongson scheduling.
10248         (mips_ls2_variable_issue): New static function.
10249         (mips_variable_issue): Update to handle tuning for Loongson 2E/2F.
10250         Add sanity check.
10251         (TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN)
10252         (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Override target hooks.
10253         * config/mips/mips.h (TUNE_LOONGSON_2EF): New macros.
10254         (ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY, ISA_HAS_HILO_INTERLOCKS):
10255         Handle ST Loongson 2E/2F cores.
10256         (CPU_UNITS_QUERY): Define macro to enable querying of DFA units.
10257
10258 2008-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10259
10260         * omp-low.c (extract_omp_for_data): Fix comment typo.
10261         * c.opt: Fix typo.
10262
10263 2008-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10264
10265         * doc/sourcebuild.texi (Config Fragments): Remove obsolete
10266         FIXME note about gcc/config.guess.
10267         * doc/options.texi (Option file format): Remove non-ASCII bytes.
10268         * doc/cpp.texi: Expand TABs, drop indentation outside examples.
10269         * doc/cppopts.texi: Likewise.
10270         * doc/extend.texi: Likewise.
10271         * doc/gcc.texi: Likewise.
10272         * doc/gccint.texi: Likewise.
10273         * doc/gcov.texi: Likewise.
10274         * doc/gty.texi: Likewise.
10275         * doc/hostconfig.texi: Likewise.
10276         * doc/install.texi: Likewise.
10277         * doc/invoke.texi: Likewise.
10278         * doc/loop.texi: Likewise.
10279         * doc/makefile.texi: Likewise.
10280         * doc/md.texi: Likewise.
10281         * doc/passes.texi: Likewise.
10282         * doc/tm.texi: Likewise.
10283         * doc/tree-ssa.texi: Likewise.
10284         * doc/trouble.texi: Likewise.
10285
10286 2008-06-15  Mark Shinwell  <shinwell@codesourcery.com>
10287             Nathan Sidwell  <nathan@codesourcery.com>
10288             Maxim Kuvyrkov  <maxim@codesourcery.com>
10289             Richard Sandiford  <rdsandiford@googlemail.com>
10290
10291         * config/mips/mips-modes.def: Add V8QI, V4HI and V2SI modes.
10292         * config/mips/mips-protos.h (mips_expand_vector_init): New.
10293         * config/mips/mips-ftypes.def: Add function types for Loongson-2E/2F
10294         builtins.
10295         * config/mips/mips.c (mips_split_doubleword_move): Handle new modes.
10296         (mips_hard_regno_mode_ok_p): Allow 64-bit vector modes for Loongson.
10297         (mips_vector_mode_supported_p): Add V2SImode, V4HImode and
10298         V8QImode cases.
10299         (LOONGSON_BUILTIN, LOONGSON_BUILTIN_ALIAS): New.
10300         (CODE_FOR_loongson_packsswh, CODE_FOR_loongson_packsshb,
10301         (CODE_FOR_loongson_packushb, CODE_FOR_loongson_paddw,
10302         (CODE_FOR_loongson_paddh, CODE_FOR_loongson_paddb,
10303         (CODE_FOR_loongson_paddsh, CODE_FOR_loongson_paddsb)
10304         (CODE_FOR_loongson_paddush, CODE_FOR_loongson_paddusb)
10305         (CODE_FOR_loongson_pmaxsh, CODE_FOR_loongson_pmaxub)
10306         (CODE_FOR_loongson_pminsh, CODE_FOR_loongson_pminub)
10307         (CODE_FOR_loongson_pmulhuh, CODE_FOR_loongson_pmulhh)
10308         (CODE_FOR_loongson_biadd, CODE_FOR_loongson_psubw)
10309         (CODE_FOR_loongson_psubh, CODE_FOR_loongson_psubb)
10310         (CODE_FOR_loongson_psubsh, CODE_FOR_loongson_psubsb)
10311         (CODE_FOR_loongson_psubush, CODE_FOR_loongson_psubusb)
10312         (CODE_FOR_loongson_punpckhbh, CODE_FOR_loongson_punpckhhw)
10313         (CODE_FOR_loongson_punpckhwd, CODE_FOR_loongson_punpcklbh)
10314         (CODE_FOR_loongson_punpcklhw, CODE_FOR_loongson_punpcklwd): New.
10315         (mips_builtins): Add Loongson builtins.
10316         (mips_loongson_2ef_bdesc): New.
10317         (mips_bdesc_arrays): Add mips_loongson_2ef_bdesc.
10318         (mips_builtin_vector_type): Handle unsigned versions of vector modes.
10319         (MIPS_ATYPE_UQI, MIPS_ATYPE_UDI, MIPS_ATYPE_V2SI, MIPS_ATYPE_UV2SI)
10320         (MIPS_ATYPE_V4HI, MIPS_ATYPE_UV4HI, MIPS_ATYPE_V8QI, MIPS_ATYPE_UV8QI):
10321         New.
10322         (mips_expand_vector_init): New.
10323         * config/mips/mips.h (HAVE_LOONGSON_VECTOR_MODES): New.
10324         (TARGET_CPU_CPP_BUILTINS): Define __mips_loongson_vector_rev
10325         if appropriate.
10326         * config/mips/mips.md: Add unspec numbers for Loongson
10327         builtins.  Include loongson.md.
10328         (MOVE64): Include Loongson vector modes.
10329         (SPLITF): Include Loongson vector modes.
10330         (HALFMODE): Handle Loongson vector modes.
10331         * config/mips/loongson.md: New.
10332         * config/mips/loongson.h: New.
10333         * config.gcc: Add loongson.h header for mips*-*-* targets.
10334         * doc/extend.texi (MIPS Loongson Built-in Functions): New.
10335
10336 2008-06-14  Joseph Myers  <joseph@codesourcery.com>
10337
10338         * config.gcc (arc-*-elf*, avr-*-*, fr30-*-elf, frv-*-elf,
10339         h8300-*-elf*, h8300-*-*, i[34567]86-*-elf*, x86_64-*-elf*,
10340         i[34567]86-*-aout*, i[34567]86-*-coff*, ia64*-*-elf*,
10341         iq2000*-*-elf*, m32r-*-elf*, m32rle-*-elf*, m32r-*-linux*,
10342         m32rle-*-linux*, m68hc11-*-*|m6811-*-*, m68hc12-*-*|m6812-*-*,
10343         m68k-*-coff*, mcore-*-elf, mcore-*-pe*, mipsisa64sr71k-*-elf*,
10344         mipsisa64sb1-*-elf* | mipsisa64sb1el-*-elf*, mips-*-elf* |
10345         mipsel-*-elf*, mips64-*-elf* | mips64el-*-elf*, mips64vr-*-elf* |
10346         mips64vrel-*-elf*, mips64orion-*-elf* | mips64orionel-*-elf*,
10347         mipstx39-*-elf* | mipstx39el-*-elf*, mn10300-*-*, pdp11-*-,
10348         powerpc-*-elf*, powerpcle-*-elf*, sh-*-elf* | sh[12346l]*-*-elf* |
10349         sh-*-symbianelf* | sh[12346l]*-*-symbianelf* | sh-*-linux* |
10350         sh[2346lbe]*-*-linux* | sh-*-netbsdelf* | shl*-*-netbsdelf* |
10351         sh5-*-netbsd* | sh5l*-*-netbsd* | sh64-*-netbsd* |
10352         sh64l*-*-netbsd*, sh-*-*, sparc-*-elf*, sparc64-*-elf*,
10353         v850e1-*-*, v850e-*-*, v850-*-*, xstormy16-*-elf, m32c-*-elf*):
10354         Remove use_fixproto=yes.
10355         (ia64*-*-hpux*): Remove comment about using fixproto.
10356         (m68k-*-uclinuxoldabi*, m68k-*-uclinux*): Remove use_fixproto=no.
10357
10358 2008-06-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10359
10360         * configure.ac: Update gthr-default.h lazily, to avoid unneeded
10361         library rebuilds.
10362         * configure: Regenerate.
10363
10364 2008-06-13  Eric Botcazou  <ebotcazou@adacore.com>
10365
10366         PR middle-end/36520
10367         * builtins.c (get_memory_rtx): Test for the presence of DECL_SIZE_UNIT
10368         before evaluating it.
10369
10370 2008-06-13  Jakub Jelinek  <jakub@redhat.com>
10371
10372         PR c/36507
10373         * c-decl.c (merge_decls): Don't clear DECL_EXTERNAL for
10374         nested inline functions.
10375         (start_decl, start_function): Don't invert DECL_EXTERNAL
10376         for nested inline functions.
10377
10378 2008-06-13  Richard Sandiford  <rdsandiford@googlemail.com>
10379
10380         * config/mips/mips.md: Remove TARGET_DEBUG_D_MODE conditions from
10381         splits that must be made for correctness.
10382
10383 2008-06-13  Richard Sandiford  <rdsandiford@googlemail.com>
10384
10385         * config/mips/mips.c (BUILTIN_AVAIL_NON_MIPS16): New macro.
10386         (AVAIL_NON_MIPS16): Likewise.
10387         (mips_builtin_description): Replace target_flags with a predicate.
10388         (paired_single, sb1_paired_single, mips3d, dsp, dspr2, dsp_32)
10389         (dspr2_32): New availability predicates.
10390         (MIPS_BUILTIN): New macro.
10391         (DIRECT_BUILTIN, CMP_SCALAR_BUILTINS, CMP_PS_BUILTINS)
10392         (CMP_4S_BUILTINS, MOVTF_BUILTINS, CMP_BUILTINS)
10393         (DIRECT_NO_TARGET_BUILTIN, BPOSGE_BUILTIN): Use it.
10394         Replace the TARGET_FLAGS parameters with AVAIL parameters.
10395         (mips_ps_bdesc, mips_sb1_bdesc, mips_dsp_bdesc)
10396         (mips_dsp_32only_bdesc): Merge into...
10397         (mips_builtins): ...this new array.
10398         (mips_bdesc_map, mips_bdesc_arrays): Delete.
10399         (mips_init_builtins): Update after above changes.
10400         (mips_expand_builtin_1): Merge into...
10401         (mips_expand_builtin): ...here and update after above changes.
10402
10403 2008-06-12  Paul Brook  <paul@codesourcery.com>
10404
10405         * longlong.h (__arm__): Define count_leading_zeros.
10406         * config/arm/lib1funcs.asm (xxh, xxl, yyh, yyl): Define.
10407         (clzsi2, clzdi2): New functions.
10408         * config/arm/bpabi-v6m.S (xxh, xxl, yyh, yyl): Remove.
10409         * config/arm/bpabi.S (xxh, xxl, yyh, yyl): Remove.
10410         * config/arm/t-strongarm-elf (LIB1ASMFUNCS): Ditto.
10411         * config/arm/t-vxworks (LIB1ASMFUNCS): Ditto.
10412         * config/arm/t-pe (LIB1ASMFUNCS): Ditto.
10413         * config/arm/t-arm-elf (LIB1ASMFUNCS): Ditto.
10414         * config/arm/t-arm-coff (LIB1ASMFUNCS): Ditto.
10415         * config/arm/t-linux (LIB1ASMFUNCS): Ditto.
10416         * config/arm/t-symbian (LIB1ASMFUNCS): Ditto.
10417         * config/arm/t-wince-pe (LIB1ASMFUNCS): Ditto.
10418
10419 2008-06-12  Kazu Hirata  <kazu@codesourcery.com>
10420
10421         * config/m68k/m68k.c (m68k_tune_flags): New.
10422         (override_options): Compute m68k_tune_flags.
10423         (MULL_COST, MULW_COST): Update for various variants of CFV2.
10424         * config/m68k/m68k.h (TUNE_MAC, TUNE_EMAC): New.
10425
10426 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
10427
10428         PR middle-end/36506
10429         * omp-low.c (expand_omp_sections): Initialize l2 to avoid bogus warning.
10430
10431 2008-06-12  Eric Botcazou  <ebotcazou@adacore.com>
10432
10433         * tree-inline.c (copy_body_r): Copy TREE_SIDE_EFFECTS along with
10434         TREE_THIS_VOLATILE on INDIRECT_REF nodes.
10435
10436 2008-06-12  Eric Botcazou  <ebotcazou@adacore.com>
10437
10438         * expr.c (store_field): Do a block copy from BLKmode to BLKmode-like.
10439         (get_inner_reference): Use BLKmode for byte-aligned BLKmode bitfields.
10440
10441 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
10442
10443         PR middle-end/36506
10444         * omp-low.c (expand_omp_sections): Handle #pragma omp sections with
10445         reductions.
10446
10447 2008-06-12  Richard Guenther  <rguenther@suse.de>
10448
10449         PR tree-optimization/36345
10450         * tree-flow.h (struct ptr_info_def): Align escape_mask,
10451         add memory_tag_needed flag.
10452         (may_alias_p): Declare.
10453         * tree-ssa-alias.c (may_alias_p): Export.
10454         (set_initial_properties): Use memory_tag_needed flag.
10455         (update_reference_counts): Likewise.
10456         (reset_alias_info): Reset memory_tag_needed flag.
10457         (create_name_tags): Check memory_tag_needed flag.
10458         (dump_points_to_info_for): Dump it.
10459         * tree-ssa-structalias.c (struct variable_info): Remove
10460         directly_dereferenced flag.
10461         (new_var_info): Do not initialize it.
10462         (process_constraint_1): Do not set it.
10463         (update_alias_info): Set is_dereferenced flag.
10464         (set_uids_in_ptset): Use may_alias_p.
10465         (set_used_smts): Check memory_tag_needed flag.
10466         (find_what_p_points_to): Likewise.  Pass is_dereferenced flag.
10467         * tree-ssa-alias.c (verify_flow_sensitive_alias_info): Check
10468         memory_tag_needed flag.
10469         * tree-ssa-alias-warnings.c (dsa_named_for): Try to recover
10470         from broken design.
10471
10472 2008-06-12  Kai Tietz  <kai.tietz@onevision.com>
10473
10474         * config/i386/i386.c (ix86_compute_frame_layout): Disable
10475         red zone for w64 abi.
10476         (ix86_expand_prologue): Likewise.
10477         (ix86_force_to_memory): Likewise.
10478         (ix86_free_from_memory): Likewise.
10479
10480 2008-06-11  Edmar Wienskoski  <edmar@freescale.com>
10481
10482         PR target/36425
10483         * config/rs6000/rs6000.c (rs6000_override_options): Set
10484         rs6000_isel conditionally to the absence of comand line override.
10485         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
10486         Remove duplicate rs6000_isel setting.
10487         * config/rs6000/eabispe.h: Ditto.
10488
10489 2008-06-11  Richard Guenther  <rguenther@suse.de>
10490
10491         * alias.c (get_alias_set): Use the element alias-set for arrays.
10492         (record_component_aliases): For arrays and vectors do nothing.
10493         * c-common.c (strict_aliasing_warning): Handle the cases
10494         of alias set zero explicitly.
10495         * Makefile.in (dfp.o-warn): Add -Wno-error.
10496
10497 2008-06-11  Joseph Myers  <joseph@codesourcery.com>
10498
10499         * config.gcc (all_defaults): Add arch_32 arch_64 cpu_32 cpu_64
10500         tune_32 tune_64.
10501         (i[34567]86-*-* | x86_64-*-*): Add arch_32 arch_64 cpu_32 cpu_64
10502         tune_32 tune_64 to supported_defaults.  Allow values not
10503         supporting 64-bit mode for arch_32, cpu_32 and tune_32 for
10504         x86_64.  Do not override cpu_32 or cpu_64 values from target name.
10505         (i[34567]86-*-linux*, i[34567]86-*-solaris2.1[0-9]*): Only default
10506         with_cpu_64 to generic for 64-bit-supporting configurations, not
10507         with_cpu.  Remove FIXMEs.
10508         * doc/install.texi (--with-cpu-32, --with-cpu-64, --with-arch-32,
10509         --with-arch-64, --with-tune-32, --with-tune-64): Document.
10510         * config/i386/i386.h (OPT_ARCH32, OPT_ARCH64): Define.
10511         (OPTION_DEFAULT_SPECS): Add tune_32, tune_64, cpu_32, cpu_64,
10512         arch_32 and arch_64.
10513
10514 2008-06-11  Eric Botcazou  <ebotcazou@adacore.com>
10515             Olivier Hainque  <hainque@adacore.com>
10516
10517         * builtins.c (get_memory_rtx): Accept byte-addressable bitfields.
10518         Use DECL_SIZE_UNIT to retrieve the size of the field.
10519
10520 2008-06-11  Joseph Myers  <joseph@codesourcery.com>
10521
10522         * config/arm/arm.c (arm_init_neon_builtins): Move initialization
10523         with function calls after declarations.  Lay out
10524         neon_float_type_node before further use.
10525
10526 2008-06-11  Richard Guenther  <rguenther@suse.de>
10527
10528         * tree-flow.h (may_point_to_global_var): Declare.
10529         * tree-ssa-alias.c (may_point_to_global_var): New function.
10530         * tree-ssa-sink.c (is_hidden_global_store): Use it.
10531
10532 2008-06-10  Kazu Hirata  <kazu@codesourcery.com>
10533
10534         * configure.ac: Teach that fido supports .debug_line.
10535         * configure: Regenerate.
10536
10537 2008-06-10  Tom Tromey  <tromey@redhat.com>
10538
10539         * c-lex.c (fe_file_change): Pass SOURCE_LINE to start_source_file
10540         debug hook.
10541
10542 2008-06-10  Joseph Myers  <joseph@codesourcery.com>
10543
10544         * dfp.c (WORDS_BIGENDIAN): Define to 0 if not defined.
10545         (encode_decimal64, decode_decimal64, encode_decimal128,
10546         decode_decimal128): Reverse order of 32-bit parts of value if host
10547         and target endianness differ.
10548
10549 2008-06-10  Vinodha Ramasamy  <vinodha@google.com>
10550
10551         * value_prob.c (tree_divmod_fixed_value_transform): Use gcov_type.
10552         Avoid division by 0.
10553         (tree_mod_pow2_value_transform): Likewise.
10554         (tree_ic_transform): Likewise.
10555         (tree_stringops_transform): Likewise.
10556         (tree_mod_subtract_transform): Likewise.
10557         * tree-inline-c (copy_bb): Corrected int type to gcov_type.
10558         (copy_edges_for_bb): Likewise.
10559         (initialize_cfun): Likewise.
10560
10561 2008-06-10  Uros Bizjak  <ubizjak@gmail.com>
10562
10563         * config/i386/i386.md (*btdi_rex64): Change operand 1 predicate to
10564         nonmemory_operand. Add "N" operand constraint.
10565         (*btsi): Ditto.
10566         (*jcc_btdi_mask_rex64): New instruction and split pattern.
10567         (*jcc_btsi_mask): Ditto.
10568         (*jcc_btsi_mask_1): Ditto.
10569
10570 2008-06-10  Joseph Myers  <joseph@codesourcery.com>
10571
10572         * config/rs6000/rs6000.c (build_opaque_vector_type): Set
10573         TYPE_CANONICAL for copied element type.
10574
10575 2008-06-10  Uros Bizjak  <ubizjak@gmail.com>
10576
10577         PR target/36473
10578         * config/i386/i386.c (ix86_tune_features) [TUNE_USE_BT]:
10579         Add m_CORE2 and m_GENERIC.
10580         * config/i386/predicates.md (bt_comparison_operator): New predicate.
10581         * config/i386/i386.md (*btdi_rex64): New instruction pattern.
10582         (*btsi): Ditto.
10583         (*jcc_btdi_rex64): New instruction and split pattern.
10584         (*jcc_btsi): Ditto.
10585         (*jcc_btsi_1): Ditto.
10586         (*btsq): Fix Intel asm dialect operand order.
10587         (*btrq): Ditto.
10588         (*btcq): Ditto.
10589
10590 2008-06-09  Andy Hutchinson  <hutchinsonandy@aim.com>
10591
10592         PR middle-end/36447
10593         * simplify-rtx.c (simplify_subreg): Add check for shift count
10594         greater than size.
10595
10596 2008-06-09  Richard Sandiford  <rdsandiford@googlemail.com>
10597
10598         * doc/md.texi: Synchronize with later constraints.md change.
10599         * longlong.h (umul_ppmm): Replace the MIPS asm implementation
10600         with a C implementation.
10601         * config/mips/mips.c (mips_legitimize_move): Remove MFHI and
10602         MFLO handling.
10603         (mips_subword): Assume TImode for CONST_INTs if TARGET_64BIT.
10604         (mips_split_doubleword_move): Use special MTHI and MFHI instructions
10605         when moving to and from MD_REGNUM.
10606         (mips_output_move): Don't handle moves from GPRs to HI_REGNUM.
10607         Handle moves from LO_REGNUM to GPRs using MFLO, MACC or DMACC.
10608         Handle byte and halfword moves.
10609         (mips_hard_regno_mode_ok_p): Handle MD_REGS and DSP_ACC_REGS
10610         separately.
10611         * config/mips/constraints.md (h): Turn into NO_REGS.
10612         (l, x): Update documentation.
10613         * config/mips/mips.md (UNSPEC_MFHILO): Delete.
10614         (UNSPEC_MFHI, UNSPEC_MTHI, UNSPEC_SET_HILO): New.
10615         (UNSPEC_TLS_LDM, UNSPEC_TLS_GET_TP): Renumber.
10616         (HILO): New mode iterator.
10617         (MOVE128): Add TI.
10618         (any_div): New code iterator.
10619         (u): Extend code attribute to div and udiv.
10620         (*add<mode>3_mips16, *movdi_64bit_mips16, *movsi_mips16): Use
10621         d_operand in the splitters.  Remove redundant CONST_INT checks.
10622         (mulsi3_mult3, mul<mode>3_internal, mul<mode>3_r4000, *mul_acc_si)
10623         (*macc, *msac, *msac_using_macc, *macc2, *msac2, *mul_sub_si)
10624         (*muls): Remove "=h" clobbers.  Adjust peephole2s and define_splits
10625         accordingly, using normal moves instead of unspecs to move LO into
10626         a GPR.  Use d_operand and lo_operand instead of *_REG_P checks.
10627         (<u>mulsidi3): Handle expansion in C code.
10628         (<u>mulsidi3_32bit_internal): Rename to...
10629         (<u>mulsidi3_32bit): ...this.
10630         (<u>mulsidi3_32bit_r4000): Fix insn separator.
10631         (*<u>mulsidi3_64bit): Rename to...
10632         (<u>mulsidi3_64bit): ...this.  Combine DImode "=h" and "=l" clobbers
10633         into a TImode "=x" clobber.  In the split, use an UNSPEC_SET_HILO
10634         to set LO and HI to the multiplication result.  Use a normal move
10635         for MFLO and an unspec for MFHI.
10636         (*<u>mulsidi3_64bit_parts): Replace with...
10637         (<u>mulsidi3_64bit_hilo): ...this new instruction.
10638         (<su>mulsi3_highpart): Extend to TARGET_FIX_R4000.
10639         (<su>mulsi3_highpart_internal): Turn into a define_insn_and_split
10640         and extend it to TARGET_FIX_R4000.  Store the destination in a GPR
10641         instead of HI.  Split the instruction into a separate multiplication
10642         and MFHI if !TARGET_FIX_R4000.
10643         (<su>muldi3_highpart): Likewise.
10644         (<su>mulsi3_highpart_mulhi_internal): Remove the first alternative
10645         and the "=h" clobber.
10646         (*<su>mulsi3_highpart_neg_mulhi_internal): Likewise.
10647         (<u>mulditi3): New expander.
10648         (<u>mulditi3_internal, <u>mulditi3_r4000): New patterns.
10649         (madsi): Remove "=h" clobber.
10650         (divmod<mode>4, udivmod<mode>4): Turn into define_insn_and_splits.
10651         Force the modulus result to be a GPR and split the instruction into
10652         a division followed by an MFHI after reload.
10653         (<u>divmod<GPR:mode>4_hilo_<HILO:mode>): New instruction.
10654         (*lea_high64): Use d_operand in the define_peephole2.  Likewise
10655         the MIPS16 HIGH define_split.
10656         (*movdi_32bit, *movdi_gp32_fp64, *movdi_32bit_mips16): Change type
10657         of acc<->gpr moves to "multi".
10658         (*movdi_64bit): Replace the single "x" alternative with
10659         alternatives for moving into and out of "a".
10660         (*movhi_internal, *movqi_internal): Likewise.  Use mips_output_move.
10661         (*movsi_internal): Extend the "d<-A" alternative to "d<-a".
10662         (*movdi_64bit_mips16, *movsi_mips16): Add d<-a alternatives.
10663         Use d_operand in the splitters.  Remove redundant CONST_INT checks.
10664         (*movhi_mips16, *movqi_mips16): Likewise.  Use mips_output_move.
10665         (movti): New expander.
10666         (*movti, *movti_mips16): New insns.
10667         (mfhilo_<mode>, *mfhilo_<mode>, *mfhilo_<mode>_macc): Delete.
10668         (mfhi<GPR:mode>_<HILO:mode>): New pattern.
10669         (mthi<GPR:mode>_<HILO:mode>): Likewise.
10670         * config/mips/predicates.md (fpr_operand): Delete.
10671         (d_operand): New predicate.
10672
10673 2008-06-09  Michael Meissner  <michael.meissner@amd.com>
10674
10675         * config.gcc (i[34567]86-*-*): Put test in quotes to prevent
10676         failure on some Bourne shells.
10677         (x86_64-*-*): Ditto.
10678
10679 2008-06-09  Kai Tietz  <kai.tietz@onevision.com>
10680
10681         * config/i386/cygming.h (TARGET_SUBTARGET64_DEFAULT): New.
10682
10683 2008-06-09  Eric Botcazou  <ebotcazou@libertysurf.fr>
10684
10685         * doc/install.texi (*-*-solaris2*): Remove obsolete contents.
10686         (sparc-sun-solaris2*): Likewise.
10687
10688 2008-06-09  Arnaud Charlet  <charlet@adacore.com
10689
10690         * doc/install.texi: Update requirements to build the Ada compiler.
10691
10692 2008-06-08  Steven Bosscher  <stevenb.gcc@gmail.com>
10693
10694         * df-scan.c (struct df_scan_problem_data): Remove the
10695         mw_link_pool alloc pool.
10696         (df_scan_free_internal): Don't free it.
10697         (df_scan_alloc): Don't allocate it.
10698         * df.h (struct df_link): Update comment.
10699
10700 2008-06-08  Nathan Sidwell  <nathan@codesourcery.com>
10701
10702         * except.h: Correct checks for when SJLJ exceptions must be used.
10703
10704 2008-06-08  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
10705
10706         * doc/invoke.texi (Wenum-compare): Mention that it is enabled by
10707         default.
10708
10709 2008-06-08  Joseph Myers  <joseph@codesourcery.com>
10710
10711         PR tree-optimization/36218
10712         * configure.ac: Use LDFLAGS="${LDFLAGS_FOR_BUILD}" when running
10713         configure for the build system.
10714         (BUILD_LDFLAGS): Define.
10715         * configure: Regenerate.
10716         * Makefile.in (BUILD_LDFLAGS): Define to @BUILD_LDFLAGS@.
10717
10718 2008-07-08  Anatoly Sokolov  <aesok@post.ru>
10719
10720         PR target/36424
10721         * config/avr/avr.h (HARD_REGNO_RENAME_OK): Define.
10722         * config/avr/avr.c (avr_hard_regno_rename_ok): New function.
10723         * config/avr/avr-protos.h (avr_hard_regno_rename_ok): New prototype.
10724
10725 2008-06-07  Danny Smith  <dannysmith@users.sourceforge.net>
10726
10727         * config/i386/cygming.h (MAYBE_UWIN_CPP_BUILTINS): Remove.
10728
10729 2008-06-07  Joseph Myers  <joseph@codesourcery.com>
10730
10731         * config.gcc (Obsolete configurations): Remove list of
10732         configurations.
10733         (Unsupported targets list): Add *-*-linux*aout*, *-*-linux*libc1*,
10734         *-*-solaris2.[0-6], *-*-solaris2.[0-6].*, *-*-sysv*.  Remove other
10735         targets matched by those patterns.
10736         (strongarm*-*-*, ep9312*-*-*, xscale-*-*, parisc*-*-*,
10737         m680[012]0-*-*, *-*-linux*libc1*, *-*-linux*aout*,
10738         alpha*-*-unicosmk*, strongarm*-*-freebsd*, ep9312-*-elf,
10739         arm*-*-kaos*, cris-*-aout, parisc*64*-*-linux*, parisc*-*-linux*,
10740         hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
10741         i[34567]86-sequent-ptx4*, i[34567]86-sequent-sysv4*,
10742         i[34567]86-*-beoself*, i[34567]86-*-beos*, i[34567]86-*-sco3.2v5*,
10743         i[34567]86-*-sysv5*, i[34567]86-*-sysv4*, i[34567]86-*-uwin*,
10744         i[34567]86-*-kaos*, m68020-*-elf*, m68010-*-netbsdelf*,
10745         mips-wrs-windiss, mt-*-elf, powerpc-*-beos*, powerpc-*-chorusos*,
10746         powerpc-wrs-windiss*, powerpcle-*-sysv*, powerpc-*-kaos*,
10747         powerpcle-*-kaos*, sh*-*-kaos*, sparc-*-sysv4*, strongarm-*-elf*,
10748         strongarm-*-pe, strongarm-*-kaos*, vax-*-bsd*, vax-*-sysv*,
10749         vax-*-ultrix*, xscale-*-elf, xscale-*-coff,
10750         i[34567]86-*-linux*aout*, i[34567]86-*-linux*libc1): Remove.
10751         Make code for Solaris 7 and greater unconditional for Solaris.
10752         (ep9312-*-*, parisc1*, m680[012]0-*-*, parisc*-*-*, mt-*-*):
10753         Remove --with-* handling.
10754         * config/rs6000/sysv4.h (-mwindiss): Remove from all specs.
10755         (LIB_WINDISS_SPEC, CPP_OS_WINDISS_SPEC, STARTFILE_WINDISS_SPEC,
10756         ENDFILE_WINDISS_SPEC, LINK_START_WINDISS_SPEC,
10757         LINK_OS_WINDISS_SPEC): Remove.
10758         * config/rs6000/sysv4.opt (mwindiss): Remove.
10759         * configure.ac (strongarm*-*-*, xscale*-*-*): Remove.
10760         * configure: Regenerate.
10761         * doc/cpp.texi: Don't mention BeOS.
10762         * doc/extend.texi (interrupt): Don't mention MS1.
10763         * doc/install.texi: (i386-@var{any}-sysv, m68k-bull-sysv,
10764         m68k-hp-hpux, m68000-hp-hpux, m68000-att-sysv,
10765         alphaev5-cray-unicosmk*, xscale-*-*, i?86-*-linux*aout,
10766         i?86-*-sco3.2v5*, i?86-*-udk, m68k-hp-hpux, powerpc-*-sysv4,
10767         powerpc-*-sysv4, powerpcle-*-sysv4, *-*-sysv*, vax-dec-ultrix):
10768         Remove.
10769         * doc/invoke.texi (MT Options): Remove.
10770         (-mwindiss): Remove.
10771         (CRIS Options): Remove cris-axis-aout references.
10772         (HPPA Options): Don't mention hppa1.1-*-pro.
10773         * doc/md.texi: (MorphoTech family): Remove.
10774         * libgcc2.c: Don't handle UWIN.
10775         * config/alpha/t-unicosmk: Remove.
10776         * config/alpha/unicosmk.h: Remove.
10777         * config/arm/kaos-arm.h: Remove.
10778         * config/arm/kaos-strongarm.h: Remove.
10779         * config/arm/strongarm-coff.h: Remove.
10780         * config/arm/strongarm-elf.h: Remove.
10781         * config/arm/strongarm-pe.h: Remove.
10782         * config/arm/t-strongarm-pe: Remove.
10783         * config/arm/t-xscale-coff: Remove.
10784         * config/arm/t-xscale-elf: Remove.
10785         * config/arm/xscale-coff.h: Remove.
10786         * config/arm/xscale-elf.h: Remove.
10787         * config/chorus.h: Remove.
10788         * config/cris/aout.h: Remove.
10789         * config/cris/aout.opt: Remove.
10790         * config/cris/t-aout: Remove.
10791         * config/i386/beos-elf.h: Remove.
10792         * config/i386/kaos-i386.h: Remove.
10793         * config/i386/ptx4-i.h: Remove.
10794         * config/i386/sco5.h: Remove.
10795         * config/i386/sco5.opt: Remove.
10796         * config/i386/sysv4-cpp.h: Remove.
10797         * config/i386/sysv5.h: Remove.
10798         * config/i386/t-beos: Remove.
10799         * config/i386/t-sco5: Remove.
10800         * config/i386/t-uwin: Remove.
10801         * config/i386/uwin.asm: Remove.
10802         * config/i386/uwin.h: Remove.
10803         * config/kaos.h: Remove.
10804         * config/mips/windiss.h: Remove.
10805         * config/mt: Remove directory.
10806         * config/pa/pa-osf.h: Remove.
10807         * config/pa/pa-pro-end.h: Remove.
10808         * config/pa/t-pro: Remove.
10809         * config/ptx4.h: Remove.
10810         * config/rs6000/beos.h: Remove.
10811         * config/rs6000/kaos-ppc.h: Remove.
10812         * config/rs6000/t-beos: Remove.
10813         * config/rs6000/windiss.h: Remove.
10814         * config/sh/kaos-sh.h: Remove.
10815         * config/sol2-6.h: Remove.
10816         * config/sparc/sol26-sld.h: Remove.
10817         * config/sparc/sysv4-only.h: Remove.
10818         * config/vax/bsd.h: Remove.
10819         * config/vax/t-memfuncs: Remove.
10820         * config/vax/ultrix.h: Remove.
10821         * config/vax/vaxv.h: Remove.
10822         * config/windiss.h: Remove.
10823
10824 2008-06-06  Uros Bizjak <ubizjak@gmail.com>
10825
10826         PR rtl-optimization/36438
10827         * cse.c (fold_rtx) [ASHIFT, LSHIFTRT, ASHIFTRT]: Break out early
10828         for vector shifts with constant scalar shift operands.
10829
10830 2008-06-06  Sandip Matte  <sandip@rmicorp.com>
10831
10832         * doc/invoke.texi: Document -march=xlr.
10833         * config/mips/xlr.md: New file.
10834         * config/mips/mips.md: Include it.
10835         (cpu): Add "xlr".
10836         * config/mips/mips.h (PROCESSOR_XLR): New processor_type.
10837         * config/mips/mips.c (mips_cpu_info_table): Add an XLR entry.
10838         (mips_rtx_cost_data): Likewise.
10839
10840 2008-06-06  Nathan Froyd  <froydnj@codesourcery.com>
10841
10842         * config/rs6000/rs6000.c (rs6000_mode_dependent_address): Remove
10843         PRE_INC and PRE_DEC cases.
10844
10845 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
10846
10847         PR rtl-optimization/36419
10848         * except.c (expand_resx_expr): Call do_pending_stack_adjust () before
10849         the emitting jump insn.
10850
10851         PR target/36362
10852         * gimplify.c (gimplify_expr) <case TRUTH_NOT_EXPR>: If *expr_p type
10853         is not bool, boolify the whole *expr_p and convert to the desired type.
10854
10855 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
10856
10857         * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP value to 200805.
10858         * langhooks.h (struct lang_hooks_for_decls): Add omp_finish_clause.
10859         Add omp_private_outer_ref hook, add another argument to
10860         omp_clause_default_ctor hook.
10861         * langhooks-def.h (LANG_HOOKS_OMP_FINISH_CLAUSE): Define.
10862         (LANG_HOOKS_OMP_PRIVATE_OUTER_REF): Define.
10863         (LANG_HOOKS_OMP_CLAUSE_DEFAULT_CTOR): Change to
10864         hook_tree_tree_tree_tree_null.
10865         (LANG_HOOKS_DECLS): Add LANG_HOOKS_OMP_FINISH_CLAUSE and
10866         LANG_HOOKS_OMP_PRIVATE_OUTER_REF.
10867         * hooks.c (hook_tree_tree_tree_tree_null): New function.
10868         * hooks.h (hook_tree_tree_tree_tree_null): New prototype.
10869         * tree.def (OMP_TASK): New tree code.
10870         * tree.h (OMP_TASK_COPYFN, OMP_TASK_ARG_SIZE, OMP_TASK_ARG_ALIGN,
10871         OMP_CLAUSE_PRIVATE_OUTER_REF, OMP_CLAUSE_LASTPRIVATE_STMT,
10872         OMP_CLAUSE_COLLAPSE_ITERVAR, OMP_CLAUSE_COLLAPSE_COUNT,
10873         OMP_TASKREG_CHECK, OMP_TASKREG_BODY, OMP_TASKREG_CLAUSES,
10874         OMP_TASKREG_FN, OMP_TASKREG_DATA_ARG, OMP_TASK_BODY,
10875         OMP_TASK_CLAUSES, OMP_TASK_FN, OMP_TASK_DATA_ARG,
10876         OMP_CLAUSE_COLLAPSE_EXPR): Define.
10877         (enum omp_clause_default_kind): Add OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.
10878         (OMP_DIRECTIVE_P): Add OMP_TASK.
10879         (OMP_CLAUSE_COLLAPSE, OMP_CLAUSE_UNTIED): New clause codes.
10880         (OMP_CLAUSE_SCHEDULE_AUTO): New schedule kind.
10881         * tree.c (omp_clause_code_name): Add OMP_CLAUSE_COLLAPSE
10882         and OMP_CLAUSE_UNTIED entries.
10883         (omp_clause_num_ops): Likewise.  Increase OMP_CLAUSE_LASTPRIVATE
10884         num_ops to 2.
10885         (walk_tree_1): Handle OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
10886         Walk OMP_CLAUSE_LASTPRIVATE_STMT.
10887         * tree-pretty-print.c (dump_omp_clause): Handle
10888         OMP_CLAUSE_SCHEDULE_AUTO, OMP_CLAUSE_UNTIED, OMP_CLAUSE_COLLAPSE,
10889         OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.
10890         (dump_generic_node): Handle OMP_TASK and collapsed OMP_FOR loops.
10891         * c-omp.c (c_finish_omp_for): Allow pointer iterators.  Remove
10892         warning about unsigned iterators.  Change decl/init/cond/incr
10893         arguments to TREE_VECs, check arguments for all collapsed loops.
10894         (c_finish_omp_taskwait): New function.
10895         (c_split_parallel_clauses): Put OMP_CLAUSE_COLLAPSE clause to
10896         ws_clauses.
10897         * c-parser.c (c_parser_omp_for_loop): Parse collapsed loops.  Call
10898         default_function_array_conversion on init.  Add par_clauses argument.
10899         If decl is present in parallel's lastprivate clause, change it to
10900         shared and add lastprivate clause for decl to OMP_FOR_CLAUSES.
10901         Add clauses argument, on success set OMP_FOR_CLAUSES to it.  Look up
10902         collapse count in clauses.
10903         (c_parser_omp_for, c_parser_omp_parallel): Adjust
10904         c_parser_omp_for_loop callers.
10905         (OMP_FOR_CLAUSE_MASK): Add 1 << PRAGMA_OMP_CLAUSE_COLLAPSE.
10906         (c_parser_pragma): Handle PRAGMA_OMP_TASKWAIT.
10907         (c_parser_omp_clause_name): Handle collapse and untied clauses.
10908         (c_parser_omp_clause_collapse, c_parser_omp_clause_untied): New
10909         functions.
10910         (c_parser_omp_clause_schedule): Handle schedule(auto).
10911         Include correct location in the error message.
10912         (c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_COLLAPSE
10913         and PRAGMA_OMP_CLAUSE_UNTIED.
10914         (OMP_TASK_CLAUSE_MASK): Define.
10915         (c_parser_omp_task, c_parser_omp_taskwait): New functions.
10916         (c_parser_omp_construct): Handle PRAGMA_OMP_TASK.
10917         * tree-nested.c (convert_nonlocal_omp_clauses,
10918         convert_local_omp_clauses): Handle OMP_CLAUSE_LASTPRIVATE_STMT,
10919         OMP_CLAUSE_REDUCTION_INIT, OMP_CLAUSE_REDUCTION_MERGE,
10920         OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
10921         Don't handle TREE_STATIC or DECL_EXTERNAL VAR_DECLs in
10922         OMP_CLAUSE_DECL.
10923         (conver_nonlocal_reference, convert_local_reference,
10924         convert_call_expr): Handle OMP_TASK the same as OMP_PARALLEL.  Use
10925         OMP_TASKREG_* macros rather than OMP_PARALLEL_*.
10926         (walk_omp_for): Adjust for OMP_FOR_{INIT,COND,INCR} changes.
10927         * tree-gimple.c (is_gimple_stmt): Handle OMP_TASK.
10928         * c-tree.h (c_begin_omp_task, c_finish_omp_task): New prototypes.
10929         * c-pragma.h (PRAGMA_OMP_TASK, PRAGMA_OMP_TASKWAIT): New.
10930         (PRAGMA_OMP_CLAUSE_COLLAPSE, PRAGMA_OMP_CLAUSE_UNTIED): New.
10931         * c-typeck.c (c_begin_omp_task, c_finish_omp_task): New functions.
10932         (c_finish_omp_clauses): Handle OMP_CLAUSE_COLLAPSE and
10933         OMP_CLAUSE_UNTIED.
10934         * c-pragma.c (init_pragma): Init omp task and omp taskwait pragmas.
10935         * c-common.h (c_finish_omp_taskwait): New prototype.
10936         * gimple-low.c (lower_stmt): Handle OMP_TASK.
10937         * tree-parloops.c (create_parallel_loop): Create 1 entry
10938         vectors for OMP_FOR_{INIT,COND,INCR}.
10939         * tree-cfg.c (remove_useless_stmts_1): Handle OMP_* containers.
10940         (make_edges): Handle OMP_TASK.
10941         * tree-ssa-operands.c (get_expr_operands): Handle collapsed OMP_FOR
10942         loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
10943         * tree-inline.c (estimate_num_insns_1): Handle OMP_TASK.
10944         * builtin-types.def (BT_PTR_ULONGLONG, BT_PTR_FN_VOID_PTR_PTR,
10945         BT_FN_BOOL_ULONGLONGPTR_ULONGLONGPTR,
10946         BT_FN_BOOL_BOOL_ULL_ULL_ULL_ULLPTR_ULLPTR,
10947         BT_FN_BOOL_BOOL_ULL_ULL_ULL_ULL_ULLPTR_ULLPTR,
10948         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT): New.
10949         * omp-builtins.def (BUILT_IN_GOMP_TASK, BUILT_IN_GOMP_TASKWAIT,
10950         BUILT_IN_GOMP_LOOP_ULL_STATIC_START,
10951         BUILT_IN_GOMP_LOOP_ULL_DYNAMIC_START,
10952         BUILT_IN_GOMP_LOOP_ULL_GUIDED_START,
10953         BUILT_IN_GOMP_LOOP_ULL_RUNTIME_START,
10954         BUILT_IN_GOMP_LOOP_ULL_ORDERED_STATIC_START,
10955         BUILT_IN_GOMP_LOOP_ULL_ORDERED_DYNAMIC_START,
10956         BUILT_IN_GOMP_LOOP_ULL_ORDERED_GUIDED_START,
10957         BUILT_IN_GOMP_LOOP_ULL_ORDERED_RUNTIME_START,
10958         BUILT_IN_GOMP_LOOP_ULL_STATIC_NEXT,
10959         BUILT_IN_GOMP_LOOP_ULL_DYNAMIC_NEXT,
10960         BUILT_IN_GOMP_LOOP_ULL_GUIDED_NEXT,
10961         BUILT_IN_GOMP_LOOP_ULL_RUNTIME_NEXT,
10962         BUILT_IN_GOMP_LOOP_ULL_ORDERED_STATIC_NEXT,
10963         BUILT_IN_GOMP_LOOP_ULL_ORDERED_DYNAMIC_NEXT,
10964         BUILT_IN_GOMP_LOOP_ULL_ORDERED_GUIDED_NEXT,
10965         BUILT_IN_GOMP_LOOP_ULL_ORDERED_RUNTIME_NEXT): New builtins.
10966         * gimplify.c (gimplify_omp_for): Allow pointer type for decl,
10967         handle POINTER_PLUS_EXPR.  If loop counter has been replaced and
10968         original iterator is present in lastprivate clause or if
10969         collapse > 1, set OMP_CLAUSE_LASTPRIVATE_STMT.  Handle collapsed
10970         OMP_FOR loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
10971         (gimplify_expr): Handle OMP_SECTIONS_SWITCH and OMP_TASK.
10972         (enum gimplify_omp_var_data): Add GOVD_PRIVATE_OUTER_REF.
10973         (omp_notice_variable): Set GOVD_PRIVATE_OUTER_REF if needed,
10974         if it is set, lookup var in outer contexts too.  Handle
10975         OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.  Handle vars that are supposed
10976         to be implicitly determined firstprivate for task regions.
10977         (gimplify_scan_omp_clauses): Set GOVD_PRIVATE_OUTER_REF if needed,
10978         if it is set, lookup var in outer contexts too.  Set
10979         OMP_CLAUSE_PRIVATE_OUTER_REF if GOVD_PRIVATE_OUTER_REF is set.
10980         Handle OMP_CLAUSE_LASTPRIVATE_STMT, OMP_CLAUSE_COLLAPSE and
10981         OMP_CLAUSE_UNTIED.  Take region_type as last argument
10982         instead of in_parallel and in_combined_parallel.
10983         (gimplify_omp_parallel, gimplify_omp_for, gimplify_omp_workshare):
10984         Adjust callers.
10985         (gimplify_adjust_omp_clauses_1): Set OMP_CLAUSE_PRIVATE_OUTER_REF if
10986         GOVD_PRIVATE_OUTER_REF is set.  Call omp_finish_clause langhook.
10987         (new_omp_context): Set default_kind to
10988         OMP_CLAUSE_DEFAULT_UNSPECIFIED for OMP_TASK regions.
10989         (omp_region_type): New enum.
10990         (struct gimplify_omp_ctx): Remove is_parallel and is_combined_parallel
10991         fields, add region_type.
10992         (new_omp_context): Take region_type as argument instead of is_parallel
10993         and is_combined_parallel.
10994         (gimple_add_tmp_var, omp_firstprivatize_variable, omp_notice_variable,
10995         omp_is_private, omp_check_private): Adjust ctx->is_parallel and
10996         ctx->is_combined_parallel checks.
10997         (gimplify_omp_task): New function.
10998         (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_COLLAPSE and
10999         OMP_CLAUSE_UNTIED.
11000         * omp-low.c (extract_omp_for_data): Use schedule(static)
11001         for schedule(auto).  Handle pointer and unsigned iterators.
11002         Compute fd->iter_type.  Handle POINTER_PLUS_EXPR increments.
11003         Add loops argument.  Extract data for collapsed OMP_FOR loops.
11004         (expand_parallel_call): Assert sched_kind isn't auto,
11005         map runtime schedule to index 3.
11006         (struct omp_for_data_loop): New type.
11007         (struct omp_for_data): Remove v, n1, n2, step, cond_code fields.
11008         Add loop, loops, collapse and iter_type fields.
11009         (workshare_safe_to_combine_p): Disallow combined for if
11010         iter_type is unsigned long long.  Don't combine collapse > 1 loops
11011         unless all bounds and steps are constant.  Adjust extract_omp_for_data
11012         caller.
11013         (expand_omp_for_generic): Handle pointer, unsigned and long long
11014         iterators.  Handle collapsed OMP_FOR loops.  Adjust
11015         for struct omp_for_data changes.  If libgomp function doesn't return
11016         boolean_type_node, add comparison of the return value with 0.
11017         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk): Handle
11018         pointer, unsigned and long long iterators.  Adjust for struct
11019         omp_for_data changes.
11020         (expand_omp_for): Assert sched_kind isn't auto, map runtime schedule
11021         to index 3.  Use GOMP_loop_ull*{start,next} if iter_type is
11022         unsigned long long.  Allocate loops array, pass it to
11023         extract_omp_for_data.  For collapse > 1 loops use always
11024         expand_omp_for_generic.
11025         (omp_context): Add sfield_map and srecord_type fields.
11026         (is_task_ctx, lookup_sfield): New functions.
11027         (use_pointer_for_field): Use is_task_ctx helper.  Change first
11028         argument's type from const_tree to tree.  Clarify comment.
11029         In OMP_TASK disallow copy-in/out sharing.
11030         (build_sender_ref): Call lookup_sfield instead of lookup_field.
11031         (install_var_field): Add mask argument.  Populate both record_type
11032         and srecord_type if needed.
11033         (delete_omp_context): Destroy sfield_map, clear DECL_ABSTRACT_ORIGIN
11034         in srecord_type.
11035         (fixup_child_record_type): Also remap FIELD_DECL's DECL_SIZE{,_UNIT}
11036         and DECL_FIELD_OFFSET.
11037         (scan_sharing_clauses): Adjust install_var_field callers.  For
11038         firstprivate clauses on explicit tasks allocate the var by value in
11039         record_type unconditionally, rather than by reference.
11040         Handle OMP_CLAUSE_PRIVATE_OUTER_REF.  Scan OMP_CLAUSE_LASTPRIVATE_STMT.
11041         Use is_taskreg_ctx instead of is_parallel_ctx.
11042         Handle OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
11043         (create_omp_child_function_name): Add task_copy argument, use
11044         *_omp_cpyfn* names if it is true.
11045         (create_omp_child_function): Add task_copy argument, if true create
11046         *_omp_cpyfn* helper function.
11047         (scan_omp_parallel): Adjust create_omp_child_function callers.
11048         Rename parallel_nesting_level to taskreg_nesting_level.
11049         (scan_omp_task): New function.
11050         (lower_rec_input_clauses): Don't run constructors for firstprivate
11051         explicit task vars which are initialized by *_omp_cpyfn*.
11052         Pass outer var ref to omp_clause_default_ctor hook if
11053         OMP_CLAUSE_PRIVATE_OUTER_REF or OMP_CLAUSE_LASTPRIVATE.
11054         Replace OMP_CLAUSE_REDUCTION_PLACEHOLDER decls in
11055         OMP_CLAUSE_REDUCTION_INIT.
11056         (lower_send_clauses): Clear DECL_ABSTRACT_ORIGIN if in task to
11057         avoid duplicate setting of fields.  Handle
11058         OMP_CLAUSE_PRIVATE_OUTER_REF.
11059         (lower_send_shared_vars): Use srecord_type if non-NULL.  Don't
11060         copy-out if TREE_READONLY, only copy-in.
11061         (expand_task_copyfn): New function.
11062         (expand_task_call): New function.
11063         (struct omp_taskcopy_context): New type.
11064         (task_copyfn_copy_decl, task_copyfn_remap_type, create_task_copyfn):
11065         New functions.
11066         (lower_omp_parallel): Rename to...
11067         (lower_omp_taskreg): ... this.  Use OMP_TASKREG_* macros where needed.
11068         Call create_task_copyfn if srecord_type is needed.  Adjust
11069         sender_decl type.
11070         (task_shared_vars): New variable.
11071         (check_omp_nesting_restrictions): Warn if work-sharing,
11072         barrier, master or ordered region is closely nested inside OMP_TASK.
11073         Add warnings for barrier if closely nested inside of work-sharing,
11074         ordered, or master region.
11075         (scan_omp_1): Call check_omp_nesting_restrictions even for
11076         GOMP_barrier calls.  Rename parallel_nesting_level to
11077         taskreg_nesting_level.  Handle OMP_TASK.
11078         (lower_lastprivate_clauses): Even if some lastprivate is found on a
11079         work-sharing construct, continue looking for them on parent parallel
11080         construct.
11081         (lower_omp_for_lastprivate): Add lastprivate clauses
11082         to the beginning of dlist rather than end.  Adjust for struct
11083         omp_for_data changes.
11084         (lower_omp_for): Add rec input clauses before OMP_FOR_PRE_BODY,
11085         not after it.  Handle collapsed OMP_FOR loops, adjust for
11086         OMP_FOR_{INIT,COND,INCR} changes, adjust extract_omp_for_data caller.
11087         (get_ws_args_for): Adjust extract_omp_for_data caller.
11088         (scan_omp_for): Handle collapsed OMP_FOR
11089         loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
11090         (lower_omp_single_simple): If libgomp function doesn't return
11091         boolean_type_node, add comparison of the return value with 0.
11092         (diagnose_sb_1, diagnose_sb_2): Handle collapsed OMP_FOR
11093         loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.  Handle OMP_TASK.
11094         (parallel_nesting_level): Rename to...
11095         (taskreg_nesting_level): ... this.
11096         (is_taskreg_ctx): New function.
11097         (build_outer_var_ref, omp_copy_decl): Use is_taskreg_ctx instead
11098         of is_parallel_ctx.
11099         (execute_lower_omp): Rename parallel_nesting_level to
11100         taskreg_nesting_level.
11101         (expand_omp_parallel): Rename to...
11102         (expand_omp_taskreg): ... this.  Use OMP_TASKREG_* macros where needed.
11103         Call omp_task_call for OMP_TASK regions.
11104         (expand_omp): Adjust caller, handle OMP_TASK.
11105         (lower_omp_1): Adjust lower_omp_taskreg caller, handle OMP_TASK.
11106
11107         * bitmap.c (bitmap_default_obstack_depth): New variable.
11108         (bitmap_obstack_initialize, bitmap_obstack_release): Do nothing
11109         if argument is NULL and bitmap_default_obstack is already initialized.
11110         * ipa-struct-reorg.c (do_reorg_1): Call bitmap_obstack_release
11111         at the end.
11112         * matrix-reorg.c (matrix_reorg): Likewise.
11113
11114 2008-06-06  Uros Bizjak  <ubizjak@gmail.com>
11115
11116         * config/i386/i386.md (*indirect_jump): Macroize using P
11117         mode iterator.  Remove !TARGET_64BIT from insn constraints.
11118         (*tablejump_1): Ditto.
11119         (*indirect_jump_rex64): Remove insn pattern.
11120         (*tablejump_1_rex64): Ditto.
11121         (eh_return_<mode>): Macroize using P mode iterator from eh_return_di
11122         and eh_return_si insn patterns.
11123
11124 2008-06-06  Richard Guenther  <rguenther@suse.de>
11125
11126         * tree-ssa-structalias.c (merge_smts_into): Remove.
11127         (find_what_p_points_to): Do not bother to compute the
11128         points-to set for pt_anything pointers.
11129         * tree-ssa-operands.c (get_addr_dereference_operands): No NMT
11130         for pt_anything pointers is ok.
11131
11132 2008-06-06  Jan Hubicka  <jh@suse.cz>
11133
11134         * passes.c (execute_ipa_pass_list): Do not regenerate summaries.
11135
11136 2008-06-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11137
11138         * cgraph.c: Fix typos in comments.
11139         (cgraph_availability_names): Fix string typo.
11140         * fold-const.c: Fix typos in comments.
11141         (fold_binary): Fix typo in warning.
11142         * genautomata.c: Fix typos in comments.
11143         (check_presence_pattern_sets): Fix typo in local variable.
11144         (output_description): Fix typo in output.
11145         * ggc-zone.c (ggc_pch_finish): Fix typo in error message.
11146         * hwint.h: Likewise.
11147         * matrix-reorg.c (check_allocation_function): Likewise.
11148         * omega.c (smooth_weird_equations): Likewise.
11149         * auto-inc-dec.c: Fix typos in comments.
11150         * bb-reorder.c: Likewise.
11151         * builtins.c: Likewise.
11152         * c-common.c: Likewise.
11153         * c-cppbuiltin.c: Likewise.
11154         * c-parser.c: Likewise.
11155         * c-pretty-print.c: Likewise.
11156         * cfgcleanup.c: Likewise.
11157         * cfgexpand.c: Likewise.
11158         * cfghooks.c: Likewise.
11159         * cfglayout.c: Likewise.
11160         * cfgloopmanip.c: Likewise.
11161         * cgraphunit.c: Likewise.
11162         * coverage.c: Likewise.
11163         * dbxout.c: Likewise.
11164         * df-byte-scan.c: Likewise.
11165         * df-core.c: Likewise.
11166         * df-problems.c: Likewise.
11167         * df-scan.c: Likewise.
11168         * dfp.c: Likewise.
11169         * dominance.c: Likewise.
11170         * domwalk.c: Likewise.
11171         * dse.c: Likewise.
11172         * dwarf2out.c: Likewise.
11173         * emit-rtl.c: Likewise.
11174         * et-forest.c: Likewise.
11175         * function.c: Likewise.
11176         * function.h: Likewise.
11177         * gcc.c: Likewise.
11178         * gcov-io.c: Likewise.
11179         * gcov.c: Likewise.
11180         * gcse.c: Likewise.
11181         * genattrtab.c: Likewise.
11182         * ggc-page.c: Likewise.
11183         * gimplify.c: Likewise.
11184         * gthr-lynx.h: Likewise.
11185         * haifa-sched.c: Likewise.
11186         * ipa-cp.c: Likewise.
11187         * ipa-inline.c: Likewise.
11188         * ipa-prop.h: Likewise.
11189         * ipa-pure-const.c: Likewise.
11190         * ipa-struct-reorg.c: Likewise.
11191         * ipa-struct-reorg.h: Likewise.
11192         * ipa-type-escape.c: Likewise.
11193         * ipa.c: Likewise.
11194         * loop-doloop.c: Likewise.
11195         * mips-tfile.c: Likewise.
11196         * mkmap-flat.awk: Likewise.
11197         * mkmap-symver.awk: Likewise.
11198         * modulo-sched.c: Likewise.
11199         * omp-low.c: Likewise.
11200         * optabs.c: Likewise.
11201         * optabs.h: Likewise.
11202         * opts.c: Likewise.
11203         * passes.c: Likewise.
11204         * postreload-gcse.c: Likewise.
11205         * postreload.c: Likewise.
11206         * predict.c: Likewise.
11207         * pretty-print.h: Likewise.
11208         * profile.c: Likewise.
11209         * protoize.c: Likewise.
11210         * ra-conflict.c: Likewise.
11211         * real.c: Likewise.
11212         * recog.c: Likewise.
11213         * regclass.c: Likewise.
11214         * regs.h: Likewise.
11215         * reload.c: Likewise.
11216         * rtl-error.c: Likewise.
11217         * rtlanal.c: Likewise.
11218         * scan.h: Likewise.
11219         * sched-rgn.c: Likewise.
11220         * see.c: Likewise.
11221         * stmt.c: Likewise.
11222         * target.h: Likewise.
11223         * tree-dfa.c: Likewise.
11224         * tree-eh.c: Likewise.
11225         * tree-flow-inline.h: Likewise.
11226         * tree-inline.c: Likewise.
11227         * tree-into-ssa.c: Likewise.
11228         * tree-loop-distribution.c: Likewise.
11229         * tree-nested.c: Likewise.
11230         * tree-parloops.c: Likewise.
11231         * tree-pass.h: Likewise.
11232         * tree-pretty-print.c: Likewise.
11233         * tree-profile.c: Likewise.
11234         * tree-scalar-evolution.c: Likewise.
11235         * tree-sra.c: Likewise.
11236         * tree-ssa-alias-warnings.c: Likewise.
11237         * tree-ssa-ccp.c: Likewise.
11238         * tree-ssa-coalesce.c: Likewise.
11239         * tree-ssa-dom.c: Likewise.
11240         * tree-ssa-dse.c: Likewise.
11241         * tree-ssa-forwprop.c: Likewise.
11242         * tree-ssa-live.c: Likewise.
11243         * tree-ssa-live.h: Likewise.
11244         * tree-ssa-loop-im.c: Likewise.
11245         * tree-ssa-loop-ivopts.c: Likewise.
11246         * tree-ssa-loop-niter.c: Likewise.
11247         * tree-ssa-loop-prefetch.c: Likewise.
11248         * tree-ssa-phiopt.c: Likewise.
11249         * tree-ssa-phiprop.c: Likewise.
11250         * tree-ssa-sccvn.c: Likewise.
11251         * tree-ssa-ter.c: Likewise.
11252         * tree-ssa-threadupdate.c: Likewise.
11253         * tree-ssa.c: Likewise.
11254         * tree-vect-analyze.c: Likewise.
11255         * tree-vect-transform.c: Likewise.
11256         * tree-vectorizer.c: Likewise.
11257         * tree-vn.c: Likewise.
11258         * tree-vrp.c: Likewise.
11259         * tree.c: Likewise.
11260         * tree.def: Likewise.
11261         * tree.h: Likewise.
11262         * unwind-dw2-fde.c: Likewise.
11263         * unwind.inc: Likewise.
11264         * value-prof.c: Likewise.
11265         * vmsdbgout.c: Likewise.
11266
11267 2008-06-05  David Edelsohn  <edelsohn@gnu.org>
11268
11269         * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Do not
11270         always place FP constants in the TOC for TARGET_POWERPC64.
11271         * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Same.
11272
11273 2008-06-05  Joseph Myers  <joseph@codesourcery.com>
11274
11275         * config.gcc (powerpc-*-linux*spe*): Use t-dfprules.
11276         * config/rs6000/dfp.md (negdd2, absdd2, negtd2, abstd2): Do not
11277         enable for TARGET_E500_DOUBLE.
11278         (*movdd_softfloat32): Also enable for !TARGET_FPRS.
11279         * config/rs6000/rs6000.c (invalid_e500_subreg): Treat decimal
11280         floating-point modes like integer modes for E500 double.
11281         (rs6000_legitimate_offset_address_p): Likewise.
11282         (rs6000_legitimize_address): Likewise.  Do not allow REG+REG
11283         addressing for DDmode for E500 double.
11284         (rs6000_hard_regno_nregs): Do not treat decimal floating-point
11285         modes as using 64-bits of registers for E500 double.
11286         (spe_build_register_parallel): Do not handle DDmode or TDmode.
11287         (rs6000_spe_function_arg): Do not handle DDmode or TDmode
11288         specially for E500 double.
11289         (function_arg): Do not call rs6000_spe_function_arg for DDmode or
11290         TDmode for E500 double.
11291         (rs6000_gimplify_va_arg): Only handle SDmode in registers
11292         specially if TARGET_HARD_FLOAT && TARGET_FPRS.
11293         (rs6000_split_multireg_move): Do not handle TDmode specially for
11294         E500 double.
11295         (spe_func_has_64bit_regs_p): Do not treat DDmode or TDmode as
11296         using 64-bit registers for E500 double.
11297         (emit_frame_save): Do not handle DDmode specially for E500 double.
11298         (gen_frame_mem_offset): Likewise.
11299         (rs6000_function_value): Do not call spe_build_register_parallel
11300         for DDmode or TDmode.
11301         (rs6000_libcall_value): Likewise.
11302         * config/rs6000/rs6000.h (LOCAL_ALIGNMENT, MEMBER_TYPE_FORCES_BLK,
11303         DATA_ALIGNMENT, CLASS_MAX_NREGS): Do not handle DDmode specially
11304         for E500 double.
11305
11306 2008-06-04  H.J. Lu  <hongjiu.lu@intel.com>
11307
11308         * config/i386/i386.c (setup_incoming_varargs_64): Fix a typo
11309         in comments.
11310
11311 2008-06-04  Junjie Gu <jgu@tensilica.com>
11312
11313         * config/xtensa/lib2funcs.S (__xtensa_nonlocal_goto): Use unsigned
11314         comparison for frame pointers.
11315
11316 2008-06-04  Andy Hutchinson  <hutchinsonandy@aim.com>
11317
11318         PR target/27386
11319         * config/avr/avr.h (PUSH_ROUNDING): Remove.
11320
11321 2008-06-04  Andy Hutchinson  <hutchinsonandy@aim.com>
11322
11323         PR target/30243
11324         * builtins.c (expand_builtin_signbit): Don't take lowpart when
11325         register is already smaller or equal to required mode.
11326
11327 2008-06-04  Xinliang David Li  <davidxl@google.com>
11328
11329         * tree-call-cdce.c: New file.
11330         (cond_dead_built_in_calls): New static variable.
11331         (input_domain): New struct.
11332         (check_pow): New function.
11333         (check_builtin_call): Ditto.
11334         (check_target_format): Ditto.
11335         (is_call_dce_candidate): Ditto.
11336         (gen_one_condition): Ditto.
11337         (gen_conditions_for_domain): Ditto.
11338         (get_domain): Ditto.
11339         (gen_conditions_for_pow_cst_base): Ditto.
11340         (gen_conditions_for_pow_int_base): Ditto.
11341         (gen_conditions_for_pow): Ditto.
11342         (get_no_error_domain): Ditto.
11343         (gen_shrink_wrap_conditions): Ditto.
11344         (shrink_wrap_one_built_in_call): Ditto.
11345         (shink_wrap_conditional_dead_built_in_calls): Ditto.
11346         (tree_call_cdce): Ditto.
11347         (gate_call_cdce): Ditto.
11348         (pass_call_cdce): New gimple pass.
11349         * passes.c: (init_optimization_passes): New pass.
11350         * tree-pass.h: New pass declaration.
11351         * opts.c (decode_options): New flag setting.
11352         * common.opt: Add -ftree-builtin-call-dce flag.
11353         * Makefile.in: Add new source file.
11354         * tempvar.def: New tv_id.
11355         * doc/invoke.texi (-ftree-builtin-call-dce): New flag.
11356
11357 2008-06-04  Richard Guenther  <rguenther@suse.de>
11358
11359         * tree-flow-inline.h (is_global_var): Do not check TREE_STATIC on MTAGs.
11360         (is_call_clobbered): Always check var_ann->call_clobbered.
11361         (mark_call_clobbered): Always set var_ann->call_clobbered.
11362         (clear_call_clobbered): Always clear var_ann->call_clobbered.
11363         * tree-ssa-alias.c (mark_non_addressable): Use clear_call_clobbered.
11364         (reset_alias_info): Clear call clobbering info on MTAGs and
11365         globals as well.
11366         (set_pt_anything): Set pt_global_mem.
11367         (create_tag_raw): Adjust comment.
11368         (may_be_aliased): Do not check TREE_PUBLIC on MTAGs.
11369
11370 2008-06-04  Joseph Myers  <joseph@codesourcery.com>
11371             Maxim Kuvyrkov  <maxim@codesourcery.com>
11372
11373         * config/m68k/m68k.opt (mxgot): New option.
11374         * config/m68k/m68k.c (legitimize_pic_address): Handle -mxgot.
11375         (m68k_output_addr_const_extra): New.
11376         * config/m68k/m68k.h (OUTPUT_ADDR_CONST_EXTRA): New.
11377         * config/m68k/m68k-protos.h (m68k_output_addr_const_extra): Declare.
11378         * config/m68k/m68k.md (UNSPEC_GOTOFF): Define.
11379         * doc/invoke.texi (M680x0 Options): Document -mxgot.
11380
11381 2008-06-04  Richard Guenther  <rguenther@suse.de>
11382
11383         * tree-ssa-structalias.c (handle_ptr_arith): Correctly handle
11384         negative or non-representable offsets.
11385
11386 2008-06-03  H.J. Lu  <hongjiu.lu@intel.com>
11387
11388         * config/i386/i386.c (ix86_gen_leave): New.
11389         (ix86_gen_pop1): Likewise.
11390         (ix86_gen_add3): Likewise.
11391         (ix86_gen_sub3): Likewise.
11392         (ix86_gen_sub3_carry): Likewise.
11393         (ix86_gen_one_cmpl2): Likewise.
11394         (ix86_gen_monitor): Likewise.
11395         (override_options): Initialize ix86_gen_leave, ix86_gen_pop1,
11396         ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
11397         ix86_gen_one_cmpl2 and ix86_gen_monitor.
11398         (ix86_file_end): Use mov%z0 instead of mov{q}/mov{l}.
11399         (output_set_got): Use mov%z0, pop%z0 and add%z0 instead of
11400         mov{q}/mov{l}, pop{q}/pop{l} and add{q}/add{l}.
11401         (ix86_expand_epilogue): Updated.
11402         (print_operand): Handle integer register operand for 'z'.
11403         (ix86_expand_strlensi_unroll_1): Likewise.
11404         (ix86_expand_strlen): Likewise.
11405         (ix86_expand_builtin): Likewise.
11406         (x86_output_mi_thunk): Use mov%z1 and add%z1 instead of
11407         mov{q}/mov{l} and add{q}/add{l}.
11408
11409 2008-06-03  Kai Tietz  <kai.tietz@onevision.com>
11410
11411         * config/i386/i386.md (P): New mode iterator.
11412         (SFmode push_operand splitter): Macroize DImode and SImode pushes
11413         using P mode iterator.
11414         (DFmode push_operand splitter): Ditto.
11415         (XFmode push_operand splitter): Ditto.
11416         (DFmode float_extend SFmode push_operand splitter): Ditto.
11417         (XFmode float_extend SFmode push_operand splitter): Do not generate
11418         SImode pushes for 64bit target.  Macroize Dimode and SImode
11419         pushes using P mode iterator.
11420         (XFmode float_extend DFmode push_operand splitter): Ditto.
11421
11422 2008-06-03  Kai Tietz  <kai.tietz@onevision.com>
11423
11424         * config/i386/i386-protos.h (ix86_reg_parm_stack_space): New.
11425         * config/i386/i386.h (ix86_reg_parm_stack_space): Removed prototype.
11426         * config/i386/i386.c (ix86_reg_parm_stack_space): Changed
11427         return type to int.
11428         (ix86_call_abi_override): Remove check for call_used_regs.
11429
11430 2008-06-03  Richard Guenther  <rguenther@suse.de>
11431
11432         * tree-ssa-structalias.c (find_func_aliases): Add constraints
11433         for the lhs of calls if the return type contains pointers.
11434
11435 2008-06-03  Kai Tietz  <kai.tietz@onevision.com>
11436
11437         * doc/tm.texi (OVERRIDE_ABI_FORMAT): New.
11438         * doc/extend.texi (ms_abi,sysv_abi): New attribute description.
11439         * function.c (allocate_struct_function): Use of OVERRIDE_ABI_FORMAT.
11440         * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Make use
11441         of cfun and DEFAULT_ABI to deceide abi mode.
11442         (DEFAULT_ABI): New.
11443         (REG_PARM_STACK_SPACE): Removed.
11444         (OUTGOING_REG_PARM_STACK_SPACE): Removed.
11445         (STACK_BOUNDARY): Use default target to deceide stack boundary.
11446         * config/i386/i386-protos.h (ix86_cfun_abi): New.
11447         (ix86_function_abi): Likewise.
11448         (ix86_function_type_abi): Likewise.
11449         (ix86_call_abi_override): Likewise.
11450         * confid/i386/i386.md (SSE_REGPARM_MAX): Replaced by abi
11451         specific define X86_64_SSE_REGPARM_MAX/X64_SSE_REGPARM_MAX.
11452         * config/i386/i386.c (override_options): Replace TARGET_64BIT_MS_ABI.
11453         (X86_64_VARARGS_SIZE): Replace REGPARM_MAX and SSE_REGPARM_MAX by abi
11454         specific defines.
11455         (X86_64_REGPARM_MAX): New.
11456         (X86_64_SSE_REGPARM_MAX): New.
11457         (X64_REGPARM_MAX): New.
11458         (X64_SSE_REGPARM_MAX): New.
11459         (X86_32_REGPARM_MAX): New.
11460         (X86_32_SSE_REGPARM_MAX): New.
11461         (ix86_handle_cconv_attribute): Replace TARGET_64BIT_MS_ABI.
11462         (ix86_function_regparm): Handle user calling abi.
11463         (ix86_function_arg_regno_p): Replace TARGET_64BIT_MS_ABI
11464         by DEFAULT_ABI versus SYSV_ABI check.
11465         (ix86_reg_parm_stack_space): New.
11466         (ix86_function_type_abi): New.
11467         (ix86_call_abi_override): New.
11468         (ix86_function_abi): New.
11469         (ix86_cfun_abi): New.
11470         (init_cumulative_args): Call abi specific initialization.
11471         (function_arg_advance): Remove TARGET_64BIT_MS_ABI.
11472         (function_arg_64): Extend SSE_REGPARM_MAX check.
11473         (function_arg (): Remove TARGET_64BIT_MS_ABI.
11474         (ix86_pass_by_reference): Likewise.
11475         (ix86_function_value_regno_p): Likewise.
11476         (function_value_64): Replace REGPARM_MAX, and SSE_REGPARM_MAX.
11477         (ix86_function_value_1): Replace TARGET_64BIT_MS_ABI.
11478         (return_in_memory_ms_64): Replace TARGET_64BIT_MS_ABI.
11479         (ix86_build_builtin_va_list): Replace TARGET_64BIT_MS_ABI.
11480         (setup_incoming_varargs_64): Adjust regparm for call abi.
11481         (ix86_setup_incoming_varargs): Replace TARGET_64BIT_MS_ABI.
11482         (ix86_va_start): Likewise.
11483         (ix86_gimplify_va_arg): Likewise.
11484         (ix86_expand_prologue): Likewise.
11485         (output_pic_addr_const): Likewise.
11486         (ix86_init_machine_status): Initialize call_abi by DEFAULT_ABI.
11487         (x86_this_parameter): Replace TARGET_64BIT_MS_ABI.
11488         (x86_output_mi_thunk): Likewise.
11489         (x86_function_profiler): Likewise.
11490         * config/i386/i386.h (TARGET_64BIT_MS_ABI): Use ix64_cfun_abi.
11491         (SYSV_ABI, MS_ABI): New constants.
11492         (DEFAULT_ABI): New.
11493         (init_regs): Add prototype of function in regclass.c file.
11494         (OVERRIDE_ABI_FORMAT): New.
11495         (CONDITIONAL_REGISTER_USAGE): Remove TARGET_64BIT_MS_ABI part.
11496         (REG_PARM_STACK_SPACE): Use ix86_reg_parm_stack_space.
11497         (OUTGOING_REG_PARM_STACK_SPACE): New.
11498         (ix86_reg_parm_stack_space): New prototype.
11499         (CUMULATIVE_ARGS): Add call_abi member.
11500         (machine_function): Add call_abi member.
11501         * config/i386/mingw32.h (EXTRA_OS_CPP_BUILTINS): Replace
11502         TARGET_64BIT_MS_ABI by DEFAULT_ABI compare to MS_ABI.
11503
11504 2008-06-02  Andy Hutchinson  <hutchinsonandy@aim.com>
11505
11506         PR target/34879
11507         * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Redefine.
11508         (avr_builtin_setjmp_frame_value): New function.
11509         * config/avr/avr.md (nonlocal_goto_receiver): Define.
11510         (nonlocal_goto): Define.
11511
11512 2008-06-02  Richard Sandiford  <rdsandiford@googlemail.com>
11513
11514         * config/mips/mips.c (mips_emit_loadgp): Return early if
11515         there is nothing do to, otherwise emit a blockage if
11516         !TARGET_EXPLICIT_RELOCS || crtl->profile.
11517         * config/mips/mips.md (loadgp_blockage): Use SI rather than DI.
11518
11519 2008-06-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11520
11521         * configure.ac: Drop unneeded backslash ending up in config.in.
11522         * acinclude.m4: Likewise.
11523         * config.in: Regenerate.
11524
11525 2008-05-26  Jan Hubicka  <jh@suse.cz>
11526
11527         * predict.c (maybe_hot_frequency_p): Break out of...
11528         (maybe_hot_bb_p): ... here.
11529         (maybe_hot_edge_p): New.
11530         * tree-ssa-coalesce.c (coalesce_cost_edge): Compute cost based on edge.
11531         * basic-block.h (maybe_hot_edge_p): Declare.
11532
11533 2008-05-31  Uros Bizjak  <ubizjak@gmail.com>
11534
11535         * config/i386/i386.md (*cmpfp_<mode>): Enable for optimize_size.
11536         (*cmpfp_<mode>_cc): Ditto.
11537         (*fp_jcc_8<mode>_387): Ditto.
11538         (*fop_<MODEF:mode>_2_i387): Ditto.
11539         (*fop_<MODEF:mode>_3_i387): Ditto.
11540         (*fop_xf_2_i387): Ditto.
11541         (*fop_xf_3_i387): Ditto.
11542
11543 2008-06-02  Tomas Bily  <tbily@suse.cz>
11544
11545         * tree-ssa-ifcombine.c (get_name_for_bit_test): Use CONVERT_EXPR_P.
11546
11547 2008-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
11548
11549         * config/mips/mips.c (mips_valid_offset_p): New function.
11550         (mips_valid_lo_sum_p): Likewise.
11551         (mips_classify_address): Use them.
11552         (mips_force_address): New function.
11553         (mips_legitimize_address): Use it.
11554         * config/mips/mips.md (MOVE128): New mode iterator.
11555         (movtf): Require TARGET_64BIT.  Remove empty strings.
11556         (*movtf_internal): Rename to...
11557         (*movtf): ...this and require !TARGET_MIPS16.  Use "m" instead
11558         of "R" and use {,fp}{load,store} attributes instead of "multi".
11559         Use a separate define_split.
11560         (*movtf_mips16): New pattern.
11561
11562 2008-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
11563
11564         * config/mips/mips-protos.h (mips_expand_before_return): Declare.
11565         * config/mips/mips.c (mips_expand_before_return): New function.
11566         (mips_expand_epilogue): Call it.
11567         * config/mips/mips.md (return): Turn into a define_expand.
11568         (*return): New insn.
11569
11570 2008-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
11571
11572         * rtl.h (emit_clobber, gen_clobber, emit_use, gen_use): Declare.
11573         * emit-rtl.c (emit_clobber, gen_clobber, emit_use, gen_use): New
11574         functions.  Do not emit uses and clobbers of CONCATs; individually
11575         use and clobber their operands.
11576         * builtins.c (expand_builtin_setjmp_receiver): Use emit_clobber,
11577         gen_clobber, emit_use and gen_use.
11578         (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
11579         (expand_builtin_return): Likewise.
11580         * cfgbuild.c (count_basic_blocks): Likewise.
11581         * cfgrtl.c (rtl_flow_call_edges_add): Likewise.
11582         * explow.c (emit_stack_restore): Likewise.
11583         * expmed.c (extract_bit_field_1): Likewise.
11584         * expr.c (convert_move, emit_move_complex_parts): Likewise.
11585         (emit_move_multi_word, store_constructor): Likewise.
11586         * function.c (do_clobber_return_reg, do_use_return_reg): Likewise.
11587         (thread_prologue_and_epilogue_insns): Likewise.
11588         * lower-subreg.c (resolve_simple_move): Likewise.
11589         * optabs.c (widen_operand, expand_binop): Likewise.
11590         (expand_doubleword_bswap, emit_no_conflict_block): Likewise.
11591         * reload.c (find_reloads): Likewise.
11592         * reload1.c (eliminate_regs_in_insn): Likewise.
11593         * stmt.c (expand_nl_goto_receiver): Likewise.
11594         * config/alpha/alpha.md (builtin_longjmp): Likewise.
11595         * config/arc/arc.md (*movdi_insn, *movdf_insn): Likewise.
11596         * config/arm/arm.c (arm_load_pic_register): Likewise.
11597         (thumb1_expand_epilogue, thumb_set_return_address): Likewise.
11598         * config/arm/arm.md (untyped_return): Likewise.
11599         * config/arm/linux-elf.h (PROFILE_HOOK): Likewise.
11600         * config/avr/avr.c (expand_prologue): Likewise.
11601         * config/bfin/bfin.c (do_unlink): Likewise.
11602         * config/bfin/bfin.md (<optab>di3, adddi3, subdi3): Likewise.
11603         * config/cris/cris.c (cris_expand_prologue): Likewise.
11604         * config/darwin.c (machopic_indirect_data_reference): Likewise.
11605         (machopic_legitimize_pic_address): Likewise.
11606         * config/frv/frv.c (frv_frame_access, frv_expand_epilogue): Likewise.
11607         (frv_ifcvt_modify_insn, frv_expand_mdpackh_builtin): Likewise.
11608         * config/i386/i386.c (ix86_expand_vector_move_misalign): Likewise.
11609         (ix86_expand_convert_uns_didf_sse): Likewise.
11610         (ix86_expand_vector_init_general): Likewise.
11611         * config/ia64/ia64.md (eh_epilogue): Likewise.
11612         * config/iq2000/iq2000.c (iq2000_expand_epilogue): Likewise.
11613         * config/m32c/m32c.c (m32c_emit_eh_epilogue): Likewise.
11614         * config/m32r/m32r.c (m32r_reload_lr): Likewise.
11615         (config/iq2000/iq2000.c): Likewise.
11616         * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
11617         (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
11618         (builtin_longjmp): Likewise.
11619         * config/mn10300/mn10300.md (call, call_value): Likewise.
11620         * config/pa/pa.md (nonlocal_goto, nonlocal_longjmp): Likewise.
11621         * config/pdp11/pdp11.md (abshi2): Likewise.
11622         * config/rs6000/rs6000.c (rs6000_emit_move): Likewise.
11623         * config/s390/s390.c (s390_emit_prologue): Likewise.
11624         * config/s390/s390.md (movmem_long, setmem_long): Likewise.
11625         (cmpmem_long, extendsidi2, zero_extendsidi2, udivmoddi4): Likewise.
11626         (builtin_setjmp_receiver, restore_stack_nonlocal): Likewise.
11627         * config/sh/sh.c (prepare_move_operands): Likewise.
11628         (output_stack_adjust, sh_expand_epilogue): Likewise.
11629         (sh_set_return_address, sh_expand_t_scc): Likewise.
11630         * config/sparc/sparc.c (load_pic_register): Likewise.
11631         * config/sparc/sparc.md (untyped_return, nonlocal_goto): Likewise.
11632         * config/spu/spu.c (spu_expand_epilogue): Likewise.
11633         * config/v850/v850.c (expand_epilogue): Likewise.
11634
11635 2008-05-31  Anatoly Sokolov  <aesok@post.ru>
11636
11637         * config/avr/avr.md (UNSPECV_WRITE_SP_IRQ_ON): New constants.
11638         (UNSPECV_WRITE_SP_IRQ_OFF): (Ditto.).
11639         (movhi_sp_r_irq_off, movhi_sp_r_irq_on): New insn.
11640         * config/avr/avr.c (expand_prologue, expand_epilogue): Use
11641         movhi_sp_r_irq_off and movhi_sp_r_irq_on insns for writing to the
11642         stack pointer register.
11643         (output_movhi): Remove code for interrupt specific writing to the
11644         stack pointer register.
11645
11646 2008-05-31  Richard Guenther  <rguenther@suse.de>
11647
11648         PR tree-optimization/34244
11649         * fold-const.c (tree_expr_nonnegative_warnv_p): Do not ask VRP.
11650         (tree_expr_nonzero_warnv_p): Likewise.
11651         * tree-vrp.c (vrp_expr_computes_nonnegative): Call
11652         ssa_name_nonnegative_p.
11653         (vrp_expr_computes_nonzero): Call ssa_name_nonzero_p.
11654         (extract_range_from_unary_expr): Use vrp_expr_computes_nonzero,
11655         not tree_expr_nonzero_warnv_p.
11656
11657         PR tree-optimization/36262
11658         Revert
11659         2007-11-29  Zdenek Dvorak  <ook@ucw.cz>
11660
11661         PR tree-optimization/34244
11662         * tree-vrp.c (adjust_range_with_scev): Clear scev cache.
11663         (record_numbers_of_iterations): New function.
11664         (execute_vrp): Cache the numbers of iterations of loops.
11665         * tree-scalar-evolution.c (scev_reset_except_niters):
11666         New function.
11667         (scev_reset): Use scev_reset_except_niters.
11668         * tree-scalar-evolution.h (scev_reset_except_niters): Declare.
11669
11670 2008-05-31  Bernd Schmidt  <bernd.schmidt@analog.com>
11671
11672         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
11673         __WORKAROUND_RETS when appropriate.
11674
11675 2008-05-31  Uros Bizjak  <ubizjak@gmail.com>
11676
11677         * config/i386/i386.md (*fop_<mode>_comm_mixed): Macroize from
11678         *fop_sf_comm_mixed and *fop_df_comm_mixed insn patterns using MODEF
11679         mode iterator.
11680         (*fop_<mode>_comm_sse): Macroize from *fop_sf_comm_sse and
11681         *fop_df_comm_sse insn patterns using MODEF mode iterator.
11682         (*fop_<mode>_comm_i387): Macroize from *fop_sf_comm_i387 and
11683         *fop_df_comm_i387 insn patterns using MODEF mode iterator.
11684         (*fop_<mode>_1_mixed): Macroize from *fop_sf_1_mixed and
11685         *fop_df_1_mixed insn patterns using MODEF mode iterator.
11686         (*fop_<mode>_1_sse): Macroize from *fop_sf_1_sse and
11687         *fop_df_1_sse insn patterns using MODEF mode iterator.
11688         (*fop_<mode>_1_i387): Macroize from *fop_sf_1_i387 and
11689         *fop_df_1_i387 insn patterns using MODEF mode iterator.
11690         (*fop_<MODEF:mode>_2_i387): Macroize from *fop_sf_2<mode>_i387 and
11691         *fop_df_2<mode>_i387 insn patterns using MODEF mode iterator.
11692         (*fop_<MODEF:mode>_3_i387): Macroize from *fop_sf_3<mode>_i387 and
11693         *fop_df_3<mode>_i387 insn patterns using MODEF mode iterator.
11694         (*fop_xf_2_i387): Rename from *fop_xf_2<mode>_i387.
11695         (*fop_xf_3_i387): Rename from *fop_xf_3<mode>_i387.
11696         (*fop_xf_4_i387): Use <MODE> for mode attribute.
11697         (*fop_xf_5_i387): Ditto.
11698         (*fop_xf_6_i387): Ditto.
11699
11700 2008-05-30  Richard Guenther  <rguenther@suse.de>
11701
11702         * builtins.c (build_string_literal): Avoid generating
11703         a non-gimple_val result.
11704
11705 2008-05-30  DJ Delorie  <dj@redhat.com>
11706
11707         * exec-tool.in: Use an environment variable (private) instead of a
11708         file (shared) as a semaphore, so as to not break parallel builds.
11709
11710 2008-05-30  Steven Bosscher  <stevenb.gcc@gmail.com>
11711
11712         * optabs.c (maybe_encapsulate_block): Remove.
11713         (emit_libcall_block): Adjust accordingly.
11714         * optabs.h (maybe_encapsulate_block): Remove prototype.
11715
11716         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address):
11717         Don't use maybe_encapsulate_block.
11718
11719 2008-05-30  Steven Bosscher  <stevenb.gcc@gmail.com>
11720
11721         * config/rs6000/rs6000.c (rs6000_legitimize_address,
11722         rs6000_legitimize_reload_address, rs6000_emit_move): Make sure an
11723         rtx is a SYMBOL_REF before calling get_pool_constant.
11724
11725 2008-05-30  Eric Botcazou  <ebotcazou@adacore.com>
11726
11727         * fold-const.c (fold_unary) <CASE_CONVERT>: Add ??? comment.
11728
11729 2008-05-30  Danny Smith  <dannysmith@users.sourceforge.net>
11730
11731         * incpath.c: Use HOST_LACKS_INODE_NUMBERS conditional
11732         rather than OS names to choose INO_T_EQ definition.
11733         (DIRS_EQ) [!INO_T_EQ]: Don't worry about case in comparison.
11734         (add_path) [!INO_T_EQ]: Use lrealpath to fill canonical_name field.
11735
11736 2008-05-29  Daniel Franke  <franke.daniel@gmail.com>
11737
11738         PR target/36348
11739         * config/darwin-f.c: New.
11740         * config/t-darwin: Added rule to build darwin-f.o.
11741         * config.gcc: Defined new variable, fortran_target_objs.
11742         (*-*-darwin*): Set fortran_target_objs.
11743         * Makefile.in: Defined new variable FORTRAN_TARGET_OBJS.
11744         * configure.ac: Substitute fortran_target_objs, set FORTRAN_TARGET_OBJS.
11745         * configure: Regenerated.
11746
11747 2008-05-29  H.J. Lu  <hongjiu.lu@intel.com>
11748
11749         PR target/35771
11750         * config/i386/i386.c (ix86_function_arg_boundary): Convert to
11751         canonical type if needed.
11752
11753 2008-05-29  Eric Botcazou  <ebotcazou@adacore.com>
11754
11755         * tree-nested.c (check_for_nested_with_variably_modified): Fix typo.
11756
11757 2008-05-29  Richard Guenther  <rguenther@suse.de>
11758
11759         PR tree-optimization/36343
11760         PR tree-optimization/36346
11761         PR tree-optimization/36347
11762         * tree-flow.h (clobber_what_p_points_to): Declare.
11763         * tree-ssa-structalias.c (set_uids_in_ptset): Whether the
11764         pointed-to variable is dereferenced is irrelevant to whether
11765         the pointer can access the pointed-to variable.
11766         (clobber_what_p_points_to): New function.
11767         * tree-ssa-alias.c (set_initial_properties): Use it.
11768         * tree-ssa.c (verify_flow_sensitive_alias_info): Adjust
11769         call clobber check for NMTs.
11770
11771 2008-05-28  Seongbae Park  <seongbae.park@gmail.com>
11772
11773         * value-prof.c (tree_ic_transform): Use HOST_WIDEST_INT_PRINT_DEC
11774         for printing gcov_type.
11775
11776 2008-05-28  Seongbae Park  <seongbae.park@gmail.com>
11777
11778         * tree-ssa-propagate.c (set_rhs): Preserve the histogram
11779         and the eh region information.
11780         * value-prof.c (gimple_move_stmt_histograms): New function.
11781         * value-prof.h (gimple_move_stmt_histograms): New function declaration.
11782
11783 2008-05-28  Andreas Tobler  <a.tobler@schweiz.org>
11784
11785         * config/pa/pa.md: Remove extern frame_pointer_needed declaration.
11786
11787 2008-05-28  Seongbae Park <seongbae.park@gmail.com>
11788
11789         * value-prof.c (tree_ic_transform): Print counts.
11790         * tree-profile.c (tree_gen_ic_func_profiler):
11791         Clear __gcov_indreict_call_callee variable to avoid misattribution
11792         of the profile.
11793
11794 2008-05-28  Rafael Espíndola  <espindola@google.com>
11795
11796         * see.c (see_def_extension_not_merged): Use copy_rtx_if_shared to avoid
11797         invalid sharing.
11798
11799 2008-05-28  Richard Guenther  <rguenther@suse.de>
11800
11801         PR tree-optimization/36339
11802         * tree-ssa-alias.c (set_initial_properties): Move pt_anything
11803         and clobbering code out of the loop.
11804
11805 2008-05-28  Andreas Krebbel  <krebbel1@de.ibm.com>
11806
11807         * config/s390/constraints.md ('b', 'C', 'D', 'e'): New constraint
11808         letters defined.
11809
11810         * config/s390/s390.c (s390_compare_and_branch_condition_mask,
11811         s390_contiguous_bitmask_p, s390_symref_operand_p,
11812         s390_check_symref_alignment, s390_reload_larl_operand,
11813         s390_reload_symref_address): New functions.
11814         (s390_branch_condition_mnemonic): Support compare and branch
11815         instructions.
11816         (s390_mem_constraint): Avoid symrefs to accepted by the 'T'
11817         and 'W' constraints.
11818         (s390_secondary_reload): Add secondary reloads for unaligned
11819         symbol refs or symbol refs to floating point or QI/TI mode
11820         integer values.
11821         (legitimate_address_p): Accept symbol references as addresses.
11822         (s390_expand_insv): Use rotate and insert selected bits
11823         instruction for insv when building for z10.
11824         (print_operand_address): Handle symbol ref addresses.
11825         (print_operand): Output modifier 'c' added for signed byte values.
11826         (s390_encode_section_info): Mark symbol refs with
11827         SYMBOL_FLAG_NOT_NATURALLY_ALIGNED if appropriate.
11828
11829         * config/s390/s390.md (SIL,RRS,RIS): New instruction formats added.
11830         (length attribute): RRF, RRR have 4 byte length.
11831         (FPALL, INTALL): New mode iterators added.
11832         (*tstdi_sign, *cmpdi_ccs_sign, *cmpsi_ccs_sign,
11833         *cmp<mode>_ccs, *cmpdi_ccu_zero, *cmpdi_ccu, *cmpsi_ccu, *cmphi_ccu,
11834         *movdi_64, *movsi_zarch, *movhi, movmem<mode>, *movmem_short,
11835         *extendsidi2, *extendhidi2_extimm, *extendhisi2_extimm,
11836         *zero_extendsidi2, adddi3, *adddi3_31z, *adddi3_31, addsi3,
11837         *add<mode>3, *add<mode>3_carry1_cc, *add<mode>3_carry2_cc,
11838         *add<mode>3_cc, *add<mode>3_imm_cc, *muldi3_sign, muldi3,
11839         *mulsi3_sign, mulsi3, mulsidi3): Patterns enhanced with z10
11840         instructions.
11841         (*cmphi_ccs_z10, *cmpdi_ccs_signhi_rl, *cmpsi_ccu_zerohi_rlsi,
11842         *cmp<GPR:mode>_ccu_zerohi_rldi, *cmp_and_br_signed_<mode>,
11843         *cmp_and_br_unsigned_<mode>, reload<INTALL:mode><P:mode>_tomem_z10,
11844         reload<INTALL:mode><P:mode>_toreg_z10,
11845         reload<FPALL:mode><P:mode>_tomem_z10,
11846         reload<FPALL:mode><P:mode>_toreg_z10,
11847         reload<P:mode>_larl_odd_addend_z10, *execute_rl, *insv<mode>_z10,
11848         *insv<mode>_z10_noshift, *insv<mode>_or_z10_noshift,
11849         *zero_extendhi<mode>2_z10, *cmp_and_trap_signed_int<mode>,
11850         *cmp_and_trap_unsigned_int<mode>, prefetch): New pattern or expander
11851         definition.
11852         (movmem, clrmem, cmpmem): New splitters added.
11853
11854         * config/s390/predicates.md (larl_operand): Use
11855         SYMBOL_REF_FLAGS (op) & SYMBOL_FLAG_ALIGN1 replaced with
11856         SYMBOL_REF_ALIGN1_P.
11857         (s390_signed_integer_comparison,
11858         s390_unsigned_integer_comparison): New predicates.
11859
11860         * config/s390/s390-protos.h (s390_check_symref_alignment,
11861         s390_contiguous_bitmask_p, s390_reload_larl_operand,
11862         s390_reload_symref_address,
11863         s390_compare_and_branch_condition_mask): Prototypes added.
11864
11865         * config/s390/s390.h (TARGET_MEM_CONSTRAINT,
11866         SYMBOL_REF_ALIGN1_P, SYMBOL_FLAG_NOT_NATURALLY_ALIGNED,
11867         SYMBOL_REF_NOT_NATURALLY_ALIGNED_P): Macro definition added.
11868
11869 2008-05-28  Andreas Krebbel  <krebbel1@de.ibm.com>
11870
11871         * config/s390/s390.c (z10_cost): New cost function for z10.
11872         (s390_handle_arch_option, override_options): Support -march=z10 switch.
11873         (s390_issue_rate): Adjust issue rate for z10.
11874         * config/s390/s390.h (processor_type): Add PROCESSOR_2097_Z10.
11875         (processor_flags): Add PF_Z10.
11876         (TARGET_CPU_Z10, TARGET_Z10): New macro definitions.
11877         * config/s390/s390.md (cpu, cpu_facility attributes): Add z10.
11878         * gcc/config.gcc: Add z10.
11879
11880 2008-05-28  Richard Guenther  <rguenther@suse.de>
11881
11882         PR tree-optimization/36291
11883         * tree-flow. h (struct gimple_df): Remove var_anns member.
11884         * tree-flow-inline.h (gimple_var_anns): Remove.
11885         (var_ann): Simplify.
11886         * tree-dfa.c (create_var_ann): Simplify.
11887         (remove_referenced_var): Clear alias info from var_anns of globals.
11888         * tree-ssa.c (init_tree_ssa): Do not allocate var_anns.
11889         (delete_tree_ssa): Clear alias info from var_anns of globals.
11890         Do not free var_anns.
11891         (var_ann_eq): Remove.
11892         (var_ann_hash): Likewise.
11893
11894 2008-05-28  Mark Shinwell  <shinwell@codesourcery.com>
11895
11896         * config/mips/mips.c (mips_cpu_info_table): Add loongson2e
11897         and loongson2f entries.
11898         (mips_rtx_cost_data): Add entries for Loongson-2E/2F.
11899         * config/mips/mips.h (processor_type): Add Loongson-2E
11900         and Loongson-2F entries.
11901         (TARGET_LOONGSON_2E, TARGET_LOONGSON_2F, TARGET_LOONGSON_2EF): New.
11902         (MIPS_ISA_LEVEL_SPEC): Handle Loongson-2E/2F.
11903         * config/mips/mips.md (define_attr cpu): Add loongson2e and loongson2f.
11904         * doc/invoke.texi (MIPS Options): Document loongson2e
11905         and loongson2f processor names.
11906
11907 2008-05-27  H.J. Lu  <hongjiu.lu@intel.com>
11908
11909         PR target/35767
11910         PR target/35771
11911         * config/i386/i386.c (ix86_function_arg_boundary): Use
11912         alignment of canonical type.
11913         (ix86_expand_vector_move): Check unaligned memory access for
11914         all SSE modes.
11915
11916 2008-05-27  H.J. Lu  <hongjiu.lu@intel.com>
11917
11918         * dwarf2out.c (current_fde): Change return type to dw_fde_ref.
11919         Moved to the front of file.
11920
11921 2008-05-27  Xuepeng Guo  <xuepeng.guo@intel.com>
11922             H.J. Lu  <hongjiu.lu@intel.com>
11923
11924         * dwarf2out.c (current_fde): New.
11925         (add_cfi): Use it.
11926         (lookup_cfa:): Likewise.
11927         (dwarf2out_end_epilogue): Likewise.
11928         (dwarf2out_note_section_used): Likewise.
11929
11930 2008-05-27  Michael Matz  <matz@suse.de>
11931
11932         PR c++/27975
11933         * c.opt (Wenum-compare): New warning option.
11934         * doc/invoke.texi  (Warning Options): Document -Wenum-compare.
11935
11936 2008-05-27  Michael Matz  <matz@suse.de>
11937
11938         PR middle-end/36326
11939         * tree-gimple.c (is_gimple_mem_rhs): Remove work-around for
11940         non-BLKmode types.
11941         * tree-tailcall.c (find_tail_calls): Don't mark calls storing
11942         into memory as tail calls.
11943
11944 2008-05-27  Richard Guenther  <rguenther@suse.de>
11945
11946         PR tree-optimization/36339
11947         * tree-ssa-alias.c (set_initial_properties): Escaped pt_anything
11948         pointers cause all addressable variables to be call clobbered.
11949
11950 2008-05-27  Richard Guenther  <rguenther@suse.de>
11951
11952         PR tree-optimization/36245
11953         * tree-ssa-address.c (add_to_parts): Deal with non-pointer bases.
11954
11955 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
11956
11957         * config/s390/s390.md: Replace all occurences of the 'm'
11958         constraint with 'RT'.
11959
11960 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
11961
11962         * config/s390/s390.md ("cpu_facility", "enabled"): Attribute
11963         definitions added.
11964         ("*movdi_64dfp", "*movdi_64extimm", "*movdi_64"): Merged into
11965         "*movdi_64".
11966         ("*anddi3_extimm", "*anddi3"): Merged into "*anddi3".
11967         ("*iordi3_extimm", "*iordi3"): Merged into "*iordi3".
11968         ("*xordi3_extimm", "*xordi3"): Merged into "*xordi3".
11969
11970 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
11971
11972         * reload.c: (find_reloads): Skip alternatives according to the
11973         "enabled" attribute. Constify the constraint variable.
11974         * recog.c (get_attr_enabled): Add default implementation.
11975         (extract_insn): Set the alternative_enabled_p array
11976         in the recog_data struct.
11977         (preprocess_constraints, constrain_operands): Skip
11978         alternatives according to the "enabled" attribute
11979         * recog.h (struct recog_data): New field alternative_enabled_p.
11980         (skip_alternative): New inline function.
11981         * regclass.c: (record_operand_costs): Check the "enabled" attribute.
11982         (record_reg_classes): Skip alternative according to the
11983         "enabled" attribute.
11984
11985         * doc/md.texi: Add documention for the "enabled" attribute.
11986
11987 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
11988
11989         * defaults.h (TARGET_MEM_CONSTRAINT): New target macro added.
11990         * postreload.c (reload_cse_simplify_operands): Replace 'm'
11991         constraint with TARGET_MEM_CONSTRAINT.
11992         * recog.c (asm_operand_ok, preprocess_constraints,
11993         constrain_operands): Likewise.
11994         * regclass.c (record_reg_classes): Likewise.
11995         * reload.c (find_reloads, alternative_allows_const_pool_ref): Likewise.
11996         * reload1.c (maybe_fix_stack_asms): Likewise.
11997         * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
11998         * recog.h: Adjust comment.
11999         * genpreds.c (generic_constraint_letters): Remove 'm' constraint.
12000         * genoutput.c (note_constraint): Don't emit error for 'm' constraint.
12001         * doc/md.texi: Add a note to description of 'm' constraint.
12002         * doc/tm.texi: Document the new TARGET_MEM_CONSTRAINT macro.
12003
12004 2008-05-27  Eric Botcazou  <ebotcazou@adacore.com>
12005
12006         * tree-sra.c (sra_type_can_be_decomposed_p) <RECORD_TYPE>: Make sure
12007         that the bitfield is of integral type before testing its precision.
12008
12009 2008-05-27  Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
12010             Sa Liu  <saliu@de.ibm.com>
12011
12012         * config/spu/spu.c (spu_init_libfuncs): Add __multi3, __divti3,
12013         __modti3, __udivti3, __umodti3 and __udivmodti4.
12014         * config/spu/t-spu-elf (LIB2FUNCS_STATIC_EXTRA): Add files
12015         that implement TImode mul and div functions.
12016         * config/spu/multi3.c: New. Implement __multi3.
12017         * config/spu/divmodti4.c: New. Implement _udivmodti4 and others.
12018         * testsuite/gcc.target/spu/muldivti3.c: New. Test TImode mul and div
12019         functions on SPU.
12020
12021 2008-05-26  Steven Bosscher  <stevenb.gcc@gmail.com>
12022
12023         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Generate
12024         new tls_gd_* and tls_ld_* insns instead of an insn sequence.
12025         * config/rs6000/rs6000.md (TLSmode, tls_abi_suffix, tls_insn_suffix,
12026         tls_sysv_suffix): New mode and mode attribute iterators.
12027         (tls_gd_32, tls_gd_64, tls_ld_32, tls_ld_64): Remove.
12028         (lts_gd_aix*, tls_gd_sysv*, tls_ld_aix*, tls_ld_sysv*): New patterns.
12029         (tls_dtprel_*, tls_dtprel_ha_*, tls_dtprel_lo_*, tls_got_dtprel_*,
12030         tls_tprel_*, tls_tprel_ha_*, tls_tprel_lo_*, tls_got_tprel_*,
12031         tls_tls_*): Merge 32 bit and 64 bit variants using aforementioned
12032         iterators.
12033
12034 2008-05-26  Eric Botcazou  <ebotcazou@adacore.com>
12035
12036         PR tree-optimization/36329
12037         * tree.h (CALL_CANNOT_INLINE_P): Add access check.
12038         * tree-gimple.h (CALL_STMT_CANNOT_INLINE_P): New macro.
12039         * cgraphbuild.c (initialize_inline_failed): Use the latter
12040         macro in lieu of the former.
12041         * ipa-inline.c (cgraph_mark_inline): Likewise.
12042         (cgraph_decide_inlining_of_small_function): Likewise.
12043         (cgraph_decide_inlining): Likewise.
12044         (cgraph_decide_inlining_incrementally): Likewise.
12045
12046 2008-05-26  Tristan Gingold  <gingold@adacore.com>
12047             Anatoly Sokolov  <aesok@post.ru>
12048
12049         * config/avr/avr.md ("call_prologue_saves"): Use hi8(gs())/lo8(gs())
12050         instead of pm_lo8/pm_hi8 to makes this call working on avr6.
12051         * config/avr/avr.c (expand_prologue): Tune "call_prologue"
12052         optimization for 'avr6' architecture.
12053
12054 2008-05-26  Andy Hutchinson  <hutchinsonandy@aim.com>
12055
12056         PR target/34932
12057         * config/avr/avr.md (*addhi3_zero_extend2): Remove.
12058
12059 2008-05-26  Richard Guenther  <rguenther@suse.de>
12060
12061         * tree-ssa-sccvn.c (expr_has_constants): Declare.
12062         (visit_reference_op_load): Initialize VN_INFO->has_constants properly.
12063
12064 2008-05-26  H.J. Lu  <hongjiu.lu@intel.com>
12065
12066         PR middle-end/36253
12067         * caller-save.c (insert_restore): Verify alignment of spill space.
12068         (insert_save): Likewise.
12069         * cfgexpand.c (LOCAL_ALIGNMENT): Removed.
12070         * defaults.h (LOCAL_ALIGNMENT): New. Provide default.
12071         (STACK_SLOT_ALIGNMENT): Likewise.
12072         * function.c (LOCAL_ALIGNMENT): Removed.
12073         (get_stack_local_alignment): New.
12074         (assign_stack_local): Use it.  Set alignment on stack slot.
12075         (assign_stack_temp_for_type): Use get_stack_local_alignment.
12076         * config/i386/i386.h (LOCAL_ALIGNMENT): Updated.
12077         (STACK_SLOT_ALIGNMENT): New.
12078         * config/i386/i386.c (ix86_local_alignment): Handle caller-save
12079         stack slot in XFmode.
12080
12081         * doc/tm.texi (STACK_SLOT_ALIGNMENT): New.
12082
12083 2008-05-26  Kai Tietz  <kai.tietz@onevision.com>
12084
12085         PR/36321
12086         * config/i386/i386.md (allocate_stack_worker_64): Make sure
12087         argument operand in rax isn't removed.
12088
12089 2008-05-26  Richard Guenther  <rguenther@suse.de>
12090
12091         PR middle-end/36300
12092         * fold-const.c (extract_muldiv_1): Use TYPE_OVERFLOW_WRAPS,
12093         not TYPE_UNSIGNED.  Use TYPE_PRECISION instead of GET_MODE_SIZE.
12094
12095 2008-05-26  Daniel Franke  <franke.daniel@gmail.com>
12096
12097         PR bootstrap/36331
12098         * c-cppbuiltin.c (define__GNUC__): Re-add definition of __GNUG__.
12099
12100 2008-05-26  Dominique Dhumieres  <dominiq@lps.ens.fr>
12101
12102         * config/darwin-c.c: Include "incpath.h" instead of "c-incpath.h".
12103         * config/t-darwin: Use "incpath.h" instead of "c-incpath.h".
12104
12105 2008-05-25  Eric Botcazou  <ebotcazou@adacore.com>
12106
12107         * tree-nested.c (convert_tramp_reference) <ADDR_EXPR>: Do not
12108         build a trampoline if we don't want one.
12109         * varasm.c (initializer_constant_valid_p) <ADDR_EXPR>: Do not
12110         return zero for nested functions if we don't want a trampoline.
12111
12112 2008-05-26  Daniel Franke  <franke.daniel@gmail.com>
12113
12114         * doc/invoke.texi: Added f77, f77-cpp-input to list of file types.
12115
12116 2008-05-26  Daniel Franke  <franke.daniel@gmail.com>
12117
12118         PR fortran/18428
12119         * c.opt: Removed undocumented option '-lang-fortran'.
12120         * c-common.h: Removed global variable 'lang_fortran'.
12121         * c-opts.c (c_common_handle_option): Removed code to handle
12122         option '-lang-fortran'. Updated includes.
12123         * c-cppbuiltin.c (c_cpp_builtins): Removed conditional
12124         definition of '__GFORTRAN__'.
12125         (define__GNUC__): Reimplemented to use BASEVER and
12126         cpp_define_formatted.
12127         (builtin_define_with_value_n): Removed.
12128         * c-incpath.h: Renamed to ...
12129         * incpath.h: ... this.
12130         * c-incpath.c: Renamed to ...
12131         * incpath.c: ... this. Updated includes.
12132         * fix-header.c: Updated includes.
12133         * Makefile.in: Replaced c-incpath.[ch] by incpath.[ch].
12134         (c-cppbuiltin.o): Added dependency on and definition of BASEVER.
12135         (OBJ-archive): Added cppdefault.o, incpath.o and prefix.o.
12136
12137 2008-05-25  Eric Botcazou  <ebotcazou@adacore.com>
12138
12139         * tree.h: Update the table of flags used on tree nodes.
12140         (TREE_NO_TRAMPOLINE): New accessor for static_flag.
12141         (SAVE_EXPR_RESOLVED_P): Use automatically-built access check.
12142         (FORCED_LABEL): Add access check.
12143         (CALL_EXPR_RETURN_SLOT_OPT): Likewise.
12144         (ASM_INPUT_P): Likewise.
12145         (ASM_VOLATILE_P): Likewise.
12146         (EH_FILTER_MUST_NOT_THROW): Access static_flag directly.
12147         (OMP_SECTION_LAST): Access private_flag directly.
12148         (OMP_RETURN_NOWAIT): Likewise.
12149         (OMP_PARALLEL_COMBINED): Likewise.
12150         (OMP_CLAUSE_PRIVATE_DEBUG): Access public_flag directly.
12151         (OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE): Likewise.
12152         * tree-ssa-propagate.c (STMT_IN_SSA_EDGE_WORKLIST): Access
12153         deprecated_flag directly.
12154
12155 2008-05-25  H.J. Lu  <hongjiu.lu@intel.com>
12156
12157         * final.c (frame_pointer_needed): Removed.
12158         * flags.h (frame_pointer_needed): Likewise.
12159
12160         * function.h (rtl_data): Add frame_pointer_needed.
12161         (frame_pointer_needed): New.
12162
12163 2008-05-25  Arthur Loiret  <arthur.loiret@u-psud.fr>
12164
12165         * config.gcc (sh2[lbe]*-*-linux*): Allow target.
12166
12167 2008-05-25  Steven Bosscher  <stevenb.gcc@gmail.com>
12168
12169         * gcse.c (hash_scan_set): Do not pick up a REG_EQUAL value if
12170         SRC is a REG.
12171
12172 2008-05-25  Alan Modra  <amodra@bigpond.net.au>
12173
12174         * c-common.c (strip_array_types): Move function to..
12175         * tree.c: ..here.
12176         (get_inner_array_type): Delete.
12177         * c-common.h (strip_array_types): Move declaration to..
12178         * tree.h: ..here.
12179         (get_inner_array_type): Delete.
12180         * config/i386/i386.c (x86_field_alignment): Use strip_array_types.
12181         * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Likewise.
12182         * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
12183         * config/pa/pa.c (emit_move_sequence): Likewise.
12184
12185 2008-05-24  H.J. Lu  <hongjiu.lu@intel.com>
12186
12187         * config/i386/i386.md (*sse_prologue_save_insn): Set length
12188         attribute to 34.
12189
12190 2008-05-24  Andy Hutchinson  <hutchinsonandy@aim.com>
12191
12192         * function.c: Include target hook for nonlocal_goto frame value.
12193
12194 2008-05-24  Richard Guenther  <rguenther@suse.de>
12195
12196         * tree-dfa.c (refs_may_alias_p): Re-instantiate case that a scalar
12197         variable can be only accessed through a pointer or a union.
12198
12199 2008-05-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12200
12201         * builtins.c (fold_builtin_fpclassify): Fix spelling of FP_INFINITE.
12202         * doc/extend.texi: Likewise.
12203
12204 2008-05-23  DJ Delorie  <dj@redhat.com>
12205
12206         * config/m32c/jump.md (untyped_call): Add.
12207
12208         * config/m32c/m32c.c (m32c_return_addr_rtx): Change pointer type
12209         for A24 to PSImode.
12210         (m32c_address_cost): Detail costs for indirect offsets.
12211
12212 2008-05-23  Rafael Espíndola  <espindola@google.com>
12213
12214         * see.c (see_get_extension_data): Don't use SUBREG_REG to test
12215         if a node is a SUBREG.
12216         (see_analyze_one_def): Don't use SUBREG_REG to test if a node
12217         is a SUBREG.
12218
12219 2008-05-23  Paul Brook  <paul@codesourcery.com>
12220             Carlos O'Donell  <carlos@codesourcery.com>
12221
12222         * doc/extend.texi: Clarify use of __attribute__((naked)).
12223         * doc/tm.texi: Document TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS.
12224         * target.h (gcc_target): Add allocate_stack_slots_for_args.
12225         * function.c (use_register_for_decl): Use
12226         targetm.calls.allocate_stack_slots_for_args.
12227         * target-def.h (TARGET_CALLS): Add TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS.
12228         * config/arm/arm.c (arm_allocate_stack_slots_for_args): New function.
12229         (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Define.
12230
12231 2008-05-23  Eric Botcazou  <ebotcazou@adacore.com>
12232
12233         * expr.c (highest_pow2_factor) <BIT_AND_EXPR>: New case.
12234
12235 2008-05-23  Steven Munroe  <sjmunroe@us.ibm.com>
12236
12237         * config/rs6000/darwin-ldouble.c (fmsub): Eliminate the full
12238         PACK/UNPACK between FP_SUB_Q and FD_TRUNC so that the result
12239         is only rounded once.
12240
12241 2008-05-23  Richard Guenther  <rguenther@suse.de>
12242
12243         * tree-ssa-operands.c (mark_difference_for_renaming): Use bitmap_xor.
12244
12245 2008-05-23  Uros Bizjak  <ubizjak@gmail.com>
12246             Jakub Jelinek  <jakub@redhat.com>
12247
12248         PR target/36079
12249         * configure.ac: Handle --enable-cld.
12250         * configure: Regenerated.
12251         * config.gcc: Add USE_IX86_CLD to tm_defines for x86 targets.
12252         * config/i386/i386.h (struct machine_function): Add needs_cld field.
12253         (ix86_current_function_needs_cld): New define.
12254         * config/i386/i386.md (UNSPEC_CLD): New unspec volatile constant.
12255         (cld): New isns pattern.
12256         (strmov_singleop, rep_mov, strset_singleop, rep_stos, cmpstrnqi_nz_1,
12257         cmpstrnqi_1, strlenqi_1): Set ix86_current_function_needs_cld flag.
12258         * config/i386/i386.opt (mcld): New option.
12259         * config/i386/i386.c (ix86_expand_prologue): Emit cld insn if
12260         TARGET_CLD and ix86_current_function_needs_cld.
12261         (override_options): Use -mcld by default for 32-bit code if
12262         USE_IX86_CLD.
12263
12264         * doc/install.texi (Options specification): Document --enable-cld.
12265         * doc/invoke.texi (Machine Dependent Options)
12266         [i386 and x86-64 Options]: Add -mcld option.
12267         (Intel 386 and AMD x86-64 Options): Document -mcld option.
12268
12269 2008-05-23  Kai Tietz  <kai.tietz@onevison.com>
12270         * config/i386/i386.c (return_in_memory_32): Add ATTRIBUTE_UNUSED.
12271         (return_in_memory_64): Likewise.
12272         (return_in_memory_ms_64): Likewise.
12273
12274 2008-05-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12275
12276         * builtin-types.def (BT_FN_INT_INT_INT_INT_INT_INT_VAR): New.
12277         * builtins.c (fold_builtin_fpclassify): New.
12278         (fold_builtin_varargs): Handle BUILT_IN_FPCLASSIFY.
12279         * builtins.def (BUILT_IN_FPCLASSIFY): New.
12280         * c-common.c (handle_type_generic_attribute): Adjust to accept
12281         fixed arguments before an elipsis.
12282         (check_builtin_function_arguments): Handle BUILT_IN_FPCLASSIFY.
12283         * doc/extend.texi: Document __builtin_fpclassify.
12284
12285 2008-05-22  Aldy Hernandez  <aldyh@redhat.com>
12286
12287         * omp-low.c (gate_expand_omp_ssa): Remove.
12288         (pass_expand_omp_ssa): Remove.
12289         (gate_expand_omp): Do not check for flag_openmp_ssa.
12290         * common.opt (-fopenmp-ssa): Remove.
12291         * passes.c (init_optimization_passes): Remove pass_expand_omp_ssa.
12292
12293 2008-05-22  Kaz Kojima  <kkojima@gcc.gnu.org>
12294
12295         * config/sh/sh.opt (mfixed-range): New option.
12296         * config/sh/sh-protos.h (sh_fix_range): Declare.
12297         * config/sh/sh.c (sh_fix_range): New function.
12298         * config/sh/sh.h (sh_fixed_range_str): Declare.
12299         (OVERRIDE_OPTIONS): Call sh_fix_range if sh_fixed_range_str
12300         is not empty.
12301         * doc/invoke.texi (SH Options): Document -mfixed-range.
12302
12303 2008-05-22  Kai Tietz  <kai.tietz@onevision.com>
12304
12305         * config/i386/sol2-10.h (SUBTARGET_RETURN_IN_MEMORY): Undefine
12306         it before the redeclaration.
12307
12308 2008-05-22  Anatoly Sokolov <aesok@post.ru>
12309
12310         * config/avr/avr.c (get_sequence_length): Add new function.
12311         (expand_prologue, expand_epilogue): Remove duplicate code.
12312
12313 2008-05-22  Rafael Espíndola  <espindola@google.com>
12314
12315         * see.c (see_pre_insert_extensions): Use copy_rtx to avoid invalid rtx
12316         sharing.
12317
12318 2008-05-22  H.J. Lu  <hongjiu.lu@intel.com>
12319
12320         * defaults.h (UNITS_PER_SIMD_WORD): Add scalar mode as argument.
12321         * doc/tm.texi (UNITS_PER_SIMD_WORD): Likewise.
12322
12323         * tree-vect-analyze.c (vect_compute_data_ref_alignment): Replace
12324         UNITS_PER_SIMD_WORD with GET_MODE_SIZE (TYPE_MODE (vectype)).
12325         (vect_update_misalignment_for_peel): Likewise.
12326         (vector_alignment_reachable_p): Likewise.
12327         * tree-vect-transform.c (vectorizable_load): Likewise.
12328         * tree-vectorizer.c (vect_supportable_dr_alignment): Likewise.
12329         (get_vectype_for_scalar_type): Pass mode of scalar_type
12330         to UNITS_PER_SIMD_WORD.
12331
12332         * config/arm/arm.h (UNITS_PER_SIMD_WORD): Updated.
12333         * config/i386/i386.h (UNITS_PER_SIMD_WORD): Likewise.
12334         * config/mips/mips.h (UNITS_PER_SIMD_WORD): Likewise.
12335         * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Likewise.
12336         * config/sparc/sparc.h (UNITS_PER_SIMD_WORD): Likewise.
12337
12338 2008-05-22  Ira Rosen  <irar@il.ibm.com>
12339
12340         PR tree-optimization/36293
12341         * tree-vect-transform.c (vect_transform_strided_load): Don't check
12342         if the first load must be skipped because of a gap.
12343
12344 2008-05-22  Richard Guenther  <rguenther@suse.de>
12345
12346         * tree-dfa.c (refs_may_alias_p): Exit early if possible.  Handle
12347         more cases of offset disambiguation that is possible if
12348         strict-aliasing rules apply.
12349         * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use refs_may_alias_p
12350         for basic offset and type-based disambiguation.
12351
12352 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
12353
12354         * config/i386/i386.c (ix86_expand_vector_init_one_var): Use
12355         ix86_expand_vector_set on V16QImode for SSE4.1.
12356
12357 2008-05-21  Tom Tromey  <tromey@redhat.com>
12358
12359         * c.opt (Wimport): Mark as undocumented.
12360         * doc/invoke.texi (Option Summary): Don't mention -Wimport or
12361         -Wno-import.
12362         (Warning Options): Likewise.
12363         * doc/cppopts.texi: Don't mention -Wimport.
12364
12365 2008-05-21  Sebastian Pop  <sebastian.pop@amd.com>
12366
12367         PR tree-optimization/36287
12368         PR tree-optimization/36286
12369         * lambda-code.c (build_access_matrix): Do not use the loop->num
12370         for computing the number of induction variables: use the loop depth
12371         instead.
12372
12373 2008-05-21  Kai Tietz  <kai.tietz@onevision.com>
12374
12375         PR/36280
12376         * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Honor
12377         option -f(no-)leading-underscore.
12378
12379 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
12380
12381         * config/i386/i386.c (ix86_expand_vector_init_general): Use
12382         GET_MODE_NUNITS (mode).
12383
12384 2008-05-21  Peter Bergner  <bergner@vnet.ibm.com>
12385
12386         * doc/invoke.texi: Add cpu_type's 464 and 464fp.
12387         (-mmulhw): Add 464 to description.
12388         (-mdlmzb): Likewise.
12389         * config.gcc: Handle --with-cpu=464 and --with-cpu=464fp.
12390         * config/rs6000/rs6000.c (processor_target_table): Add 464 and
12391         464fp entries.
12392         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add 464 and 464fp support.
12393         * config/rs6000/t-fprules (MULTILIB_MATCHES_FLOAT): Include -mcpu=464.
12394         * config/rs6000/rs6000.md: Update comments for 464.
12395
12396 2008-05-21  Janis Johnson  <janis187@us.ibm.com>
12397
12398         * doc/sourcebuild.texi (Test Directives): Add dg-xfail-run-if.
12399
12400 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
12401
12402         * config/i386/sse.md (vec_extractv4sf): Removed.
12403         (vec_extractv2df): Likewise.
12404         (vec_extractv2di): Likewise.
12405         (vec_extractv4si): Likewise.
12406         (vec_extractv8hi): Likewise.
12407         (vec_extractv16qi): Likewise.
12408         (vec_extract<mode>): New.
12409
12410 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
12411
12412         * config/i386/sse.md (vec_setv4sf): Removed.
12413         (vec_setv2df): Likewise.
12414         (vec_setv2di): Likewise.
12415         (vec_setv4si): Likewise.
12416         (vec_setv8hi): Likewise.
12417         (vec_setv16qi): Likewise.
12418         (vec_set<mode>): New.
12419
12420 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
12421
12422         * config/i386/i386.c (ix86_expand_vector_init_general): Remove
12423         goto for vec_concat and vec_interleave.
12424
12425 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
12426
12427         * config/i386/sse.md (vec_initv4sf): Removed.
12428         (vec_initv2df): Likewise.
12429         (vec_initv2di): Likewise.
12430         (vec_initv4si): Likewise.
12431         (vec_initv8hi): Likewise.
12432         (vec_initv16qi): Likewise.
12433         (vec_init<mode>): New.
12434
12435 2008-05-21  Joseph Myers  <joseph@codesourcery.com>
12436
12437         * collect2.c (find_a_file): Use IS_ABSOLUTE_PATH.
12438
12439 2008-05-21  Tom Tromey  <tromey@redhat.com>
12440
12441         * ggc-zone.c (lookup_page_table_if_allocated): New function.
12442         (zone_find_object_offset): Likewise.
12443         (gt_ggc_m_S): Likewise.
12444         (highest_bit): Likewise.
12445         * ggc-page.c (gt_ggc_m_S): New function.
12446         * stringpool.c (string_stack): Remove.
12447         (init_stringpool): Update.
12448         (ggc_alloc_string): Use ggc_alloc.
12449         (maybe_delete_ident): New function.
12450         (ggc_purge_stringpool): Likewise.
12451         (gt_ggc_m_S): Remove.
12452         * ggc-common.c (ggc_protect_identifiers): New global.
12453         (ggc_mark_roots): Call ggc_purge_stringpool.  Use
12454         ggc_protect_identifiers.
12455         * ggc.h (ggc_protect_identifiers): Declare.
12456         (gt_ggc_m_S): Update.
12457         (ggc_purge_stringpool): Declare.
12458         * toplev.c (compile_file): Set and reset ggc_protect_identifiers.
12459         * gengtype.c (write_types_process_field) <TYPE_STRING>: Remove
12460         special case.
12461         (write_root): Cast gt_ggc_m_S to gt_pointer_walker.
12462
12463 2008-05-21  David S. Miller  <davem@davemloft.net>
12464
12465         * config.gcc (sparc-*-linux*): Always include sparc/t-linux in
12466         tmake_file.
12467
12468 2008-05-21  Eric Botcazou  <ebotcazou@adacore.com>
12469
12470         * cfgexpand.c (tree_expand_cfg): Zap the EH throw statement table
12471         once finished.
12472
12473 2008-05-20  David Daney  <ddaney@avtrex.com>
12474
12475         * config/mips/mips.md (UNSPEC_SYNC_NEW_OP_12,
12476         UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE_12): New define_constants.
12477         (UNSPEC_SYNC_EXCHANGE, UNSPEC_MEMORY_BARRIER, UNSPEC_SET_GOT_VERSION,
12478         UNSPEC_UPDATE_GOT_VERSION): Renumber.
12479         (optab, insn): Add 'plus' and 'minus' to define_code_attr.
12480         (atomic_hiqi_op): New define_code_iterator.
12481         (sync_compare_and_swap<mode>): Call mips_expand_atomic_qihi instead of
12482         mips_expand_compare_and_swap_12.
12483         (compare_and_swap_12): Use MIPS_COMPARE_AND_SWAP_12 instead of
12484         MIPS_COMPARE_AND_SWAP_12_0.  Pass argument to MIPS_COMPARE_AND_SWAP_12.
12485         (sync_<optab><mode>, sync_old_<optab><mode>,
12486         sync_new_<optab><mode>, sync_nand<mode>, sync_old_nand<mode>,
12487         sync_new_nand<mode>): New define_expands for HI and QI mode operands.
12488         (sync_<optab>_12, sync_old_<optab>_12, sync_new_<optab>_12,
12489         sync_nand_12, sync_old_nand_12, sync_new_nand_12): New insns.
12490         (sync_lock_test_and_set<mode>): New define_expand for HI and QI modes.
12491         (test_and_set_12): New insn.
12492         (sync_old_add<mode>, sync_new_add<mode>, sync_old_<optab><mode>,
12493         sync_new_<optab><mode>, sync_old_nand<mode>,
12494         sync_new_nand<mode>, sync_lock_test_and_set<mode>):  Add early
12495         clobber to operand 0 for SI and DI mode insns.
12496         * config/mips/mips-protos.h (mips_gen_fn_6, mips_gen_fn_5,
12497         mips_gen_fn_4): New typedefs.
12498         (mips_gen_fn_ptrs): Define new union type.
12499         (mips_expand_compare_and_swap_12): Remove declaration.
12500         (mips_expand_atomic_qihi): Declare function.
12501         * config/mips/mips.c (mips_expand_compare_and_swap_12): Rename to...
12502         (mips_expand_atomic_qihi): ... this.  Use new generator function
12503         parameter.
12504         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP_12): Add OPS parameter.
12505         (MIPS_COMPARE_AND_SWAP_12_0): Delete macro.
12506         (MIPS_COMPARE_AND_SWAP_12_ZERO_OP, MIPS_COMPARE_AND_SWAP_12_NONZERO_OP,
12507         MIPS_SYNC_OP_12, MIPS_SYNC_OP_12_NOT_NOP,
12508         MIPS_SYNC_OP_12_NOT_NOT, MIPS_SYNC_OLD_OP_12,
12509         MIPS_SYNC_OLD_OP_12_NOT_NOP, MIPS_SYNC_OLD_OP_12_NOT_NOP_REG,
12510         MIPS_SYNC_OLD_OP_12_NOT_NOT, MIPS_SYNC_OLD_OP_12_NOT_NOT_REG,
12511         MIPS_SYNC_NEW_OP_12, MIPS_SYNC_NEW_OP_12_NOT_NOP,
12512         MIPS_SYNC_NEW_OP_12_NOT_NOT, MIPS_SYNC_EXCHANGE_12,
12513         MIPS_SYNC_EXCHANGE_12_ZERO_OP, MIPS_SYNC_EXCHANGE_12_NONZERO_OP):
12514         New macros.
12515
12516 2008-05-20  H.J. Lu  <hongjiu.lu@intel.com>
12517
12518         * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Add
12519         the missing break.
12520
12521 2008-05-20  Anatoly Sokolov <aesok@post.ru>
12522
12523         * config/avr/avr.h (machine_function): Add 'is_OS_main' field.
12524         * config/avr/avr.c (avr_OS_main_function_p): Add new function.
12525         (avr_attribute_table): Add 'OS_main' function attribute.
12526         (avr_regs_to_save, expand_prologue, expand_epilogue): Handle
12527         functions with 'OS_main' attribute.
12528
12529 2008-05-20  Richard Guenther  <rguenther@suse.de>
12530
12531         PR tree-optimization/35204
12532         * tree-ssa-sccvn.c (extract_and_process_scc_for_name): New
12533         helper, split out from ...
12534         (DFS): ... here.  Make the DFS walk non-recursive.
12535
12536 2008-05-20  Sebastian Pop  <sebastian.pop@amd.com>
12537             Jan Sjodin  <jan.sjodin@amd.com>
12538
12539         PR tree-optimization/36181
12540         * tree-parloops.c (loop_has_vector_phi_nodes): New.
12541         (parallelize_loops): Don't parallelize when the loop has vector
12542         phi nodes.
12543
12544 2008-05-20  Jan Sjodin  <jan.sjodin@amd.com>
12545             Sebastian Pop  <sebastian.pop@amd.com>
12546
12547         * tree-loop-linear.c (gather_interchange_stats): Look in the access
12548         matrix, and never look at the tree representation of the memory
12549         accesses.
12550         (linear_transform_loops): Computes parameters and access matrices.
12551         * tree-data-ref.c (compute_data_dependences_for_loop): Returns false
12552         when fails.
12553         (access_matrix_get_index_for_parameter): New.
12554         * tree-data-ref.h (struct access_matrix): New.
12555         (AM_LOOP_NEST_NUM, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
12556         AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
12557         AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT,
12558         am_vector_index_for_loop): New.
12559         (struct data_reference): Add field access_matrix.
12560         (DR_ACCESS_MATRIX): New.
12561         (compute_data_dependences_for_loop): Update declaration.
12562         (lambda_collect_parameters, lambda_compute_access_matrices): Declared.
12563         * lambda.h (lambda_vector_vec_p): Declared.
12564         * lambda-code.c: Depend on pointer-set.h.
12565         (lambda_collect_parameters_from_af, lambda_collect_parameters,
12566         av_for_af_base, av_for_af, build_access_matrix,
12567         lambda_compute_access_matrices): New.
12568         * Makefile.in (lambda-code.o): Depend on pointer-set.h.
12569
12570 2008-05-20  Joseph Myers  <joseph@codesourcery.com>
12571
12572         * doc/install.texi2html: Generate gcc-vers.texi in $DESTDIR not
12573         $SOURCEDIR/include.
12574
12575 2008-05-20  Jan Sjodin  <jan.sjodin@amd.com>
12576             Sebastian Pop  <sebastian.pop@amd.com>
12577
12578         PR tree-optimization/36206
12579         * tree-scalar-evolution.c: Remove enum INSERT_SUPERLOOP_CHRECS,
12580         FOLD_CONVERSIONS.
12581         (instantiate_scev_1): Rename flags to fold_conversions.
12582         Do not check for INSERT_SUPERLOOP_CHRECS, keep SSA_NAMEs defined
12583         outeside instantiation_loop.
12584         * tree-chrec.h (evolution_function_is_affine_in_loop): New.
12585         (evolution_function_is_affine_or_constant_p): Removed.
12586         * tree-data-ref.c (dr_analyze_indices): Replace resolve_mixers with
12587         instantiate_scev.
12588         (analyze_siv_subscript): Pass in the loop nest number.
12589         Call evolution_function_is_affine_in_loop instead of
12590         evolution_function_is_affine_p.
12591         (analyze_overlapping_iterations): Pass in the loop nest number.
12592
12593 2008-05-20  Jan Sjodin  <jan.sjodin@amd.com>
12594             Sebastian Pop  <sebastian.pop@amd.com>
12595
12596         PR tree-optimization/36206
12597         * tree-chrec.h (chrec_fold_op): New.
12598         * tree-data-ref.c (initialize_matrix_A): Traverse NOP_EXPR, PLUS_EXPR,
12599         and other trees.
12600
12601 2008-05-20  Nathan Sidwell  <nathan@codesourcery.com>
12602
12603         * c-incpath.c (INO_T_EQ): Do not define on non-inode systems.
12604         (DIRS_EQ): New.
12605         (remove_duplicates): Do not set inode on non-inode systems.
12606         Use DIRS_EQ.
12607
12608 2008-05-20  Sandra Loosemore  <sandra@codesourcery.com>
12609
12610         * config.gcc (tm_file): Update comments about relative pathnames.
12611
12612 2008-05-20  Richard Guenther  <rguenther@suse.de>
12613
12614         * tree-ssa-reassoc.c (fini_reassoc): Use the statistics infrastructure.
12615         * tree-ssa-sccvn.c (process_scc): Likewise.
12616         * tree-ssa-sink.c (execute_sink_code): Likewise.
12617         * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
12618         * tree-vrp.c (process_assert_insertions): Likewise.
12619         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Likewise.
12620         (perform_tree_ssa_dce): Likewise.
12621         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Likewise.
12622         (dump_dominator_optimization_stats): Likewise.
12623         * tree-vectorizer.c (vectorize_loops): Likewise.
12624
12625 2008-05-20  Richard Guenther  <rguenther@suse.de>
12626
12627         * tree-vn.c (vn_lookup_with_vuses): Do not use the alias oracle.
12628
12629 2008-05-20  Kai Tietz  <kai.tietz@onevision.com>
12630
12631         * config/i386/i386-protos.h (ix86_return_in_memory): Removed.
12632         (ix86_i386elf_return_in_memory): Likewise.
12633         (ix86_i386interix_return_in_memory): Likewise.
12634         * config/i386/i386-interix.h (TARGET_RETURN_IN_MEMORY): Removed.
12635         (SUBTARGET_RETURN_IN_MEMORY): New.
12636         * config/i386/i386elf.h: Likewise.
12637         * config/i386/ptx4-i.h: Likewise.
12638         * config/i386/sol2-10.h: Likewise.
12639         * config/i386/sysv4.h: Likewise.
12640         * config/i386/vx-common.h: Likewise.
12641         * config/i386/i386.h (TARGET_RETURN_IN_MEMORY): Removed.
12642         * config/i386/i386.c (ix86_return_in_memory): Made static and
12643         make use of optional SUBTARGET_RETURN_IN_MEMORY macro.
12644         (ix86_i386elf_return_in_memory): Removed.
12645         (ix86_i386interix_return_in_memory): Removed.
12646         (TARGET_RETURN_IN_MEMORY): Declared within i386.c only.
12647         * target-def.h (TARGET_RETURN_IN_MEMORY): Remove protection #ifdef.
12648
12649 2008-05-20  Alexandre Oliva  <aoliva@redhat.com>
12650
12651         * cselib.c (cselib_record_sets): Use correct mode for IF_THEN_ELSE.
12652
12653 2008-05-19  Xinliang David Li  <davidxl@google.com>
12654
12655         * tree-ssa-dce.c: Revert patches of 2008-05-17 and 2008-05-18.
12656         * opts.c: Ditto.
12657         * common.opt: Ditto.
12658         * doc/invoke.texi: Ditto.
12659
12660 2008-05-19  Eric Botcazou  <ebotcazou@adacore.com>
12661
12662         * tree.c (substitute_in_expr) <tcc_vl_exp>: Fix thinko.
12663         (substitute_placeholder_in_expr) <tcc_vl_exp>: Minor tweak.
12664
12665 2008-05-19  H.J. Lu  <hongjiu.lu@intel.com>
12666
12667         * config/i386/i386.c (ix86_expand_vector_init_concat): Change
12668         sizes of operand array from 8/4 to 4/2.
12669         (ix86_expand_vector_init_general): Change size of operand array
12670         from 32 to 16.  Remove op0, op1 and half_mode.
12671
12672 2008-05-19  H.J. Lu  <hongjiu.lu@intel.com>
12673
12674         * config/i386/i386.c (ix86_expand_vector_init_concat): New.
12675         (ix86_expand_vector_init_interleave): Likewise.
12676         (ix86_expand_vector_init_general): Use them.  Assert
12677         word_mode == SImode when n_words == 4.
12678
12679 2008-05-19  Uros Bizjak  <ubizjak@gmail.com>
12680
12681         * config/i386/i386.c (ix86_secondary_reload): New static function.
12682         (TARGET_SECONDARY_RELOAD): New define.
12683         * config/i386/i386.h (SECONDARY_OUTPUT_RELOAD_CLASS): Remove.
12684         * config/i386/i386.md (reload_outqi): Remove.
12685
12686 2008-05-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12687
12688         PR middle-end/35509
12689         * builtins.c (mathfn_built_in_1): Renamed from mathfn_built_in.
12690         Add `implicit' parameter.  Handle BUILT_IN_SIGNBIT.
12691         (mathfn_built_in): Rewrite in terms of mathfn_built_in_1.
12692         (fold_builtin_classify): Handle BUILT_IN_ISINF_SIGN.
12693         (fold_builtin_1): Likewise.
12694         * builtins.def (BUILT_IN_ISINF_SIGN): New.
12695         c-common.c (check_builtin_function_arguments): Handle
12696         BUILT_IN_ISINF_SIGN.
12697         * doc/extend.texi: Document __builtin_isinf_sign.
12698         * fold-const.c (operand_equal_p): Handle COND_EXPR.
12699
12700 2008-05-18  Eric Botcazou  <ebotcazou@adacore.com>
12701
12702         * tree-ssa-dom.c (tree_ssa_dominator_optimize): If some blocks need
12703         EH cleanup at the end of the pass, search for those that have been
12704         turned into forwarder blocks and do the cleanup on their successor.
12705
12706 2008-05-18  Richard Guenther  <rguenther@suse.de>
12707
12708         * tree-cfg.c (verify_gimple_expr): Allow conversions from
12709         pointers to sizetype and vice versa.
12710
12711 2008-05-18 Xinliang David Li   <davidxl@google.com>
12712
12713         * gcc/tree-ssa-dce.c: Coding style fix.
12714         (check_pow): Documentation comment.
12715         (check_log): Documenation comment. Coding style fix.
12716         (is_unnecessary_except_errno_call): Ditto.
12717         (gen_conditions_for_pow): Ditto.
12718         (gen_conditions_for_log): Ditto.
12719         (gen_shrink_wrap_conditions): Ditto.
12720         (shrink_wrap_one_built_in_calls): Ditto.
12721         * gcc/doc/invoke.texi: Better documentation string.
12722         * ChangeLog: Fix wrong change log entries from
12723         May 17 checkin on function call DCE.
12724
12725 2008-05-17  Kaz Kojima  <kkojima@gcc.gnu.org>
12726
12727         * config/sh/sh.c (sh_output_mi_thunk): Update the use of init_flow.
12728
12729 2008-05-17  Kenneth Zadeck <zadeck@naturalbridge.com>
12730
12731         * doc/rtl.texi (RTL_CONST_CALL_P, RTL_PURE_CALL_P): Fixed typos.
12732         * df-problems.c (simulation routines): Fixed block comment to
12733         properly say how to add forwards scanning functions.
12734
12735 2008-05-17  Eric Botcazou  <ebotcazou@adacore.com>
12736
12737         * tree-inline.c (setup_one_parameter): Remove dead code.
12738
12739 2008-05-17  Eric Botcazou  <ebotcazou@adacore.com>
12740
12741         * fold-const.c (fold_unary) <CASE_CONVERT>: Fold the cast into
12742         a BIT_AND_EXPR only for an INTEGER_TYPE.
12743
12744 2008-05-17 Xinliang David Li   <davidxl@google.com>
12745
12746         * gcc/tree-ssa-dce.c (cond_dead_built_in_calls): New static variable.
12747         (check_pow, check_log, is_unnecessary_except_errno_call): New
12748         functions to check for eliminating math functions that are pure
12749         except for setting errno.
12750         (gen_conditions_for_pow, gen_conditionas_for_log): New functions to
12751         general condition expressions for shrink-wrapping pow/log calls.
12752         (gen_shrink_wrap_conditions): Ditto.
12753         (shrink_wrap_one_built_in_call): Ditto.
12754         (shrink_wrap_conditional_dead_built_in_calls): Ditto.
12755         (mark_operand_necessary): If debugging, output if OP is necessary.
12756         (eliminate_unnecessary_stmts): Eliminate pow, log calls that are
12757         unnecessary.
12758         * gcc/opts.c (decode_options): set flag_tree_builtin_dce to 1 when
12759         opt level >= 2.
12760         * gcc/common.opt: New user flag -ftree-builtin-dce.
12761         * gcc/doc/invoke.texi (-ftree-builtin-dce): New option.
12762
12763 2008-05-16  David S. Miller  <davem@davemloft.net>
12764
12765         * config/sparc/linux.h (NO_PROFILE_COUNTERS): Undef before overriding.
12766         * config/sparc/linux64.h (NO_PROFILE_COUNTERS): Likewise.
12767
12768 2008-05-16  Uros Bizjak  <ubizjak@gmail.com>
12769
12770         PR target/36246
12771         * config/i386/i386.h (SECONDARY_MEMORY_NEEDED_MODE): New define.
12772
12773 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
12774
12775         * ifcvt.c (dead_or_predicable): Rename
12776         df_simulate_one_insn_backwards to df_simulate_one_insn.
12777         * recog.c (peephole2_optimize): Ditto.
12778         * rtl-factoring.c (collect_pattern_seqs, clear_regs_live_in_seq):
12779         Ditto.
12780         * df.h: Rename df_simulate_one_insn_backwards to
12781         df_simulate_one_insn.  and delete df_simulate_one_insn_forwards.
12782         * df-problems.c (df_simulate_artificial_refs_at_top) Reversed
12783         scanning of defs and uses.
12784         (df_simulate_one_insn_backwards): Renamed to df_simulate_one_insn.
12785         (df_simulate_one_insn_forwards): Removed.
12786
12787 2008-05-16  Doug Kwan  <dougkwan@google.com>
12788
12789         * real.c (real_to_decimal, real_to_hexadecimal): Distinguish
12790         QNaN & SNaN.
12791         (real_from_string): Handle NaNs and Inf as approriate.
12792
12793 2008-05-16  Nathan Froyd  <froydnj@codesourcery.com>
12794
12795         * doc/gty.texi (Source Files Containing Type Information): Note
12796         that headers should appear first in the gtfiles list.
12797
12798 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
12799
12800         * tree.def (COND_EXEC): Properly documented this code.
12801
12802 2008-05-16  Diego Novillo  <dnovillo@google.com>
12803
12804         * dwarf2asm.c (dw2_assemble_integer): Clarify comment.
12805         * tree-nested.c (get_trampoline_type): Set DECL_CONTEXT for
12806         the new field.
12807
12808 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
12809
12810         * tree-ssa-dse (max_stmt_uid): Removed.
12811         (get_stmt_uid, dse_possible_dead_store_p, dse_optimize_stmt,
12812         tree_ssa_dse): Encapsulate all uses of stmt_ann->uid.
12813         * tree-ssa-sccvn.c (compare_ops, init_scc_vn): Ditto.
12814         * function.h (cfun.last_stmt_uid): New field.
12815         * tree-flow-inline.h (set_gimple_stmt_uid, gimple_stmt_uid,
12816         gimple_stmt_max_uid, set_gimple_stmt_max_uid, inc_gimple_stmt_max_uid):
12817         New functions.
12818         * tree-dfa.c (renumber_gimple_stmt_uids): New function.
12819         (create_stmt_ann): Initialize the ann->uid field.
12820         * tree-ssa-pre.c (compute_avail): Encapsulate the stmt_ann->uid
12821         with new calls.
12822         * tree-flow.h (renumber_gimple_stmt_uids): New function.
12823
12824 2008-05-16  Nathan Froyd  <froydnj@codesourcery.com>
12825
12826         * tree-flow.h (init_empty_tree_cfg_for_function): Declare.
12827         * tree-cfg.c (init_empty_tree_cfg_for_function): Define.
12828         (init_empty_tree_cfg): Call it.
12829
12830 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
12831
12832         * cfg.c (init_flow): Add argument THE_FUN.  Use it instead of cfun.
12833         Update all users.
12834
12835 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
12836
12837         * doc/invoke.text (-fdump-tree-*-verbose): New option.
12838         * tree-dump.c (dump_options): New verbose option.
12839         * tree-pretty-print.c (dump_phi_nodes, dump_generic_bb_buff):
12840         Add verbose dump.
12841         * tree-pass.h (TDF_VERBOSE): New dump flag.
12842         * print-tree.c (print_node): Added code to be able to print PHI_NODES.
12843         (tree-flow.h): Added include.
12844         * Makefile.in (print-tree.o):  Added TREE_FLOW_H.
12845
12846 2008-05-16  Bernd Schmidt  <bernd.schmidt@analog.com>
12847
12848         * config/bfin/bfin.c (bfin_discover_loops): Delete empty loops.
12849
12850         From Jie Zhang  <jie.zhang@analog.com>
12851         * config/bfin/t-bfin-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
12852         MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Remove mcpu=bf532-0.3,
12853         mcpu=bf561-none and mcpu=bf561-0.2.
12854         * config/bfin/t-bfin-uclinux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
12855         MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Likewise.
12856         * config/bfin/t-bfin-linux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
12857         MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Likewise.
12858         * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add BFIN_CPU_UNKNOWN.
12859         * config/bfin/elf.h (STARTFILE_SPEC): Use specific CRT for BF561.
12860         (LIB_SPEC): Use proper linker script for bf561.  Error if no mcpu
12861         option.
12862         * config/bfin/bfin.c (bfin_cpu_type): Set to BFIN_CPU_UNKNOWN.
12863         (cputype_selected): Remove.
12864         (bfin_handle_option): Don't use cputype_selected.
12865         (override_options): When no mcpu option, enable all workarounds.
12866         Don't use bfin_workarounds.
12867         * config/bfin/bfin.h (DRIVER_SELF_SPECS): Don't set default
12868         processor type.
12869         (DEFAULT_CPU_TYPE): Don't define.
12870
12871 2008-05-16  Richard Guenther  <rguenther@suse.de>
12872
12873         * tree-ssa-propagate.c (substitute_and_fold): Fix stmt walking
12874         on deletion of the last stmt.
12875
12876 2008-05-15  H.J. Lu  <hongjiu.lu@intel.com>
12877
12878         * config/i386/i386.c (ix86_expand_vector_init_general): Optimize
12879         V8HImode for SSE2 and V16QImode for SSE4.1.
12880
12881 2008-05-15  Kenneth Zadeck <zadeck@naturalbridge.com>
12882
12883         * cgraph.h (compute_inline_parameters): Made public.
12884         * tree-pass.h (ipa_opt_pass): Removed function_generate_summary,
12885         variable_generate_summary, function_write_summary,
12886         variable_write_summary, variable_read_summary.  Added generate_summary,
12887         write_summary, read_summary.
12888         * cgraphunit.c (cgraph_process_new_functions): Changed call from
12889         pass_ipa_inline.function_generate_summary, to
12890         compute_inline_parameters.
12891         * ipa-inline.c (compute_inline_parameters): Made public and added
12892         node parameter.
12893         (compute_inline_parameters_for_current): New function.
12894         (pass_inline_param): Now calls compute_inline_parameters_for_current.
12895         (inline_generate_summary): Removed parameter and made to loop over
12896         all cgraph nodes.
12897         (pass_ipa_inline): Updated for new IPA_PASS structure.
12898         * passes.c (execute_ipa_summary_passes): Now is called once per
12899         pass rather than once per node*pass.
12900
12901 2008-05-15  Anatoly Sokolov <aesok@post.ru>
12902
12903         * config/avr/avr.c (avr_base_arch_macro, avr_have_movw_lpmx_p,
12904         avr_have_mul_p, avr_asm_only_p): Remove variables.
12905         (avr_override_options): Remove initialization of removed variables.
12906         (avr_file_start):  Convert removed variables to fields of
12907         'struct base_arch_s *avr_current_arch'.
12908         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): (Ditto.).
12909         (AVR_HAVE_MUL): (Ditto.).
12910         (AVR_HAVE_MOVW): (Ditto.).
12911         (AVR_HAVE_LPMX): (Ditto.).
12912         (avr_base_arch_macro, avr_have_movw_lpmx_p, avr_have_mul_p,
12913         avr_asm_only_p): Remove declaration.
12914
12915 2008-05-15  Diego Novillo  <dnovillo@google.com>
12916
12917         * config/arm/arm.c (arm_return_in_memory): Fix return type.
12918         * config/arm/arm-protos.h (arm_return_in_memory): Likewise.
12919
12920 2008-05-15  Adam Nemet  <anemet@caviumnetworks.com>
12921
12922         PR middle-end/36194
12923         * combine.c (check_conversion): Rename back to check_promoted_subreg.
12924         Don't call record_truncated_value from here.
12925         (record_truncated_value): Turn it into a for_each_rtx callback.
12926         (record_truncated_values): New function.
12927         (combine_instructions): Call note_uses with record_truncated_values.
12928         Change name of check_conversion to check_promoted_subreg.
12929
12930 2008-05-15  Janis Johnson  <janis187@us.ibm.com>
12931
12932         * doc/sourcebuild.texi: Document support for torture tests.
12933
12934 2008-05-15  Uros Bizjak  <ubizjak@gmail.com>
12935
12936         * config/i386/sse.md (*vec_concatv2sf_sse4_1): Add "m" constraint
12937         to alternative 4 of operand 2.
12938
12939 2008-05-15  Richard Guenther  <rguenther@suse.de>
12940
12941         * tree-pass.h (current_pass): Declare.
12942         (get_pass_for_id): Likewise.
12943         * passes.c (passes_by_id, passes_by_id_size): New globals.
12944         (set_pass_for_id): New function.
12945         (get_pass_for_id): Likewise.
12946         (register_one_dump_file): Use set_pass_for_id to populate passes_by_id.
12947         (execute_function_todo): Flush per function statistics.
12948         * toplev.c (compile_file): Init statistics.
12949         (general_init): Do early statistics initialization.
12950         (finalize): Finish statistics.
12951         * statistics.h (statistics_early_init): Declare.
12952         (statistics_init): Likewise.
12953         (statistics_fini): Likewise.
12954         (statistics_fini_pass): Likewise.
12955         (statistics_counter_event): Likewise.
12956         (statistics_histogram_event): Likewise.
12957         * statistics.c: New file.
12958         * Makefile.in (OBJS-common): Add statistics.o.
12959         (statistics.o): Add dependencies.
12960         * doc/invoke.texi (-fdump-statistics): Document.
12961
12962         * tree-ssa-pre.c (compute_antic): Use statistics_histogram_event.
12963         (insert): Likewise.
12964         (execute_pre): Use statistics_counter_event.
12965         * tree-ssa-propagate.c (struct prop_stats_d): Add num_dce field.
12966         (substitute_and_fold): Increment it.  Use statistics_counter_event.
12967
12968 2008-05-15  Diego Novillo  <dnovillo@google.com>
12969
12970         http://gcc.gnu.org/ml/gcc-patches/2008-05/msg00893.html
12971
12972         * treestruct.def (TS_STRUCT_FIELD_TAG): Remove.
12973         * tree-ssa-alias.c (new_type_alias): Remove references to
12974         sub-variables from comment.
12975         * tree-ssa-operands.c (swap_tree_operands): Likewise.
12976
12977 2008-05-15  H.J. Lu  <hongjiu.lu@intel.com>
12978
12979         * config/i386/sse.md (*vec_concatv2sf_sse4_1): Set prefix_extra
12980         attribute to 1 only for insertps alternative.
12981
12982 2008-05-15  Bernd Schmidt  <bernd.schmidt@analog.com>
12983
12984         * config/bfin/bfin.md (loadbytes): New pattern.
12985         * config/bfin/bfin.c (enum bfin_builtins): Add BFIN_BUILTIN_LOADBYTES.
12986         (bfin_init_builtins): Initialize it.
12987         (bdesc_1arg): Add it.
12988
12989 2008-05-15  Sa Liu  <saliu@de.ibm.com>
12990
12991         * testsuite/gfortran.dg/c_kind_int128_test1.f03: New.
12992         * testsuite/gfortran.dg/c_kind_int128_test2.f03: New.
12993         * testsuite/lib/target-supports.exp: Add
12994         check_effective_target_fortran_integer_16.
12995
12996 2008-05-15  Bernd Schmidt  <bernd.schmidt@analog.com>
12997
12998         * config/bfin/bfin.h (TARGET_RETURN_IN_MEMORY): Don't define here.
12999         * config/bfin/bfin-protos.h (bfin_return_in_memory): Don't declare.
13000         * config/bfin/bfin.c (bfin_return_in_memory): Now static.  Return bool.
13001         (TARGET_RETURN_IN_MEMORY): Define.
13002
13003 2008-05-15  Richard Guenther  <rguenther@suse.de>
13004
13005         PR middle-end/36244
13006         * tree-ssa-alias.c (new_type_alias): Do not set TREE_READONLY.
13007         * tree-flow-inline.h (unmodifiable_var_p): Memory tags never
13008         represent unmodifiable vars.
13009
13010 2008-05-15  Richard Guenther  <rguenther@suse.de>
13011
13012         * tree-dfa.c (refs_may_alias_p): Allow all kinds of
13013         INDIRECT_REF and TARGET_MEM_REF.
13014         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
13015         TARGET_MEM_REF.
13016
13017 2008-05-15  Uros Bizjak  <ubizjak@gmail.com>
13018             H.J. Lu  <hongjiu.lu@intel.com>
13019
13020         * config/i386/sse.md (*vec_concatv2sf_sse4_1): New insn pattern.
13021         (*vec_concatv2si_sse4_1): Use vector_move_operand predicate
13022         for operand 2.  Remove pinsr{q,d} with 0x0 immediate operand from
13023         insn alternatives.  Add missing alternatives.
13024         (*vec_concatv2di_rex64_sse4_1): Likewise.
13025         (*vec_concatv2si_sse2): Use "x" register constraint instead of "Y2".
13026         (*vec_concatv2di_rex64_sse): Rename from *vec_concatv2di_rex64.
13027         Require TARGET_SSE.
13028
13029 2008-05-15  Richard Guenther  <rguenther@suse.de>
13030
13031         PR tree-optimization/36009
13032         PR tree-optimization/36204
13033         * tree-ssa-loop-im.c (tree-ssa-propagate.h): Include.
13034         (determine_invariantness_stmt): Record the loop a store is
13035         always executed in.
13036         * Makefile.in (tree-ssa-loop-im.o): Add tree-ssa-propagate.h
13037         dependency.
13038
13039 2008-05-15  Richard Guenther  <rguenther@suse.de>
13040
13041         PR tree-optimization/34330
13042         * tree-ssa-alias.c (get_smt_for): Only assert that accesses
13043         through the pointer will alias the SMT.
13044
13045 2008-05-14  Andreas Tobler  <a.tobler@schweiz.org>
13046
13047         * config/sparc/sparc.h (NO_PROFILE_COUNTERS): Define as 0.
13048
13049 2008-05-14  H.J. Lu  <hongjiu.lu@intel.com>
13050
13051         * config/i386/sse.md (*sse4_1_pinsrq): Make it 64bit only.
13052
13053 2008-05-14  Michael Meissner  <michael.meissner@amd.com>
13054             Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
13055
13056         * optabs.h (optab_index): Add OTI_vashl, OTI_vlshr, OTI_vashr,
13057         OTI_vrotl, OTI_vrotr to support vector/vector shifts.
13058         (vashl_optab): New optab for vector/vector shifts.
13059         (vashr_optab): Ditto.
13060         (vlshr_optab): Ditto.
13061         (vrotl_optab): Ditto.
13062         (vrotr_optab): Ditto.
13063         (optab_subtype): New enum for optab_for_tree_code call.
13064         (optab_for_tree_code): Add enum optab_subtype argument.
13065
13066         * optabs.c (optab_for_tree_code): Take an additional argument to
13067         distinguish between a vector shift by a scalar and vector shift by
13068         a vector.  Make lshr/ashr/ashl/rotl/rotr optabs just vector
13069         shifted by a scalar.  Use vlshr/vashr/vashl/vrotl/vrotr for the
13070         vector shift by a vector.
13071         (expand_widen_pattern_expr): Pass additional argument to
13072         optab_for_tree_code.
13073
13074         * genopinit.c (optabs): Add vashr_optab, vashl_optab, vlshr_optab,
13075         vrotl_optab, vrotr_optab.
13076
13077         * expr.c (expand_expr_real_1): Update calls to
13078         optab_for_tree_code to distinguish between vector shifted by a
13079         scalar and vector shifted by a vector.
13080         * tree-vectorizer.c (supportable_widening_operation): Ditto.
13081         (supportable_narrowing_operation): Ditto.
13082         * tree-vect-analyze.c (vect_build_slp_tree): Ditto.
13083         * tree-vect-patterns.c (vect_pattern_recog_1): Ditto.
13084         * tree-vect-transform.c (vect_model_reduction_cost): Ditto.
13085         (vect_create_epilog_for_reduction): Ditto.
13086         (vectorizable_reduction): Ditto.
13087         (vectorizable_operation): Ditto.
13088         (vect_strided_store_supported): Ditto.
13089         (vect_strided_load_supported): Ditto.
13090         * tree-vect-generic.c (expand_vector_operations_1): Ditto.
13091         * expmed.c (expand_shift): Ditto.
13092
13093         * doc/md.texi (ashl@var{m}3): Document that operand 2 is always a
13094         scalar type.
13095         (ashr@var{m}3): Ditto.
13096         (vashl@var{m}3): Document new vector/vector shift standard name.
13097         (vashr@var{m}3): Ditto.
13098         (vlshr@var{m}3): Ditto.
13099         (vrotl@var{m}3): Ditto.
13100         (vrotr@var{m}3): Ditto.
13101
13102         * config/i386/i386.md (PPERM_SRC): Move PPERM masks here from i386.c.
13103         (PPERM_INVERT): Ditto.
13104         (PPERM_REVERSE): Ditto.
13105         (PPERM_REV_INV): Ditto.
13106         (PPERM_ZERO): Ditto.
13107         (PPERM_ONES): Ditto.
13108         (PPERM_SIGN): Ditto.
13109         (PPERM_INV_SIGN): Ditto.
13110         (PPERM_SRC1): Ditto.
13111         (PPERM_SRC2): Ditto.
13112
13113         * config/i386/sse.md (mulv2di3): Add SSE5 support.
13114         (sse5_pmacsdql_mem): New SSE5 define_and_split that temporarily
13115         allows a memory operand to be the value being added, and split it
13116         to improve vectorization.
13117         (sse5_pmacsdqh_mem): Ditto.
13118         (sse5_mulv2div2di3_low): SSE5 32-bit multiply and extend function.
13119         (sse5_mulv2div2di3_high): Ditto.
13120         (vec_pack_trunc_v8hi): Add SSE5 pperm support.
13121         (vec_pack_trunc_v4si): Ditto.
13122         (vec_pack_trunc_v2di): Ditto.
13123         (sse5_pcmov_<mode>): Remove code that tried to use use
13124         andps/andnps instead of pcmov.
13125         (vec_widen_smult_hi_v4si): If we have SSE5, use the pmacsdql and
13126         pmacsdqh instructions.
13127         (vec_widen_smult_lo_v4si): Ditto.
13128
13129         * config/i386/i386.c (PPERM_SRC): Move PPERM masks to i386.md.
13130         (PPERM_INVERT): Ditto.
13131         (PPERM_REVERSE): Ditto.
13132         (PPERM_REV_INV): Ditto.
13133         (PPERM_ZERO): Ditto.
13134         (PPERM_ONES): Ditto.
13135         (PPERM_SIGN): Ditto.
13136         (PPERM_INV_SIGN): Ditto.
13137         (PPERM_SRC1): Ditto.
13138         (PPERM_SRC2): Ditto.
13139         (ix86_expand_sse_movcc): Move the SSE5 test after the if
13140         true/false tests.
13141         (ix86_expand_int_vcond): If SSE5 generate all possible integer
13142         comparisons.
13143         (ix86_sse5_valid_op_p): Allow num_memory to be negative, which
13144         says ignore whether the last reference is a memory operand.
13145
13146 2008-05-14  Michael Meissner  <michael.meissner@amd.com>
13147             Paolo Bonzini <bonzini at gnu dot org>
13148
13149         * config/rs6000/rs6000.c (bdesc_2arg): Change the names of vector
13150         shift patterns.
13151
13152         * config/rs6000/altivec.md (vashl<mode>3): Rename from ashl<mode>3.
13153         (vlshr<mode>3): Rename from vlshr<mode>3.
13154         (vashr<mode>3): Rename from vashr<mode>3.
13155         (mulv4sf3): Change the names of vector shift patterns.
13156         (mulv4si3): Ditto.
13157         (negv4sf2): Ditt.
13158
13159         * config/spu/spu.c (spu_initialize_trampoline): Rename vector
13160         shift insns.
13161
13162         * config/spu/spu-builtins.def (SI_SHLH): Rename vector shift insns.
13163         (SI_SHLHI): Ditto.
13164         (SI_SHL): Ditto.
13165         (SI_SHLI): Ditto.
13166         (SI_ROTH): Ditto.
13167         (SI_ROTHI): Ditto.
13168         (SI_ROT): Ditto.
13169         (SI_ROTI): Ditto.
13170         (SPU_RL_0): Ditto.
13171         (SPU_RL_1): Ditto.
13172         (SPU_RL_2): Ditto.
13173         (SPU_RL_3): Ditto.
13174         (SPU_RL_4): Ditto.
13175         (SPU_RL_5): Ditto.
13176         (SPU_RL_6): Ditto.
13177         (SPU_RL_7): Ditto.
13178         (SPU_SL_0): Ditto.
13179         (SPU_SL_1): Ditto.
13180         (SPU_SL_2): Ditto.
13181         (SPU_SL_3): Ditto.
13182         (SPU_SL_4): Ditto.
13183         (SPU_SL_5): Ditto.
13184         (SPU_SL_6): Ditto.
13185         (SPU_SL_7): Ditto.
13186
13187         * config/spu/spu.md (v): New iterator macro to add v for vector types.
13188         (floatunssidf2_internal): Change vector/vector shift names.
13189         (floatunsdidf2_internal): Ditto.
13190         (mulv8hi3): Ditto.
13191         (ashrdi3): Ditto.
13192         (ashrti3): Ditto.
13193         (cgt_df): Ditto.
13194         (cgt_v2df): Ditto.
13195         (dftsv): Ditto.
13196         (vashl<mode>3): Rename from ashl<mode>3.
13197         (vashr<mode>3): Rename from ashr<mode>3.
13198         (vlshr<mode>3): Rename from lshr<mode>3.
13199         (vrotl<mode>3): Rename from rotl<mode>3.
13200
13201 2008-05-14  Michael Meissner  <michael.meissner@amd.com>
13202
13203         PR target/36224
13204         * config/i386/sse.md (vec_widen_smult_hi_v4si): Delete, using unsigned
13205         multiply gives the wrong value when doing widening multiplies.
13206         (vec_widen_smult_lo_v4si): Ditto.
13207
13208 2008-05-14  Kenneth Zadeck <zadeck@naturalbridge.com>
13209
13210         * optabs.c (prepare_cmp_insn): Changed LCT_PURE_MAKE_BLOCK to
13211         LCT_PURE and LCT_CONST_MAKE_BLOCK to LCT_CONST in calls to
13212         emit_library_call_value.
13213         * builtins.c (expand_builtin_powi, expand_builtin_memcmp): Ditto.
13214         * tree.h (ECF_LIBCALL_BLOCK): Removed.
13215         * calls.c (initialize_argument_information, precompute_arguments,
13216         expand_call, emit_library_call_value_1): Remove ECF_LIBCALL_BLOCK.
13217         (precompute_arguments): Removed flags parameter.
13218         * rtl.h (LCT_CONST_MAKE_BLOCK, LCT_PURE_MAKE_BLOCK): Removed.
13219
13220 2008-05-14  Richard Guenther  <rguenther@suse.de>
13221
13222         * tree-ssa-dse.c (dse_possible_dead_store_p): Remove dead code.
13223         Make sure to register the store if the use is a PHI_NODE.
13224
13225 2008-05-14  Olivier Hainque  <hainque@adacore.com>
13226
13227         * expr.c (expand_expr_real_1) <normal_inner_ref>: Force op0 to
13228         memory if the component is to be referenced in BLKmode according
13229         to get_inner_reference.
13230
13231 2008-05-14  Adam Nemet  <anemet@caviumnetworks.com>
13232
13233         * calls.c (emit_library_call_value_1): Restore code clearing
13234         ECF_LIBCALL_BLOCK to ensure that we only call end_sequence once.
13235
13236 2008-05-14  Olivier Hainque  <hainque@adacore.com>
13237             Nicolas Roche  <roche@adacore.com>
13238
13239         * configure.ac: Add support for a "gcc_subdir" variable in
13240         config-lang.in, to denote a subdirectory where the language/GCC
13241         integration files are to be found.
13242         * configure: Regenerate.
13243
13244 2008-05-14  Ira Rosen  <irar@il.ibm.com>
13245
13246         PR tree-optimization/36098
13247         * tree-vect-analyze.c (vect_analyze_group_access): Set the gap
13248         value for the first load in the group in case of a gap.
13249         (vect_build_slp_tree): Check that there are no gaps in loads.
13250
13251 2008-05-14  Kenneth Zadeck <zadeck@naturalbridge.com>
13252
13253         * doc/rtl.texi: Removed reference to REG_NO_CONFLICT notes.
13254         * optabs.c (expand_binop, expand_absneg_bit, expand_unop,
13255         expand_copysign_bit, ): Change call to emit_no_conflict_block to
13256         emit_insn and remove unneeded code to construct extra args.
13257         (emit_no_conflict_block): Removed.
13258         * optabls.h: (emit_no_conflict_block): Removed.
13259         * cse.c (cse_extended_basic_block): Remove search for
13260         REG_NO_CONFLICT note.
13261         * global.c: Removed incorrect comment added in revision 117.
13262         * expr.c (convert_move): Change call to emit_no_conflict_block to
13263         emit_insn.
13264         * recog.c: Change comments so that they do not mention
13265         REG_NO_CONFLICT.
13266         * local_alloc.c (combine_regs): Removed last parameter.
13267         (no_conflict_p): Removed.
13268         (block_alloc): Removed note, no_conflict_combined_regno and set
13269         local vars. Removed all code to process REG_NO_CONFLICT blocks.
13270         (combine_regs): Removed already_dead and code to look for
13271         REG_NO_CONFLICT notes.
13272         * lower_subreg (remove_retval_note): Removed code to look for
13273         REG_NO_CONFLICT block.
13274         (resolve_reg_notes): Removed REG_NO_CONFLICT case.
13275         (resolve_clobber): Remove code to process libcalls that have
13276         REG_NO_CONFLICT notes.
13277         * loop_invariant.c (find_invariant_insn): Removed REG_NO_CONFLICT
13278         case.
13279         * combine.c (can_combine_p, distribute_notes):  Removed
13280         REG_NO_CONFLICT case.
13281         * config/cris/cris.md (movdi pattern): Changed emit_no_conflict_block
13282         to emit_insns.
13283         * config/mn10300/mn10300.md (absdf2, negdf2 patterns): Ditto.
13284         * config/m68k/m68k.md (negdf2, negxf2, absdf2, absxf2 patterns):
13285         Ditto.
13286         * reg-notes.def (NO_CONFLICT): Removed.
13287
13288 2008-05-14  David S. Miller  <davem@davemloft.net>
13289
13290         * config/sparc/sparc.c (sparc_profile_hook): If
13291         NO_PROFILE_COUNTERS, don't generate and pass a label into mcount.
13292         * config/sparc/linux.h (NO_PROFILE_COUNTERS): Define as 1.
13293         * config/sparc/linux64.h (NO_PROFILE_COUNTERS): Likewise.
13294
13295 2008-05-14  Andreas Krebbel  <krebbel1@de.ibm.com>
13296
13297         * cse.c (cse_cc_succs): Invoke delete_insn_and_edges.
13298
13299 2008-05-13  Uros Bizjak  <ubizjak@gmail.com>
13300
13301         PR target/36222
13302         * config/i386/i386.c (ix86_expand_vector_init_general): Rearrange op0
13303         and op1 expansion before vector concat to have less live pseudos.
13304
13305 2008-05-13  H.J. Lu  <hongjiu.lu@intel.com>
13306
13307         * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Use
13308         ix86_expand_vector_set if supported.
13309
13310 2008-05-13  Diego Novillo  <dnovillo@google.com>
13311             Kenneth Zadeck  <zadeck@naturalbridge.com>
13312
13313         http://gcc.gnu.org/ml/gcc-patches/2008-05/msg00748.html
13314
13315         * tree.h (init_phinodes, fini_phinodes, release_phi_node,
13316         phinodes_print_statistics, init_ssanames, fini_ssanames,
13317         make_ssa_name, duplicate_ssa_name, duplicate_ssa_name_ptr_info,
13318         release_ssa_name, release_defs, replace_ssa_name_symbol,
13319         ssanames_print_statistics): Move ...
13320         * tree-flow.h: ... here.
13321         * tree-ssanames.c (init_ssanames): Add arguments FN and SIZE.
13322         Use FN instead of cfun.
13323         (make_ssa_name_fn): Rename from make_ssa_name.
13324         (pass_release_ssa_names): Add TODO_dump_func to finish flags.
13325         * tree-flow-inline.h (make_ssa_name): Move from
13326         tree-ssanames.c.  Convert to static inline.  Call make_ssa_name_fn.
13327         * omp-low.c (expand_omp_parallel):
13328         * tree-flow-inline.h (redirect_edge_var_map_result):
13329         * tree-ssa.c (init_tree_ssa): Add argument FN.
13330         Use it instead of cfun.  Update all users.
13331
13332 2008-05-13  Tom Tromey  <tromey@redhat.com>
13333
13334         PR preprocessor/22168:
13335         * doc/cpp.texi (Top): Update menu.
13336         (Alternatives to Wrapper #ifndef): New node.
13337         (Other Directives): Document deprecation.
13338         (Obsolete Features): Remove menu.
13339         (Assertions): Merge node into Obsolete Features.
13340         (Obsolete once-only headers): Move earlier; rename to Alternatives
13341         to Wrapper #ifndef.
13342         * doc/cppopts.texi: Update.
13343         * c.opt (Wdeprecated): Enable for C and ObjC.
13344         * doc/invoke.texi (Option Summary): Move -Wno-deprecated.
13345         (C++ Dialect Options): Move -Wno-deprecated from here to...
13346         (Warning Options): ... here.
13347
13348 2008-05-13  Richard Guenther  <rguenther@suse.de>
13349
13350         PR middle-end/36227
13351         * fold-const.c (fold_sign_changed_comparison): Do not allow
13352         changes in pointer-ness.
13353
13354 2008-05-12  Kaz Kojima  <kkojima@gcc.gnu.org>
13355
13356         PR target/24713
13357         * config/sh/sh.c (sh_expand_prologue): Don't clear
13358         RTX_FRAME_RELATED_P for push insns.
13359
13360 2008-05-12  Andy Hutchinson  <hutchinsonandy@aim.com>
13361
13362         * config/avr/avr.h (MAX_OFILE_ALIGNMENT): Define.
13363
13364 2008-05-12  Anatoly Sokolov <aesok@post.ru>
13365
13366         * config/avr/avr.h (machine_function): Add 'is_leaf' field.
13367         * config/avr/avr.c (avr_regs_to_save): Compute 'machine->is_leaf'.
13368         Use 'machine->is_leaf' instead of 'leaf_func_p'.
13369
13370 2008-05-12  H.J. Lu  <hongjiu.lu@intel.com>
13371
13372         * config/i386/sse.md (*sse_concatv4sf): Renamed to ...
13373         (*vec_concatv4sf_sse): This.
13374         (*sse2_concatv2si): Renamed to ...
13375         (*vec_concatv2si_sse2): This.
13376         (*sse1_concatv2si): Renamed to ...
13377         (*vec_concatv2si_sse): This.
13378         (*vec_concatv2di_rex): Renamed to ...
13379         (*vec_concatv2di_rex64): This.
13380         (*vec_concatv2si_sse4_1): New.
13381         (*vec_concatv2di_rex64_sse4_1): Likewise.
13382
13383 2008-05-12  Uros Bizjak  <ubizjak@gmail.com>
13384
13385         PR rtl-optimization/36111
13386         * recog.c (validate_replace_rtx_1): Unshare new RTL expression
13387         that was created for swappable operands.
13388
13389 2008-05-12  Samuel Tardieu  <sam@rfc1149.net>
13390
13391         PR ada/36001
13392         * Makefile.in: Substitute GNATMAKE and GNATBIND.
13393         * configure.ac: Add call to ACX_PROG_GNAT.
13394
13395 2008-05-11  Volker Reichelt  <v.reichelt@netcologne.de>
13396
13397         * optc-gen.awk: Fix comment typo.
13398
13399 2008-05-11  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
13400
13401         * pretty-print.c (pp_integer_with_precision): Use
13402         HOST_LONG_LONG_FORMAT.
13403
13404 2008-05-10  Kenneth Zadeck  <zadeck@naturalbridge.com>
13405
13406         * gcse.c (store_killed_in_insn): Negated call to RTL_CONST_CALL_P.
13407
13408 2008-05-10  H.J. Lu  <hongjiu.lu@intel.com>
13409
13410         * config/i386/i386.c (bdesc_ptest): Removed.
13411         (ix86_builtin_type): Add INT_FTYPE_V2DI_V2DI_PTEST.
13412         (bdesc_args): Add __builtin_ia32_ptestz128,
13413         __builtin_ia32_ptestc128 and __builtin_ia32_ptestnzc128.
13414         (ix86_init_mmx_sse_builtins): Updated.
13415         (ix86_expand_args_builtin): Handle INT_FTYPE_V2DI_V2DI_PTEST.
13416         (ix86_expand_builtin): Updated.
13417
13418 2008-05-10  Richard Sandiford  <rdsandiford@googlemail.com>
13419
13420         * tree-cfg.c (valid_fixed_convert_types_p): New function.
13421         (verify_gimple_expr): Handle FIXED_CONVERT_EXPR.
13422
13423 2008-05-10  Uros Bizjak  <ubizjak@gmail.com>
13424
13425         * value-prof.c (interesting_stringop_to_profile): Do not
13426         return early for BUILT_IN_MEMPCPY.
13427
13428 2008-05-09  H.J. Lu  <hongjiu.lu@intel.com>
13429
13430         * calls.c (expand_call): Don't use callgraph to increase
13431         preferred_stack_boundary.
13432
13433         * cgraph.h (cgraph_rtl_info): Use unsigned on
13434         preferred_incoming_stack_boundary.
13435
13436         * final.c (rest_of_clean_state): Use unsigned on
13437         preferred_stack_boundary.
13438
13439 2008-05-09  Tom Tromey  <tromey@redhat.com>
13440
13441         PR preprocessor/22231:
13442         * c-opts.c (sanitize_cpp_opts): Disallow -MG if compilation is
13443         proceeding.
13444
13445 2008-05-09  Uros Bizjak  <ubizjak@gmail.com>
13446
13447         PR tree-optimization/36129
13448         * tree-ssa-ccp.c: Include value-prof.h.
13449         (execute_fold_all_builtins): Call gimple_remove_stmt_histograms if
13450         built-in function was folded to a constant.
13451         * Makefile.in (tree-ssa-ccp.c): Depend on value-prof.h
13452
13453 2008-05-09  Jan Sjodin  <jan.sjodin@amd.com>
13454             Sebastian Pop  <sebastian.pop@amd.com>
13455
13456         * tree-scalar-evolution.c: Document instantiate_scev.
13457         (instantiate_parameters_1): Renamed instantiate_scev_1.
13458         Don't use the same loop for instantiation_loop and evolution_loop.
13459         (instantiate_scev): New.
13460         (instantiate_parameters): Moved...
13461         (resolve_mixers): Update call to instantiate_scev_1 to pass the
13462         same loop twice.  Maintains the semantics for this function.
13463         * tree-scalar-evolution.h (instantiate_scev): Declare.
13464         (instantiate_parameters): ...here.  Now static inline.
13465         * tree-data-ref.c (dr_analyze_indices): Call instantiate_scev
13466         instead of resolve_mixers.
13467
13468 2008-05-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
13469
13470         * rtl-factoring.c (collect_pattern_seqs): Fix typo.
13471
13472 2008-05-09  Tomas Bily  <tbily@suse.cz>
13473
13474         * config/pa/pa.c (reloc_needed): Use CASE_CONVERT.
13475         * tree-cfg.c (verify_expr, verify_gimple_expr): Likewise.
13476         * tree-ssa-structalias.c (get_constraint_for): Likewise.
13477         * c-common.c (c_common_truthvalue_conversion): Likewise.
13478         * tree-object-size.c (compute_object_offset): Likewise.
13479         * tree-inline.c (estimate_num_insns_1): Likewise.
13480         * varasm.c (const_hash_1, compare_constant, copy_constant)
13481         (compute_reloc_for_constant, output_addressed_constants)
13482         (initializer_constant_valid_p): Likewise.
13483         * c-omp.c (check_omp_for_incr_expr): Likewise.
13484         * gimplify.c (gimplify_expr): Likewise.
13485         * c-typeck.c (c_finish_return): Likewise.
13486         * tree-vectorizer.c (supportable_widening_operation)
13487         (supportable_narrowing_operation): Likewise.
13488         * c-pretty-print.c (pp_c_cast_expression, pp_c_expression): Likewise.
13489         * matrix-reorg.c (can_calculate_expr_before_stmt): Likewise.
13490         * expr.c (highest_pow2_factor, expand_expr_real_1): Likewise.
13491         * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info)
13492         (descr_info_loc): Likewise.
13493         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
13494         * fold-const.c (operand_equal_p, make_range, extract_muldiv_1)
13495         (fold_unary): Likewise.
13496         * builtins.c (get_pointer_alignment): Likewise.
13497         * tree-scalar-evolution.c (interpret_rhs_modify_stmt)
13498         (instantiate_parameters_1): Likewise.
13499         * tree.c (expr_align, stabilize_reference): Likewise.
13500         * tree-pretty-print.c (dump_generic_node, op_prio): Likewise.
13501         * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
13502         * convert.c (strip_float_extensions): Use CONVERT_EXPR_P.
13503         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
13504         * config/alpha/alpha.c (va_list_skip_additions): Likewise.
13505         * c-common.c (c_alignof_expr, check_function_arguments_recurse):
13506         Likewise.
13507         * tree-ssa.c (tree_ssa_useless_type_conversion): Likewise.
13508         * varasm.c (initializer_constant_valid_p, output_constant): Likewise.
13509         * tree-ssa-forwprop.c (get_prop_source_stmt, can_propagate_from)
13510         (forward_propagate_addr_expr_1, forward_propagate_addr_expr)
13511         (forward_propagate_comparison)
13512         (tree_ssa_forward_propagate_single_use_vars): Likewise.
13513         * cfgexpand.c (discover_nonconstant_array_refs_r): Likewise.
13514         * emit-rtl.c (component_ref_for_mem_expr)
13515         (set_mem_attributes_minus_bitpos): Likewise.
13516         * tree-ssa-phiopt.c (conditional_replacement): Likewise.
13517         * gimplify.c (gimplify_conversion, goa_lhs_expr_p, gimplify_expr):
13518         Likewise.
13519         * c-typeck.c (default_function_array_conversion, build_indirect_ref)
13520         (build_function_call, pointer_diff, build_compound_expr)
13521         (c_finish_return): Likewise.
13522         * tree-vect-analyze.c (vect_determine_vectorization_factor): Likewise.
13523         * matrix-reorg.c (get_inner_of_cast_expr, may_flatten_matrices_1):
13524         Likewise.
13525         * tree-ssa-ifcombine.c (recognize_single_bit_test): Likewise.
13526         * expr.c (is_aligning_offset): Likewise.
13527         * tree-ssa-alias.c (is_escape_site): Likewise.
13528         * tree-stdarg.c (va_list_counter_bump, check_va_list_escapes)
13529         (check_all_va_list_escapes): Likewise.
13530         * tree-ssa-loop-ivopts.c (determine_base_object)
13531         (determine_common_wider_type): Likewise.
13532         * dojump.c (do_jump): Likewise.
13533         * tree-ssa-sccvn.c (simplify_unary_expression): Likewise.
13534         * tree-gimple.c (is_gimple_cast): Likewise.
13535         * fold-const.c (decode_field_reference, )
13536         (fold_sign_changed_comparison, fold_unary, fold_comparison)
13537         (fold_binary): Likewise.
13538         * tree-ssa-alias-warnings.c (find_alias_site_helper)
13539         (already_warned_in_frontend_p): Likewise.
13540         * builtins.c (get_memory_rtx, fold_builtin_next_arg): Likewise.
13541         * tree.c (really_constant_p, get_unwidened): Likewise.
13542         * tree-ssa-loop-niter.c (expand_simple_operations): Likewise.
13543         * tree-ssa-loop-im.c (rewrite_bittest): Likewise.
13544         * tree-vrp.c (register_edge_assert_for_2, register_edge_assert_for_1):
13545         Likewise.
13546         * tree.h (STRIP_NOPS, STRIP_SIGN_NOPS, STRIP_TYPE_NOPS): Use
13547         CONVERT_EXPR_P.
13548         (CONVERT_EXPR_P): Define.
13549         (CASE_CONVERT): Define.
13550
13551 2008-05-08  Kenneth Zadeck  <zadeck@naturalbridge.com>
13552
13553         PR middle-end/36117
13554         * dce.c (deletable_insn_p): Do not delete calls if df_in_progress.
13555         (delete_unmarked_insns): When deleting a call, call
13556         delete_unreachable_blocks.
13557         * rtl.texi (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
13558         RTL_CONST_OR_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P): Fixed doc.
13559
13560 2008-05-08  Richard Guenther  <rguenther@suse.de>
13561
13562         * doc/invoke.texi (-fdump-tree-salias): Remove documentation.
13563         (-ftree-salias): Likewise.
13564         (salias-max-implicit-fields): Remove param documentation.
13565         (salias-max-array-elements): Likewise.
13566         * tree-pass.h (pass_create_structure_vars): Remove.
13567         * params.h (SALIAS_MAX_IMPLICIT_FIELDS): Remove.
13568         (SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
13569         * tree-ssa-alias.c (create_structure_vars): Remove.
13570         (gate_structure_vars): Likewise.
13571         (pass_create_structure_vars): Likewise.
13572         (gate_build_alias): Likewise.
13573         (pass_build_alias): Adjust to run always and dump the function.
13574         * common.opt (ftree-salias): Hide.
13575         * passes.c (init_optimization_passes): Remove
13576         pass_create_structure_vars, adjust comment.
13577         * params.def (PARAM_SALIAS_MAX_IMPLICIT_FIELDS): Remove.
13578         (PARAM_SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
13579         * opts.c (decode_options): Do not set flag_tree_salias.
13580         (common_handle_option): Add OPT_ftree_salias to the backward
13581         compatibility section.
13582
13583 2008-05-08  Richard Guenther  <rguenther@suse.de>
13584
13585         * tree-flow-inline.h (var_can_have_subvars): Move ...
13586         * tree-ssa-structalias.c (var_can_have_subvars): ... here.
13587         * tree-flow.h (var_can_have_subvars): Remove.
13588         (push_fields_onto_fieldstack): Remove.
13589         (sort_fieldstack): Likewise.
13590         (struct fieldoff): Move ...
13591         * tree-ssa-structalias.c (struct fieldoff): ... here.  Remove
13592         alias_set and base_for_components fields.
13593         (sort_fieldstack): Make static.
13594         (push_fields_onto_fieldstack): Likewise.  Remove code that
13595         handles anything but RECORD_TYPEs.  Remove alias_set and
13596         base_for_components handling.
13597         (create_variable_info_for): Adjust.
13598
13599 2008-05-08  Seongbae Park  <seongbae.park@gmail.com>
13600
13601         * common.opt (Wframe-larger-than=): Shorten the help message
13602         to one line.
13603         * doc/invoke.texi (Wframe-larger-than=): Add more description.
13604
13605 2008-05-08  Rafael Espíndola  <espindola@google.com>
13606
13607         * tree-complex.c (expand_complex_div_wide): Don't create CONDs that
13608         trap.
13609         * tree-gimple.c (is_gimple_condexpr): Check that the expression doesn't
13610         trap and that both operands are gimple values.
13611         (canonicalize_cond_expr_cond): Use is_gimple_condexpr.
13612         * gcc/tree-eh.c (tree_could_trap_p): Correctly detect if a comparison
13613         is a fp operation.
13614
13615 2008-05-08  Richard Sandiford  <rsandifo@nildram.co.uk>
13616
13617         * read-rtl.c (join_c_conditions): Return the first string if the
13618         two strings are equal.
13619
13620 2008-05-08  Richard Sandiford  <rsandifo@nildram.co.uk>
13621
13622         * gensupport.h (pred_data): Add a "num_codes" field.
13623         (add_predicate_code): Declare.
13624         * gensupport.c (add_predicate_code): New function.
13625         (std_pred_table): Add an "allows_const_p" field.
13626         (std_preds): Set this field for predicates that allow RTX_CONST_OBJs.
13627         Remove the (incomplete) list of such codes from the codes field.
13628         (init_predicate_table): Use add_predicate_code.  Add all
13629         RTX_CONST_OBJs if allows_const_p is true.
13630         * genrecog.c (process_define_predicate): Use add_predicate_code.
13631
13632 2008-05-08  David Daney  <ddaney@avtrex.com>
13633             Richard Sandiford  <rsandifo@nildram.co.uk>
13634
13635         * config/mips/mips.md (mips_expand_compare_and_swap_12): Handle
13636         special case of constant zero operands.
13637         * config/mips/mips.c (mips_expand_compare_and_swap_12): Zero extend
13638         old and new values.  Special case constant zero values.
13639         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP): Skip 'sync' if compare
13640         fails.
13641         (MIPS_COMPARE_AND_SWAP_12): Handle constant zero operands.
13642         (MIPS_COMPARE_AND_SWAP_12_0): New macro.
13643
13644 2008-05-08  Paolo Bonzini  <bonzini@gnu.org>
13645
13646         PR target/36090
13647         * simplify-rtx.c (simplify_plus_minus): Create CONST of
13648         similar RTX_CONST_OBJ before CONST_INT.
13649
13650 2008-05-08  Steve Ellcey  <sje@cup.hp.com>
13651
13652         * stmt.c (expand_stack_restore): Change sa mode if needed.
13653
13654 2008-05-08  Richard Guenther  <rguenther@suse.de>
13655
13656         * config/i386/i386-protos.h (ix86_return_in_memory): Adjust
13657         return type to bool.
13658         (ix86_sol10_return_in_memory): Likewise.
13659         (ix86_i386elf_return_in_memory): Likewise.
13660         (ix86_i386interix_return_in_memory): Likewise.
13661         * config/i386/i386.c (ix86_return_in_memory): Likewise.
13662         (ix86_sol10_return_in_memory): Likewise.
13663         (ix86_i386elf_return_in_memory): Likewise.
13664         (ix86_i386interix_return_in_memory): Likewise.
13665
13666 2008-05-08  Kai Tietz  <kai.tietz@onevision.com>
13667
13668         PR bootstrap/36180
13669         * calls.c (compute_argument_block_size ): Add ATTRIBUTE_UNUSED to
13670         fndecl argument.
13671         (emit_library_call_value_1): Add ATTRIBUTE_UNUSED to variable fndecl.
13672         * target-def.h: Check that TARGET_RETURN_IN_MEMORY isn't
13673         declared in front.
13674
13675 2008-05-08  Richard Guenther  <rguenther@suse.de>
13676
13677         * tree-data-ref.c (dr_analyze_alias): Do not set DR_SUBVARS.
13678         * tree-data-ref.h (struct dr_alias): Remove subvars field.
13679         (DR_SUBVARS): Remove.
13680         * tree-dfa.c (dump_subvars_for): Remove.
13681         (debug_subvars_for): Likewise.
13682         (dump_variable): Do not dump subvars.
13683         (remove_referenced_var): Do not remove subvars.
13684         * tree-flow-inline.h (clear_call_clobbered): SFTs no longer exist.
13685         (lookup_subvars_for_var): Remove.
13686         (get_subvars_for_var): Likewise.
13687         (get_subvars_at): Likewise.
13688         (get_first_overlapping_subvar): Likewise.
13689         (overlap_subvar): Likewise.
13690         * tree-flow.h (subvar_t): Remove.
13691         (struct var_ann_d): Remove subvars field.
13692         * tree-ssa-alias.c (mark_aliases_call_clobbered): Remove queued
13693         argument.  Remove special handling of SFTs.
13694         (compute_tag_properties): Likewise.
13695         (set_initial_properties): Likewise.
13696         (compute_call_clobbered): Likewise.
13697         (count_mem_refs): Likewise.
13698         (compute_memory_partitions): Likewise.
13699         (compute_flow_insensitive_aliasing): Likewise.
13700         (setup_pointers_and_addressables): Likewise.
13701         (new_type_alias): Likewise.
13702         (struct used_part): Remove.
13703         (used_portions): Likewise.
13704         (struct used_part_map): Likewise.
13705         (used_part_map_eq): Likewise.
13706         (used_part_map_hash): Likewise.
13707         (free_used_part_map): Likewise.
13708         (up_lookup): Likewise.
13709         (up_insert): Likewise.
13710         (get_or_create_used_part_for): Likewise.
13711         (create_sft): Likewise.
13712         (create_overlap_variables_for): Likewise.
13713         (find_used_portions): Likewise.
13714         (create_structure_vars): Likewise.
13715         * tree.def (STRUCT_FIELD_TAG): Remove.
13716         * tree.h (MTAG_P): Adjust.
13717         (struct tree_memory_tag): Remove base_for_components and
13718         unpartitionable flags.
13719         (struct tree_struct_field_tag): Remove.
13720         (SFT_PARENT_VAR): Likewise.
13721         (SFT_OFFSET): Likewise.
13722         (SFT_SIZE): Likewise.
13723         (SFT_NONADDRESSABLE_P): Likewise.
13724         (SFT_ALIAS_SET): Likewise.
13725         (SFT_UNPARTITIONABLE_P): Likewise.
13726         (SFT_BASE_FOR_COMPONENTS_P): Likewise.
13727         (union tree_node): Remove sft field.
13728         * alias.c (get_alias_set): Remove special handling of SFTs.
13729         * print-tree.c (print_node): Remove handling of SFTs.
13730         * tree-dump.c (dequeue_and_dump): Likewise.
13731         * tree-into-ssa.c (mark_sym_for_renaming): Likewise.
13732         * tree-nrv.c (dest_safe_for_nrv_p): Remove special handling of SFTs.
13733         * tree-predcom.c (set_alias_info): Do not set subvars.
13734         * tree-pretty-print.c (dump_generic_node): Do not handle SFTs.
13735         * tree-ssa-loop-ivopts.c (get_ref_tag): Likewise.
13736         * tree-ssa-operands.c (access_can_touch_variable): Likewise.
13737         (add_vars_for_offset): Remove.
13738         (add_virtual_operand): Remove special handling of SFTs.
13739         (add_call_clobber_ops): Likewise.
13740         (add_call_read_ops): Likewise.
13741         (get_asm_expr_operands): Likewise.
13742         (get_modify_stmt_operands): Likewise.
13743         (get_expr_operands): Likewise.
13744         (add_to_addressable_set): Likewise.
13745         * tree-ssa.c (verify_ssa_name): Do not handle SFTs.
13746         * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
13747         * tree-vect-transform.c (vect_create_data_ref_ptr): Do not set subvars.
13748         * tree.c (init_ttree): Remove STRUCT_FIELD_TAG initialization.
13749         (tree_code_size): Remove STRUCT_FIELD_TAG handling.
13750         (tree_node_structure): Likewise.
13751         * tree-ssa-structalias.c (set_uids_in_ptset): Remove special
13752         handling of SFTs.
13753         (find_what_p_points_to): Likewise.
13754
13755 2008-05-08  Sa Liu  <saliu@de.ibm.com>
13756
13757         * config/spu/spu.md: Fixed subti3 pattern.
13758
13759 2008-05-08  Richard Guenther  <rguenther@suse.de>
13760
13761         PR middle-end/36154
13762         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
13763         sure to create a representative for trailing arrays for PTA.
13764
13765 2008-05-08  Richard Guenther  <rguenther@suse.de>
13766
13767         PR middle-end/36172
13768         * fold-const.c (operand_equal_p): Two objects which types
13769         differ in pointerness are not equal.
13770
13771 2008-05-08  Kai Tietz  <kai.tietz@onevision.com>
13772
13773         * calls.c (compute_argument_block_size): Add argument tree fndecl.
13774         (OUTGOING_REG_PARM_STACK_SPACE): Add function type argument.
13775         (emit_library_call_value_1): Add new variable fndecl initialized by
13776         NULL_TREE. It should be the decl type of orgfun, but this information
13777         seems not to be available here, so it uses the default calling abi.
13778         * config/arm/arm.c (arm_return_in_memory): Add fntype argumen.
13779         * config/arm/arm.h (RETURN_IN_MEMORY): Replace RETURN_IN_MEMORY
13780         by TARGET_RETURN_IN_MEMORY.
13781         * config/i386/i386-interix.h: Likewise.
13782         * config/i386/i386.h: Likewise.
13783         * config/i386/i386elf.h: Likewise.
13784         * config/i386/ptx4-i.h: Likewise.
13785         * config/i386/sol2-10.h: Likewise.
13786         * config/i386/sysv4.h: Likewise.
13787         * config/i386/vx-common.h: Likewise.
13788         * config/cris/cris.h: Removed #if 0 clause.
13789         * config/arm/arm-protos.h (arm_return_in_memory): Add fntype argument.
13790         * config/i386/i386-protos.h (ix86_return_in_memory): Add fntype
13791         argument.
13792         (ix86_sol10_return_in_memory): Likewise.
13793         (ix86_i386elf_return_in_memory): New.
13794         (ix86_i386interix_return_in_memory): New.
13795         * config/mt/mt-protos.h (mt_return_in_memory): New.
13796         * config/mt/mt.c: Likewise.
13797         * config/mt/mt.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
13798         (RETURN_IN_MEMORY):  Replace by TARGET_RETURN_IN_MEMORY.
13799         * config/bfin/bfin.h: Likewise.
13800         * config/bfin/bfin-protos.h (bfin_return_in_memory): Add fntype
13801         argument.
13802         * config/bfin/bfin.c: Likewise.
13803         * config/pa/pa.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
13804         * config/alpha/unicosmk.h: Likewise.
13805         * config/i386/cygming.h: Likewise.
13806         * config/iq2000/iq2000.h: Likewise.
13807         * config/mips/mips.h: Likewise.
13808         * config/mn10300/mn10300.h: Likewise.
13809         * config/rs6000/rs6000.h: Likewise.
13810         * config/score/score.h: Likewise.
13811         * config/spu/spu.h: Likewise.
13812         * config/v850/v850.h: Likewise.
13813         * defaults.h: Likewise.
13814         * doc/tm.texi (OUTGOING_REG_PARM_STACK_SPACE): Adjust documentation.
13815         * expr.c (emit_block_move): Adjust use of
13816         OUTGOING_REG_PARM_STACK_SPACE.
13817         * function.c (STACK_DYNAMIC_OFFSET): Adjust use of
13818         OUTGOING_REG_PARM_STACK_SPACE.
13819         * targhooks.c (default_return_in_memory): Remove RETURN_IN_MEMORY.
13820
13821 2008-05-08  Jakub Jelinek  <jakub@redhat.com>
13822
13823         * tree-parloops.c (create_parallel_loop): Set OMP_RETURN_NOWAIT
13824         on OMP_RETURN for OMP_FOR.
13825
13826         PR debug/35896
13827         * dwarf2out.c (dw_expand_expr, common_check): Removed.
13828         (fortran_common): New function.
13829         (gen_variable_die): Call fortran_common instead of common_check,
13830         adjust for it returning tree instead of rtx.  Formatting.
13831
13832 2008-05-07  Kenneth Zadeck  <zadeck@naturalbridge.com>
13833
13834         PR rtl/7335
13835         PR rtl/33826
13836         * see.c (see_copy_insn): Copy new pure const attributes for new call.
13837         * c-decl.c (merge_decls): Ditto.
13838         * postreload.c (record_opr_changes): Change CONST_OR_PURE_CALL_P
13839         to RTL_CONST_OR_PURE_CALL_P.
13840         * tree.c (define_local_buitin): Rename DECL_IS_PURE to DECL_PURE_P.
13841         Initialized DECL_LOOPING_CONST_PURE.
13842         (process_call_operands): Set tree_side_effects properly.
13843         * tree.h (TREE_READONLY_DECL_P): Removed.
13844         (DECL_IS_PURE): Renamed to DECL_PURE_P.
13845         (DECL_LOOPING_OR_CONST_P): New macro.
13846         (struct tree_function_decl): Added looping_const_or_pure_p.
13847         (ECF_*) Renumbered.
13848         (ECF_LOOPING_OR_CONST_P): New macro.
13849         * rtlanal.c (pure_const_p): Removed.
13850         * builtins.c (expand_builtin): Rename DECL_IS_PURE to DECL_PURE_P.
13851         * reorg.c (delete_prior_computation) Changed CONST_OR_PURE_CALL_P
13852         to RTL_CONST_CALL_P.
13853         * ipa-pure-const.c (pure_const_state_e): Added looping field.
13854         (check_decl, check_tree, check_call, scan_function): Initialize
13855         looping.
13856         (analyze_function): Rename DECL_IS_PURE to DECL_PURE_P.
13857         (static_execute): Set looping true for recursive functions.
13858         Undo setting state to IPA_NEITHER for recursive functions.
13859         * cse.c (cse_insn):
13860         * ifcvt.c (noce_can_store_speculate_p): Changed
13861         CONST_OR_PURE_CALL_P and pure_call_p to RTL_CONST_CALL_P or
13862         RTL_CONST_OR_PURE_CALL_P.
13863         * dse.c (scan_insn): Ditto.
13864         * local-alloc.c (validate_equiv_mem, memref_used_between_p): Ditto.
13865         * gcse.c (oprs_not_seen_p) Changed CONST_OR_PURE_CALL_P to
13866         RTL_CONST_OR_PURE_CALL_P.
13867         (store_killed_in_insn): Changed CONST_OR_PURE_CALL_P and
13868         pure_call_p to RTL_CONST_CALL_P.
13869         * gimplify.c (gimplify_call_expr): Clear side effects for
13870         non-looping pure and constant calls.
13871         * calls.c (emit_call_1): Set rtl flags from ecf flags.
13872         (flags_from_decl_or_type): Set ecf flags from decl flags.
13873         (initialize_argument_information): Turn off
13874         ECF_LOOPING_CONST_OR_PURE when turning off ECF_CONST.
13875         Change const to pure if callee_copies is true rather than just
13876         turning off const.
13877         (expand_call): Turn off ECF_LOOPING_PURE_CONST_CALL and remove old
13878         way of marking pure calls.
13879         (emit_library_call_value_1): Turn off ECF_LOOPING_PURE_CONST_CALL.
13880         Remove hack that was supposed to fix pr7335 and remove old
13881         way of marking pure calls.
13882         * emit-rtl.c (emit_copy_of_insn_after): Copy RTL_CONST_CALL_P,
13883         RTL_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P.
13884         * cselib.c (cselib_process_insn): Changed CONST_OR_PURE_CALL_P to
13885         RTL_CONST_OR_PURE_CALL_P.
13886         * tree-ssa-pre.c (can_value_number_call): Fixed spacing.
13887         * loop-invariant.c (find_exits, find_invariant_bb): Changed
13888         CONST_OR_PURE_CALL_P to RTL_CONST_OR_PURE_CALL_P.
13889         * sched-deps.c (schedule_analyze): Ditto.
13890         * rtl.h (struct rtx_def): Use call field, unchanging field, and
13891         return_val field of calls to represent pure and const function info.
13892         (CONST_OR_PURE_CALL_P): Deleted macro.
13893         (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
13894         RTL_LOOPING_CONST_OR_PURE_CALL_P, RTL_CONST_OR_PURE_P): New macros.
13895         * tree-inline.c (copy_body_r): Changed TREE_READONLY_DECL_P to
13896         TREE_READONLY.
13897         * tree-optimize.c (execute_fixup_cfg): Added test for
13898         ECF_LOOPING_CONST_OR_PURE.
13899         * c-common.c (handle_pure_attribute): Changed DECL_IS_PURE to
13900         DECL_PURE_P.
13901         * tree-cfg.c (update_call_expr_flags): Do not clear tree side
13902         effects for looping pure or const calls.
13903         (verify_gimple_expr): Added verification code.
13904         * config/alpha/alpha.c (alpha_legitimize_address,
13905         alpha_emit_xfloating_libcall): Changed CONST_OR_PURE_CALL_P to
13906         RTL_CONST_CALL_P.
13907         * config/s390/s390.c (s390_emit_tls_call_insn): Ditto.
13908         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Ditto.
13909         * config/mips/mips.c (mips_call_tls_get_addr): Ditto.
13910         * cfgrtl.c (need_fake_edge_p): Changed CONST_OR_PURE_CALL_P to
13911         RTL_CONST_OR_PURE_CALL_P.
13912         * dce.c (deletable_insn_p): Allow non looping, non sibling, pure
13913         and const calls to be deleted.
13914
13915 2008-05-07  Uros Bizjak  <ubizjak@gmail.com>
13916
13917         PR target/35714
13918         * config/i386/mmx.md (mmx_subv2sf3): New expander.
13919         (*mmx_subv2sf3): Rename from mmx_subv2sf3 insn pattern.
13920         (*mmx_eqv2sf3): Rename from mmx_eqv2sf3 insn pattern.
13921         (mmx_eqv2sf3): New expander.  Use ix86_fixup_binary_operands_no_copy
13922         to handle nonimmediate operands.
13923         (*mmx_paddwd): Rename from mmx_paddwd insn pattern.
13924         (mmx_paddwd): New expander.  Use ix86_fixup_binary_operands_no_copy
13925         to handle nonimmediate operands.
13926         (*mmx_pmulhrwv4hi3): Rename from mmx_pmulhrwv4hi3 insn pattern.
13927         (mmx_pmulhrwv4hi3): New expander.  Use
13928         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
13929         (*sse2_umulv1siv1di3): Rename from sse2_umulv1siv1di3 insn pattern.
13930         (sse2_umulv1siv1di3): New expander.  Use
13931         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
13932         (*mmx_eq<mode>3): Rename from mmx_eq<mode>3 insn pattern.
13933         (mmx_eq<mode>3): New expander.  Use
13934         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
13935         (*mmx_uavgv8qi3): Rename from mmx_uavgv8qi3 insn pattern.
13936         (mmx_uavgv8qi3): New expander.  Use
13937         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
13938         (*mmx_uavgv4hi3): Rename from mmx_uavgv4hi3 insn pattern.
13939         (mmx_uavgv4hi3): New expander.  Use
13940         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
13941
13942         * config/i386/sse.md
13943         (sse_movhlps_exp): New expander.  Use ix86_fixup_binary_operands
13944         to handle nonimmediate operands.
13945         (sse_movlhps_exp): New expander.  Use ix86_fixup_binary_operands
13946         to handle nonimmediate operands.
13947         (sse_loadhps_exp): New expander.  Use ix86_fixup_binary_operands
13948         to handle nonimmediate operands.
13949         (sse_loadlps_exp): New expander.  Use ix86_fixup_binary_operands
13950         to handle nonimmediate operands.
13951         (sse2_unpckhpd_exp): New expander.  Use
13952         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
13953         (sse2_unpcklpd_exp): New expander.  Use
13954         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
13955         (sse_loadhpd_exp): New expander.  Use ix86_fixup_binary_operands
13956         to handle nonimmediate operands.
13957         (sse_loadlpd): New expander.  Use ix86_fixup_binary_operands
13958         to handle nonimmediate operands.
13959         (*sse2_<plusminus_insn><mode>3): Rename from
13960         sse2_<plusminus_insn><mode>3 insn pattern.
13961         (sse2_<plusminus_insn><mode>3): New expander.  Use
13962         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
13963         (*sse2_umulv2siv2di3): Rename from sse2_umulv2siv2di3 insn pattern.
13964         (sse2_umulv2siv2di3): New expander.  Use
13965         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
13966         (*sse4_1_mulv2siv2di3): Rename from sse4_1_mulv2siv2di3 insn pattern.
13967         (sse4_1_mulv2siv2di3): New expander.  Use
13968         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
13969         (*sse2_pmaddwd): Rename from sse2_pmaddwd insn pattern.
13970         (sse2_pmaddwd): New expander.  Use
13971         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
13972         (*sse2_eq<mode>3): Rename from sse2_eq<mode>3 insn pattern.
13973         (sse2_eq<mode>3): New expander.  Use
13974         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
13975         (*sse4_1_eqv2di3): Rename from sse4_1_eqv2di3 insn pattern.
13976         (sse4_1_eqv2di3): New expander.  Use
13977         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
13978         (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
13979         (sse2_uavgv16qi3): New expander.  Use
13980         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
13981         (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
13982         (sse2_uavgv16qi3): New expander.  Use
13983         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
13984         (*sse2_uavgv8hi3): Rename from sse2_uavgv8hi3 insn pattern.
13985         (sse2_uavgv8hi3): New expander.  Use
13986         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
13987         (*ssse3_pmulhrswv8hi3): Rename from ssse3_pmulhrswv8hi3 insn pattern.
13988         (ssse3_pmulhrswv8hi3): New expander.  Use
13989         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
13990         (*ssse3_pmulhrswv4hi3): Rename from ssse3_pmulhrswv4hi3 insn pattern.
13991         (ssse3_pmulhrswv4hi3): New expander.  Use
13992         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
13993
13994         (<sse>_vm<plusminus_insn><mode>3): Do not use ix86_binary_operator_ok.
13995         (<sse>_vmmul<mode>3): Ditto.
13996         (divv4sf3): Do not use ix86_fixup_binary_operands_no_copy.
13997         (divv2df3): Ditto.
13998         (ssse3_pmaddubsw128): Use register_operand for operand 1.
13999         (ssse3_pmaddubsw): Ditto.
14000
14001         * config/i386/i386.c (struct_builtin_description)
14002         [IX86_BUILTIN_LOADHPS]: Use CODE_FOR_sse_loadhps_exp.
14003         [IX86_BUILTIN_STOREHPS]: Use CODE_FOR_sse_loadlps_exp.
14004         [IX86_BUILTIN_LOADHPD]: Use CODE_FOR_sse2_loadhpd_exp.
14005         [IX86_BUILTIN_LOADLPD]: Use CODE_FOR_sse2_loadlpd_exp.
14006         [IX86_BUILTIN_MOVHLPS]: Use CODE_FOR_sse_movhlps_exp.
14007         [IX86_BUILTIN_MOVLHPS]: Use CODE_FOR_sse_movlhps_exp.
14008         [IX86_BUILTIN_UNPCKHPD]: Use FOR_sse2_unpckhpd_exp.
14009         [IX86_BUILTIN_UNPCKLPD]: Use FOR_sse2_unpcklpd_exp.
14010         (ix86_fixup_binary_operands): Assert that src1
14011         and src2 must have the same mode when swapped.
14012         (ix86_expand_binop_builtin): Do not use ix86_fixup_binary_operands
14013         and ix86_binary_operator_ok.  Do not force operands in registers
14014         when optimizing.
14015
14016 2008-05-07  Jan Hubicka  <jh@suse.cz>
14017
14018         * cgraph.c (dump_cgraph_node): Update.
14019         * cgraph.h (cgraph_local_info): Break out inline summary.
14020         * cgraphunit.c (cgraph_process_new_functions): Use inliner analysis
14021         hook.
14022         * ipa-inline (inline_summary): New accestor function.
14023         (cgraph_clone_inlined_nodes, cgraph_check_inline_limits,
14024         cgraph_decide_inlining, compute_inline_parameters): Update.
14025         * ipa.c (cgraph_remove_unreachable_nodes): Remove statistics.
14026
14027 2008-05-07  Maxim Kuvyrkov  <maxim@codesourcery.com>
14028
14029         Cleanup ColdFire scheduling support and add V4 pipeline model.
14030
14031         * config/m68k/m68k.md (UNSPEC_TIE): New constant.
14032         (define_attr cpu): Add cfv4 value.
14033         (define_attr type, define_attr type1): Merge into a single 'type'
14034         attribute.  Update all uses.
14035         (define_attr opx_type, define_attr opy_type, define_attr opx_access):
14036         Rearrange and update.  Rename value 'reg' to 'Rn', add value 'FPn'.
14037         Update all uses.
14038         (define_attr opx_mem, define_attr opy_mem): Remove.
14039         (define_attr op_mem): Clean up, update comment.
14040         (define_attr size): Use specific values instead of general int.
14041         (define_attr guess, define_attr split): Remove.  Update all uses.
14042         (movdf_internal, tstsi_internal, tsthi_internal, tstqi_internal,
14043         tst<mode>_68881, pushexthisi_const, movsi_const0_68000_10,
14044         movsi_const0_68040_60, movsi_const0, movsi_cf, movstrictqi_cf,
14045         zero_extendhisi2_cf, zero_extendqisi2_cfv4, cfv4_extendhisi2,
14046         68k_extendhisi2, extendqihi2, cfv4_extendqisi2, 68k_extendqisi2,
14047         floatsi<mode>2_68881, ftrunc<mode>2_68881, ftrunc<mode>2_cf,
14048         fix<mode>qi2_68881, fix<mode>hi2_68881, fix<mode>si2_68881,
14049         adddi_dishl32, addsi3_5200, add<mode>3_floatsi_68881,
14050         add<mode>3_floathi_68881, add<mode>3_floatqi_68881,
14051         add<mode>3_68881, add<mode>3_cf, subdi_dishl32, subsi3,
14052         sub<mode>3_floatsi_68881, sub<mode>3_floathi_68881,
14053         sub<mode>3_floatqi_68881, sub<mode>3_68881, sub<mode>3_cf,
14054         mulhi3, mulhisi3, mulhisisi3_s, mulsi3_68020, mulsi3_cf,
14055         umulhisi3, mulhisisi3_z, mul<mode>3_floatsi_68881,
14056         mul<mode>3_floathi_68881, mul<mode>3_floatqi_68881, fmul<mode>3_cf,
14057         div<mode>3_cf, sqrt<mode>2_cf, abs<mode>2_cf, clzsi2,
14058         one_cmplsi2_5200, subreghi1ashrdi_const32, ashrsi3, lshrsi3,
14059         bsetmemqi, bsetmemqi_ext, bclrmemqi, bclrmemqi_ext,
14060         beq, bne, bgt, blt, bordered, bunordered, buneq, bunge, bungt, bunle,
14061         bunlt, bltgt, tablejump_internal, call, non_symbolic_call_value,
14062         symbolic_call_value_jsr, symbolic_call_value_bsr, link):
14063         Update or set attributes.
14064         (stack_tie): New fake instruction.
14065
14066         * config/m68k/m68k.h (TUNE_CFV4): New macro.
14067         (m68k_sched_attr_size): Update declaration.
14068         (m68k_sched_attr_type2): Remove.
14069         (m68k_sched_address_bypass_p, m68k_sched_indexed_address_bypass_p):
14070         Declare new bypass predicates.
14071
14072         * config/m68k/m68k.c (m68k_sched_issue_rate,
14073         m68k_sched_first_cycle_multipass_dfa_lookahead): Declare hook
14074         implementations.
14075         (TARGET_SCHED_ISSUE_RATE,
14076         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Override hooks.
14077         (override_options): Handle scheduling for ColdFire V4 core.
14078         (m68k_expand_prologue): Emit stack_tie.
14079         (enum attr_op_type): Split value 'OP_TYPE_REG' to 'OP_TYPE_RN' and
14080         'OP_TYPE_FPN'.  Update all uses.
14081         (sched_guess_p): Remove.
14082         (sched_address_type): Handle symbolic addresses.
14083         (sched_get_operand): New static function.
14084         (sched_operand_type): Merge into sched_attr_op_type.
14085         (sched_attr_op_type): Handle FP registers, handle quick constants,
14086         update.
14087         (m68k_sched_attr_opx_type, m68k_sched_attr_opy_type): Update.
14088         (m68k_sched_attr_size): Update.  Move logic to ...
14089         (sched_get_attr_size_int): New static function.
14090         (sched_get_opxy_mem_type): New static function.
14091         (m68k_sched_attr_op_mem): Update.
14092         (m68k_sched_attr_type2): Remove.
14093         (sched_cfv4_bypass_data): New static variable.
14094         (m68k_sched_adjust_cost): Handle ColdFire V4 bypass.
14095         (m68k_sched_issue_rate): Implement scheduler hook.
14096         (struct _sched_ib: enabled_p): New field.
14097         (m68k_sched_variable_issue): Update.  Handle V4.
14098         (SCHED_DUMP_TODO, SCHED_DUMP_DONE, SCHED_DUMP_NOTHING,
14099         sched_dump_class_func_t, sched_dump_split_class,
14100         sched_dump_dfa_guess_unit_code, sched_dump_dfa_state,
14101         sched_dump_dfa_class, m68k_sched_dump): Remove.
14102         (m68k_sched_first_cycle_multipass_dfa_lookahead): Implement scheduler
14103         hook.
14104         (m68k_sched_init_global): Remove statisctics dumping, introduce
14105         sanity check that all instructions have pipeline reservations.  Handle
14106         ColdFire V4 core.
14107         (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
14108         Handle ColdFire V4 core.
14109         (sched_mem_operand_p, sched_get_reg_operand, sched_get_mem_operand):
14110         New static functions.
14111         (m68k_sched_address_bypass_p): New bypass predicate.
14112         (sched_get_indexed_address_scale): New static function.
14113         (m68k_sched_indexed_address_bypass_p): New bypass predicate.
14114
14115         * cf.md: Update comments.
14116         (define_attr type2): Remove.  Use 'type' attribute instead.
14117         Update all uses.
14118         (cf_ib): Rename to cfv123_ib.  Update all uses.
14119         (cf_oep): Rename to cfv123_oep.  Update all uses.
14120         (cf_chr): Rename to cfv123_chr.  Update all uses.
14121         (cf_mem): Rename to cfv123_mem.  Update all uses.
14122         (cf_mac): Move to more appropriate place.
14123         (cfv123_guess): New automaton and cpu_unit.
14124         (cfv123_*, cfv12_*, cfv1_*, cfv2_*, cfv3_*): Use type attribute.
14125         Update uses of 'size' attribute.  Handle before reload scheduling.
14126         (cfv123_guess): New dummy reservation for unhandled instructions.
14127         (cfv4_*): Pipeline description of ColdFire V4 core.
14128         (ignore): New reservation to handle 'ignore' type.
14129
14130 2008-05-07  Ian Lance Taylor  <iant@google.com>
14131
14132         PR middle-end/36013
14133         * gimplify.c (find_single_pointer_decl_1): Don't look through
14134         indirections.
14135         (find_single_pointer_decl): Adjust comments.
14136
14137 2008-05-07  Jakub Jelinek  <jakub@redhat.com>
14138
14139         PR middle-end/36137
14140         * fold-const.c (fold_binary): Use STRIP_SIGN_NOPS instead of
14141         STRIP_NOPS on arguments even for MIN_EXPR and MAX_EXPR.
14142
14143         PR middle-end/36106
14144         * omp-low.c (expand_omp_atomic_pipeline): Load value using the
14145         integral type rather than floating point, then VIEW_CONVERT_EXPR
14146         to the floating point type.
14147
14148 2008-05-07  Uros Bizjak  <ubizjak@gmail.com>
14149
14150         * config/i386/i386.c (ix86_expand_copysign): Force non-zero constant
14151         TFmode op0 to register.
14152
14153 2008-05-07  Alan Modra  <amodra@bigpond.net.au>
14154
14155         * c-decl.c (grokdeclarator): Comment typo.
14156
14157 2008-05-06  Aldy Hernandez  <aldyh@redhat.com>
14158
14159         * tree-flow.h: Remove prototype for computed_goto_p.
14160         * tree-cfg.c (computed_goto_p): Make static.
14161
14162 2008-05-06  H.J. Lu  <hongjiu.lu@intel.com>
14163
14164         PR target/35657
14165         * config/i386/i386.c (contains_128bit_aligned_vector_p): Renamed to ...
14166         (contains_aligned_value_p): This.  Handle _Decimal128.
14167         (ix86_function_arg_boundary): Only align _Decimal128 to its
14168         natural boundary and handle it properly.
14169
14170 2008-05-06  Martin Jambor  <mjambor@suse.cz>
14171
14172         * ipa-cp.c (ipcp_method_orig_node): Renamed to ipcp_get_orig_node.
14173         (ipcp_method_is_cloned): Renamed to ipcp_node_is_clone
14174         (ipcp_method_set_orig_node): Removed.
14175         (ipcp_cval_get_cvalue_type): Removed.
14176         (ipcp_method_get_scale): Renamed to ipcp_get_node_scale.
14177         (ipcp_method_set_scale): Renamed to ipcp_set_node_scale.
14178         (ipcp_cval_set_cvalue_type): Removed.
14179         (ipcp_cval_get_cvalue): Removed.
14180         (ipcp_cval_set_cvalue): Removed.
14181         (ipcp_type_is_const): Renamed to ipcp_lat_is_const.
14182         (ipcp_cval_equal_cvalues): Renamed to ipcp_lats_are_equal
14183         (ipcp_lats_are_equal): Changed parameters to two ipcp_lattice's
14184         (ipcp_cval_meet): Renamed to ipa_lattice_meet
14185         (ipcp_cval_changed): Changed to use ipcp_lat_is_const
14186         (ipcp_method_cval): Renamed to ipcp_get_ith_lattice
14187         (ipcp_get_ith_lattice): Changed parameters.
14188         (ipcp_cval_compute): Renamed to ipcp_lattice_from_jfunc
14189         (ipcp_lattice_from_jfunc): Changed parameters.
14190         (ipcp_redirect): Local lattice pointer instead of lattice type variable.
14191         (ipcp_method_cval_print): Added temporary variable info.
14192         (ipcp_redirect): Removed already unused local variable caller.
14193         (ipcp_redirect): New temporary variable orig_callee_info
14194         (ipcp_redirect): Removed newly unused local variable callee.
14195         (ipcp_redirect): Removed (a bit confusing) local variable type.
14196         (ipcp_insert_stage): Added local variable info.
14197         (ipcp_cval_changed): Renamed to ipcp_lattice_changed, parameters
14198         renamed too
14199         (ipcp_formal_create): Removed.
14200         (ipcp_method_cval_set): Removed.
14201         (ipcp_propagate_stage): Renamed lattice variables.
14202         (ipcp_method_cval_set_cvalue_type): Removed.
14203         (ipcp_method_cval_print): Renamed to ipcp_print_all_lattices
14204         (ipcp_print_all_lattices): Changed printed strings to refer to
14205         lattices rather than cvals.
14206         (ipcp_method_cval_init): Renamed to ipcp_initialize_node_lattices
14207         (ipcp_propagate_const): Changed formal parameters.
14208         (build_const_val): Changed formal parameters.
14209         (ipcp_insert_stage): Removed useless variable cvalue
14210         (build_const_val): Changed formal parameters.
14211         (ipcp_method_compute_scale): Renamed to ipcp_compute_node_scale
14212         (ipcp_after_propagate): Renamed to ipcp_change_tops_to_bottom
14213         (ipcp_callsite_param_print): Renamed to ipcp_print_all_jump_functions
14214         (ipcp_profile_mt_count_print): Renamed to ipcp_print_func_profile_counts
14215         (ipcp_print_func_profile_counts): Changed string from "method" to
14216         "function"
14217         (ipcp_profile_cs_count_print): Renamed to ipcp_print_call_profile_counts
14218         (ipcp_profile_edge_print): Renamed to ipcp_print_edge_profiles
14219         (ipcp_profile_bb_print): Renamed to ipcp_print_bb_profiles
14220         (ipcp_structures_print): Renamed to ipcp_print_all_structures
14221         (ipcp_profile_print): Renamed to ipcp_print_profile_data
14222         (ipcp_lat_is_const): Changed parameters and made inline.
14223         (ipcp_replace_map_create): Renamed to ipcp_create_replace_map
14224         (ipcp_redirect): Renamed to ipcp_need_redirect_p
14225         (ipcp_need_redirect_p): Calls ipcp_lat_is_const instead of using
14226         the predicate condition directly
14227         (ipcp_propagate_stage): Added local variable args. Removed local
14228         variable callee.  (Both are mere code simplifications.)
14229         (ipcp_method_dont_insert_const): Renamed to
14230         ipcp_node_not_modifiable_p.
14231         (ipcp_node_not_modifiable_p): Made inline.
14232         (ipcp_cloned_create): Renamed to ipcp_init_cloned_node
14233         (ipcp_propagate_const): Renamed to ipcp_propagate_one_const
14234         (ipcp_print_all_lattices): Removed variable cvalue
14235         (ipcp_method_scale_print): Renamed to ipcp_function_scale_print
14236         Updated comments.
14237
14238 2008-05-06  Olivier Hainque  <hainque@adacore.com>
14239
14240         * tree-sra.c (try_instantiate_multiple_fields): Early return
14241         if field has POINTER_TYPE.
14242
14243 2008-05-06  Kai Tietz  <kai.tietz@onevision.com>
14244
14245         * config/i386/i386.c (output_set_got): Fix for x86_64 output_emit_asm
14246         by using 'q' specifier for instruction.
14247         (ix86_file_end): Replaced case TARGET_64BIT_MS_ABI by TARGET_64BIT.
14248
14249 2008-05-06  Anatoly Sokolov <aesok@post.ru>
14250
14251         * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
14252         Change mode of zero_extract from QImode to HImode.
14253         (sign bit tests peepholes): (Ditto.).
14254
14255 2008-05-06  Uros Bizjak  <ubizjak@gmail.com>
14256
14257         * config/i386/mmx.md: Remove double backslashes from asm templates.
14258         (*mmx_addv2sf3): Rename from mmx_addv2sf3 insn pattern.
14259         (mmx_addv2sf3): New expander.  Use ix86_fixup_binary_operands_no_copy
14260         to handle nonimmediate operands.
14261         (*mmx_mulv2sf3): Rename from mmx_mulv2sf3 insn pattern.
14262         (mmx_mulv2sf3): New expander.  Use ix86_fixup_binary_operands_no_copy
14263         to handle nonimmediate operands.
14264         (*mmx_<code>v2sf3_finite): New insn pattern.
14265         (*mmx_<code>v2sf3): Rename from mmx_<code>v2sf3 insn pattern.
14266         (mmx_<code>v2sf3): New expander.  Use
14267         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14268         (mmx_<plusminus_insn><mode>3): New expander.  Use
14269         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14270         (*mmx_<plusminus_insn><mode>3): New insn pattern.
14271         (mmx_add<mode>3): Removed.
14272         (mmx_ssadd<mode>3): Ditto.
14273         (mmx_usadd<mode>3): Ditto.
14274         (mmx_sub<mode>3): Ditto.
14275         (mmx_sssub<mode>3): Ditto.
14276         (mmx_ussub<mode>3): Ditto.
14277         (*mmx_mulv4hi3): Rename from mmx_mulv4hi3 insn pattern.
14278         (mmx_mulv4hi3): New expander.  Use ix86_fixup_binary_operands_no_copy
14279         to handle nonimmediate operands.
14280         (*mmx_smulv4hi3_highpart): Rename from mmx_smulv4hi3_highpart
14281         insn pattern.
14282         (mmx_smulv4hi3_highpart): New expander.  Use
14283         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14284         (*mmx_umulv4hi3_highpart): Rename from mmx_umulv4hi3_highpart
14285         insn pattern.
14286         (mmx_umulv4hi3_highpart): New expander.  Use
14287         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14288         (*mmx_<code>v4hi3): Rename from mmx_<code>v4hi3 insn pattern.
14289         (mmx_<code>v4hi3): New expander.  Use
14290         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14291         (*mmx_<code>v8qi3): Rename from mmx_<code>v8qi3 insn pattern.
14292         (mmx_<code>v8qi3): New expander.  Use
14293         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14294         (*mmx_<code><mode>3): Rename from mmx_<code><mode>3 insn pattern.
14295         (mmx_<code><mode>3): New expander.  Use
14296         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14297
14298 2008-05-05  Jan Hubicka  <jh@suse.cz>
14299
14300         PR tree-optimization/36118
14301         * passes.c (pass_init_dump_file): Fix dump header.
14302
14303 2008-05-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>
14304
14305         PR middle-end/36141
14306         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't create
14307         VCE for function decls.
14308
14309 2008-05-05  H.J. Lu  <hongjiu.lu@intel.com>
14310
14311         * config/i386/sse.md (sse2_<plusminus_insn><mode>3): Fix a typo.
14312
14313 2008-05-05  H.J. Lu  <hongjiu.lu@intel.com>
14314
14315         * config/i386/i386.md (sat_plusminus): New.
14316         (plusminus_insn): Likewise.
14317         (plusminus_mnemonic): Likewise.
14318         (addsub): Removed.
14319         (comm): Add ss_plus, us_plus, ss_minus and us_minus.
14320         (*<addsub><mode>3_cc_overflow): Renamed to ...
14321         (*<plusminus_insn><mode>3_cc_overflow): This.
14322         (*<addsub>si3_zext_cc_overflow): Renamed to ...
14323         (*<plusminus_insn>si3_zext_cc_overflow): This.
14324
14325         * config/i386/sse.md (<addsub><mode>3): Renamed to ...
14326         (<plusminus_insn><mode>3): This.
14327         (*<addsub><mode>3): Renamed to ...
14328         (*<plusminus_insn><mode>3): This.
14329         (<sse>_vm<addsub><mode>3): Renamed to ...
14330         (<sse>_vm<plusminus_insn><mode>3): This.
14331         (sse3_h<addsub>v4sf3): Renamed to ...
14332         (sse3_h<plusminus_insn>v4sf3): This.
14333         (sse3_h<addsub>v2df3): Renamed to ...
14334         (sse3_h<plusminus_insn>v2df3): This.
14335         (<plusminus_insn><mode>3): New.
14336         (*<plusminus_insn><mode>3): Likewise.
14337         (sse2_<plusminus_insn><mode>3): Likewise.
14338         (add<mode>): Removed.
14339         (*add<mode>3): Likewise.
14340         (sse2_ssadd<mode>3): Likewise.
14341         (sse2_usadd<mode>3): Likewise.
14342         (sub<mode>3): Likewise.
14343         (*sub<mode>3): Likewise.
14344         (sse2_sssub<mode>3): Likewise.
14345         (sse2_ussub<mode>3): Likewise.
14346
14347 2008-05-05  Benjamin Kosnik  <bkoz@redhat.com>
14348
14349         * gthr-single.h: Add in required interface elements as per gthr.h.
14350         Add stub types for __gthread_key_t, __gthread_once_t. Add defines
14351         for __GTHREAD_ONCE_INIT, __GTHREAD_RECURSIVE_MUTEX_INIT.
14352         Generalize UNUSED macro.
14353         (__gthread_once): Add.
14354         (__gthread_key_create): Add.
14355         (__gthread_key_delete): Add.
14356         (__gthread_getspecific): Add.
14357         (__gthread_setspecific): Add.
14358
14359 2008-05-05  Andrew Pinski  <Andrew.Pinski@playstation.sony.com>
14360
14361         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): If we have
14362         the same size types for the indirect reference on the rhs, then
14363         create a VCE.
14364
14365 2008-05-05  Uros Bizjak  <ubizjak@gmail.com>
14366
14367         * config/i386/i386.md
14368         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit): Use only
14369         one insn template instead of template series.
14370         (*xordi_1_rex64): Ditto.
14371         (*xordi_2_rex64): Ditto.
14372
14373 2008-05-05  Ira Rosen  <irar@il.ibm.com>
14374
14375         PR tree-optimization/36119
14376         * tree-vect-transform.c (vectorizable_assignment): Set NCOPIES to 1
14377         in case of SLP.
14378
14379 2008-06-04  Jan Hubicka  <jh@suse.cz>
14380
14381         tree-optimization/36100
14382         * tree-pass.h (pass_O0_always_inline): Declare.
14383         * ipa-inline.c (inline_transform): Remove dead code.
14384         (cgraph_gate_O0_always_inline, cgraph_O0_always_inline,
14385         pass_O0_always_inline): New.
14386         * passes.c (init_optimization_passes): Add pass_O0_always_inline.
14387
14388 2008-05-04  Kai Tietz  <kai.tietz@onevision.com>
14389
14390         * config/i386/i386.c (x86_output_mi_thunk): Use movq alternative
14391         mnemonic in this_param move for TARGET_64BIT.
14392
14393 2008-05-04  Uros Bizjak  <ubizjak@gmail.com>
14394
14395         * config/i386/i386.md (*strmovsi_1): Simplify asm alternatives.
14396         (*strmovsi_rex_1): Ditto.
14397         (*strsetsi_1): Ditto.
14398         (*strsetsi_rex_1): Ditto.
14399
14400         (add<mode>cc): Macroize expander from addqicc, addhicc, addsicc and
14401         adddicc expanders using SWI mode iterator.
14402
14403 2008-05-04  H.J. Lu  <hongjiu.lu@intel.com>
14404
14405         PR target/36121
14406         * config/i386/i386.c (ix86_expand_special_args_builtin): Remove three
14407         argument handling.
14408
14409 2008-05-04  David S. Miller  <davem@davemloft.net>
14410
14411         * config.gcc (sparc*-*-*): Always set need_64bit_hwint to yes.
14412         (sparc*-*-linux*): Use linux.h in tm_file.
14413         (sparc-*-linux*): If 'enabled_targets' is 'all', build a bi-arch
14414         compiler defaulting to 32-bit.
14415         (sparc*-*-*): Remove explicit target settings of need_64bit_hwint,
14416         no longer needed.
14417         * config/sparc/linux.h: Remove definitions now obtained
14418         properly from linux.h
14419         * config/sparc/linux64.h: Likewise.
14420         (ASM_CPU_DEFAULT_SPEC): Change this to ASM_CPU64_DEFAULT_SPEC, we
14421         don't want this setting for 32-bit builds in a biarch compiler.
14422         * doc/install.texi: Add sparc-linux to list of targets
14423         supporting --enable-targets=all.
14424
14425 2008-05-03  Andrew Pinski  <pinskia@gmail.com>
14426
14427         * Makefile.in (tree-ssa-phiprop.o): Fix dependencies.
14428
14429 2008-05-03  H.J. Lu  <hongjiu.lu@intel.com>
14430
14431         * config/i386/i386.c (ix86_builtin_type): Move V4SI_FTYPE_V4SF
14432         after V4SI_FTYPE_V8HI.
14433         (ix86_init_mmx_sse_builtins): Move case V4HI_FTYPE_V4HI after
14434         case V4SI_FTYPE_V2DF.
14435
14436 2008-05-03  Kenneth Zadeck  <zadeck@naturalbridge.com>
14437
14438         * doc/invoke.texi (max-flow-memory-locations): Removed.
14439         * params.def (PARAM_MAX_FLOW_MEMORY_LOCATIONS): Removed.
14440
14441 2008-05-03  Richard Guenther  <rguenther@suse.de>
14442
14443         PR middle-end/34973
14444         * opts.c (set_Wstrict_aliasing): Handle the turn-off case.
14445
14446 2008-05-02  David S. Miller  <davem@davemloft.net>
14447
14448         * config.gcc (need_64bit_hwint): Document libcpp dependency.
14449
14450 2008-05-02  Simon Baldwin <simonb@google.com>
14451
14452         PR bootstrap/36108
14453         * c-common.h (warn_array_subscript_range): Removed.
14454         * c-common.c (warn_array_subscript_range): Ditto.
14455         * tree-vrp.c (check_array_ref): Revert to ignoring arrays with size 2.
14456         * c-typeck.c (build_array_ref): Remove warn_array_subscript_range.
14457
14458 2008-05-02  H.J. Lu  <hongjiu.lu@intel.com>
14459
14460         * config/i386/i386.c (ix86_special_builtin_type): New.
14461         (bdesc_special_args): Likewise.
14462         (ix86_expand_special_args_builtin): Likewise.
14463         (ix86_init_mmx_sse_builtins): Updated.
14464         (ix86_expand_builtin): Updated.
14465         (ix86_expand_store_builtin): Removed.
14466         (ix86_expand_unop_builtin): Likewise.
14467
14468         * config/i386/mm3dnow.h (__v2sf): Moved to ...
14469         * config/i386/mmintrin.h (__v2sf): Here.
14470
14471         * config/i386/xmmintrin.h (_mm_loadh_pi): Replace __v2si with
14472         const __v2sf.
14473         (_mm_loadl_pi): Likewise.
14474         (_mm_storeh_pi): Replace __v2si with __v2sf.
14475         (_mm_storel_pi): Likewise.
14476
14477         * doc/extend.texi: Correct __builtin_ia32_loadhps,
14478         __builtin_ia32_loadlps, __builtin_ia32_storehps,
14479         __builtin_ia32_storelps, __builtin_ia32_loadhpd and
14480         __builtin_ia32_loadlpd.
14481
14482 2008-05-02  H.J. Lu  <hongjiu.lu@intel.com>
14483
14484         * config/i386/i386.c (ix86_builtin_type): Add FLOAT_FTYPE_FLOAT,
14485         V4SF_FTYPE_V4SF_VEC_MERGE and V2DF_FTYPE_V2DF_VEC_MERGE.
14486         (bdesc_args): Updated.  Add scalar SSE builtins with vec_merge.
14487         (ix86_init_mmx_sse_builtins): Updated.
14488         (ix86_expand_args_builtin): Likewise.
14489         (ix86_expand_builtin): Likewise.
14490         (ix86_expand_unop1_builtin): Renamed to ...
14491         (ix86_expand_unop_vec_merge_builtin): This.
14492
14493 2008-05-01  Jan Hubicka  <jh@suse.cz>
14494
14495         PR bootstrap/36100
14496         * ipa-inline.c (inline_generate_summary): Make static.
14497         (inline_transform): Do not call inlining at -O0; make static.
14498         * passes.c (execute_todo): Add sanity check.
14499         (execute_one_ipa_transform_pass): Execute proper flags.
14500
14501 2008-05-01  Eric Botcazou  <ebotcazou@adacore.com>
14502
14503         * tree.h (TYPE_NONALIASED_COMPONENT): Expand comment.
14504         (DECL_NONADDRESSABLE_P): Likewise.
14505         * alias.c (record_component_aliases): Fix comment.
14506
14507 2008-05-01  Simon Baldwin <simonb@google.com>
14508
14509         * c-common.h (warn_array_subscript_range): New function.
14510         * c-common.c (warn_array_subscript_range): Ditto.
14511         * tree-vrp.c (check_array_ref): Corrected code to agree with
14512         comment, ignoring only arrays of size 0 or size 1.
14513         * c-typeck.c (build_array_ref): Call warn_array_subscript_range.
14514
14515 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
14516
14517         * config/i386/i386.c (ix86_builtin_type): Replace
14518         DI_FTYPE_DI_DI_INT with V1DI2DI_FTYPE_V1DI_V1DI_INT.
14519         (bdesc_args): Updated.
14520         (ix86_init_mmx_sse_builtins): Likewise.
14521         (ix86_expand_args_builtin): Likewise.
14522
14523         * config/i386/tmmintrin.h (_mm_alignr_pi8): Replace long long
14524         with __v1di.
14525
14526         * doc/extend.texi: Correct __builtin_ia32_palignr.
14527
14528 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
14529
14530         PR target/36095
14531         * config/i386/i386.c (bdesc_crc32): Removed.
14532         (ix86_expand_crc32): Likewise.
14533         (ix86_builtin_type): Replace V2DI2TI_FTYPE_V2DI2TI_INT with
14534         V2DI2TI_FTYPE_V2DI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT with
14535         V2DI2TI_FTYPE_V2DI_V2DI_INT.  Add UINT64_FTYPE_UINT64_UINT64,
14536         UINT_FTYPE_UINT_UINT, UINT_FTYPE_UINT_USHORT and
14537         UINT_FTYPE_UINT_UCHAR.
14538         (bdesc_args): Updated. Add crc32 builtins.
14539         (ix86_init_mmx_sse_builtins): Updated.
14540         (ix86_expand_args_builtin): Updated to support subreg.
14541
14542         * doc/extend.texi: Correct __builtin_ia32_crc32di.
14543
14544 2008-05-01  Jan Hubicka  <jh@suse.cz>
14545
14546         * tree-pass.h (opt_pass): Add IPA_PASS.
14547         (varpool_node, cgraph_node): Forward declare.
14548         (ipa_opt_pass): Define.
14549         (pass_ipa_inline): Turn into ipa_opt_pass.
14550         (pass_apply_inline): Remove.
14551         * ipa-inline.c (pass_ipa_inline): Turn into ipa_opt_pass.
14552         (apply_inline): Turn into ....
14553         (inline_transform): ... this one.
14554         (inline_generate_summary): New function.
14555         (pass_apply_inline): Remove.
14556         * function.h (ipa_opt_pass): Forward declare structure; typedef;
14557         vector.
14558         (struct function): Add ipa_transforms_to_apply.
14559         * passes.c (register_one_dump_file): Work on IPA_PASS.
14560         (init_optimization_passes): Remove pass_inline_parameters and
14561         pass_apply_inline.
14562         (pass_init_dump_file, pass_fini_dump_file): Break out from ....
14563         (execute_one_pass) ... here; apply transforms when possible.
14564         (add_ipa_transform_pass, execute_ipa_summary_asses,
14565         execute_one_ipa_transform_pass): New.
14566         (execute_ipa_pass_list): Update for IPA_PASS type.
14567
14568 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
14569
14570         * config/i386/i386.c (ix86_builtin_type): Add
14571         V2DI_FTYPE_V2DI_V16QI, V2DI_FTYPE_V2DI_UINT_UINT and
14572         V2DI_FTYPE_V2DI_V2DI_UINT_UINT.
14573         (bdesc_args): Add SSE4a builtins.
14574         (ix86_init_mmx_sse_builtins): Updated.
14575         (ix86_expand_args_builtin): Likewise.
14576         (ix86_expand_builtin): Likewise.
14577
14578 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
14579
14580         * config/i386/i386.c (ix86_builtin_type): Add
14581         V8HI_FTYPE_V8HI_V8HI_COUNT, V8HI_FTYPE_V8HI_SI_COUNT,
14582         V4SI_FTYPE_V4SI_V4SI_COUNT, V4SI_FTYPE_V4SI_SI_COUNT,
14583         V4HI_FTYPE_V4HI_V4HI_COUNT, V4HI_FTYPE_V4HI_SI_COUNT,
14584         V2DI_FTYPE_V2DI_V2DI_COUNT, V2DI_FTYPE_V2DI_SI_COUNT,
14585         V2SI_FTYPE_V2SI_V2SI_COUNT, V2SI_FTYPE_V2SI_SI_COUNT,
14586         V1DI_FTYPE_V1DI_V1DI_COUNT, V1DI_FTYPE_V1DI_SI_COUNT,
14587         V8HI_FTYPE_V8HI_INT, V4SI_FTYPE_V4SI_INT, V4HI_FTYPE_V4HI_INT,
14588         V2DI2TI_FTYPE_V2DI2TI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT
14589         and DI_FTYPE_DI_DI_INT.
14590         (bdesc_args): Add MMX/SSE shift, shuffle and palignr builtins.
14591         (ix86_init_mmx_sse_builtins): Updated.
14592         (ix86_expand_args_builtin): Likewise.
14593         (ix86_expand_builtin): Likewise.
14594         (ix86_expand_binop_imm_builtin): Removed.
14595
14596         * doc/extend.texi: Correct __builtin_ia32_palignr128.
14597
14598 2008-04-30  Richard Guenther  <rguenther@suse.de>
14599
14600         PR tree-optimization/32921
14601         * tree-ssa-loop-im.c (mem_refs_may_alias_p): Disambiguate with TBAA.
14602
14603 2008-04-30  Richard Sandiford  <rsandifo@nildram.co.uk>
14604
14605         * config/arm/arm.c (arm_unwind_emit): Use
14606         crtl->all_throwers_are_sibcalls instead of
14607         cfun->all_throwers_are_sibcalls.
14608         (arm_output_fn_unwind): Likewise.
14609         * config/frv/frv.c (frv_stack_info): Use crtl->uses_pic_offset_table
14610         instead of cfun->uses_pic_offset_table.
14611         (frv_expand_prologue): Likewise.
14612         (frv_frame_pointer_required): Likewise.
14613         (frv_expand_fdpic_call): Likewise.
14614         (frv_emit_movsi): Likewise.
14615         * config/iq2000/iq2000.c (iq2000_expand_prologue): Use
14616         cfun->returns_pcc_struct instead of
14617         current_function_returns_pcc_struct.
14618         * config/m32c/m32c.c (need_to_save): Use crtl->calls_eh_return
14619         instead of cfun->calls_eh_return.
14620         (m32c_pushm_popm): Likewise.
14621         * config/xtensa/xtensa.h (cfun->calls_alloca): Remove bogus
14622         "extern" declaration.
14623
14624 2008-04-30  Richard Guenther  <rguenther@suse.de>
14625
14626         PR tree-optimization/21636
14627         * tree-ssa-ccp.c (ccp_fold): Handle &p->x with p being a
14628         constant address.
14629         (evaluate_stmt): Print the likely value.
14630         (ccp_visit_stmt): Avoid excessive vertical spacing.
14631
14632 2008-04-30  Rafael Espíndola  <espindola@google.com>
14633
14634         * builtins.c (fold_call_expr): Return realret.
14635         * tree-ssa-threadedge.c
14636         (record_temporary_equivalences_from_stmts_at_dest): Ignore calls to
14637         __builtin_object_size.
14638
14639 2008-04-30  Seongbae Park  <seongbae.park@gmail.com>
14640
14641         * gcc.c (wrapper_string): New variable.
14642         (insert_wrapper): New function.
14643         (execute): New option -wrapper.
14644         * doc/invoke.texi (Overall Options): New driver option -wrapper.
14645
14646 2008-04-30  Nathan Froyd  <froydnj@codesourcery.com>
14647
14648         * config/rs6000/crtresgpr.asm, config/rs6000/crtresxgpr.asm,
14649         config/rs6000/crtsavgpr.asm, config/rs6000/crtresfpr.asm,
14650         config/rs6000/crtresxfpr.asm, config/rs6000/crtsavfpr.asm: Break out
14651         from...
14652         * config/rs6000/crtsavres.asm: ...here.  Remove unneeded file.
14653         * config/rs6000/e500crtres32gpr.asm, config/rs6000/e500crtres64gpr.asm,
14654         config/rs6000/e500crtres64gprctr.asm,
14655         config/rs6000/e500crtrest32gpr.asm, config/rs6000/e500crtrest64gpr.asm,
14656         config/rs6000/e500crtresx32gpr.asm, config/rs6000/e500crtresx64gpr.asm,
14657         config/rs6000/e500crtsav32gpr.asm, config/rs6000/e500crtsav64gpr.asm,
14658         config/rs6000/e500crtsav64gprctr.asm,
14659         config/rs6000/e500crtsavg32gpr.asm, config/rs6000/e500crtsavg64gpr.asm,
14660         config/rs6000/e500crtsavg64gprctr.asm: New files.
14661         * config/rs6000/t-ppccomm: Add build rules for new files.
14662         (LIB2FUNCS_STATIC_EXTRA): Add new files.
14663         * config/rs6000/t-netbsd: Add build rules for new files.
14664         (LIB2FUNCS_STATIC_EXTRA): New variable.
14665         * config/rs6000/sysv4.h (ENDFILE_SPEC): Don't include crtsavres.o
14666         (CRTSAVRES_DEFAULT_SPEC): Likewise.
14667         * config/rs6000/netbsd.h (ENDFILE_SPEC): Likewise.
14668
14669 2008-04-30  H.J. Lu  <hongjiu.lu@intel.com>
14670
14671         * config/i386/i386.c (ix86_builtin_type): Add
14672         FLOAT128_FTYPE_FLOAT128_FLOAT128, V16QI_FTYPE_V16QI_V16QI,
14673         V16QI_FTYPE_V8HI_V8HI, V8QI_FTYPE_V8QI_V8QI,
14674         V8QI_FTYPE_V4HI_V4HI, V8HI_FTYPE_V8HI_V8HI,
14675         V8HI_FTYPE_V16QI_V16QI, V8HI_FTYPE_V4SI_V4SI,
14676         V4SI_FTYPE_V4SI_V4SI, V4SI_FTYPE_V8HI_V8HI,
14677         V4SI_FTYPE_V4SF_V4SF, V4SI_FTYPE_V2DF_V2DF,
14678         V4HI_FTYPE_V4HI_V4HI, V4HI_FTYPE_V8QI_V8QI,
14679         V4HI_FTYPE_V2SI_V2SI, V4SF_FTYPE_V4SF_V4SF,
14680         V4SF_FTYPE_V4SF_V4SF_SWAP, V4SF_FTYPE_V4SF_V2SI,
14681         V4SF_FTYPE_V4SF_V2DF, V4SF_FTYPE_V4SF_DI,
14682         V4SF_FTYPE_V4SF_SI, V2DI_FTYPE_V2DI_V2DI,
14683         V2DI_FTYPE_V16QI_V16QI, V2DI_FTYPE_V4SI_V4SI,
14684         V2DI_FTYPE_V2DF_V2DF, V2SI_FTYPE_V2SI_V2SI,
14685         V2SI_FTYPE_V4HI_V4HI, V2SI_FTYPE_V2SF_V2SF,
14686         V2DF_FTYPE_V2DF_V2DF, V2DF_FTYPE_V2DF_V2DF_SWAP,
14687         V2DF_FTYPE_V2DF_V4SF, V2DF_FTYPE_V2DF_DI,
14688         V2DF_FTYPE_V2DF_SI, V2SF_FTYPE_V2SF_V2SF,
14689         V1DI_FTYPE_V1DI_V1DI, V1DI_FTYPE_V8QI_V8QI and
14690         V1DI_FTYPE_V2SI_V2SI.
14691         (bdesc_2arg): Moved to ...
14692         (bdesc_args): Here.
14693         (ix86_init_mmx_sse_builtins): Updated.
14694         (ix86_expand_args_builtin): Updated.  Take a pointer
14695         to const struct builtin_description.  Handle comparison
14696         builtin functions.
14697         (ix86_expand_sse_compare): Take a new argument for swapping operands.
14698         (ix86_expand_builtin): Updated.
14699
14700         * config/i386/sse.md (ssse3_pmaddubswv8hi3): Renamed to ...
14701         (ssse3_pmaddubsw128): This.
14702         (ssse3_pmaddubswv4hi3): Renamed to ...
14703         (ssse3_pmaddubsw): This.
14704
14705         * doc/extend.texi (__builtin_ia32_packsswb128): Correct prototype.
14706         (__builtin_ia32_packssdw128): Likewise.
14707         (__builtin_ia32_packuswb128): Likewise.
14708         (__builtin_ia32_pmaddubsw): Likewise.
14709         (__builtin_ia32_pmaddubsw128): Likewise.
14710
14711 2008-04-30  Richard Guenther  <rguenther@suse.de>
14712
14713         PR tree-optimization/14847
14714         * tree-ssa-ifcombine.c (get_name_for_bit_test): New helper function.
14715         (recognize_bits_test): Use it.
14716         (recognize_single_bit_test): Likewise.
14717
14718 2008-04-30  Martin Jambor  <mjambor@suse.cz>
14719
14720         * ipa-cp.c (ipcp_init_stage): Calls ipa_set_called_with_variable_arg
14721         instead of setting number of formal parameters to zero.
14722         (ipcp_init_stage): Do not set the number of actual parameters to zero
14723         either.
14724         (ipcp_propagate_stage): Explicitly skipping all calls to nodes
14725         which are called with variable number of arguments.
14726         (ipcp_insert_stage): Explicitely skipping all nodes which are
14727         called with variable number of arguments.
14728         (ipcp_callsite_param_print): Skipps callsites to nodes with varaible
14729         number of parameters.
14730
14731         * ipa-prop.h (struct ipa_node_params): Added flag
14732         called_with_var_arguments
14733         (ipa_set_param_count): Added.  Changed sole setter to use it.
14734         (ipa_get_param_count): Added.  All readers of param_count
14735         converted to use it instead.
14736         (ipa_set_called_with_variable_arg): Added.
14737         (ipa_is_called_with_var_arguments): Added.
14738         (ipa_get_ith_param): Added.  All readers of param_decls converted
14739         to use it instead.
14740         (ipa_set_cs_argument_count): Added, sole writer to argument_count
14741         changed to use it.
14742         (ipa_get_cs_argument_count): Added, all readers of argument_count
14743         changed to cal it.
14744         (ipa_get_ith_jump_func): Added. Accessors of jump values changed
14745         to use it.
14746
14747         * ipa-prop.h (struct ipcp_formal): Renamed to ipcp_lattice
14748         (struct ipcp_lattice): Renamed cval_type to type
14749         (struct ipa_node_params): ipcp_cval renamed to ipcp_lattices
14750
14751         * ipa-cp.c (ipcp_cval_get_cvalue): Changed return value to tree
14752         (ipcp_cval_set_cvalue): Changed type of parameter value to tree
14753         (ipcp_insert_stage): Changed the type of variable cvalue to tree
14754         (ipcp_replace_map_create): Changed the type of parameter cvalue to tree
14755         (build_const_val): Changed the type of parameter cvalue to tree
14756         (ipcp_propagate_const): Changed the type of parameter cvalue to tree
14757         (ipcp_method_cval_set_cvalue_type): Renamed parameter cval_type1 to type
14758
14759         * ipa-prop.h (struct ipcp_formal): Replaced cvalue with tree called
14760         constant
14761
14762         * ipa-prop.c (ipa_methodlist_init): Renamed to ipa_init_func_list
14763         (ipa_methodlist_not_empty): Removed, the sole user now checks directly
14764         (ipa_add_method): Renamed to ipa_push_func_to_list
14765         (ipa_remove_method): Renamed to ipa_pop_func_from_list
14766         (ipa_callsite_param_count): Removed.
14767         (ipa_callsite_param_count_set): Removed.
14768         (ipa_callsite_param): Removed.
14769         (ipa_callsite_callee): Removed.
14770         (ipa_callsite_compute_param): Renamed to ipa_compute_jump_functions
14771         (ipa_callsite_compute_count): Renamed to ipa_count_arguments
14772         (ipa_method_formal_count): Removed.
14773         (ipa_method_formal_count_set): Removed.
14774         (ipa_method_get_tree): Removed.
14775         (ipa_method_tree_map_create): Removed.
14776         (ipa_method_compute_tree_map): Renamed to ipa_create_param_decls_array
14777         (ipa_create_param_decls_array): Creates the array itself
14778         (ipa_create_param_decls_array): Temporary variable info instead of
14779         a few dereferences.
14780         (ipa_method_formal_compute_count): Renamed to ipa_count_formal_params
14781         (ipa_method_compute_modify): Renamed to ipa_detect_param_modifications
14782         (get_type): Removed.
14783         (ipa_jf_get_info_type): Removed.
14784         (ipa_node_create): Renamed to ipa_create_node_params
14785         (ipa_free): Renamed to ipa_free_all_node_params
14786         (ipa_nodes_create): Renamed to ipa_create_all_node_params
14787         (ipa_edges_create): Renamed to ipa_create_all_edge_args
14788         (ipa_edges_free): Renamed to ipa_free_all_edge_args
14789         (ipa_nodes_free): Integrated into ipa_free_all_node_params and removed
14790         (ipa_free_all_node_params): Deallocation to jump_functions moved to
14791         ipa_free_all_edge_args
14792         (ipa_method_tree_print): Renamed to ipa_print_all_tree_maps
14793         (ipa_method_modify_print): Renamed to ipa_print_all_params_modified
14794         (ipa_create_methodlist_node): Removed.
14795         (ipa_methodlist_method): Removed.
14796         (ipa_methodlist_method_set): Removed.
14797         (ipa_methodlist_next_method): Removed.
14798         (ipa_methodlist_next_method_set): Removed.
14799         (ipa_method_is_modified): Removed.
14800         (ipa_method_modify_create): Removed.
14801         (ipa_method_modify_init): Temporary variable info instead of a few
14802         dereferences.
14803         (ipa_detect_param_modifications): Temporary variable info instead of
14804         a few dereferences.
14805         (ipa_compute_jump_functions): Temporary variable info instead of
14806         a few dereferences.
14807         (ipa_method_modify_set): Removed.
14808         (ipa_method_tree_map): Renamed to ipa_get_param_decl_index
14809         (ipa_get_param_decl_index): Now accepts struct ipa_node_params rather
14810         than craph_node as the first parameter.
14811         (ipa_method_modify_stmt): Renamed to ipa_check_stmt_modifications
14812         (ipa_method_modify_init): Removed.
14813         (ipa_compute_jump_functions): Added a temp variable instead of
14814         repeatadly dereferencing the cgraph_edge.aux pointer
14815         (ipa_callsite_param_set_type): Removed.
14816         (ipa_compute_jump_functions): i renamed to index and moved to
14817         an inner block
14818         (ipa_callsite_param_set_info_type_formal): Removed.
14819         (ipa_callsite_param_set_info_type): Removed.
14820         (ipa_callsite_param_map_create): Removed.
14821         (ipa_callsite_tree): Removed.
14822         (ipa_callsite_caller): Removed.
14823         (ipa_pop_func_from_list): return_method removed to return_func
14824
14825         * ipa-prop.h (enum cvalue_type): Renamed to ipa_lattice_type,
14826         prefixed all values with IPA_. Changed all users.
14827         (enum jump_func_type): Rnamed UNKNOWN_IPATYPE to IPA_UNKNOWN,
14828         CONST_IPATYPE to IPA_CONST, CONST_IPATYPE_REF to IPA_CONST_REF
14829         and FORMAL_IPATYPE IPA_PASS_THROUGH.
14830         (union parameter_info): Renamed to jump_func_value.
14831         (union jump_func_value): Renamed value to constant
14832         (struct ipa_jump_func): Renamed info_type to value
14833         (struct ipa_node): Renamed to ipa_node_params
14834         (struct ipa_node_params): Renamed ipa_arg_num to param_count
14835         (struct ipa_node_params): Renamed ipa_param_tree to param_decls
14836         (struct ipa_node_params): Renamed ipa_mod to modified_flags
14837         (struct ipa_edge): Renamed to ipa_edge_args
14838         (struct ipa_edge_args): Renamed ipa_param_num to argument_count
14839         (struct ipa_edge_args): Renamed ipa_param_map to jump_functions
14840         (struct ipa_methodlist): Renamed to ipa_func_list
14841         (struct ipa_func_list): method_p renamed to node, next_method
14842         renamed to next
14843         (ipa_methodlist_p): Removed, switched all users to struct pointer
14844         (IS_VALID_TREE_MAP_INDEX): Renamed to IS_VALID_JUMP_FUNC_INDEX
14845
14846 2008-04-30  Alan Modra  <amodra@bigpond.net.au>
14847
14848         * config/rs6000/rs6000.c (ALWAYS_RESTORE_ALTIVEC_BEFORE_POP): Define.
14849         (rs6000_emit_epilogue): Use backchain to restore only when we
14850         have a large frame.  Make use of frame pointer to restore if we
14851         have one.  Handle ALWAYS_RESTORE_ALTIVEC_BEFORE_POP.
14852
14853 2008-04-29  Paolo Bonzini  <bonzini@gnu.org>
14854
14855         * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
14856         Add mode to zero_extract.
14857         (sign bit tests peepholes): (Ditto.).
14858
14859 2008-04-29  H.J. Lu  <hongjiu.lu@intel.com>
14860
14861         * config/i386/i386.c (ix86_builtins): Replace Prescott New
14862         Instructions in comments with SSE3.
14863         (ix86_builtin_type): This.  Add FLOAT128_FTYPE_FLOAT128,
14864         INT64_FTYPE_V4SF, INT64_FTYPE_V2DF, INT_FTYPE_V16QI,
14865         INT_FTYPE_V8QI, INT_FTYPE_V4SF, INT_FTYPE_V2DF,
14866         V16QI_FTYPE_V16QI, V8HI_FTYPE_V8HI, V8HI_FTYPE_V16QI,
14867         V8QI_FTYPE_V8QI, V4SI_FTYPE_V4SI, V4SI_FTYPE_V16QI,
14868         V4SI_FTYPE_V4SF, V4SI_FTYPE_V8HI, V4SI_FTYPE_V2DF,
14869         V4HI_FTYPE_V4HI, V4SF_FTYPE_V4SF, V4SF_FTYPE_V4SI,
14870         V4SF_FTYPE_V2DF, V2DI_FTYPE_V2DI, V2DI_FTYPE_V16QI,
14871         V2DI_FTYPE_V8HI, V2DI_FTYPE_V4SI, V2DF_FTYPE_V2DF,
14872         V2DF_FTYPE_V4SI, V2DF_FTYPE_V4SF, V2DF_FTYPE_V2SI,
14873         V2SI_FTYPE_V2SI, V2SI_FTYPE_V4SF, V2SI_FTYPE_V2SF,
14874         V2SI_FTYPE_V2DF, V2SF_FTYPE_V2SF and V2SF_FTYPE_V2SI.
14875         (bdesc_sse_args): Renamed to ...
14876         (bdesc_args): This.  Add IX86_BUILTIN_PF2ID, IX86_BUILTIN_PFRCP,
14877         IX86_BUILTIN_PFRSQRT, IX86_BUILTIN_PI2FD, IX86_BUILTIN_PF2IW,
14878         IX86_BUILTIN_PSWAPDSI, IX86_BUILTIN_PSWAPDSF and
14879         IX86_BUILTIN_FABSQ.
14880         (bdesc_1arg): Moved to ...
14881         (bdesc_args): Here.
14882         (ix86_init_mmx_sse_builtins): Updated.  Replace Prescott New
14883         Instructions in comments with SSE3.
14884         (ix86_expand_sse_operands_builtin): Renamed to ...
14885         (ix86_expand_args_builtin): This.  Updated.
14886         (ix86_expand_unop1_builtin): Update comments.
14887         (ix86_expand_builtin): Updated.
14888
14889 2008-04-29  Richard Guenther  <rguenther@suse.de>
14890
14891         PR tree-optimization/36078
14892         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
14893         Update virtual SSA form after cleaning up the CFG.
14894
14895 2008-04-29  Richard Guenther  <rguenther@suse.de>
14896
14897         PR middle-end/15255
14898         * fold-const.c (fold_binary): Fold (A + A) * C to A * 2*C.
14899
14900 2008-04-29  Richard Guenther  <rguenther@suse.de>
14901
14902         * tree-ssa-alias.c (finalize_ref_all_pointers): Remove.
14903         (compute_may_aliases): Do not call finalize_ref_all_pointers.
14904         (compute_flow_insensitive_aliasing): Do not treat
14905         PTR_IS_REF_ALL pointers special.
14906         (get_smt_for): Likewise.
14907         (may_alias_p): Re-structure.
14908         (is_escape_site): A ref-all pointer conversion is not an escape site.
14909         * tree-ssa-structalias.c (find_what_p_points_to): Do not treat
14910         PTR_IS_REF_ALL pointers special.
14911         * tree-ssa-structalias.h (struct alias_info): Remove
14912         ref_all_symbol_mem_tag field.
14913         (PTR_IS_REF_ALL): Remove.
14914
14915 2008-04-29  Richard Guenther  <rguenther@suse.de>
14916
14917         PR middle-end/36077
14918         * fold-const.c (extract_muldiv_1): In combining division constants
14919         make sure to never overflow.
14920
14921 2008-04-29  Nick Clifton  <nickc@redhat.com>
14922
14923         * doc/tm.texi (RETURN_ADDR_RTX): Fix typo.
14924
14925 2008-04-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14926
14927         PR bootstrap/35169
14928         * optc-gen.awk: Work around HP-UX/IA awk bug.
14929
14930 2008-04-28  Danny Smith  <dannysmith@users.sourceforge.net>
14931
14932         * config/i386/cygming-crtend.c (register_frame_ctor): Revert my
14933         2008-04-25 commit.
14934
14935 2008-04-28  Uros Bizjak  <ubizjak@gmail.com>
14936
14937         PR target/36073
14938         * config/i386/i386.md
14939         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit):
14940         Change operand 1 predicate to nonimmediate_operand.
14941
14942 2008-04-28  Jakub Jelinek  <jakub@redhat.com>
14943
14944         PR debug/36060
14945         * dwarf2out.c (struct die_struct): Mark as chain_circular through
14946         die_sub field.
14947         * gengtype.c (walk_type, write_func_for_structure): Handle
14948         chain_circular.
14949         * doc/gty.texi: Document chain_circular.
14950
14951 2008-04-28  Richard Guenther  <rguenther@suse.de>
14952
14953         PR tree-optimization/36066
14954         * tree-vrp.c (execute_vrp): Cleanup the CFG only after finalizing
14955         SCEV and loop.
14956
14957 2008-04-28  Uros Bizjak  <ubizjak@gmail.com>
14958
14959         PR target/36064
14960         * config/i386/i386.md
14961         (floatdi<X87MODEF:mode>2_i387_with_xmm splitters):
14962         Use match_scratch instead of match_operand for operands 3 and 4.
14963
14964 2008-04-27  Richard Guenther  <rguenther@suse.de>
14965
14966         PR tree-optimization/18754
14967         PR tree-optimization/34223
14968         * tree-pass.h (pass_complete_unrolli): Declare.
14969         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Print
14970         loop size before and after unconditionally of UL_NO_GROWTH in effect.
14971         Rewrite loop into loop closed SSA form if it is not already.
14972         (tree_unroll_loops_completely): Re-structure to iterate over
14973         innermost loops with intermediate CFG cleanups.
14974         Unroll outermost loops only if requested or the code does not grow
14975         doing so.
14976         * tree-ssa-loop.c (gate_tree_vectorize): Don't shortcut if no
14977         loops are available.
14978         (tree_vectorize): Instead do so here.
14979         (tree_complete_unroll): Also unroll outermost loops.
14980         (tree_complete_unroll_inner): New function.
14981         (gate_tree_complete_unroll_inner): Likewise.
14982         (pass_complete_unrolli): New pass.
14983         * tree-ssa-loop-manip.c (find_uses_to_rename_use): Only record
14984         uses outside of the loop.
14985         (tree_duplicate_loop_to_header_edge): Only verify loop-closed SSA
14986         form if it is available.
14987         * tree-flow.h (tree_unroll_loops_completely): Add extra parameter.
14988         * passes.c (init_optimization_passes): Schedule complete inner
14989         loop unrolling pass before the first CCP pass after final inlining.
14990
14991 2008-04-27  Nathan Sidwell  <nathan@codesourcery.com>
14992
14993         * targhooks.h (default_emutls_var_fields,
14994         default_emutls_var_init): Declare.
14995         * tree.h (DECL_THREAD_LOCAL): Compare against TLS_MODEL_REAL.
14996         * target.h (struct gcc_target): Add struct emutls member.
14997         * target-def.h (TARGET_EMUTLS_GET_ADDRESS,
14998         TARGET_EMUTLS_REGISTER_COMMON, TARGET_EMUTLS_VAR_SECTION,
14999         TARGET_EMUTLS_TMPL_SECTION, TARGET_EMUTLS_VAR_PREFIX,
15000         TARGET_EMUTLS_TMPL_PREFIX, TARGET_EMUTLS_VAR_FIELDS,
15001         TARGET_EMUTLS_VAR_INIT, TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS,
15002         TARGET_EMUTLS_VAR_ALIGN_FIXED, TARGET_EMUTLS): New.
15003         (TARGET_INITIALIZER): Add TARGET_EMUTLS.
15004         * builtins.def (BUILT_IN_EMUTLS_GET_ADDRESS,
15005         BUILT_IN_EMUTLS_REGISTER_COMMON): Get name from targetm structure.
15006         * dwarf2out.c (loc_descriptor_from_tree_1): Check if emutls can
15007         emit debug information.
15008         * coretypes.h (tls_model): Add TLS_MODEL_EMULATED, TLS_MODEL_REAL.
15009         * varasm.c: Include targhooks.h.
15010         (emutls_object_section, emutls_tmpl_section): New.
15011         (EMUTLS_VAR_PREFIX, EMUTLS_TMPL_PREFIX): Remove.
15012         (EMUTLS_SEPARATOR): New.
15013         (prefix_name): New.
15014         (get_emutls_object_name): New.
15015         (default_emutls_var_fields): New, broken out of ...
15016         (get_emutls_object_type): ... here.  Adjust to use target hooks.
15017         (get_emutls_init_templ_addr): Adjust to use target hooks.
15018         (emutls_decl): Adjust to use target hooks.
15019         (emutls_finish): Likewise.
15020         (default_emutls_var_init): New, broken out of ...
15021         (assemble_variable): ... here.  Adjust to use target hooks.
15022         * output.h (enum section_category): Add SECCAT_EMUTLS_VAR,
15023         SECCAT_EMUTLS_TMPL.
15024         * c-common.c (handle_section_attribute): Prevent overriding
15025         sections for emulated tls with special sections.
15026         * config/i386/i386.c (x86_64_elf_select_section): Add
15027         SECCAT_EMUTLS_VAR and SECCAT_EMUTLS_TMPL.
15028         (x86_64_elf_unique_section): Likewise.
15029         * config/vxworks.c: Include tree.h.
15030         (vxworks_emutls_var_fields, vxworks_emutls_var_init): New.
15031         (vxworks_override_options): Set TLS scheme.
15032         * doc/tm.texi (Emulated TLS): New node.
15033
15034 2008-04-26  Simon Baldwin <simonb@google.com>
15035
15036         PR c/35652
15037         * builtins.c (c_strlen): Suppressed multiple warnings that can occur
15038         with propagated string constants.
15039
15040 2008-04-26  Uros Bizjak  <ubizjak@gmail.com>
15041
15042         * config/i386/i386.md (fix_trunc<mode>_i387_fisttp_with_temp): Use 'X'
15043         constraint for operand 2 when operand 0 is memory operand.
15044         (fix_truncdi_i387_with_temp): : Use 'X' constraint for operand 4 when
15045         operand 0 is memory operand.
15046         (fix_trunc<mode>_i387_with_temp): Ditto.
15047         (*floatsi<mode>2_vector_mixed_with_temp): Use 'X' constraint for
15048         operand 2 when operand 1 is memory operand.
15049         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_with_temp): Ditto.
15050         (*floatsi<mode>2_vector_sse_with_temp): Ditto.
15051         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_with_temp): Ditto.
15052         (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp): Ditto.
15053         (floatdi<X87MODEF:mode>2_i387_with_xmm): Use 'X' constraint for
15054         operands 2,3 and 4 when operand 1 is memory operand.
15055         (fistdi2_with_temp): Use 'X' constraint for operand 2 when operand 0
15056         is memory operand.
15057         (fistdi2_floor_with_temp): Ditto.
15058         (fist<mode>2_floor_with_temp): Ditto.
15059         (fistdi2_ceil_with_temp): Ditto.
15060         (fist<mode>2_ceil_with_temp): Ditto.
15061         (*truncdfsf_fast_mixed): Merge alternatives 0 and 1.
15062
15063 2008-04-26  David Daney  <ddaney@avtrex.com>
15064
15065         * config/mips/mips.md (UNSPEC_COMPARE_AND_SWAP_12): New
15066         unspec_volitile.
15067         (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_EXCHANGE,
15068         UNSPEC_MEMORY_BARRIER, UNSPEC_SET_GOT_VERSION,
15069         UNSPEC_UPDATE_GOT_VERSION): Renumber.
15070         (sync_compare_and_swap<mode>): New expand for QI and HI modes.
15071         (compare_and_swap_12): New insn.
15072         * config/mips/mips-protos.h (mips_expand_compare_and_swap_12): Declare.
15073         * config/mips/mips.c (mips_force_binary): New function.
15074         (mips_emit_int_order_test, mips_expand_synci_loop): Use it.
15075         (mips_expand_compare_and_swap_12): New function.
15076         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP_12): New macro.
15077
15078 2008-04-25  Jan Hubicka  <jh@suse.cz>
15079
15080         PR testsuite/35843
15081         * cfgexpand.c (pass_expand): Turn into RTL pass.
15082         * passes.c (execute_one_pass): Do pass typechecking after execution.
15083         * tree-pass.h (pass_expand): Turn into RTL pass.
15084
15085         * function.h (struct rtl_data): Move here fields
15086         accesses_prior_frames, calls_eh_return, saves_all_registers,
15087         has_nonlocal_goto, has_asm_statement, is_thunk,
15088         all_throwers_are_sibcalls, limit_stack, profile, uses_const_pool,
15089         uses_pic_offset_table, uses_eh_lsda, tail_call_emit,
15090         arg_pointer_save_area_init from struct function; turn into bool.
15091         (struct function): Move
15092         calls_eh_return, saves_all_registers, has_nonlocal_goto,
15093         has_asm_statement, is_thunk, all_throwers_are_sibcalls, limit_stack,
15094         profile, uses_const_pool, uses_pic_offset_table, uses_eh_lsda,
15095         tail_call_emit, arg_pointer_save_area_init
15096         into struct rtl_data.  Remove recursive_call_emit and gimplified flags.
15097         (current_function_returns_struct, current_function_returns_pcc_struct,
15098         current_function_calls_setjmp, current_function_calls_alloca,
15099         current_function_accesses_prior_frames,
15100         current_function_calls_eh_return, current_function_is_thunk,
15101         current_function_stdarg, current_function_profile,
15102         current_function_limit_stack, current_function_uses_pic_offset_table,
15103         current_function_uses_const_pool, current_function_has_nonlocal_label,
15104         current_function_saves_all_registers,
15105         current_function_has_nonlocal_goto,
15106         current_function_has_asm_statement): Remove accesor macros.
15107         * ra-conflict.c (global_conflicts): Update.
15108         * tree-tailcall.c (suitable_for_tail_opt_p): Update.
15109         (suitable_for_tail_call_opt_p): Update.
15110         * builtins.c (expand_builtin_return_addr): Update.
15111         (expand_builtin_setjmp_setup): Update.
15112         (expand_builtin_nonlocal_goto): Update.
15113         * final.c (final_start_function): Update.
15114         (profile_function): Update.
15115         (leaf_function_p): Update.
15116         (only_leaf_regs_used): Update.
15117         * df-scan.c (df_get_exit_block_use_set): Update.
15118         * dojump.c (clear_pending_stack_adjust): Update.
15119         * tree-stdarg.c (gate_optimize_stdarg): Update.
15120         * gimple-low.c (lower_function_body): Update.
15121         * global.c (compute_regsets): Update.
15122         (global_alloc): Update.
15123         * dwarf2out.c (dwarf2out_begin_prologue): Update.
15124         * expr.c (expand_assignment): Update.
15125         * dse.c (dse_step0): Update.
15126         (dse_step1): Update.
15127         * c-decl.c (store_parm_decls): Update.
15128         * local-alloc.c (combine_regs): Update.
15129         (find_free_reg): Update.
15130         * function.c (assign_parms_augmented_arg_list): Update.
15131         (assign_parm_find_data_types): Update.
15132         (assign_parms): Update.
15133         (allocate_struct_function): Update.
15134         (expand_function_start): Update.
15135         (expand_function_end): Update.
15136         (get_arg_pointer_save_area): Update.
15137         (thread_prologue_and_epilogue_insns): Update.
15138         (rest_of_match_asm_constraints): Update.
15139         * stor-layout.c (variable_size): Update.
15140         * gcse.c (gcse_main): Update.
15141         (bypass_jumps): Update.
15142         * gimplify.c (gimplify_function_tree): Update.
15143         * calls.c (emit_call_1): Update.
15144         (expand_call): Update.
15145         * bt-load.c (compute_defs_uses_and_gen): Update.
15146         * except.c (sjlj_assign_call_site_values): Update.
15147         (sjlj_emit_function_enter): Update.
15148         (can_throw_external): Update.
15149         (set_nothrow_function_flags): Update.
15150         (expand_builtin_unwind_init): Update.
15151         (expand_eh_return): Update.
15152         (convert_to_eh_region_ranges): Update.
15153         (output_function_exception_table): Update.
15154         * emit-rtl.c (gen_tmp_stack_mem): Update.
15155         * cfgexpand.c (expand_used_vars): Update.
15156         (tree_expand_cfg): Update.
15157         * cfgcleanup.c (rest_of_handle_jump): Update.
15158         * explow.c (allocate_dynamic_stack_space): Update.
15159         * varasm.c (assemble_start_function): Update.
15160         (force_const_mem): Update.
15161         (mark_constant_pool): Update.
15162         * tree-optimize.c (tree_rest_of_compilation): Update.
15163         * stack-ptr-mod.c (notice_stack_pointer_modification): Update.
15164         * tree-cfg.c (notice_special_calls): Update.
15165         (is_ctrl_altering_stmt): Update.
15166         (tree_can_make_abnormal_goto): Update.
15167         (tree_purge_dead_abnormal_call_edges): Update.
15168         * config/alpha/predicates.md: Update.
15169         * config/alpha/alpha.c (alpha_sa_mask): Update.
15170         (alpha_sa_size): Update.
15171         (alpha_does_function_need_gp): Update.
15172         (alpha_expand_prologue): Update.
15173         (alpha_start_function): Update.
15174         (alpha_output_function_end_prologue): Update.
15175         (alpha_expand_epilogue): Update.
15176         * config/frv/frv.c (frv_stack_info): Update.
15177         (frv_expand_epilogue): Update.
15178         * config/s390/s390.c (s390_regs_ever_clobbered): Update.
15179         (s390_register_info): Update.
15180         (s390_frame_info): Update.
15181         (s390_init_frame_layout): Update.
15182         (s390_can_eliminate): Update.
15183         (save_gprs): Update.
15184         * config/spu/spu.c (spu_split_immediate): Update.
15185         (need_to_save_reg): Update.
15186         (spu_expand_prologue): Update.
15187         (spu_expand_epilogue): Update.
15188         * config/sparc/sparc.md: Update.
15189         * config/sparc/sparc.c (eligible_for_return_delay): Update.
15190         (sparc_tls_got): Update.
15191         (legitimize_pic_address): Update.
15192         (sparc_emit_call_insn): Update.
15193         (sparc_expand_prologue): Update.
15194         (output_return): Update.
15195         (print_operand): Update.
15196         (sparc_function_ok_for_sibcall): Update.
15197         * config/sparc/sparc.h (EXIT_IGNORE_STACK): Update.
15198         * config/m32r/m32r.md: Update.
15199         * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Update.
15200         (m32r_compute_frame_size): Update.
15201         (m32r_expand_prologue): Update.
15202         (m32r_expand_epilogue): Update.
15203         (m32r_legitimize_pic_address): Update.
15204         * config/m32r/m32r.h (FRAME_POINTER_REQUIRED): Update.
15205         * config/i386/linux.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
15206         * config/i386/i386.c (ix86_frame_pointer_required): Update.
15207         (gen_push): Update.
15208         (ix86_save_reg): Update.
15209         (ix86_compute_frame_layout): Update.
15210         (ix86_expand_prologue): Update.
15211         (ix86_expand_epilogue): Update.
15212         * config/sh/sh.c (output_stack_adjust): Update.
15213         (calc_live_regs): Update.
15214         (sh5_schedule_saves): Update.
15215         (sh_expand_prologue): Update.
15216         (sh_expand_epilogue): Update.
15217         (sh_setup_incoming_varargs): Update.
15218         (sh_allocate_initial_value): Update.
15219         (sh_get_pr_initial_val): Update.
15220         * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): Update.
15221         * config/sh/sh.md (label:): Update.
15222         * config/avr/avr.c (out_movhi_mr_r): Update.
15223         * config/crx/crx.h (enum): Update.
15224         * config/xtensa/xtensa.h (along): Update.
15225         * config/stormy16/stormy16.c Update.
15226         (xstormy16_compute_stack_layout): Update.
15227         * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Update.
15228         (fr30_expand_prologue): Update.
15229         * config/cris/cris.c (cris_conditional_register_usage): Update.
15230         (cris_reg_saved_in_regsave_area): Update.
15231         (cris_initial_frame_pointer_offset): Update.
15232         (cris_simple_epilogue): Update.
15233         (cris_expand_prologue): Update.
15234         (cris_expand_epilogue): Update.
15235         (cris_expand_pic_call_address): Update.
15236         (cris_asm_output_symbol_ref): Update.
15237         (cris_asm_output_label_ref): Update.
15238         * config/cris/cris.md Update.
15239         * config/iq2000/iq2000.c (compute_frame_size): Update.
15240         (iq2000_expand_epilogue): Update.
15241         * config/mt/mt.h (save_direction): Update.
15242         * config/mn10300/mn10300.c (mn10300_function_value): Update.
15243         * config/ia64/ia64.c (ia64_compute_frame_size): Update.
15244         (ia64_secondary_reload_class): Update.
15245         * config/m68k/m68k.c (m68k_save_reg): Update.
15246         (m68k_expand_prologue): Update.
15247         (m68k_expand_epilogue): Update.
15248         (legitimize_pic_address): Update.
15249         * config/rs6000/rs6000.c (rs6000_got_register): Update.
15250         (first_reg_to_save): Update.
15251         (first_altivec_reg_to_save): Update.
15252         (compute_vrsave_mask): Update.
15253         (compute_save_world_info): Update.
15254         (rs6000_stack_info): Update.
15255         (spe_func_has_64bit_regs_p): Update.
15256         (rs6000_ra_ever_killed): Update.
15257         (rs6000_emit_eh_reg_restore): Update.
15258         (rs6000_emit_allocate_stack): Update.
15259         (rs6000_emit_prologue): Update.
15260         (rs6000_emit_epilogue): Update.
15261         (rs6000_output_function_epilogue): Update.
15262         (output_profile_hook): Update.
15263         (rs6000_elf_declare_function_name): Update.
15264         * config/rs6000/rs6000.h (rs6000_args): Update.
15265         * config/rs6000/rs6000.md: Update.
15266         * config/mcore/mcore.c (mcore_expand_prolog): Update.
15267         * config/arc/arc.c (arc_output_function_epilogue): Update.
15268         * config/arc/arc.h (FRAME_POINTER_REQUIRED): Update.
15269         * config/darwin.c (machopic_function_base_name): Update.
15270         * config/score/score3.c (score3_compute_frame_size): Update.
15271         (rpush): Update.
15272         (rpop): Update.
15273         (score3_epilogue): Update.
15274         * config/score/score7.c (score7_compute_frame_size): Update.
15275         (score7_prologue): Update.
15276         (score7_epilogue): Update.
15277         * config/score/score.h (FRAME_POINTER_REQUIRED): Update.
15278         * config/arm/linux-elf.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
15279         * config/arm/arm.c (use_return_insn): Update.
15280         (require_pic_register): Update.
15281         (arm_load_pic_register): Update.
15282         (arm_compute_save_reg0_reg12_mask): Update.
15283         (arm_compute_save_reg_mask): Update.
15284         (thumb1_compute_save_reg_mask): Update.
15285         (output_return_instruction): Update.
15286         (arm_output_function_prologue): Update.
15287         (arm_output_epilogue): Update.
15288         (arm_get_frame_offsets): Update.
15289         (arm_expand_prologue): Update.
15290         (thumb_pushpop): Update.
15291         (thumb_exit): Update.
15292         (thumb1_expand_prologue): Update.
15293         (thumb1_expand_epilogue): Update.
15294         (arm_unwind_emit): Update.
15295         (arm_output_fn_unwind): Update.
15296         * config/arm/arm.h (FRAME_POINTER_REQUIRED): Update.
15297         * config/arm/arm.md: Update.
15298         * config/pa/pa.md: Update.
15299         * config/pa/pa.c (legitimize_pic_address): Update.
15300         (compute_frame_size): Update.
15301         (hppa_expand_prologue): Update.
15302         (hppa_expand_epilogue): Update.
15303         (borx_reg_operand): Update.
15304         * config/pa/pa.h (FRAME_POINTER_REQUIRED): Update.
15305         (HARD_REGNO_RENAME_OK): Update.
15306         * config/mips/mips.c (mips_global_pointer): Update.
15307         (mips_save_reg_p): Update.
15308         (mips_compute_frame_info): Update.
15309         (mips_frame_pointer_required): Update.
15310         (mips_expand_prologue): Update.
15311         (mips_expand_epilogue): Update.
15312         (mips_can_use_return_insn): Update.
15313         (mips_reorg_process_insns): Update.
15314         * config/v850/v850.c (compute_register_save_size): Update.
15315         * config/mmix/mmix.h (FRAME_POINTER_REQUIRED): Update.
15316         * config/mmix/mmix.c (along): Update.
15317         (mmix_expand_epilogue): Update.
15318         * config/bfin/bfin.c (legitimize_pic_address): Update.
15319         (must_save_p): Update.
15320         (stack_frame_needed_p): Update.
15321         (add_to_reg): Update.
15322         (bfin_expand_prologue): Update.
15323         * stmt.c (expand_asm_operands): Update.
15324         * reload1.c (reload): Update.
15325         (init_elim_table): Update.
15326
15327 2008-04-25  Bob Wilson  <bob.wilson@acm.org>
15328
15329         * optabs.c (expand_float): Fix REG_EQUAL for UNSIGNED_FLOAT libcall.
15330
15331 2008-04-25  H.J. Lu  <hongjiu.lu@intel.com>
15332
15333         * config/i386/sse.md (mov<mode>): Replace SSEMODEI with SSEMODE.
15334         (*mov<mode>_internal): Likewise.  Support V4SF and V2DF.
15335         (mov<mode>): Removed.
15336         (*movv4sf_internal): Likewise.
15337         (*movv2df_internal): Likewise.
15338
15339 2008-04-25  Pompapathi V Gadad <Pompapathi.V.Gadad@nsc.com>
15340
15341         * config.gcc (crx-*-elf): Remove deprecation.
15342
15343 2008-04-25  Danny Smith  <dannysmith@users.sourceforge.net>
15344
15345         * config/i386/cygming-crtend.c (register_frame_ctor): Register
15346         __gcc_deregister_frame with atexit.
15347         (deregister_frame_dtor): Remove.
15348
15349 2008-04-24  Nathan Froyd  <froydnj@codesourcery.com>
15350             Nathan Sidwell  <nathan@codesourcery.com>
15351
15352         * config/rs6000/rs6000.opt (mspe): Remove Var property.
15353         (misel): Likewise.
15354         * config/rs6000/rs6000.h (rs6000_spe): Declare.
15355         (rs6000_isel): Likewise.
15356         * config/rs6000/rs6000.c (rs6000_spe): New variable.
15357         (rs6000_isel): New variable.
15358         (rs6000_handle_option): Handle OPT_mspe and OPT_misel.
15359
15360 2008-04-24  Jakub Jelinek  <jakub@redhat.com>
15361
15362         PR c++/35758
15363         * c-common.c (handle_vector_size_attribute): Call
15364         lang_hooks.types.reconstruct_complex_type instead of
15365         reconstruct_complex_type.
15366         * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute): Likewise.
15367         * config/spu/spu.c (spu_handle_vector_attribute): Likewise.
15368         * langhooks.h (struct lang_hooks_for_types): Add
15369         reconstruct_complex_type hook.
15370         * langhooks-def.h (LANG_HOOKS_RECONSTRUCT_COMPLEX_TYPE): Define.
15371         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add it.
15372
15373 2008-04-24  Richard Guenther  <rguenther@suse.de>
15374
15375         * c-common.h (check_builtin_function_arguments): Declare.
15376         * c-common.c (validate_nargs): New function.
15377         (check_builtin_function_arguments): Likewise.
15378         * c-typeck.c (build_function_call): Call
15379         check_builtin_function_arguments.
15380         * builtins.c (fold_builtin_classify): Remove error reporting code.
15381         (fold_builtin_unordered_cmp): Likewise.
15382         (fold_builtin_1): Likewise.
15383         (fold_builtin_n): Likewise.
15384
15385 2008-04-24  Jakub Jelinek  <jakub@redhat.com>
15386
15387         PR tree-optimization/36008
15388         * fold-const.c (try_move_mult_to_index): If s == NULL, divide
15389         the original op1, rather than delta by step.
15390
15391 2008-04-22  Antoniu Pop  <antoniu.pop@gmail.com>
15392             Sebastian Pop  <sebastian.pop@amd.com>
15393
15394         * tree-parloops.c (take_address_of, eliminate_local_variables_1,
15395         eliminate_local_variables_stmt, eliminate_local_variables,
15396         separate_decls_in_loop_name, separate_decls_in_loop_stmt,
15397         separate_decls_in_loop, gen_parallel_loop): Make them work on a region
15398         of code delimited by two edges in the CFG.
15399         (separate_decls_in_loop_name): Renamed separate_decls_in_region_name.
15400         (separate_decls_in_loop_stmt): Renamed separate_decls_in_region_stmt.
15401         (separate_decls_in_loop): Renamed separate_decls_in_region.  Isolate
15402         the case of parallelisation of reductions.
15403         (expr_invariant_in_region_p): New.
15404
15405         * tree-flow.h (gather_blocks_in_sese_region): Declared.
15406         * tree-cfg.c (gather_blocks_in_sese_region): Extern.
15407
15408 2008-04-24  Ira Rosen  <irar@il.ibm.com>
15409             Richard Guenther  <rguenther@suse.de>
15410
15411         PR tree-optimization/36034
15412         * tree-vect-analyze.c (vect_analyze_group_access): SLP is
15413         incapable of dealing with loads with gaps.
15414
15415 2008-04-24  Rafael Espíndola  <espindola@google.com>
15416
15417         * tree-flow.h (vrp_evaluate_conditional): Change signature.
15418         * tree-ssa-propagate.c (fold_predicate_in): Update call to
15419         vrp_evaluate_conditional.
15420         * tree-vrp.c (vrp_evaluate_conditional_warnv): Remove.
15421         (vrp_evaluate_conditional): Split the cond argument.
15422         (vrp_visit_cond_stmt): Use vrp_evaluate_conditional_warnv_with_ops.
15423         (simplify_stmt_for_jump_threading): Update call to
15424         vrp_evaluate_conditional.
15425
15426 2008-04-24  Ira Rosen  <irar@il.ibm.com>
15427
15428         PR tree-optimization/35982
15429         * tree-vect-analyze.c (vect_check_interleaving): Check that the
15430         interleaved data-refs are of the same type.
15431
15432 2008-04-24  Danny Smith  <dannysmith@users.net>
15433
15434         * c-format.c (check_format_info_main): Use strncmp rather than a
15435         magic prefix to handle multichar length specs.
15436         * config/i386/msformat-c.c (format_length_info ms_printf_length_specs):
15437         Don't prefix "I64" and "I32" with '\0'.
15438
15439 2008-04-24  Jakub Jelinek  <jakub@redhat.com>
15440
15441         PR target/36015
15442         * config/i386/i386.c (init_cumulative_args): Don't pass anything
15443         in registers for -m32 only if stdarg_p (fntype).
15444
15445 2008-04-24  Uros Bizjak  <ubizjak@gmail.com>
15446
15447         PR rtl-optimization/36006
15448         * expmed.c (store_fixed_bit_field): Copy op0 rtx before moving
15449         temp to op0 in order to avoid invalid rtx sharing.
15450
15451 2008-04-23  Paolo Bonzini  <bonzini@gnu.org>
15452
15453         * tree-cfg.c (verify_expr): Check with is_gimple_address.  Don't
15454         check TREE_INVARIANT.
15455         * tree-gimple.c (is_gimple_address): New.
15456         (is_gimple_invariant_address): Simplify using decl_address_invariant_p.
15457         * tree-gimple.h (is_gimple_address): New.
15458         * tree.h (decl_address_invariant_p): New.
15459         * tree.c (make_node_stat): Don't set TREE_INVARIANT.
15460         (build_string): Likewise.
15461         (decl_address_invariant_p): New, from is_gimple_invariant_address.
15462         (tree_invariant_p_1): Likewise.
15463         (save_expr): Use it.
15464         (tree_invariant_p): New.
15465         (skip_simple_arithmetic): Use it.
15466         (stabilize_reference_1): Use it.
15467         (recompute_tree_invariant_for_addr_expr): Don't update TREE_INVARIANT,
15468         simplify.
15469         (build1_stat): Drop code to compute TREE_INVARIANT.
15470         (build2_stat): Drop code to compute TREE_INVARIANT.
15471         (build3_stat): Drop code to compute TREE_INVARIANT.
15472         (build4_stat): Drop code to compute TREE_INVARIANT.
15473         (build5_stat): Drop code to compute TREE_INVARIANT.
15474         (build7_stat): Drop code to compute TREE_INVARIANT.
15475         (merge_dllimport_decl_attributes): Don't mention TREE_INVARIANT.
15476         * tree.h (struct tree_base): Remove invariant_flag.
15477         (TREE_INVARIANT): Remove.
15478         * builtins.c (build_string_literal): Don't set TREE_INVARIANT.
15479         (fold_builtin_expect): Check TREE_CONSTANT.
15480         * tree-ssa-ccp.c (fold_stmt_r): Adjust comment.
15481         * c-tree.h (c_expr_to_decl): Drop third parameter.
15482         * c-typeck.c (build_external_ref): Don't set TREE_INVARIANT.
15483         (build_c_cast): Don't set TREE_INVARIANT.
15484         (pop_init_level): Don't set TREE_INVARIANT.
15485         (c_objc_common_truthvalue_conversion): Don't set TREE_INVARIANT.
15486         * gimplify.c (gimplify_init_ctor_preeval): Add assertion, test
15487         TREE_CONSTANT.
15488         (gimplify_init_constructor): Don't set TREE_INVARIANT.
15489         (gimplify_addr_expr): Adjust comment.
15490         * tree-mudflap.c (mf_build_string):
15491         * print-tree.c (print_node): Don't print TREE_INVARIANT.
15492         * tree-nested.c (convert_nonlocal_reference): Adjust comment.
15493         * c-common.c (fix_string_type): Don't set TREE_INVARIANT.
15494         * langhooks-def.h (lhd_expr_to_decl): Drop third parameter.
15495         * langhooks.c (lhd_expr_to_decl): Drop third parameter.
15496         * langhooks.h (struct lang_hooks): Drop third parameter from
15497         expr_to_decl.
15498
15499 2008-04-23  Richard Guenther  <rguenther@suse.de>
15500
15501         PR tree-optimization/27799
15502         PR tree-optimization/32921
15503         PR tree-optimization/32624
15504         * tree-ssa-structalias.c (merge_smts_into): Only merge the
15505         SMTs aliases and the tag itself into the solution.
15506         * tree-ssa-alias.c (compute_flow_sensitive_aliasing): Do not
15507         merge the points-to solution back into the SMT aliases.
15508         (may_alias_p): Use alias_set_subset_of instead of
15509         aliases_conflict_p.  A pointer which points to
15510         memory with alias set zero may access any variable.
15511
15512 2008-04-23  Richard Guenther  <rguenther@suse.de>
15513
15514         * alias.c (alias_set_subset_of): Correctly handle asking
15515         if zero is a subset of an alias set with zero child.
15516         * tree-ssa-alias.c (have_common_aliases_p): Simplify logic.
15517         (compute_flow_insensitive_aliasing): Correctly walk all
15518         pointers.  Do not unnecessarily union sets.
15519
15520 2008-04-23  Richard Guenther  <rguenther@suse.de>
15521
15522         PR middle-end/36021
15523         * c-common.c (handle_alloc_size_attribute): Use type_num_arguments.
15524
15525 2008-04-22  Tomas Bily  <tbily@suse.cz>
15526
15527         * tree-cfg.c (verify_expr): Check for NON_LVALUE_EXPR as
15528         unreachable case.
15529         * tree-vrp.c (extract_range_from_unary_expr): Removed unused
15530         NON_LVALUE_EXPR.
15531         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
15532         * tree-ssa-structalias.c (get_constraint_for): Likewise.
15533         * tree-inline.c (estimate_num_insns_1): Likewise.
15534         * varasm.c (const_hash_1, compare_constant, copy_constant)
15535         (compute_reloc_for_constant, output_addressed_constants): Likewise.
15536         * emit-rtl.c (component_ref_for_mem_expr)
15537         (set_mem_attributes_minus_bitpos): Likewise.
15538         * expr.c (highest_pow2_factor, expand_expr_real_1, )
15539         (is_aligning_offset): Likewise.
15540         * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info): Likewise.
15541         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
15542         * dojump.c (do_jump): Likewise.
15543         * builtins.c (get_pointer_alignment, get_memory_rtx)
15544         (integer_valued_real_p, fold_builtin_next_arg): Likewise.
15545         * tree-scalar-evolution.c (instantiate_parameters_1): Likewise.
15546
15547 2008-04-23  Jakub Jelinek  <jakub@redhat.com>
15548
15549         PR rtl-optimization/36017
15550         * builtins.c (expand_errno_check): Clear CALL_EXPR_TAILCALL before
15551         expanding the library call.
15552
15553 2008-04-22  Ian Lance Taylor  <iant@google.com>
15554
15555         * fold-const.c (pointer_may_wrap_p): Call int_size_in_bytes rather
15556         than size_in_bytes.
15557
15558 2008-04-22  Pat Haugen  <pthaugen@us.ibm.com>
15559
15560         * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase cost
15561         of LR/CTR moves for Power6.
15562
15563 2008-04-22  Kenneth Zadeck  <zadeck@naturalbridge.com>
15564
15565         PR middle-end/36003
15566         * passes.c (init_optimization_passes): Remove
15567         pass_fast_rtl_byte_dce.
15568
15569 2008-04-22  Uros Bizjak  <ubizjak@gmail.com>
15570
15571         PR target/29096
15572         * config/i386/xmmintrin.h (_mm_cvtpi16_ps): Rearrange calls to
15573         builtin functions to generate faster code.
15574         (_mm_cvtpu16_ps): Ditto.
15575         (_mm_cvtpi32x2_ps): Ditto.
15576
15577 2008-04-22  Nick Clifton  <nickc@redhat.com>
15578
15579         * common.opt (ftree-loop-distribution): Add Optimization
15580         attribute.
15581
15582         * config/frv/frv.c (frv_stack_info): Use crtl instead of cfun.
15583         (frv_expand_builtin_va_start): Likewise.
15584
15585         * config/arm/arm.c (thumb_find_work_register): Fix location of
15586         argument register count.
15587
15588 2008-04-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
15589
15590         Support scheduling for ColdFire V1 and V3 microarchitecture.
15591         Improve scheduling of multiplication instructions.
15592
15593         * config/m68k/m68k.md (cpu): Add cfv1 and cfv3.  Rename cf_v2 to cfv1.
15594         (mac): New instruction attribute.
15595         * config/m68k/m68k.c (override_options): Handle cfv1, cfv3 and mac.
15596         (m68k_sched_mac): New variable.
15597         (m68k_sched_attr_type2, m68k_sched_md_init_global): Update.
15598         Handle cfv1 and cfv3.
15599         (max_insn_size): New static variable.
15600         (struct _sched_ib): New type.
15601         (sched_ib): New static variable.
15602         (sched_ib_size, sched_ib_filled, sched_ib_insn): Convert variables
15603         to fields of 'struct _sched_ib sched_ib'.  Update all uses.
15604         (m68k_sched_variable_issue): Add modeling of cfv3 instruction buffer.
15605         Update.
15606         (m68k_sched_md_init_global, m68k_sched_md_finish_global,
15607         m68k_sched_md_init, m68k_sched_md_finish): Handle cfv1 and cfv3.  Init
15608         new variables.  Update.
15609         (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
15610         Add modeling of cfv3 instruction buffer.  Update.
15611         * config/m68k/m68k-protos.h (m68k_sched_mac): Declare.
15612         * config/m68k/m68k.h (TUNE_CFV3): New macro.
15613         * config/m68k/cf.md: Change substrings 'cf_v2' to 'cfv12' or 'cfv123'.
15614         (cf_* reservations): Rename to cfv12 or cfv123 to indicate cores
15615         a particular reservation applies to.
15616         (type2): Reorganize attribute values.  Rename alu to alu_reg,
15617         alu_l to alu, move_l to omove.  Join move to alu.  Split mul
15618         to mul_l and mul_w.
15619         (cf_ib_*): Simplify description of instruction buffer.
15620         (cf_ib_w0, cf_ib_w4, cf_ib_w5, cf_ib_w6): Remove.
15621         (cf_mem): Split into cf_mem1 and cf_mem2.
15622         (cf_v2_move_??): Rename to cfv12_alu_??.
15623         (cf_v2_move_l_??): Rename to cfv12_omove_??.
15624         (cf_v2_mul_??): Remove reservations.
15625         (cfv12_mul_l_??, cfv12_mul_w_??, cfv12_mac_w_??, cfv12_mac_l_??,
15626         cfv12_emac_??, cfv12_emac_w_i0): New reservations.
15627         (cfv12_rts, cfv12_call, cfv12_bcc, cfv12_bra, cfv12_jmp): Move to
15628         appropriate place.
15629         (cfv3_alu_10, cfv3_omove_10, cfv3_alu_i0, cfv3_omove_i0, cfv3_alu_01,
15630         cfv3_alu_0i, cfv3_alu_11, cfv3_omove_11, cfv3_alu_i1, cfv3_omove_i1,
15631         cfv3_alu_1i, cfv3_omove_1i, cfv3_pea_11, cfv3_pea_i1, cfv3_mul_w_10,
15632         cfv3_mul_l_10, cfv3_mul_w_i0, cfv3_mac_w_10, cfv3_mac_l_10,
15633         cfv3_mac_w_i0, cfv3_emac_10, cfv3_emac_w_i0, cfv3_rts, cfv3_call,
15634         cfv3_bcc, cfv3_bra, cfv3_jmp): New reservations.
15635         (cfv3_*_1, cfv3_*_2, cfv3_*_3): New instruction reservations that are
15636         expansions of the above reservations for instructions of sizes
15637         1, 2 and 3 words.
15638
15639 2008-04-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
15640
15641         * rtl-factoring.c (collect_patterns_seqs): Handle CC0 targets.
15642
15643 2008-04-21  Adam Nemet  <anemet@caviumnetworks.com>
15644
15645         * coverage.c: Include tree-pass.h.
15646         (coverage_counter_alloc): Print da_file_name to the dump file.
15647
15648 2008-04-21  Kenneth Zadeck  <zadeck@naturalbridge.com>
15649
15650         * sbitmap.c (sbitmap_range_empty_p): New function.
15651         * sbitmap.h (sbitmap_range_empty_p): New function.
15652         * bitmap.h: Now includes obstack.h.
15653
15654 2008-04-21  Richard Sandiford  <rsandifo@nildram.co.uk>
15655             Kenneth Zadeck  <zadeck@naturalbridge.com>
15656
15657         * dbgcnt.def (ra_byte_scan): Added.
15658         * dbgcnt.c (dbg_cnt): Added code to print message to dump_file
15659         when the last hit happens for a counter.
15660         * timevar.def (TV_DF_BYTE_LR): New variable.
15661         * tree-pass.h (pass_fast_rtl_byte_dce): New pass.
15662         * passes.c (pass_fast_rtl_byte_dce): New pass.
15663         * fwprop.c (update_df): Added mode to call df_ref_create.
15664         Renamed DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
15665         DF_REF_EXTRACT_OFFSET.
15666         * df.h (DF_BYTE_LR, DF_BYTE_LR_BB_INFO, DF_BYTE_LR_IN,
15667         DF_BYTE_LR_OUT, df_byte_lr): New macro.
15668         (df_mm): New enum.
15669         (df_ref_extract): Added mode field.
15670         (DF_REF_WIDTH, DF_REF_OFFSET) Renamed to DF_REF_EXTRACT_WIDTH and
15671         DF_REF_EXTRACT_OFFSET.
15672         (DF_REF_EXTRACT_MODE): New macro.
15673         (df_byte_lr_bb_info): New structure.
15674         (df_print_byte_regset, df_compute_accessed_bytes,
15675         df_byte_lr_add_problem, df_byte_lr_get_regno_start,
15676         df_byte_lr_get_regno_len, df_byte_lr_simulate_defs,
15677         df_byte_lr_simulate_uses,
15678         df_byte_lr_simulate_artificial_refs_at_top,
15679         df_byte_lr_simulate_artificial_refs_at_end,
15680         df_compute_accessed_bytes): New function.
15681         (df_ref_create): Add parameter.
15682         (df_byte_lr_get_bb_info): New inline function.
15683         * df-scan.c (df_ref_record, df_uses_record,
15684         df_ref_create_structure): Added mode parameter.
15685         (df_ref_create, df_notes_rescan, df_ref_record, df_def_record_1,
15686         df_defs_record, df_uses_record, df_get_conditional_uses,
15687         df_get_call_refs, df_insn_refs_collect, df_bb_refs_collect,
15688         df_entry_block_defs_collect, df_exit_block_uses_collect):
15689         Added mode parameter to calls to df_ref_record, df_uses_record,
15690         df_ref_create_structure.
15691         (df_ref_equal_p, df_ref_compare): Added test for modes.
15692         (df_ref_create_structure): Added code to set mode.  Renamed
15693         DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
15694         DF_REF_EXTRACT_OFFSET.
15695         * df-core.c (df_print_byte_regset): New function.
15696         * df-byte-scan.c: New file.
15697         * df-problems.c (df_rd_transfer_function): Removed unnecessary
15698         calls to BITMAP_FREE.
15699         (df_byte_lr_problem_data, df_problem problem_BYTE_LR): New structure.
15700         (df_byte_lr_get_regno_start, df_byte_lr_get_regno_len,
15701         df_byte_lr_set_bb_info, df_byte_lr_free_bb_info,
15702         df_byte_lr_check_regs, df_byte_lr_expand_bitmap,
15703         df_byte_lr_alloc, df_byte_lr_reset, df_byte_lr_bb_local_compute,
15704         df_byte_lr_local_compute, df_byte_lr_init,
15705         df_byte_lr_confluence_0, df_byte_lr_confluence_n,
15706         df_byte_lr_transfer_function, df_byte_lr_free,
15707         df_byte_lr_top_dump, df_byte_lr_bottom_dump,
15708         df_byte_lr_add_problem, df_byte_lr_simulate_defs,
15709         df_byte_lr_simulate_uses,
15710         df_byte_lr_simulate_artificial_refs_at_top,
15711         df_byte_lr_simulate_artificial_refs_at_end): New function.
15712         * dce.c (byte_dce_process_block): New function.
15713         (dce_process_block): au is now passed in rather than computed
15714         locally.  Changed loops that look at artificial defs to not look
15715         for conditional or partial ones, because there never are any.
15716         (fast_dce): Now is able to drive byte_dce_process_block or
15717         dce_process_block depending on the kind of dce being done.
15718         (rest_of_handle_fast_dce): Add parameter to fast_dce.
15719         (rest_of_handle_fast_byte_dce): New function.
15720         (rtl_opt_pass pass_fast_rtl_byte_dce): New pass.
15721         * Makefile.in (df-byte-scan.o, debugcnt.o): Added dependencies.
15722
15723 2008-04-21  Daniel Franke  <franke.daniel@gmail.com>
15724
15725         PR fortran/35019
15726         * gcc.h: Added fortran options that take arguments to
15727         DEFAULT_SWITCH_TAKES_ARG and DEFAULT_WORD_SWITCH_TAKES_ARG
15728         macros.
15729
15730 2008-04-20  Eric Botcazou  <ebotcazou@adacore.com>
15731
15732         * tree-sra.c (sra_walk_expr) <VIEW_CONVERT_EXPR>: Disable
15733         scalarization if on the LHS and not a full access.
15734
15735 2008-04-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15736
15737         * Makefile.in (s-gtyp-input): Remove tmp-gi.list before writing it.
15738
15739 2008-04-18  Rafael Espíndola  <espindola@google.com>
15740
15741         * tree-vrp.c (find_case_label_index): Fix the binary search.
15742         (find_case_label_range): New.
15743         (vrp_visit_switch_stmt): Use find_case_label_range.
15744         (simplify_switch_using_ranges): Use find_case_label_range.
15745
15746 2008-04-18  Eric Botcazou  <ebotcazou@adacore.com>
15747
15748         * gimplify.c (gimplify_modify_expr_rhs) <COND_EXPR>: Gimplify the LHS
15749         using the is_gimple_lvalue predicate instead of is_gimple_min_lval.
15750
15751 2008-04-18  Tom Tromey  <tromey@redhat.com>
15752
15753         PR libcpp/15500:
15754         * doc/cpp.texi (Implementation-defined behavior): Mention
15755         -finput-charset.
15756
15757 2008-04-18  Ian Lance Taylor  <iant@google.com>
15758
15759         * fold-const.c (pointer_may_wrap_p): New static function.
15760         (fold_comparison): Add another test for pointer overflow.  Use
15761         pointer_may_wrap_p to disable some false positives.
15762
15763 2008-04-18  Kris Van Hees <kris.van.hees@oracle.com>
15764
15765         * c-common.c (CHAR16_TYPE, CHAR32_TYPE): New macros.
15766         (fname_as_string): Match updated cpp_interpret_string prototype.
15767         (fix_string_type): Support char16_t* and char32_t*.
15768         (c_common_nodes_and_builtins): Add char16_t and char32_t (and
15769         derivative) nodes.  Register as builtin if C++0x.
15770         (c_parse_error): Support CPP_CHAR{16,32}.
15771         * c-common.h (RID_CHAR16, RID_CHAR32): New elements.
15772         (enum c_tree_index) <CTI_CHAR16_TYPE, CTI_SIGNED_CHAR16_TYPE,
15773         CTI_UNSIGNED_CHAR16_TYPE, CTI_CHAR32_TYPE, CTI_SIGNED_CHAR32_TYPE,
15774         CTI_UNSIGNED_CHAR32_TYPE, CTI_CHAR16_ARRAY_TYPE,
15775         CTI_CHAR32_ARRAY_TYPE>: New elements.
15776         (char16_type_node, signed_char16_type_node, unsigned_char16_type_node,
15777         char32_type_node, signed_char32_type_node, char16_array_type_node,
15778         char32_array_type_node): New defines.
15779         * c-lex.c (cb_ident): Match updated cpp_interpret_string prototype.
15780         (c_lex_with_flags): Support CPP_CHAR{16,32} and CPP_STRING{16,32}.
15781         (lex_string): Support CPP_STRING{16,32}, match updated
15782         cpp_interpret_string and cpp_interpret_string_notranslate prototypes.
15783         (lex_charconst): Support CPP_CHAR{16,32}.
15784         * c-parser.c (c_parser_postfix_expression): Support CPP_CHAR{16,32}
15785         and CPP_STRING{16,32}.
15786
15787 2008-04-18  Paolo Bonzini  <bonzini@gnu.org>
15788
15789         PR bootstrap/35457
15790         * aclocal.m4: Regenerate.
15791         * configure: Regenerate.
15792
15793 2008-04-18  Jan Hubicka  <jh@suse.cz>
15794
15795         * except.c (dw2_size_of_call_site_table,
15796         sjlj_size_of_call_site_table): Use vector API for call_site_record.
15797
15798         * cgraphbuild.c (build_cgraph_edges): Update.
15799         * tree-pass.h: Update comment.
15800         * final.c (leaf_function_p): Update.
15801         (leaf_renumber_regs): Update.
15802         (rest_of_clean_state): Update.
15803         * omp-low.c (expand_omp_parallel): Update.
15804         * ipa-reference.c (analyze_function): Update.
15805         * reorg.c (find_end_label): Update.
15806         (optimize_skip): Update.
15807         (fill_simple_delay_slots): Update.
15808         (fill_simple_delay_slots): Update.
15809         (make_return_insns): Update.
15810         (dbr_schedule): Update.
15811         * gimple-low.c (record_vars_into): Update.
15812         * cfgbuild.c (make_edges): Update.
15813         * function.c (assign_stack_local): Update.
15814         (assign_parm_adjust_stack_rtl): Update.
15815         (locate_and_pad_parm): Update.
15816         (allocate_struct_function): Do not initialize stack_alignment_needed
15817         and preferred_stack_boundary here.
15818         (stack_protect_prologue): Update.
15819         (stack_protect_epilogue): Update.
15820         (expand_function_start): Initialize stack_alignment_needed,
15821         preferred_stack_boundary and max_jumptable_ents.
15822         (expand_function_end): Update.
15823         (free_after_compilation): Do not NULLify epilogue_delay_list.
15824         * function.h (struct rtl_data): Add stack_protect_guard,
15825         stack_alignment_needed,
15826         preferred_stack_boundary, epilogue_delay_list.
15827         (struct function): Remove value_histograms, stack_alignment_needed,
15828         preferred_stack_boundary, epilogue_delay_list, max_jumptable_ents,
15829         last_label_uid,
15830         unexpanded_var_list, stack_protect_guard.
15831         (current_function_epilogue_delay_list): Remove.
15832         * ipa-type-escape.c (analyze_function): Update.
15833         * gimplify.c (pop_gimplify_context): Update comment.
15834         * calls.c (expand_call): Update.
15835         (emit_library_call_value_1): Update.
15836         * except.c (set_nothrow_function_flags): Update.
15837         * cfgexpand.c (get_decl_align_unit): Update.
15838         (create_stack_guard): Update.
15839         (estimated_stack_frame_size): Update.
15840         (expand_used_vars): Update.
15841         (tree_expand_cfg): Free histogram earliers, init expansion variables.
15842         * explow.c (allocate_dynamic_stack_space): Update.
15843         * tree-ssa-live.c (remove_unused_locals): Update.
15844         * varasm.c (mark_constant_pool): Update.
15845         * tree-inline.c (remap_decls): Update.
15846         (initialize_cfun): Update.
15847         (declare_return_variable): Update.
15848         (inline_forbidden_p): Update.
15849         (expand_call_inline): Update.
15850         (declare_inline_vars): Update.
15851         (tree_function_versioning): Update.
15852         * tree-flow.h (value_histograms): New.
15853         (VALUE_HISTOGRAMS): New macro.
15854         * basic-block.h (control_flow_graph): Add max_jumptable_ents,
15855         last_label_uid.
15856         * tree-cfg.c (set_bb_for_stmt): Update.
15857         (replace_by_duplicate_decl): Update.
15858         (move_block_to_fn): Update.
15859         (new_label_mapper): Update.
15860         (dump_function_to_file): Update.
15861         * ipa-struct-reorg.c (build_data_structure): Update.
15862         * cfgrtl.c (print_rtl_with_bb): Update.
15863         * reload1.c (reload): Update.
15864         (reload): Update.
15865         * config/i386/i386.c (setup_incoming_varargs_64,
15866         ix86_compute_frame_layout): Update.
15867         * config/arc/arc.c (arc_output_function_epilogue): Update.
15868
15869 2008-04-18  Marius Strobl <marius@FreeBSD.org>
15870
15871         * gthr-posix.h (__gthread_active_p): Use the Solaris implementation
15872         for FreeBSD as well.
15873         * gthr-posix95.h: Likewise.
15874
15875 2008-04-17  Richard Sandiford  <rsandifo@nildram.co.uk>
15876
15877         PR rtl-optimization/35838
15878         * dse.c (find_shift_sequence): Use subreg_lowpart_offset to work
15879         out the byte offset of the first subreg.
15880
15881 2008-04-17  Uros Bizjak  <ubizjak@gmail.com>
15882
15883         * config/i386/i386.md (addti3 splitter): Pass arrays of 3 operands
15884         to split_ti instead of three separate calls with single member arrays.
15885         (subti3 splitter): Ditto.
15886         (adddi3 splitter): Ditto with split_di.
15887         (subdi3 splitter): Ditto.
15888         (negti2 splitter): Pass arrays of 2 operands to split_ti instead of
15889         two separate calls with single member arrays.  Swap match_dup
15890         operands 1 and 2 to better fit into the array.
15891         (negdi2 splitter): Ditto with split_di.
15892         (movdfcc splitter):  Pass arrays of 2 operands to split_di instead of
15893         two separate calls with single member arrays.  Swap match_dup operands
15894         6 and 7 to better fit into the array.
15895
15896 2008-04-17  H.J. Lu  <hongjiu.lu@intel.com>
15897
15898         * config/i386/i386.c (sse_builtin_type): New.
15899         (bdesc_sse_args): Likewise.
15900         (bdesc_sse_3arg): Removed.
15901         (bdesc_2arg): Remove IX86_BUILTIN_AESKEYGENASSIST128.
15902         (bdesc_1arg): Remove IX86_BUILTIN_ROUNDPD and
15903         IX86_BUILTIN_ROUNDPS.
15904         (ix86_init_mmx_sse_builtins): Handle bdesc_sse_args.  Remove
15905         bdesc_sse_3arg.  Remove IX86_BUILTIN_ROUNDPD and
15906         IX86_BUILTIN_ROUNDPS.
15907         (ix86_expand_sse_4_operands_builtin): Removed.
15908         (ix86_expand_sse_operands_builtin): New.
15909         (ix86_expand_unop_builtin): Remove CODE_FOR_sse4_1_roundpd
15910         and CODE_FOR_sse4_1_roundps.
15911         (ix86_expand_builtin): Remove IX86_BUILTIN_AESKEYGENASSIST128.
15912         Handle bdesc_sse_args.  Remove bdesc_sse_3arg.
15913
15914 2008-04-17  Alan Modra  <amodra@bigpond.net.au>
15915
15916         PR target/35907
15917         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Restore vr and vrsave
15918         regs before frame pop when needed.  If use_backchain_to_restore_sp
15919         then load backchain into a temp reg to restore vr and vrsave.  Add
15920         code to restore vr after frame pop if possible.
15921
15922 2008-04-17  Richard Guenther  <rguenther@suse.de>
15923
15924         * tree-vn.c (expressions_equal_p): Do not check type
15925         equality or compatibility before calling operand_equal_p.
15926         * fold-const.c (operand_equal_p): Check equivalence of
15927         integer constants before bailing out due to signedness or
15928         precision differences.
15929         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ignore
15930         spurious differences in type qualification.  Ignore types
15931         for COMPONENT_REFs at all.
15932
15933 2008-04-17  Christian Bruel  <christian.bruel@st.com>
15934
15935         * config/sh/sh.c (expand_cbranchdi4): Use original operands for
15936         msw_skip comparison.
15937
15938 2008-04-16  Jakub Jelinek  <jakub@redhat.com>
15939
15940         PR c/35739
15941         * tree-nrv.c (tree_nrv): Don't optimize if result_type is GIMPLE
15942         reg type.
15943
15944         PR tree-optimization/35899
15945         * tree-inline.c (expand_call_inline): Use GIMPLE_STMT_OPERAND
15946         rather than TREE_OPERAND.
15947
15948 2008-04-16  Uros Bizjak  <ubizjak@gmail.com>
15949
15950         PR target/35944
15951         * config/i386/i386.md (fmodxf3): Copy operand 1 and operand 2 into
15952         temporary registers.  Change operand predicate to general_operand.
15953         (remainderxf3): Ditto.
15954
15955 2008-04-16  Richard Guenther  <rguenther@suse.de>
15956
15957         * Makefile.in (tree-affine.o): Add $(FLAGS_H) dependency.
15958         * tree-affine.c (aff_combination_expand): Look through some
15959         conversions.
15960
15961 2008-04-15  Doug Kwan  <dougkwan@google.com>
15962
15963         * dwarf2asm.c (dw2_assemble_integer): Cast to unsigned HOST_WIDE_INT
15964         for hex printing.
15965         * tree-pretty-print.c (dump_generic_node): Ditto.
15966         * final.c (output_addr_const): Ditto.
15967         * dwarf2out.c (output_cfi): Ditto.
15968         * c-pretty-print.c (pp_c_integer_constant): Ditto.
15969         * print-rtl.c (print_rtx): Ditto.
15970         * print-tree.c (print_node_brief, print_node): Ditto.
15971         * c-common.c (match_case_to_enum_1): Ditto.
15972         * sched-vis.c (print_value): Ditto.
15973         * config/i386/i386.c (print_operand): Cast to long unsigned int
15974         for hex printing.
15975
15976 2008-04-15  Danny Smith  <dannysmith@users.sourceforge.net>
15977         * libgcc2.c [L_trampoline]: Remove  unnecessary prototype for
15978         MS Windows VirtualProtect function.
15979
15980 2008-04-15  Jan Hubicka  <jh@suse.cz>
15981
15982         * gengtype.c (write_root): Param_is argument is OK.
15983         * expr.c (expand_expr_real_1): Update call of get_exception_*.
15984         * function.h: Include varray.h
15985         (rtl_eh): New stucture based on except.c one.
15986         (call_site_record): New forward declaration and vector type.
15987         * calls.c (emit_call_1): Do not call
15988         note_current_region_may_contain_throw.
15989         * except.c (eh_status): Remove cur_region, try_region since they are
15990         unused.
15991         Move filter, exc_ptr, ttype_data, ehspec_data, action_record_data and
15992         exception_handler_label_map, ehr_stackadj, ehr_handler, ehr_label,
15993         sjlj_fc, sjlj_exit_after to rth_eh in function.h.
15994         Remove call_site_data_used, call_site_data_size.
15995         Turn call_site_record into vector in function.h.
15996         (note_current_region_may_contain_throw): Remove.
15997         (get_exception_pointer, get_exception_filter): Do not take struct
15998         function argument; update.
15999         (add_ehl_entry, find_exception_handler_labels, ehspec_filter_hash,
16000         add_ttypes_entry, add_ehspec_entry, assign_filter_values,
16001         build_post_landing_pads, dw2_build_landing_pads,
16002         sjlj_assign_call_site_values, sjlj_mark_call_sites,
16003         sjlj_emit_function_enter, sjlj_emit_function_enter,
16004         sjlj_emit_function_exit, sjlj_emit_dispatch_table,
16005         sjlj_build_landing_pads, finish_eh_generation,
16006         remove_exception_handler_label, remove_eh_handler,
16007         maybe_remove_eh_handler, add_reachable_handler,
16008         reachable_handlers, expand_builtin_eh_return, expand_eh_return,
16009         add_action_record, collect_one_action_chain, add_call_site,
16010         convert_to_eh_region_ranges, sjlj_size_of_call_site_table,
16011         sjlj_output_call_site_table, output_function_exception_table,
16012         * except.h (note_current_region_may_contain_throw): Remove
16013         (get_exception_pointer, get_exception_filter): Do not take struct
16014         function argument.
16015         * Makefile.in (GTFILES): Put varargs before struct function.
16016
16017 2008-04-15  Eric Botcazou  <ebotcazou@adacore.com>
16018
16019         * tree-ssa-structalias.c (get_constraint_for_component_ref): Do not
16020         punt for STRING_CST.
16021         (get_constraint_for): Deal with STRING_CST here instead.
16022
16023 2008-04-15  Richard Guenther  <rguenther@suse.de>
16024
16025         * tree-ssa-propagate.c (substitute_and_fold): Substitute
16026         statements in a basic-block with a backward walk.  Do not
16027         substitute into dead statements but instead remove those.
16028
16029 2008-04-15  Richard Guenther  <rguenther@suse.de>
16030
16031         * params.def (PARAM_MAX_FIELDS_FOR_FIELD_SENSITIVE): Set default
16032         to zero, thus disable creation of SFTs.
16033
16034 2008-04-15  Eric Botcazou  <ebotcazou@adacore.com>
16035
16036         * tree-predcom.c (suitable_reference_p): Return false if the
16037         reference can throw.
16038
16039 2008-04-15  Jakub Jelinek  <jakub@redhat.com>
16040
16041         PR c/35751
16042         * c-decl.c (finish_decl): If extern or static var has variable
16043         size, set TREE_TYPE (decl) to error_mark_node.
16044
16045 2008-04-15  Rafael Espíndola  <espindola@google.com>
16046
16047         * fold-const.c (tree_call_nonnegative_warnv_p): Remove local
16048         variable arg1.
16049
16050 2008-04-15  Richard Guenther  <rguenther@suse.de>
16051
16052         * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
16053         * tree-ssa-sccvn.c (vn_reference_lookup): New parameter maywalk.
16054         (visit_reference_op_load): Do walk vuse-vdef chains on
16055         vn_reference_lookup.
16056         (visit_reference_op_store): But do not here.
16057         * tree-vn.c (vn_lookup): Do not walk vuse-vdef chains on
16058         vn_reference_lookup.
16059         (vn_lookup_with_vuses): But do so here.
16060
16061 2008-04-14  Ian Lance Taylor  <iant@google.com>
16062
16063         * fold-const.c (fold_overflow_warning): Remove assertion.
16064
16065 2008-04-15  Ben Elliston  <bje@au.ibm.com>
16066
16067         * config/alpha/alpha.c (alpha_initialize_trampoline): Remove temp,
16068         temp1 local variables.
16069
16070 2008-04-15  Zuxy Meng  <zuxy.meng@gmail.com>
16071
16072         PR target/35661
16073         * config/i386/winnt.c (i386_pe_section_type_flags): Mark
16074         ".text.unlikely" section as executable.
16075
16076 2008-04-14  James E. Wilson  <wilson@tuliptree.org>
16077
16078         * config/ia64/ia64.c (rtx_needs_barrier): Handle
16079         UNSPEC_FR_SQRT_RECIP_APPROX_RES.
16080         * config/ia64/ia64.c (UNSPEC_FR_SQRT_RECIP_APPROX_RES): Define.
16081         (divsi3_internal, divdi3_internal_lat, divdi3_internal_thr,
16082         divsf3_internal_lat, sqrt_approx, sqrtsf2_internal_thr,
16083         divdf3_internal_lat, sqrtdf2_internal_thr, divxf3_internal_lat,
16084         divxf3_internal_thr, sqrtxf2_internal_thr, recip_approx): Use it.
16085
16086 2008-04-14  Ian Lance Taylor  <iant@google.com>
16087
16088         * flags.h (POINTER_TYPE_OVERFLOW_UNDEFINED): Define.
16089         * fold-const.c (fold_comparison): If appropriate, test
16090         POINTER_TYPE_OVERFLOW_UNDEFINED, and issue an overflow warning.
16091         (fold_binary): Test POINTER_TYPE_OVERFLOW_UNDEFINED when
16092         reassociating a pointer type.
16093         * doc/invoke.texi (Optimize Options): Document that
16094         -fstrict-overflow applies to pointer wraparound.
16095
16096 2008-04-13  Jan Hubicka  <jh@suse.cz>
16097
16098         * m32.c (m32c_pushm_popm): Use crtl->retrun_rtx.
16099
16100 2008-04-12  Andrew Pinski  <pinskia@gmail.com>
16101
16102         * config/rs6000/rs6000.c (compute_save_world_info): Set lr_save_p if
16103         we are going to "save the world".
16104
16105 2008-04-13  Hans-Peter Nilsson  <hp@axis.com>
16106
16107         * config/cris/cris.md ("*andhi_lowpart_non_v32", "*andhi_lowpart_v32")
16108         ("*andqi_lowpart_non_v32", "*andqi_lowpart_v32"): Use "+" for the
16109         operand 0 constraint, not "=".
16110
16111 2008-04-11  James E. Wilson  <wilson@tuliptree.org>
16112
16113         * system.h: Change ASSERT_CHECKING to ENABLE_ASSERT_CHECKING.
16114
16115 2008-04-11  H.J. Lu  <hongjiu.lu@intel.com>
16116
16117         * dse.c (record_store): Use HOST_BITS_PER_WIDE_INT instead
16118         of size of positions_needed * CHAR_BIT.
16119
16120 2008-04-11  H.J. Lu  <hongjiu.lu@intel.com>
16121
16122         PR middle-end/35897
16123         * dse.c (store_info): Change positions_needed to unsigned
16124         HOST_WIDE_INT.
16125         (lowpart_bitmask): New.
16126         (record_store): Cast to unsigned HOST_WIDE_INT for
16127         positions_needed.  Assert width <= size of positions_needed *
16128         CHAR_BIT.  Call lowpart_bitmask to initialize positions_needed.
16129         (check_mem_read_rtx): Use unsigned HOST_WIDE_INT on mask.  Call
16130         lowpart_bitmask to set mask.
16131
16132 2008-04-11  Bernd Schmidt  <bernd.schmidt@analog.com>
16133
16134         * config/bfin/constraints.md: New file.
16135         * config/bfin/bfin.md: Include it.
16136         (adddi3): Use satisfies_constraint functions instead of the old macros.
16137         * config/bfin/bfin.h (REG_CLASS_FROM_LETTER, CONSTRAINT_LEN,
16138         CONST_18UBIT_IMM_P, CONST_16BIT_IMM_P, CONST_16UBIT_IMM_P,
16139         CONST_7BIT_IMM_P, CONST_7NBIT_IMM_P, CONST_5UBIT_IMM_P,
16140         CONST_4BIT_IMM_P, CONST_4UBIT_IMM_P, CONST_3BIT_IMM_P,
16141         CONST_3UBIT_IMM_P, CONST_OK_FOR_K, CONST_OK_FOR_P, CONST_OK_FOR_M,
16142         CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER,
16143         EXTRA_CONSTRAINT): Delete.
16144         * config/bfin/predicates.md (highbits_operand, reg_or_7bit_operand,
16145         reg_or_neg7bit_operand): Use satisfies_constraint functions instead
16146         of the old macros.
16147         * config/bfin/bfin.c: Include "tm-constrs.h".
16148         (bfin_secondary_reload, split_load_immediate, bfin_rtx_costs):
16149         Use satisfies_constraint functions instead of the old macros.
16150         * doc/md.texi (Blackfin Constraints): Update file name reference.
16151
16152 2008-04-11  Richard Guenther  <rguenther@suse.de>
16153
16154         PR tree-optimization/35869
16155         * tree-vrp.c (execute_vrp): Move switch statement update after
16156         jump threading.  Schedule another cfg cleanup run.
16157
16158 2008-04-11  Volker Reichelt  <v.reichelt@netcologne.de>
16159
16160         PR c/35744
16161         * attribs.c (decl_attributes): Return early on errorneous node.
16162
16163 2008-04-10  Oleg Ryjkov  <olegr@google.com>
16164
16165         * tree.h (struct tree_base): Added a new flag default_def_flag.
16166         (SSA_NAME_IS_DEFAULT_DEF): Changed to use the new flag.
16167
16168 2008-04-11  Kaz Kojima  <kkojima@gcc.gnu.org>
16169
16170         * config.gcc (need_64bit_hwint): Need 64bit hwint for sh-*-*.
16171
16172 2008-04-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
16173
16174         PR target/35768
16175         * pa.md: Define mode iterator P.  Define mode attribute dwc.
16176         (dcacheflush): Update pattern to use iterator P and attribute dwc.
16177         (icacheflush): Likewise.
16178         * pa.h (INITIALIZE_TRAMPOLINE): Use dcacheflushsi/icacheflushsi if
16179         !TARGET_64BIT, and dcacheflushdi/icacheflushdi if TARGET_64BIT.
16180
16181 2008-04-11  Ben Elliston  <bje@au.ibm.com>
16182
16183         * config/spu/spu.c (spu_init_builtins): Mark builtins as nothrow.
16184
16185 2008-04-10  Rafael Espíndola  <espindola@google.com>
16186
16187         * tree-vrp.c (extract_range_from_binary_expr): Don't handle
16188         TRUTH_ANDIF_EXPR or TRUTH_ORIF_EXPR.
16189         (extract_range_from_expr): The same.
16190
16191 2008-04-10  Adam Nemet  <anemet@caviumnetworks.com>
16192
16193         * config/mips/mips.md (GPR2): New mode iterator.
16194         (seq): Add comment.
16195         (*seq_<mode>, *seq_<mode>_mips16, *sne_<mode>, *sgt<u>_<mode>,
16196         *sgt<u>_<mode>_mips16, *sge<u>_<mode>, *slt<u>_<mode>,
16197         *slt<u>_<mode>_mips16 *sle<u>_<mode>, *sle<u>_<mode>_mips16):
16198         Rewrite these to take two modes, the mode of comparison and the
16199         mode of the destination.
16200         * config/mips/mips.c (mips_expand_scc): Instead of having
16201         paradoxical subreg as destination, expand "narrowing" scc if mode
16202         of comparison is SI and target is requested in DI mode.
16203         (mips_emit_int_order_test): Update comment.  Make mode of
16204         comparison match CMP0 rather than TARGET.  When creating inverse
16205         target use mode of TARGET.
16206
16207 2008-04-10  Adam Nemet  <anemet@caviumnetworks.com>
16208
16209         * gcov-dump.c (tag_summary): Only print summaries for the first
16210         GCOV_COUNTERS_SUMMABLE counters.
16211
16212 2008-04-10  Uros Bizjak  <ubizjak@gmail.com>
16213
16214         * config/i386/i386.md (absneg): New code iterator.
16215         (absnegprefix): New code attribute.
16216         (<code><mode>2): Macroize expander from abs<mode>2 and neg<mode>2
16217         patterns using absneg code iterator.
16218         (<code>tf2): Macroize expander from abstf2 and negtf2 patterns
16219         using absneg code iterator.
16220         (*<code><mode>2_1): Macroize insn pattern from *abs<mode>2_1 and
16221         *neg<mode>2 patterns using absneg code iterator.
16222         (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
16223         *negextendsfdf2 patterns using absneg code iterator.
16224         (*<code>extendsfxf2): Macroize insn pattern from *absextendsfxf2 and
16225         *negextendsfxf2 patterns using absneg code iterator.
16226         (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
16227         *negextendsfdf2 patterns using absneg code iterator.
16228         * config/i386/sse.md (<code><mode>2): Macroize expander from
16229         abs<mode>2 and neg<mode>2 patterns using absneg code iterator.
16230
16231 2008-04-10  Andreas Krebbel  <krebbel1@de.ibm.com>
16232
16233         * config/s390/s390.h: Remove the remains of the recent search
16234         & replace action of current_function_outgoing_args_size.
16235
16236 2008-04-10  Ira Rosen  <irar@il.ibm.com>
16237
16238         PR tree-optimization/35821
16239         * tree-vect-transform.c (vect_create_data_ref_ptr): Add check that
16240         NEW_STMT_LIST is not NULL.
16241
16242 2008-04-09  David Edelsohn  <edelsohn@gnu.org>
16243
16244         PR libstdc++/35597
16245         * toplev.c (process_options): Remove -ffunction-sections debugging
16246         warning.
16247
16248 2008-04-09  Peter Bergner  <bergner@vnet.ibm.com>
16249
16250         PR middle-end/PR28690
16251         * explow.c (break_out_memory_refs): Use simplify_gen_binary rather
16252         than gen_rtx_fmt_ee to perform more canonicalizations.
16253
16254 2008-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
16255
16256         PR driver/35665
16257         * collect2.c (write_c_file): Don't wrap in "#ifdef __cplusplus".
16258
16259 2008-04-09  Richard Guenther  <rguenther@suse.de>
16260
16261         * tree-cfg.c (verify_stmt): Print complete bogus stmt.
16262         (dump_function_to_file): Dump function arguments with types.
16263
16264 2008-04-08  Richard Guenther  <rguenther@suse.de>
16265
16266         * fold-const.c (fold_widened_comparison): Do not allow
16267         sign-changes that change the result.
16268
16269 2008-04-08  Janis Johnson  <janis187@us.ibm.com>
16270
16271         PR target/35839
16272         * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle additional
16273         kinds of indirect references.
16274
16275 2008-04-08  David Edelsohn  <edelsohn@gnu.org>
16276
16277         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Update
16278         GNU Fortran language string.
16279
16280 2008-04-08  Rafael Espíndola  <espindola@google.com>
16281
16282         * fold-canst.c (tree_call_nonnegative_warnv_p): New.
16283         (tree_invalid_nonnegative_warnv_p): Use tree_call_nonnegative_warnv_p.
16284         * tree.h (tree_call_nonnegative_warnv_p): New.
16285
16286 2008-04-08  Jan Hubicka  <jh@suse.cz>
16287
16288         * function.c (free_after_compilation): Clear out regno_reg_rtx
16289         pointer.
16290
16291 2008-04-08  Peter Bergner  <bergner@vnet.ibm.com>
16292
16293         Revert
16294         2008-04-07  Peter Bergner  <bergner@vnet.ibm.com>
16295
16296         PR middle-end/PR28690
16297         * rtlanal.c: (commutative_operand_precedence): Give SYMBOL_REF's the
16298         same precedence as REG_POINTER and MEM_POINTER operands.
16299
16300 2008-04-08  Richard Guenther  <rguenther@suse.de>
16301
16302         PR middle-end/35834
16303         * tree-ssa-address.c (create_mem_ref): Use POINTER_PLUS_EXPR
16304         for adding index to base.
16305
16306 2008-04-08  Kai Tietz  <kai.tietz@onevision.com>
16307
16308         * config/i386/mingw32.h (ENABLE_EXECUTE_STACK): New.
16309         (MINGW_ENABLE_EXECUTE_STACK): New.
16310         (IN_LIBGCC2): For libgcc include windows.h file for
16311         function declarations.
16312
16313 2008-04-08  Hans-Peter Nilsson  <hp@axis.com>
16314
16315         * config/cris/cris.c (cris_address_cost): For a PLUS, swap tem1
16316         and tem2 if tem1 is not a REG or MULT.
16317
16318 2008-04-08  Jan Hubicka  <jh@suse.cz>
16319
16320         * function.h (incomming_args): Break out of struct function.
16321         (function_subsections): Break out of struct function.
16322         (rtl_data): Add args, subsections fields. Break out outgoing_args_size,
16323         return_rtx and hard_reg_initial_vals from struct function.
16324         Kill inl_max_label_num.
16325         (current_function_pops_args, current_function_args_info,
16326         current_function_args_size, current_function_args_size,
16327         current_function_pretend_args_size,
16328         current_function_outgoing_args_size,
16329         current_function_internal_arg_pointer, current_function_return_rtx):
16330         Kill compatibility accestor macros.
16331         * builtins.c (expand_builtin_apply_args_1): Update.
16332         (expand_builtin_next_arg): Update.
16333         * df-scan.c (df_get_call_refs): Update.
16334         * dbxout.c (dbxout_function_end): Update.
16335         * dwarf2out.c (dwarf2out_switch_text_section): Update.
16336         (output_line_info): Update.
16337         (secname_for_decl): Update.
16338         (dwarf2out_var_location): Update.
16339         * function.c (free_after_compilation): Update.
16340         (assign_parm_find_stack_rtl): Update.
16341         (assign_parms): Update.
16342         (expand_dummy_function_end): Update.
16343         (expand_function_end): Update.
16344         * calls.c (mem_overlaps_already_clobbered_arg_p): Update.
16345         (expand_call): Update.
16346         (emit_library_call_value_1): Update.
16347         (store_one_arg): Update.
16348         * varasm.c (initialize_cold_section_name): Update.
16349         (unlikely_text_section): Update.
16350         (unlikely_text_section_p): Update.
16351         (assemble_start_function): Update.
16352         (assemble_end_function): Update.
16353         (default_section_type_flags): Update.
16354         (switch_to_section): Update.
16355         * integrate.c (set_decl_abstract_flags): Update.
16356         (get_hard_reg_initial_val): Update.
16357         (has_hard_reg_initial_val): Update.
16358         (allocate_initial_values): Update.
16359         * resource.c (init_resource_info): Update.
16360         * config/alpha/alpha.c (NUM_ARGS): Update.
16361         (direct_return): Update.
16362         (alpha_va_start): Update.
16363         (alpha_sa_size): Update.
16364         (alpha_initial_elimination_offset): Update.
16365         (alpha_expand_prologue): Update.
16366         (alpha_start_function): Update.
16367         (alpha_expand_epilogue): Update.
16368         (unicosmk_initial_elimination_offset):
16369         * config/alpha/alpha.md (call expander): Update.
16370         * config/s390/s390.c (s390_register_info): Update.
16371         (s390_register_info): Update.
16372         (s390_frame_info): Update.
16373         (s390_initial_elimination_offset): Update.
16374         (s390_build_builtin_va_list): Update.
16375         (s390_va_start): Update.
16376         * config/spu/spu.c (direct_return): Update.
16377         (spu_expand_prologue): Update.
16378         (spu_initial_elimination_offset): Update.
16379         (spu_build_builtin_va_list): Update.
16380         (spu_va_start): Update.
16381         * config/sparc/sparc.c (sparc_init_modes): Update.
16382         (sparc_compute_frame_size): Update.
16383         (function_value): Update.
16384         * config/m32r/m32r.c (m32r_compute_frame_size): Update.
16385         * config/i386/i386.md (return expander): Update.
16386         * config/i386/i386.c (ix86_va_start): Update.
16387         (ix86_can_use_return_insn_p): Update.
16388         (ix86_compute_frame_layout): Update.
16389         (ix86_expand_epilogue): Update.
16390         * config/sh/sh.c (output_stack_adjust): Update.
16391         (calc_live_regs): Update.
16392         (sh_expand_prologue): Update.
16393         (sh_builtin_saveregs): Update.
16394         (sh_va_start): Update.
16395         (initial_elimination_offset): Update.
16396         (sh_allocate_initial_value): Update.
16397         (sh_function_ok_for_sibcall): Update.
16398         (sh_get_pr_initial_val): Update.
16399         * config/sh/sh.md (return expander): Update.
16400         * config/avr/avr.c (frame_pointer_required_p): UPdate.
16401         * config/crx/crx.c (crx_compute_frame): UPdate.
16402         (crx_initial_elimination_offset): UPdate.
16403         * config/xtensa/xtensa.c (compute_frame_size): Update
16404         (xtensa_builtin_saveregs): Update.
16405         (xtensa_va_start): Update.
16406         (order_regs_for_local_alloc): Update.
16407         * config/stormy16/stormy16.c (xstormy16_compute_stack_layout): Update.
16408         (xstormy16_expand_builtin_va_start): Update.
16409         * config/fr30/fr30.c (fr30_compute_frame_size): Update.
16410         * config/m68hc11/m68hc11.md (return expanders): Update.
16411         * config/m68hc11/m68hc11.c (expand_prologue): Update.
16412         (expand_epilogue): Update.
16413         * config/cris/cris.c (cris_initial_frame_pointer_offset): Update.
16414         (cris_simple_epilogue): Update.
16415         (cris_expand_prologue): Update.
16416         (cris_expand_epilogue): Update.
16417         * config/iq2000/iq2000.c (iq2000_va_start): Update.
16418         (compute_frame_size): Update.
16419         * config/mt/mt.c (mt_compute_frame_size): Update.
16420         * config/mn10300/mn10300.c (expand_prologue): Update.
16421         (expand_epilogue): Update.
16422         (initial_offset): Update.
16423         (mn10300_builtin_saveregs):
16424         * config/mn10300/mn10300.md (return expander): Update.
16425         * config/ia64/ia64.c (ia64_compute_frame_size): Update.
16426         (ia64_initial_elimination_offset): Update.
16427         (ia64_initial_elimination_offset): Update.
16428         (ia64_expand_prologue): Update.
16429         * config/m68k/m68k.md (return expander): Update.
16430         * config/rs6000/rs6000.c (rs6000_va_start): Update.
16431         (rs6000_stack_info): Update.
16432         * config/mcore/mcore.c (layout_mcore_frame): Update.
16433         (mcore_expand_prolog): Update.
16434         * config/arc/arc.c (arc_compute_frame_size): Update.
16435         * config/score/score3.c (score3_compute_frame_size): Update.
16436         * config/score/score7.c (score7_compute_frame_size): Update.
16437         * config/arm/arm.c (use_return_insn): Update.
16438         (thumb_find_work_register): Update.
16439         (arm_compute_save_reg_mask): Update.
16440         (arm_output_function_prologue): Update.
16441         (arm_output_epilogue): Update.
16442         (arm_size_return_regs): Update.
16443         (arm_get_frame_offsets): Update.
16444         (arm_expand_prologue): Update.
16445         (thumb_exit): Update.
16446         (thumb_unexpanded_epilogue): Update.
16447         (thumb1_output_function_prologue): Update.
16448         * config/pa/pa.md (return expander): Update.
16449         * config/pa/pa.c (compute_frame_size): Update.
16450         (hppa_builtin_saveregs): Update.
16451         * config/mips/mips.c (mips_va_start): Update.
16452         (mips16_build_function_stub): Update.
16453         (mips_compute_frame_info): Update.
16454         (mips_restore_gp): Update.
16455         (mips_output_function_prologue): Update.
16456         (mips_expand_prologue): Update.
16457         * config/v850/v850.c (compute_frame_size): Update.
16458         (expand_prologue): * config/mmix/mmix.c (along): update.
16459         (mmix_initial_elimination_offset): update.
16460         (mmix_reorg): update.
16461         (mmix_use_simple_return): update.
16462         (mmix_expand_prologue): update.
16463         (mmix_expand_epilogue): Update.
16464         * config/bfin/bfin.c (bfin_initial_elimination_offset): Update.
16465         (emit_link_insn): Update.
16466
16467 2008-04-08  Anatoly Sokolov <aesok@post.ru>
16468
16469         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Define
16470         __AVR_HAVE_EIJMP_EICALL__ macro if device have EIJMP and EICALL
16471         instructions.
16472         * config/avr/avr.c (avr_mcu_types): Set AVR31 architecture for
16473         atmega103 device.
16474
16475 2008-04-07  Jan Hubicka  <jh@suse.cz>
16476
16477         * function.h (rtl): Rename to x_rtl.
16478         (crtl): New define.
16479         (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
16480         frame_offset, stack_check_probe_note, arg_pointer_save_area,
16481         used_temp_slots avail_temp_slots, temp_slot_level,
16482         nonlocal_goto_handler_labels): Update accesstors.
16483         (rtl): New global variable.
16484         (struct function): Move some fileds to rtl_data.
16485         (get_arg_pointer_save_area): Update prototype.
16486         * builtins.c (expand_builtin_setjmp_receiver): Update call of
16487         get_arg_pointer_save_area.
16488         * expr.c (init_expr): Update
16489         * function.c (get_frame_size): Update
16490         (assign_stack_local): Update
16491         (expand_function_end): Update.
16492         (get_art_pointer_save_area): Update
16493         * function.h
16494         * emit-rtl.c (rtl): Declare.
16495         (regno_reg_rtx): Declare.
16496         (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
16497         Update.
16498         (gen_reg_rtx): Update.
16499         * varasm.c (n_deferred_constatns): Update accestor.
16500         (init_varasm_status): Do not allocate varasm_status.
16501         (force_const_mem, get_pool_size, output_constant_pool): Update.
16502         * stmt.c (force_label_rtx): Do not use x_ prefixes.
16503         (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
16504         * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Update.
16505         * sparc/sparc.h (INIT_EXPANDERS): Update.
16506         * ia64/ia64.h (INIT_EXPANDERS): Update.
16507
16508 2008-04-07  James E. Wilson  <wilson@tuliptree.org>
16509
16510         * reload.c (push_secondary_reload): Add missing break to for loop.
16511
16512 2008-04-07  Peter Bergner  <bergner@vnet.ibm.com>
16513
16514         PR middle-end/PR28690
16515         * rtlanal.c: Update copyright years.
16516         (commutative_operand_precedence): Give SYMBOL_REF's the same precedence
16517         as REG_POINTER and MEM_POINTER operands.
16518         * emit-rtl.c (gen_reg_rtx_and_attrs): New function.
16519         (set_reg_attrs_from_value): Call mark_reg_pointer as appropriate.
16520         * rtl.h (gen_reg_rtx_and_attrs): Add prototype for new function.
16521         * gcse.c: Update copyright years.
16522         (pre_delete): Call gen_reg_rtx_and_attrs.
16523         (hoist_code): Likewise.
16524         (build_store_vectors): Likewise.
16525         (delete_store): Likewise.
16526         * loop-invariant.c (move_invariant_reg): Likewise.
16527         Update copyright years.
16528
16529 2008-04-07  Uros Bizjak  <ubizjak@gmail.com>
16530
16531         * config/i386/i386.md ("*sse_prologue_save_insn"): Use braced output
16532         control string instead of quoted.
16533
16534 2008-04-07  Kenneth Zadeck  <zadeck@naturalbridge.com>
16535
16536         * doc/rtl.texi: Rewrite of subreg section.
16537
16538 2008-04-07  Kai Tietz  <kai.tietz@onevision.com>
16539
16540         PR/35842
16541         * config/i386/i386.c (legitimize_pic_address): Add treating
16542         of dllimport SYM_REF's.
16543         (legitimize_dllimport_symbol): Add prototype.
16544
16545 2008-04-07  Eric Botcazou  <ebotcazou@adacore.com>
16546
16547         * fold-const.c (fold) <ARRAY_REF>: New case.  Try to fold constant
16548         reference in constructor with non self-referential type.
16549
16550 2008-04-07  Eric Botcazou  <ebotcazou@adacore.com>
16551
16552         Removal of Return with Depressed Stack Pointer support
16553         * tree.h (TYPE_RETURNS_STACK_DEPRESSED): Delete.
16554         (ECF_SP_DEPRESSED): Likewise.
16555         (ECF_LIBCALL_BLOCK, ECF_NOVOPS): Adjust.
16556         * calls.c (emit_call_1): Do not test ECF_SP_DEPRESSED.
16557         (flags_from_decl_or_type): Do not test TYPE_RETURNS_STACK_DEPRESSED.
16558         (expand_call): Do not test ECF_SP_DEPRESSED.
16559         * dse.c (dse_step0): Do not test TYPE_RETURNS_STACK_DEPRESSED.
16560         * function.c (keep_stack_depressed): Delete.
16561         (handle_epilogue_set): Likewise.
16562         (update_epilogue_consts): Likewise.
16563         (emit_equiv_load): Likewise.
16564         (thread_prologue_and_epilogue_insns): Remove support for Return with
16565         Depressed Stack Pointer.
16566         * print-tree.c (print_node): Do not test TYPE_RETURNS_STACK_DEPRESSED.
16567
16568 2008-04-06  Richard Guenther  <rguenther@suse.de>
16569
16570         PR tree-optimization/35400
16571         * tree-vrp.c (vrp_evaluate_conditional): Only query value-range
16572         information from SSA_NAMEs.
16573
16574 2008-04-06  Anatoly Sokolov <aesok@post.ru>
16575
16576         * config/avr/avr.h (avr_mega_p): Remove declaration.
16577         (AVR_MEGA): Remove macro.
16578         * config/avr/avr.c (avr_mega_p): Remove variable.
16579         (avr_override_options): Remove inicializion of avr_mega_p.
16580         Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
16581         (print_operand): Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
16582         (avr_jump_mode): (Ditto.).
16583         (avr_output_progmem_section_asm_op): (Ditto.).
16584         (avr_asm_init_sections): (Ditto.).
16585         (avr_asm_init_sections): (Ditto.).
16586         (avr_rtx_costs): (Ditto.).
16587         * config/avr/avr.md: (Ditto.).
16588         * config/avr/avr.h: Use '__AVR_HAVE_JMP_CALL__' instead of
16589         '__AVR_MEGA__'.
16590
16591 2008-04-06  Richard Guenther  <rguenther@suse.de>
16592
16593         PR tree-optimization/35842
16594         * tree-ssa-address.c (fixed_address_object_p): Adjust to match
16595         is_gimple_invariant_address.
16596
16597 2008-04-06  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
16598
16599         * gcc.c (default_compilers): Sync Fortran extensions list with
16600         that in fortran/lang-specs.h.
16601         * doc/invoke.texi: Likewise.
16602         * dbxout.c (get_lang_number): Use "GNU Fortran" in "GNU F95".
16603         * dwarf2out.c (gen_compile_unit_die): Likewise.
16604
16605 2008-04-06  Tom G. Christensen  <tgc@jupiterrise.com>
16606
16607         * gthr-posix95.h (__gthread_cond_wait_recursive): Add missing &.
16608
16609 2008-04-05  Uros Bizjak  <ubizjak@gmail.com>
16610
16611         PR target/12329
16612         * config/i386/i386.c (ix86_function_regparm): Error if regparm(3)
16613         attribute is used for nested functions.
16614
16615 2008-04-05  Jan Hubicka  <jh@suse.cz>
16616
16617         * emit-rtl.c (init_emit): xcalloc regno_pointer_align.
16618
16619         * tree-dump.c (dump_enable_all): Remove prototype; do not accept
16620         letter argument.
16621         (dump_files): Update.
16622         (enable_rtl_dump_file): Do not accept letter argument.
16623         * tree-pass.h (dump_file_info): Remove letter argument.
16624         * toplev.c (decode_d_option): Update -da handling.
16625         * toplev.h (enable_rtl_dump_file): Update prototype.
16626         * passes.c (register_one_dump_file): Do not accept IPA argument; work
16627         it out based on pass type.
16628         (register_dump_files_1): Likewise.
16629         (init_optimization_passes): Update register_one_dump_file calls.
16630         (execute_one_pass): Sanity check that IPA passes are called at IPA
16631         level and RTL passes at RTL level.
16632         (execute_pass_list): IPA pass can not be after or subpass of
16633         GIMPLE/RTL pass.
16634         (execute_ipa_pass_list): Handle IPA subpasses of IPA subpasses and
16635         disallov RTL subpasses of IPA subpasses.
16636
16637 2008-04-05  Ben Elliston  <bje@au.ibm.com>
16638
16639         * tree-cfg.c (need_fake_edge_p): Return false for calls to
16640         builtins that return exactly once and do not throw. Cache call to
16641         call_expr_flags.
16642
16643 2008-04-04 Andy Hutchinson <hutchinsonandy@aim.com>
16644
16645         PR rtl-optimization/34916
16646         PR middle-end/35519
16647         * combine.c (create_log_links): Do not create duplicate LOG_LINKS
16648         between instruction pairs.
16649
16650 2008-04-04  Naveen.H.S  <naveen.hs@kpitcummins.com>
16651
16652         * doc/invoke.texi: Document -mbitops for SH.
16653         * config/sh/constraints.md (K03, K12, Sbv, Sbw): New constraints.
16654         * config/sh/predicates.md (bitwise_memory_operand): New predicate.
16655         * config/sh/sh.c (print_operand): Add %t operand code.
16656         * config/sh/sh.h (GO_IF_LEGITIMATE_INDEX): Add condition for SH2A.
16657         * config/sh/sh.md (*iorsi3_compact): Fix condition for SH2A.
16658         (extendqisi2_compact): Add the alternative for SH2A 4-byte mov.b.
16659         (extendqihi2): Likewise.
16660         (movqi_i): Likewise.
16661         (insv): Use bset, bclr and bst instructions for SH2A if possible.
16662         (extv): Use bld instruction for SH2A if possible.
16663         (extzv): Likewise.
16664         (bclr_m2a, bclrmem_m2a, bset_m2a, bsetmem_m2a, bst_m2a, bld_m2a,
16665         bldsign_m2a, bld_reg, *bld_regqi, band_m2a, bandreg_m2a,
16666         bor_m2a, borreg_m2a, bxor_m2a, bxorreg_m2a): New insns.
16667         (bset.b, bclr.b): Define peepholes.
16668         * config/sh/sh.opt (mbitops): New option.
16669
16670 2008-04-04  Janis Johnson  <janis187@us.ibm.com>
16671
16672         PR target/35620
16673         * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle indirect ref
16674         and view convert expression.
16675
16676 2008-04-04  Jakub Jelinek  <jakub@redhat.com>
16677
16678         PR target/35364
16679         * tree-cfg.c (remove_useless_stmts_1): Handle OMP_* containers.
16680
16681 2008-04-04  H.J. Lu  <hongjiu.lu@intel.com>
16682
16683         * config.gcc (extra_headers): Add wmmintrin.h for x86 and x86-64.
16684
16685         * config/i386/cpuid.h (bit_AES): New.
16686         (bit_PCLMUL): Likewise.
16687
16688         * config/i386/i386.c (pta_flags): Add PTA_AES and PTA_PCLMUL.
16689         (override_options): Handle PTA_AES and PTA_PCLMUL.  Enable
16690         SSE2 if AES or PCLMUL is enabled.
16691         (ix86_builtins): Add IX86_BUILTIN_AESENC128,
16692         IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
16693         IX86_BUILTIN_AESDECLAST128, IX86_BUILTIN_AESIMC128,
16694         IX86_BUILTIN_AESKEYGENASSIST128 and IX86_BUILTIN_PCLMULQDQ128.
16695         (bdesc_sse_3arg): Add IX86_BUILTIN_PCLMULQDQ128.
16696         (bdesc_2arg): Add IX86_BUILTIN_AESENC128,
16697         IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
16698         IX86_BUILTIN_AESDECLAST128 and IX86_BUILTIN_AESKEYGENASSIST128.
16699         (bdesc_1arg): Add IX86_BUILTIN_AESIMC128.
16700         (ix86_init_mmx_sse_builtins): Define __builtin_ia32_aesenc128,
16701         __builtin_ia32_aesenclast128, __builtin_ia32_aesdec128,
16702         __builtin_ia32_aesdeclast128,__builtin_ia32_aesimc128,
16703         __builtin_ia32_aeskeygenassist128 and
16704         __builtin_ia32_pclmulqdq128.
16705         * config/i386/i386.c (ix86_expand_binop_imm_builtin): New.
16706         (ix86_expand_builtin): Use it for IX86_BUILTIN_PSLLDQI128 and
16707         IX86_BUILTIN_PSRLDQI128.  Handle IX86_BUILTIN_AESKEYGENASSIST128.
16708
16709         * config/i386/i386.h (TARGET_AES): New.
16710         (TARGET_PCLMUL): Likewise.
16711         (TARGET_CPU_CPP_BUILTINS): Handle TARGET_AES and TARGET_PCLMUL.
16712
16713         * config/i386/i386.md (UNSPEC_AESENC): New.
16714         (UNSPEC_AESENCLAST): Likewise.
16715         (UNSPEC_AESDEC): Likewise.
16716         (UNSPEC_AESDECLAST): Likewise.
16717         (UNSPEC_AESIMC): Likewise.
16718         (UNSPEC_AESKEYGENASSIST): Likewise.
16719         (UNSPEC_PCLMUL): Likewise.
16720
16721         * config/i386/i386.opt (maes): New.
16722         (mpclmul): Likewise.
16723
16724         * config/i386/sse.md (aesenc): New pattern.
16725         (aesenclast): Likewise.
16726         (aesdec): Likewise.
16727         (aesdeclast): Likewise.
16728         (aesimc): Likewise.
16729         (aeskeygenassist): Likewise.
16730         (pclmulqdq): Likewise.
16731
16732         * config/i386/wmmintrin.h: New.
16733
16734         * doc/extend.texi: Document AES and PCLMUL built-in function.
16735
16736         * doc/invoke.texi: Document -maes and -mpclmul.
16737
16738 2008-04-04  Paolo Bonzini  <bonzini@gnu.org>
16739
16740         * function.c (free_after_parsing): Replace with
16741         cxx_push_function_context from C++ front-end.
16742         (allocate_struct_function): Don't call langhook.
16743         * langhooks.h (struct lang_hooks_for_functions): Delete.
16744         (struct lang_hooks): Add back missing_noreturn_ok_p here, delete
16745         member "function".
16746         * langhooks-def.h (LANG_HOOKS_MISSING_NORETURN_OK_P): Add.
16747         (LANG_HOOKS_FUNCTION_INIT, LANG_HOOKS_FUNCTION_FINAL,
16748         LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P,
16749         LANG_HOOKS_FUNCTION_INITIALIZER): Delete.
16750         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_MISSING_NORETURN_OK_P,
16751         remove LANG_HOOKS_FUNCTION_INITIALIZER.
16752         * tree-cfg.c: Adjust call to missing_noreturn_ok_p langhook.
16753
16754         * c-objc-common.h (LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P):
16755         Rename to LANG_HOOKS_MISSING_NORETURN_OK_P.
16756
16757 2008-04-04  Jakub Jelinek  <jakub@redhat.com>
16758
16759         PR c/35440
16760         * c-pretty-print.c (pp_c_initializer_list): Handle CONSTRUCTOR
16761         for all types.
16762
16763 2008-04-04  Richard Guenther  <rguenther@suse.de>
16764
16765         PR middle-end/35823
16766         * fold-const.c (optimize_minmax_comparison): Use the correct
16767         type for the constant in the simplified comparison.
16768
16769 2008-04-04  Zuxy Meng <zuxy.meng@gmail.com>
16770
16771         * config/i386/driver-i386.c (describe_cache): Add l2_sizekb argument.
16772         Pass L2 size as "--param l2-cache-size" to the compiler.
16773         (decode_l2_cache): New function to decode L2 cache parameters using
16774         0x8000006 extended cpuid function.
16775         (detect_caches_amd): Determine parameters of L2 cache using
16776         decode_l2_caches function.
16777         (decode_caches_intel): Decode L2 cache parameters.
16778         (detect_caches_intel): Determine L2 cache parameters using
16779         decode_caches_intel and decode_l2_caches functions.
16780
16781 2008-04-03  Bob Wilson  <bob.wilson@acm.org>
16782
16783         * config/xtensa/xtensa.c (xtensa_secondary_reload_class): Use a
16784         secondary input reload for subword loads from the constant pool.
16785
16786 2008-04-03  Janis Johnson  <janis187@us.ibm.com>
16787
16788         PR target/35713
16789         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use integer
16790           constants of the appropriate size for runtime calculations.
16791
16792         PR c/35712
16793         * dfp.c (decimal_from_decnumber): Retain trailing zeroes for
16794           decimal-float literal constant zero.
16795
16796 2008-04-03  Jakub Jelinek  <jakub@redhat.com>
16797
16798         PR c/35738
16799         * c-parser.c (c_parser_omp_atomic): Call
16800         default_function_array_conversion on the RHS.
16801
16802         PR middle-end/35818
16803         * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: Don't
16804         call is_variable_sized if decl has incomplete type.
16805
16806 2008-04-03  H.J. Lu  <hongjiu.lu@intel.com>
16807
16808         * config/i386/i386-protos.h (ix86_aligned_p): Removed.
16809
16810 2008-04-03  Adam Nemet  <anemet@caviumnetworks.com>
16811
16812         * config/mips/mips.md (any_gt, any_ge, any_lt, any_le): New code
16813         iterators.
16814         (u): Add attribute values for gt, gtu, ge, geu, lt, ltu, le and leu.
16815         (sgt<u>): Merge sgt and sgtu into new expander.
16816         (sgt, sgtu): Remove expanders.
16817         (*sgt<u>_<mode>): Merge *sgt_<mode> and *sgtu_<mode> into new pattern.
16818         (*sgt_<mode>, *sgtu_<mode>): Remove patterns.
16819         (*sgt<u>_<mode>_mips16): Merge *sgt_<mode>_mips16 and
16820         *sgtu_<mode>_mips16 into new pattern.
16821         (*sgt_<mode>_mips16, *sgtu_<mode>_mips16): Remove patterns.
16822         (sge<u>): Merge sge and sgeu into new expander.
16823         (sge, sgeu): Remove expanders.
16824         (*sge<u>_<mode>): Merge *sge_<mode> and second *sge_<mode> into
16825         new pattern.
16826         (*sge_<mode>, second *sge_<mode>): Remove patterns.
16827         (slt<u>): Merge slt and sltu into new expander.
16828         (slt, sltu): Remove expanders.
16829         (*slt<u>_<mode>): Merge *slt_<mode> and *sltu_<mode> into new pattern.
16830         (*slt_<mode>, *sltu_<mode>): Remove patterns.
16831         (*slt<u>_<mode>_mips16): Merge *slt_<mode>_mips16 and
16832         *sltu_<mode>_mips16 into new pattern.
16833         (*slt_<mode>_mips16, *sltu_<mode>_mips16): Remove patterns.
16834         (sle<u>): Merge sle and sleu into new expander.
16835         (sle, sleu): Remove expanders.
16836         (*sle<u>_<mode>): Merge *sle_<mode> and *sleu_<mode> into new pattern.
16837         (*sle_<mode>, *sleu_<mode>): Remove patterns.
16838         (*sle<u>_<mode>_mips16): Merge *sle_<mode>_mips16 and
16839         *sleu_<mode>_mips16 into new pattern.
16840         (*sle_<mode>_mips16, *sleu_<mode>_mips16): Remove patterns.
16841
16842 2008-04-03  Jan Hubicka  <jh@suse.cz>
16843
16844         PR tree-optimization/35795
16845         * alpha/alpha.c (alpha_output_mi_thunk_osf): Free after compilation.
16846         * sparc/sparc.c (sparc_output_mi_thunk): Likewise.
16847         * ia64/ia64.c (ia64_output_mi_thunk): Likewise.
16848         * m68k/m68k.c (m68k_output_mi_thunk): Likewise.
16849         * score/score3.c (score3_output_mi_thunk): Likewise.
16850         * score/score7.c (score7_output_mi_thunk): Likewise.
16851         * mips/mips.c (mips_output_mi_thunk): Likewise.
16852
16853 2008-04-03  Richard Guenther  <rguenther@suse.de>
16854
16855         * tree-vrp.c (extract_range_from_unary_expr): Handle all
16856         conversions.  Simplify code.
16857
16858 2008-04-03  Kaz Kojima  <kkojima@gcc.gnu.org>
16859
16860         * config/sh/sh.c (sh_output_mi_thunk): Free cfun.
16861
16862 2008-04-03  Tom Tromey  <tromey@redhat.com>
16863             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16864
16865         * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
16866         * config/bfin/t-bfin-linux (generated_files): Add
16867         linux-sysroot-suffix.h.
16868         * doc/install.texi (Prerequisites): Require make 3.80.
16869         * doc/sourcebuild.texi (Front End Directory): Document new
16870         variable.
16871         * Makefile.in (generated_files): New variable.
16872         (ALL_HOST_OBJS): New variable.
16873         ($(ALL_HOST_OBJS)): New target.
16874
16875 2008-04-03  Paolo Bonzini  <bonzini@gnu.org>
16876
16877         * tree-inline.c (copy_generic_body, copy_decl_no_change): Export.
16878         (remap_block): Call id->transform_lang_insert_block instead
16879         of langhook.
16880         (optimize_inline_calls, unsave_expr_now, tree_function_versioning):
16881         Set id.transform_lang_insert_block to NULL.
16882         (clone_body): Move to cp/optimize.c
16883         * tree-inline.h (struct copy_body_data): Change
16884         transform_lang_insert_block to function pointer.
16885         (copy_generic_body, copy_decl_no_change): Export.
16886         * langhooks.h (struct lang_hooks_for_decls): Kill insert_block.
16887         * langhooks-def.h (LANG_HOOKS_INSERT_BLOCK): Kill.
16888         (LANG_HOOKS_DECLS): Remove LANG_HOOKS_INSERT_BLOCK.
16889
16890         * c-tree.h (insert_block): Kill.
16891         * c-decl.c (insert_block): Kill.
16892
16893 2008-04-03  Paolo Bonzini  <bonzini@gnu.org>
16894
16895         * c-objc-common.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
16896         LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
16897         * c-tree.h (c_push_function_context, c_pop_function_context): Remove
16898         argument.
16899         * c-decl.c (c_push_function_context, c_pop_function_context): Remove
16900         argument, call {push,pop}_function_context from here.
16901         * c-parser.c: Use c_{push,pop}_function_context.
16902
16903         * function.c (push_function_context_to): Move meat ...
16904         (push_function_context): ... here.  Simplify.
16905         * function.c (pop_function_context_from): Move meat ...
16906         (pop_function_context): ... here.  Simplify.
16907         * langhooks.h (struct lang_hooks_for_functions): Remove enter_nested,
16908         leave_nested).
16909         * langhooks-def.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
16910         LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
16911         (LANG_HOOKS_FUNCTION_INITIALIZER): Delete them from here.
16912         * tree.h (push_function_context_to, pop_function_context_from): Remove.
16913
16914 2008-04-03  Ben Elliston  <bje@au.ibm.com>
16915
16916         * expmed.c (extract_force_align_mem_bit_field): Remove.
16917
16918 2008-04-03  Richard Guenther  <rguenther@suse.de>
16919
16920         PR middle-end/35800
16921         * expr.h (try_casesi): Adjust prototype.
16922         * expr.c (try_casesi): Take fallback label as extra parameter.
16923         Use that for gen_casesi if default_label is NULL.
16924         * stmt.c (expand_case): Pass fallback label to try_casesi,
16925         make sure to fill gaps with a fallback label if default_label
16926         is not present.
16927
16928 2008-04-03  Dominique d'Humières <dominiq@lps.ens.fr>
16929
16930         PR target/35801
16931         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Free cfun.
16932
16933 2008-04-03  Ben Elliston  <bje@au.ibm.com>
16934
16935         * expmed.c (extract_split_bit_field): Remove if (0) code.
16936         * tree-ssa-structalias.c (do_sd_constraint): Likewise.
16937         (do_ds_constraint): Likewise.
16938
16939 2008-04-02  Joseph Myers  <joseph@codesourcery.com>
16940
16941         * doc/cppopts.texi (-dU): Document.
16942         * c-common.h (flag_dump_macros): Update comment.
16943         * c-opts.c (handle_OPT_d): Handle -dU.
16944         * c-ppoutput.c (macro_queue, define_queue, undef_queue,
16945         dump_queued_macros, cb_used_define, cb_used_undef): New.
16946         (init_pp_output): Handle -dU.
16947         (cb_line_change): Call dump_queued_macros.
16948         * toplev.c (decode_d_option): Accept -dU as preprocessor option.
16949
16950 2008-04-02  Anatoly Sokolov <aesok@post.ru>
16951
16952         * config/avr/predicates.md (io_address_operand): New predicate.
16953         * config/avr/avr-protos.h (avr_io_address_p): Remove declaration.
16954         * config/avr/avr.c (avr_io_address_p): Remove function.
16955         (out_movqi_r_mr): Use 'io_address_operand' predicate instead of
16956         'avr_io_address_p' function.
16957         (out_movhi_r_mr): (Ditto.).
16958         (out_movqi_mr_r): (Ditto.).
16959         (out_movhi_mr_r): (Ditto.).
16960         (avr_address_cost): (Ditto.).
16961
16962 2008-04-02  Uros Bizjak  <ubizjak@gmail.com>
16963
16964         * config/i386/i386.md (*float<SSEMODEI24:mode><X87MODEF:mode>2_1):
16965         Emit gen_floatdi<X87MODEF:mode>2_i387_with_xmm for DImode values
16966         in 32bit mode when XMM registers are available to avoid store
16967         forwarding stalls.
16968         (floatdi<X87MODEF:mode>2_i387_with_xmm): New insn pattern and
16969         corresponding post-reload splitters.
16970
16971 2008-04-02  H.J. Lu  <hongjiu.lu@intel.com>
16972
16973         * config/i386/i386.c (bdesc_sse_3arg): Add __builtin_ia32_shufps
16974         and __builtin_ia32_shufpd.  Provide __builtin_ia32_roundsd and
16975         __builtin_ia32_roundss.
16976         (ix86_init_mmx_sse_builtins): Remove __builtin_ia32_shufps,
16977         __builtin_ia32_shufpd, __builtin_ia32_roundsd and
16978         __builtin_ia32_roundss.
16979         (ix86_expand_builtin): Don't handle IX86_BUILTIN_SHUFPS and
16980         IX86_BUILTIN_SHUFPD here.
16981
16982 2008-04-02  H.J. Lu  <hongjiu.lu@intel.com>
16983
16984         * config/i386/i386.md (plogic): New.
16985         (plogicprefix): Likewise.
16986
16987         * config/i386/mmx.md (mmx_<code><mode>3): New.
16988         (mmx_and<mode>3): Removed.
16989         (mmx_ior<mode>3): Likewise.
16990         (mmx_xor<mode>3): Likewise.
16991
16992         * config/i386/sse.md (<code><mode>3): New.
16993         (*<code><mode>3): Likewise.
16994         (*<code><mode>3): Likewise.
16995         (<code><mode>3): Likewise.
16996         (*sse_<code><mode>3): Likewise.
16997         (*sse2_<code><mode>3): Likewise.
16998         (<code>tf3): Likewise.
16999         (*<code>tf3): Likewise.
17000         (and<mode>3): Likewise.
17001         (*and<mode>3): Likewise.
17002         (ior<mode>3): Removed.
17003         (*ior<mode>3): Likewise.
17004         (xor<mode>3): Likewise.
17005         (*xor<mode>3): Likewise.
17006         (*and<mode>3): Likewise.
17007         (*ior<mode>3): Likewise.
17008         (*xor<mode>3): Likewise.
17009         (and<mode>3): Likewise.
17010         (*sse_and<mode>3): Likewise.
17011         (*sse2_and<mode>3): Likewise.
17012         (andtf3): Likewise.
17013         (*andtf3): Likewise.
17014         (ior<mode>3): Likewise.
17015         (*sse_ior<mode>3): Likewise.
17016         (*sse2_ior<mode>3): Likewise.
17017         (iortf3): Likewise.
17018         (*iortf3): Likewise.
17019         (xor<mode>3): Likewise.
17020         (*sse_xor<mode>3): Likewise.
17021         (*sse2_xor<mode>3): Likewise.
17022         (xortf3): Likewise.
17023         (*xortf3): Likewise.
17024
17025 2008-04-02  Richard Guenther  <rguenther@suse.de>
17026
17027         PR tree-optimization/14495
17028         PR tree-optimization/34793
17029         * tree-vrp.c (struct switch_update): New structure.
17030         (to_remove_edges, to_update_switch_stmts): New VECs.
17031         (simplify_switch_using_ranges): New function.  Remove not taken
17032         case labels and edges.
17033         (simplify_stmt_using_ranges): Call it.
17034         (identify_jump_threads): Mark edges we have queued for removal
17035         so we don't thread them.
17036         (execute_vrp): Remove edges queued for removal, update SWITCH_STMT
17037         case label vector.
17038         * tree-cfg.c (group_case_labels): Deal with missing default label.
17039         (tree_verify_flow_info): Allow missing default label.
17040         * stmt.c (emit_case_bit_tests): Deal with NULL default_label.
17041         (emit_case_nodes): Likewise.
17042         (expand_case): Do not rely on the default label to be present.
17043         * expr.c (try_casesi): Deal with NULL default_label.
17044         (do_tablejump): Likewise.
17045
17046 2008-04-02  Richard Guenther  <rguenther@suse.de>
17047
17048         PR tree-optimization/14495
17049         * tree-vrp.c (vrp_visit_cond_stmt): Do not handle
17050         SWITCH_EXPR here ...
17051         (vrp_visit_switch_stmt): ... but here (new function).
17052         (find_case_label_index): New helper function.
17053         (vrp_visit_stmt): Dispatch to vrp_visit_switch_stmt.
17054
17055 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
17056
17057         * fwprop.c: Fix ISO-C99ism.
17058
17059 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
17060
17061         PR bootstrap/35752
17062         * Makefile.in (objdir): Set it here.
17063         * configure.ac: Not here.  Find dynamic linker characteristics.
17064         * exec-tool.in: Use them.
17065         * aclocal.m4: Regenerate.
17066         * configure: Regenerate.
17067
17068 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
17069
17070         * expr.c (expand_var): Delete it.
17071         * expr.h (expand_var): Delete prototype.
17072         * function.c (expand_function_start): Use expand_decl instead.
17073         * cfgexpand.c (expand_one_static_var, expand_one_var): Don't call
17074         langhook.
17075
17076 2008-04-02  Andy Hutchinson <hutchinsonamdy@aim.com>
17077
17078         PR rtl-optimization/35542
17079         * fwprop.c (forward_propagate_and_simplify): Replace
17080         loc_reg_mentioned_in_p with reg_mentioned_p.
17081
17082 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
17083
17084         PR rtl-optimization/35281
17085         * fwprop.c (PR_CAN_APPEAR, PR_HANDLE_MEM): New.
17086         (propagate_rtx_1): Handle PR_HANDLE_MEM.
17087         (propagate_rtx): Pass PR_HANDLE_MEM if appropriate.
17088         (varying_mem_p): Move above propagate_rtx.
17089         (all_uses_available_at): Do not check MEMs.
17090
17091 2008-04-02  Rafael Espíndola  <espindola@google.com>
17092
17093         * tree-vrp.c (extract_code_and_val_from_cond): Remove.
17094         (register_edge_assert_for_2): Split the cond argument.
17095         (register_edge_assert_for_1): Adjust for the change in
17096         register_edge_assert_for_2.
17097         (register_edge_assert_for): Split the cond argument.
17098         (find_switch_asserts): Adjust for the change in
17099         register_edge_assert_for.
17100
17101 2008-04-02  Kai Tietz  <kai.tietz@onevision.com>
17102
17103         * config.gcc: Add for x86_64-*-mingw* the t-crtfm to tbuild.
17104         * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Add 8 byte
17105         offsets for 64-bit mingw.
17106         * config/i386/i386.c (ix86_pass_by_reference): Correct calling
17107         abi for x86_64-pc-mingw.
17108
17109 2008-04-02  Richard Guenther  <rguenther@suse.de>
17110
17111         * tree-vrp.c (extract_range_from_assert): Make sure to not
17112         produce range min/max with TREE_OVERFOW set.
17113         If merging a anti-range and a range keep the anti-range if
17114         the range covers all values of the type.
17115         (register_edge_assert_for_2): Only allow sign-changing
17116         conversions in detecting canonical range checks.  Also
17117         register an assert for the unsigned name if useful.
17118
17119         PR tree-optimization/35787
17120         * tree-vrp.c (vrp_val_max): New function.
17121         (vrp_val_min): Likewise.
17122         (vrp_val_is_max): Move earlier, use vrp_val_{min,max}.
17123         (vrp_val_is_min): Likewise.
17124         (supports_overflow_infinity): Use vrp_val_{min,max}.
17125         (negative_overflow_infinity): Likewise.
17126         (positive_overflow_infinity): Likewise.
17127         (is_negative_overflow_infinity): Use vrp_val_is_{min,max}.
17128         (is_positive_overflow_infinity): Likewise.
17129         (is_overflow_infinity): Likewise.
17130         (avoid_overflow_infinity): Use vrp_val_{min,max} and
17131         vrp_val_is_{min,max}.
17132         (set_and_canonicalize_value_range): Canonicalize anti-ranges
17133         to ranges if possible.  Avoid empty ranges.
17134
17135 2008-04-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
17136
17137         PR middle-end/35705
17138         * fold-const.c (get_pointer_modulus_and_residue): Return modulus 1 if
17139         the expression is a function address.
17140
17141 2008-04-01  George Helffrich  <george@gcc.gnu.org>
17142
17143         PR fortran/35154, fortran/23057
17144         * dbxout.c: Emit .stabs debug info for Fortran COMMON block
17145         variables as base symbol name + offset using N_BCOMM/N_ECOMM.
17146         (is_fortran, dbxout_common_name, dbxout_common_check): New functions.
17147         (dbxout_symbol_location): Transform N_LCSYM to N_GSYM for storage
17148         in common.
17149         (dbxout_syms): Check for COMMON-based symbol and wrap in
17150         N_BCOMM/N_ECOMM stab bracket, including as many symbols as possible
17151         in bracket for efficiency.
17152
17153         * dwarf2out.c: Emit DWARF debug info for Fortran COMMON block
17154         using DW_TAG_common_block + member offset.
17155         (add_pubname_string): New function.
17156         (dw_expand_expr): New function to find block name and offset for
17157         COMMON var.
17158         (common_check): New function to check whether symbol in Fortran COMMON.
17159         (gen_variable_die): If COMMON, use DW_TAG_common_block.
17160
17161 2008-04-01  Volker Reichelt  <v.reichelt@netcologne.de>
17162
17163         PR c/35436
17164         * c-format.c (init_dynamic_gfc_info): Ignore invalid locus type.
17165
17166 2008-04-02  Ben Elliston  <bje@au.ibm.com>
17167
17168         * config/v850/v850.md (casesi): Remove if (0) code.
17169         * config/i386/uwin.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
17170         * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
17171
17172 2008-04-01  Uros Bizjak  <ubizjak@gmail.com>
17173
17174         * config/i386/i386.md (rex64suffix): New mode attribute.
17175         (floathi<mode>2): Disable expander for SSE math.
17176         (*floathi<mode>2_1): New insn insn_and_split pattern.
17177         (*floathi<mode>2_i387_with_temp): New macroized instruction pattern and
17178         corresponding post-reload splitters.
17179         (*floathi<mode>2_i387): New macroized insn pattern.
17180         (float<SSEMODEI24:mode><X87MODEF:mode>2): New macroized expander.
17181         (*float<SSEMODEI24:mode><X87MODEF:mode>2_1): New macroized
17182         insn_and_split pattern.
17183         (*floatsi<mode>2_vector_mixed_with_temp, *floatsi<mode>2_vector_mixed):
17184         New macroized instruction patterns and corresponding post-reload
17185         splitters.
17186         (*floatsi<mode>2_mixed_with_temp): New macroized instruction pattern
17187         and corresponding post-reload splitters.
17188         (*floatsi<mode>2_mixed_interunit, *floatsi<mode>2_mixed_nointerunit):
17189         New macroized instruction patterns.
17190         (*floatsi<mode>2_vector_sse_with_temp, *floatsi<mode>2_vector_sse): New
17191         macroized instruction patterns and corresponding post-reload splitters.
17192         (*floatsi<mode>2_sse_with_temp): New macroized instruction pattern and
17193         corresponding post-reload splitters.
17194         (*floatsi<mode>2_sse_interunit, *floatsi<mode>2_mixed_nointerunit):
17195         New macroized instruction patterns.
17196         (*floatsi<mode>2_i387_with_temp): New macroized instruction pattern and
17197         corresponding post-reload splitters.
17198         (*floatsi<mode>2_i387): New macroized instruction patterns.
17199
17200 2008-04-01  H.J. Lu  <hongjiu.lu@intel.com>
17201
17202         * config/i386/i386.md (smaxmin): New.
17203         (umaxmin): Likewise.
17204         (maxminiprefix): Likewise.
17205         (maxminfprefix): Likewise.
17206         (<code><mode>3): Likewise.
17207         (smin<mode>3): Removed.
17208         (smax<mode>3): Likewise.
17209
17210         * config/i386/mmx.md (mmx_<code>v2sf3): New.
17211         (mmx_<code>v4hi3): Likewise.
17212         (mmx_<code>v8qi3): Likewise.
17213         (mmx_smaxv2sf3): Removed.
17214         (mmx_sminv2sf3): Likewise.
17215         (mmx_umaxv8qi3): Likewise.
17216         (mmx_smaxv4hi3): Likewise.
17217         (mmx_uminv8qi3): Likewise.
17218         (mmx_sminv4hi3): Likewise.
17219
17220         * config/i386/sse.md (<addsub><mode>3): New.
17221         (*<addsub><mode>3): Likewise.
17222         (<sse>_vm<addsub><mode>3): Likewise.
17223         (<maxmin><mode>3): Likewise.
17224         (*<maxmin><mode>3_finite): Likewise.
17225         (*<maxmin><mode>3): Likewise.
17226         (<sse>_vm<maxmin><mode>3): Likewise.
17227         (sse3_h<addsub>v4sf3): Likewise.
17228         (sse3_h<addsub>v2df3): Likewise.
17229         (<maxmin>v16qi3): Likewise.
17230         (*<maxmin>v16qi3): Likewise.
17231         (<maxmin>v8hi3): Likewise.
17232         (*<maxmin>v8hi3): Likewise.
17233         (*sse4_1_<maxmin><mode>3): Likewise.
17234         (*sse4_1_<maxmin><mode>3): Likewise.
17235         (add<mode>3): Removed.
17236         (*add<mode>3): Likewise.
17237         (<sse>_vmadd<mode>3): Likewise.
17238         (sub<mode>3): Likewise.
17239         (*sub<mode>3): Likewise.
17240         (<sse>_vmsub<mode>3): Likewise.
17241         (smin<mode>3): Likewise.
17242         (*smin<mode>3_finite): Likewise.
17243         (*smin<mode>3): Likewise.
17244         (<sse>_vmsmin<mode>3): Likewise.
17245         (smax<mode>3): Likewise.
17246         (*smax<mode>3_finite): Likewise.
17247         (*smax<mode>3): Likewise.
17248         (<sse>_vmsmax<mode>3): Likewise.
17249         (sse3_haddv4sf3): Likewise.
17250         (sse3_haddv2df3): Likewise.
17251         (sse3_hsubv4sf3): Likewise.
17252         (sse3_hsubv2df3): Likewise.
17253         (umaxv16qi3): Likewise.
17254         (*umaxv16qi3): Likewise.
17255         (smaxv8hi3): Likewise.
17256         (*smaxv8hi3): Likewise.
17257         (*sse4_1_smax<mode>3): Likewise.
17258         (*sse4_1_umax<mode>3): Likewise.
17259         (uminv16qi3): Likewise.
17260         (*uminv16qi3): Likewise.
17261         (sminv8hi3): Likewise.
17262         (*sminv8hi3): Likewise.
17263         (*sse4_1_smin<mode>3): Likewise.
17264         (*sse4_1_umin<mode>3): Likewise.
17265
17266 2008-04-01  Rafael Espíndola  <espindola@google.com>
17267
17268         * tree-cfg.c (verify_expr): remove in_phi.
17269         (verify_stmt): Don't call walk_tree with verify_expr. Use
17270         is_gimple_min_invariant instead of is_gimple_val.
17271
17272 2008-04-01  Joseph Myers  <joseph@codesourcery.com>
17273
17274         * doc/include/gpl_v3.texi: Update for manpage generation.
17275         * doc/gcc.texi, doc/gccint.texi: Include gpl_v3.texi instead of
17276         gpl.texi.
17277         * doc/sourcebuild.texi: Document gpl_v3.texi as well as gpl.texi.
17278         * Makefile.in (TEXI_GCC_FILES, TEXI_GCCINT_FILES): Include
17279         gpl_v3.texi instead of gpl.texi.
17280         (gpl.pod): New.
17281
17282 2008-04-01  Jakub Jelinek  <jakub@redhat.com>
17283
17284         PR pch/13675
17285         * c-pch.c (c_common_read_pch): On error close (fd) resp. fclose (f).
17286
17287 2008-04-01  Rafael Espíndola  <espindola@google.com>
17288
17289         * tree-vrp.c (extract_code_and_val_from_cond_with_ops): New.
17290         (extract_code_and_val_from_cond): Use
17291         extract_code_and_val_from_cond_with_ops.
17292
17293 2008-04-01  Jan Hubicka  <jh@suse.cz>
17294
17295         * function.c (free_after_compilation): Free epilogue_delay_list.
17296         (prepare_function_start): Assert that previous compilation was freed.
17297
17298 2008-04-01  Jan Hubicka  <jh@suse.cz>
17299             Jim Wilson  <wilson@tuliptree.org>
17300             Andreas Tobler <andreast@gcc.gnu.org>
17301
17302         PR middle-end/35781
17303         * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Use
17304         rtl.emit instead cfun->emit.
17305         * sparc/sparc.h (INIT_EXPANDERS): Likewise.
17306         * ia64/ia64.h (INIT_EXPANDERS): Likewise.
17307
17308 2008-04-01  Ben Elliston  <bje@au.ibm.com>
17309
17310         * doc/c-tree.texi (Function Basics): Fix grammatical error.
17311
17312 2008-03-31  Seongbae Park <seongbae.park@gmail.com>
17313
17314         * common.opt (fprofile-dir=, fprofile-use=, fprofile-generate=):
17315         New options
17316         (fprofile-use): Add var flag_profile_use
17317         * coverage.c (coverage_begin_output): Do not open a gcno file for
17318         output only if -ftest-coverage is set.
17319         Do not add getpwd() to gcda file path.
17320         (build_gcov_info): Check the new flag
17321         flag_profile_datafile_relative_path.
17322         (coverage_init): Use profile_data_prefix.
17323         Read profile counter only if flag_profile_use is set.
17324         * opts.c (common_handle_option): New option fprofile-use=,
17325         fprofile-dir=, fprofile-generate=.
17326         * toplev.c (profile_data_prefix): New variable definition.
17327         * toplev.h (profile_data_prefix): New declaration.
17328         * doc/invoke.tex (Option Summary, Optimization Options):
17329         Add new options.
17330
17331 2008-03-31  James E. Wilson  <wilson@tuliptree.org>
17332
17333         * varasm.c (output_constant_pool_1): In LABEL_REF check,
17334         use tmp consistently.
17335
17336         PR target/35695
17337         * config/ia64/div.md (recip_approx_rf): Use UNSPEC not DIV.
17338         * config/ia64/ia64.c (rtx_needs_barrier): Handle
17339         UNSPEC_FR_RECIP_APPROX_RES.
17340         * config/ia64/ia64.md (UNSPEC_FR_RECIP_APPROX_RES): Define.
17341
17342 2008-03-31  Volker Reichelt  <v.reichelt@netcologne.de>
17343
17344         PR c/35750
17345         * c-decl.c (store_parm_decls_oldstyle): Skip invalid parameters.
17346
17347 2008-03-31  Andrew Pinski  <andrew_pinski@playstation.sony.com>
17348
17349         PR middle-end/30186
17350         * fold-const.c (fold_indirect_ref_1): Support accessing non first
17351         element of the vector via a pointer.
17352
17353 2008-03-31  Ian Lance Taylor  <iant@google.com>
17354
17355         * tlink.c (scan_linker_output): Look for symbol name in single quotes.
17356
17357 2008-03-31  Jan Hubicka  <jh@suse.cz>
17358
17359         * builtins.c (expand_builtin_setjmp_receiver): Update call of
17360         get_arg_pointer_save_area.
17361         * expr.c (init_expr): Just clear out rtl.expr.
17362         * function.c (free_after_compilation): Clear out whole RTL structure.
17363         (get_func_frame_size): Merge into ...
17364         (get_frame_size): ... this one.
17365         (assign_stack_local_1): Merge into ...
17366         (assign_stack_local): ... this one.
17367         (expand_function_end): Update call of get_arg_pointer_save_area.
17368         (get_art_pointer_save_area): Remove cfun argument.
17369         * function.h (emit_status): regno_pointer_align does not need length
17370         attribute. Move x_regno_reg_rtx to ...
17371         (regno_reg_rtx): ... new global array.
17372         (reg_rtx_no, seq_stack, REGNO_POINTER_ALIGN): Update accestors.
17373         (pending_stack_adjust, inhibit_defer_pop, saveregs_value,
17374         apply_args_value, forced_labels, stack_pointer_delta):
17375         Update accestors.
17376         (struct varasm_status): Move here from varasm.c
17377         (struct rtl_data): New. Move here some fields from struct function.
17378         (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
17379         frame_offset, stack_check_probe_note, arg_pointer_save_area,
17380         used_temp_slots avail_temp_slots, temp_slot_level,
17381         nonlocal_goto_handler_labels): Update accesstors.
17382         (rtl): New global variable.
17383         (struct function): Move some fileds to rtl_data.
17384         (get_arg_pointer_save_area): Update prototype.
17385         * emit-rtl.c (rtl): Declare.
17386         (regno_reg_rtx): Declare.
17387         (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
17388         Update.
17389         (gen_reg_rtx): Update.
17390         (init_virtual_regs): Do not tate emit_status argument.
17391         (init_emit): Do not allocate emit.
17392         * varasm.c (varasm_statuc): Move to function.h.
17393         (n_deferred_constatns): Update accestor.
17394         (init_varasm_status): Do not allocate varasm_status.
17395         (force_const_mem, get_pool_size, output_constant_pool): Update.
17396         * stmt.c (force_label_rtx): Do not use x_ prefixes.
17397         (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
17398
17399 2008-03-31  Zdenek Dvorak  <ook@ucw.cz>
17400
17401         PR rtl-optimization/35729
17402         * loop-invariant.c (check_maybe_invariant): Disallow volatile memory
17403         references.
17404
17405 2008-03-31  H.J. Lu  <hongjiu.lu@intel.com>
17406
17407         PR target/32000
17408         * config/i386/i386.md (*movti_internal): Emit unaligned SSE
17409         load/store if memory is unaligned.
17410         (*movti_rex64): Likewise.
17411
17412         * config/i386/predicates.md (misaligned_operand): New.
17413
17414 2008-03-31  Andrew Pinski  <pinskia@gmail.com>
17415
17416         PR tree-opt/35431
17417         * tree-ssa-phiopt.c (conditional_replacement): Return early for
17418         complex types.
17419
17420 2008-03-31  Jan Beulich  <jbeulich@novell.com>
17421
17422         * config/ia64/constraints.md: Add 'j' constraint.
17423         * config/ia64/ia64.md (movsi_internal): Add addp4 case.
17424         (movdi_internal): Likewise.
17425
17426 2008-03-30  Volker Reichelt  <v.reichelt@netcologne.de>
17427
17428         PR c/35748
17429         * c-typeck.c (build_c_cast): Skip invalid fields in unions.
17430
17431 2008-03-30  H.J. Lu  <hongjiu.lu@intel.com>
17432
17433         PR target/35757
17434         * config/i386/i386.c (ix86_expand_sse_4_operands_builtin): Issue
17435         proper error message for the third argument on blendpd and
17436         blendps.
17437
17438         * config/i386/sse.md (blendbits): New.
17439         (sse4_1_blendp<ssemodesuffixf2c>): Use it.
17440
17441 2008-03-30  Eric Botcazou  <ebotcazou@adacore.com>
17442
17443         * fold-const.c (fold_binary) <BIT_IOR_EXPR>: Add missing conversions.
17444
17445 2008-03-30  Richard Guenther  <rguenther@suse.de>
17446
17447         PR middle-end/31023
17448         * fold-const.c (fold_sign_changed_comparison): Do leave
17449         conversions to base-types alone.
17450
17451 2008-03-29  Andrew Pinski  <andrew_pinski@playstation.sony.com>
17452
17453         * config/rs6000/rs6000.c (rs6000_stack_info): Don't force saving of
17454         the link register if one altivec register is be saved.
17455
17456 2008-03-30  Ben Elliston  <bje@au.ibm.com>
17457
17458         * final.c (final_scan_insn): Remove if (0) code.
17459
17460 2008-03-28  Volker Reichelt  <v.reichelt@netcologne.de>
17461
17462         * c-parser.c (c_parser_next_token_is_keyword): Simplify.
17463
17464 2008-03-28  H.J. Lu  <hongjiu.lu@intel.com>
17465
17466         * config/i386/sse.md (*and<mode>3): Pass <MODE>mode instead
17467         of V4SFmode to ix86_binary_operator_ok.
17468
17469 2008-03-28  Uros Bizjak  <ubizjak@gmail.com>
17470
17471         * config/i386/i386.c (override_options): Initialize
17472         ix86_veclib_handler to ix86_veclibabi_svml when
17473         -mveclibabi=svml is used.
17474         (ix86_veclibabi_svml): New function for SVML ABI style
17475         vectorization support.
17476         * doc/invoke.texi (-mveclibabi) [svml]: Document new target option.
17477
17478 2008-03-28  Rafael Espíndola  <espindola@google.com>
17479
17480         * fold-const.c (tree_unary_nonnegative_warnv_p): Make it public.
17481         (tree_binary_nonnegative_warnv_p): Make it public.
17482         (tree_single_nonnegative_warnv_p): Make it public.
17483         (tree_invalid_nonnegative_warnv_p): Make it public.
17484         (tree_unary_nonzero_warnv_p): Make it public.
17485         (tree_binary_nonzero_warnv_p): Make it public
17486         (tree_single_nonzero_warnv_p): Make it public.
17487         * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops): New function.
17488         (extract_range_from_binary_expr): Split the expr argument.
17489         (extract_range_from_unary_expr): Split the expr argument.
17490         (extract_range_from_comparison): Split the expr argument.
17491         (extract_range_from_expr): Use the new aux functions.
17492         (vrp_evaluate_conditional_warnv): Use
17493         vrp_evaluate_conditional_warnv_with_ops.
17494         * tree.h (tree_unary_nonzero_warnv_p): Declare.
17495         (tree_binary_nonzero_warnv_p): Declare.
17496         (tree_single_nonzero_warnv_p): Declare.
17497         (tree_expr_nonzero_warnv_p): Declare.
17498         (tree_unary_nonnegative_warnv_p): Declare.
17499         (tree_binary_nonnegative_warnv_p): Declare.
17500         (tree_single_nonnegative_warnv_p): Declare.
17501         (tree_invalid_nonnegative_warnv_p): Declare.
17502
17503 2008-03-28  Richard Guenther  <rguenther@suse.de>
17504
17505         PR tree-optimization/30317
17506         PR tree-optimization/30911
17507         PR tree-optimization/34793
17508         * tree-vrp.c (set_and_canonicalize_value_range): New function.
17509         (struct assert_locus_d): New member EXPR.
17510         (register_new_assert_for): Add EXPR parameter to support
17511         ASSERT_EXPR <name, expr OP limit>.
17512         (register_edge_assert_for_1): Adjust callers.
17513         (find_assert_locations): Likewise.
17514         (process_assert_insertions_for): Build condition from expression.
17515         (extract_range_from_assert): Handle ASSERT_EXPRs
17516         of the form ASSERT_EXPR <name, expr OP limit>.
17517         (register_edge_assert_for_2): New helper registering
17518         asserts for comparisons.  Recognize range tests of the form
17519         (unsigned)i - CST1 OP CST2.
17520         (register_edge_assert_for_1): Use it.
17521         (register_edge_assert_for): Likewise.
17522         (needs_overflow_infinity): Integer sub-types
17523         do not need overflow infinities.
17524         (vrp_val_is_max): The extreme values of integer sub-types
17525         are those of the base type.
17526         (vrp_val_is_min): Likewise.
17527         * tree.def (ASSERT_EXPR): Document extra allowed conditional
17528         expressions.
17529
17530 2008-03-28  Nick Clifton  <nickc@redhat.com>
17531
17532         PR target/31110
17533         * config/mn10300/mn10300.c (mn10300_secondary_reload_class):
17534         Return GENERAL_REGS for stack adjustment reloads.
17535
17536 2008-03-28  Andrew Pinski  <andrew_pinski@playstation.sony.com>
17537
17538         PR target/31334
17539         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Create a
17540         const_vector when all the vectors are constant.
17541
17542 2008-03-27  Bob Wilson  <bob.wilson@acm.org>
17543
17544         * config/xtensa/xtensa.c (gen_float_relational): Handle unordered
17545         comparisons.
17546         * config/xtensa/xtensa.md (any_cond): Add unordered comparisons.
17547         (any_scc_sf): Add uneq, unlt, unle and unordered operators.
17548         (scc_sf): New.
17549         (s<code>_sf): Use new scc_sf attribute for opcode names.
17550
17551 2008-03-27  Tom Tromey  <tromey@redhat.com>
17552
17553         * doc/sourcebuild.texi, doc/install.texi, configure, aclocal.m4,
17554         configure.ac, Makefile.in, config/t-darwin, config/m32c/t-m32c,
17555         config/spu/t-spu-elf, config/i386/t-interix,
17556         config/i386/t-cygming, config/i386/x-i386, config/i386/t-cygwin,
17557         config/i386/x-darwin, config/i386/x-mingw32,
17558         config/i386/t-netware, config/i386/x-cygwin, config/i386/t-nwld,
17559         config/sh/t-sh, config/sh/t-symbian, config/x-linux,
17560         config/t-sol2, config/x-hpux, config/x-darwin, config/ia64/t-ia64,
17561         config/x-solaris, config/t-vxworks, config/m68k/t-uclinux,
17562         config/rs6000/x-rs6000, config/rs6000/x-darwin64,
17563         config/rs6000/x-darwin, config/rs6000/t-rs6000,
17564         config/score/t-score-elf, config/arm/t-strongarm-pe,
17565         config/arm/t-pe, config/arm/t-arm, config/arm/t-wince-pe,
17566         config/v850/t-v850, config/v850/t-v850e, config/bfin/t-bfin-linux:
17567         Revert automatic dependency patch.
17568
17569 2008-03-27  H.J. Lu  <hongjiu.lu@intel.com>
17570
17571         PR target/35657
17572         * config/i386/i386.c (ix86_function_arg_boundary): Align
17573         decimal floating point to its natural boundary.
17574
17575 2008-03-27  Richard Guenther  <rguenther@suse.de>
17576
17577         PR middle-end/35716
17578         * fold-const.c (fold_comparison): Restrict distinct decl
17579         comparison folding to VAR_DECLs and PARM_DECLs.  Do not
17580         solely rely on operand_equal_p.
17581
17582 2008-03-27  Richard Guenther  <rguenther@suse.de>
17583
17584         PR c/32511
17585         * c-common.c (handle_weak_attribute): Reject combination of
17586         weak and inline.
17587
17588 2008-03-27  Richard Guenther  <rguenther@suse.de>
17589
17590         PR tree-optimization/32810
17591         * tree-ssa-ccp.c (get_symbol_constant_value): Strip useless
17592         conversions from DECL_INITIAL.
17593         (fold_const_aggregate_ref): Likewise from constructor elements.
17594
17595 2008-03-27  Zdenek Dvorak  <ook@ucw.cz>
17596
17597         * tree-affine.h (aff_combination_expand): Declare.
17598         (get_inner_reference_aff): Likewise.
17599         * tree-affine.c (aff_combination_expand): Split out from
17600         tree_to_aff_combination_expand.
17601         (get_inner_reference_aff): New function.
17602         * tree-parloops.c (loop_parallel_p): Free vectorizer info.
17603         * tree-ssa-loop-im.c: Include tree-affine.h and pointer-set.h.
17604         (struct lim_aux_data): sm_done field removed.
17605         (mem_ref_loc_p, mem_ref_locs_p): New types.
17606         (struct mem_ref): Added id, stored, accesses_in_loop,
17607         indep_loop, dep_loop, indep_ref, dep_ref fields.
17608         Removed is_stored, locs and next fields.
17609         (memory_accesses): New variable.
17610         (movement_possibility): Do not allow moving statements
17611         that store to memory.
17612         (outermost_indep_loop, simple_mem_ref_in_stmt, mem_ref_in_stmt):
17613         New functions.
17614         (determine_max_movement): For statements with memory references,
17615         find the outermost loop in that the reference is independent.
17616         (move_computations_stmt): Mark the virtual operands for renaming.
17617         (memref_free, mem_ref_alloc, mem_ref_locs_alloc, mark_ref_stored,
17618         gather_mem_refs_stmt, gather_mem_refs_in_loops, vtoe_hash, vtoe_eq,
17619         vtoe_free, record_vop_access, get_vop_accesses, get_vop_stores,
17620         add_vop_ref_mapping, create_vop_ref_mapping_loop,
17621         create_vop_ref_mapping, analyze_memory_references,
17622         cannot_overlap_p, mem_refs_may_alias_p, rewrite_mem_ref_loc,
17623         get_all_locs_in_loop, ref_always_accessed_p,
17624         refs_independent_p, record_indep_loop, ref_indep_loop_p_1,
17625         ref_indep_loop_p, can_sm_ref_p, find_refs_for_sm,
17626         store_motion_loop, store_motion): New functions.
17627         (struct vop_to_refs_elt): New type.
17628         (record_mem_ref_loc, free_mem_ref_locs, rewrite_mem_refs,
17629         memref_hash, memref_eq, hoist_memory_references): Rewritten.
17630         (schedule_sm): Replaced by...
17631         (execute_sm): ... this.
17632         (determine_lsm_ref, hoist_memory_references,
17633         loop_suitable_for_sm, gather_mem_refs_stmt, gather_mem_refs,
17634         find_more_ref_vops, free_mem_ref, free_mem_refs,
17635         determine_lsm_loop, determine_lsm): Removed.
17636         (tree_ssa_lim_finalize): Free data structures used by store motion.
17637         (tree_ssa_lim): Call analyze_memory_references.  Use
17638         store_motion instead of determine_lsm.
17639
17640 2008-03-27  Paolo Bonzini  <bonzini@gnu.org>
17641
17642         * config.cc (m68hc11, m6811, m68hc12, m6812): Add usegas.h,
17643         rename tmake_file to m68hc11/t-m68hc11.
17644         (mcore): Set inhibit_libc to true.
17645         * config.host (alpha*-dec-*vms*): Set extra_programs.
17646         (interix3*): Don't use host_xmake_file.
17647         * configure.ac: Let config.gcc override inhibit_libc.
17648         * configure: Regenerate.
17649
17650         * config/alpha/x-vms (EXTRA_PROGRAMS): Remove.
17651         * config/t-openbsd-thread: Remove commented out lines.
17652
17653         * config/x-interix: Remove.
17654
17655         * config/m68hc11/t-m68hc11-gas: Rename to...
17656         * config/m68hc11/t-m68hc11: ... this.  Remove T_CPPFLAGS.
17657
17658         * config/mcore/t-mcore: Remove T_CFLAGS.
17659         * config/mcore/t-mcore-pe: Likewise.
17660
17661 2008-03-27  Paolo Bonzini  <bonzini@gnu.org>
17662
17663         * configure.ac: Replace custom __GNU_SOURCE test with
17664         AC_USE_SYSTEM_EXTENSIONS.  Move it earlier.
17665         * aclocal.m4: Regenerate.
17666         * configure: Regenerate.
17667         * config.in: Regenerate.
17668
17669 2008-03-27  Richard Guenther  <rguenther@suse.de>
17670
17671         * fold-const.c (target.h): Include.
17672         (fold_comparison): Fold comparison of addresses of decls
17673         that bind locally or of constants.  Consolidate address folding code.
17674         * tree-vrp.c (operand_less_p): Deal with non-INTEGER_CST
17675         results from fold_binary_to_constant.
17676         (compare_values_warnv): Likewise.
17677
17678 2008-03-27  Andrew Pinski  <pinskia@gmail.com>
17679
17680         PR middle-end/35429
17681         * fold-const.c (fold_truthop): Check for integeral types when folding
17682         a == 0 && b == 0 and a != 0 || b != 0 .
17683
17684 2008-03-26  Eric Botcazou  <ebotcazou@adacore.com>
17685
17686         * tree.c (get_unwidened): Remove code fiddling with COMPONENT_REF.
17687
17688 2008-03-26  Andreas Schwab  <schwab@suse.de>
17689
17690         * doc/invoke.texi: Fix use of @item vs. @itemx.
17691
17692 2008-03-26  Tom Tromey  <tromey@redhat.com>
17693
17694         * Makefile.in (build/gensupport.o, build/print-rtl.o,
17695         build/read-rtl.o, build/rtl.o, build/gencondmd.o, build/genattr.o,
17696         build/genattrtab.o, build/genautomata.o, build/gencheck.o,
17697         build/gencodes.o, build/genconditions.o, build/genconfig.o,
17698         build/genconstants.o, build/genemit.o, build/genextract.o,
17699         build/genflags.o, build/genmddeps.o, build/genopinit.o,
17700         build/genoutput.o, build/genpeep.o, build/genrecog.o): Depend on
17701         options.h.
17702
17703 2008-03-26  Richard Guenther  <rguenther@suse.de>
17704
17705         Revert
17706         2008-03-26  Richard Guenther  <rguenther@suse.de>
17707
17708         * fold-const.c (target.h): Include.
17709         (fold_comparison): Fold comparison of addresses of two decls
17710         that bind locally.  Consolidate address folding code.
17711
17712 2008-03-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
17713
17714         * builtins.c (expand_builtin_pow, fold_builtin_cabs,
17715         fold_builtin_sqrt, fold_builtin_cbrt, fold_builtin_logarithm,
17716         fold_builtin_hypot, fold_builtin_pow): Remove uses of dconst3,
17717         dconstsqrt2, dconstthird, dconste and/or dconst10.
17718         * config/i386/i386.c (ix86_emit_swsqrtsf): Likewise.
17719         * emit-rtl.c (dconst3, dconst10, dconstm2, dconstthird,
17720         dconstsqrt2, dconste): Delete.
17721         (init_emit_once): Likewise.  Simplify initializing dconstm1.
17722         Constify variable.
17723         * real.c (get_real_const): New.
17724         * real.h (dconst3, dconst10, dconstm2, dconstthird,
17725         dconstsqrt2, dconste): Delete.
17726         (real_value_const, get_real_const): New.
17727
17728 2008-03-26  H.J. Lu  <hongjiu.lu@intel.com>
17729
17730         * config/i386/cygming.h (BIGGEST_ALIGNMENT): Removed.
17731
17732         * config/i386/i386.c (ix86_function_arg_boundary): Check
17733         BIGGEST_ALIGNMENT instead of 128.
17734         (setup_incoming_varargs_64): Likewise.
17735
17736 2008-03-26  Tom Tromey  <tromey@redhat.com>
17737
17738         * Makefile.in (DEPFILES): Add missing '/'.
17739
17740 2008-03-26  Richard Guenther  <rguenther@suse.de>
17741
17742         * fold-const.c (target.h): Include.
17743         (fold_comparison): Fold comparison of addresses of two decls
17744         that bind locally.  Consolidate address folding code.
17745
17746 2008-03-26  Nick Clifton  <nickc@redhat.com>
17747
17748         PR target/31232
17749         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p): Do
17750         not allow INT+INT as a legitimate addressing mode.
17751
17752 2008-03-26  Richard Guenther  <rguenther@suse.de>
17753
17754         * tree-flow.h (widen_bitfield): Remove declaration.
17755         * tree-ssa-ccp.c (visit_assignment): Remove unneeded code.
17756         (widen_bitfield): Remove function.
17757         * tree-ssa-dom.c (record_equivalences_from_stmt): Remove unneeded
17758         code.
17759
17760 2008-03-25  Andrew Pinski  <andrew_pinski@playstation.sony.com>
17761
17762         PR target/31558
17763         * config/rs6000/rs6000-c.c (rs6000_builtin_type_compatible): Handle
17764         error_mark_node's.
17765
17766 2008-03-25  Richard Sandiford  <rsandifo@nildram.co.uk>
17767
17768         PR rtl-optimization/35232
17769         * reload1.c (reg_reloaded_call_part_clobbered): Clarify comment.
17770         (forget_old_reloads_1, forget_marked_reloads): Don't clear
17771         reg_reloaded_call_part_clobbered here.
17772         (reload_regs_reach_end_p): New function.
17773         (reload_reg_rtx_for_input): New variable.
17774         (reload_reg_rtx_for_output): Likewise.
17775         (emit_input_reload_insns): Use reloadreg rather than rl->reg_rtx
17776         when reassigning a pseudo register.  Load reloadreg from
17777         reload_reg_rtx_for_input, moving the mode and register
17778         calculation to...
17779         (do_input_reload): ...here.  Use the mode-adjusted reg_rtx
17780         instead of the original when deciding whether an input reload
17781         would be a no-op or whether an output reload can be deleted.
17782         (emit_output_reload_insns): Use the mode-adjusted reg_rtx
17783         when setting up new_spill_reg_store.  Load it from
17784         reload_reg_rtx_for_output, moving the mode and register
17785         calculation to...
17786         (do_output_reload): ...here.  Use the mode-adjusted reg_rtx
17787         instead of the original when deciding whether an output reload
17788         would be a no-op.  Do the same when modifying insn notes.
17789         Use rtx_equal_p instead of == to compare the registers.
17790         (inherit_piecemeal_p): Take a mode and two register numbers
17791         as argument.
17792         (emit_reload_insns): Clear new_spill_reg_store for every hard
17793         register in the reload register.  Remove spill registers
17794         from reg_reloaded_valid before considering whether to record
17795         inheritance information for them.  Use reload_reg_rtx_for_output
17796         instead of reg_rtx when recording output reloads.  Use
17797         reload_reg_rtx_for_input instead of reg_rtx when recording
17798         input reloads.  Set or clear reg_reloaded_call_part_clobbered
17799         at the same time as setting reg_reloaded_valid.
17800         (delete_output_reload): Add a new_reload_reg parameter and use it
17801         instead of rld[j].reg_rtx.
17802         (emit_input_reload_insns, do_input_reload, do_output_reload): Adjust
17803         calls accordingly.
17804
17805 2008-03-25  Tom Tromey  <tromey@redhat.com>
17806
17807         * Makefile.in (build/gensupport.o): Depend on insn-modes.h.
17808         (build/genattr.o): Likewise.
17809         (build/genattrtab.o): Likewise.
17810         (build/gencodes.o): Likewise.
17811         (build/genconfig.o): Likewise.
17812         (build/genconstants.o): Likewise.
17813         (build/genemit.o): Likewise.
17814         (build/genextract.o): Likewise.
17815         (build/genflags.o): Likewise.
17816
17817 2008-03-25  Bob Wilson  <bob.wilson@acm.org>
17818
17819         * config/xtensa/xtensa.c (xtensa_va_start): Use build_int_cst
17820         instead of size_int for integer types.
17821         (xtensa_gimplify_va_arg_expr): Likewise.  Convert index to sizetype
17822         to match type of MINUS_EXPR.
17823
17824 2008-03-25  Tom Tromey  <tromey@redhat.com>
17825
17826         * configure: Rebuilt.
17827         * configure.ac (BUILD_DEPMODE): Extract CCDEPMODE from temporary
17828         Makefile.
17829
17830 2008-03-25  Tom Tromey  <tromey@redhat.com>
17831
17832         * config/x-solaris (host-solaris.o): Update.
17833         * config/x-linux (host-linux.o): Update.
17834         * config/x-hpux (host-hpux.o): Update.
17835         * config/x-darwin (host-darwin.o): Update.
17836         * config/v850/t-v850e (v850-c.o): Update.
17837         * config/v850/t-v850 (v850-c.o): Update.
17838         * config/t-vxworks (vxworks.o): Update.
17839         * config/t-sol2 (sol2-c.o, sol2.o): Update.
17840         * config/t-darwin (darwin.o, darwin-c.o, darwin-driver.o): Update.
17841         * config/spu/t-spu-elf (spu-c.o): Update.
17842         (spu.o): Remove.
17843         * config/sh/t-symbian (sh-c.o): Update.
17844         (symbian.o): Update.
17845         * config/sh/t-sh (sh-c.o): Update.
17846         * config/score/t-score-elf (score7.o, score3.o): Update.
17847         * config/rs6000/x-rs6000 (driver-rs6000.o): Update.
17848         * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Update.
17849         * config/rs6000/x-darwin (host-ppc-darwin.o): Update.
17850         * config/rs6000/t-rs6000 (rs6000-c.o): Update.
17851         (rs6000.o): Remove.
17852         * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
17853         * config/m32c/t-m32c (m32c-pragma.o): Update.
17854         * config/ia64/t-ia64 (ia64-c.o): Update.
17855         * config/i386/x-mingw32 (host-mingw32.o): Update.
17856         * config/i386/x-i386 (driver-i386.o): Update.
17857         * config/i386/x-darwin (host-i386-darwin.o): Update.
17858         * config/i386/x-cygwin (host-cygwin.o): Update.
17859         * config/i386/t-nwld (nwld.o): Update.
17860         * config/i386/t-netware (netware.o): Update.
17861         * config/i386/t-interix (winnt.o): Update.
17862         * config/i386/t-cygwin (cygwin1.o, cygwin2.o): Update.
17863         * config/i386/t-cygming (winnt.o, winnt-cxx.o, winnt-stubs.o,
17864         msformat-c.o): Update.
17865         * config/bfin/t-bfin-linux (generated_files): Add
17866         linux-sysroot-suffix.h.
17867         * config/arm/t-wince-pe (pe.o): Update.
17868         * config/arm/t-strongarm-pe (pe.o): Update.
17869         * config/arm/t-pe (pe.o): Update.
17870         * config/arm/t-arm (arm-c.o): Update.
17871         * doc/install.texi (Prerequisites): Require make 3.80.
17872         * Makefile.in: Remove .o targets.
17873         (CCDEPMODE, DEPDIR, depcomp, BUILD_DEPMODE): New variables.
17874         (OBSTACK_H, FIBHEAP_H, PARTITION_H, MD5_H, BCONFIG_H): Remove.
17875         (simple_generated_h, simple_generated_c): Move earlier.
17876         (generated_files): New variable.
17877         (TARGET_H, MACHMODE_H, HOOKS_H, HOSTHOOKS_DEF_H, LANGHOOKS_DEF_H,
17878         TARGET_DEF_H, RTL_BASE_H, RTL_H, PARAMS_H, BUILTINS_DEF, TREE_H,
17879         BASIC_BLOCK_H, GCOV_IO_H, COVERAGE_H, DEMANGLE_H, RECOG_H,
17880         ALIAS_H, EMIT_RTL_H, FLAGS_H, FUNCTION_H, EXPR_H, OPTABS_H,
17881         REGS_H, RA_H, RESOURCE_H, SCHED_INT_H, INTEGRATE_H, CFGLAYOUT_H,
17882         CFGLOOP_H, IPA_UTILS_H, IPA_REFERENCE_H, IPA_TYPE_ESCAPE_H,
17883         CGRAPH_H, DF_H, RESOURCE_H, DDG_H, GCC_H, GGC_H, TIMEVAR_H,
17884         INSN_ATTR_H, C_COMMON_H, C_PRAGMA_H, C_TREE_H, SYSTEM_H,
17885         PREDICT_H, DECNUM_H, MKDEPS_H, SYMTAB_H, TREE_DUMP_H,
17886         TREE_GIMPLE_H, TREE_FLOW_H, TREE_SSA_LIVE_H, PRETTY_PRINT_H,
17887         DIAGNOSTIC_H, C_PRETTY_PRINT_H, SCEV_H, LAMBDA_H, TREE_DATA_REF_H,
17888         VARRAY_H, TREE_INLINE_H, REAL_H, DBGCNT_H, EBIMAP_H): Remove.
17889         (.c.o): Remove.
17890         (COMPILE.base, COMPILE): New variables.
17891         (%.o): New pattern rule.
17892         (ALL_HOST_OBJS): New variable.
17893         (xgcc$(exeext), cpp$(exeext)): Remove extra version.o.
17894         (dummy-checksum.o, cc1-checksum.o): Remove.
17895         (DRIVER_SHLIB): New variable.
17896         (DRIVER_DEFINES): Use it.
17897         (gencondmd.c): Move out of build/.
17898         (s-conditions): Update.
17899         (BUILDCOMPILE.base, BUILDCOMPILE): New variables.
17900         (ALL_BUILD_OBJS): Likewise.
17901         (build/%.o): Use BUILDCOMPILE.
17902         (build/ggc-none.o, build/ggc-none.o, build/min-insn-modes.o,
17903         build/print-rtl.o, build/read-rtl.o, build/rtl.o, build/vec.o,
17904         build/gencondmd.o, build/genattrtab.o, build/genautomata.o,
17905         build/gencheck.o, build/gencodes.o, build/genconditions.o,
17906         build/genconfig.o, build/genconstants.o, build/genemit.o,
17907         build/genextract.o, build/genflags.o, build/genmddeps.o,
17908         build/genopinit.o, build/genoutput.o, build/genpeep.o,
17909         build/genpreds.o, build/genrecog.o, build/gcov-iov.o,
17910         build/gen-protos.o, build/scan.o, build/fix-header.o,
17911         build/scan-decls.o): Simplify.
17912         (collect2.o, c-opts.o, gcc.o, gccspec.o, gcc-options.o,
17913         cppdefault.o, protoize.o, unprotoize.o, intl.o, version.o,
17914         prefix.o, toplev.o): Reduce to variable setting.
17915         (libbackend.o): Use COMPILE.  Remove most dependencies.  Move later.
17916         ($(out_object_file), gcc-options.o): New targets.
17917         ($(ALL_HOST_OBJS)): New target.  Include dependency files.
17918         * configure: Rebuilt.
17919         * configure.ac: Call ZW_CREATE_DEPDIR, ZW_PROG_COMPILER_DEPENDENCIES.
17920         * doc/sourcebuild.texi (Front End Directory): Document new variable.
17921
17922 2008-03-25  Douglas Gregor  <doug.gregor@gmail.com>
17923
17924         * c-common.c (c_sizeof_or_alignof_type): If we're not allowed to
17925         complain when we hit an error, return ERROR_MARK_NODE.
17926
17927 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
17928
17929         * config/sh/constraints.md (Pso, Psz): New constraints.
17930         * config/sh/sh.c (print_operand): Add %V and %W operand codes.
17931         * config/sh/sh.md (*andsi3_bclr, *iorsi3_bset): New insns.
17932
17933 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
17934
17935         * config/sh/sh.c (sh_expand_t_scc): Emit movrt for SH2A if possible.
17936         * config/sh/sh.md (xorsi3_movrt, movrt): New insns.
17937
17938 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
17939
17940         * config/sh/sh.md (prefetch): Add condition for SH2A target.
17941         (prefetch_sh2a): New.
17942
17943 2008-03-25  Jayant Sonar  <Jayant.sonar@kpitcummins.com>
17944             Naveen.H.S  <naveen.hs@kpitcummins.com>
17945
17946         * config/sh/constraints.md (I28): New constraint.
17947         * config/sh/sh.c (broken_move): Add support for movi20s.
17948         * config/sh/sh.md (movsi_ie): Add the alternative for movi20s.
17949
17950 2008-03-25  Anil Paranjape  <anil.paranjape@kpitcummins.com>
17951             Jayant Sonar  <Jayant.sonar@kpitcummins.com>
17952             Naveen.H.S  <naveen.hs@kpitcummins.com>
17953
17954         * config/sh/sh.c (SH_ATTRIBUTES): Define.
17955         (SYMBOL_FLAG_FUNCVEC_FUNCTION): Define.
17956         (print_operand): Handle resbank in %@ operand code.
17957         (sh_encode_section_info): New.
17958         (push_regs): Add conditions for resbank.
17959         (sh_expand_epilogue): Likewise.
17960         (sh_insert_attributes): Likewise.
17961         (sh_attribute_table): Likewise.
17962         (sh_handle_resbank_handler_attribute): New.
17963         (sh2a_handle_function_vector_handler_attribute): New.
17964         (sh2a_is_function_vector_call): New.
17965         (sh2a_get_function_vector_number): New.
17966         (sh2a_function_vector_p): New.
17967         (sh_cfun_resbank_handler_p): New.
17968         * config/sh/sh.md (calli): Emit jsr/n if possible.
17969         (calli_tbr_rel): New.
17970         (calli_pcrel): Emit jsr/n if possible.
17971         (return_i): Emit rts/n if possible.
17972         (call_valuei_tbr_rel): New.
17973         (call_valuei_pcrel): Add condition for SH2A target.
17974         (call_value): Likewise.
17975         * config/sh/sh-protos.h (sh_cfun_resbank_handler_p): Declare.
17976         (sh2a_get_function_vector_number): Likewise.
17977         (sh2a_is_function_vector_call): Likewise.
17978         * doc/extend.texi: Document TBR relative addressing of SH2A.
17979         (resbank): Add description for SH2A.
17980
17981 2008-03-24  Richard Guenther  <rguenther@suse.de>
17982
17983         PR c/22371
17984         * gimplify.c (gimplify_modify_expr): For frontend type-correct
17985         pointer assignments change conversions according to middle-end rules.
17986         (gimplify_modify_expr_rhs): Deal with NULL TARGET_EXPR_INITIAL.
17987         * configure.ac: Include type checking in yes.
17988         * configure: Regenerate.
17989
17990 2008-03-24  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
17991
17992         * diagnostic.c (diagnostic_count_diagnostic): Delete.
17993         (diagnostic_report_diagnostic): Update. Handle ICEs here.
17994
17995 2008-03-24  Nathan Sidwell  <nathan@codesourcery.com>
17996
17997         * gthr-vxworks.h (UNUSED): Define.
17998
17999 2008-03-23  H.J. Lu  <hongjiu.lu@intel.com>
18000
18001         * config/i386/i386.h (STATIC_CHAIN_REGNUM): Use R10_REG and CX_REG.
18002
18003 2008-03-23  Zuxy Meng <zuxy.meng@gmail.com>
18004
18005         * doc/extend.texi (Function Attributes): Add missing comma in the
18006         example of the "alloc_size" attribute.
18007
18008 2008-03-23  Uros Bizjak  <ubizjak@gmail.com>
18009
18010         Revert:
18011         2008-03-05  H.J. Lu  <hongjiu.lu@intel.com>
18012
18013         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
18014         32bit host.
18015
18016         2008-03-19  Uros Bizjak  <ubizjak@gmail.com>
18017
18018         PR target/35496
18019         * stor-layout.c (update_alignment_for_field): Set minimum alignment
18020         of the underlying type of a MS bitfield layout to the natural
18021         alignment of the type.
18022
18023         2008-03-22  Uros Bizjak  <ubizjak@gmail.com>
18024
18025         * config/i386/i386.c (assign_386_stack_local): Align DImode slots
18026         to their natural alignment to avoid store forwarding stalls.
18027
18028 2008-03-22  Richard Guenther  <rguenther@suse.de>
18029
18030         * tree-cfg.c (verify_expr): Recurse again for invariant addresses.
18031         For PHI nodes verify the address is invariant.
18032         * tree-ssa-ccp.c (ccp_decl_initial_min_invariant): Remove.
18033         (get_symbol_constant_value): Use is_gimple_min_invariant.
18034         (maybe_fold_stmt_indirect): Likewise.
18035
18036 2008-03-22  Richard Sandiford  <rsandifo@nildram.co.uk>
18037
18038         PR rtl-optimization/33927
18039         * Makefile.in (dse.o): Depend on $(TM_P_H).
18040         * expr.h (extract_low_bits): Declare.
18041         * expmed.c (extract_low_bits): New function.
18042         * rtlhooks.c (gen_lowpart_general): Generalize SUBREG handling.
18043         * dse.c: Include tm_p.h.
18044         (find_shift_sequence): Remove the read_reg argument and return the
18045         read value.  Emit the instructions instead of returning them.
18046         Iterate on new_mode rather than calculating it each time.
18047         Check MODES_TIEABLE_P.  Use simplify_gen_subreg to convert the
18048         source to NEW_MODE and extract_low_bits to convert the shifted
18049         value to READ_MODE.
18050         (replace_read): Allow the load and store to have different mode
18051         classes.  Use extract_low_bits when SHIFT == 0.  Create the shift
18052         or extraction instructions before trying the replacement.  Update
18053         dump-file code accordingly, avoiding use of REGNO (store_info->rhs).
18054
18055 2008-03-22  Uros Bizjak  <ubizjak@gmail.com>
18056
18057         * config/i386/i386.c (assign_386_stack_local): Align DImode slots
18058         to their natural alignment to avoid store forwarding stalls.
18059
18060 2008-03-21  Andrew Pinski  <andrew_pinski@playstation.sony.com>
18061
18062         PR target/27946
18063         * config/rs6000/rs6000.md (floatdidf2): Discouraging fprs and
18064         encouraging but not allowing gprs for input;
18065         change the input constraint to !f#r.
18066         (fix_truncdfdi2): Discouraging fprs and encouraging but not allowing
18067         gprs for output;
18068         change the output constraint to !f#r.
18069
18070 2008-03-21  Uros Bizjak  <ubizjak@gmail.com>
18071
18072         PR target/13958
18073         * config/i386/i386.md ("*floatunssi<mode2>_1"): New pattern with
18074         corresponding post-reload splitters.
18075         ("floatunssi<mode>2"): Expand to unsigned_float x87 insn pattern
18076         when x87 FP math is selected.
18077         * config/i386/i386-protos.h (ix86_expand_convert_uns_sixf_sse):
18078         New function prototype.
18079         * config/i386/i386.c (ix86_expand_convert_uns_sixf_sse): New
18080         unreachable function to ease macroization of insn patterns.
18081
18082 2008-03-21  Martin Jambor  <mjambor@suse.cz>
18083
18084         * tree-data-ref.c (dump_data_dependence_relation): Avoid data
18085         reference dumps if ddr is NULL or dependence is unknown.
18086
18087 2008-03-20  Kaz Kojima  <kkojima@gcc.gnu.org>
18088
18089         * config/sh/linux-atomic.asm (ATOMIC_TEST_AND_SET): Take
18090         unsigned extension into account.
18091         (ATOMIC_COMPARE_AND_SWAP): Likewise.
18092         (ATOMIC_FETCH_AND_OP, ATOMIC_FETCH_AND_COMBOP): Likewise.
18093         Do computations on a scratch register.
18094
18095 2008-03-21  Richard Guenther  <rguenther@suse.de>
18096
18097         * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
18098         Use is_gimple_min_invariant instead of TREE_INVARIANT.
18099         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
18100         * tree-ssa-dom.c (record_equality): Likewise.
18101         * tree-inline.c (copy_body_r): Likewise.
18102         * tree-ssa-pre.c (make_values_for_stmt): Remove test for
18103         TREE_INVARIANT.
18104
18105 2008-03-20  Kaz Kojima  <kkojima@gcc.gnu.org>
18106
18107         * config/sh/sh.c (split_branches): Pass zero to redirect_jump
18108         as 'delete_unused' argument.
18109
18110 2008-03-20  Richard Guenther  <rguenther@suse.de>
18111
18112         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Remove
18113         special casing of constant qualifiers.
18114         * tree-ssa.c (useless_type_conversion_p_1): Instead do not
18115         care about them in general.
18116         * tree-ssa-ccp.c (ccp_fold): Addresses are constant or not
18117         regardless of their type.
18118         (fold_stmt_r): Forcefully fold *& if we end up with that.
18119
18120 2008-03-20  Paul Brook  <paul@codesourcery.com>
18121
18122         * config.gcc (arm*-*-uclinux*): Remove duplicate arm/uclinux-elf.h.
18123         * config/arm/uclinux-eabi.h (SUBTARGET_EXTRA_LINK_SPEC): Add extra
18124         linker flags.
18125         * config/arm/bpabi.h (SUBTARGET_EXTRA_LINK_SPEC): Provide default
18126         definition.
18127         (LINK_SPEC): Use SUBTARGET_EXTRA_LINK_SPEC.
18128         * config/arm/unwind-arm.h (_Unwind_decode_target2): Add uClinux.
18129
18130 2008-03-20  Volker Reichelt  <v.reichelt@netcologne.de>
18131
18132         * common.opt (Wmudflap): New option.
18133         * tree-mudflap.c (mf_xform_derefs_1): Guard warning by OPT_Wmudflap.
18134         (mx_register_decls): Likewise.
18135         (mudflap_finish_file): Likewise.
18136         * doc/invoke.texi: Document -Wno-mudflap.
18137
18138 2008-03-20  Kai Tietz  <kai.tietz@onevision.com>
18139
18140         * c-format.c (replace_format_name_to_system_name): New.
18141         (cmp_attribs): New.
18142         (convert_format_name_to_system_name): New.
18143         (decode_format_attr): Add use of convert_format_name_to_system_name.
18144         (format_types_orig): Add gnu_ prefix to names.
18145         (check_format_info_main): Special treating of \0 escaped names for
18146         supporting multi-character format specifiers as I32, I64.
18147         (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): Use of user defined attributes.
18148         (gnu_target_overrides_format_attributes): New.
18149         * c-format.h: Add structure target_ovr_attr to hold
18150         system specific formatter names.
18151         * config.gcc: Add for x86&x86_64 cygwin and mingw32 targets the
18152         msformat-c.o file to c_target_objs and cxx_target_objs.
18153         * config/i386/mingw32.h (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
18154         (TARGET_OVERRIDES_FORMAT_ATTRIBUTES_COUNT): New.
18155         (TARGET_N_FORMAT_TYPES): New.
18156         * config/i386/msformat-c.c: New.
18157         * config/i386/t-cygming: Add build rule for msformat-c.o.
18158         * doc/extend.texi: Add new format names gnu_* and ms_* and
18159         further details.
18160         * doc/tm.texi: (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
18161
18162 2008-03-20  Ira Rosen  <irar@il.ibm.com>
18163
18164         * doc/invoke.texi (-O3): Add -ftree-vectorize to the list of
18165         optimizations turned on under -O3.
18166         (ftree-vectorize): Add that the flag is turned on with -O3.
18167
18168 2008-03-20  Ben Elliston  <bje@au.ibm.com>
18169
18170         * regmove.c (try_auto_increment): Fix spelling error in comment.
18171         * final.c (final_scan_insn): Likewise.
18172
18173 2008-03-20  Uros Bizjak  <ubizjak@gmail.com>
18174
18175         PR target/14552
18176         * config/i386/mmx.md (*mov<mode>_internal_rex64"): Adjust register
18177         allocator preferences for "y" and "r" class registers.
18178         ("*mov<mode>_internal"): Ditto.
18179         ("*movv2sf_internal_rex64"): Ditto.
18180         ("*movv2sf_internal"): Ditto.
18181
18182 2008-03-19  Michael Matz  <matz@suse.de>
18183
18184         PR middle-end/35616
18185         * calls.c (expand_call): Check overlap of arguments with call
18186         address for sibcalls.
18187
18188 2008-03-19  Uros Bizjak  <ubizjak@gmail.com>
18189
18190         PR target/35496
18191         * stor-layout.c (update_alignment_for_field): Set minimum alignment
18192         of the underlying type of a MS bitfield layout to the natural
18193         alignment of the type.
18194
18195 2008-03-19  Jan Hubicka  <jh@suse.cz>
18196
18197         PR other/35094
18198         * toplev.c (decode_d_option): Handle all CPP flags.
18199         * tree-vrp.c: Update tree_pass descriptors.
18200         * regrename.c: Update tree_pass descriptors.
18201         * fwprop.c: Update tree_pass descriptors.
18202         * doc/invoke.texi: Remove documentation of dropped -d? flags.
18203         * tree-into-ssa.c: Update tree_pass descriptors.
18204         * tree-dump.c: Update tree_pass descriptors.
18205         * tree-complex.c: Update tree_pass descriptors.
18206         * tree-dump.h: Update tree_pass descriptors.
18207         * see.c: Update tree_pass descriptors.
18208         * cgraphbuild.c: Update tree_pass descriptors.
18209         * tracer.c: Update tree_pass descriptors.
18210         * tree-loop-distribution.c: Update tree_pass descriptors.
18211         * cgraph.c: Update tree_pass descriptors.
18212         * postreload-gcse.c: Update tree_pass descriptors.
18213         * postreload.c: Update tree_pass descriptors.
18214         * tree-ssa-loop-ch.c: Update tree_pass descriptors.
18215         * tree-tailcall.c: Update tree_pass descriptors.
18216         * tree-pass.h (tree_opt_pass): Rename to ...
18217         (opt_pass) ... this one; add "type" field and remove letter field.
18218         (gimple_opt_pass, rtl_opt_pass, simple_ipa_opt_pass): New.
18219         (execute_pass_list, execute_ipa_pass_list, all_passes, all_ipa_passes,
18220         all_lowering_passes): Update declaration.
18221         * ipa-cp.c: Update tree_pass descriptors.
18222         * final.c: Update tree_pass descriptors.
18223         * omp-low.c: Update tree_pass descriptors.
18224         * tree-ssa-dse.c: Update tree_pass descriptors.
18225         * ipa-reference.c: Update tree_pass descriptors.
18226         * tree-ssa-uncprop.c: Update tree_pass descriptors.
18227         * auto-inc-dec.c: Update tree_pass descriptors.
18228         * reorg.c: Update tree_pass descriptors.
18229         * cgraphunit.c: Update tree_pass descriptors.
18230         * tree-ssa-copyrename.c: Update tree_pass descriptors.
18231         * tree-ssa-ccp.c: Update tree_pass descriptors.
18232         * df-core.c: Update tree_pass descriptors.
18233         * mode-switching.c: Update tree_pass descriptors.
18234         * tree-nomudflap.c: Update tree_pass descriptors.
18235         * modulo-sched.c: Update tree_pass descriptors.
18236         * ipa-pure-const.c: Update tree_pass descriptors.
18237         * cse.c: Update tree_pass descriptors.
18238         * web.c: Update tree_pass descriptors.
18239         * tree-stdarg.c: Update tree_pass descriptors.
18240         * tree-ssa-math-opts.c: Update tree_pass descriptors.
18241         * tree-ssa-dom.c: Update tree_pass descriptors.
18242         * tree-nrv.c: Update tree_pass descriptors.
18243         * tree-ssa-alias.c: Update tree_pass descriptors.
18244         * loop-init.c: Update tree_pass descriptors.
18245         * gimple-low.c: Update tree_pass descriptors.
18246         * ipa-inline.c: Update tree_pass descriptors.
18247         * tree-ssa-sink.c: Update tree_pass descriptors.
18248         * global.c: Update tree_pass descriptors.
18249         * ifcvt.c: Update tree_pass descriptors.
18250         * jump.c: Update tree_pass descriptors.
18251         * predict.c: Update tree_pass descriptors.
18252         * tree-ssa-loop.c: Update tree_pass descriptors.
18253         * recog.c: Update tree_pass descriptors.
18254         * dse.c: Update tree_pass descriptors.
18255         * tree-ssa-ifcombine.c: Update tree_pass descriptors.
18256         * tree-eh.c: Update tree_pass descriptors.
18257         * regmove.c: Update tree_pass descriptors.
18258         * local-alloc.c
18259         * function.c: Update tree_pass descriptors.
18260         * tree-vectorizer.c: Update tree_pass descriptors.
18261         * gcse.c: Update tree_pass descriptors.
18262         * ipa-type-escape.c: Update tree_pass descriptors.
18263         * tree-if-conv.c: Update tree_pass descriptors.
18264         * init-regs.c: Update tree_pass descriptors.
18265         * ipa.c: Update tree_pass descriptors.
18266         * tree-ssa-phiopt.c: Update tree_pass descriptors.
18267         * rtl-factoring.c: Update tree_pass descriptors.
18268         * lower-subreg.c: Update tree_pass descriptors.
18269         * bt-load.c: Update tree_pass descriptors.
18270         * tree-dfa.c: Update tree_pass descriptors.
18271         * except.c: Update tree_pass descriptors.
18272         * emit-rtl.c: Update tree_pass descriptors.
18273         * cfgexpand.c: Update tree_pass descriptors.
18274         * tree-cfgcleanup.c: Update tree_pass descriptors.
18275         * cfgcleanup.c: Update tree_pass descriptors.
18276         * tree-ssa-pre.c: Update tree_pass descriptors.
18277         * tree-sra.c: Update tree_pass descriptors.
18278         * tree-mudflap.c: Update tree_pass descriptors.
18279         * tree-ssa-copy.c: Update tree_pass descriptors.
18280         * cfglayout.c: Update tree_pass descriptors.
18281         * tree-ssa-forwprop.c: Update tree_pass descriptors.
18282         * tree-ssa-dce.c: Update tree_pass descriptors.
18283         * tree-ssa.c: Update tree_pass descriptors.
18284         * regclass.c: Update tree_pass descriptors.
18285         * integrate.c: Update tree_pass descriptors.
18286         * tree-optimize.c: Update tree_pass descriptors.
18287         * tree-ssa-phiprop.c: Update tree_pass descriptors.
18288         * tree-object-size.c: Update tree_pass descriptors.
18289         * combine.c: Update tree_pass descriptors.
18290         * tree-outof-ssa.c: Update tree_pass descriptors.
18291         * bb-reorder.c: Update tree_pass descriptors.
18292         * stack-ptr-mod.c: Update tree_pass descriptors.
18293         * var-tracking.c: Update tree_pass descriptors.
18294         * tree-profile.c: Update tree_pass descriptors.
18295         * tree-vect-generic.c: Update tree_pass descriptors.
18296         * reg-stack.c: Update tree_pass descriptors.
18297         * sched-rgn.c: Update tree_pass descriptors.
18298         * tree-ssa-structalias.c: Update tree_pass descriptors.
18299         * tree-cfg.c: Update tree_pass descriptors.
18300         * passes.c (current_pass): Update declaration.
18301         (finish_optimization_passes): Update.
18302         (all_passes, all_ipa_passes, all_lowering_passes): Update declaration.
18303         (register_one_dump_file, register_dump_files_1, next_pass_1):
18304         Update arguments.
18305         (init_optimization_passes): Update handling of new types.
18306         (execute_one_pass, execute_pass_list, execute_ipa_pass_list): Update.
18307         * ipa-struct-reorg.c: Update tree_pass descriptors.
18308         * tree-ssa-reassoc.c: Update tree_pass descriptors.
18309         * combine-stack-adj.c: Update tree_pass descriptors.
18310         * cfgrtl.c: Update tree_pass descriptors.
18311         * dce.c: Update tree_pass descriptors.
18312         * tree-ssanames.c: Update tree_pass descriptors.
18313
18314 2008-03-19  Richard Guenther  <rguenther@suse.de>
18315
18316         PR middle-end/35609
18317         * tree-ssa.c (walk_data): New structure.
18318         (warn_uninitialized_var): If not always_executed warn with "maybe"
18319         instead of "is".
18320         (execute_early_warn_uninitialized): Compute post-dominators.
18321         Initialize always_executed before processing each basic block.
18322
18323 2008-03-18  Mikulas Patocka  <mikulas@artax.karlin.mff.cuni.cz>
18324
18325         PR target/35504
18326         * config/i386/i386.c (x86_this_parameter): Calculate correct location
18327         of "this" pointer when "regparm = N" or "fastcall" is in effect.
18328
18329 2008-03-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18330
18331         * doc/include/texinfo.tex: Update to version 2008-03-17.10.
18332
18333 2008-03-18  Paolo Bonzini  <bonzini@gnu.org>
18334
18335         * expr.c (store_expr): Assume lang_hooks.reduce_bit_field_operations
18336         is true.
18337         (expand_expr_real_1) <REDUCE_BIT_FIELD>: Don't look at ignore.
18338         (expand_expr_real_1): Assume lang_hooks.reduce_bit_field_operations
18339         is true.  Add "&& !ignore" condition to reduce_bit_field.  Modify
18340         target after ignore has been set, and move there also the commputation
18341         of subtarget and original_target.
18342         * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Delete.
18343         (LANG_HOOKS_INITIALIZER): Remove it.
18344         * langhooks.h (struct lang_hooks): Remove reduce_bit_field_operations.
18345
18346 2008-03-18  Richard Guenther  <rguenther@suse.de>
18347
18348         * tree-ssa-sccvn.c (visit_reference_op_load): If the lookup
18349         found an expression with constants, note that in the VN for the lhs.
18350         * tree-ssa-pre.c (eliminate): Visit COND_EXPR statements and
18351         fold them to constants if possible.  Run cleanup_cfg if done so.
18352         (execute_pre): Return todo.
18353         (do_pre): Likewise.
18354         (execute_fre): Likewise.
18355         * tree-ssa-forwprop.c (can_propagate_from): Allow propagation
18356         of constants.
18357         (get_prop_source_stmt): Look through pointer conversions.
18358
18359 2008-03-18  Jan Hubicka  <jh@suse.cz>
18360
18361         * tree-pretty-print.c: Include predict.h.
18362         (dump_generic_node): Dump predictor.
18363         * tree.h (PREDICT_EXPR_OUTCOME, PREDICT_EXPR_PREDICTION): Update.
18364         * tree-gimple.c (is_gimple_stmt): Add PREDICT_EXPR.
18365         * gimple-low.c (lower_stmt): Likewise.
18366         * expr.c (expand_expr_real): Likewise.
18367         * predict.c (tree_bb_level_predictions): Use PREDICT_EXPRs and remove
18368         them.
18369         (build_predict_expr, build_predict_expr): New.
18370         * predict.h (predictor_name, build_predict_expr): Update.
18371         * c-typeck.c (c_finish_bc_stmt): Add prediction.
18372         * gimplify.c (gimplify_expr): Add PREDICT_EXPR.
18373         * predict.def (PRED_CONTINUE): Update hitrate.
18374         * tree.def (PREDICT_EXPR): Define.
18375         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark PREDICT_EXPR;
18376         do not handle BIND_EXPR.
18377         * tree-inline.c (estimate_num_insns_1): PREDICT_EXPR is free.
18378         * tree-cfg.c (verify_gimple_stmt): PREDICT_EXPR is valid.
18379         * tree-ssa-operands.c (get_expr_operands): PREDICT_EXPR takes no
18380         operands.
18381
18382 2008-03-18  Michael Matz  <matz@suse.de>
18383
18384         * gcov-io.h (__gcov_merge_ior, __gcov_fork): Mark hidden.
18385
18386 2008-03-18  Richard Guenther  <rguenther@suse.de>
18387
18388         * tree-gimple.h (is_gimple_invariant_address): Declare.
18389         (is_gimple_constant): Likewise.
18390         * tree-gimple.c (is_gimple_constant): New function.
18391         (is_gimple_invariant_address): Likewise.
18392         (is_gimple_min_invariant): Implement in terms of is_gimple_constant
18393         and is_gimple_invariant_address.
18394         * tree-ssa-loop-niter.c (expand_simple_operations): Revert
18395         previous change.
18396         * tree-data-ref.c (get_references_in_stmt): A SSA_NAME is not
18397         an addressable base.
18398
18399 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
18400
18401         PR middle-end/35611
18402         * gimplify.c (gimplify_expr): Gimplify second operand of
18403         OMP_ATOMIC_LOAD.
18404
18405 2008-03-17  Richard Guenther  <rguenther@suse.de>
18406
18407         PR tree-optimization/19637
18408         * fold-const.c (fold_unary): Remove restrictions of removing
18409         intermediate pointer-conversions (P2)(P1)P0.
18410         * tree-ssa-ccp.c (maybe_fold_stmt_addition): Recover from
18411         conversion to void pointer.
18412         (get_maxval_strlen): Handle addresses of the form &(*p)[0].
18413
18414 2008-03-16  James E. Wilson  <wilson@tuliptree.org>
18415
18416         PR debug/31510
18417         * dbxout.c (dbxout_expand_expr, case VAR_DECL): Return NULL for
18418         emulated thread local variables.
18419
18420 2008-03-16  Richard Guenther  <rguenther@suse.de>
18421
18422         PR middle-end/35607
18423         * tree-ssa-loop-niter.c (expand_simple_operations): Do not
18424         expand TREE_INVARIANT operations that are not gimple invariant.
18425
18426 2008-03-16  Hans-Peter Nilsson  <hp@axis.com>
18427
18428         * doc/extend.texi (Alignment): Say that the ABI controls
18429         the __alignof__ for non-strict-alignment targets rather
18430         than being a recommendation.
18431
18432 2008-03-15  Paul Brook  <paul@codesourcery.com>
18433
18434         * config/arm/arm.c (arm_unwind_emit): Suppress unused unwinding
18435         annotations.
18436         (arm_output_fn_unwind): Mark functions that can not be unwound.
18437
18438 2008-03-15  Paul Brook  <paul@codesourcery.com>
18439
18440         * config/arm/arm.c (arm_rtx_costs_1): Add costs for ARMv6 value
18441         extension instructions.
18442
18443 2008-03-15  Richard Guenther  <rguenther@suse.de>
18444
18445         * tree-ssa-ccp.c (ccp_fold): Also read from constant values
18446         and fold constant aggregate refs.
18447         (fold_const_aggregate_ref): Handle string constants
18448         and constructors in ARRAY_REFs.  Handle INDIRECT_REF.
18449         (evaluate_stmt): Simplify now that ccp_fold folds constant
18450         aggregate refs.
18451
18452 2008-03-15  Paul Brook  <paul@codesourcery.com>
18453
18454         * config/arm/arm.md (insv): Use gen_insv_t2 and gen_insv_zero.
18455         (extzv): Use gen_extzv_t2.
18456         (insv_t2, insv_zero, extv, extzv_t2): New patterns.
18457
18458 2008-03-15  Richard Guenther  <rguenther@suse.de>
18459
18460         * tree-ssa-ccp.c (get_symbol_constant_value): Export.
18461         (fold_const_aggregate_ref): Likewise.
18462         (get_value): Return NULL if we don't have any values.
18463         (ccp_finalize): Set const_val to NULL after freeing it.
18464         * tree-flow.h (get_symbol_constant_value): Declare.
18465         (fold_const_aggregate_ref): Likewise.
18466         * tree-ssa-sccvn.c (try_to_simplify): Use them.
18467
18468 2008-03-15  Richard Guenther  <rguenther@suse.de>
18469
18470         PR middle-end/35593
18471         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Make sure
18472         to not produce negative array indices if not allowed.  Add
18473         parameter to indicate that.
18474         (maybe_fold_offset_to_component_ref): Allow negative array
18475         indices only for the first member of a structure.
18476         (maybe_fold_offset_to_reference): Allow negative array indices.
18477         (maybe_fold_stmt_addition): Likewise.
18478
18479 2008-03-15  Bjoern Haase  <bjoern.m.haase@web.de>
18480             Anatoly Sokolov <aesok@post.ru>
18481
18482         * config/avr/avr.c (avr_arch_types): Add avr6 entry.
18483         (avr_arch): Add ARCH_AVR6.
18484         (avr_mcu_types): Add 'atmega2560' and 'atmega2561' entry.
18485         (initial_elimination_offset): Initialize and use 'avr_pc_size'
18486         instead of fixed value 2.
18487         (print_operand_address): Use gs() asm specifier instead of pm().
18488         (avr_assemble_integer): (Ditto.).
18489         (avr_output_addr_vec_elt): (Ditto.).
18490         (print_operand): Handle "!" code.
18491         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Add
18492         __AVR_3_BYTE_PC__, __AVR_2_BYTE_PC__ and __AVR_HAVE_JMP_CALL__.
18493         (AVR_HAVE_EIJMP_EICALL): Define.
18494         (AVR_3_BYTE_PC): Redefine.
18495         (AVR_2_BYTE_PC): (Ditto.).
18496         (PRINT_OPERAND_PUNCT_VALID_P): Add '!' code.
18497         (LINK_SPEC): Add atmega2560 and atmega2561.
18498         (CRT_BINUTILS_SPEC): Add atmega2560 (crtm2560.o) and atmega2561
18499         (crtm2561.o).
18500         * config/avr/avr.md (call_insn): Use eicall instead of icall
18501         for 3 byte PC devices.
18502         (call_value_insn): (Ditto.).
18503         (*tablejump_enh): Use eijmp instead of ijmp for 3 byte PC devices.
18504         (indirect_jump): Use only for for 2 byte PC devices.
18505         (*tablejump): (Ditto.).
18506         (*indirect_jump_avr6): Add insn.
18507         (*tablejump_rjmp): Don't use for 3 byte PC devices.
18508         * config/avr/libgcc.S (__prologue_saves__): Use eijmp
18509         instead of ijmp for 3 byte PC devices.
18510         (__tablejump2__): (Ditto.).
18511         * config/avr/t-avr (MULITLIB_OPTIONS): Add avr6 architecture.
18512         (MULITLIB_DIRNAMES): (Ditto.).
18513         (MULTILIB_MATCHES): Add atmega2560 and atmega2561 to list.
18514
18515 2008-03-15  Uros Bizjak  <ubizjak@gmail.com>
18516
18517         * config/i386/mmx.md ("sse2_umulv1siv2di3"): Rename from
18518         "sse2_umulsidi3".  Use V1DI mode for operand 0.
18519         ("mmx_psadbw"): Use V1DI mode for operand 0.
18520         * config/i386/i386-modes.def (V1SI): New vector mode.
18521         * config/i386/i386.c (struct builtin_description)
18522         [IX86_BUILTIN_PMULUDQ]: Use CODE_FOR_sse2_umulv1siv1di3.
18523         (v1di_ftype_v8qi_v8qi): Rename from di_ftype_v8qi_v8qi.
18524         (v1di_ftype_v2si_v2si): Rename from di_ftype_v2si_v2si.
18525         (ix86_init_mmx_sse_builtins) [__builtin_ia32_psadbw]: Use
18526         v1di_ftype_v8qi_v8qi type.
18527         [__builtin_ia32_pmuludq]: Use v1di_ftype_v2si_v2si type.
18528
18529         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psadbw,
18530         __builtin_ia32_pmuludq]: Fix the mode of return value.
18531
18532 2008-03-15  Richard Guenther  <rguenther@suse.de>
18533
18534         PR middle-end/35595
18535         * tree-ssa-pre.c (bitmap_find_leader): Handle expression
18536         being a PHI_NODE.
18537
18538 2008-03-14  Bob Wilson  <bob.wilson@acm.org>
18539
18540         * doc/invoke.texi (Option Summary, Xtensa Options): Document
18541         -mserialize-volatile and -mno-serialize-volatile Xtensa options.
18542         * config/xtensa/xtensa.c (print_operand): Do not emit MEMW instructions
18543         unless TARGET_SERIALIZE_VOLATILE is enabled.
18544         * config/xtensa/xtensa.md (*lsiu, *ssiu): Likewise.
18545         * config/xtensa/xtensa.h (TARGET_DEFAULT): Add MASK_SERIALIZE_VOLATILE.
18546         * config/xtensa/xtensa.opt (mserialize_volatile): New option.
18547
18548 2008-03-14  Richard Guenther  <rguenther@suse.de>
18549
18550         PR tree-optimization/34172
18551         * tree-flow.h (refs_may_alias_p): Declare.
18552         (get_single_def_stmt): Likewise.
18553         (get_single_def_stmt_from_phi): Likewise.
18554         (get_single_def_stmt_with_phi): Likewise.
18555         * tree-dfa.c (refs_may_alias_p): New function.
18556         (get_single_def_stmt): Likewise.
18557         (get_single_def_stmt_from_phi): Likewise.
18558         (get_single_def_stmt_with_phi): Likewise.
18559         * tree-ssa-sccvn.c (get_def_ref_stmt_vuses): New function.
18560         (vn_reference_lookup_1): New helper function.
18561         (vn_reference_lookup): Walk the virtual use-def chain to
18562         continue searching for a match if the def does not alias the
18563         reference we are looking for.
18564
18565 2008-03-14  David Edelsohn  <edelsohn@gnu.org>
18566
18567         * doc/install.texi (Binaries): Remove UCLA archive.  Add HVCC
18568         archive and Perzl.  Update The Written Word listing.
18569
18570 2008-03-14  Richard Guenther  <rguenther@suse.de>
18571
18572         PR tree-optimization/34043
18573         PR tree-optimization/33989
18574         * tree-ssa-pre.c (execute_pre): Allow SCCVN to do insertion
18575         when doing FRE.
18576         (bitmap_find_leader): Use extra argument to verify dominance
18577         relationship inside a basic-block.
18578         (can_PRE_operation): Add VIEW_CONVERT_EXPR.
18579         (find_leader_in_sets): Adjust.
18580         (create_component_ref_by_pieces): Take extra argument for
18581         dominance check, handle lookup failures.
18582         (find_or_generate_expression): Likewise.
18583         (create_expression_by_pieces): Likewise.
18584         (insert_into_preds_of_block): Adjust.
18585         (create_value_expr_from): If asked for, verify all operands
18586         are in the blocks AVAIL_OUT set.
18587         (make_values_for_stmt): Check for SSA_NAMEs that are life
18588         over an abnormal edge.
18589         (compute_avail): Remove such check.
18590         (do_SCCVN_insertion): New function.
18591         (eliminate): If we do not find a leader suitable for replacement
18592         insert a replacement expression from SCCVN if available.
18593         * tree-ssa-sccvn.h (run_scc_vn): Update prototype.
18594         (struct vn_ssa_aux): Add needs_insertion flag.
18595         * tree-ssa-sccvn.c (may_insert): New global flag.
18596         (copy_reference_ops_from_ref): Value-number union member access
18597         based on its size, not type and member if insertion is allowed.
18598         (visit_reference_op_load): For a weak match from union type
18599         punning lookup a view-converted value and insert a SSA_NAME
18600         for that value if that is not found.
18601         (visit_use): Make dumps shorter.  Do not disallow value numbering
18602         SSA_NAMEs that are life over an abnormal edge to constants.
18603         (free_scc_vn): Release inserted SSA_NAMEs.
18604         (run_scc_vn): New flag to specify whether insertion is allowed.
18605         Process SSA_NAMEs in forward order.
18606         * tree-ssa-loop-im.c (for_each_index): Handle invariant
18607         ADDR_EXPRs inside VIEW_CONVERT_EXPR.
18608         * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPRs from/to
18609         pointer type to/from integral types that do not change the
18610         precision to regular conversions.
18611
18612 2008-03-13  Uros Bizjak  <ubizjak@gmail.com>
18613
18614         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
18615         __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
18616         __builtin_ia32_psrl?i, __builtin_ia32_psra?i, __builtin_ia32_psll?128,
18617         __builtin_ia32_psrl?128, __builtin_ia32_psra?128]: Fix the mode of
18618         input arguments and the mode of return value.  Built-in functions
18619         that operate on whole 64-bit MMX register now use V1DI mode.
18620
18621 2008-03-13  Alon Dayan  <alond@il.ibm.com>
18622             Olga Golovanevsky  <olga@il.ibm.com>
18623
18624         PR tree-optimization/35041
18625         * ipa-struct-reorg.c (find_pos_in_stmt_1): Add another option
18626         to locate the right position in a statement.
18627
18628 2008-03-13  Uros Bizjak  <ubizjak@gmail.com>
18629
18630         PR target/34000
18631         PR target/35553
18632         * config/i386/xmmintrin.h:  Change all static inline functions to
18633         extern inline and add __gnu_inline__ attribute.
18634         * config/i386/bmintrin.h: Ditto.
18635         * config/i386/smmintrin.h: Ditto.
18636         * config/i386/tmmintrin.h: Ditto.
18637         * config/i386/mmintrin-common.h: Ditto.
18638         * config/i386/ammintrin.h: Ditto.
18639         * config/i386/emmintrin.h: Ditto.
18640         * config/i386/pmmintrin.h: Ditto.
18641         * config/i386/mmintrin.h: Ditto.
18642         * config/i386/mm3dnow.h: Ditto.
18643
18644 2008-03-13  Jakub Jelinek  <jakub@redhat.com>
18645
18646         PR middle-end/35185
18647         * omp-low.c (lower_regimplify, init_tmp_var, save_tmp_var): Removed.
18648         (lower_omp_2): New function.
18649         (lower_omp_1, lower_omp): Rewritten.
18650
18651 2008-03-13  Danny Smith  <dannysmith@users.sourceforge.net>
18652
18653         PR 35054
18654         * doc/extend.texi (Structure-Packing Pragmas): Replace "Win32"
18655         with the phrase "Microsoft Windows compilers".
18656         (Push/Pop Macro Pragmas): New subsection. Document
18657         #pragma push_macro and pragma pop_macro.
18658
18659 2008-03-12  Paul Brook  <paul@codesourcery.com>
18660
18661         * config/arm/arm.c (output_move_double): Prefer LDRD to LDM.
18662
18663 2008-03-12  Paul Brook  <paul@codesourcery.com>
18664
18665         * config/arm/thumb2.md: Extend peephole to cover 3-arg subs.
18666         (thumb2_alusi3_short): Exclude PLUS and MINUS.
18667         (thumb2_addsi_shortim): Rename ...
18668         (thumb2_addsi_short): ... to this.  Allow register operands.
18669         (thumb2_subsi_short): New pattern.
18670         (thumb2_one_cmplsi2_short,
18671         thumb2_negsi2_short): New patterns and peepholes.
18672
18673 2008-03-12  Paul Brook  <paul@codesourcery.com>
18674
18675         * config/arm/arm.c (arm_size_rtx_costs): Use ARM costs for Thumb-2.
18676
18677 2008-03-12  Uros Bizjak  <ubizjak@gmail.com>
18678
18679         * config/i386/i386.md (int_cond): New code iterator.
18680         (fp_cond): Ditto.
18681         ("s<code>"): Macroize expander from seq, sne, sgt, sgtu, slt, sltu,
18682         sge, sgeu, sle and sleu expanders usign int_cond code iterator.
18683         ("s<code>"): Macroize expander from sunordered, sordered, suneq, sunge,
18684         sungt, sunle, sunlt and sltgt expanders usign fp_cond code iterator.
18685         ("b<code>"): Macroize expander from beq, bne, bgt, bgtu, blt, bltu,
18686         bge, bgeu, ble and bleu expanders usign int_cond code iterator.
18687         ("b<code>"): Macroize expander from bunordered, bordered, buneq, bunge,
18688         bungt, bunle, bunlt and bltgt expanders usign fp_cond code iterator.
18689
18690 2008-03-12  Paul Brook  <paul@codesourcery.com>
18691
18692         * config/arm/arm.c (use_return_insn): Use offsets->saved_regs_mask
18693         instead of {arm,thumb}_compute_save_reg_mask.
18694         (output_return_instruction): Ditto.
18695         (thumb_unexpanded_epilogue): Ditto.
18696         (thumb1_expand_prologue): Ditto.
18697         (thumb1_output_function_prologue): Ditto.
18698         (arm_set_return_address): Ditto.
18699         (thumb_set_return_address): Ditto.
18700         (arm_get_frame_offsets): Set offsets->saved_regs_mask.  Push extra
18701         regs to achieve stack alignment.
18702         (thumb1_compute_save_reg_mask): Fix compiler warning.
18703         (arm_output_epilogue): Use offsets->saved_regs_mask.
18704         Adjust stack pointer by poping call clobered registers.
18705         (arm_expand_prologue): Use offsets->saved_regs_mask.
18706         Adjust stack pointer by pushing extra registers.
18707         * config/arm.h (arm_stack_offsets): Add saved_regs_mask.
18708
18709 2008-03-12  Paolo Bonzini  <bonzini@gnu.org>
18710
18711         PR tree-opt/35422
18712         * fold-const.c (fold_unary) <NOP_EXPR>: Distribute a narrowing
18713         conversion to the operands of a multiplication.
18714
18715 2008-03-12  Richard Guenther  <rguenther@suse.de>
18716
18717         * Makefile.in (OBJS-common): Add tree-ssa-phiprop.o
18718         (tree-ssa-phiprop.o): Copy dependencies from tree-ssa-forwprop.o.
18719         * timevar.def (TV_TREE_PHIPROP): Add.
18720         * tree-ssa-phiprop.c: Split from tree-ssa-forwprop.c, added
18721         pass description.  Use TV_TREE_PHIPROP.
18722         * tree-ssa-forwprop.c: Remove phiprop code.
18723
18724 2008-03-12  Jakub Jelinek  <jakub@redhat.com>
18725
18726         PR middle-end/35549
18727         * omp-low.c (maybe_lookup_decl): Constify first argument.
18728         (use_pointer_for_field): Change last argument from bool to
18729         omp_context *.  Disallow shared copy-in/out in nested
18730         parallel if decl is shared in outer parallel too.
18731         (build_outer_var_ref, scan_sharing_clauses,
18732         lower_rec_input_clauses, lower_copyprivate_clauses,
18733         lower_send_clauses, lower_send_shared_vars): Adjust callers.
18734
18735 2008-03-12  Victor Kaplansky  <victork@il.ibm.com>
18736             Ira Rosen  <irar@il.ibm.com>
18737
18738         * tree-vectorizer.c (free_stmt_vec_info): New function.
18739         (destroy_loop_vec_info): Move code to free_stmt_vec_info().
18740         Call free_stmt_vec_info(). Free LOOP_VINFO_STRIDED_STORES..
18741         * tree-vectorizer.h (free_stmt_vec_info): Declare.
18742         * tree-vect-transform.c (vectorizable_conversion): Free
18743         vec_oprnds0 if it was allocated.
18744         (vect_permute_store_chain): Remove unused VECs.
18745         (vectorizable_store): Free VECs that are allocated in the..
18746         function.
18747         (vect_transform_strided_load, vectorizable_load): Likewise.
18748         (vect_remove_stores): Simplify the code.
18749         (vect_transform_loop): Move code to vect_remove_stores().
18750         Call vect_remove_stores() and free_stmt_vec_info().
18751
18752 2008-03-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
18753
18754         * pa.h (TARGET_LONG_PIC_SDIFF_CALL): Conditionalize define on
18755         TARGET_HPUX.  Revise comment.
18756         (TARGET_LONG_PIC_PCREL_CALL): Revise comment.
18757         * pa.c (output_call): Update for revised TARGET_LONG_PIC_SDIFF_CALL.
18758         Use sr4 variant of `be' instruction when not generating PIC code.
18759         (attr_length_call): Adjust for above change.
18760
18761 2008-03-11  Andrew Pinski  <andrew_pinski@playstation.sony.com>
18762
18763         * ipa-reference.c (static_execute): Remove module_statics_const and
18764         associated setting code.
18765
18766 2008-03-11  Uros Bizjak  <ubizjak@gmail.com>
18767
18768         PR target/35540
18769         * config/i386/i386.md (paritysi2, paritydi2): Use register_operand
18770         predicate for operand 1.
18771         (paritysi2_cmp): Use register_operand predicate for operand 2.
18772         Use earlyclobber modifier for operand 1.  Remove support for
18773         memory operands.
18774         (paritydi2_cmp): Use register_operand predicate for operand 3.
18775         Use earlyclobber modifier for operand 1.  Remove support for
18776         memory operands.
18777
18778 2008-03-11  Paul Brook  <paul@codesourcery.com>
18779             Vladimir Prus  <vladimir@codesourcery.com>
18780
18781         * config/arm/arm.c (use_return_insn): Check TARGET_APCS_FRAME.
18782         (arm_compute_save_reg0_reg12_mask): Always
18783         check if register 11 must be saved.  Always safe hard frame pointer
18784         when frame_pointer_needeed.
18785         (arm_compute_save_reg_mask): Save IP and PC
18786         only with apcs frames.
18787         (arm_output_epilogue): Adjust Thumb2 codepath to
18788         be also invoked and work for ARM non-apcs frames.
18789         (arm_expand_prologue): Don't bother saving IP
18790         for non-apcs frame, since it's not clobbered by
18791         prologue code.  Implement non-apcs frame
18792         layout.
18793
18794 2008-03-11  Paolo Bonzini  <bonzini@gnu.org>
18795
18796         PR rtl-optimization/35281
18797         * expr.c (convert_move): Use a new pseudo for the intermediate
18798         from_mode->word_mode result.
18799
18800 2008-03-11  Paolo Bonzini  <bonzini@gnu.org>
18801
18802         * langhooks-def.h (LANG_HOOKS_CLEAR_BINDING_STACK): Delete.
18803         * langhooks.h (struct lang_hooks): Delete clear_binding_stack member.
18804         * toplev.c (compile_file): Don't call it.
18805
18806 2008-03-11  Uros Bizjak  <ubizjak@gmail.com>
18807
18808         PR middle-end/35526
18809         * expr.c (store_expr): Call emit_block_move if the mode
18810         of "temp" RTX is BLKmode.
18811
18812 2008-03-11  Andrew Pinski  <andrew_pinski@playstation.sony.com>
18813             Richard Guenther  <rguenther@suse.de>
18814
18815         PR tree-optimization/31358
18816         * tree-ssa-loop-manip.c (create_iv): Call force_gimple_operand for
18817         the step with a NULL_TREE.
18818         * tree-ssa-loop-ivopts.c (find_bivs): Convert the step
18819         to sizetype if type is a pointer type.
18820         (add_candidate_1): Don't convert the base and step to
18821         the generic type if the orginal type is a pointer type.
18822         (add_iv_value_candidates): Use sizetype for the step
18823         if type is a pointer type.
18824         (cand_value_at): Likewise.
18825         * tree-ssa-address.c (add_to_parts): Use POINTER_PLUS_EXPR
18826         for pointer types.
18827         * tree-affine.c (tree_to_aff_combination <POINTER_PLUS_EXPR>):
18828         Don't convert the tem affine to the type.
18829         (add_elt_to_tree): Use sizetype for the step if a pointer.
18830         Use POINTER_PLUS_EXPR for pointers.
18831         (aff_combination_to_tree): Use sizetype for the step if a
18832         pointer.
18833
18834 2008-03-10  Vladimir Makarov  <vmakarov@redhat.com>
18835
18836         * config/i386/sse.md (ssse3_pmaddubswv8hi3, ssse3_pmaddubswv4hi3):
18837         Remove commutativity hint.
18838
18839 2008-03-10  Jakub Jelinek  <jakub@redhat.com>
18840
18841         PR c/35438
18842         PR c/35439
18843         * c-parser.c (c_parser_omp_threadprivate): Don't add vars with
18844         errorneous type.  Check that v is a VAR_DECL.
18845
18846         PR middle-end/35099
18847         * tree-cfg.c (new_label_mapper): Update cfun->last_label_uid.
18848
18849 2008-03-10  H.J. Lu  <hongjiu.lu@intel.com>
18850
18851         PR tree-optimization/35494
18852         * tree-ssa-ccp.c (get_symbol_constant_value): Check if value
18853         may be overriden at link and run time.
18854
18855 2008-03-10  Richard Guenther  <rguenther@suse.de>
18856
18857         PR tree-optimization/34677
18858         * tree-ssa-pre.c (modify_expr_node_pool): Remove.
18859         (poolify_tree): Likewise.
18860         (modify_expr_template): Likewise.
18861         (poolify_modify_stmt): Likewise.
18862         (insert_fake_stores): Handle all component-ref style stores
18863         in addition to INDIRECT_REF.  Also handle complex types.
18864         Do not poolify the inserted load.
18865         (realify_fake_stores): Do not rebuild the tree but only
18866         make it a SSA_NAME copy.
18867         (init_pre): Remove initialzation of modify_expr_template.
18868         Do not allocate modify_expr_node_pool.
18869         (fini_pre): Do not free modify_expr_node_pool.
18870
18871 2008-03-10  Paul Brook  <paul@codesourcery.com>
18872
18873         * config/arm/arm.md (UNSPEC_STACK_ALIGN, UNSPEC_PIC_OFFSET): Renumber
18874         to avoid conflicts.
18875
18876 2008-03-10  Paul Brook  <paul@codesourcery.com>
18877             Mark Shinwell  <shinwell@codesourcery.com>
18878
18879         * config/arm/cortex-r4.md: New.
18880         * config/arm/thumb2.md (divsi3, udivsi3): Annotate with
18881         insn attributes.
18882         * config/arm/arm.md: Include cortex-r4.md.
18883         (insn): Add smmls, sdiv and udiv values.
18884         (generic_sched): Don't use generic scheduling for Cortex-R4.
18885         (arm_issue_rate): New function.
18886         (TARGET_SCHED_ISSUE_RATE): Define.
18887
18888 2008-03-10  Sebastian Pop  <sebastian.pop@amd.com>
18889
18890         * doc/invoke.texi (-ftree-loop-distribution): Add an example.
18891
18892 2008-03-10  Richard Guenther  <rguenther@suse.de>
18893
18894         * tree-ssa-pre.c (get_sccvn_value): Simplify.
18895         (compute_avail): Do not add stmt uses to AVAIL_OUT.
18896
18897 2008-03-10  Paolo Bonzini  <bonzini@gnu.org>
18898
18899         * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS):
18900         Set default to true.
18901
18902 2008-03-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18903
18904         * c.opt (Wsynth): Deprecate.
18905         * doc/invoke.texi (Option Summary, Warning Options): Document
18906         -Wno-format-contains-nul.
18907
18908 2008-03-09  Uros Bizjak  <ubizjak@gmail.com>
18909
18910         PR target/35496
18911         * config/i386/i386.c (ix86_constant_alignment): Compute alignment using
18912         ALIGN_MODE_128 for VECTOR_CST and INTEGER_CST in addition to REAL_CST.
18913
18914 2008-03-09  Ira Rosen  <irar@il.ibm.com>
18915
18916         * config/rs6000/rs6000.c (builtin_description): Rename vector
18917         left shift operations.
18918         * config/rs6000/altivec.md (UNSPEC_VSL): Remove.
18919         (altivec_vsl<VI_char>): Rename to ...
18920         (ashl<mode>3): ... new name.
18921         (mulv4sf3, mulv4si3, negv4sf2): Replace gen_altivec_vslw with
18922         gen_ashlv4si3.
18923         (absv4sf2): Convert to use ashift:V4SI instead of UNSPEC_VSL.
18924
18925 2008-03-08  Richard Guenther  <rguenther@suse.de>
18926
18927         * coverage.h (tree_coverage_counter_addr): Declare.
18928         * coverage.c (tree_coverage_counter_addr): New function.
18929         * tree-profile.c (tree_gen_edge_profiler): Unshare counter
18930         before using again.
18931         (tree_gen_pow2_profiler): Use tree_coverage_counter_addr.
18932         (tree_gen_one_value_profiler): Likewise.
18933         (tree_gen_ic_profiler): Likewise.
18934         (tree_gen_average_profiler): Likewise.
18935         (tree_gen_ior_profiler): Likewise.
18936
18937 2008-03-08  Richard Guenther  <rguenther@suse.de>
18938
18939         * tree-ssa-sccvn.h (vn_binary_op_lookup): Remove.
18940         (vn_binary_op_insert): Likewise.
18941         (vn_unary_op_lookup): Likewise.
18942         (vn_unary_op_insert): Likewise.
18943         (vn_nary_op_lookup): Declare.
18944         (vn_nary_op_insert): Likewise.
18945         * tree-ssa-sccvn.c (struct vn_tables_s): Merge unary
18946         and binary hashes, use a single obstack for unary_op_pool
18947         and binary_op_pool.
18948         (struct vn_binary_op_s, struct vn_unary_op_s): Replace with
18949         a single struct vn_nary_op_s.  Store tree code length and
18950         a variable number of operands.
18951         (struct vn_reference_op_struct): Remove unused op2.
18952         (vn_reference_op_eq): Do not compare op2.
18953         (vn_reference_op_compute_hash): Do not compute hash of op2.
18954         (vn_unary_op_hash, vn_binary_op_hash): Replace with vn_nary_op_hash.
18955         (vn_unary_op_compute_hash, vn_binary_op_compute_hash): Replace
18956         with vn_nary_op_compute_hash.
18957         (vn_unary_op_eq, vn_binary_op_eq): Replace with vn_nary_op_eq.
18958         (vn_unary_op_lookup, vn_binary_op_lookup): Replace with
18959         vn_nary_op_lookup.
18960         (vn_unary_op_insert, vn_binary_op_insert): Replace with
18961         vn_nary_op_insert.
18962         (visit_unary_op): Call nary functions.
18963         (visit_binary_op): Likewise.
18964         (process_scc): Adjust for struct vn_tables_s changes.
18965         (allocate_vn_table): Likewise.
18966         (free_vn_table): Likewise.
18967         * tree-vn.c (vn_add): Call nary functions.
18968         (vn_lookup): Likewise.
18969
18970 2008-03-08  Jakub Jelinek  <jakub@redhat.com>
18971
18972         PR target/35498
18973         * config/rs6000/rs6000.c (rs6000_expand_compare_and_swapqhi): Shift
18974         wdst back after sync_compare_and_swapqhi_internal.
18975
18976 2008-03-08  Uros Bizjak  <ubizjak@gmail.com>
18977
18978         PR target/22152
18979         * config/i386/i386-modes.def (V1DI): New vector mode.
18980         * config/i386/i386.h (VALID_MMX_REG_MODE): Add V1DImode.
18981         * config/i386/mmx.md (MMXMODEI8): New mode iterator.
18982         (MMXMODE248): Ditto.
18983         (MMXMODE): Add V1DI mode.
18984         (mmxvecsize): Change DI mode to V1DI mode.
18985         ("mov<mode>): Use MMXMODEI8 mode iterator.
18986         ("*mov<mode>_internal_rex64"): Ditto.
18987         ("*mov<mode>_internal"): Ditto.
18988         ("mmx_add<mode>3"): Ditto.  Handle V1DImode for TARGET_SSE2.
18989         ("mmx_sub<mode>3"): Ditto.
18990         ("mmx_adddi3"): Remove insn pattern.
18991         ("mmx_subdi3"): Ditto.
18992         ("mmx_ashr<mode>3"): Use SImode and "yN" constraint for operand 2.
18993         ("mmx_lshr<mode>3"): Ditto. Use MMXMODE248 mode iterator.
18994         ("mmx_ashl<mode>3"): Ditto.
18995         ("mmx_lshrdi3"): Remove insn pattern.
18996         ("mmx_ashldi3"): Ditto.
18997         * config/i386/i386.c (classify_argument): Handle V1DImode.
18998         (function_arg_advance_32): Ditto.
18999         (function_arg_32): Ditto.
19000         (struct builtin_description) [IX86_BUILTIN_PADDQ]: Use
19001         mmx_addv1di3 insn pattern.
19002         [IX86_BUILTIN_PSUBQ]: Use mmx_subv1di3 insn pattern.
19003         [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?, IX86_BUILTIN_PSRA?,
19004         IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I, IX86_BUILTIN_PSRA?I,
19005         IX86_BUILTIN_PSLL?I128, IX86_BUILTIN_PSRL?I128, IX86_BUILTIN_PSRA?I128]:
19006         Remove definitions of built-in functions.
19007         (V1DI_type_node): New node.
19008         (v1di_ftype_v1di_int): Ditto.
19009         (v1di_ftype_v1di_v1di): Ditto.
19010         (v2si_ftype_v2si_si): Ditto.
19011         (v4hi_ftype_v4hi_di): Remove node.
19012         (v2si_ftype_v2si_di): Ditto.
19013         (ix86_init_mmx_sse_builtins): Handle V1DImode.
19014         (__builtin_ia32_psll?, __builtin_ia32_psrl?, __builtin_ia32_psra?):
19015         Redefine builtins using def_builtin_const with *_ftype_*_int node.
19016         (__builtin_ia32_psll?i, __builtin_ia32_psrl?i, __builtin_ia32_psra?i):
19017         Add new builtins using def_builtin_const.
19018         (ix86_expand_builtin) [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?,
19019         IX86_BUILTIN_PSRA?, IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I,
19020         IX86_BUILTIN_PSRA?I]: Handle builtin definitions.
19021         * config/i386/mmintrin.h (__v1di): New typedef.
19022         (_mm_add_si64): Cast arguments to __v1di type.
19023         (_mm_sub_si64): Ditto.
19024         (_mm_sll_pi16): Cast __count to __v4hi type.
19025         (_mm_sll_pi32): Cast __count to __v2si type.
19026         (_mm_sll_si64): Cast arguments to __v1di type.
19027         (_mm_srl_pi16): Cast __count to __v4hi type.
19028         (_mm_srl_pi32): Cast __count to __v2si type.
19029         (_mm_srl_si64): Cast arguments to __v1di type.
19030         (_mm_sra_pi16): Cast __count to __v4hi type.
19031         (_mm_sra_pi32): Cast __count to __v2si type.
19032         (_mm_slli_pi16): Use __builtin_ia32_psllwi.
19033         (_mm_slli_pi32): Use __builtin_ia32_pslldi.
19034         (_mm_slli_si64): Use __builtin_ia32_psllqi. Cast __m to __v1di type.
19035         (_mm_srli_pi16): Use __builtin_ia32_psrlwi.
19036         (_mm_srli_pi32): Use __builtin_ia32_psrldi.
19037         (_mm_srli_si64): Use __builtin_ia32_psrlqi. Cast __m to __v1di type.
19038         (_mm_srai_pi16): Use __builtin_ia32_psrawi.
19039         (_mm_srai_pi32): Use __builtin_ia32_psradi.
19040         * config/i386/i386.md (UNSPEC_NOP): Remove unspec definition.
19041         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
19042         __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
19043         __builtin_ia32_psrl?i, __builtin_ia32_psra?i]: Add new builtins.
19044
19045 2008-03-07  Joseph Myers  <joseph@codesourcery.com>
19046
19047         * doc/include/texinfo.tex: Update to version 2008-03-07.10.
19048
19049 2008-03-07  Peter Bergner  <bergner@vnet.ibm.com>
19050
19051         PR target/35373
19052         * config/rs6000/rs6000.c (rs6000_legitimize_address): Don't generate
19053         reg+const addressing for Altivec modes.  Don't generate reg+reg
19054         addressing for TFmode or TDmode quantities.
19055
19056 2008-03-07  Paolo Bonzini  <bonzini@gnu.org>
19057
19058         * c-common.c (vector_types_convertible_p): Call langhook
19059         instead of comptypes.
19060
19061 2008-03-06  Andrew Pinski  <andrew_pinski@playstation.sony.com>
19062
19063         PR tree-opt/35402
19064         * tree-ssa-ccp.c (get_symbol_constant_value): Handle
19065         integral and scalar float variables which have a
19066         NULL DECL_INITIAL.
19067
19068 2008-03-06  Nathan Froyd  <froydnj@codesourcery.com>
19069
19070         * dwarf2out.c (dwarf2out_frame_debug_expr): Consult the
19071         dwarf_register_span hook when emitting unwind information for
19072         register-to-memory saves.
19073         * config/rs6000/rs6000.c (spe_synthesize_frame): Delete.
19074         (rs6000_frame_related): Remove call to spe_synthesize_frame.
19075
19076 2008-03-06  Jakub Jelinek  <jakub@redhat.com>
19077
19078         * gimplify.c (goa_lhs_expr_p): Allow different ADDR_EXPR nodes
19079         for the same VAR_DECL.
19080
19081 2008-03-06  Tom Tromey  <tromey@redhat.com>
19082
19083         * treelang: Delete.
19084         * doc/standards.texi (Standards): Don't mention treelang.
19085         * doc/invoke.texi (Overall Options): Don't mention treelang.
19086         * doc/install.texi (Prerequisites): Don't mention bison or
19087         treelang.
19088         (Configuration): Don't mention treelang.
19089         (Building): Likewise.
19090         * doc/frontends.texi (G++ and GCC): Don't mention treelang.
19091
19092 2008-03-06  Paolo Bonzini  <bonzini@gnu.org>
19093
19094         * simplify-rtx.c (simplify_subreg): Remove useless shifts from
19095         word-extractions out of a multi-word object.
19096
19097 2008-03-06  Richard Guenther  <rguenther@suse.de>
19098
19099         * tree.def (BIT_FIELD_REF): Constrain result type and its precision.
19100         * tree-cfg.c (verify_expr): Verify BIT_FIELD_REF constraints on
19101         result type and precision.
19102         * expr.c (get_inner_reference): Set unsignedp based on the result
19103         type of BIT_FIELD_REF.
19104         * tree.h (BIT_FIELD_REF_UNSIGNED): Remove.
19105         * tree-sra.c (instantiate_element): Do not set BIT_FIELD_REF_UNSIGNED.
19106         (try_instantiate_multiple_fields): Likewise.  Use the correct type
19107         for BIT_FIELD_REF.
19108         (sra_build_assignment): Likewise.
19109         (sra_build_elt_assignment): Likewise.
19110         (sra_explode_bitfield_assignment): Likewise.
19111         * print-tree.c (print_node): Do not check BIT_FIELD_REF_UNSIGNED.
19112         * tree-vect-transform.c (vect_create_epilog_for_reduction): Do not
19113         set BIT_FIELD_REF_UNSIGNED.
19114         (vectorizable_load): Likewise.
19115
19116 2008-03-06  Andreas Krebbel  <krebbel1@de.ibm.com>
19117
19118         * cse.c (cse_extended_basic_block): Invalidate artificial defs
19119         at bb start.
19120
19121 2008-03-06  Richard Guenther  <rguenther@suse.de>
19122
19123         * alias.c (struct alias_set_entry): Move has_zero_child field
19124         to pack with alias_set.
19125
19126 2008-03-05  H.J. Lu  <hongjiu.lu@intel.com>
19127
19128         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
19129         32bit host.
19130
19131 2008-03-05  Ian Lance Taylor  <iant@google.com>
19132
19133         * alias.h (alias_set_type): Change from HOST_WIDE_INT to int.
19134
19135 2008-03-05  Kenneth Zadeck  <zadeck@naturalbridge.com>
19136
19137         * fwprop.c (update_df): Support width and offset parameters of
19138         df_ref_create.
19139         * ra-conflict.c (mark_reg_store, clear_reg_in_live,
19140         global_conflicts): Change DF_REF_EXTRACT to either
19141         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
19142         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
19143         * df-scan.c (df_ref_record, df_defs_record,
19144         df_ref_create_structure, df_def_record_1, df_uses_record,
19145         df_get_conditional_uses, df_get_call_refs, df_insn_refs_collect,
19146         df_bb_refs_collect, df_entry_block_defs_collect,
19147         df_exit_block_uses_collect): Support new width and offset fields.
19148         (ref_extract_pool): New storage pool.
19149         (df_free_ref): New function.
19150         (df_reg_chain_unlink, df_free_collection_rec,
19151         df_sort_and_compress_refs): Call df_free_ref.
19152         (df_ref_equal_p, df_ref_compare): Compare offset and width fields
19153         of df_ref_extract.
19154         (df_ref_create_structure): Allocate df_ref_extract if offset and
19155         width fields are used.
19156         (df_def_record_1): Get offset and width from ZERO_EXTRACT.
19157         (df_uses_record): Get offset and width from ZERO_EXTRACT
19158         and SIGN_EXTRACT.
19159         * global.c (build_insn_chain): Change DF_REF_EXTRACT to either
19160         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
19161         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
19162         * df.h (df_ref_flags): Change DF_REF_EXTRACT to either
19163         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
19164         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
19165         (df_ref_extract): New structure.
19166         (DF_REF_WIDTH, DF_REF_OFFSET): New macros.
19167         (df_ref_create): Add width and offset parameters.
19168
19169 2008-03-05  Richard Guenther  <rguenther@suse.de>
19170
19171         * tree-ssa-structalias.c (get_constraint_for_component_ref):
19172         Use ranges_overlap_p.
19173         (offset_overlaps_with_access): Rename
19174         to ranges_overlap_p and move ...
19175         * tree-flow-inline.h (ranges_overlap_p): ... here.
19176
19177         * tree.h (get_inner_reference, handled_component_p): Update
19178         comments.
19179
19180         * tree.h (record_component_aliases, get_alias_set,
19181         alias_sets_conflict_p, alias_sets_must_conflict_p,
19182         objects_must_conflict_p): Move declarations ...
19183         * alias.h (record_component_aliases, get_alias_set,
19184         alias_sets_conflict_p, alias_sets_must_conflict_p,
19185         objects_must_conflict_p): ... here.
19186         Include coretypes.h.
19187         * Makefile.in (ALIAS_H): Add coretypes.h dependency.
19188
19189 2008-03-05  Aldy Hernandez  <aldyh@redhat.com>
19190
19191         * cfg.c: Include tree-flow.h.
19192         (remove_edge_raw): Call redirect_edge_var_map_clear.
19193         (redirect_edge_succ_nodup): Call redirect_edge_var_map_dup.
19194         * tree-flow-inline.h (redirect_edge_var_map_def): New.
19195         (redirect_edge_var_map_result): New.
19196         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Replace
19197         PENDING_STMT use with redirect_edge_var_map_*.
19198         * tree-ssa.c (edge_var_maps): New definition.
19199         (redirect_edge_var_map_add): New.
19200         (redirect_edge_var_map_clear): New.
19201         (redirect_edge_var_map_dup): New.
19202         (redirect_edge_var_map_vector): New.
19203         (redirect_edge_var_map_destroy): New.
19204         (ssa_redirect_edge): Replace PENDING_STMT use with
19205         redirect_edge_var_map_*.
19206         (flush_pending_stmts): Same.
19207         (delete_tree_ssa): Destroy edge var map.
19208         * tree-flow.h (struct _edge_var_map): New.
19209         Define edge_var_map vector type.
19210         Declare redirect_edge_var_map_* prototypes.
19211         * Makefile.in (cfg.o): Depend on TREE_FLOW_H.
19212         * tree-cfg.c (reinstall_phi_args): Replace
19213         PENDING_STMT use with redirect_edge_var_map_*.
19214
19215 2008-03-05  Richard Guenther  <rguenther@suse.de>
19216
19217         PR tree-optimization/35472
19218         * tree-ssa-dse.c (dse_optimize_stmt): Do not delete a store
19219         whose single use_stmt has a overlapping set of loaded and
19220         stored symbols as that use_stmt might be a noop assignment then.
19221
19222 2008-03-05  Joel Sherrill <joel.sherrill@oarcorp.com>
19223
19224         * gthr-rtems.h: Implement __gthread_mutex_destroy.
19225
19226 2008-03-05  Richard Guenther  <rguenther@suse.de>
19227
19228         PR c++/35336
19229         * tree.def (BIT_FIELD_REF): Document that operands 1 and 2
19230         should be constants.
19231         * tree-cfg.c (verify_expr): Verify it.
19232         * fold-const.c (fold_truthop): Remove code generating
19233         BIT_FIELD_REFs of structure bases.
19234         (fold_binary): Likewise.
19235         (fold_ternary): Position and size of BIT_FIELD_REFs are
19236         always host integers.
19237         (make_bit_field_ref): Remove.
19238         (optimize_bit_field_compare): Remove.
19239         (all_ones_mask_p): Remove.
19240
19241 2008-03-05  Gabor Loki  <loki@gcc.gnu.org>
19242
19243         PR gcc/33009
19244         * rtl-factoring.c (clear_regs_live_in_seq): Fix backward steps.
19245         (split_block_and_df_analyze): New. Split basic block and rebuild
19246         dataflow.
19247         (block_label_after): Use SPLIT_BLOCK_AND_DF_ANALYZE instead of
19248         SPLIT_BLOCK.
19249         (split_pattern_seq): Likewise.
19250         (erase_matching_seqs): Likewise.
19251         (split_pattern_seq): Skip return insn in case of REG_NORETURN note.
19252
19253 2008-03-04  Geoff Keating  <geoffk@apple.com>
19254
19255         * fold-const.c (tree_single_nonnegative_warnv_p): Fix mixed
19256         declaration and code.
19257         (tree_invalid_nonnegative_warnv_p): Likewise.
19258
19259 2008-03-05  Serge Belyshev  <belyshev@depni.sinp.msu.ru>
19260
19261         * doc/install.texi (Testing): Correct quoting for the RUNTESTFLAGS
19262         examples.  Truncate option-names then causing overfull hbox.
19263
19264 2008-03-04  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
19265
19266         PR target/35222
19267         * configure.ac (CONFIG_SJLJ_EXCEPTIONS): Force SJLJ exceptions
19268         on hpux10.
19269         * configure: Rebuilt.
19270
19271 2008-03-04  Rafael Espíndola  <espindola@google.com>
19272
19273         * fold-const.c (tree_simple_nonnegative_warnv_p): New.
19274         (tree_unary_nonnegative_warnv_p): New.
19275         (tree_binary_nonnegative_warnv_p): New.
19276         (tree_single_nonnegative_warnv_p): New.
19277         (tree_invalid_nonnegative_warnv_p): New.
19278         (tree_expr_nonnegative_warnv_p): Redefine in term of the new functions.
19279
19280 2008-03-04  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
19281
19282         PR 28322
19283         * opts.c (handle_option): Postpone 'unknown option' errors only for
19284         warning options.
19285
19286 2008-03-04  H.J. Lu  <hongjiu.lu@intel.com>
19287
19288         PR target/35453
19289         * config/i386/smmintrin.h (SIDD_XXX): Renamed to ...
19290         (_SIDD_XXX): This.
19291
19292 2008-03-04  Rafael Espíndola  <espindola@google.com>
19293
19294         * fold-const.c (tree_unary_nonzero_warnv_p): New.
19295         (tree_binary_nonzero_warnv_p): New.
19296         (tree_single_nonzero_warnv_p): New.
19297         (tree_expr_nonzero_warnv_p): Redefine using the new functions.
19298
19299 2008-03-04  Uros Bizjak  <ubizjak@gmail.com>
19300
19301         PR middle-end/35456
19302         * fold-const.c (fold_cond_expr_with_comparison): Prevent
19303         transformations for modes that have signed zeros.
19304         * ifcvt.c (noce_try_abs): Ditto.
19305
19306 2008-03-04  Joseph Myers  <joseph@codesourcery.com>
19307
19308         * config/i386/i386.c (override_options): Force
19309         -maccumulate-outgoing-args on if TARGET_STACK_PROBE.
19310
19311 2008-03-04  Jan Hubicka  <jh@suse.cz>
19312
19313         PR c++/35262
19314         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Fix typo
19315         in last commit.
19316
19317 2008-03-04  Danny Smith  <dannysmith@users.sourceforge.net>
19318
19319         * config/i386/i386.md (allocate_stack_worker_32): Use  __chkstk
19320         label to probe the stack.
19321
19322 2008-03-04  Danny Smith  <dannysmith@users.sourceforge.net>
19323
19324         * gthr-win32.h [__GTHREAD_HIDE_WIN32API]
19325         (__gthr_win32_mutex_destroy): Declare.
19326         [__GTHREAD_HIDE_WIN32API] (__gthread_mutex_destroy): Use
19327         __gthr_win32_mutex_destroy.
19328         * config/i386/gthr-win32.c  (__gthr_win32_mutex_destroy): Define.
19329
19330 2008-03-03  Jan Hubicka  <jh@suse.cz>
19331
19332         PR c++/35262
19333         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Be more
19334         aggressive on inlining cold calls.
19335
19336 2008-03-03  Richard Guenther  <rguenther@suse.de>
19337
19338         * tree-ssa-sccvn.c (visit_reference_op_store): Do not insert
19339         struct copies into the expression table.
19340         (simplify_unary_expression): Handle VIEW_CONVERT_EXPR.
19341         (try_to_simplify): Likewise.
19342         * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPR of
19343         integral and pointer arguments which do not change the
19344         precision to NOP_EXPRs.
19345         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Adjust
19346         VIEW_CONVERT_EXPR case.
19347
19348 2008-03-02  Sebastian Pop  <sebastian.pop@amd.com>
19349
19350         * tree-scalar-evolution.c (instantiate_parameters_1): An SSA_NAME
19351         defined in a loop at depth 0 is invariant.
19352         * tree-chrec.c (evolution_function_is_invariant_rec_p): Ditto.
19353         * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Should never
19354         be called at loop depth 0.
19355
19356 2008-03-02  Jakub Jelinek  <jakub@redhat.com>
19357
19358         PR driver/35420
19359         * gcc.c (process_command): Update copyright notice dates.
19360         * gcov.c (print_version): Likewise.
19361         * gcov-dump.c (print_version): Likewise.
19362         * mips-tfile.c (main): Likewise.
19363         * mips-tdump.c (main): Likewise.
19364
19365 2008-03-02  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
19366
19367         PR 24924
19368         * c-common.c (flag_permissive): Delete.
19369         (constant_expression_warnings): Check flags first.
19370         (constant_expression_error): New.
19371         * c-common.h (flag_permissive): Delete.
19372         (constant_expression_error): Declare.
19373         * flags.h (flag_permissive): Declare. Update description.
19374         * diagnostic.c (pedwarn): Update.
19375         (permerror): New.
19376         * diagnostic.h: (pedantic_error_kind): Rename as pedantic_warning_kind.
19377         (permissive_error_kind): New.
19378         * toplev.c (flag_permissive): Define. Update description.
19379         * toplev.h (permissive_error_kind): Declare.
19380         * c-errors.c (pedwarn_c99): Use pedantic_warning_kind.
19381         (pedwarn_c90): Use pedantic_warning_kind.
19382         * c-opts.c (c_common_post_options): flag_permissive does not affect
19383         flag_pedantic_errors.
19384
19385 2008-03-02  Joseph Myers  <joseph@codesourcery.com>
19386
19387         * libgcc2.c (__addvSI3, __addvsi3, __addvDI3, __subvSI3,
19388         __subvsi3, __subvDI3, __negvSI2, __negvsi2, __negvDI2, __absvSI2,
19389         __absvsi2, __absvDI2): Use unsigned arithmetic.
19390
19391 2008-03-02  Andi Kleen  <ak@suse.de>
19392             Richard Guenther  <rguenther@suse.de>
19393
19394         * struct-equiv.c: Remove file.
19395         * cfg_cleanup.c (condjump_equiv_p): Remove.
19396         * Makefile.in (OBJS-common): Remove struct-equiv.o.
19397         (struct-equiv.o): Remove rule.
19398         * basic-block.h (struct_equiv_checkpoint, STRUCT_EQUIV_*,
19399         insns_match_p, struct_equiv_block_eq, struct_equiv_init,
19400         rtx_equiv_p, condjump_equiv_p): Remove prototypes.
19401
19402 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
19403
19404         * ifcvt.c (noce_process_if_block): Try to handle only the then
19405         block if the else block exists but isn't suitable.
19406
19407 2008-03-01  Janne Blomqvist  <jb@gcc.gnu.org>
19408
19409         PR gcc/35063
19410         * gthr-posix.h (__gthread_mutex_destroy): Remove extra declarations.
19411         * gthr-posix95.h (__gthread_mutex_destroy): Likewise. Note this fixes
19412         regression from previous patch.
19413
19414 2008-03-01  Janne Blomqvist  <jb@gcc.gnu.org>
19415
19416         PR gcc/35063
19417         * gthr.h: Add __gthread_mutex_destroy as a function that must be
19418         implemented.
19419         * gthr-vxworks.h (__gthread_mutex_destroy): Null implementation.
19420         * gthr-single.h (__gthread_mutex_destroy): Likewise.
19421         * gthr-rtems.h (__gthread_mutex_destroy): Likewise.
19422         * gthr-mipssde.h (__gthread_mutex_destroy): Likewise.
19423         * gthr-nks.h (__gthread_mutex_destroy): Likewise.
19424         * gthr-solaris.h (__gthread_mutex_destroy): Call mutex_destroy.
19425         * gthr-win32.h (__GTHREAD_MUTEX_DESTROY_FUNCTION): Remove.
19426         (__gthread_mutex_destroy_function): Rename to
19427         __gthread_mutex_destroy.
19428         * gthr-dce.h (__gthread_mutex_destroy): Call
19429         pthread_mutex_destroy.
19430         * gthr-tpf.h (__gthread_mutex_destroy): Likewise.
19431         * gthr-posix.h (__gthread_mutex_destroy): Likewise.
19432         * gthr-posix95.h (__gthread_mutex_destroy): Likewise.
19433
19434 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
19435
19436         * df-scan.c (df_ref_chain_change_bb): Simplify.
19437         (df_insn_change_bb): Add new_bb argument.  Simplify.  Call
19438         set_block_for_insn if there's any change.
19439         * df.h ((df_insn_change_bb): Fix prototype.
19440         * cfgrtl.c (update_bb_for_insn_chain): Pass bb to
19441         df_insn_change_bb, don't call set_block_for_insn.
19442         * emit-rtl.c (reorder_insns): Likewise.
19443         * haifa-sched.c (move_insn): Likewise.
19444
19445 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
19446
19447         * rtlanal.c (loc_mentioned_in_p): Test XVECEXPs correctly.
19448
19449 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
19450
19451         * tree-flow-inline.h (next_readonly_imm_use): Return
19452         NULL_USE_OPERAND_P after the end.
19453
19454 2008-03-01  Richard Guenther  <rguenther@suse.de>
19455
19456         PR tree-optimization/35411
19457         * tree-sra.c (sra_build_assignment): Split conversion to
19458         final type to a separate statement if we are not assigning
19459         to a register.
19460
19461 2008-02-29  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
19462
19463         * fold-const.c (fold_convertible_p): Correct the logic to follow
19464         that in fold_convert().
19465
19466 2008-02-29  Douglas Gregor  <doug.gregor@gmail.com>
19467
19468         PR c++/35315
19469         * tree-inline.c (build_duplicate_type): When we make a
19470         duplicate type, make it unique in the canonical types system.
19471
19472 2008-02-29  Tom Tromey  <tromey@redhat.com>
19473
19474         * toplev.c (input_file_stack, input_file_stack_tick, fs_p,
19475         input_file_stack_history, input_file_stack_restored): Remove.
19476         (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
19477         * input.h (struct file_stack): Remove.
19478         (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
19479         (input_file_stack, input_file_stack_tick, INPUT_FILE_STACK_BITS):
19480         Likewise.
19481         * diagnostic.h (struct diagnostic_context) <last_module>: Change
19482         type.
19483         (diagnostic_last_module_changed): Add 'map' argument.
19484         (diagnostic_set_last_function): Likewise.
19485         * diagnostic.c (undiagnostic_report_current_module): Iterate using
19486         line map, not input_file_stack.
19487         * c-lex.c (fe_file_change): Don't use push_srcloc or pop_srcloc.
19488
19489 2008-02-29  Paul Brook  <paul@codesourcery.com>
19490
19491         * config/arm/arm.md (arm_addsi3): Add r/k/n alternative.
19492
19493 2008-02-29  Paul Brook  <paul@codesourcery.com>
19494
19495         * config/arm/ieee754-df.S (muldf3): Use RET macros.
19496
19497 2008-02-29  Richard Guenther  <rguenther@suse.de>
19498
19499         * tree-ssa-pre.c (get_sccvn_value): Create missing VNs via
19500         vn_lookup_or_add.
19501         * tree-ssa-sccnv.c (visit_reference_op_store): Use the rhs
19502         value for comparing for a store match.
19503         (simplify_unary_expression): Do nothing for SSA_NAMEs.
19504         (try_to_simplify): Do not do a full-blown reference lookup.
19505
19506 2008-02-29  Kaz Kojima  <kkojima@gcc.gnu.org>
19507
19508         * config/sh/sh.c (sh_scalar_mode_supported_p): New function.
19509         (TARGET_SCALAR_MODE_SUPPORTED_P): Define.
19510
19511         * config/sh/sh.h (OVERRIDE_OPTIONS): Don't warn for profiling.
19512
19513 2008-02-29  Sebastian Pop  <sebastian.pop@amd.com>
19514
19515         * tree-loop-linear.c (try_interchange_loops): Compare memory access
19516         strides against cache sizes.
19517
19518 2008-02-29  Kaz Kojima  <kkojima@gcc.gnu.org>
19519
19520         * config/sh/sh.c (sh_secondary_reload): Handle loading a float
19521         constant to fpul.
19522
19523 2008-02-28  Richard Sandiford  <rsandifo@nildram.co.uk>
19524
19525         * simplify-rtx.c (simplify_unary_operation_1): Extend the handling
19526         of SUBREG_PROMOTED_VAR_P to cope with cases where the extended value
19527         is smaller than the original promoted value.
19528         (simplify_subreg): If OP is a SUBREG, try to preserve its
19529         SUBREG_PROMOTED_VAR_P information.
19530
19531 2008-02-28  Steven Bosscher  <stevenb.gcc@gmail.com>
19532
19533         * tree-ssa-sccvn (vn_ssa_aux_obstack): New obstack.
19534         (VN_INFO_GET): Allocate new objects on the obstack.
19535         (init_scc_vn): Initialize the obstack.  Use XDELETE instead of free
19536         for rpo_numbers_temp, for consistency.
19537         (free_scc_vn): Free the obstack.
19538
19539 2008-02-28  Sebastian Pop  <sebastian.pop@amd.com>
19540
19541         * doc/invoke.texi: Document -ftree-loop-distribution.
19542         * tree-loop-distribution.c: New.
19543         * tree-pass.h (pass_loop_distribution): New.
19544         * graphds.h (struct graph): Add htab_t indices.
19545         * timevar.def (TV_TREE_LOOP_DISTRIBUTION): New.
19546         * tree-vectorizer.c (rename_variables_in_loop): Extern.
19547         (slpeel_tree_duplicate_loop_to_edge_cfg): Init PENDING_STMT to NULL.
19548         * tree-vectorizer.h (tree_duplicate_loop_on_edge): Declared.
19549         * tree-data-ref.c (debug_data_dependence_relations): New.
19550         (dump_data_dependence_relation): Also print data references.
19551         (free_data_ref): Extern.
19552         (same_access_functions): Moved...
19553         (find_vertex_for_stmt): Renamed rdg_vertex_for_stmt.
19554         (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
19555         debug_rdg_component, dump_rdg, debug_rdg, dot_rdg_1, dot_rdg,
19556         struct rdg_vertex_info, rdg_vertex_for_stmt): New.
19557         (create_rdg_edge_for_ddr, create_rdg_vertices): Cleaned up.
19558         (stmts_from_loop): Skip LABEL_EXPR.
19559         (hash_stmt_vertex_info, eq_stmt_vertex_info, hash_stmt_vertex_del):
19560         New.
19561         (build_rdg): Initialize rdg->indices htab.
19562         (free_rdg, stores_from_loop, ref_base_address,
19563         rdg_defs_used_in_other_loops_p, have_similar_memory_accesses,
19564         have_similar_memory_accesses_1, ref_base_address_1,
19565         remove_similar_memory_refs): New.
19566         * tree-data-ref.h: Depend on tree-chrec.h.
19567         (debug_data_dependence_relations, free_data_ref): Declared.
19568         (same_access_functions): ... here.
19569         (ddr_is_anti_dependent, ddrs_have_anti_deps, ddr_dependence_level):
19570         New.
19571         (struct rdg_vertex): Add has_mem_write and has_mem_reads.
19572         (RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT,
19573         RDG_MEM_WRITE_STMT, RDG_MEM_READS_STMT): New.
19574         (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
19575         debug_rdg_component, dump_rdg, debug_rdg, dot_rdg,
19576         rdg_vertex_for_stmt): Declared.
19577         (struct rdg_edge): Add level.
19578         (RDGE_LEVEL): New.
19579         (free_rdg, stores_from_loop, remove_similar_memory_refs,
19580         rdg_defs_used_in_other_loops_p, have_similar_memory_accesses):
19581         Declared.
19582         (rdg_has_similar_memory_accesses): New.
19583         * tree-vect-analyze.c: Remove unused static decls.
19584         * lambda.h (dependence_level): New.
19585         * common.opt (ftree-loop-distribution): New.
19586         * tree-flow.h (mark_virtual_ops_in_bb,
19587         slpeel_tree_duplicate_loop_to_edge_cfg,
19588         rename_variables_in_loop): Declared.
19589         * Makefile.in (TREE_DATA_REF_H): Depend on tree-chrec.h.
19590         (OBJS-common): Add tree-loop-distribution.o.
19591         (tree-loop-distribution.o): New rule.
19592         * tree-cfg.c (mark_virtual_ops_in_bb): New.
19593         (mark_virtual_ops_in_region): Use mark_virtual_ops_in_bb.
19594         * passes.c (init_optimization_passes): Schedule pass_loop_distribution.
19595
19596 2008-02-28  Joseph Myers  <joseph@codesourcery.com>
19597
19598         PR target/33963
19599         * tree.c (handle_dll_attribute): Disallow TYPE_DECLs for types
19600         other than structures and unions.
19601
19602 2008-02-28  Richard Guenther  <rguenther@suse.de>
19603
19604         Revert:
19605         2008-02-26  Richard Guenther  <rguenther@suse.de>
19606
19607         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
19608         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
19609         (lookup_decl_from_uid): Declare.
19610         (remove_decl_from_map): Likewise.
19611         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
19612         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
19613         (decl_for_uid_map): New global hashtable mapping DECL_UID
19614         to the decl tree.
19615         (init_ttree): Allocate it.
19616         (insert_decl_to_uid_decl_map): New helper function.
19617         (make_node_stat): Insert new decls into the map.
19618         (copy_node_stat): Likewise.
19619         (lookup_decl_from_uid): New function.
19620         (remove_decl_from_map): Likewise.
19621         (print_decl_for_uid_map_statistics): New helper.
19622         (dump_tree_statistics): Call it.
19623
19624         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
19625         (referenced_var_iterator): Adjust.
19626         (FOR_EACH_REFERENCED_VAR): Adjust.
19627         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
19628         (num_referenced_vars): Adjust.
19629         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
19630         (first_referenced_var): Remove.
19631         (end_referenced_vars_p): Likewise.
19632         (next_referenced_var): Likewise.
19633         (referenced_var_iterator_set): New helper function.
19634         * tree-dfa.c (referenced_var_lookup): Adjust.
19635         (referenced_var_check_and_insert): Likewise.
19636         (remove_referenced_var): Likewise.
19637         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
19638         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
19639         (verify_call_clobbering): Likewise.
19640         (verify_memory_partitions): Likewise.
19641         (init_tree_ssa): Allocate bitmap instead of hashtable for
19642         referenced_vars.
19643         (delete_tree_ssa): Adjust.
19644         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
19645         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
19646         (compute_tag_properties): Likewise.
19647         (set_initial_properties): Likewise.
19648         (find_partition_for): Likewise.
19649         (update_reference_counts): Likewise.
19650         (dump_may_aliases_for): Likewise.
19651         * tree-ssa-operands.c (add_virtual_operand): Likewise.
19652         (add_call_clobber_ops): Likewise.
19653         (add_call_read_ops): Likewise.
19654         (get_asm_expr_operands): Likewise.
19655         * tree-into-ssa.c (dump_decl_set): Likewise.
19656         (update_ssa): Likewise.
19657         * tree-sra.c (scan_function): Likewise.
19658         (decide_instantiations): Likewise.
19659         (scalarize_parms): Likewise.
19660         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
19661         (dsa_named_for): Likewise.
19662         * tree-ssa-structalias.c (update_alias_info): Likewise.
19663         (merge_smts_into): Likewise.
19664
19665 2008-02-27  David Daney  <ddaney@avtrex.com>
19666
19667         PR target/34409
19668         * config/mips/iris.h (MIPS_DEBUGGING_INFO): Define.
19669         * config/mips/openbsd.h (MIPS_DEBUGGING_INFO): Same.
19670         * config/mips/sde.h (MIPS_DEBUGGING_INFO): Remove undef.
19671         * config/mips/vxworks.h (MIPS_DEBUGGING_INFO): Same.
19672         * config/mips/mips.h (MIPS_DEBUGGING_INFO): Remove define.
19673
19674 2008-02-27  Uros Bizjak  <ubizjak@gmail.com>
19675
19676         PR target/25477
19677         * config/darwin-ppc-ldouble-patch.def (BUILT_IN_NANL): Add.
19678         (BUILT_IN_NEXTTOWARD): Remove.
19679         (BUILT_IN_NEXTTOWARDF): Ditto.
19680         * config/darwin.c (darwin_patch_builtin): Use ACONCAT instead of
19681         alloca/strcpy/strcat.  Remove commented-out code.  Fix whitespace.
19682
19683 2008-02-27  Tom Tromey  <tromey@redhat.com>
19684
19685         * tree-dump.c (dequeue_and_dump) <FUNCTION_DECL>: Check
19686         DECL_SAVED_TREE, not DECL_LANG_SPECIFIC, when dumping body.
19687
19688 2008-02-27  Jan Beulich  <jbeulich@novell.com>
19689
19690         * c-decl.c (merge_decls): Use DECL_USER_ALIGN() on olddecl to
19691         update the respective field on newdecl.
19692
19693 2008-02-27  Revital Eres  <eres@il.ibm.com>
19694
19695         PR rtl-optimization/34999
19696         * bb-reorder.c (add_labels_and_missing_jumps): Do not handle
19697         crossing edges that ends with a call insn.
19698         (fix_up_fall_thru_edges): Handle crossing edges that ends with a
19699         call insn and clear the EDGE_CROSSING flag of the crossing edge
19700         when fixing fallthru edges.
19701
19702 2008-02-27  Richard Guenther  <rguenther@suse.de>
19703
19704         PR middle-end/35390
19705         * fold-const.c (fold_unary): Return the correct argument,
19706         converted to the result type.
19707
19708 2008-02-27  Richard Guenther  <rguenther@suse.de>
19709
19710         PR middle-end/34971
19711         * expr.c (expand_expr_real_1): Assert on rotates that operate
19712         on partial modes.
19713         * fold-const.c (fold_binary): Use the types precision, not the
19714         bitsize of the mode if folding rotate expressions.  Build rotates
19715         only for full modes.
19716
19717 2008-02-27  Jakub Jelinek  <jakub@redhat.com>
19718
19719         * c-ppoutput.c (scan_translation_unit): Handle CPP_PRAGMA
19720         and CPP_PRAGMA_EOL.
19721         * c-pragma.c (pragma_ns_name): New typedef.
19722         (registered_pp_pragmas): New variable.
19723         (c_pp_lookup_pragma): New function.
19724         (c_register_pragma_1): If flag_preprocess_only, do nothing
19725         for non-expanded pragmas, for expanded ones push pragma's
19726         namespace and name into registered_pp_pragmas vector.
19727         (c_invoke_pragma_handler): Register OpenMP pragmas even when
19728         flag_preprocess_only, don't register GCC pch_preprocess
19729         pragma if flag_preprocess_only.
19730         * c-opts.c (c_common_init): Call init_pragma even if
19731         flag_preprocess_only.
19732         * c-pragma.c (c_pp_lookup_pragma): New prototype.
19733         * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Don't call
19734         cpp_register_pragma if flag_preprocess_only.
19735
19736 2008-02-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19737
19738         PR c/28800
19739         * c-parser.c (c_parser_translation_unit): Warn for empty
19740         translation unit, not empty source file.
19741
19742 2008-02-26  Paul Brook  <paul@codesourcery.com>
19743
19744         * config/arm/arm.c (thumb_set_frame_pointer): Ensure SP is first
19745         operand for Thumb-2.
19746         * config/arm/arm.h (reg_class): Add CORE_REGS.
19747         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Ditto.
19748         (BASE_REG_CLASS): Use CORE_REGS.
19749         (PREFERRED_RELOAD_CLASS): Add STACK_REG.
19750         (REGNO_MODE_OK_FOR_REG_BASE_P): Use REGNO_MODE_OK_FOR_BASE_P.
19751         (REGNO_OK_FOR_INDEX_P): Exclude SP.
19752         (ARM_REG_OK_FOR_INDEX_P): Always define.  Use
19753         ARM_REGNO_OK_FOR_INDEX_P.
19754         (ARM_PRINT_OPERAND_ADDRESS): Swap operands for [reg, sp].
19755         * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn,
19756         arm_movsi_insn, thumb1_movsi_insni, stack_tie): Add "k" alternatives.
19757         (ldm/stm peepholes): Ditto.
19758         * config/arm/thumb2.md (thumb2_movdi): Add "k" alternatives.
19759         * config/arm/vfp.md (arm_movsi_vfp, thumb2_movsi_vfp): Ditto.
19760         * config/arm/iwmmxt.md (iwmmxt_movsi_insn): Ditto.
19761         * config/arm/constraints.md: Enable "k" constraint on ARM.
19762
19763 2008-02-27  Ben Elliston  <bje@au.ibm.com>
19764
19765         * config/rs6000/rs6000.c: Annotate cache line size field in all
19766         instances of struct processor_costs.
19767
19768 2008-02-26  David Edelsohn  <edelsohn@gnu.org>
19769
19770         * dbgcnt.def (cfg_cleanup, cprop1, cprop2, dce_fast, dce_ud, dse1,
19771         dse2, gcse, if_conversion, if_after_combine, if_after_reload,
19772         jump_bypass): New counters.
19773         * cfgcleanup.c (cleanup_cfg): Add dbg_cnt.
19774         * dce.c (gate_ud_dce): Same.
19775         (gate_fast_dce): Same.
19776         * dse.c (gate_dse1): New function.
19777         (gate_dse2): New function.
19778         (gate_dse): Merge results of new gate functions.
19779         * gcse.c (gcse_main): Bracket cprop1 and cprop2 with dbg_cnt.
19780         (gate_handle_jump_bypass): Add dbg_cnt.
19781         (gate_handle_gcse): Add dbg_cnt.
19782         * ifcvt.c (gate_handle_if_conversion): Same.
19783         (gate_handle_if_after_combine): Same.
19784         (gate_handle_if_after_reload): Same.
19785         * Makefile.in: Add DBGCNT_H to cfgcleanup.o and ifcvt.o.
19786
19787 2008-02-26  Edmar Wienskoski  <edmar@freescale.com>
19788
19789         * config/rs6000/rs6000.c (processor_costs): Update e300 cache
19790         line sizes.
19791         * doc/invoke.texi: Add e300c2 and e300c3 to list of cpus.
19792
19793 2008-02-26  Jason Merrill  <jason@redhat.com>
19794
19795         PR c++/35315
19796         * attribs.c (decl_attributes): Leave ATTR_FLAG_TYPE_IN_PLACE
19797         alone if it's the naming decl for the type's main variant.
19798
19799 2008-02-26  Tom Tromey  <tromey@redhat.com>
19800
19801         * system.h (USE_MAPPED_LOCATION): Poison.
19802         * Makefile.in (GTFILES): Put CPP_ID_DATA_H first.
19803         * tree-cfg.c (make_cond_expr_edges): Remove old location code.
19804         (make_goto_expr_edges): Likewise.
19805         (remove_bb): Likewise.
19806         (execute_warn_function_return): Likewise.
19807         * basic-block.h (struct edge_def) <goto_locus>: Change type to
19808         location_t.
19809         * c-common.c (fname_decl): Remove old location code.
19810         * tree-vect-transform.c (vect_finish_stmt_generation): Remove old
19811         location code.
19812         * rtl.h (ASM_OPERANDS_SOURCE_LOCATION): Remove old-location
19813         variant.
19814         (ASM_INPUT_SOURCE_LOCATION): Likewise.
19815         (gen_rtx_ASM_INPUT): Likewise.
19816         (gen_rtx_ASM_INPUT_loc): Likewise.
19817         (get_rtx_asm_OPERANDS): Remove.
19818         * cfglayout.c (insn_locators_alloc): Remove old location code.
19819         (set_curr_insn_source_location): Likewise.
19820         (curr_insn_locator): Likewise.
19821         * print-tree.c (print_node): Remove old location code.
19822         * tree-mudflap.c (mf_varname_tree): Remove old location code.
19823         (mf_file_function_line_tree): Remove test of USE_MAPPED_LOCATION.
19824         * cfgexpand.c (expand_gimple_cond_expr): Don't use
19825         location_from_locus.
19826         (construct_exit_block): Remove old location code.
19827         * emit-rtl.c (force_next_line_note): Remove old location code.
19828         * profile.c (branch_prob): Remove old location code.
19829         * tree-vectorizer.h (LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE,
19830         LOC_LINE): Remove old-location variants.
19831         * langhooks.c (lhd_print_error_function): Remove old location
19832         code.
19833         * configure, config.in: Rebuilt.
19834         * configure.ac (--enable-mapped-location): Remove.
19835         * c-decl.c (c_init_decl_processing): Remove old location code.
19836         (finish_function): Likewise.
19837         * recog.c (decode_asm_operands): Remove old location code.
19838         * c-pch.c (c_common_read_pch): Remove old location code.
19839         * rtl.def (ASM_INPUT, ASM_OPERANDS): Remove old location
19840         variants.
19841         * gimple-low.c (lower_function_body): Remove old location code.
19842         * toplev.c (unknown_location): Remove.
19843         (push_srcloc): Remove old-location variant.
19844         (process_options): Remove old location code.
19845         (lang_dependent_init): Likewise.
19846         * input.h (UNKNOWN_LOCATION): Move definition.
19847         (location_t): Undeprecate.
19848         (source_locus): Remove.
19849         (location_from_locus): Remove.
19850         (struct location_s): Remove.
19851         Remove all old-location code.
19852         (input_line, input_filename): Remove.
19853         * final.c (final_scan_insn): Remove old location code.
19854         * diagnostic.c (diagnostic_build_prefix): Remove
19855         USE_MAPPED_LOCATION test.
19856         * tree.h (gimple_stmt) <locus>: Now a location_t.
19857         (tree_exp) <locus>: Likewise.
19858         (DECL_IS_BUILTIN): Remove old-location variant.
19859         (annotate_with_file_line, annotate_with_locus): Likewise.
19860         (expr_locus, set_expr_locus): Update.
19861         * tree.c (build1_stat): Remove old location code.
19862         (last_annotated_node): Remove.
19863         (annotate_with_file_line): Remove old-location variant.
19864         (annotate_with_locus): Likewise.
19865         (expr_location): Remove old location code.
19866         (set_expr_location): Likewise.
19867         (expr_has_location): Likewise.
19868         (expr_locus): Likewise.
19869         (set_expr_locus): Likewise.
19870         (expr_filename): Don't use location_from_locus.
19871         (expr_lineno): Likewise.
19872         * rtl-error.c (location_for_asm): Remove old location code.
19873         * c-lex.c (cb_line_change): Remove old location code.
19874         (fe_file_change): Likewise.
19875         (cb_def_pragma): Likewise.
19876         (c_lex_with_flags): Likewise.
19877         * gengtype.c (do_typedef): Don't special-case location types.
19878         (define_location_structures): Remove.
19879         (main): Don't call define_location_structures.
19880         * tree-pretty-print.c (dump_implicit_edges): Remove old location
19881         code.
19882
19883 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
19884
19885         PR 26264
19886         * builtins.def (BUILT_IN_STDARG_START): Remove.
19887         * builtins.c (expand_builtin): Remove BUILT_IN_STDARG_START.
19888         * tree-stdarg.c (execute_optimize_stdarg): Likewise.
19889         * tree-inline.c (inline_forbidden_p_1): Likewise.
19890
19891 2008-02-26  Richard Guenther  <rguenther@suse.de>
19892
19893         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
19894         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
19895         (lookup_decl_from_uid): Declare.
19896         (remove_decl_from_map): Likewise.
19897         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
19898         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
19899         (decl_for_uid_map): New global hashtable mapping DECL_UID
19900         to the decl tree.
19901         (init_ttree): Allocate it.
19902         (insert_decl_to_uid_decl_map): New helper function.
19903         (make_node_stat): Insert new decls into the map.
19904         (copy_node_stat): Likewise.
19905         (lookup_decl_from_uid): New function.
19906         (remove_decl_from_map): Likewise.
19907         (print_decl_for_uid_map_statistics): New helper.
19908         (dump_tree_statistics): Call it.
19909
19910         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
19911         (referenced_var_iterator): Adjust.
19912         (FOR_EACH_REFERENCED_VAR): Adjust.
19913         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
19914         (num_referenced_vars): Adjust.
19915         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
19916         (first_referenced_var): Remove.
19917         (end_referenced_vars_p): Likewise.
19918         (next_referenced_var): Likewise.
19919         (referenced_var_iterator_set): New helper function.
19920         * tree-dfa.c (referenced_var_lookup): Adjust.
19921         (referenced_var_check_and_insert): Likewise.
19922         (remove_referenced_var): Likewise.
19923         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
19924         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
19925         (verify_call_clobbering): Likewise.
19926         (verify_memory_partitions): Likewise.
19927         (init_tree_ssa): Allocate bitmap instead of hashtable for
19928         referenced_vars.
19929         (delete_tree_ssa): Adjust.
19930         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
19931         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
19932         (compute_tag_properties): Likewise.
19933         (set_initial_properties): Likewise.
19934         (find_partition_for): Likewise.
19935         (update_reference_counts): Likewise.
19936         (dump_may_aliases_for): Likewise.
19937         * tree-ssa-operands.c (add_virtual_operand): Likewise.
19938         (add_call_clobber_ops): Likewise.
19939         (add_call_read_ops): Likewise.
19940         (get_asm_expr_operands): Likewise.
19941         * tree-into-ssa.c (dump_decl_set): Likewise.
19942         (update_ssa): Likewise.
19943         * tree-sra.c (scan_function): Likewise.
19944         (decide_instantiations): Likewise.
19945         (scalarize_parms): Likewise.
19946         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
19947         (dsa_named_for): Likewise.
19948         * tree-ssa-structalias.c (update_alias_info): Likewise.
19949         (merge_smts_into): Likewise.
19950
19951 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
19952
19953         PR 34351
19954         * doc/invoke.texi (-Wall): Add -Wvolatile-register-var.
19955         * c-opts.c (c_common_handle_option): Wall enables
19956         Wvolatile-register-var.
19957         * common.opt: Move Wvolatile-register-var to...
19958         * c.opt: ...here.
19959
19960 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
19961
19962         * common.opt (Wlarger-than=): New.
19963         * doc/invoke.texi (Warning Options): Replace -Wlarger-than- with
19964         -Wlarger-than=.
19965         * opts.c (common_handle_option): Handle -Wlarger-than=.
19966         * optc-gen.awk: Likewise.
19967         * opth-gen.awk: Likewise.
19968         * stor-layout.c (layout_decl): Use -Wlarger-than= for warning.
19969         * tree-optimize.c (tree_rest_of_compilation): Likewise.
19970
19971 2008-02-26  Manuel Lopez-Ibanez <manu@gcc.gnu.org>
19972
19973         * c-common.c (match_case_to_enum_1): Add appropriate
19974         OPT_W* parameter to warning.
19975         (c_do_switch_warnings): Likewise.
19976         * c-typeck.c (warning_init): Add one more parameter following
19977         'warning' function.
19978         (push_init_level): Update call to warning_init.
19979         (pop_init_level): Likewise.
19980         (add_pending_init): Likewise.
19981         (output_init_element: Likewise.
19982
19983 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
19984
19985         PR 28322
19986         * toplev.c (toplev_main): If there are warnings or error, print
19987         errors for ignored options.
19988         * opts.c (ignored_options): New static variable.
19989         (postpone_unknown_option_error): New.
19990         (print_ignored_options): New.
19991         (handle_option): Postpone errors for unknown -Wno-* options.
19992         * opts.h (print_ignored_options): Declare.
19993
19994 2008-02-25  Richard Sandiford  <rsandifo@nildram.co.uk>
19995
19996         * config/mips/mips.md (loadgp_blockage, blockage): Change type
19997         to "ghost".
19998
19999 2008-02-25  Richard Guenther  <rguenther@suse.de>
20000
20001         Revert:
20002         2008-02-25  Richard Guenther  <rguenther@suse.de>
20003
20004         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
20005         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
20006         (lookup_decl_from_uid): Declare.
20007         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
20008         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
20009         (decl_for_uid_map): New global hashtable mapping DECL_UID
20010         to the decl tree.
20011         (init_ttree): Allocate it.
20012         (insert_decl_to_uid_decl_map): New helper function.
20013         (make_node_stat): Insert new decls into the map.
20014         (copy_node_stat): Likewise.
20015         (lookup_decl_from_uid): New function.
20016         (print_decl_for_uid_map_statistics): New helper.
20017         (dump_tree_statistics): Call it.
20018
20019         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
20020         (referenced_var_iterator): Adjust.
20021         (FOR_EACH_REFERENCED_VAR): Adjust.
20022         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
20023         (num_referenced_vars): Adjust.
20024         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
20025         (first_referenced_var): Remove.
20026         (end_referenced_vars_p): Likewise.
20027         (next_referenced_var): Likewise.
20028         (referenced_var_iterator_set): New helper function.
20029         * tree-dfa.c (referenced_var_lookup): Adjust.
20030         (referenced_var_check_and_insert): Likewise.
20031         (remove_referenced_var): Likewise.
20032         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
20033         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
20034         (verify_call_clobbering): Likewise.
20035         (verify_memory_partitions): Likewise.
20036         (init_tree_ssa): Allocate bitmap instead of hashtable for
20037         referenced_vars.
20038         (delete_tree_ssa): Adjust.
20039         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
20040         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
20041         (compute_tag_properties): Likewise.
20042         (set_initial_properties): Likewise.
20043         (find_partition_for): Likewise.
20044         (update_reference_counts): Likewise.
20045         (dump_may_aliases_for): Likewise.
20046         * tree-ssa-operands.c (add_virtual_operand): Likewise.
20047         (add_call_clobber_ops): Likewise.
20048         (add_call_read_ops): Likewise.
20049         (get_asm_expr_operands): Likewise.
20050         * tree-into-ssa.c (dump_decl_set): Likewise.
20051         (update_ssa): Likewise.
20052         * tree-sra.c (scan_function): Likewise.
20053         (decide_instantiations): Likewise.
20054         (scalarize_parms): Likewise.
20055         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
20056         (dsa_named_for): Likewise.
20057         * tree-ssa-structalias.c (update_alias_info): Likewise.
20058         (merge_smts_into): Likewise.
20059
20060 2008-02-25  Janne Blomqvist  <jb@gcc.gnu.org>
20061
20062         PR fortran/29549
20063         * doc/invoke.texi (-fcx-limited-range): Document new option.
20064         * toplev.c (process_options): Handle -fcx-fortran-rules.
20065         * common.opt: Add documentation for -fcx-fortran-rules.
20066
20067 2008-02-25  Janne Blomqvist  <jb@gcc.gnu.org>
20068
20069         PR c/35162
20070         * doc/invoke.texi (-fcx-limited-range): Correct to be in line with
20071         actual behaviour and C99.
20072
20073 2008-02-26  Ben Elliston  <bje@au.ibm.com>
20074
20075         * config/rs6000/rs6000.h (ASM_CPU_POWER5_SPEC): Define.
20076         (ASM_CPU_POWER6_SPEC): Likewise.
20077         (ASM_CPU_SPEC): Pass %(asm_cpu_power5) for -mcpu=power5.
20078         Likewise, pass %(asm_cpu_power6) for -mcpu=power6.
20079         (EXTRA_SPECS): Add asm_cpu_power5, asm_cpu_power6 spec strings.
20080
20081 2008-02-25  Richard Guenther  <rguenther@suse.de>
20082
20083         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
20084         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
20085         (lookup_decl_from_uid): Declare.
20086         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
20087         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
20088         (decl_for_uid_map): New global hashtable mapping DECL_UID
20089         to the decl tree.
20090         (init_ttree): Allocate it.
20091         (insert_decl_to_uid_decl_map): New helper function.
20092         (make_node_stat): Insert new decls into the map.
20093         (copy_node_stat): Likewise.
20094         (lookup_decl_from_uid): New function.
20095         (print_decl_for_uid_map_statistics): New helper.
20096         (dump_tree_statistics): Call it.
20097
20098         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
20099         (referenced_var_iterator): Adjust.
20100         (FOR_EACH_REFERENCED_VAR): Adjust.
20101         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
20102         (num_referenced_vars): Adjust.
20103         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
20104         (first_referenced_var): Remove.
20105         (end_referenced_vars_p): Likewise.
20106         (next_referenced_var): Likewise.
20107         (referenced_var_iterator_set): New helper function.
20108         * tree-dfa.c (referenced_var_lookup): Adjust.
20109         (referenced_var_check_and_insert): Likewise.
20110         (remove_referenced_var): Likewise.
20111         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
20112         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
20113         (verify_call_clobbering): Likewise.
20114         (verify_memory_partitions): Likewise.
20115         (init_tree_ssa): Allocate bitmap instead of hashtable for
20116         referenced_vars.
20117         (delete_tree_ssa): Adjust.
20118         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
20119         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
20120         (compute_tag_properties): Likewise.
20121         (set_initial_properties): Likewise.
20122         (find_partition_for): Likewise.
20123         (update_reference_counts): Likewise.
20124         (dump_may_aliases_for): Likewise.
20125         * tree-ssa-operands.c (add_virtual_operand): Likewise.
20126         (add_call_clobber_ops): Likewise.
20127         (add_call_read_ops): Likewise.
20128         (get_asm_expr_operands): Likewise.
20129         * tree-into-ssa.c (dump_decl_set): Likewise.
20130         (update_ssa): Likewise.
20131         * tree-sra.c (scan_function): Likewise.
20132         (decide_instantiations): Likewise.
20133         (scalarize_parms): Likewise.
20134         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
20135         (dsa_named_for): Likewise.
20136         * tree-ssa-structalias.c (update_alias_info): Likewise.
20137         (merge_smts_into): Likewise.
20138
20139 2008-02-25  Andreas Krebbel  <krebbel1@de.ibm.com>
20140
20141         PR target/35258
20142         * cse.c (cse_insn): Avoid creation of overlapping MEMs.
20143         * alias.c (nonoverlapping_memrefs_p): Export for use in other modules.
20144         * alias.h (nonoverlapping_memrefs_p): Likewise.
20145
20146 2008-02-25  Jan Beulich  <jbeulich@novell.com>
20147
20148         * Makefile.in: Also prefix uses of crt0.o and mcrt0.o with $(T).
20149         * config/i386/netware-libgcc.exp: Add __bswap?i2,
20150         __emultls_get_address, __emultls_register_common,
20151         __floatundi?f, and _Unwind_GetIPInfo.
20152         * config/i386/netware.c (gen_stdcall_or_fastcall_decoration):
20153         Sync with config/i386/winnt.c:gen_stdcall_or_fastcall_suffix().
20154         (gen_regparm_prefix): Likewise.
20155         (i386_nlm_encode_section_info): Sync with
20156         config/i386/winnt.c:i386_pe_encode_section_info().
20157         (i386_nlm_maybe_mangle_decl_assembler_name): New.
20158         i386_nlm_mangle_decl_assembler_name): New.
20159         (netware_override_options): New.
20160         * config/i386/netware.h (netware_override_options): Declare.
20161         (OVERRIDE_OPTIONS): Re-define to netware_override_options.
20162         (i386_nlm_mangle_decl_assembler_name): Declare.
20163         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Define.
20164
20165 2008-02-25  Ben Elliston  <bje@au.ibm.com>
20166
20167         PR other/32948
20168         * c-decl.c (grokdeclarator): Remove unused local variables
20169         `typedef_type' and `type_as_written'.
20170         * bb-reorder.c
20171         (find_rarely_executed_basic_blocks_and_crossing_edges): Remove
20172         unused local variable `has_hot_blocks'.
20173         (fix_crossing_conditional_branches): Remove unused local variable
20174         `prev_bb'.
20175
20176 2008-02-25  Uros Bizjak  <ubizjak@gmail.com>
20177
20178         PR middle-end/19984
20179         * builtins.def (BUILT_IN_NAN): Define as c99 builtin
20180         using DEF_C99_BUILTIN.
20181         (BUILT_IN_NANF): Ditto.
20182         (BUILT_IN_NANL): Ditto.
20183
20184 2008-02-25  Ayal Zaks  <zaks@il.ibm.com>
20185             Revital Eres  <eres@il.ibm.com>
20186
20187         * modulo-sched.c (calculate_must_precede_follow): Address TODO
20188         regarding the order of two dependent insns in the same row.
20189
20190 2008-02-25  Eric Botcazou  <ebotcazou@adacore.com>
20191
20192         * stor-layout.c (layout_decl): Do not bump the alignment of a
20193         bit-field to more than byte alignment if it is packed.
20194
20195 2008-02-24  David Edelsohn  <edelsohn@gnu.org>
20196
20197         * config/rs6000/rs6000.c (processor_costs): Add cache costs for
20198         e300c2 and e300c3.
20199
20200 2008-02-24  Diego Novillo  <dnovillo@google.com>
20201
20202         http://gcc.gnu.org/ml/gcc-patches/2008-02/msg01094.html
20203
20204         PR 33738
20205         * tree-vrp.c (vrp_evaluate_conditional): With
20206         -Wtype-limits, emit a warning when comparing against a
20207         constant outside the natural range of OP0's type.
20208         * c.opt (Wtype-limits): Move ...
20209         * common.opt (Wtype-limits): ... here.
20210
20211 2008-02-24  Edmar Wienskoski  <edmar@freescale.com>
20212
20213         * config.gcc (powerpc*-*-*): Add new cores e300c2 and e300c3.
20214         * config/rs6000/e300c2c3.md: New file.
20215         * config/rs6000/rs6000.c (processor_costs): Add new costs for
20216         e300c2 and e300c3.
20217         (rs6000_override_options): Add e300c2 and e300c3 cases to
20218         processor_target_table. Do not allow usage of Altivec or Spe
20219         with e300 cores. Initialize rs6000_cost for e300c2 and e300c3.
20220         (rs6000_issue_rate): Set issue rate for e300c2 and e300c3.
20221         * config/rs6000/rs6000.h (processor_type): Add
20222         PROCESSOR_PPCE300C2 and PROCESSOR_PPCE300C3.
20223         (ASM_CPU_SPEC): Add e300c2 and e300c3.
20224         * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce300c2
20225         and ppce300c3. Include e300c2c3.md.
20226
20227 2008-02-23  David Edelsohn  <edelsohn@gnu.org>
20228
20229         * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Use STRICT_ALIGNMENT
20230         instead of TARGET_STRICT_ALIGN.
20231
20232 2008-02-23  Joseph Myers  <joseph@codesourcery.com>
20233
20234         * explow.c (memory_address): Assert that the generated address is
20235         valid.
20236
20237 2008-02-23  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
20238
20239         PR target/25477
20240         * config/darwin-protos.h: Add darwin_patch_builtins prototype.
20241         * config/darwin-ppc-ldouble-patch.def: New file.
20242         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): New macro.
20243         * config/rs6000/rs6000.c (rs6000_init_builtins): Call
20244         SUBTARGET_INIT_BUILTINS if defined.
20245         * config/darwin.c (darwin_patch_builtin, darwin_patch_builtins):
20246         New functions.
20247
20248 2008-02-23  Andrew Pinski  <andrew_pinski@playstation.sony.com>
20249
20250         PR rtl-opt/33512
20251         * simplify-rtx.c (simplify_binary_operation_1): Add simplification
20252         of (and X (ior (not X) Y) and (and (ior (not X) Y) X).
20253
20254 2008-02-23  Andrew Pinski  <andrew_pinski@playstation.sony.com>
20255
20256         PR pch/35027
20257         * c-pch.c (c_common_valid_pch): Make the "too short to be a PCH
20258         file" warning condtional on -Winvalid-PCH.
20259
20260 2008-02-23  Daniel Jacobowitz  <dan@codesourcery.com>
20261
20262         * expmed.c (extract_bit_field): Always use adjust_address for MEM.
20263
20264 2008-02-23  Uros Bizjak  <ubizjak@gmail.com>
20265
20266         PR target/22076
20267         PR target/34256
20268         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use "!y" to
20269         prevent reload from using MMX registers.
20270         (*mov<mode>_internal): Ditto.
20271         (*movv2sf_internal_rex64): Ditto.
20272         (*movv2sf_internal): Ditto.
20273
20274 2008-02-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20275
20276         PR documentation/31569
20277         * doc/install.texi2html: Use makeinfo --no-number-sections.
20278
20279 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
20280
20281         * config/rs6000/rs6000.c (rs6000_legitimize_address): Check to
20282         ensure that we can address an entire entity > 8 bytes.  Don't
20283         generate reg+reg addressing for such data.
20284
20285 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
20286
20287         * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Don't overalign
20288         strings when optimizing for size, unless the target cares about
20289         alignment.
20290
20291 2008-02-22  Tom Tromey  <tromey@redhat.com>
20292
20293         * regclass.c (current_pass): Remove declaration.
20294
20295 2008-02-22  Anatoly Sokolov <aesok@post.ru>
20296
20297         * config/avr/libgcc.S (__RAMPZ__): Define.
20298         (__do_copy_data): Add for devices with 128KB code memory.
20299
20300 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
20301
20302         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
20303         Use spe_abi.
20304         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Likewise.
20305
20306 2008-02-22  Hans-Peter Nilsson  <hp@axis.com>
20307
20308         * config/cris/cris.h (REG_CLASS_FROM_LETTER): Recognize 'b' for
20309         GENNONACR_REGS.
20310
20311 2008-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20312
20313         PR c/19999
20314         * c-typeck.c (build_binary_op): Warn about floating point
20315         comparisons if FLOAT_TYPE_P, not only for REAL_TYPE.
20316
20317 2008-02-21  Janis Johnson  <janis187@us.ibm.com>
20318
20319         PR target/34526
20320         * config/rs6000/rs6000.c (rs6000_altivec_abi): Clarify comment.
20321         (rs6000_explicit_options): Split abi into spe_abi and altivec_abi,
20322         add vrsave.
20323         (rs6000_override_options): Set altivec_abi as default, not override,
20324         for 64-bit GNU/Linux; for 32-bit GNU/Linux default to altivec_abi for
20325         TARGET_ALTIVEC; default to TARGET_ALTIVEC_VRSAVE when AltiVec ABI
20326         is used; use new member spe_abi.
20327         (rs6000_handle_option): Set rs6000_explicit_options.vrsave; use
20328         spe_abi and altivec_abi.
20329
20330 2008-02-22  Tomas Bily  <tbily@suse.cz>
20331
20332         * tree-vectorizer.c (vect_is_simple_reduction): Fix comment typo.
20333
20334 2008-02-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20335
20336         PR bootstrap/35273
20337         * config.build (build_file_translate): Set to `CMD //c' only if
20338         it works.
20339         * Makefile.in (build_file_translate): Improve comment.
20340
20341 2008-02-21  Jan Hubicka  <jh@suse.cz>
20342
20343         * predict.def (PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL,
20344         PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL, PRED_CALL,
20345         PRED_TREE_EARLY_RETURN, PRED_NULL_RETURN): Update.
20346
20347 2008-02-21  Michael Matz  <matz@suse.de>
20348
20349         PR target/35264
20350         * config/i386/i386.c (ix86_expand_branch): Add missing breaks.
20351
20352 2008-02-21  Uros Bizjak  <ubizjak@gmail.com>
20353
20354         * config/i386/i386.md (mov<mode>cc): Macroize expander from movsfcc,
20355         movdfcc and movxfcc using X87MODEF mode iterator and SSE_FLOAT_MODE_P
20356         as insn constraint.
20357         * config/i386/sse.md (<sse>_movup<ssemodesuffixf2c>): Macroize insn
20358         from sse_movups adn sse2_movupd using SSEMODEF2P mode iterator and
20359         SSE_VEC_FLOAT_MODE_P as insn constraint.
20360         (<sse>_movmskp<ssemodesuffixf2c>): Ditto from similar patterns.
20361         (sse4a_movnt<mode>): Macroize insn from sse4a_movntsf and
20362         sse4a_movntdf using MODEF mode iterator.
20363         (sse4a_vmmovnt<mode>): Macroize insn form sse4a_vmmovntv2df and
20364         sse4a_vmmovntv4sf using SSEMODEF2P mode iterator.
20365         (sse4_1_blendp<ssemodesuffixf2c>): Ditto from similar patterns.
20366         (sse4_1_blendvp<ssemodesuffixf2c>): Ditto.
20367         (sse4_1_dpp<ssemodesuffixf2c>): Ditto.
20368         (sse4_1_roundp<ssemodesuffixf2c>): Ditto.
20369         (sse4_1_rounds<ssemodesuffixf2c>): Ditto.
20370
20371 2008-02-21  Richard Guenther  <rguenther@suse.de>
20372
20373         * tree.def (PAREN_EXPR): New tree code.
20374         * fold-const.c (fold_unary): Remove PAREN_EXPR around constants
20375         and PAREN_EXPR.
20376         * tree-pretty-print.c (dump_generic_node): Handle PAREN_EXPR.
20377         * expr.c (expand_expr_real_1): Likewise.
20378         * tree-inline.c (estimate_num_insns_1): Likewise.
20379         * tree-complex.c (expand_complex_move): Likewise.
20380         * tree-vectorizer.c (vect_is_simple_use): Treat PAREN_EXPR (x)
20381         as plain x.
20382
20383 2008-02-20  Kaz Kojima  <kkojima@gcc.gnu.org>
20384
20385         PR target/35225
20386         * config/sh/sh.c (find_barrier): Don't go past 'from' argument.
20387
20388 2008-02-20  Kaz Kojima  <kkojima@gcc.gnu.org>
20389
20390         PR target/35190
20391         * config/sh/sh.md (jump_compact): Disable for crossing jumps.
20392
20393         * config/sh/sh.c (find_barrier): Don't go past
20394         NOTE_INSN_SWITCH_TEXT_SECTIONS note.
20395
20396 2008-02-20  DJ Delorie  <dj@redhat.com>
20397
20398         * config/h8300/h8300.md (insv): Force source operand to be a register.
20399
20400         * config/h8300/h8300.c (h8300_expand_epilogue): Emit return insn
20401         as a jump, not as a plain insn.
20402
20403 2008-02-20  Seongbae Park <seongbae.park@gmail.com>
20404
20405         * doc/invoke.texi (Warning Options): Add new option
20406         -Wframe-larger-than=.
20407         (-Wframe-larger-than): Document.
20408
20409         * flags.h (warn_frame_larger_than, frame_larger_than_size):
20410         Add declarations for new option variables.
20411
20412         * final.c (final_start_function): Check the frame size
20413         before emission and issue a Wframe-larger-than warning.
20414
20415         * opts.c (warn_frame_larger_than, frame_larger_than_size):
20416         Add definitions for new option variables.
20417         (common_handle_option): Handle new option OPT_Wframe_larger_than_.
20418
20419         * common.opt (Wframe-larger-than=): New option.
20420
20421 2008-02-20  Uros Bizjak  <ubizjak@gmail.com>
20422
20423         * config/i386/sse.md (<sse>_vmmul<mode>3): Fix typo in asm template.
20424         (<sse>_div<mode>3): Ditto.
20425         (<sse>_vmdiv<mode>3): Ditto.
20426         (<sse>_vmsqrt<mode>2): Ditto.
20427         (*smax<mode>3): Ditto.
20428         (sse5_frcz<mode>2): Ditto.
20429         (sse5_vmfrcz<mode>2): Ditto.  Use TARGET_SSE5 instead of TARGET_ROUND
20430         as insn constraint.
20431
20432 2008-02-20  Richard Guenther  <rguenther@suse.de>
20433
20434         PR middle-end/35265
20435         * builtins.c (validate_arg): If we want an INTEGER_TYPE,
20436         be happy with INTEGRAL_TYPE_P.
20437
20438 2008-02-20  Richard Guenther  <rguenther@suse.de>
20439
20440         * fold-const.c (split_tree): Associate floatig-point expressions
20441         if flag_associative_math is set.
20442
20443 2008-02-20  Richard Guenther  <rguenther@suse.de>
20444
20445         * tree.h (fold_real_zero_addition_p): Declare.
20446         * fold-const.c (fold_real_zero_addition_p): Export.
20447         * tree-ssa-reassoc.c (eliminate_using_constants): Also handle
20448         floating-point operations with zero and one.
20449
20450 2008-02-20  Paolo Bonzini  <bonzini@gnu.org>
20451
20452         * doc/install.texi: Correct references to CFLAGS, replacing them
20453         with BOOT_CFLAGS.  Document flags used during bootstrap for
20454         target libraries.
20455
20456 2008-02-20  Uros Bizjak  <ubizjak@gmail.com>
20457
20458         * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): New define.
20459         * config/i386/i386.md (*sse_setcc<mode>): Macroize from *sse_setccsf
20460         and *sse_setccdf using MODEF mode iterator and SSE_FLOAT_MODE_P as
20461         insn constraint.
20462         (smin<mode>3): Ditto from similar patterns.
20463         (smax<mode>3): Ditto.
20464         (*ieee_smin<mode>3): Ditto.
20465         (*ieee_smax<mode>3): Ditto.
20466         * config/i386/sse.md (sse): New mode attribute.
20467         (mov<mode>): Macroize expander from movv4sf and movv2df using
20468         SSEMODEF2P mode iterator.
20469         (<sse>_movnt<mode>): Ditto from similar patterns. Use
20470         SSE_VEC_FLOAT_MODE_P as insn constraint.
20471         (storent<mode>): Ditto.
20472         (storent<mode>): Macroize expander from storentsf and storentdf using
20473         MODEF mode iterator.
20474         (neg<mode>2): Macroize from negv4sf2 and negv2df2 using SSEMODEF2P
20475         mode iterator and SSE_VEC_FLOAT_MODE_P as insn constraint.
20476         (abs<mode>2): Ditto from similar patterns.
20477         (add<mode>3, *add<mode>3, <sse>_vmadd<mode>3): Ditto.
20478         (sub<mode>3, *sub<mode>3, <sse>_vmsub<mode>3): Ditto.
20479         (<sse>_div<mode>3, <sse>_vmdiv<mode>3): Ditto.
20480         (<sse>_vmsqrt<mode>2): Ditto.
20481         (smin<mode>3, *smin<mode>3_finite, *smin<mode>3)
20482         (<sse>_vmsmin<mode>3, *ieee_smin<mode>3): Ditto.
20483         (smax<mode>3, *smax<mode>3_finite, *smax<mode>3)
20484         (<sse>_vmsmax<mode>3, *ieee_smax<mode>3): Ditto.
20485         (<sse>_maskcmp<mode>3): Macroize from sse_maskcmpv4sf3,
20486         sse_maskcmpsf3, sse2_maskcmpv2df3 and sse2_maskcmpdf3 using SSEMODEF4
20487         mode iterator. Use SSE_FLOAT_MODE_P with SSE_VEC_FLOAT_MODE_P as
20488         insn constraint.
20489         (<sse>_comi): Macroize from sse_comi and sse2_comi using MODEF mode
20490         iterator and SSE_FLOAT_MODE_P as insn constraint.
20491         (<sse>_ucomi): Ditto from similar patterns.
20492         (<sse>_vmmaskcmp<mode>3): Macroize from sse_vmmaskcmpv4sf3 and
20493         sse2_vmmaskcmpv2df3 using SSEMODEF2P mode iterator and
20494         SSE_VEC_FLOAT_MODE_P as insn constraint.
20495         (vcond<mode>): Ditto from similar patterns.
20496         (and<mode>3, *and<mode>3): Ditto.
20497         (<sse>_nand<mode>3): Ditto.
20498         (ior<mode>3, *ior<mode>3): Ditto.
20499         (xor<mode>3, *xor<mode>3): Ditto.
20500         (*and<mode>3): Macroize from *andsf3 and *anddf3 using MODEF mode
20501         iterator and SSE_FLOAT_MODE_P as insn constraint.
20502         (*nand<mode>3): Ditto from similar patterns.
20503         (*ior<mode>3): Ditto.
20504         (*xor<mode>3): Ditto.
20505
20506 2008-02-20  Ira Rosen  <irar@il.ibm.com>
20507
20508         * config/spu/spu.md (vec_unpacku_hi_v8hi, vec_unpacku_lo_v8hi,
20509         vec_unpacks_hi_v8hi, vec_unpacks_lo_v8hi, vec_unpacku_hi_v16qi,
20510         vec_unpacku_lo_v16qi, vec_unpacks_lo_v16qi): Implement.
20511
20512 2008-02-19  Jan Hubicka  <jh@suse.cz>
20513
20514         * predict.c (tree_bb_level_predictions): Remove variable next
20515         mistakely introduced by previous commit.
20516
20517 2008-02-19  Jan Hubicka  <jh@suse.cz>
20518
20519         * predict.c (predict_paths_leading_to): Rewrite.
20520         (predict_paths_for_bb): New.
20521         (tree_bb_level_predictions): Update call of predict_paths_leading_to.
20522
20523 2008-02-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20524
20525         PR bootstrap/35218
20526         * Makefile.in (build_file_translate): New.
20527         (gcc-vers.texi): Use it for translating $(abs_srcdir).
20528         * config.build (build_file_translate): Set to `CMD //c' on MinGW.
20529         * configure.ac (build_file_translate): Substitute it.
20530         * configure: Regenerate.
20531
20532 2008-02-19  Jan Hubicka  <jh@suse.cz>
20533
20534         PR rtl-optimization/34408
20535         * see.c (see_def_extension_not_merged): Copy subreg so we don't have
20536         invalid sharing.
20537
20538 2008-02-19  Jan Hubicka  <jh@suse.cz>
20539
20540         PR middle-end/28779
20541         * tree-inline.c (estimate_num_insns_1): Fix counting of cost of
20542         call_expr.
20543
20544 2008-02-19  H.J. Lu  <hongjiu.lu@intel.com>
20545
20546         PR Ada/35186
20547         * config/i386/i386-modes.def: Revert the last DI alignment
20548         change until Ada people can look into it.
20549
20550 2008-02-19  Nick Clifton  <nickc@redhat.com>
20551
20552         * opts.c (print_specific_help): Fix typo in --help text.
20553
20554 2008-02-19  Jakub Jelinek  <jakub@redhat.com>
20555
20556         PR target/35239
20557         * config/i386/cpuid.h (__cpuid, __get_cpuid_max): Use special
20558         32-bit inline asm without asm alternatives for host GCC < 3.0.
20559
20560 2008-02-19  Richard Guenther  <rguenther@suse.de>
20561
20562         PR tree-optimization/34989
20563         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Re-structure.
20564         Allow propagation to INDIRECT_REF if we can simplify only.
20565
20566 2008-02-19  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
20567
20568         * c-common.c (warn_for_collisions_1): Use appropriate option when
20569         warning.
20570
20571 2008-02-19  Nick Clifton  <nickc@redhat.com>
20572
20573         PR other/31349
20574         * opts.c (undocumented_msg): Leave blank unless checking is enabled.
20575         (handle_options): Fix indentation.
20576         (print_filtered_help): If no language-specific options were
20577         displayed tell the user how to list all the options supported by
20578         the language's front-end.
20579         (print_specific_help): Fix indentation and remove duplicate line.
20580         (common_handle_option): Handle the -v option.
20581         For --help enable the display of undocumented options if the -v
20582         switch has been included on the command line.
20583         For --help= check for overlaps in the arguments between the option
20584         classes and the language names and issue a warning when they
20585         cannot be disambiguated.
20586         * c.opt (v): Pass on to the common option handler.
20587
20588 2008-02-19  Revital Eres  <eres@il.ibm.com>
20589
20590         * modulo-sched.c (sms_schedule): Change dump message when
20591         create_ddg function fails.
20592         (try_scheduling_node_in_cycle): Rename row to cycle.
20593         (print_partial_schedule): Rename CYCLE to ROW.
20594
20595 2008-02-19  Christian Bruel  <christian.bruel@st.com>
20596             Zdenek Dvorak  <ook@ucw.cz>
20597
20598         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check step alignment.
20599
20600 2008-02-19  Uros Bizjak  <ubizjak@gmail.com>
20601
20602         PR target/33555
20603         * config/i386/i386.md (*x86_movsicc_0_m1_se): New insn pattern.
20604         (*x86_movdicc_0_m1_se): Ditto.
20605
20606 2008-02-19  Uros Bizjak  <ubizjak@gmail.com>
20607
20608         * config/i386/sfp-machine.h (__gcc_CMPtype): New typedef.
20609         (CMPtype): Define as __gcc_CMPtype.
20610         * config/rs6000/sfp-machine.h (__gcc_CMPtype): New typedef.
20611         (CMPtype): Define as __gcc_CMPtype.
20612
20613 2008-02-19  Hans-Peter Nilsson  <hp@axis.com>
20614
20615         Support valgrind 3.3 for --enable-checking=valgrind.
20616         * system.h: Consolidate ENABLE_VALGRIND_CHECKING-dependent defines
20617         here.
20618         [!VALGRIND_MAKE_MEM_NOACCESS]: Define as VALGRIND_MAKE_NOACCESS.
20619         [!VALGRIND_MAKE_MEM_DEFINED]: Define as VALGRIND_MAKE_READABLE.
20620         [!VALGRIND_MAKE_MEM_UNDEFINED]: Define as VALGRIND_MAKE_WRITABLE.
20621         * ggc-common.c: Remove ENABLE_VALGRIND_CHECKING-dependent defines.
20622         Replace use of VALGRIND_MAKE_READABLE, VALGRIND_MAKE_WRITABLE, and
20623         VALGRIND_MAKE_NOACCESS with VALGRIND_MAKE_MEM_DEFINED,
20624         VALGRIND_MAKE_MEM_UNDEFINED, and VALGRIND_MAKE_MEM_NOACCESS
20625         respectively.
20626         * ggc-zone.c: Similar.
20627         * ggc-page.c: Similar.
20628
20629 2008-02-19  Paul Brook  <paul@codesourcery.com>
20630
20631         PR target/35071
20632         * config/arm/ieee754-df.S: Fix do_it typo.
20633         * config/arm/ieee754-sf.S: Fix do_it typo.
20634
20635 2008-02-18  H.J. Lu  <hongjiu.lu@intel.com>
20636
20637         PR target/35189
20638         * config/i386/i386.c (OPTION_MASK_ISA_MMX_SET): New.
20639         (OPTION_MASK_ISA_3DNOW_SET): Likewise.
20640         (OPTION_MASK_ISA_SSE_SET): Likewise.
20641         (OPTION_MASK_ISA_SSE2_SET): Likewise.
20642         (OPTION_MASK_ISA_SSE3_SET): Likewise.
20643         (OPTION_MASK_ISA_SSSE3_SET): Likewise.
20644         (OPTION_MASK_ISA_SSE4_1_SET): Likewise.
20645         (OPTION_MASK_ISA_SSE4_2_SET): Likewise.
20646         (OPTION_MASK_ISA_SSE4_SET): Likewise.
20647         (OPTION_MASK_ISA_SSE4A_SET): Likewise.
20648         (OPTION_MASK_ISA_SSE5_SET): Likewise.
20649         (OPTION_MASK_ISA_3DNOW_A_UNSET): Likewise.
20650         (OPTION_MASK_ISA_MMX_UNSET): Updated.
20651         (OPTION_MASK_ISA_3DNOW_UNSET): Updated.
20652         (OPTION_MASK_ISA_SSE_UNSET): Likewise.
20653         (OPTION_MASK_ISA_SSE3_UNSET): Likewise.
20654         (OPTION_MASK_ISA_SSSE3_UNSET): Likewise.
20655         (OPTION_MASK_ISA_SSE4_1_UNSET): Likewise.
20656         (OPTION_MASK_ISA_SSE4_2_UNSET): Likewise.
20657         (OPTION_MASK_ISA_SSE4A_UNSET): Likewise.
20658         (OPTION_MASK_ISA_SSE5_UNSET): Likewise.
20659         (OPTION_MASK_ISA_SSE4): Removed.
20660         (ix86_handle_option): Turn on bits in ix86_isa_flags and
20661         ix86_isa_flags_explicit with OPTION_MASK_ISA_XXX_SET for -mXXX.
20662         (override_options): Don't turn on implied SSE/MMX bits in
20663         ix86_isa_flags.
20664
20665 2008-02-18  H.J. Lu  <hongjiu.lu@intel.com>
20666
20667         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
20668         32bit host.
20669
20670 2008-02-18  Joey Ye  <joey.ye@intel.com>
20671
20672         PR middle-end/34921
20673         * tree-nested.c (insert_field_into_struct): Set type alignment
20674         to field alignment if the former is less than the latter.
20675
20676 2008-02-18  Jakub Jelinek  <jakub@redhat.com>
20677
20678         * BASE-VER: Set to 4.4.0.
20679
20680 2008-02-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20681
20682         * doc/c-tree.texi: Use @dots{} and @enddots{} where appropriate.
20683         * doc/cfg.texi: Likewise.
20684         * doc/extend.texi: Likewise.
20685         * doc/gty.texi: Likewise.
20686         * doc/invoke.texi: Likewise.
20687         * doc/loop.texi: Likewise.
20688         * doc/md.texi: Likewise.
20689         * doc/passes.texi: Likewise.
20690         * doc/rtl.texi: Likewise.
20691         * doc/sourcebuild.texi: Likewise.
20692         * doc/tm.texi: Likewise.
20693         * doc/tree-ssa.texi: Likewise.
20694
20695 2008-02-17  Richard Guenther  <rguenther@suse.de>
20696
20697         PR middle-end/35227
20698         * tree-complex.c (init_parameter_lattice_values): Handle parameters
20699         without default definition.
20700
20701 2008-02-17  Richard Guenther  <rguenther@suse.de>
20702
20703         PR tree-optimization/35231
20704         * tree-vrp.c (register_edge_assert_for): Do not assume A == 0
20705         if A | B != 1.
20706
20707 2008-02-17  Uros Bizjak  <ubizjak@gmail.com>
20708
20709         Revert:
20710         2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
20711         * config/i386/sfp-machine.h (CMPtype): Define as typedef using
20712         libgcc_cmp_return mode.
20713
20714 2008-02-16  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
20715
20716         PR c/28368
20717         * doc/invoke.texi (-std): Clarify description of -std= and -ansi.
20718
20719 2008-02-16  Ralf Corsepius  <ralf.corsepius@rtems.org>
20720
20721         * config/m68k/t-rtems (M68K_MLIB_CPU): Add 5208, 5307, 5407, 5475
20722         multilibs.
20723
20724 2008-02-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20725
20726         * doc/c-tree.texi: Use `@.' where appropriate.
20727         * doc/extend.texi: Likewise.
20728         * doc/install.texi: Likewise.
20729         * doc/invoke.texi: Likewise.
20730         * doc/loop.texi: Likewise.
20731         * doc/makefile.texi: Likewise.
20732         * doc/md.texi: Likewise.
20733         * doc/passes.texi: Likewise.
20734         * doc/standards.texi: Likewise.
20735         * doc/tm.texi: Likewise.
20736
20737 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
20738
20739         PR middle-end/35196
20740         * omp-low.c (expand_omp_for_generic): Don't initialize fd->v
20741         in entry_bb.
20742         (expand_omp_for_static_nochunk): Initialize fd->v in seq_start_bb
20743         rather than in entry_bb.
20744
20745 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
20746
20747         * config/i386/sfp-machine.h (CMPtype): Define as typedef using
20748         libgcc_cmp_return mode.
20749
20750 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
20751
20752         PR middle-end/35130
20753         * tree-nested.c (convert_call_expr): Put FRAME.* vars into
20754         OMP_CLAUSE_SHARED rather than OMP_CLAUSE_FIRSTPRIVATE clause.
20755
20756 2008-02-15  Richard Guenther  <rguenther@suse.de>
20757             Zdenek Dvorak  <ook@ucw.cz>
20758
20759         PR tree-optimization/35164
20760         * tree-flow.h (stmt_references_abnormal_ssa_name): Declare.
20761         * tree-dfa.c (stmt_references_abnormal_ssa_name): New function.
20762         * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
20763         Only propagate addresses which do not have abnormal SSA_NAMEs
20764         in their operands.
20765
20766 2008-02-15  Joseph Myers  <joseph@codesourcery.com>
20767
20768         PR target/35088
20769         * config/m68k/m68k.h (DWARF_CIE_DATA_ALIGNMENT): Define.
20770
20771 2008-02-15  Jan Hubicka  <jh@suse.cz>
20772
20773         PR middle-end/35149
20774         * ipa.c (cgraph_remove_unreachable_nodes): Clear local.inlinable flag.
20775
20776 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
20777
20778         PR middle-end/34621
20779         * function.c (pad_to_arg_alignment): Remove test for STACK_BOUNDARY
20780         when calculating alignment_pad.
20781
20782 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
20783
20784         * config/i386/i386.h (CLEAR_RATIO): Use MIN macro.
20785         (WIDEST_HARDWARE_FP_SIZE): Use LONG_DOUBLE_TYPE_SIZE define.
20786         * config/i386/darwin.h (PREFERRED_STACK_BOUNDARY): Use MAX macro
20787         and STACK_BOUNDARY define.
20788
20789 2008-02-14  Danny Smith  <dannysmith@users.sourceforge.net>
20790
20791         PR preprocessor/35061
20792         * c-pragma.c (handle_pragma_pop_macro): Check that
20793         pushed_macro_table has been allocated.
20794
20795 2008-02-14  Eric Botcazou  <ebotcazou@adacore.com>
20796
20797         PR middle-end/35136
20798         * gimplify.c (force_gimple_operand_bsi): Revert 2008-02-12 change.
20799         (force_gimple_operand): Likewise.
20800         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Add new cases
20801         for TARGET_MEM_REF and CONVERT_EXPR/NON_LVALUE_EXPR/NOP_EXPR.
20802         Also recurse on the operand for regular VIEW_CONVERT_EXPRs.
20803         (find_interesting_uses_address): Check addressability and alignment
20804         of the base expression only after substituting bases of IVs into it.
20805
20806 2008-02-14  Michael Matz  <matz@suse.de>
20807
20808         PR target/34930
20809         * function.c (instantiate_virtual_regs_in_insn): Reload address
20810         before falling back to reloading the whole operand.
20811
20812 2008-02-14  Andreas Krebbel  <krebbel1@de.ibm.com>
20813
20814         * config/s390/s390.c (s390_mainpool_start): Emit the pool
20815         before the first section switch note.
20816
20817 2008-02-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20818
20819         * doc/bugreport.texi: Update copyright years.
20820         * doc/c-tree.texi: Likewise.
20821         * doc/cfg.texi: Likewise.
20822         * doc/cpp.texi: Likewise.
20823         * doc/cppinternals.texi: Likewise.
20824         * doc/fragments.texi: Likewise.
20825         * doc/frontends.texi: Likewise.
20826         * doc/gcc.texi: Likewise.
20827         * doc/gty.texi: Likewise.
20828         * doc/hostconfig.texi: Likewise.
20829         * doc/implement-c.texi: Likewise.
20830         * doc/libgcc.texi: Likewise.
20831         * doc/loop.texi: Likewise.
20832         * doc/makefile.texi: Likewise.
20833         * doc/options.texi: Likewise.
20834         * doc/passes.texi: Likewise.
20835         * doc/rtl.texi: Likewise.
20836         * doc/sourcebuild.texi: Likewise.
20837         * doc/standards.texi: Likewise.
20838         * doc/tree-ssa.texi: Likewise.
20839         * doc/trouble.texi: Likewise.
20840
20841         * doc/extend.texi: Use @: or add comma where appropriate.
20842         * doc/invoke.texi: Likewise.
20843         * doc/tm.texi: Likewise.
20844
20845 2008-02-14  Alan Modra  <amodra@bigpond.net.au>
20846
20847         PR target/34393
20848         * config/rs6000/rs6000.md (restore_stack_block): Force operands[1]
20849         to a reg.
20850
20851 2008-02-14  Jesper Nilsson  <jesper.nilsson@axis.com>
20852
20853         * doc/md.texi (clz, ctz): Add reference.
20854         * doc/rtl.texi (clz, ctz): Likewise.
20855
20856 2008-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20857
20858         PR other/35148
20859         * Makefile.in (gcc-vers.texi): Use abs_srcdir for the value of
20860         srcdir.
20861
20862 2008-02-13  Andreas Krebbel  <krebbel1@de.ibm.com>
20863
20864         * config/s390/s390.c (struct constant_pool): New field
20865         emit_pool_after added.
20866         (s390_mainpool_start): Set the emit_pool_after flag according
20867         to the section switch notes.
20868         (s390_mainpool_finish): Consider emit_pool_after when emitting
20869         the literal pool at the end of the function.
20870         (s390_chunkify_start): Force literal pool splits at section
20871         switch notes.
20872
20873 2008-02-13  Michael Matz  <matz@suse.de>
20874
20875         PR debug/35065
20876         * var-tracking.c (clobber_variable_part): Correctly traverse the
20877         list.
20878
20879 2008-02-13  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
20880
20881         PR 29673
20882         * doc/invoke.texi (Debugging Options): Remove -fdump-tree-inlined.
20883         Add -fdump-ipa-inline.
20884         * tree-dump.c (dump_files): Remove tree-inlined dump.
20885         * tree-pass.h (tree_dump_index): Remove TDI_inlined.
20886
20887 2008-02-12  Richard Guenther  <rguenther@suse.de>
20888
20889         PR tree-optimization/35171
20890         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Deal with
20891         default defs.
20892
20893 2008-02-12  Richard Guenther  <rguenther@suse.de>
20894
20895         PR middle-end/35163
20896         * fold-const.c (fold_widened_comparison): Use get_unwidened in
20897         value-preserving mode.  Disallow final truncation.
20898
20899 2008-02-12  Eric Botcazou  <ebotcazou@adacore.com>
20900
20901         PR middle-end/35136
20902         * gimplify.c (force_gimple_operand_bsi): Move SSA renaming
20903         code from here to...
20904         (force_gimple_operand): ...here.
20905
20906 2008-02-12  Jakub Jelinek  <jakub@redhat.com>
20907
20908         PR c++/35144
20909         * tree-sra.c (sra_build_assignment): fold_convert SRC if copying
20910         non-compatible pointers.
20911         (generate_element_copy): If SRC and DST are RECORD_TYPEs with
20912         different FIELD_DECLs, try harder by comparing field offsets, sizes
20913         and types.
20914
20915         PR inline-asm/35160
20916         * function.c (match_asm_constraints_1): Don't replace the same input
20917         multiple times.
20918
20919 2008-02-12  Anatoly Sokolov <aesok@post.ru>
20920
20921         * config/avr/avr.h (AVR_HAVE_RAMPZ): Define.
20922         * config/avr/avr.c (expand_prologue): Save RAMPZ register.
20923         (expand_epilogue): Restore RAMPZ register.
20924         * config/avr/avr.md (RAMPZ_ADDR): New constant.
20925
20926 2008-02-11  Kai Tietz  <kai.tietz@onevision.com>
20927
20928         * config/i386/cygwin.asm: (__alloca): Correct calling
20929         convention and alignment.
20930         (__chkstk): Force 8 byte stack alignment.
20931
20932 2008-02-11  Uros Bizjak  <ubizjak@gmail.com>
20933             Richard Guenther  <rguenther@suse.de>
20934
20935         PR tree-optimization/33992
20936         * tree-ssa-loop-im.c (rewrite_bittest): Fixup the type of
20937         the zero we compare against.
20938
20939 2008-02-10  Danny Smith  <dannysmith@users.sourceforge.net>
20940
20941         PR libfortran/35063
20942         * gthr-win32.h (__gthread_mutex_destroy_function): New function
20943         to CloseHandle after unlocking to prevent accumulation of handle
20944         count.
20945
20946 2008-02-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
20947
20948         PR middle_end/34150
20949         * pa.c (legitimize_pic_address): Add REG_EQUAL note on sets with a
20950         pic_label_operand source.  Similarly, add a REG_LABEL_OPERAND note
20951         and update LABEL_NUSES during and after reload.
20952
20953 2008-02-08  Steven Bosscher  <stevenb.gcc@gmail.com>
20954
20955         PR middle-end/34627
20956         * combine.c (simplify_if_then_else): Make sure the comparison is
20957         against const0_rtx when simplifying to (abs x) or (neg (abs X)).
20958
20959 2008-02-08  Richard Sandiford  <rsandifo@nildram.co.uk>
20960
20961         PR bootstrap/35051
20962         * double-int.h: Don't include gmp.h for GENERATOR_FILEs.
20963         (mpz_set_double_int, mpz_get_double_int): Hide from GENERATOR_FILEs.
20964         * real.h: Don't include gmp.h or mpfr.h for GENERATOR_FILEs.
20965         (real_from_mpfr, mpfr_from_real): Hide from GENERATOR_FILEs.
20966         * tree.h (get_type_static_bounds): Likewise.
20967
20968 2008-02-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20969
20970         * doc/invoke.texi (Option Summary, C++ Dialect Options)
20971         (Objective-C and Objective-C++ Dialect Options, Warning Options):
20972         Make -Wfoo language annotations match what the compiler outputs.
20973
20974 2008-02-08  Sa Liu  <saliu@de.ibm.com>
20975
20976         * config/spu/spu-builtins.def: Fixed wrong parameter type in spu
20977         intrinsics spu_convts, spu_convtu, spu_convtf.
20978
20979 2008-02-08  Hans-Peter Nilsson  <hp@axis.com>
20980
20981         * doc/extend.texi (Function Attributes) <noinline>: Mention
20982         asm ("") as method to keep calls.
20983
20984 2008-02-07  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
20985
20986         PR other/32754
20987         * doc/options.texi (Options): Replace references to opts.sh with
20988         optc-gen.awk.
20989         * opts-common.c: Likewise.
20990         * optc-gen.awk: Likewise.
20991
20992 2008-02-07  Andreas Krebbel  <krebbel1@de.ibm.com>
20993
20994         * config/s390/s390.h (FUNCTION_ARG_REGNO_P): Fix fprs for 64 bit.
20995
20996 2008-02-07  Richard Henderson  <rth@redhat.com>
20997
20998         PR rtl-opt/33410
20999         * config/alpha/alpha.c (alpha_emit_xfloating_compare): Use an
21000         EXPR_LIST for the REG_EQUAL instead of a comparison with a
21001         funny mode.
21002
21003 2008-02-07  Uros Bizjak  <ubizjak@gmail.com>
21004
21005         PR tree-optimization/35085
21006         * tree-ssa-reassoc.c (rewrite_expr_tree): Enable destructive update
21007         for operand entry oe2 in addition to operand entry oe3 in order to
21008         expose more opportunities for vectorizer sum reduction.
21009
21010 2008-02-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
21011
21012         PR other/35107
21013         * Makefile.in (LIBS): Remove $(GMPLIBS).
21014         (cc1-dummy, cc1): Add $(GMPLIBS).
21015
21016 2008-02-06  Jan Hubicka  <jh@suse.cz>
21017
21018         PR target/23322
21019         * i386.md (moddf_integer): Do not produce partial memory stalls for
21020         targets where it hurts.
21021
21022 2008-02-06  Uros Bizjak  <ubizjak@gmail.com>
21023
21024         PR target/35083
21025         * optabs.c (expand_float): Do not check for decimal modes when
21026         expanding unsigned integer through signed conversion.
21027
21028 2008-02-06  Nick Clifton  <nickc@redhat.com>
21029
21030         * config/stormy16/stormy16.md (eqbranchsi): Replace a match_dup
21031         inside the clobber with a match_operand and duplicated operand
21032         number in the constraint.
21033         (ineqbranchsi): Delete redundant comment.
21034
21035 2008-02-06  Ralf Corsepius  <ralf.corsepius@rtems.org>
21036
21037         * config/arm/rtems-elf.h (TARGET_OS_CPP_BUILTINS): Add
21038         builtin_define ("__USE_INIT_FINI__").
21039         * config/h8300/t-rtems (MULTILIB_OPTION,MULTILIB_DIRNAMES): Add
21040         -msx multilibs.
21041         * gthr-rtems.h: Remove __GTHREAD_MUTEX_INIT.
21042
21043 2008-02-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21044
21045         PR documentation/30330
21046         * doc/invoke.texi (C++ Dialect Options)
21047         (Objective-C and Objective-C++ Dialect Options, Warning Options):
21048         For each warning option -Wfoo that allows -Wno-foo, ensure both
21049         -Wfoo and -Wno-foo are listed in the option index.  Fix index
21050         entry of -Wswitch-default, index -Wnormalized= including the
21051         `=', and -Wlarger-than-@var{len} including @var{len}.
21052
21053 2008-02-05  Uros Bizjak  <ubizjak@gmail.com>
21054
21055         * config/i386/i386.md (floatunssisf2): Use
21056         ix86_expand_convert_uns_sisf_sse also for TARGET_SSE.
21057         (floatunssi<mode>2): Rename from floatunssisf2 and floatunssidf2.
21058         Macroize expander using MODEF mode iterator.
21059
21060 2008-02-05  Diego Novillo  <dnovillo@google.com>
21061
21062         http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00140.html
21063
21064         PR 33738
21065         * tree-vrp.c (vrp_evaluate_conditional): Revert fix for PR 33738.
21066
21067 2008-02-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
21068
21069         PR other/35070
21070         * toplev.c (print_version): Honor `indent' for GMP/MPFR warnings.
21071
21072 2008-02-05  H.J. Lu  <hongjiu.lu@intel.com>
21073
21074         PR target/35084
21075         * config/i386/i386.c (ix86_function_sseregparm): Add an arg
21076         to indicate if a message should be generated.
21077         (init_cumulative_args): Updated.
21078         (function_value_32): Likewise.
21079
21080 2008-02-05  Joseph Myers  <joseph@codesourcery.com>
21081
21082         * doc/include/texinfo.tex: Update to version 2008-02-04.16.
21083
21084 2008-02-05  Uros Bizjak  <ubizjak@gmail.com>
21085
21086         PR target/35083
21087         * config/i386/i386.md (floatunsisf2): Enable for TARGET_SSE_MATH only.
21088         Call ix86_expand_convert_uns_sisf_sse for TARGET_SSE2.
21089
21090 2008-02-04  Diego Novillo  <dnovillo@google.com>
21091
21092         http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00110.html
21093
21094         PR 33738
21095         * tree-vrp.c (vrp_evaluate_conditional): With
21096         -Wtype-limits, emit a warning when comparing against a
21097         constant outside the natural range of OP0's type.
21098
21099 2008-02-04  Richard Guenther  <rguenther@suse.de>
21100
21101         PR middle-end/33631
21102         * expr.c (count_type_elements): Give for unions instead of
21103         guessing.
21104
21105 2008-02-04  Richard Guenther  <rguenther@suse.de>
21106
21107         PR middle-end/35043
21108         * gimplify.c (gimplify_init_ctor_eval): Convert array indices
21109         to TYPE_DOMAINs base type instead of using bitsizetype here.
21110
21111 2008-02-03  Jason Merrill  <jason@redhat.com>
21112
21113         * print-tree.c (print_node) [CONSTRUCTOR]: Print elements.
21114
21115 2008-02-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21116
21117         PR other/29972
21118         * doc/invoke.texi (C++ Dialect Options, Optimize Options)
21119         (HPPA Options, i386 and x86-64 Options, IA-64 Options)
21120         (RS/6000 and PowerPC Options): Fix typos and markup.
21121         * doc/passes.texi (Tree-SSA passes): Likewise.
21122
21123 2008-02-02  Michael Matz  <matz@suse.de>
21124
21125         PR target/35045
21126         * postreload-gcse.c (record_last_reg_set_info_regno): Renamed
21127         from record_last_reg_set_info.
21128         (record_last_reg_set_info): Take an RTX argument, iterate over all
21129         constituent hardregs.
21130         (record_last_set_info, record_opr_changes): Change calls to
21131         new signature or to record_last_reg_set_info_regno.
21132
21133 2008-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
21134
21135         * doc/extend.texi (X86 Built-in Functions): Fix grammar.
21136
21137 2008-02-01  Hans-Peter Nilsson  <hp@axis.com>
21138
21139         PR rtl-optimization/34773
21140         * reg-notes.def (EQUAL): Mention significance of combination of
21141         REG_EQUAL and REG_RETVAL.
21142         * fwprop.c (try_fwprop_subst): Don't add REG_EQUAL to an
21143         insn that has a REG_RETVAL.
21144
21145 2008-02-01  Roger Sayle  <roger@eyesopen.com>
21146
21147         PR bootstrap/33781
21148         * configure.ac (--enable-fixed-point): Disable unless explicitly
21149         requested on IRIX.
21150         * configure: Regenerate.
21151
21152 2008-02-01  Richard Guenther  <rguenther@suse.de>
21153
21154         PR other/35042
21155         * invoke.texi (-finline-limit): Remove no longer true parts
21156         of the documentation.  Note that there is no default value.
21157
21158 2008-02-01  Andrew Pinski  <pinskia@gmail.com>
21159             Mark Mitchell  <mark@codesourcery.com>
21160             Ben Elliston  <bje@au.ibm.com>
21161
21162         PR c/29326
21163         * doc/extend.texi (Other Builtins): Document.
21164
21165 2008-01-31  Tom Browder <tom.browder@gmail.com>
21166
21167         * doc/c-tree.texi (Types): Fix grammar.
21168         (Expression trees): Ditto.
21169         * doc/passes.texi (Tree-SSA passes): Ditto.
21170
21171         * doc/configterms.texi (Configure Terms): Fix typo.
21172         * doc/cpp.texi (Common Predefined Macros): Ditto.
21173         * doc/md.texi (Machine Constraints): Ditto.
21174
21175         * doc/makefile.texi (Makefile): Add comma.
21176
21177 2008-01-31  Tom Browder  <tom.browder@gmail.com>
21178             Gerald Pfeifer  <gerald@pfeifer.com>
21179
21180         * doc/sourcebuild.texi (Front End): Remove references to CVS
21181         and CVSROOT/modules.
21182         (Texinfo Manuals): Replace reference to CVS by one to SVN.
21183         (Back End): Remove reference to CVS.
21184
21185 2008-01-31  Richard Sandiford  <rsandifo@nildram.co.uk>
21186
21187         PR target/34900
21188         * config/mips/mips.c (gen_load_const_gp): New function, taking a
21189         comment from...
21190         (mips16_gp_pseudo_reg): ...here.
21191         * config/mips/mips.md (load_const_gp): Replace with...
21192         (load_const_gp_<mode>): ...this :P-based insn.
21193
21194 2008-01-31  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
21195
21196         * doc/invoke.texi (-ansi): Mention explicitly corresponding -std=
21197         options. Minor fixes.
21198         (-std): Move reference to standards closer to where language
21199         standards are first mentioned.
21200
21201 2008-01-31  Richard Sandiford  <rsandifo@nildram.co.uk>
21202
21203         PR rtl-optimization/34995
21204         * reload.c (alternative_allows_const_pool_ref): Take an rtx
21205         parameter and return a bool.  If the rtx parameter is nonnull,
21206         check that it satisfies an EXTRA_MEMORY_CONSTRAINT.
21207         (find_reloads): Update call accordingly.  Pass the new operand
21208         if it needed no address reloads, otherwise pass null.
21209
21210 2008-01-30  Richard Henderson  <rth@redhat.com>
21211
21212         PR c/34993
21213         * tree.c (build_type_attribute_qual_variant): Skip TYPE_DOMAIN
21214         for unbounded arrays.
21215
21216 2008-01-30  Silvius Rus  <rus@google.com>
21217
21218         * config/i386/xmmintrin.h (_mm_prefetch): Add const to first arg.
21219
21220 2008-01-30  Jan Hubicka  <jh@suse.cz>
21221
21222         PR target/34982
21223         * i386.c (init_cumulative_args): Use real function declaration when
21224         calling locally.
21225
21226 2008-01-30  Richard Sandiford  <rsandifo@nildram.co.uk>
21227
21228         PR rtl-optimization/34998
21229         * global.c (build_insn_chain): Treat non-subreg_lowpart
21230         SUBREGs of pseudos as clobbering all the words covered by the
21231         SUBREG, not just all the bytes.
21232         * ra-conflict.c (clear_reg_in_live): Likewise.  Take the
21233         original df_ref rather than an extract parameter.
21234         (global_conflicts): Update call accordingly.
21235
21236 2008-01-30  Andreas Krebbel  <krebbel1@de.ibm.com>
21237
21238         * config/s390/fixdfdi.h (__fixunstfdi, __fixtfdi): Rearrange
21239         the overflow check to make it easier to read.
21240         (__fixtfdi): Change the type of the ll member in union
21241         long_double to UDItype_x.
21242
21243 2008-01-30  Jakub Jelinek  <jakub@redhat.com>
21244
21245         PR middle-end/34969
21246         * cgraph.h (cgraph_update_edges_for_call_stmt): New prototype.
21247         * cgraph.c (cgraph_update_edges_for_call_stmt): New function.
21248         * tree-inline.c (fold_marked_statements): Call
21249         cgraph_update_edges_for_call_stmt if folding a call statement.
21250         * cgraphunit.c (verify_cgraph_node): Set cfun to this_cfun for
21251         debug_generic_stmt calls, reset it back afterwards.
21252
21253         PR c/35017
21254         * c-decl.c (start_decl): Don't pedwarn about TREE_READONLY
21255         static decls.
21256         * c-typeck.c (build_external_ref): Don't pedwarn about
21257         static vars in current function's scope.
21258
21259 2008-01-29  Joseph Myers  <joseph@codesourcery.com>
21260
21261         * config.gcc (i[34567]86-*-nto-qnx*): Remove deprecation.
21262
21263 2008-01-29  Bernhard Fischer  <aldot@gcc.gnu.org>
21264
21265         PR c/35002
21266         * ipa-struct-reorg.c: Fix spelling.
21267         * params.def: Ditto.
21268
21269 2008-01-29  Richard Guenther  <rguenther@suse.de>
21270
21271         PR middle-end/35006
21272         * tree-inline.h (struct copy_body_data): Add remapping_type_depth
21273         field.
21274         * tree-inline.c (remap_type): Increment remapping_type_depth
21275         around remapping types.
21276         (copy_body_r): Only add referenced variables if they are referenced
21277         from code, not types.
21278
21279 2008-01-29  Douglas Gregor  <doug.gregor@gmail.com>
21280
21281         PR c++/34055
21282         PR c++/34103
21283         PR c++/34219
21284         PR c++/34606
21285         PR c++/34753
21286         PR c++/34754
21287         PR c++/34755
21288         PR c++/34919
21289         PR c++/34961
21290         * c-pretty-print.c (pp_c_type_qualifier_list): Don't try to print
21291         qualifiers for an ERROR_MARK_NODE or a NULL_TREE.
21292
21293 2008-01-28  Andy Hutchinson   <hutchinsonandy@netscape.net>
21294
21295         PR target/34412
21296         * config/avr/avr.c (expand_prologue): Use correct QI mode frame
21297         pointer for tiny stack.
21298
21299 2008-01-28  Bernhard Fischer  <aldot@gcc.gnu.org>
21300
21301         * doc/tree-ssa.texi: Add cindex PHI nodes and improve wording.
21302
21303 2008-01-28  Bernhard Fischer  <aldot@gcc.gnu.org>
21304
21305         * config/vx-common.h: Fix typo in comment.
21306
21307 2008-01-28  Ian Lance Taylor  <iant@google.com>
21308
21309         PR c++/34862
21310         PR c++/33407
21311         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
21312         coalesce pointers if they have different DECL_NO_TBAA_P values.
21313         * tree-ssa-copy.c (may_propagate_copy): Don't propagate copies
21314         between variables with different DECL_NO_TBAA_P values.
21315
21316 2008-01-28  Nathan Froyd  <froydnj@codesourcery.com>
21317
21318         PR 31535
21319         * config/rs6000/rs6000.c (small_data_operand): Vectors and floats
21320         are not legitimate small data references on SPE targets.
21321
21322 2008-01-28  David Daney  <ddaney@avtrex.com>
21323
21324         * doc/install.texi (mips-*-*): Recommend binutils 2.18.
21325
21326 2008-01-28  David Daney  <ddaney@avtrex.com>
21327
21328         * doc/install.texi (--disable-libgcj-bc):  Reword documentation.
21329
21330 2008-01-27  Joseph Myers  <joseph@codesourcery.com>
21331
21332         * config.gcc (strongarm*-*, ep9312*-*, xscale*-*, parisc*-*,
21333         m680[012]0-*, *-*-beos*, *-*-kaos*, *-*-linux*aout*,
21334         *-*-linux*libc1*, *-*-solaris2.[0-6], *-*-solaris2.[0-6].*,
21335         *-*-sysv*, *-*-windiss*, alpha*-*-unicosmk*, cris-*-aout,
21336         hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
21337         i[34567]86-sequent-ptx4*, i[34567]86-*-nto-qnx*,
21338         i[34567]86-*-sco3.2v5*, i[34567]86-*-uwin*, powerpc-*-chorusos*,
21339         vax-*-bsd*, vax-*-ultrix*): Mark obsolete.
21340
21341 2008-01-27  Bernhard Fischer  <aldot@gcc.gnu.org>
21342
21343         * basic-block.h (condjump_equiv_p): Fix comment.
21344
21345 2008-01-27  Bernhard Fischer  <aldot@gcc.gnu.org>
21346
21347         * tree-pretty-print.c (print_generic_decl, print_generic_stmt,
21348         print_generic_stmt_indented): Fix comment.
21349
21350 2008-01-27  Bernhard Fischer  <aldot@gcc.gnu.org>
21351
21352         * configure.ac (__stack_chk_fail): Add detecion for availability
21353         of SSP in uClibc by checking if __UCLIBC_HAS_SSP__ is defined.
21354         * configure: Regenerate.
21355
21356 2008-01-26  Maxim Kuvyrkov  <maxim@codesourcery.com>
21357
21358         PR middle-end/34688
21359         * final.c (output_addr_const): Handle TRUNCATE.
21360
21361 2008-01-26  Zdenek Dvorak  <ook@ucw.cz>
21362
21363         PR target/34711
21364         * tree-ssa-loop-ivopts.c (comp_cost): New type.
21365         (zero_cost, infinite_cost): New constants.
21366         (struct cost_pair): Change type of cost to comp_cost.
21367         (struct iv_ca): Change type of cand_use_cost and cost to comp_cost.
21368         (new_cost, add_costs, sub_costs, compare_costs, infinite_cost_p):
21369         New functions.
21370         (set_use_iv_cost, force_expr_to_var_cost, force_var_cost,
21371         split_address_cost, ptr_difference_cost, difference_cost,
21372         get_computation_cost_at, get_computation_cost,
21373         determine_use_iv_cost_generic, determine_use_iv_cost_address,
21374         determine_use_iv_cost_condition, determine_use_iv_costs,
21375         cheaper_cost_pair, iv_ca_recount_cost, iv_ca_set_no_cp,
21376         iv_ca_set_cp, iv_ca_cost, iv_ca_new, iv_ca_dump, iv_ca_extend,
21377         iv_ca_narrow, iv_ca_prune, try_improve_iv_set, find_optimal_iv_set):
21378         Change type of cost to comp_cost.
21379         (determine_iv_cost): Increase cost of non-original ivs, instead
21380         of decreasing the cost of original ones.
21381         (get_address_cost): Indicate the complexity of the addressing mode
21382         in comp_cost.
21383         (try_add_cand_for): Prefer using ivs not specific to some object.
21384         * tree-flow.h (force_expr_to_var_cost): Declaration removed.
21385
21386 2008-01-26  Peter Bergner  <bergner@vnet.ibm.com>
21387             Janis Johnson  <janis187@us.ibm.com>
21388
21389         PR target/34814
21390         * doc/tm.texi (TARGET_EXPAND_TO_RTL_HOOK): Document.
21391         (TARGET_INSTANTIATE_DECLS): Likewise.
21392         * target.h (expand_to_rtl_hook): New target hook.
21393         (instantiate_decls): Likewise.
21394         * function.c (instantiate_decl): Make non-static.  Rename to...
21395         (instantiate_decl_rtl): ... this.
21396         (instantiate_expr): Use instantiate_decl_rtl.
21397         (instantiate_decls_1): Likewise.
21398         (instantiate_decls): Likewise.
21399         (instantiate_virtual_regs: Call new instantiate_decls taget hook.
21400         * function.h (instantiate_decl_rtl): Add prototype.
21401         * cfgexpand.c (target.h): New include.
21402         (tree_expand_cfg): Call new expand_to_rtl_hook target hook.
21403         * target-def.h (TARGET_EXPAND_TO_RTL_HOOK): New define.
21404         (TARGET_INSTANTIATE_DECLS): Likewise.
21405         (TARGET_INITIALIZER): New target hooks added.
21406         * config/rs6000/rs6000-protos.h (rs6000_secondary_memory_needed_rtx):
21407         New prototype.
21408         * config/rs6000/rs6000.c (tree-flow.h): New include.
21409         (machine_function): Add sdmode_stack_slot field.
21410         (rs6000_alloc_sdmode_stack_slot): New function.
21411         (rs6000_instantiate_decls): Likewise.
21412         (rs6000_secondary_memory_needed_rtx): Likewise.
21413         (rs6000_check_sdmode): Likewise.
21414         (TARGET_EXPAND_TO_RTL_HOOK): Target macro defined.
21415         (TARGET_INSTANTIATE_DECLS): Likewise.
21416         (rs6000_hard_regno_mode_ok): Allow SDmode.
21417         (num_insns_constant): Likewise.  Handle _Decimal32 constants.
21418         (rs6000_emit_move): Handle SDmode.
21419         (function_arg_advance): Likewise.
21420         (function_arg): Likewise.
21421         (rs6000_gimplify_va_arg): Likewise.  Add special handling of
21422         SDmode var args for 32-bit compiles.
21423         (rs6000_secondary_reload_class): Handle SDmode.
21424         (rs6000_output_function_epilogue): Likewise.
21425         (rs6000_function_value): Simplify if statement.
21426         (rs6000_libcall_value): Likewise.
21427         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Handle SDmode.
21428         (SECONDARY_MEMORY_NEEDED_RTX): Add define.
21429         * config/rs6000/dfp.md (movsd): New define_expand and splitter.
21430         (movsd_hardfloat): New define_insn.
21431         (movsd_softfloat): Likewise.
21432         (movsd_store): Likewise.
21433         (movsd_load): Likewise.
21434         (extendsddd2): Likewise.
21435         (extendsdtd2): Likewise.
21436         (truncddsd2): Likewise.
21437         (movdd_hardfloat64): Fixup comment.
21438         (UNSPEC_MOVSD_LOAD): New constant.
21439         (UNSPEC_MOVSD_STORE): Likewise.
21440
21441 2008-01-26  Jakub Jelinek  <jakub@redhat.com>
21442
21443         PR c++/34965
21444         * c-pretty-print.c (pp_c_exclusive_or_expression): Handle
21445         TRUTH_XOR_EXPR.
21446         (pp_c_logical_and_expression): Handle TRUTH_AND_EXPR.
21447         (pp_c_logical_or_expression): Handle TRUTH_OR_EXPR.
21448         (pp_c_expression): Handle TRUTH_AND_EXPR, TRUTH_OR_EXPR
21449         and TRUTH_XOR_EXPR.
21450
21451 2008-01-26  David Edelsohn  <edelsohn@gnu.org>
21452
21453         PR target/34794
21454         * config.gcc: Separate AIX 5.3 from AIX 6.1.
21455         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
21456         __LONGDOUBLE128 too.
21457         * config/rs6000/aix61.h: New file.
21458
21459 2008-01-26  Richard Sandiford  <rsandifo@nildram.co.uk>
21460
21461         PR rtl-optimization/34959
21462         * optabs.c (expand_unop): In libcall notes, give ffs, clz, ctz,
21463         popcount and parity rtxes the same mode as their operand.
21464         Truncate or extend the result to the return value's mode
21465         if necessary.
21466
21467 2008-01-26  Richard Sandiford  <rsandifo@nildram.co.uk>
21468
21469         PR target/34981
21470         * config/mips/mips-protos.h (mips_expand_call): Return an rtx.
21471         * config/mips/mips.h (FIRST_PSEUDO_REGISTER): Rename FAKE_CALL_REGNO
21472         to GOT_VERSION_REGNUM.
21473         (CALL_REALLY_USED_REGISTERS): Set the GOT_VERSION_REGNUM entry to 0.
21474         (EPILOGUE_USES): Include GOT_VERSION_REGNUM if TARGET_USE_GOT.
21475         * config/mips/mips.c (mips_emit_call_insn): New function.
21476         (mips_call_tls_get_addr): Call mips_expand_call directly.
21477         (mips16_copy_fpr_return_value): Use mips_emit_call_insn rather than
21478         emit_call_insn.
21479         (mips16_build_call_stub): Likewise.  Return the call insn or null.
21480         (mips_expand_call): Update the call to mips16_build_call_stub
21481         accordingly and a remove redundant condition.  Assert that MIPS16
21482         stubs do not use lazy binding.  Use mips_emit_call_insn and return
21483         the call insn.
21484         (mips_extra_live_on_entry): Include GOT_VERSION_REGNUM if
21485         TARGET_USE_GOT.
21486         (mips_hard_regno_mode_ok_p): Allow SImode for GOT_VERSION_REGNUM.
21487         (mips_avoid_hazard): Remove hazard_set handling.
21488         * config/mips/mips.md (UNSPEC_EH_RECEIVER): Rename to...
21489         (UNSPEC_RESTORE_GP): ...this.
21490         (UNSPEC_SET_GOT_VERSION, UNSPEC_UPDATE_GOT_VERSION): New constants.
21491         (FAKE_CALL_REGNO): Rename to...
21492         (GOT_VERSION_REGNUM): ...this.
21493         (type): Add "ghost" value.  Add an associated insn reservation.
21494         (hazard_set): Remove.
21495         (exception_receiver): Rename to...
21496         (restore_gp): ...this and update the unspec identifier accordingly.
21497         (exception_receiver, nonlocal_got_receiver): New expanders.
21498         (load_call<mode>): Use GOT_VERSION_REGNUM.  Don't set
21499         FAKE_CALL_REGNO.  Remove hazard_set attribute.
21500         (set_got_version, update_got_version): New patterns.
21501
21502 2008-01-26  Danny Smith  <dannysmith@users.sourceforge.net>
21503
21504         PR target/34970
21505         * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Define.
21506
21507 2008-01-25  Joseph Myers  <joseph@codesourcery.com>
21508
21509         PR other/31955
21510         * doc/install.texi2html: Generate gcc-vers.texi.
21511
21512 2008-01-25  DJ Delorie  <dj@redhat.com>
21513
21514         * config/m32c/m32c.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
21515
21516 2008-01-25  Joseph Myers  <joseph@codesourcery.com>
21517
21518         * config/c4x: Remove directory.
21519         * config.gcc (crx-*, mt-*): Mark obsolete.
21520         (c4x-*, tic4x-*, c4x-*-rtems*, tic4x-*-rtems*, c4x-*, tic4x-*,
21521         h8300-*-rtemscoff*, ns32k-*-netbsdelf*, ns32k-*-netbsd*,
21522         sh-*-rtemscoff*): Remove cases.
21523         * defaults.h (C4X_FLOAT_FORMAT): Remove.
21524         * real.c (encode_c4x_single, decode_c4x_single,
21525         encode_c4x_extended, decode_c4x_extended, c4x_single_format,
21526         c4x_extended_format): Remove.
21527         * real.h (c4x_single_format, c4x_extended_format): Remove.
21528         * doc/extend.texi (interrupt, naked): Remove mention of attributes
21529         on C4x.
21530         (Pragmas): Remove comment about c4x pragmas.
21531         * doc/install.texi (c4x): Remove target-specific instructions.
21532         * doc/invoke.texi (TMS320C3x/C4x Options): Remove.
21533         * doc/md.texi (Machine Constraints): Remove C4x documentation.
21534         * doc/tm.texi (MEMBER_TYPE_FORCES_BLK, c_register_pragma): Do not
21535         refer to C4x source files as examples.
21536         (C4X_FLOAT_FORMAT): Remove documentation.
21537
21538 2008-01-25  Bernd Schmidt  <bernd.schmidt@analog.com>
21539
21540         * config/bfin/bfin.c (override_options): Reorder tests so that
21541         flag_pic gets enabled for -msep-data.
21542
21543 2008-01-25  Richard Guenther  <rguenther@suse.de>
21544
21545         PR middle-end/32244
21546         * expr.c (expand_expr_real_1): Reduce result of LSHIFT_EXPR
21547         to its bitfield precision if required.
21548
21549 2008-01-25  Jakub Jelinek  <jakub@redhat.com>
21550
21551         PR middle-end/33880
21552         * tree-nested.c (walk_omp_for): New function.
21553         (convert_nonlocal_reference, convert_local_reference): Call
21554         walk_omp_for on OMP_FOR.
21555         (convert_call_expr): Call walk_body on OMP_FOR's
21556         OMP_FOR_PRE_INIT_BODY.
21557
21558 2008-01-25  Richard Guenther  <rguenther@suse.de>
21559
21560         PR tree-optimization/34966
21561         * tree-ssa-math-opts.c (execute_cse_sincos_1): For all but
21562         default defs and PHI_NODEs we have to insert after the
21563         defining statement.
21564
21565 2008-01-24  Nick Clifton  <nickc@redhat.com>
21566
21567         * config/stormy16/stormy16-lib2.c (MIN_UNITS_PER_WORD):
21568         Provide a default definition.
21569         (LIBGCC2_UNITS_PER_WORD): Likewise.
21570
21571         * config/stormy16/stormy16.c: Include df.h for the prototype
21572         for df_regs_ever_live_p.
21573         (xstormy16_expand_builtin_va_start): Convert the stack offset
21574         into a component_ref and then use POINTER_PLUS_EXPR to add it
21575         to the incoming_virtual_args_rtx.
21576         (xstormy16_gimplify_va_arg_expr): Rename to
21577         xstormy16_gimplify_va_arg_expr.
21578         Use POINTER_PLUS_EXPR when performing pointer arithmetic.
21579         (TARGET_GIMPLIFY_VA_ARG_EXPR): Use renamed
21580         xstormy16_gimplify_va_arg_expr.
21581         Fix up some formatting issues.
21582
21583         * config/stormy16/stormy16.c: (xstormy16_carry_plus_operand):
21584         Move to predicates.md.
21585         (xs_hi_general_operand): Likewise.
21586         (xs_hi_nonmemory_operand): Likewise.
21587         * config/stormy16/predicates.md:
21588         (xstormy16_carry_plus_operand): New predicate.
21589         (xs_hi_general_operand): New predicate.
21590         (xs_hi_nonmemory_operand): New predicate.
21591         * config/stormy16/stormy16-protos.h:
21592         (xstormy16_carry_plus_operand): Delete prototype.
21593         (xs_hi_general_operand): Likewise.
21594         (xs_hi_nonmemory_operand): Likewise.
21595
21596         * config/storm16/stormy16.md (addhi3): Remove earlyclobber
21597         modifiers as they are no longer needed and they can trigger
21598         reload spill failures.
21599
21600         * config/storm16/stormy16.md (ineqbranchsi): Replace match_dup
21601         with a match_operand in order to help reload.
21602
21603         * config/storm16/stormy16.md (movhi_internal): Replace 'r'
21604         constraint with 'e' for the 8th alternative as this version of
21605         the mov.w instruction only accepts the lower 8 registers.
21606
21607 2008-01-25  Uros Bizjak  <ubizjak@gmail.com>
21608
21609         PR target/34856
21610         * simplifx-rtx.c (simplify_const_binary_operation) [VEC_CONCAT]:
21611         Consider only CONST_INT, CONST_DOUBLE and CONST_FIXED as constant
21612         vector elements.
21613
21614 2008-01-25  Jakub Jelinek  <jakub@redhat.com>
21615
21616         PR middle-end/33333
21617         * gimplify.c (gimplify_omp_for): Gimplify OMP_FOR_PRE_BODY.
21618
21619 2008-01-25  Golovanevsky Olga  <olga@il.ibm.com>
21620
21621         * ipa-struct-reorg.c (remove_str_allocs_in_func, remove_str_allocs):
21622         New functions.
21623         (remove_structure): Update allocations list before removing structure.
21624
21625 2008-01-25  Golovanevsky Olga  <olga@il.ibm.com>
21626
21627         * ipa-struct-reorg.c (is_safe_cond_expr,
21628         create_new_stmts_for_cond_expr): Use integer_zerop function,
21629         that recognize not only zero-pointer, but zero-integer too.
21630
21631 2008-01-25  Ben Elliston  <bje@au.ibm.com>
21632
21633         PR other/22232
21634         * fixproto: Escape "." in sed expression that strips leading "./".
21635
21636 2008-01-24  H.J. Lu  <hongjiu.lu@intel.com>
21637
21638         PR driver/34904
21639         * gcc.c (SWITCH_OK): Removed.
21640         (SWITCH_LIVE): Changed to bit.
21641         (SWITCH_FALSE): Likewise.
21642         (SWITCH_IGNORE): Likewise.
21643         (switchstr): Change live_cond to unsigned int.
21644         (process_command): Replace SWITCH_OK with 0.
21645         (do_self_spec): Likewise.
21646         (set_collect_gcc_options): Check the SWITCH_IGNORE bit.
21647         (give_switch): Likewise.
21648         (used_arg): Likewise.
21649         (do_spec_1): Set the SWITCH_IGNORE bit.
21650         (check_live_switch): Check both SWITCH_LIVE and SWITCH_FALSE
21651         bits.  Set the SWITCH_LIVE bit.
21652
21653 2008-01-24  Andreas Krebbel  <krebbel1@de.ibm.com>
21654
21655         * config/s390/s390.h (MOVE_RATIO): Define new target macro.
21656
21657 2008-01-24  Richard Sandiford  <rsandifo@nildram.co.uk>
21658
21659         PR tree-optimization/34472
21660         * ipa-struct-reorg.c (safe_cond_expr_check): Change the DATA
21661         parameter to a "bool *" and set *DATA to false if there is
21662         an unsafe access.  Do not delete the structure here.
21663         (check_cond_exprs): Delete it here instead.
21664         (check_cond_exprs, exclude_cold_structs): Do not increase
21665         I when removing a structure.
21666
21667 2008-01-24  Uros Bizjak  <ubizjak@gmail.com>
21668
21669         PR target/34856
21670         * config/i386/i386.c (ix86_expand_vector_init): Consider only
21671         CONST_INT, CONST_DOUBLE and CONST_FIXED as constant vector elements.
21672
21673 2008-01-24  Jakub Jakub Jelinek  <jakub@redhat.com>
21674
21675         PR middle-end/34934
21676         * tree-stdarg.c (reachable_at_most_once): Use VEC vector instead of
21677         a fixed vector for stack.
21678
21679 2008-01-24  Ben Elliston  <bje@au.ibm.com>
21680
21681         PR c++/25701
21682         * doc/gcc.texi (Software development): Add a direntry for g++.
21683
21684 2008-01-23  Hans-Peter Nilsson  <hp@axis.com>
21685
21686         * config/cris/cris.h (CC1PLUS_SPEC, OPTIMIZATION_OPTIONS): Drop
21687         stale and straggling -fforce-addr comments above.
21688
21689         * config/cris/cris.h (CRIS_SUBTARGET_VERSION, TARGET_VERSION): Don't
21690         define.
21691         * config/cris/linux.h (CRIS_SUBTARGET_VERSION): Don't define.
21692         * config/cris/aout.h (CRIS_SUBTARGET_VERSION): Don't define.
21693
21694 2008-01-23  Michael Matz  <matz@suse.de>
21695
21696         PR debug/34895
21697         * dwarf2out.c (force_type_die): Use modified_type_die instead of
21698         gen_type_die.
21699
21700 2008-01-23  Andreas Krebbel  <krebbel1@de.ibm.com>
21701
21702         * ipa-struct-reorg.c (create_new_malloc): Use pointer type as
21703         malloc result type.
21704
21705 2008-01-23 Anatoly Sokolov <aesok@post.ru>
21706
21707         * config/avr/avr.c (avr_current_arch): New variable.
21708         (avr_arch_types): Add 'avr31' and 'avr51' entries.
21709         (avr_arch): Add 'ARCH_AVR31' and 'ARCH_AVR51'.
21710         (avr_mcu_types): Add 'avr31' and 'avr51' architectures.
21711         (avr_override_options): Init 'avr_current_arch'.
21712         (base_arch_s): Move from here...
21713         * config/avr/avr.h (base_arch_s): ... here. Add new members
21714         'have_elpm', 'have_elpmx', 'have_eijmp_eicall', 'reserved'. Rename
21715         'mega' to 'have_jmp_call'.
21716         (TARGET_CPU_CPP_BUILTINS): Define "__AVR_HAVE_JMP_CALL__",
21717         "__AVR_HAVE_RAMPZ__", "__AVR_HAVE_ELPM__" and "__AVR_HAVE_ELPMX__"
21718         macros.
21719         (LINK_SPEC, CRT_BINUTILS_SPECS, ASM_SPEC): Add 'avr31' and 'avr51'
21720         architectures.
21721         * config/avr/t-avr (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
21722         MULTILIB_MATCHES): Ditto.
21723
21724 2008-01-23  Richard Guenther  <rguenther@suse.de>
21725
21726         PR middle-end/31529
21727         * cgraphunit.c (cgraph_reset_node): Always mark the node
21728         not reachable if it is not queued already.
21729
21730 2008-01-23  Bernd Schmidt  <bernd.schmidt@analog.com>
21731
21732         * config/bfin/bfin-protos.h (WA_RETS, ENABLE_WA_RETS): New macros.
21733         * config/bfin/bfin.c (bfin_cpus): Add WA_RETS everywhere.
21734         (cputype_selected): New static variable.
21735         (bfin_handle_option): Set it if -mcpu is used.
21736         (override_option): Select default set of workarounds if no cpu type
21737         selected on the command line.
21738         (workaround_rts_anomaly): Only run if ENABLE_WA_RETS.
21739
21740         From  Michael Frysinger  <michael.frysinger@analog.com>
21741         * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add
21742         BFIN_CPU_BF547, BFIN_CPU_BF523, BFIN_CPU_BF524, and BFIN_CPU_BF526.
21743
21744         * config/bfin/elf.h (LIB_SPEC): Use proper linker script
21745         for bf547, bf523, bf524, and bf526.
21746         * config/bfin/bfin.c (bfin_cpus[]): Add bf547,  bf523, bf524, and
21747         bf526.
21748         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
21749         __ADSPBF523__ for bf523, __ADSPBF524__ for bf524,
21750         __ADSPBF526__ for bf526, __ADSPBF52x__ for all three, as well as
21751         __ADSPBF547__ and __ADSPBF54x__ for bf547.
21752         * doc/invoke.texi (Blackfin Options): Document that
21753         -mcpu now accept bf547, bf523, bf524, and bf526.
21754
21755 2008-01-22  Eric Botcazou  <ebotcazou@adacore.com>
21756
21757         PR rtl-optimization/34628
21758         * combine.c (try_combine): Stop and undo after the first combination
21759         if an autoincrement side-effect on the first insn has effectively
21760         been lost.
21761
21762 2008-01-22  David Edelsohn  <edelsohn@gnu.org>
21763
21764         PR target/34529
21765         * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
21766         Offset addresses are not valid for Altivec or paired float modes.
21767
21768 2008-01-22  Jakub Jelinek  <jakub@redhat.com>
21769
21770         PR c++/34607
21771         * c-parser.c (c_parser_omp_for_loop): Don't call c_finish_omp_for
21772         if DECL_INITIAL (decl) is error_mark_node.
21773
21774         PR c++/34914
21775         * c-common.c (handle_vector_size_attribute): Only allow
21776         integral, scalar float and fixed point types.  Handle OFFSET_TYPE
21777         the same way as pointer, array etc. types.
21778         * tree.c (reconstruct_complex_type): Handle OFFSET_TYPE.
21779
21780         PR c++/34917
21781         * tree.c (build_type_attribute_qual_variant): Call
21782         build_qualified_type if attributes are equal, but quals are not.
21783
21784 2008-01-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
21785
21786         PR 32102
21787         * doc/invoke.texi (-Wall): -Wall enables -Wstrict-overflow=1.
21788         * flags.h (warn_strict_aliasing): Remove.
21789         (warn_strict_overflow): Remove.
21790         * opts.c (warn_strict_aliasing): Remove.
21791         (warn_strict_overflow): Remove.
21792         * c-opts.c (c_common_handle_option): -Wall only sets
21793         -Wstrict-aliasing or -Wstrict-overflow if they are uninitialized.
21794         (c_common_post_options): Give default values to -Wstrict-aliasing
21795         and -Wstrict-overflow if they are uninitialized.
21796         * common.opt (Wstrict-aliasing): Specify Var and Init.
21797         (Wstrict-overflow): Likewise.
21798
21799 2008-01-22  Kenneth Zadeck  <zadeck@naturalbridge.com>
21800
21801         PR rtl-optimization/26854
21802         PR rtl-optimization/34400
21803         PR rtl-optimization/34884
21804         * ddg.c (create_ddg_dep_from_intra_loop_link): Use
21805         DF_RD->gen.
21806         * df.h (df_changeable_flags.DF_RD_NO_TRIM): Deleted
21807         (df_rd_bb_info.expanded_lr_out): Deleted
21808         * loop_invariant.c (find_defs): Deleted DF_RD_NO_TRIM flag.
21809         * loop_iv.c (iv_analysis_loop_init): Ditto.  * df-problems.c
21810         (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
21811         df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
21812         Removed code to allocate, initialize or free expanded_lr_out.
21813         (df_rd_bb_local_compute_process_def): Restructured to make more
21814         understandable.
21815         (df_rd_confluence_n): Removed code to no apply invalidate_by_call
21816         sets if the sets are being trimmed.
21817
21818 2008-01-22  H.J. Lu  <hongjiu.lu@intel.com>
21819
21820         PR bootstrap/32287
21821         * configure.ac (ld_vers): Support GNU linker version xx.xx.*
21822         (as_vers): Likewise.
21823         * configure: Regenerated.
21824
21825 2008-01-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
21826
21827         PR middle-end/33092
21828         * tree-pass.h (pass_build_alias): New pass.
21829         * tree-ssa-alias.c (gate_build_alias): New.
21830         (pass_build_alias): New.
21831         * passes.c (init_optimization_passes): Add pass_build_alias after
21832         pass_create_structure_vars.
21833
21834 2008-01-22  Wolfgang Gellerich  <gellerich@de.ibm.com>
21835
21836         * config/s390/s390.h (S390_TDC_POSITIVE_NORMALIZED_NUMBER):
21837         Renamed to S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER.
21838         (S390_TDC_NEGATIVE_NORMALIZED_NUMBER): Renamed to
21839         S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER.
21840         (S390_TDC_POSITIVE_DENORMALIZED_NUMBER): Renamed to
21841         S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER.
21842         (S390_TDC_NEGATIVE_DENORMALIZED_NUMBER): Renamed to
21843         S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER.
21844         (S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER): New constant.
21845         (S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER): New constant.
21846         (S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER): New constant.
21847         (S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER): New constant.
21848         * config/s390/s390.md (FP_ALL): New mode iterator.
21849         (_d): New mode attribute.
21850         ("*signbit<mode>2>"): Changed mode of first operand.
21851         ("isinf<mode>2"): Changed mode of first operand.
21852         ("*TDC_insn"): Adaptation for DFP modes.
21853
21854 2008-01-22  Ben Elliston  <bje@au.ibm.com>
21855
21856         * tree.c (check_qualified_type): Improve function description.
21857
21858 2008-01-21  Jason Merrill  <jason@redhat.com>
21859
21860         PR c++/34196
21861         * tree.h (TRY_CATCH_IS_CLEANUP): New macro.
21862         * tree-eh.c (honor_protect_cleanup_actions): Strip TRY_CATCH_EXPR
21863         if it is set.
21864
21865 2008-01-21  DJ Delorie  <dj@redhat.com>
21866
21867         * doc/tm.texi (HARD_REGNO_NREGS): Note that this macro must not
21868         return zero.
21869
21870 2008-01-21  Richard Guenther  <rguenther@suse.de>
21871
21872         PR middle-end/34856
21873         * tree-cfg.c (verify_expr): Allow all invariant expressions
21874         instead of just constant class ones as reference argument.
21875         * tree-ssa-loop-im.c (for_each_index): Handle CONSTRUCTOR
21876         like any other constant.
21877         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
21878
21879 2008-01-21  H.J. Lu  <hongjiu.lu@intel.com>
21880
21881         * regmove.c (fixup_match_1): Update call crossed frequencies.
21882
21883 2008-01-21  Richard Guenther  <rguenther@suse.de>
21884
21885         PR c/34885
21886         * tree-inline.c (setup_one_parameter): Deal with mismatched
21887         types using a VIEW_CONVERT_EXPR.
21888
21889 2008-01-21  Alon Dayan  <alond@il.ibm.com>
21890             Olga Golovanevsky  <olga@il.ibm.com>
21891
21892         PR tree-optimization/34701
21893         * ipa-struct-reorg.c (gen_size): Fix the malloc parameter calculation
21894         when the structure size is not a power of 2.
21895
21896 2008-01-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
21897
21898         * doc/install.texi: Add doc for --enable-checking=df.
21899
21900 2008-01-20  Kaz Kojima  <kkojima@gcc.gnu.org>
21901
21902         PR rtl-optimization/34808
21903         * emit-rtl.c (try_split): Handle REG_RETVAL notes.
21904
21905 2008-01-20  Richard Sandiford  <rsandifo@nildram.co.uk>
21906
21907         * global.c (find_reg): Only compute EH_RETURN_DATA_REGNO once per
21908         input.
21909
21910 2008-01-19  Kenneth Zadeck  <zadeck@naturalbridge.com>
21911
21912         PR rtl-optimization/26854
21913         PR rtl-optimization/34400
21914         * ddg.c (create_ddg_dep_from_intra_loop_link): Do not use
21915         DF_RD->gen.
21916         * df.h (df_changeable_flags.DF_RD_NO_TRIM): New.
21917         (df_rd_bb_info.expanded_lr_out): New.
21918         * loop_invariant.c (find_defs): Added DF_RD_NO_TRIM flag.
21919         * loop_iv.c (iv_analysis_loop_init): Ditto.
21920         * df-problems.c (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
21921         df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
21922         Added code to allocate, initialize or free expanded_lr_out.
21923         (df_rd_bb_local_compute_process_def): Restructured to make
21924         more understandable.
21925         (df_rd_confluence_n): Add code to do nothing with fake edges and
21926         code to no apply invalidate_by_call sets if the sets are being trimmed.
21927         (df_lr_local_finalize): Renamed to df_lr_finalize.
21928         (df_live_local_finalize): Renamed to df_live_finalize.
21929
21930 2008-01-20  Richard Sandiford  <rsandifo@nildram.co.uk>
21931
21932         PR target/34831
21933         * config/mips/mips.md (div<mode>3): Use <recip_condition> when
21934         deciding whether to use reciprocal instructions.
21935
21936 2008-01-19  Uros Bizjak  <ubizjak@gmail.com>
21937
21938         * dwarf2out.c (dwarf2out_switch_text_section): Do not call
21939         dwarf2out_note_section_used if cold_text_section is NULL.
21940
21941 2008-01-19  Jakub Jelinek  <jakub@redhat.com>
21942
21943         PR gcov-profile/34610
21944         * tree-cfg.c (make_edges): Mark both outgoing edges from
21945         OMP_CONTINUE and from OMP_FOR as EDGE_ABNORMAL.
21946         * omp-low.c (expand_omp_for): Clear EDGE_ABNORMAL bits
21947         from OMP_FOR and OMP_CONTINUE outgoing edges.
21948
21949         * tree-profile.c (tree_profiling): Return early if
21950         cfun->after_tree_profile != 0.  Set cfun->after_tree_profile
21951         at the end.
21952         * omp-low.c (expand_omp_parallel): Copy after_tree_profile
21953         from cfun to child_cfun.
21954         * function.h (struct function): Add after_tree_profile bit.
21955
21956 2008-01-19 Anatoly Sokolov <aesok@post.ru>
21957
21958         * config/avr/avr.S (_exit): Disable interrupt.
21959
21960 2008-01-18  Kenneth Zadeck  <zadeck@naturalbridge.com>
21961             Steven Bosscher  <stevenb.gcc@gmail.com>
21962
21963         PR rtl-optimization/26854
21964         PR rtl-optimization/34400
21965         * df-problems.c (df_live_scratch): New scratch bitmap.
21966         (df_live_alloc): Allocate df_live_scratch when doing df_live.
21967         (df_live_reset): Clear the proper bitmaps.
21968         (df_live_bb_local_compute): Only process the artificial defs once
21969         since the order is not important.
21970         (df_live_init): Init the df_live sets only with the variables
21971         found live by df_lr.
21972         (df_live_transfer_function): Use the df_lr sets to prune the
21973         df_live sets as they are being computed.
21974         (df_live_free): Free df_live_scratch.
21975
21976 2008-01-18  Ian Lance Taylor  <iant@google.com>
21977
21978         * common.opt: Add fmerge-debug-strings.
21979         * dwarf2out.c (DEBUG_STR_SECTION_FLAGS): Test
21980         flag_merge_debug_strings rather than flag_merge_constants.
21981         * doc/invoke.texi (Option Summary): Mention
21982         -fmerge-debug-strings.
21983         (Debugging Options): Document -fmerge-debug-strings.
21984
21985 2008-01-18  Ian Lance Taylor  <iant@google.com>
21986
21987         PR c++/33407
21988         * tree.h (DECL_IS_OPERATOR_NEW): Define.
21989         (struct tree_function_decl): Add new field operator_new_flag.
21990         * tree-inline.c (expand_call_inline): When inlining a call to
21991         operator new, force the return value to go into a variable, and
21992         set DECL_NO_TBAA_P on that variable.
21993         * c-decl.c (merge_decls): Merge DECL_IS_OPERATOR_NEW flag.
21994
21995 2008-01-18  Uros Bizjak  <ubizjak@gmail.com>
21996
21997         PR debug/34484
21998         * dwarf2out.c (dwarf2out_switch_text_section): Do not guard with
21999         DWARF2_DEBUGGING_INFO.
22000         (dwarf2out_note_section_used): Ditto.  Add prototype.
22001         (have_multiple_function_sections, text_section_used,
22002         cold_text_section_used, *cold_text_sections): Move declarations
22003         before their uses.
22004
22005 2008-01-17  Bob Wilson  <bob.wilson@acm.org>
22006
22007         * config/xtensa/unwind-dw2-xtensa.h (_Unwind_FrameState): Remove pc
22008         field and add signal_ra.
22009         * config/xtensa/unwind-dw2-xtensa.c (uw_frame_state_for): Remove
22010         assignments to frame state pc.  Move end of stack check after
22011         MD_FALLBACK_FRAME_STATE_FOR.
22012         (uw_update_context_1): Use frame state signal_regs if set, instead
22013         of checking signal_frame flag.
22014         (uw_update_context): Use frame state signal_ra if set.
22015         * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Define.
22016         * config/xtensa/linux-unwind.h: New file.
22017
22018 2008-01-18  Bernhard Fischer  <aldot@gcc.gnu.org>
22019
22020         * modulo-sched.c (get_sched_window): Fix comment typo.
22021
22022 2008-01-17  Andrew MacLeod  <amacleod@redhat.com>
22023
22024         PR tree-optimization/34648
22025         * tree-ssa-sccvn.c (visit_use): Expressions which can throw are varying.
22026
22027 2008-01-17  Anatoly Sokolov <aesok@post.ru>
22028
22029         * config/avr/avr.h (LINK_SPEC): Support -mrelax and -mpmem-wrap-around.
22030         * config/avr/avr.opt (mrelax, mpmem-wrap-around): Add.
22031
22032 2008-01-17  Seongbae Park  <seongbae.park@gmail.com>
22033
22034         PR rtl-optimization/34400
22035         * df-core.c (df_worklist_dataflow_overeager,
22036         df_worklist_dataflow_doublequeue): New functions.
22037         (df_worklist_dataflow): Two different worklist solvers.
22038         * params.def (PARAM_DF_DOUBLE_QUEUE_THRESHOLD_FACTOR):
22039         New param.
22040
22041 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
22042
22043         PR testsuite/34821
22044         * doc/invoke.texi: Document the dependence on pthread for fopenmp
22045         and ftree-parallelize-loops.
22046
22047 2008-01-17  Mircea Namolaru  <namolaru@il.ibm.com>
22048
22049         PR rtl-optimization/34826
22050         * loop-doloop (doloop_modify): Update the REG_BR_PROB note.
22051
22052 2008-01-17  Andreas Krebbel  <krebbel1@de.ibm.com>
22053
22054         * global.c (find_reg): Mark the eh regs as used if necessary.
22055         * ra-conflict.c (global_conflicts): Set no_eh_reg flag.
22056         * ra.h (struct allocno): no_eh_reg field added.  Changed
22057         no_stack_reg type to bitfield.
22058
22059 2008-01-17  Eric Botcazou  <ebotcazou@adacore.com>
22060
22061         * tree.c (substitute_in_expr): Add missing 'break'.
22062
22063 2008-01-17  Richard Guenther  <rguenther@suse.de>
22064
22065         PR tree-optimization/34825
22066         * tree-ssa-math-opts.c (is_division_by): Do not recognize
22067         x / x as division to handle.
22068
22069 2008-01-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
22070
22071         * pa64-hpux.h (LIB_SPEC): Add "-lpthread" in shared links if "-mt" or
22072         "-pthread" is specified.
22073         * pa-hpux11.h (LIB_SPEC): Likewise.
22074
22075 2008-01-16  Janis Johnson  <janis187@us.ibm.com>
22076             Peter Bergner  <bergner@vnet.ibm.com>
22077
22078         PR rtl-optimization/33796
22079         * sparseset.c (sparseset_alloc): Use xcalloc rather than xmalloc.
22080
22081 2008-01-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
22082
22083         PR libgfortran/34699
22084         * pa-hpux.h (LINK_SPEC): Only search /lib/pa1.1 and /usr/lib/pa1.1 on
22085         static links.
22086         * pa-hpux10.h (LINK_SPEC): Likewise.
22087         * pa-hpux11.h (LINK_SPEC): Don't search /lib/pa1.1 and /usr/lib/pa1.1.
22088
22089 2008-01-16  Richard Guenther  <rguenther@suse.de>
22090
22091         PR middle-end/32628
22092         * fold-const.c (fold_convert_const_int_from_int): Do not
22093         set overflow if that occured only because of a sign extension
22094         change when converting from/to a sizetype with the same
22095         precision and signedness.
22096
22097 2008-01-16  Uros Bizjak  <ubizjak@gmail.com>
22098
22099         PR debug/34249
22100         * dwarf2out.c (output_call_frame_info): Move output of FDE initial
22101         location address to the correct place.  Update copyright year.
22102
22103 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
22104
22105         * lambda-code.c (lambda_transform_legal_p): Handle the case of
22106         no dependences in the dependence_relations vector.
22107
22108 2008-01-16  Jan Hubicka  <jh@suse.cz>
22109
22110         PR rtl-optimization/31396
22111         * regstat.c (regstat_bb_compute_ri): Compute FREQ_CALLS_CROSSED.
22112         * cfg.c (dump_reg_info): Print it.
22113         * regs.h (struct reg_info_t): add freq_calls_crossed.
22114         (REG_FREQ_CALLS_CROSSED): New macro.
22115         * global.c (global_alloc): Compute freq_calls_crossed for allocno.
22116         (find_reg): Update call of CALLER_SAVE_PROFITABLE.
22117         * regmove.c (optimize_reg_copy_1, optimize_reg_copy_2, fixup_match_2,
22118         regmove_optimize): Update call crossed frequencies.
22119         * local-alloc.c (struct qty): Add freq_calls_crossed.
22120         (alloc_qty): Copute freq_calls_crossed.
22121         (update_equiv_regs, combine_regs): Update REG_FREQ_CALLS_CROSSED.
22122         (find_free_reg): Update call of CALLER_SAVE_PROFITABLE.
22123         * ra.h (struct allocno): Add freq_calls_crossed.
22124
22125 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
22126
22127         * gcc.c (LINK_COMMAND_SPEC): Add includes and link options for
22128         libgomp when compiling with ftree-parallelize-loops.
22129         (GOMP_SELF_SPECS): Add -pthread for ftree-parallelize-loops.
22130
22131 2008-01-16  Richard Guenther  <rguenther@suse.de>
22132
22133         PR tree-optimization/34769
22134         * tree-data-ref.c (initialize_matrix_A): Revert fix for PR34458.
22135         * tree.c (int_cst_value): Instead make this function more
22136         permissive in what it accepts as valid input.  Document this
22137         function always sign-extends the value.
22138
22139 2008-01-16  Jakub Jelinek  <jakub@redhat.com>
22140             Richard Guenther  <rguenther@suse.de>
22141
22142         PR c/34668
22143         * gimplify.c (fold_indirect_ref_rhs): Rename to ...
22144         (gimple_fold_indirect_ref_rhs): ... this.
22145         (gimple_fold_indirect_ref): New function with foldings
22146         that preserve lvalueness.
22147         (gimplify_modify_expr_rhs): Call gimple_fold_indirect_ref_rhs.
22148         * tree-flow.h (gimple_fold_indirect_ref): Declare.
22149         * tree-inline.c (copy_body_r): Use gimple_fold_indirect_ref
22150         to fold an INDIRECT_REF, fall back to the old use of
22151         fold_indirect_ref_1.
22152
22153 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
22154
22155         * tree-data-ref.c (subscript_dependence_tester_1): Call
22156         free_conflict_function.
22157         (compute_self_dependence): Same.
22158
22159 2008-01-16  Uros Bizjak  <ubizjak@gmail.com>
22160
22161         PR debug/34249
22162         * debug.h (dwarf2out_switch_text_section): Move declaration from ...
22163         * dwarf2out.c (dwarf2out_switch_text_section): ... here.  Make
22164         function global.
22165         * final.c (final_scan_insn) [NOTE_INSN_SWITCH_TEXT_SECTIONS]:
22166         Depending on dwarf2out_do_frame, call dwarf2out_switch_text_section
22167         for DWARF2_UNWIND_INFO targets.
22168
22169 2008-01-16  Richard Guenther  <rguenther@suse.de>
22170
22171         PR c/34768
22172         * c-typeck.c (common_pointer_type): Do not merge inconsistent
22173         type qualifiers for function types.
22174
22175 2008-01-15  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
22176
22177         * tree-parloops.c (gen_parallel_loop): Fix ommision of declaration for
22178         loop_iterator li from previous commit.
22179
22180 2008-01-15  Sebastian Pop  <sebastian.pop@amd.com>
22181
22182         * tree-parloops.c (gen_parallel_loop): Free loop bound estimations.
22183
22184 2008-01-12  Sebastian Pop  <sebastian.pop@amd.com>
22185
22186         * tree-parloops.c (loop_has_blocks_with_irreducible_flag): New.
22187         (parallelize_loops): Don't parallelize irreducible components.
22188
22189 2008-01-14  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
22190
22191         PR c++/24924
22192         * c-opts (c_common_post_options): Do not enable CPP
22193         flag_pedantic_errors by default.
22194
22195 2008-01-14  Eric Botcazou  <ebotcazou@adacore.com>
22196
22197         PR rtl-optimization/31944
22198         * cse.c (remove_pseudo_from_table): New function.
22199         (merge_equiv_classes): Use above function to remove pseudo-registers.
22200         (invalidate): Likewise.
22201
22202 2008-01-13  Richard Guenther  <rguenther@suse.de>
22203
22204         PR middle-end/34601
22205         * emit-rtl.c (set_reg_attrs_for_decl_rtl): Use DECL_MODE
22206         instead of TYPE_MODE to deal with calls from expand_one_error_var.
22207
22208 2008-01-13  Uros Bizjak  <ubizjak@gmail.com>
22209
22210         * gcse.c (cprop_jump): Call validate_unshare_change instead of
22211         validate_change to unshare the source of the PC set.
22212
22213 2008-01-12  Jan Hubicka  <jh@suse.cz>
22214
22215         PR middle-end/32135
22216         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Do not construct
22217         references above array bounds.  This might trigger bounds checks for
22218         pointers to arrays.
22219
22220 2008-01-12  Sebastian Pop  <sebastian.pop@amd.com>
22221
22222         * tree-ssa-ter.c (free_temp_expr_table): Free num_in_part and
22223         new_replaceable_dependencies.
22224
22225 2008-01-12  Doug Kwan  <dougkwan@google.com>
22226
22227         * c-decl.c: (grokdeclarator): Use OPT_Wignored_qualifiers
22228         instead of OPT_Wreturn_type in warning due to ignored return type
22229         qualifiers.
22230         * c-opt.c (c_common_post_option): Add -Wignored-qualifiers to
22231         options included in -Wextra.
22232         * c.opt: New option -Wignored_qualifiers.
22233         * doc/invoke.texi (Warning Options, -Wextra): Add new option
22234         -Wignore_qualifiers.
22235         (-Wignored-qualifiers): Document.
22236         (-Wreturn-type): Remove description of functionality now handled
22237         by -Wignored-qualifiers.
22238
22239 2008-01-12  Eric Botcazou  <ebotcazou@adacore.com>
22240
22241         PR ada/33788
22242         * fold-const.c (fold_unary) <VIEW_CONVERT_EXPR>: Fold an existing
22243         NOP_EXPR if it is between integral types with the same precision.
22244
22245 2008-01-12  Jan Hubicka  <jh@suse.cz>
22246
22247         PR other/28023
22248         * invoke.texi (max-inline-recursive-depth): Fix default value.
22249
22250 2008-01-12  Zdenek Dvorak  <ook@ucw.cz>
22251
22252         * tree-parloops.c (transform_to_exit_first_loop): Cast nit to the
22253         correct type.
22254
22255 2008-01-11  Bob Wilson  <bob.wilson@acm.org>
22256
22257         * config/xtensa/xtensa.c (override_options): Set flag_shlib.
22258
22259 2008-01-11  James E. Wilson  <wilson@specifix.com>
22260
22261         PR target/26015
22262         * config/vax/elf.h (FRAME_POINTER_CFA_OFFSET): Define.
22263
22264 2008-01-11  Anatoly Sokolov <aesok@post.ru>
22265
22266         * config/avr/avr.c (expand_prologue, expand_epilogue): Don't
22267         save/restore frame pointer register and don't use 'call-prologues'
22268         optimization in function with "OS_task" attribute.
22269
22270 2008-01-11  Eric Botcazou  <ebotcazou@adacore.com>
22271
22272         PR middle-end/31309
22273         * expr.c (copy_blkmode_from_reg): Use a mode suited to the size
22274         when copying to memory.
22275
22276 2008-01-11  Steven Bosscher  <stevenb.gcc@gmail.com>
22277
22278         PR rtl-optimization/30905
22279         * cfgcleanup.c: Include dce.h
22280         (crossjumps_occured): New global variable.
22281         (try_crossjump_bb): Exit loop after finding a fallthru edge.
22282         If something changed, set crossjumps_occured to true.
22283         (try_optimize_cfg): Clear crossjumps_occured at the beginning.
22284         Don't add/remove fake edges to exit here...
22285         (cleanup_cfg): ...but do it here, when crossjumping.
22286         Run a fast DCE when successful crossjumps occured in the latest
22287         iteration of try_optimize_cfg.
22288
22289 2008-01-11  Richard Guenther  <rguenther@suse.de>
22290
22291         * tree-ssa-sccvn.c (struct vn_binary_op_s): Move hashcode near opcode.
22292         (struct vn_unary_op_s): Likewise.
22293         (vn_reference_insert): Free old reference on hash collision.
22294
22295 2008-01-10  Raksit Ashok  <raksit@google.com>
22296
22297         PR rtl-optimization/27971
22298         * combine.c (find_split_point): Split PLUS expressions which are
22299         inside a MEM rtx, and whose first operand is complex.
22300
22301 2008-01-10  DJ Delorie  <dj@redhat.com>
22302
22303         * config/m32c/m32c.c (m32c_hard_regno_nregs_1): Renamed from...
22304         (m32c_hard_regno_nregs): ...this, which is now a wrapper.
22305         (m32c_hard_regno_ok): Call the underlying function.
22306
22307 2008-01-10  Richard Guenther  <rguenther@suse.de>
22308
22309         PR middle-end/34683
22310         * tree-cfg.c (tree_merge_blocks): Do not go through the
22311         full-blown folding and stmt updating path if we just deal
22312         with virtual operands.
22313         * tree-ssa-copy.c (may_propagate_copy): Do not short-cut
22314         test for abnormal SSA_NAMEs.
22315
22316 2008-01-10  Andreas Krebbel  <krebbel1@de.ibm.com>
22317
22318         PR middle-end/34641
22319         * reload.c (push_reload): Add assertions.  All constants from
22320         reg_equiv_constant should have been used for replacing the respective
22321         pseudo earlier.
22322         (find_reloads_address): Invoke find_reloads_address_part for
22323         constant taken from the reg_equiv_constant array.
22324
22325 2008-01-10  Steven Bosscher  <stevenb.gcc@gmail.com>
22326
22327         * tree-ssa-sccvn.h (struct vn_ssa_aux): Make the most accessed
22328         field (valnum) the first in the struct.  Replace bools with
22329         unit bit fields.
22330
22331 2008-01-10  Richard Guenther  <rguenther@suse.de>
22332
22333         PR tree-optimization/34651
22334         * tree-sra.c (sra_build_assignment): Sanitize.  Use the correct
22335         types and ordering for masking and converting.
22336
22337 2008-01-09  Sebastian Pop  <sebastian.pop@amd.com>
22338
22339         PR tree-optimization/34017
22340         * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Generate code
22341         also for PHI_NODE expressions.
22342
22343 2008-01-09  Jan Hubicka  <jh@suse.cz>
22344
22345         PR tree-optimization/34708
22346         * tree-inline.c (estimate_num_insns_1): Compute cost of SWITCH_EXPR
22347         based on number of case labels.
22348         (init_inline_once): Remove switch_cost.
22349         * tree-inline.h (eni_weights_d): Remove switch_cost.
22350
22351 2008-01-09  Richard Guenther  <rguenther@suse.de>
22352         Andrew Pinski  <andrew_pinski@playstation.sony.com>
22353
22354         PR middle-end/30132
22355         * gimplify.c (gimplify_cond_expr): Do not create an addressable
22356         temporary if an rvalue is ok or an lvalue is not required.
22357
22358 2008-01-09  Richard Guenther  <rguenther@suse.de>
22359
22360         PR middle-end/34458
22361         * tree-data-ref.c (initialize_matrix_A): Use tree_low_cst,
22362         adjust return type.
22363
22364 2008-01-09  Richard Guenther  <rguenther@suse.de>
22365
22366         PR middle-end/34679
22367         * tree.c (host_integerp): Check for sizetype only if the
22368         type is an integer type.
22369
22370 2008-01-09  Steven Bosscher  <stevenb.gcc@gmail.com>
22371
22372         PR debug/26364
22373         * opts.c (decode_options): Disable inlining of functions called
22374         once if not in unit-at-a-time mode.
22375
22376 2008-01-09  Alexandre Oliva  <aoliva@redhat.com>
22377
22378         * Makefile.in (dse.o): Remove duplicate $(RECOG_H) dependency.
22379
22380 2008-01-08  Richard Guenther  <rguenther@suse.de>
22381
22382         PR middle-end/31863
22383         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Bail
22384         out early if the result will be unused.
22385
22386 2008-01-08  Uros Bizjak  <ubizjak@gmail.com>
22387
22388         PR target/34709
22389         Revert:
22390
22391         2008-01-05  Uros Bizjak  <ubizjak@gmail.com>
22392         * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
22393         for TARGET_RECIP.
22394
22395 2008-01-08  Jan Sjodin  <jan.sjodin@amd.com>
22396
22397         * config/i386/i386.c (k8_cost, amdfam10_cost): Branch costs
22398         for vectorization tuned.
22399
22400 2008-01-08  Richard Guenther  <rguenther@suse.de>
22401
22402         PR tree-optimization/34683
22403         * tree-ssa-operands.c (operand_build_cmp): Export.
22404         * tree-ssa-operands.h (operand_build_cmp): Declare.
22405         * tree-vn.c (vuses_compare): Remove.
22406         (sort_vuses): Use operand_build_cmp.
22407         (sort_vuses_heap): Likewise.
22408         * tree-ssa-sccvn.c (vuses_to_vec): Use VEC_reserve, not VEC_alloc
22409         to re-use old VEC if available.  Do not sort already sorted VUSEs.
22410         (vdefs_to_vec): Do not sort already sorted VDEFs.
22411
22412 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
22413
22414         PR middle-end/34694
22415         * omp-low.c (copy_var_decl): Copy also DECL_SOURCE_LOCATION.
22416
22417 2008-01-08  Uros Bizjak  <ubizjak@gmail.com>
22418
22419         PR target/34702
22420         * doc/invoke.texi (i386 and x86-64 Options) [mrecip]: Document
22421         limitations of reciprocal sequences on x86 targets.
22422
22423 2008-01-08  Richard Guenther  <rguenther@suse.de>
22424
22425         PR tree-optimization/34683
22426         * tree-flow-inline.h (var_ann): Remove overzealous asserts.
22427
22428 2008-01-07  Jakub Jelinek  <jakub@redhat.com>
22429
22430         PR target/34622
22431         * config/darwin.c (darwin_mergeable_string_section): Don't use
22432         .cstring if int_size_in_bytes != TREE_STRING_LENGTH.
22433
22434 2008-01-07  Uros Bizjak  <ubizjak@gmail.com>
22435
22436         PR target/34682
22437         * config/i386/i386.md (neg<mode>2): Rename from negsf2, negdf2 and
22438         negxf2.  Macroize expander using X87MODEF mode iterator.  Change
22439         predicates of op0 and op1 to register_operand.
22440         (abs<mode>2): Rename from abssf2, absdf2 and negxf2.  Macroize
22441         expander using X87MODEF mode iterator.  Change predicates of
22442         op0 and op1 to register_operand.
22443         ("*absneg<mode>2_mixed", "*absneg<mode>2_sse"): Rename from
22444         corresponding patterns and macroize using MODEF macro.  Change
22445         predicates of op0 and op1 to register_operand and remove
22446         "m" constraint. Disparage "r" alternative with "!".
22447         ("*absneg<mode>2_i387"): Rename from corresponding patterns and
22448         macroize using X87MODEF macro.  Change predicates of op0 and op1
22449         to register_operand and remove "m" constraint.  Disparage "r"
22450         alternative with "!".
22451         (absneg splitter with memory operands): Remove.
22452         ("*neg<mode>2_1", "*abs<mode>2_1"): Rename from corresponding
22453         patterns and macroize using X87MODEF mode iterator.
22454         * config/i386/sse.md (negv4sf2, absv4sf2, neg2vdf2, absv2df2):
22455         Change predicate of op1 to register_operand.
22456         * config/i386/i386.c (ix86_expand_fp_absneg_operator): Remove support
22457         for memory operands.
22458
22459 2008-01-07  Nathan Froyd  <froydnj@codesourcery.com>
22460
22461         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add clause for mcpu=8548.
22462
22463 2008-01-07  Richard Guenther  <rguenther@suse.de>
22464
22465         * basic-block.h (struct edge_def): Pair dest_idx with goto_locus
22466         fields.
22467
22468 2008-01-07  Richard Guenther  <rguenther@suse.de>
22469
22470         PR tree-optimization/34683
22471         * tree-ssa-sccvn.c (vuses_to_vec): Pre-allocate the vector of
22472         VOPs of the needed size to save memory.  Use VEC_quick_push
22473         to save compile-time.
22474         (vdefs_to_vec): Likewise.
22475
22476 2008-01-07  Sa Liu  <saliu@de.ibm.com>
22477
22478         * config/spu/spu.md (divdf3): Genetate inline code for double
22479         division.  The implementation doesn't handle INF or NAN, therefore it
22480         only applies when -ffinite-math-only is given.
22481
22482 2008-01-06  Paolo Carlini  <pcarlini@suse.de>
22483
22484         PR libstdc++/34680
22485         * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_RTTI, if appropriate.
22486         * doc/cpp.texi ([Common Predefined Macros]): Document.
22487
22488 2008-01-06  Uros Bizjak  <ubizjak@gmail.com>
22489
22490         * config/i386/i386.c (ix86_emit_swsqrtsf): Use negative constants in
22491         order to use commutative addition instead of subtraction.
22492
22493 2008-01-06  Andrew Pinski  <andrew_pinski@playstation.sony.com>
22494             Mircea Namolaru  <namolaru@il.ibm.com>
22495             Vladimir Yanovsky  <yanov@il.ibm.com>
22496             Revital Eres  <eres@il.ibm.com>
22497
22498         PR tree-optimization/34263
22499         * tree-outof-ssa.c (process_single_block_loop_latch,
22500         contains_tree_r): New functions.
22501         (analyze_edges_for_bb): Call process_single_block_loop_latch
22502         function to empty single-basic-block latch block if possible.
22503
22504 2008-01-05  Uros Bizjak  <ubizjak@gmail.com>
22505
22506         * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
22507         for TARGET_RECIP.
22508         (ix86_emit_swsqrtsf): Do not filter out infinity for rsqrt expansion.
22509
22510 2008-01-05  Richard Sandiford  <rsandifo@nildram.co.uk>
22511
22512         * c-omp.c (check_omp_for_incr_expr): Handle CONVERT_EXPR.
22513
22514 2008-01-05  Richard Sandiford  <rsandifo@nildram.co.uk>
22515
22516         * config/mips/mips.c (mips_in_small_data_p): Reinstate size > 0 check.
22517
22518 2008-01-05  Jakub Jelinek  <jakub@redhat.com>
22519
22520         PR tree-optimization/34618
22521         * tree-outof-ssa.c (create_temp): Copy over DECL_GIMPLE_REG_P
22522         flag from T.
22523
22524 2008-01-05  Uros Bizjak  <ubizjak@gmail.com>
22525
22526         PR target/34673
22527         * config/i386/i386.c (ix86_emit_swsqrtsf): Swap input operands
22528         in the call to gen_rtx_NE.  Remove unneeded VECTOR_MODE_P check.
22529         Update copyright year.
22530
22531         * config/i386/i386.md (rsqrtsf2): Enable for TARGET_SSE_MATH.
22532         Update copyright year.
22533         * config/i386/sse.md (rsqrtv4sf2): Ditto. Unconditionally expand
22534         using NR fixup.
22535
22536 2008-01-05  Zhouyi Zhou  <zhouzhouyi@FreeBSD.org>
22537
22538         * tree-vrp.c (find_conditional_asserts): Remove redundant check that
22539         edge does not point to current bb before changing need_assert.
22540
22541 2008-01-04  Richard Guenther  <rguenther@suse.de>
22542
22543         PR middle-end/34029
22544         * tree-cfg.c (verify_expr): Do not look inside ADDR_EXPRs
22545         for verifying purposes if they are is_gimple_min_invariant.
22546
22547 2008-01-04  Aldy Hernandez  <aldyh@redhat.com>
22548
22549         PR tree-optimization/34448
22550         PR tree-optimization/34465
22551         * gimplify.c (gimplify_init_constructor): Add new parameter
22552         notify_temp_creation.  Use it.
22553         (gimplify_modify_expr_rhs): Take volatiles into account when
22554         optimizing constructors.
22555         Do not optimize constructors if gimplify_init_constructor will dump to
22556         memory.
22557         * gcc.dg/tree-ssa/pr32901.c: Tests const volatiles.
22558         * gcc.c-torture/compile/pr34448.c: New.
22559
22560 2008-01-04  Jakub Jelinek  <jakub@redhat.com>
22561
22562         PR gcov-profile/34609
22563         * tree-inline.c (declare_return_variable): Set TREE_ADDRESSABLE on
22564         return_slot if result is TREE_ADDRESSABLE.
22565
22566 2008-01-04  Richard Sandiford  <rsandifo@nildram.co.uk>
22567
22568         * config/mips/mips.md (sqrt_condition): Tweak comment.
22569         (recip_condition): Likewise.  Require TARGET_FLOAT64 for DFmode.
22570
22571 2008-01-03  Tom Tromey  <tromey@redhat.com>
22572
22573         PR c/34457
22574         * c-common.c (c_type_hash): Handle VLAs.
22575
22576 2008-01-03  Jan Hubicka  <jh@suse.cz>
22577
22578         PR tree-optimization/31081
22579         * tree-inline.c (remap_ssa_name): Initialize uninitialized SSA vars to
22580         0 when inlining and not inlining to first basic block.
22581         (remap_decl): When var is initialized to 0, don't set default_def.
22582         (expand_call_inline): Set entry_bb.
22583         * tree-inline.h (copy_body_data): Add entry_bb.
22584
22585 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
22586
22587         PR c++/34619
22588         * cgraphunit.c (cgraph_build_static_cdtor): set_cfun back to NULL
22589         before returning.
22590
22591         PR tree-optimization/29484
22592         * tree-inline.c (inline_forbidden_p_2): New function.
22593         (inline_forbidden_p): Disallow inlining if some static var
22594         has an address of a local LABEL_DECL in its initializer.
22595         * doc/extend.texi (Labels as Values): Document &&foo behaviour
22596         vs. inlining.
22597
22598 2008-01-03  Sebastian Pop  <sebastian.pop@amd.com>
22599
22600         PR tree-optimization/34635
22601         * tree-data-ref.c (add_other_self_distances): Make sure that the
22602         evolution step is constant.
22603
22604 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
22605
22606         PR middle-end/34608
22607         * omp-low.c (expand_omp_parallel): Purge dead EH edges in the child fn.
22608
22609 2008-01-02  Richard Sandiford  <rsandifo@nildram.co.uk>
22610
22611         * tree-sra.c (scalarize_init): Insert the generate_element_init
22612         statements after the generate_element_zero statements.
22613
22614 2008-01-02  Richard Guenther  <rguenther@suse.de>
22615
22616         PR middle-end/34093
22617         PR middle-end/31976
22618         * tree-ssa-operands.c (ssa_operand_alloc): Also allocate a buffer
22619         for very large number of operands instead of ICEing.
22620
22621 2008-01-02  Arthur Norman <acn1@cam.ac.uk>
22622
22623         PR target/34013
22624         * config/i386/i386.c (ix86_expand_prologue): Save red-zone
22625         while stack probing.
22626
22627 2008-01-01  Douglas Gregor  <doug.gregor@gmail.com>
22628
22629         * c-opts.c (sanitize_cpp_opts): Don't warn about "long long" when
22630         in C++0x mode.
22631
22632 2008-01-01  Volker Reichelt  <v.reichelt@netcologne.de>
22633
22634         PR libmudflap/26442
22635         * tree-mudflap.c (mx_register_decls): Guard warning by
22636         !DECL_ARTIFICIAL check.
22637
22638 2008-01-01  Jakub Jelinek  <jakub@redhat.com>
22639
22640         * config/i386/sse.md (sse5_pperm, sse5_pperm_pack_v2di_v4si,
22641         sse5_pperm_pack_v4si_v8hi, sse5_pperm_pack_v8hi_v16qi,
22642         sse5_perm<mode>): Fix constraints.