OSDN Git Service

* stor-layout.c (set_sizetype): Use the full precision of their
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2009-04-06  Eric Botcazou  <ebotcazou@adacore.com>
2
3         * stor-layout.c (set_sizetype): Use the full precision of their
4         machine mode for bitsize types.
5
6 2009-04-06  H.J. Lu  <hongjiu.lu@intel.com>
7
8         * config/i386/i386.md: Revert 2 accidental checkins.
9
10 2009-04-06  Joey Ye  <joey.ye@intel.com>
11             Xuepeng Guo <xuepeng.guo@intel.com>
12             H.J. Lu  <hongjiu.lu@intel.com>
13
14         Atom pipeline model, tuning and insn selection.
15         * config.gcc (atom): Add atom config options and target.
16
17         * config/i386/atom.md: New.
18
19         * config/i386/i386.c (atom_cost): New cost.
20         (m_ATOM): New macro flag.
21         (initial_ix86_tune_features): Set m_ATOM.
22         (x86_accumulate_outgoing_args): Likewise.
23         (x86_arch_always_fancy_math_387): Likewise.
24         (processor_target): Add Atom cost.
25         (cpu_names): Add Atom cpu name.
26         (override_options): Set Atom ISA.
27         (ix86_issue_rate): New case PROCESSOR_ATOM.
28         (ix86_adjust_cost): Likewise.
29
30         * config/i386/i386.h (TARGET_ATOM): New target macro.
31         (ix86_tune_indices): Add X86_TUNE_OPT_AGU.
32         (TARGET_OPT_AGU): New target option.
33         (target_cpu_default): Add TARGET_CPU_DEFAULT_atom.
34         (processor_type): Add PROCESSOR_ATOM.
35
36         * config/i386/i386.md (cpu): Add new value "atom".
37         (use_carry, movu): New attr.
38         (atom.md): Include atom.md.
39         (adddi3_carry_rex64): Set attr "use_carry".
40         (addqi3_carry): Likewise.
41         (addhi3_carry): Likewise.
42         (addsi3_carry): Likewise.
43         (*addsi3_carry_zext): Likewise.
44         (subdi3_carry_rex64): Likewise.
45         (subqi3_carry): Likewise.
46         (subhi3_carry): Likewise.
47         (subsi3_carry): Likewise.
48         (x86_movdicc_0_m1_rex64): Likewise.
49         (*x86_movdicc_0_m1_se): Likewise.
50         (x86_movsicc_0_m1): Likewise.
51         (*x86_movsicc_0_m1_se): Likewise.
52         (*adddi_1_rex64): Emit add insn as much as possible.
53         (*addsi_1): Likewise.
54         (return_internal): Set atom_unit.
55         (return_internal_long): Likewise.
56         (return_pop_internal): Likewise.
57         (*rcpsf2_sse): Set atom_sse_attr attr.
58         (*qrt<mode>2_sse): Likewise.
59         (*prefetch_sse): Likewise.
60
61         * config/i386/i386-c.c (ix86_target_macros_internal): New case
62         PROCESSOR_ATOM.
63         (ix86_target_macros_internal): Likewise.
64
65         * config/i386/sse.md (cpu): Set attr "atom_sse_attr".
66         (*prefetch_sse_rex): Likewise.
67         (sse_rcpv4sf2): Likewise.
68         (sse_vmrcpv4sf2): Likewise.
69         (sse_sqrtv4sf2): Likewise.
70         (<sse>_vmsqrt<mode>2): Likewise.
71         (sse_ldmxcsr): Likewise.
72         (sse_stmxcsr): Likewise.
73         (*sse_sfence): Likewise.
74         (sse2_clflush): Likewise.
75         (*sse2_mfence): Likewise.
76         (*sse2_lfence): Likewise.
77         (avx_movup<avxmodesuffixf2c><avxmodesuffix>): Set attr "movu".
78         (<sse>_movup<ssemodesuffixf2c>): Likewise.
79         (avx_movdqu<avxmodesuffix>): Likewise.
80         (avx_lddqu<avxmodesuffix>): Likewise.
81         (sse2_movntv2di): Change attr "type" to "ssemov".
82         (sse2_movntsi): Likewise.
83         (rsqrtv8sf2): Change attr "type" to "sseadd".
84         (sse3_addsubv2df3): Set attr "atom_unit".
85         (sse3_h<plusminus_insn>v4sf3): Likewise.
86         (*sse2_pmaddwd): Likewise.
87         (*vec_extractv2di_1_rex64): Likewise.
88         (*vec_extractv2di_1_avx): Likewise.
89         (sse2_psadbw): Likewise.
90         (ssse3_phaddwv8hi3): Likewise.
91         (ssse3_phaddwv4hi3): Likewise.
92         (ssse3_phadddv4si3): Likewise.
93         (ssse3_phadddv2si3): Likewise.
94         (ssse3_phaddswv8hi3): Likewise.
95         (ssse3_phaddswv4hi3): Likewise.
96         (ssse3_phsubwv8hi3): Likewise.
97         (ssse3_phsubwv4hi3): Likewise.
98         (ssse3_phsubdv4si3): Likewise.
99         (ssse3_phsubdv2si3): Likewise.
100         (ssse3_phsubswv8hi3): Likewise.
101         (ssse3_phsubswv4hi3): Likewise.
102         (ssse3_pmaddubsw128): Likewise.
103         (sse3_pmaddubsw: Likewise.
104         (ssse3_palignrti): Likewise.
105         (ssse3_palignrdi): Likewise.
106
107 2009-04-06  Gerald Pfeifer  <gerald@pfeifer.com>
108
109         * doc/install.texi (Specific): Fix two cross-references to MinGW.
110
111 2009-04-06  Richard Guenther  <rguenther@suse.de>
112
113         PR tree-optimization/28868
114         * tree-ssa-pre.c (inserted_phi_names): New bitmap to keep track
115         of which PHI results we inserted.
116         (insert_into_preds_of_block): Record inserted PHIs.
117         (eliminate): Eliminate redundant PHI nodes.
118         (init_pre): Init inserted_phi_names.
119
120 2009-04-06  Richard Guenther  <rguenther@suse.de>
121
122         PR tree-optimization/39643
123         * tree-ssa-ccp.c (ccp_fold): Fold REALPART_EXPRs and
124         IMAGPART_EXPRs of complex constants.
125         (execute_fold_all_builtins): If we folded a call queue
126         TODO_update_address_taken.
127
128 2009-04-06  Jan Hubicka  <jh@suse.cz>
129
130         PR middle-end/39659
131         * except.c (remove_unreachable_regions): Propagate may_contain_throw
132         flag.
133
134 2009-04-06  Andrew Stubbs  <ams@codesourcery.com>
135
136         * config/sh/lib1funcs.asm (ic_invalidate): Move ICBI out of the
137         delay slot.
138         (ic_invalidate_array): Likewise.
139
140 2009-04-06  Hariharan Sandanagobalane <hariharan@picochip.com>
141
142         * calls.c (emit_library_call_value_1): Fix a problem with parameter
143         alignment for library calls.
144
145 2009-04-06  Danny Smith  <dannysmith@users.sourceforge.net>
146
147         * config.gcc (mingw32 tm_file):  Add mingw-stdint.h.
148         (mingw32 tm clause use_gcc_stdint):  Set to wrap.
149         * config/i386/mingw-stdint.h:  New file.
150
151 2009-04-05  Richard Guenther  <rguenther@suse.de>
152
153         PR tree-optimization/39648
154         * tree-ssa-sccvn.c (vn_reference_fold_indirect): Work around
155         our &A vs. &A[0] IL deficiencies.
156
157 2009-04-04  Jan Hubicka  <jh@suse.cz>
158
159         * except.c (sjlj_find_directly_reachable_regions): Be ready for
160         removed toplevel regions.
161         (sjlj_mark_call_sites): Likewise.
162
163 2009-04-04  Dave Korn  <dave.korn.cygwin@gmail.com>
164
165         * config.gcc (cygwin tm_file):  Add cygwin-stdint.h.
166         (cygwin tm clause use_gcc_stdint):  Set to wrap.
167         * config/i386/cygwin-stdint.h:  New file.
168
169 2009-04-04  Richard Guenther  <rguenther@suse.de>
170
171         * Makefile.in (tree-ssa-copy.o): Add $(CFGLOOP_H) dependency.
172         * tree-ssa-copy.c (init_copy_prop): Do not propagate through
173         single-argument PHIs if we are in loop-closed SSA form.
174         * tree-vect-loop-manip.c (slpeel_add_loop_guard): Pass extra guards
175         for the pre-condition.
176         (slpeel_tree_peel_loop_to_edge): Likewise.
177         (vect_build_loop_niters): Take an optional sequence to append stmts.
178         (vect_generate_tmps_on_preheader): Likewise.
179         (vect_do_peeling_for_loop_bound): Take extra guards for the
180         pre-condition.
181         (vect_do_peeling_for_alignment): Adjust.  Unconditionally apply
182         the cost model check.
183         (vect_loop_versioning): Take stmt and stmt list to put pre-condition
184         guards if we are going to peel.  Do not apply versioning in that
185         case.
186         * tree-vectorizer.h (vect_loop_versioning): Adjust declaration.
187         (vect_do_peeling_for_loop_bound): Likewise.
188         * tree-vect-loop.c (vect_transform_loop): If we are peeling for
189         loop bound only record extra pre-conditions, do not apply loop
190         versioning.
191
192 2009-04-04  Richard Guenther  <rguenther@suse.de>
193
194         * tree-ssa-operands.c (pop_stmt_changes): Remove automatic
195         renaming code.
196
197 2009-04-04  Jan Hubicka  <jh@suse.cz>
198
199         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
200         last_basic_block for size of bb->index indexed array.
201         * bt-load.c (compute_defs_uses_and_gen, compute_kill,
202         compute_out, link_btr_uses, build_btr_def_use_webs,
203         build_btr_def_use_webs, migrate_btr_defs): Likewise.
204
205 2009-04-04  Jan Hubicka  <jh@suse.cz>
206
207         * except.c (remove_eh_handler_and_replace): Break out from ...
208         (remove_eh_handler): ... here.
209         (bring_to_root): New function.
210         (remove_unreachable_regions): Collect MUST_NOT_THROW, unify runtime
211         handled ones, bring others to root of tree.
212
213 2009-04-04  Jan Hubicka  <jh@suse.cz>
214
215         * tree-eh.c (tree_empty_eh_handler_p): Pattern match more curefully.
216         (all_phis_safe_to_merge): New function.
217         (update_info): New structure.
218         (make_eh_edge_and_update_phi, update_eh_edges): New functions.
219         (cleanup_empty_eh): Update SSA if possible.
220
221 2009-04-04  Richard Guenther  <rguenther@suse.de>
222
223         * tree-ssa.c (verify_ssa): With -O0 we do not need VOPs.
224         * tree-ssa-operands.c (append_vdef): Do not append VOPs at -O0.
225         (append_vuse): Likewise.
226
227 2009-04-04  Jakub Jelinek  <jakub@redhat.com>
228
229         * unwind-dw2.h (_Unwind_FrameState): Add REG_UNDEFINED enum value.
230         * unwind-dw2.c (execute_cfa_program): Set how to REG_UNDEFINED
231         instead of REG_UNSAVED for DW_CFA_undefined.
232         (uw_update_context_1): Handle REG_UNDEFINED the same as REG_UNSAVED.
233         (uw_update_context): If RA column is REG_UNDEFINED, mark it as
234         outermost frame.
235
236 2009-04-04  Richard Earnshaw  <rearnsha@arm.com>
237
238         PR target/39501
239         * arm.md (movsfcc): Disable if not TARGET_HARD_FLOAT.
240         * testsuite/gcc.c-torture/execute/pr39501.c: New file.
241         * testsuite/gcc.c-torture/execute/pr39501.x: New file.
242
243 2009-04-04  Richard Guenther  <rguenther@suse.de>
244
245         PR tree-optimization/8781
246         PR tree-optimization/37892
247         * tree-ssa-sccvn.h (vn_reference_fold_indirect): Declare.
248         * tree-ssa-sccvn.c (vn_reference_fold_indirect): New function.
249         (valueize_refs): Call it for *& valueizations.
250         (shared_reference_ops_from_ref): Rename to ...
251         (valueize_shared_reference_ops_from_ref): ... this and valueize.
252         (shared_reference_ops_from_call): Rename to ...
253         (valueize_shared_reference_ops_from_call): ... this and valueize.
254         (vn_reference_lookup): Update.
255         (visit_reference_op_call): Likewise.
256         * tree-ssa-pre.c (phi_translate_1): Fold *&.
257         (eliminate): Value-replace the call address in call statements.
258
259 2009-04-04  Richard Guenther  <rguenther@suse.de>
260
261         PR tree-optimization/39636
262         * tree-ssa-forwprop.c
263         (forward_propagate_addr_into_variable_array_index): Check for
264         GIMPLE_ASSIGN before accessing the rhs code.
265
266 2009-04-03  Jason Merrill  <jason@redhat.com>
267
268         * stor-layout.c (set_sizetype): Set TYPE_CANONICAL.
269
270 2009-04-03  Steve Ellcey  <sje@cup.hp.com>
271
272         * config/ia64/ia64.md (extendsfdf2, extendsfxf2, extenddfxf2,
273         truncdfsf2, truncxfsf2, truncxfdf2, floatdixf2, fix_truncsfdi2,
274         fix_truncdfdi2, fix_truncxfdi2, fix_truncxfdi2_alts, floatunsdisf2,
275         floatunsdidf2, floatunsdixf2, fixuns_truncsfdi2, fixuns_truncdfdi2,
276         fixuns_truncxfdi2, fixuns_truncxfdi2_alts, divsi3_internal,
277         smuldi3_highpart, umuldi3_highpart, ctzdi2, *getf_exp_xf,
278         divdi3_internal_lat, divdi3_internal_thr, mulditi3, *mulditi3_internal,
279         umulditi3, *umulditi3_internal, addsf3, mulsf3, abssf2, negsf2,
280         *nabssf2, sminsf3, smaxsf3, *maddsf4, *msubsf4, *nmulsf3, *nmaddsf4,
281         *nmaddsf4_alts, divsf3, *sqrt_approx, sqrtsf2, sqrtsf2_internal_thr,
282         adddf3, *adddf3_trunc, muldf3, *muldf3_trunc, absdf2, negdf2, *nabsdf2,
283         smindf3, smaxdf3, *madddf4, *madddf4_trunc, *msubdf4, *msubdf4_trunc,
284         *nmuldf3, *nmuldf3_trunc, *nmadddf4, *nmadddf4_alts, *nmadddf4_truncsf,
285         *nmadddf4_truncsf_alts, divdf3, sqrtdf2, sqrtdf2_internal_thr, divxf3,
286         sqrtxf2, sqrtxf2_internal_thr, *recip_approx):
287         Use fr_reg_or_fp01_operand instead of fr_register_operand
288
289         * config/ia64/div.md (extend<mode>rf2, truncrf<mode>2,
290         recip_approx_rf, divsf3_internal_thr, divsf3_internal_lat,
291         divdf3_internal_thr, divdf3_internal_lat divxf3_internal): Ditto.
292
293 2009-04-03  Vladimir Makarov  <vmakarov@redhat.com>
294
295         PR rtl-optimization/39607
296         PR rtl-optimization/39631
297         Revert
298         2009-03-30  Vladimir Makarov  <vmakarov@redhat.com>
299         * reload.c (push_reload, find_dummy_reload): Use df_get_live_out
300         instead of DF_LR_OUT.
301         * ira-lives.c (process_bb_node_lives): Ditto.
302         * ira-color.c (ira_loop_edge_freq): Use df_get_live_{out,in}
303         instead of DF_LR_{OUT,IN}.
304         * ira-emit.c (generate_edge_moves, add_ranges_and_copies): Ditto.
305         * ira-build.c (create_bb_allocnos, create_loop_allocnos): Ditto.
306
307 2009-04-03  Steven Bosscher  <steven@gcc.gnu.org>
308
309         * omp-low.c (pass_expand_omp): Don't claim to provide PROP_gimple_lomp.
310         (execute_lower_omp): Always run but take the short way out if -fopenmp
311         is not given.
312         (gate_lower_omp): Remove, forcing the pass manager to always run the
313         pass and always set PROP_gimple_lomp.
314         (pass_lower_omp): Remove gate function.
315         * matrix-reorg.c (pass_ipa_matrix_reorg): Don't claim to provide
316         PROP_trees.  Instead, require it.
317         * ipa-cp.c (pass_ipa_cp): Likewise.
318         * ipa-inline.c (pass_early_inline): Don't claim to provide PROP_cfg.
319         (pass_ipa_early_inline, pass_inline_parameters, pass_ipa_inline): Idem.
320         * tree-profile.c (pass_tree_profile): Don't claim to provide PROP_cfg
321         and PROP_gimple_leh.
322
323 2009-04-03  Richard Guenther  <rguenther@suse.de>
324
325         PR middle-end/13146
326         PR tree-optimization/23940
327         PR tree-optimization/33237
328         PR middle-end/33974
329         PR middle-end/34093
330         PR tree-optimization/36201
331         PR tree-optimization/36230
332         PR tree-optimization/38049
333         PR tree-optimization/38207
334         PR tree-optimization/38230
335         PR tree-optimization/38301
336         PR tree-optimization/38585
337         PR middle-end/38895
338         PR tree-optimization/38985
339         PR tree-optimization/39299
340         * tree-ssa-structalias.h: Remove.
341         * tree-ssa-operands.h (NULL_USE_OPERAND_P): Make of type use_operand_p.
342         (NULL_DEF_OPERAND_P): Make of type def_operand_p.
343         (struct vuse_element_d): Remove.
344         (struct vuse_vec_d): Likewise.
345         (VUSE_VECT_NUM_ELEM, VUSE_VECT_ELEMENT_NC, VUSE_ELEMENT_PTR_NC,
346         VUSE_ELEMENT_VAR_NC, VUSE_VECT_ELEMENT, VUSE_ELEMENT_PTR,
347         SET_VUSE_VECT_ELEMENT, SET_VUSE_ELEMENT_VAR, SET_VUSE_ELEMENT_PTR,
348         VUSE_ELEMENT_VAR): Likewise.
349         (struct voptype_d): Likewise.
350         (NUM_VOP_FREE_BUCKETS): Likewise.
351         (struct ssa_operands): Remove vop_free_buckets and mpt_table fields.
352         (struct stmt_operands_d): Remove.
353         (VUSE_OP_PTR, VUSE_OP, SET_VUSE_OP, VUSE_NUM, VUSE_VECT,
354         VDEF_RESULT_PTR, VDEF_RESULT, VDEF_OP_PTR, VDEF_OP, SET_VDEF_OP,
355         VDEF_NUM, VDEF_VECT): Likewise.
356         (copy_virtual_operands): Remove.
357         (operand_build_cmp): Likewise.
358         (create_ssa_artificial_load_stmt): Likewise.
359         (enum ssa_op_iter_type): Remove ssa_op_iter_vdef.
360         (struct ssa_operand_iterator_d): Remove vuses, vdefs, mayusesm
361         vuse_index and mayuse_index members.  Pack and move done and iter_type
362         members to the front.
363         (SSA_OP_VMAYUSE): Remove.
364         (SSA_OP_VIRTUAL_USES): Adjust.
365         (FOR_EACH_SSA_VDEF_OPERAND): Remove.
366         (unlink_stmt_vdef): Declare.
367         (add_to_addressable_set): Remove.
368         * tree-vrp.c (stmt_interesting_for_vrp): Adjust.
369         (vrp_visit_stmt): Likewise.
370         * doc/tree-ssa.texi (Alias analysis): Update.
371         * doc/invoke.texi (max-aliased-vops): Remove docs.
372         (avg-aliased-vops): Likewise.
373         * tree-into-ssa.c (syms_to_rename): Remove.
374         (need_to_update_vops_p): Likewise.
375         (need_to_initialize_update_ssa_p): Rename to ...
376         (update_ssa_initialized_fn): ... this.  Track function we are
377         initialized for.
378         (symbol_marked_for_renaming): Simplify.
379         (add_new_name_mapping): Do not set need_to_update_vops_p.
380         (dump_currdefs): Use SYMS_TO_RENAME.
381         (rewrite_update_stmt): Always walk all uses/defs.
382         (dump_update_ssa): Adjust.
383         (init_update_ssa): Take function argument.  Track what we are
384         initialized for.
385         (delete_update_ssa): Reset SYMS_TO_RENAME and update_ssa_initialized_fn.
386         (create_new_def_for): Initialize for cfun, assert we are initialized
387         for cfun.
388         (mark_sym_for_renaming): Simplify.
389         (mark_set_for_renaming): Do not initialize update-ssa.
390         (need_ssa_update_p): Simplify.  Take function argument.
391         (name_mappings_registered_p): Assert we ask for the correct function.
392         (name_registered_for_update_p): Likewise.
393         (ssa_names_to_replace): Likewise.
394         (release_ssa_name_after_update_ssa): Likewise.
395         (update_ssa): Likewise.  Use SYMS_TO_RENAME.
396         (dump_decl_set): Do not print a newline.
397         (debug_decl_set): Do it here.
398         (dump_update_ssa): And here.
399         * tree-ssa-loop-im.c (move_computations): Adjust.
400         (movement_possibility): Likewise.
401         (determine_max_movement): Likewise.
402         (gather_mem_refs_stmt): Likewise.
403         * tree-dump.c (dequeue_and_dump): Do not handle SYMBOL_MEMORY_TAG
404         or NAME_MEMORY_TAG.
405         * tree-complex.c (update_all_vops): Remove.
406         (expand_complex_move): Adjust.
407         * tree-ssa-loop-niter.c (chain_of_csts_start): Use NULL_TREE.
408         Simplify test for memory referencing statement.  Exclude
409         non-invariant ADDR_EXPRs.
410         * tree-pretty-print.c (dump_generic_node): Do not handle memory tags.
411         * tree-loop-distribution.c (generate_memset_zero): Adjust.
412         (rdg_flag_uses): Likewise.
413         * tree-tailcall.c (suitable_for_tail_opt_p): Remove memory-tag
414         related code.
415         (tree_optimize_tail_calls_1): Also split the
416         edge from the entry block if we have degenerate PHI nodes in
417         the first basic block.
418         * tree.c (init_ttree): Remove memory-tag related code.
419         (tree_code_size): Likewise.
420         (tree_node_structure): Likewise.
421         (build7_stat): Re-write to be build6_stat.
422         * tree.h (MTAG_P, TREE_MEMORY_TAG_CHECK, TMR_TAG): Remove.
423         (SSA_VAR_P): Adjust.
424         (struct tree_memory_tag): Remove.
425         (struct tree_memory_partition_tag): Likewise.
426         (union tree_node): Adjust.
427         (build7): Re-write to be build6.
428         * tree-pass.h (pass_reset_cc_flags): Remove.
429         (TODO_update_address_taken): New flag.
430         (pass_simple_dse): Remove.
431         * ipa-cp.c (ipcp_update_callgraph): Update SSA form.
432         * params.h (MAX_ALIASED_VOPS): Remove.
433         (AVG_ALIASED_VOPS): Likewise.
434         * omp-low.c (expand_omp_taskreg): Update SSA form.
435         * tree-ssa-dse.c (dse_optimize_stmt): Properly query if the rhs
436         aliases the lhs in a copy stmt.
437         * tree-ssa-dse.c (struct address_walk_data): Remove.
438         (memory_ssa_name_same): Likewise.
439         (memory_address_same): Likewise.
440         (get_kill_of_stmt_lhs): Likewise.
441         (dse_possible_dead_store_p): Simplify, use the oracle.  Handle
442         unused stores.  Look through PHI nodes into post-dominated regions.
443         (dse_optimize_stmt): Simplify.  Properly remove stores.
444         (tree_ssa_dse): Compute dominators.
445         (execute_simple_dse): Remove.
446         (pass_simple_dse): Likewise.
447         * ipa-reference.c (scan_stmt_for_static_refs): Open-code
448         gimple_loaded_syms and gimple_stored_syms computation.
449         * toplev.c (dump_memory_report): Dump alias and pta stats.
450         * tree-ssa-sccvn.c (vn_reference_compute_hash): Simplify.
451         (vn_reference_eq): Likewise.
452         (vuses_to_vec, copy_vuses_from_stmt, vdefs_to_vec,
453         copy_vdefs_from_stmt, shared_lookup_vops, shared_vuses_from_stmt,
454         valueize_vuses): Remove.
455         (get_def_ref_stmt_vuses): Simplify.  Rename to ...
456         (get_def_ref_stmt_vuse): ... this.
457         (vn_reference_lookup_2): New function.
458         (vn_reference_lookup_pieces): Use walk_non_aliased_vuses for
459         walking equivalent vuses.  Simplify.
460         (vn_reference_lookup): Likewise.
461         (vn_reference_insert): Likewise.
462         (vn_reference_insert_pieces): Likewise.
463         (visit_reference_op_call): Simplify.
464         (visit_reference_op_load): Likewise.
465         (visit_reference_op_store): Likewise.
466         (init_scc_vn): Remove shared_lookup_vuses initialization.
467         (free_scc_vn): Remove shared_lookup_vuses freeing.
468         (sort_vuses, sort_vuses_heap): Remove.
469         (get_ref_from_reference_ops): Export.
470         * tree-ssa-sccvn.h (struct vn_reference_s): Replace vuses
471         vector with single vuse pointer.
472         (vn_reference_lookup_pieces, vn_reference_lookup,
473         vn_reference_insert, vn_reference_insert_pieces): Adjust prototypes.
474         (shared_vuses_from_stmt): Remove.
475         (get_ref_from_reference_ops): Declare.
476         * tree-ssa-loop-manip.c (slpeel_can_duplicate_loop_p): Adjust.
477         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Remove
478         memory-tag related code.
479         * tree-ssa-ccp.c (get_symbol_constant_value): Remove memory-tag code.
480         (likely_value): Add comment, skip static-chain of call statements.
481         (surely_varying_stmt_p): Adjust.
482         (gimplify_and_update_call_from_tree): Likewise.
483         (execute_fold_all_builtins): Do not rebuild alias info.
484         (gimplify_and_update_call_from_tree): Properly update VOPs.
485         * tree-ssa-loop-ivopts.c (get_ref_tag): Remove.
486         (copy_ref_info): Remove memory-tag related code.
487         * tree-call-cdce.c (tree_call_cdce): Rename the VOP.
488         * ipa-pure-const.c (check_decl): Remove memory-tag related code.
489         (check_stmt): Open-code gimple_loaded_syms and gimple_stored_syms
490         computation.
491         * tree-ssa-dom.c (gimple_p): Remove typedef.
492         (eliminate_redundant_computations): Adjust.
493         (record_equivalences_from_stmt): Likewise.
494         (avail_expr_hash): Likewise.
495         (avail_expr_eq): Likewise.
496         * tree-ssa-propagate.c (update_call_from_tree): Properly
497         update VOPs.
498         (stmt_makes_single_load): Likewise.
499         (stmt_makes_single_store): Likewise.
500         * tree-ssa-alias.c: Rewrite completely.
501         (debug_memory_partitions, dump_mem_ref_stats, debug_mem_ref_stats,
502         debug_mem_sym_stats, dump_mem_sym_stats_for_var,
503         debug_all_mem_sym_stats, debug_mp_info, update_mem_sym_stats_from_stmt,
504         delete_mem_ref_stats, create_tag_raw, dump_points_to_info,
505         dump_may_aliases_for, debug_may_aliases_for, new_type_alias):
506         Remove public functions.
507         (pass_reset_cc_flags): Remove.
508         (pass_build_alias): Move ...
509         * tree-ssa-structalias.c (pass_build_alias): ... here.
510         * tree-ssa-alias.c (may_be_aliased): Move ...
511         * tree-flow-inline.h (may_be_aliased): ... here.
512         tree-ssa-alias.c (struct count_ptr_d, count_ptr_derefs,
513         count_uses_and_derefs): Move ...
514         * gimple.c: ... here.
515         * gimple.h (count_uses_and_derefs): Declare.
516         * tree-ssa-alias.c (dump_alias_stats, ptr_deref_may_alias_global_p,
517         ptr_deref_may_alias_decl_p, ptr_derefs_may_alias_p,
518         same_type_for_tbaa, nonaliasing_component_refs_p, decl_refs_may_alias_p,
519         indirect_ref_may_alias_decl_p, indirect_refs_may_alias_p,
520         ref_maybe_used_by_call_p, ref_maybe_used_by_stmt_p,
521         call_may_clobber_ref_p, stmt_may_clobber_ref_p, maybe_skip_until,
522         get_continuation_for_phi, walk_non_aliased_vuses, walk_aliased_vdefs):
523         New functions.
524         * tree-dfa.c (refs_may_alias_p): Move ...
525         * tree-ssa-alias.c (refs_may_alias_p): ... here.  Extend.
526         * tree-ssa-alias.h: New file.
527         * tree-ssa-sink.c (is_hidden_global_store): Adjust.
528         (statement_sink_location): Likewise.
529         * opts.c (decode_options): Do not adjust max-aliased-vops or
530         avg-aliased-vops values.
531         * timevar.def (TV_TREE_MAY_ALIAS): Remove.
532         (TV_CALL_CLOBBER): Likewise.
533         (TV_FLOW_SENSITIVE): Likewise.
534         (TV_FLOW_INSENSITIVE): Likewise.
535         (TV_MEMORY_PARTITIONING): Likewise.
536         (TV_ALIAS_STMT_WALK): New timevar.
537         * tree-ssa-loop-ivcanon.c (empty_loop_p): Adjust.
538         * tree-ssa-address.c (create_mem_ref_raw): Use build6.
539         (get_address_description): Remove memory-tag related code.
540         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Adjust.
541         * treestruct.def (TS_MEMORY_TAG, TS_MEMORY_PARTITION_TAG): Remove.
542         * tree-eh.c (cleanup_empty_eh): Do not leave stale SSA_NAMEs
543         and immediate uses in statements.  Document.
544         * gimple-pretty-print.c (dump_gimple_mem_ops): Adjust.
545         (dump_symbols): Remove.
546         (dump_gimple_mem_ops): Do not dump loaded or stored syms.
547         * alias.c (get_deref_alias_set): New function split out from ...
548         (get_alias_set): ... here.
549         * alias.h (get_deref_alias_set): Declare.
550         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Remove unused
551         type parameter.  Remove restrict pointer handling.  Create a
552         ref-all pointer in case type-based alias sets do not conflict.
553         (vect_analyze_data_refs): Remove SMT related code.
554         * tree-vect-stmts.c (vectorizable_store): Re-instantiate TBAA assert.
555         (vectorizable_load): Likewise.
556         * tree-data-ref.h (struct dr_alias): Remove symbol_tag field.
557         (DR_SYMBOL_TAG, DR_VOPS): Remove.
558         * tree-data-ref.c (dr_may_alias_p): Use the alias-oracle.
559         Ignore vops and SMTs.
560         (dr_analyze_alias): Likewise..
561         (free_data_ref): Likewise.
562         (create_data_ref): Likewise.
563         (analyze_all_data_dependences): Likewise.
564         (get_references_in_stmt): Adjust.
565         * tree-flow-inline.h (gimple_aliases_computed_p,
566         gimple_addressable_vars, gimple_call_clobbered_vars,
567         gimple_call_used_vars, gimple_global_var, may_aliases, memory_partition,
568         factoring_name_p, mark_call_clobbered, clear_call_clobbered,
569         compare_ssa_operands_equal, symbol_mem_tag, set_symbol_mem_tag,
570         gimple_mem_ref_stats): Remove.
571         (gimple_vop): New function.
572         (op_iter_next_use): Remove vuses and mayuses cases.
573         (op_iter_next_def): Remove vdefs case.
574         (op_iter_next_tree): Remove vuses, mayuses and vdefs cases.
575         (clear_and_done_ssa_iter): Do not set removed fields.
576         (op_iter_init): Likewise.  Skip vuse and/or vdef if requested.
577         Assert we are not iterating over vuses or vdefs if not also
578         iterating over uses or defs.
579         (op_iter_init_use): Likewise.
580         (op_iter_init_def): Likewise.
581         (op_iter_next_vdef): Remove.
582         (op_iter_next_mustdef): Likewise.
583         (op_iter_init_vdef): Likewise.
584         (compare_ssa_operands_equal): Likewise.
585         (link_use_stmts_after): Handle vuse operand.
586         (is_call_used): Use is_call_clobbered.
587         (is_call_clobbered): Global variables are always call clobbered,
588         query the call-clobbers bitmap.
589         (mark_call_clobbered): Ignore global variables.
590         (clear_call_clobbered): Likewise.
591         * tree-ssa-coalesce.c (create_outofssa_var_map): Adjust
592         virtual operands sanity check.
593         * tree.def (NAME_MEMORY_TAG, SYMBOL_MEMORY_TAG, MEMORY_PARTITION_TAG):
594         Remove.
595         (TARGET_MEM_REF): Remove TMR_TAG operand.
596         * tree-dfa.c (add_referenced_var): Initialize call-clobber state.
597         Remove call-clobber related code.
598         (remove_referenced_var): Likewise.  Do not clear mpt or symbol_mem_tag.
599         (dump_variable): Do not dump SMTs, memory stats, may-aliases or
600         partitions or escape reason.
601         (get_single_def_stmt, get_single_def_stmt_from_phi,
602         get_single_def_stmt_with_phi): Remove.
603         (dump_referenced_vars): Tidy.
604         (get_ref_base_and_extent): Allow bare decls.
605         (collect_dfa_stats): Adjust.
606         * graphite.c (rename_variables_in_stmt): Adjust.
607         (graphite_copy_stmts_from_block): Likewise.
608         (translate_clast): Likewise.
609         * tree-ssa-pre.c (struct bb_bitmap_sets): Add expr_dies bitmap.
610         (EXPR_DIES): New.
611         (translate_vuse_through_block): Use the oracle.
612         (phi_translate_1): Adjust.
613         (value_dies_in_block_x): Use the oracle.  Cache the outcome
614         in EXPR_DIES.
615         (valid_in_sets): Check if the VUSE for
616         a REFERENCE is available.
617         (eliminate): Do not remove stmts during elimination,
618         instead queue and remove them afterwards.
619         (do_pre): Do not rebuild alias info.
620         (pass_pre): Run TODO_rebuild_alias before PRE.
621         * tree-ssa-live.c (remove_unused_locals): Remove memory-tag code.
622         * tree-sra.c (sra_walk_function): Use gimple_references_memory_p.
623         (mark_all_v_defs_stmt): Remove.
624         (mark_all_v_defs_seq): Adjust.
625         (sra_replace): Likewise.
626         (scalarize_use): Likewise.
627         (scalarize_copy): Likewise.
628         (scalarize_init): Likewise.
629         (scalarize_ldst): Likewise.
630         (todoflags): Remove.
631         (tree_sra): Do not rebuild alias info.
632         (tree_sra_early): Adjust.
633         (pass_sra): Run TODO_update_address_taken before SRA.
634         * tree-predcom.c (set_alias_info): Remove.
635         (prepare_initializers_chain): Do not call it.
636         (mark_virtual_ops_for_renaming): Adjust.
637         (mark_virtual_ops_for_renaming_list): Remove.
638         (initialize_root_vars): Adjust.
639         (initialize_root_vars_lm): Likewise.
640         (prepare_initializers_chain): Likewise.
641         * tree-ssa-copy.c (may_propagate_copy): Remove memory-tag related code.
642         (may_propagate_copy_into_stmt): Likewise.
643         (merge_alias_info): Do nothing for now.
644         (propagate_tree_value_into_stmt): Adjust.
645         (stmt_may_generate_copy): Likewise.
646         * tree-ssa-forwprop.c (tidy_after_forward_propagate_addr): Do
647         not mark symbols for renaming.
648         (forward_propagate_addr_expr): Match up push/pop_stmt_changes
649         with the same statement, make sure to update the new pointed-to one.
650         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not copy
651         call statements, do not mark symbols for renaming.
652         (mark_operand_necessary): Dump something.
653         (ref_may_be_aliased): New function.
654         (mark_aliased_reaching_defs_necessary_1): New helper function.
655         (mark_aliased_reaching_defs_necessary): Likewise.
656         (mark_all_reaching_defs_necessary_1): Likewise.
657         (mark_all_reaching_defs_necessary): Likewise.
658         (propagate_necessity): Do not process virtual PHIs.  For
659         non-aliased loads mark all reaching definitions as necessary.
660         For aliased loads and stores mark the immediate dominating
661         aliased clobbers as necessary.
662         (visited): New global static.
663         (perform_tree_ssa_dce): Free visited bitmap after propagating
664         necessity.
665         (remove_dead_phis): Perform simple dead virtual PHI removal.
666         (remove_dead_stmt): Properly unlink virtual operands when
667         removing stores.
668         (eliminate_unnecessary_stmts): Schedule PHI removal after
669         stmt removal.
670         * tree-ssa-ter.c (is_replaceable_p): Adjust.
671         (process_replaceable): Likewise.
672         (find_replaceable_in_bb): Likewise.
673         * tree-ssa.c (verify_ssa_name): Verify all VOPs are
674         based on the single gimple vop.
675         (verify_flow_insensitive_alias_info): Remove.
676         (verify_flow_sensitive_alias_info): Likewise.
677         (verify_call_clobbering): Likewise.
678         (verify_memory_partitions): Likewise.
679         (verify_alias_info): Likewise.
680         (verify_ssa): Adjust..
681         (execute_update_addresses_taken): Export.  Update SSA
682         manually.  Optimize only when optimizing.  Use a local bitmap.
683         (pass_update_address_taken): Remove TODO_update_ssa, add
684         TODO_dump_func.
685         (pass_update_address_taken): Just use TODO_update_address_taken.
686         (init_tree_ssa): Do not initialize addressable_vars.
687         (verify_ssa): Verify new VUSE / VDEF properties.
688         Verify that all stmts definitions have the stmt as SSA_NAME_DEF_STMT.
689         Do not call verify_alias_info.
690         (delete_tree_ssa): Clear the VUSE, VDEF operands.
691         Do not free the loaded and stored syms bitmaps.  Reset the escaped
692         and callused solutions.  Do not free addressable_vars.
693         Remove memory-tag related code.
694         (warn_uninitialized_var): Aliases are always available.
695         * tree-ssa-loop-prefetch.c (gather_memory_references): Adjust.
696         * lambda-code.c (can_put_in_inner_loop): Adjust.
697         (can_put_after_inner_loop): Likewise.
698         (perfect_nestify): Likewise.
699         * tree-vect-stmts.c (vect_stmt_relevant_p): Adjust.
700         (vect_gen_widened_results_half): Remove CALL_EXPR handling.
701         (vectorizable_conversion): Do not mark symbols for renaming.
702         * tree-inline.c (remap_gimple_stmt): Clear VUSE/VDEF.
703         (expand_call_inline): Unlink the calls virtual operands before
704         replacing it.
705         (tree_function_versioning): Do not call update_ssa if we are not
706         updating clones.  Simplify.
707         * tree-ssa-phiprop.c (phivn_valid_p): Adjust.
708         (propagate_with_phi): Likewise..
709         * tree-outof-ssa.c (create_temp): Remove memory tag and call
710         clobber code.  Assert we are not aliased or global.
711         * tree-flow.h: Include tree-ssa-alias.h
712         (enum escape_type): Remove.
713         (struct mem_sym_stats_d): Likewise.
714         (struct mem_ref_stats_d): Likewise.
715         (struct gimple_df): Add vop member.  Remove global_var,
716         call_clobbered_vars, call_used_vars, addressable_vars,
717         aliases_compted_p and mem_ref_stats members.  Add syms_to_rename,
718         escaped and callused members.
719         (struct ptr_info_def): Remove all members, add points-to solution
720         member pt.
721         (struct var_ann_d): Remove in_vuse_list, in_vdef_list,
722         call_clobbered, escape_mask, mpt and symbol_mem_tag members.
723         * Makefile.in (TREE_FLOW_H): Add tree-ssa-alias.h.
724         (tree-ssa-structalias.o): Remove tree-ssa-structalias.h.
725         (tree-ssa-alias.o): Likewise.
726         (toplev.o): Add tree-ssa-alias.h
727         (GTFILES): Remove tree-ssa-structalias.h, add tree-ssa-alias.h.
728         * gimple.c (gimple_set_bb): Fix off-by-one error.
729         (is_gimple_reg): Do not handle memory tags.
730         (gimple_copy): Also copy virtual operands.
731         Delay updating the statement.  Do not reset loaded and stored syms.
732         (gimple_set_stored_syms): Remove.
733         (gimple_set_loaded_syms): Likewise.
734         (gimple_call_copy_skip_args): Copy the virtual operands
735         and mark the new statement modified.
736         * tree-ssa-structalias.c (may_alias_p): Remove.
737         (set_uids_in_ptset): Take the alias set to prune with as
738         parameter.  Fold in the alias test of may_alias_p.
739         (compute_points_to_sets): Compute whether a ptr is dereferenced
740         in a local sbitmap.
741         (process_constraint): Deal with &ANYTHING on the lhs, reject all
742         other ADDRESSOF constraints on the lhs.
743         (get_constraint_for_component_ref): Assert that we don't get
744         ADDRESSOF constraints from the base of the reference.
745         Properly generate UNKNOWN_OFFSET for DEREF if needed.
746         (struct variable_info): Remove collapsed_to member.
747         (get_varinfo_fc): Remove.
748         (new_var_info): Do not set collapsed_to.
749         (dump_constraint): Do not follow cycles.
750         (dump_constraint_graph): Likewise.
751         (build_pred_graph): Likewise.
752         (build_succ_graph): Likewise.
753         (rewrite_constraints): Likewise.
754         (do_simple_structure_copy): Remove.
755         (do_rhs_deref_structure_copy): Remove.
756         (do_lhs_deref_structure_copy): Remove.
757         (collapse_rest_of_var): Remove.
758         (do_structure_copy): Re-implement.
759         (pta_stats): New global variable.
760         (dump_pta_stats): New function.
761         (struct constraint_expr): Make offset signed.
762         (UNKNOWN_OFFSET): Define special value.
763         (dump_constraint): Dump UNKNOWN_OFFSET as UNKNOWN.
764         (solution_set_expand): New helper function split out from ...
765         (do_sd_constraint): ... here.
766         (solution_set_add): Handle UNKNOWN_OFFSET.  Handle negative offsets.
767         (do_ds_constraint): Likewise.
768         (do_sd_constraint): Likewise.  Do not special-case ESCAPED = *ESCAPED
769         and CALLUSED = *CALLUSED.
770         (set_union_with_increment): Make inc argument signed.
771         (type_safe): Remove.
772         (get_constraint_for_ptr_offset): Handle unknown and negative
773         constant offsets.
774         (first_vi_for_offset): Handle offsets before start.  Bail
775         out early for offsets beyond the variable extent.
776         (first_or_preceding_vi_for_offset): New function.
777         (init_base_vars): Add ESCAPED = ESCAPED + UNKNOWN_OFFSET constraint.
778         Together with ESCAPED = *ESCAPED this properly computes reachability.
779         (find_what_var_points_to): New function.
780         (find_what_p_points_to): Implement in terms of find_what_var_points_to.
781         (pt_solution_reset, pt_solution_empty_p, pt_solution_includes_global,
782         pt_solution_includes_1, pt_solution_includes, pt_solutions_intersect_1,
783         pt_solutions_intersect): New functions.
784         (compute_call_used_vars): Remove.
785         (compute_may_aliases): New main entry into PTA computation.
786         * gimple.h (gimple_p): New typedef.
787         (struct gimple_statement_base): Remove references_memory_p.
788         (struct gimple_statement_with_memory_ops_base): Remove
789         vdef_ops, vuse_ops, stores and loads members.  Add vdef and vuse
790         members.
791         (gimple_vuse_ops, gimple_set_vuse_ops, gimple_vdef_ops,
792         gimple_set_vdef_ops, gimple_loaded_syms, gimple_stored_syms,
793         gimple_set_references_memory): Remove.
794         (gimple_vuse_op, gimple_vdef_op, gimple_vuse, gimple_vdef,
795         gimple_vuse_ptr, gimple_vdef_ptri, gimple_set_vuse, gimple_set_vdef):
796         New functions.
797         * tree-cfg.c (move_block_to_fn): Fix off-by-one error.
798         (verify_expr): Allow RESULT_DECL.
799         (gimple_duplicate_bb): Do not copy virtual operands.
800         (gimple_duplicate_sese_region): Adjust.
801         (gimple_duplicate_sese_tail): Likewise.
802         (mark_virtual_ops_in_region): Remove.
803         (move_sese_region_to_fn): Do not call it.
804         * passes.c (init_optimization_passes): Remove pass_reset_cc_flags
805         and pass_simple_dse.
806         (execute_function_todo): Handle TODO_update_address_taken,
807         call execute_update_addresses_taken for TODO_rebuild_alias.
808         (execute_todo): Adjust.
809         (execute_one_pass): Init dump files early.
810         * ipa-struct-reorg.c (finalize_var_creation): Do not mark vars
811         call-clobbered.
812         (create_general_new_stmt): Clear vops.
813         * tree-ssa-reassoc.c (get_rank): Adjust.
814         * tree-vect-slp.c (vect_create_mask_and_perm): Do not mark
815         symbols for renaming.
816         * params.def (PARAM_MAX_ALIASED_VOPS): Remove.
817         (PARAM_AVG_ALIASED_VOPS): Likewise.
818         * tree-ssanames.c (init_ssanames): Allocate SYMS_TO_RENAME.
819         (duplicate_ssa_name_ptr_info): No need to copy the shared bitmaps.
820         * tree-ssa-operands.c: Simplify for new virtual operand
821         representation.
822         (operand_build_cmp, copy_virtual_operands,
823         create_ssa_artificial_load_stmt, add_to_addressable_set,
824         gimple_add_to_addresses_taken): Remove public functions.
825         (unlink_stmt_vdef): New function.
826
827 2009-04-03  Alan Modra  <amodra@bigpond.net.au>
828
829         * config.gcc (powerpc-*-linux*): Merge variants.
830
831 2009-04-02  Chao-ying Fu  <fu@mips.com>
832             James Grosbach <james.grosbach@microchip.com>
833
834         * config/mips/mips.c (mips_frame_info): Add acc_mask, num_acc,
835         num_cop0_regs, acc_save_offset, cop0_save_offset, acc_sp_offset,
836         cop0_sp_offset.
837         (machine_function): Add interrupt_handler_p, use_shadow_register_set_p,
838         keep_interrupts_masked_p, use_debug_exception_return_p.
839         (mips_attribute_table): Add interrupt, use_shadow_register_set,
840         keep_interrupts_masked, use_debug_exception_return.
841         (mips_interrupt_type_p, mips_use_shadow_register_set_p,
842         mips_keep_interrupts_masked_p, mips_use_debug_exception_return_p):
843         New functions.
844         (mips_function_ok_for_sibcall): Return false for interrupt handlers.
845         (mips_print_operand): Process COP0 registers to print $0 .. $31
846         correctly for GAS to process.
847         (mips_interrupt_extra_call_saved_reg_p): New function.
848         (mips_cfun_call_saved_reg_p): For interrupt handlers, we need to check
849         extra registers.
850         (mips_cfun_might_clobber_call_saved_reg_p): Likewise.
851         (mips_compute_frame_info): Add supports for interrupt context that
852         includes doubleword accumulators and COP0 registers.
853         (mips_for_each_saved_acc): New function.
854         (mips_for_each_saved_gpr_and_fpr): Change the function name from
855         mips_for_each_saved_reg.
856         (mips_save_reg): Save accumulators.
857         (mips_kernel_reg_p): A new for_each_rtx callback.
858         (mips_expand_prologue): Support interrupt handlers.
859         (mips_restore_reg): Restore accumulators.
860         (mips_expand_epilogue): Support interrupt handlers.
861         (mips_can_use_return_insn): Return false for interrupt handlers.
862         (mips_epilogue_uses): New function.
863         * config/mips/mips.md (UNSPEC_ERET, UNSPEC_DERET, UNSPEC_DI,
864         UNSPEC_EHB, UNSPEC_RDPGPR, UNSPEC_COP0): New UNSPEC.
865         (mips_eret, mips_deret, mips_di, mips_ehb, mips_rdpgpr,
866         cop0_move): New instructions.
867         * config/mips/mips-protos.h (mips_epilogue_uses): Declare.
868         * config/mips/mips.h (K0_REG_NUM, K1_REG_NUM, KERNEL_REG_P): New
869         defines.
870         (COP0_STATUS_REG_NUM, COP0_CAUSE_REG_NUM, COP0_EPC_REG_NUM):
871         New defines.
872         (CAUSE_IPL, SR_IPL, SR_EXL, SR_IE): New defines.
873         (MIPS_PROLOGUE_TEMP_REGNUM, MIPS_EPILOGUE_TEMP_REGNUM): For
874         interrupt handlers, we use K0 as the temporary register.
875         (EPILOGUE_USES): Change to a function call.
876         * config/mips/sde.h (MIPS_EPILOGUE_TEMP_REGNUM): For interrupt
877         handlers, we use K0 as the temporary register.
878         
879         * doc/extend.texi (Function Attributes): Document interrupt,
880         use_shadow_register_set, keep_interrupts_masked,
881         use_debug_exception_return for MIPS attributes.
882
883 2009-04-03  Alan Modra  <amodra@bigpond.net.au>
884
885         * config.gcc (powerpc64-*-gnu*): Add rs6000/default64.h to tm_file.
886         Remove a number of t-files from tmake_file.
887         * config/rs6000/sysv4.opt (mprototype): Name variable target_prototype.
888         * config/rs6000/sysv4.h (TARGET_PROTOTYPE): Define.
889         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
890         target_prototype, not TARGET_PROTOTYPE.
891         (LINK_OS_GNU_SPEC): Define.
892         * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Delete tramp.S
893         and darwin-ldoubdle.c.
894
895 2009-04-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
896
897         PR driver/39293
898         * gcc.c (save_temps_flag): Add support for -save-temps=obj.
899         (cpp_options): Ditto.
900         (default_compilers): Ditto.
901         (display_help): Ditto.
902         (process_command): Ditto.
903         (do_spec_1): Ditto.
904         (set_input): Use lbasename instead of duplicate code.
905         (save_temps_prefix): New static for -save-temps=obj.
906         (save_temps_length): Ditto.
907         
908         * doc/invoke.texi (-save-temps=obj): Document new variant to
909         -save-temps switch.
910
911 2009-04-02  Jeff Law  <law@redhat.com>
912
913         * reload1.c (fixup_eh_region_notes): Remove write-only "trap_count"
914         variable.
915
916 2009-04-02  H.J. Lu  <hongjiu.lu@intel.com>
917
918         * configure.ac: Support -Bstatic/-Bdynamic for linker version > 2.
919         * configure: Regenerated.
920
921 2009-04-02  Rafael Avila de Espindola  <espindola@google.com>
922
923         * c-decl.c (merge_decls): Make sure newdecl and olddecl don't
924         share the argument list.
925
926 2009-04-02  Rafael Avila de Espindola  <espindola@google.com>
927
928         Merge
929
930         2009-02-12  Diego Novillo  <dnovillo@google.com>
931
932         * varpool.c (debug_varpool): New.
933         * cgraph.h (debug_varpool): Declare.
934
935 2009-04-02  Jan Hubicka  <jh@suse.cz>
936
937         * passes.c (init_optimization_passes): Remove two copies of ehcleanup
938         pass.
939
940 2009-04-02  H.J. Lu  <hongjiu.lu@intel.com>
941
942         * config/i386/i386.c (ix86_abi): Move initialization to ...
943         (override_options): Here.
944
945 2009-04-02  Christian Bruel  <christian.bruel@st.com>
946
947         * config/sh/sh.c (sh_dwarf_register_span): New function.
948         (TARGET_DWARF_REGISTER_SPAN): Define.
949         * config/sh/sh-protos.h (sh_dwarf_register_span): Declare.
950         
951 2009-04-02  Ira Rosen  <irar@il.ibm.com>
952
953         PR tree-optimization/39595
954         * tree-vect-slp.c (vect_build_slp_tree): Check that the size of 
955         interleaved loads group is not  greater than the SLP group size.
956
957 2009-04-02  Rafael Avila de Espindola  <espindola@google.com>
958
959         * builtins.c (is_builtin_name): New.
960         (called_as_built_in): Use is_builtin_name.
961         * tree.h (is_builtin_name): New.
962         * varasm.c (incorporeal_function_p): Use is_builtin_name
963
964 2009-04-02  Andrew Stubbs  <ams@codesourcery.com>
965
966         * config/sh/linux-unwind.h: Disable when inhibit_libc is defined.
967
968 2009-04-02  Dodji Seketeli  <dodji@redhat.com>
969
970         PR c++/26693
971         * c-decl.c: (clone_underlying_type): Move this ...
972         * c-common.c (set_underlying_type): ... here.
973         Also, make sure the function properly sets TYPE_STUB_DECL() on
974         the newly created typedef variant type.
975         * c-common.h (is_typedef_decl, set_underlying_type): Declare ...
976         * c-common.c (is_typedef_decl, set_underlying_type): ... new entry points.
977
978 2009-04-02  Richard Guenther  <rguenther@suse.de>
979
980         PR tree-optimization/37221
981         * tree-flow.h (degenerate_phi_result): Declare.
982         * tree-ssa-dom.c (degenerate_phi_result): Export.
983         * tree-scalar-evolution.c (analyze_initial_condition): If
984         the initial condition is defined by a degenerate PHI node
985         use the degenerate value.
986
987 2009-04-01  Eric Botcazou  <ebotcazou@adacore.com>
988
989         PR rtl-optimization/39588
990         * combine.c (merge_outer_ops): Do not set the constant when this
991         is not necessary.
992         (simplify_shift_const_1): Do not modify it either in this case.
993
994 2009-04-01  Steven Bosscher  <steven@gcc.gnu.org>
995
996         * config/ia64/ia64.c (ia64_handle_option): Inform user that Itanium1
997         tuning is deprecated if -mtune value is set to an Itanium1 variant.
998
999 2009-04-01  Janis Johnson  <janis187@us.ibm.com>
1000
1001         PR c/29027
1002         * c-lex.c (interpret_float): Default (no suffix) is double.
1003
1004 2009-04-1  Xinliang David Li  <davidxl@google.com>
1005
1006         * config/i386/i386.c (legitimate_constant_p): Recognize
1007         all one vector constant.
1008
1009 2009-04-01      Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
1010
1011         * gcc/config/vax/vax.c: Add #includes to silence warnings.
1012         Change #include order to silence two warnings.
1013
1014 2009-04-01      Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
1015
1016         * gcc/config/vax/linux.h (TARGET_DEFAULT): Add the MASK_QMATH flag bit.
1017         (ASM_SPEC): Pass -k to the assembler for PIC code.
1018
1019 2009-04-01      Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
1020
1021         * gcc/config.gcc: Add vax-*-linux* to the switch.
1022         * gcc/config/vax/linux.h: New file. (TARGET_VERSION,
1023         TARGET_OS_CPP_BUILTINS, TARGET_DEFAULT, CPP_SPEC, LINK_SPEC): Define.
1024
1025 2009-04-01      Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
1026
1027         * gcc/config/vax/vax.c (vax_output_int_move, adjacent_operands_p):
1028         Use predicate macros instead of GET_CODE() == foo.
1029         * gcc/config/vax/vax.md (movsi_2, movstrictqi, and<mode>3, ashrsi3,
1030         ashlsi3, rotrsi3, <unnamed>): Likewise.
1031
1032 2009-04-01      Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
1033
1034         * gcc/config/vax/builtins.md (jbbssiqi, jbbssihi, jbbssisi, jbbcciqi,
1035         jbbccihi, jbbccisi): Remova trailing whitespace.
1036         * gcc/config/vax/constraints.md: Likewise.
1037         * gcc/config/vax/elf.h: (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
1038         * gcc/config/vax/openbsd1.h (OBSD_OLD_GAS): Likewise.
1039         * gcc/config/vax/predicates.md: Likewise.
1040         * gcc/config/vax/vax.c (print_operand_address, vax_output_int_move,
1041         vax_expand_addsub_di_operands, adjacent_operands_p): Likewise.
1042         * gcc/config/vax/vax.h: Likewise.
1043         * gcc/config/vax/vax.md (nonlocal_goto): Likewise.
1044
1045 2009-04-01      Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
1046
1047         * gcc/config/vax/vax.c (vax_float_literal, vax_output_int_move)
1048         (indirectable_address_p, adjacent_operands_p): Add spaces around
1049         braces.
1050         * gcc/config/vax/vax-protos.h (adjacent_operands_p): Likewise.
1051
1052 2009-04-01      Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
1053
1054         * gcc/config/vax/vax.c (legitimate_constant_address_p,
1055         legitimate_constant_p, indirectable_address_p, nonindexed_address_p,
1056         index_term_p, reg_plus_index_p, legitimate_address_p,
1057         vax_mode_dependent_address_p): Update comments to match functions
1058         modified by the recent int->bool conversion.
1059
1060 2009-04-01      Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
1061
1062         * gcc/config/vax/builtins.md: Update copyright message.
1063         * gcc/config/vax/constraints.md: Likewise.
1064         * gcc/config/vax/netbsd-elf.h: Likewise.
1065         * gcc/config/vax/predicates.md: Likewise.
1066         * gcc/config/vax/vax-protos.h: Likewise.
1067         * gcc/config/vax/vax.c: Likewise.
1068         * gcc/config/vax/vax.h: Likewise.
1069         * gcc/config/vax/vax.md: Likewise.
1070         * gcc/config/vax/vax.opt: Likewise.
1071
1072 2009-04-01      Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
1073
1074         * gcc/config/vax/builtins.md (ffssi2, ffssi2_internal,
1075         sync_lock_test_and_set<mode>, sync_lock_release<mode>): Fix indention.
1076         * gcc/config/vax/constraints.md (B, R): Likewise.
1077         * gcc/config/vax/predicates.md (external_memory_operand,
1078         nonimmediate_addsub_di_operand): Likewise.
1079         * gcc/config/vax/vax.c (vax_output_int_add): Likewise.
1080         * gcc/config/vax/vax.md (movsi, movsi_2, mov<mode>, call_value,
1081         untyped_call): Likewise.
1082
1083 2009-04-01      Matt Thomas <matt@3am-software.com>
1084
1085         * config/vax/predicates.md: New file. (symbolic_operand,
1086         local_symbolic_operand, external_symbolic_operand,
1087         external_const_operand, nonsymbolic_operand, external_memory_operand,
1088         indirect_memory_operand, indexed_memory_operand,
1089         illegal_blk_memory_operand, illegal_addsub_di_memory_operand,
1090         nonimmediate_addsub_di_operand, general_addsub_di_operand): New
1091         predicate.
1092         * config/vax/constraints.md: New file. (Z0, U06,  U08, U16, CN6, S08,
1093         S16, I, J, K, L, M, N, O, G, Q, B, R, T): New constraint.
1094         * config/vax/builtins.md: New file. (ffssi2, ffssi2_internal,
1095         sync_lock_test_and_set<mode>, jbbssiqi, jbbssihi, jbbssisi,
1096         sync_lock_release<mode>, jbbcciqi, jbbccihi, jbbccisi): Define.
1097         * config/vax/vax.opt (mqmath): Add option.
1098         * config/vax/vax.md (isfx): Extend with DI.
1099         (VAXintQH, VAXintQHSD): Define.
1100         (tst<mode>, cmp<mode>, *bit<mode>, movmemhi1, truncsiqi2, truncsihi2,
1101         mulsidi3, add<mode>3, sub<mode>, mul<mode>3, div<mode>3, and<mode>,
1102         and<mode>_const_int, ior<mode>3, xor<mode>3, neg<mode>2,
1103         one_cmpl<mode>2, ashlsi3, lshrsi3, rotlsi3): Update constraints.
1104         (movdi): Update constraints and use vax_output_int_move().
1105         (movsi, movsi_2, pushlclsymreg, pushextsymreg, movlclsymreg,
1106         movextsymreg, adddi3, adcdi3, subdi3, sbcdi3, pushextsym, movextsym,
1107         pushlclsym, movlclsym, movaddr<mode>, pushaddr<mode>,
1108         nonlocal_goto): New.
1109         (mov<mode>): Extend accepted operand types.
1110         (subdi3_old): Rename from subdi3, change update constraints and use
1111         a new implementation.
1112         * gcc/config/vax/vax.h (PCC_BITFIELD_TYPE_MATTERS): Add space.
1113         (FRAME_POINTER_CFA_OFFSET, IRA_COVER_CLASSES, CLASS_MAX_NREGS,
1114         MOVE_RATIO, CLEAR_RATIO): Define.
1115         (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P,
1116         CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Delete.
1117         (PRINT_OPERAND): Redefine using a function instead of inlined code.
1118         * gcc/config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
1119         (split_quadword_operands): Make static and really allow variable
1120         splitting.
1121         (print_operand_address): Update for PIC generation.
1122         (print_operand, vax_builtin_setjmp_frame_value, vax_output_int_subtract,
1123         indexable_address_p, fixup_mathdi_operand,
1124         vax_expand_addsub_di_operands, adjacent_operands_p): New.
1125         (vax_float_literal, legitimate_constant_p,
1126         indirectable_constant_address_p, index_term_p,
1127         reg_plus_index_p): Return bool instead of int.
1128         (vax_rtx_costs): Fix cost for CONST_INT, indent and use HOST_WIDE_INT
1129         where needed.
1130         (vax_output_int_move, vax_output_int_add): Extend to allow PIC
1131         generation.
1132         (vax_output_conditional_branch): Indent.
1133         (legitimate_constant_address_p, indirectable_constant_address_p,
1134         indirectable_address_p, nonindexed_address_p, legitimate_address_p,
1135         vax_mode_dependent_address_p): Return bool instead of int, update for
1136         PIC generation.
1137         * config/vax/vax-protos.h (legitimate_constant_address_p,
1138         legitimate_constant_p, legitimate_address_p,
1139         vax_mode_dependent_address_p): Change declaration to bool.
1140         (legitimate_pic_operand_p, adjacent_operands_p, print_operand,
1141         vax_expand_addsub_di_operands, vax_output_int_subtract,
1142         vax_output_movmemsi): Declare.
1143         (split_quadword_operands, vax_float_literal): Delete declaration.
1144         * config/vax/netbsd-elf.h (CC1_SPEC, CC1PLUS_SPEC) Define.
1145         * config/vax/elf.h (NO_EXTERNAL_INDIRECT_ADDRESS,
1146         VAX_CC1_AND_CC1PLUS_SPEC, ASM_PREFERRED_EH_DATA_FORMAT,
1147         ASM_OUTPUT_DWARF_PCREL): Define.
1148         (ASM_SPEC): Change definition to allow PIC generation.
1149
1150 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
1151
1152         PR target/39226
1153         * config/rs6000/rs6000.md (andsi3_internal5_nomc,
1154         anddi3_internal2_nomc, anddi3_internal3_nomc): Removed.
1155         (booldi3_internal3): Use boolean_or_operator instead of
1156         boolean_operator.
1157
1158 2009-04-01  Joseph Myers  <joseph@codesourcery.com>
1159
1160         PR c/39605
1161         * c-decl.c (grokdeclarator): Pedwarn for file-scope array
1162         declarator whose size is not an integer constant expression but
1163         folds to an integer constant, then treat it as a constant
1164         subsequently.
1165
1166 2009-04-01  Richard Guenther  <rguenther@suse.de>
1167
1168         * fold-const.c (fold_plusminus_mult_expr): Do not fold
1169         i * 4 + 2 to (i * 2 + 1) * 2.
1170
1171 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
1172
1173         PR c/37772
1174         * c-parser.c (c_parser_asm_statement): Skip until close paren and
1175         return if c_parser_asm_string_literal returned NULL.
1176
1177 2009-04-01  Nick Clifton  <nickc@redhat.com>
1178
1179         * config/m32c/m32c.h (LIBGCC2_UNITS_PER_WORD): Define if not
1180         already defined.
1181         * config/m32c/t-m32c (LIB2FUNCS_EXTRA): Add m32c-lib2-trapv.c.
1182         * config/m32c/m32c-lib2.c: Remove unused typedefs.  Rename the
1183         other typedefs to avoid conflicts with libgcc2.c.  Define labels
1184         to gain 16-bit bit-manipulation functions from libgcc2.c and then
1185         include it.
1186         * config/m32c/m32c-lib2-trapv.c: New file.  Define labels
1187         to gain 16-bit trapping arithmetic functions from libgcc2.c and
1188         then include it.
1189
1190 2009-04-01  Rafael Avila de Espindola  <espindola@google.com>
1191
1192        * varasm.c (default_function_rodata_section): Declare DOT as const char*.
1193
1194 2009-04-01  Kai Tietz  <kai.tietz@onevision.com>
1195             Andrey Galkin <agalkin@hypercom.com>
1196
1197         PR/39492
1198         * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
1199         Make object_name unique for each process.
1200
1201 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
1202
1203         PR other/39591
1204         * omp-low.c (remove_exit_barrier): Don't optimize if there are any
1205         addressable variables in the parallel that could go out of scope while
1206         running queued tasks.
1207
1208 2009-04-01  Anatoly Sokolov  <aesok@post.ru>
1209
1210         * config/avr/avr.h (avr_case_values_threshold): Remove declaration.
1211         (CASE_VALUES_THRESHOLD): Redefine.
1212         * config/avr/avr.c (avr_override_options): Remove initialization of
1213         avr_case_values_threshold variable.
1214         (avr_case_values_threshold): Remove variable. Add new function.
1215         * config/avr/avr-protos.h (avr_case_values_threshold): Declare.
1216         * config/avr/avr.opt (mno-tablejump): Remove option.
1217         * doc/invoke.texi (AVR Options): Remove -mno-tablejump.
1218
1219 2009-04-01  DJ Delorie  <dj@redhat.com>
1220
1221         * varasm.c (default_function_rodata_section): Don't assume
1222         anything about where the first '.' in the section name is.
1223
1224 2009-04-01  Alan Modra  <amodra@bigpond.net.au>
1225
1226         * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Delete redundant
1227         rs6000_emit_stack_tie.
1228
1229 2009-03-31  Ian Lance Taylor  <iant@google.com>
1230
1231         * tree-eh.c (tree_remove_unreachable_handlers): Compare
1232         gimple_code with GIMPLE_RESX, not RESX.
1233
1234 2009-03-31  Joseph Myers  <joseph@codesourcery.com>
1235
1236         * c-common.c (c_get_ident): New.
1237         (c_common_nodes_and_builtins): Call it for type names that may be
1238         NULL.
1239
1240 2009-04-01  Ben Elliston  <bje@au.ibm.com>
1241
1242         * config/rs6000/sysv4.opt (msdata): Improve option description.
1243
1244 2009-03-31  Steve Ellcey  <sje@cup.hp.com>
1245
1246         * config/ia64/ia64.md (divsf3_internal_lat): Remove.
1247         (divdf3_internal_lat): Remove.
1248         (divxf3_internal_lat): Remove.
1249         (divxf3_internal_thr): Remove.
1250         (divxf): Use divxf3_internal.
1251         * config/ia64/div.md (divsf3_internal_lat): New.
1252         (divdf3_internal_lat): New.
1253         (divxf3_internal): New.
1254
1255 2009-03-31  Joseph Myers  <joseph@codesourcery.com>
1256
1257         PR c/448
1258         * Makefile.in (USE_GCC_STDINT): Define.
1259         (stmp-int-hdrs): Install stdint.h if applicable.
1260         * c-common.c (CHAR16_TYPE): Define in terms of UINT_LEAST16_TYPE
1261         if known.
1262         (CHAR32_TYPE): Define in terms of UINT_LEAST32_TYPE if known.
1263         (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE, INT32_TYPE, INT64_TYPE,
1264         UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE,
1265         INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
1266         INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
1267         UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
1268         INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
1269         UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
1270         UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
1271         (c_common_nodes_and_builtins): Initialize
1272         underlying_wchar_type_node.  Do not initialize
1273         signed_wchar_type_node or unsigned_wchar_type_node.  Initialize
1274         nodes for new types.
1275         (c_stddef_cpp_builtins): Define macros for new types.
1276         * c-common.h (CTI_SIGNED_WCHAR_TYPE, CTI_UNSIGNED_WCHAR_TYPE):
1277         Remove.
1278         (CTI_UNDERLYING_WCHAR_TYPE, CTI_SIG_ATOMIC_TYPE, CTI_INT8_TYPE,
1279         CTI_INT16_TYPE, CTI_INT32_TYPE, CTI_INT64_TYPE, CTI_UINT8_TYPE,
1280         CTI_UINT16_TYPE, CTI_UINT32_TYPE, CTI_UINT64_TYPE,
1281         CTI_INT_LEAST8_TYPE, CTI_INT_LEAST16_TYPE, CTI_INT_LEAST32_TYPE,
1282         CTI_INT_LEAST64_TYPE, CTI_UINT_LEAST8_TYPE, CTI_UINT_LEAST16_TYPE,
1283         CTI_UINT_LEAST32_TYPE, CTI_UINT_LEAST64_TYPE, CTI_INT_FAST8_TYPE,
1284         CTI_INT_FAST16_TYPE, CTI_INT_FAST32_TYPE, CTI_INT_FAST64_TYPE,
1285         CTI_UINT_FAST8_TYPE, CTI_UINT_FAST16_TYPE, CTI_UINT_FAST32_TYPE,
1286         CTI_UINT_FAST64_TYPE, CTI_INTPTR_TYPE, CTI_UINTPTR_TYPE): Define.
1287         (signed_wchar_type_node, unsigned_wchar_type_node): Remove.
1288         (underlying_wchar_type_node, sig_atomic_type_node, int8_type_node,
1289         int16_type_node, int32_type_node, int64_type_node,
1290         uint8_type_node, uint16_type_node, c_uint32_type_node,
1291         c_uint64_type_node, int_least8_type_node, int_least16_type_node,
1292         int_least32_type_node, int_least64_type_node,
1293         uint_least8_type_node, uint_least16_type_node,
1294         uint_least32_type_node, uint_least64_type_node,
1295         int_fast8_type_node, int_fast16_type_node, int_fast32_type_node,
1296         int_fast64_type_node, uint_fast8_type_node, uint_fast16_type_node,
1297         uint_fast32_type_node, uint_fast64_type_node, intptr_type_node,
1298         uintptr_type_node): Define.
1299         * c-cppbuiltin.c (builtin_define_constants,
1300         builtin_define_type_minmax): New.
1301         (builtin_define_stdint_macros): Define more macros.
1302         (c_cpp_builtins): Define more limit macros.
1303         (type_suffix): New.
1304         (builtin_define_type_max): Define in terms of
1305         builtin_define_type_minmax.  Remove is_long parameter.  All
1306         callers changed.
1307         * config.gcc (use_gcc_stdint): Define.
1308         (tm_file): Add glibc-stdint.h for targets using glibc or uClibc.
1309         Add newlib-stdint.h for generic targets.
1310         * config/glibc-stdint.h, config/newlib-stdint.h,
1311         ginclude/stdint-gcc.h, ginclude/stdint-wrap.h: New.
1312         * config/m32c/m32c.h (UINTPTR_TYPE): Define.
1313         * config/score/score.h (UINTPTR_TYPE): Define.
1314         * config/sol2.h (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE,
1315         INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE,
1316         UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
1317         INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
1318         UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
1319         INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
1320         UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
1321         UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
1322         * config/spu/spu.h (STDINT_LONG32): Define.
1323         * configure.ac (use_gcc_stdint): Substitute.
1324         * configure: Regenerate.
1325         * doc/cpp.texi (__SIG_ATOMIC_TYPE__, __INT8_TYPE__,
1326         __INT16_TYPE__, __INT32_TYPE__, __INT64_TYPE__, __UINT8_TYPE__,
1327         __UINT16_TYPE__, __UINT32_TYPE__, __UINT64_TYPE__,
1328         __INT_LEAST8_TYPE__, __INT_LEAST16_TYPE__, __INT_LEAST32_TYPE__,
1329         __INT_LEAST64_TYPE__, __UINT_LEAST8_TYPE__, __UINT_LEAST16_TYPE__,
1330         __UINT_LEAST32_TYPE_, __UINT_LEAST64_TYPE__, __INT_FAST8_TYPE__,
1331         __INT_FAST16_TYPE__, __INT_FAST32_TYPE__, __INT_FAST64_TYPE__,
1332         __UINT_FAST8_TYPE__, __UINT_FAST16_TYPE__, __UINT_FAST32_TYPE__,
1333         __UINT_FAST64_TYPE__, __INTPTR_TYPE__, __UINTPTR_TYPE__,
1334         __WINT_MAX__, __SIZE_MAX__, __PTRDIFF_MAX__, __UINTMAX_MAX__,
1335         __SIG_ATOMIC_MAX__, __INT8_MAX__, __INT16_MAX__, __INT32_MAX__,
1336         __INT64_MAX__, __UINT8_MAX__, __UINT16_MAX__, __UINT32_MAX__,
1337         __UINT64_MAX__, __INT_LEAST8_MAX__, __INT_LEAST16_MAX__,
1338         __INT_LEAST32_MAX__, __INT_LEAST64_MAX__, __UINT_LEAST8_MAX__,
1339         __UINT_LEAST16_MAX__, __UINT_LEAST32_MAX__, __UINT_LEAST64_MAX__,
1340         __INT_FAST8_MAX__, __INT_FAST16_MAX__, __INT_FAST32_MAX__,
1341         __INT_FAST64_MAX__, __UINT_FAST8_MAX__, __UINT_FAST16_MAX__,
1342         __UINT_FAST32_MAX__, __UINT_FAST64_MAX__, __INTPTR_MAX__,
1343         __UINTPTR_MAX__, __WCHAR_MIN__, __WINT_MIN__, __SIG_ATOMIC_MIN__,
1344         __INT8_C, __INT16_C, __INT32_C, __INT64_C, __UINT8_C, __UINT16_C,
1345         __UINT32_C, __UINT64_C, __INTMAX_C, __UINTMAX_C): Document.
1346         * doc/tm.texi (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE, INT32_TYPE,
1347         INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE,
1348         INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
1349         INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
1350         UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
1351         INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
1352         UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
1353         UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Document.
1354
1355 2009-03-31  Bernd Schmidt  <bernd.schmidt@analog.com>
1356
1357         * loop-iv.c (suitable_set_for_replacement): Renamed from
1358         simplify_using_assignment; changed to return bool and to accept new
1359         args DEST and SRC.  Return true iff we find a source/destination pair
1360         that can be used to make a replacement, and fill SRC and DEST if so.
1361         Remove arg ALTERED.  Don't deal with altered regs here.  All callers
1362         changed.
1363         (simplify_using_initial_values): Deal with altered regs here and track
1364         more precisely the effect they have on the validity of our expression.
1365
1366         * loop-iv.c (simplify_using_condition): A condition of the form
1367         (EQ REG CONST) can be used to simply make a substitution.
1368         (simplify_using_initial_values): Keep track of conditions we have seen
1369         and keep using them to simplify new expressions, while applying the
1370         same substitutions to them as to the expression.
1371
1372         * simplify-rtx.c (simplify_relational_operation_1): Simplify
1373         (LTU (PLUS a C) C) or (LTU (PLUS a C) a) to (GEU a -C); likewise with
1374         GEU/LTU reversed.
1375
1376         * loop-iv.c (determine_max_iter): New arg OLD_NITER.  All callers
1377         changed.  Use this when trying to improve the upper bound.
1378         Generate the comparison by using simplify_gen_relational.
1379
1380         * loop-iv.c (simple_rhs_p): Allow more kinds of expressions.
1381
1382         * loop-iv.c (replace_single_def_regs, replace_in_expr): New static
1383         functions.
1384         (simplify_using_assignment, simplify_using_initial_values): Call 
1385         replace_in_expr to make replacements.  Call replace_single_def_regs
1386         once on the initial version of the expression.
1387
1388 2009-03-31  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
1389
1390         PR target/27237
1391         * doc/invoke.texi (ARM Options): Update documentation for -mthumb.
1392         
1393 2009-03-31  Richard Guenther  <rguenther@suse.de>
1394
1395         PR middle-end/31029
1396         * fold-const.c (fold_binary): Fold X +- Y CMP X to Y CMP 0 for
1397         equality comparisons.  Fold C - X CMP X if C % 2 == 1.
1398
1399 2009-03-31  Richard Guenther  <rguenther@suse.de>
1400
1401         * tree.h (div_if_zero_remainder): Declare.
1402         * fold-const.c (div_if_zero_remainder): Export.
1403         * tree-ssa-forwprop.c
1404         (forward_propagate_addr_into_variable_array_index): Handle
1405         constant array index addition outside of the variable index.
1406
1407 2009-03-31  Joseph Myers  <joseph@codesourcery.com>
1408
1409         PR target/39592
1410         * config/i386/i386.md (*floatunssi<mode>2_1, two unnamed
1411         define_splits, floatunssi<mode>2): Require x87 conversions from
1412         DImode to be permitted.
1413
1414 2009-03-31  Joseph Myers  <joseph@codesourcery.com>
1415
1416         PR preprocessor/15638
1417         * c-common.c (c_cpp_error): Handle CPP_DL_FATAL.
1418
1419 2009-03-31  Richard Guenther  <rguenther@suse.de>
1420
1421         PR middle-end/23401
1422         PR middle-end/27810
1423         * tree.h (DECL_GIMPLE_FORMAL_TEMP_P): Remove.
1424         (struct tree_decl_with_vis): Remove gimple_formal_temp member.
1425         * tree-eh.c (lower_eh_constructs_2): Move LHS assignment to
1426         a separate statement.
1427         * gimplify.c (pop_gimplify_context): Remove formal temp handling.
1428         (lookup_tmp_var): Likewise.
1429         (is_gimple_formal_tmp_or_call_rhs): Remove.
1430         (is_gimple_reg_or_call_rhs): Rename to ...
1431         (is_gimple_reg_rhs_or_call): ... this.
1432         (is_gimple_mem_or_call_rhs): Rename to ...
1433         (is_gimple_mem_rhs_or_call): ... this.
1434         (internal_get_tmp_var): Use is_gimple_reg_rhs_or_call.  Set
1435         DECL_GIMPLE_REG_P only if is_formal is true.
1436         (gimplify_compound_lval): Use is_gimple_reg.  Remove workaround
1437         for non-proper post-modify expression gimplification.
1438         (gimplify_self_mod_expr): For post-modify expressions gimplify
1439         the lvalue to a minimal lvalue.
1440         (rhs_predicate_for): Remove formal temp case.
1441         (gimplify_modify_expr_rhs): Likewise.
1442         (gimplify_addr_expr): Use is_gimple_reg.
1443         (gimplify_expr): Remove formal temp cases.
1444         (gimple_regimplify_operands): Likewise.
1445         * tree-ssa-pre.c (get_or_alloc_expr_for): Treat EXC_PTR_EXPR
1446         and FILTER_EXPR like constants.
1447         * gimple.c (walk_gimple_op): Fix val_only initialization, use
1448         is_gimple_reg.
1449         (is_gimple_formal_tmp_rhs): Remove.
1450         (is_gimple_reg_rhs): Remove special casing.
1451         (is_gimple_mem_rhs): Fix.
1452         (is_gimple_reg): Move DECL_GIMPLE_REG_P handling earlier.
1453         (is_gimple_formal_tmp_var): Remove.
1454         (is_gimple_formal_tmp_reg): Likewise.
1455         (is_gimple_min_lval): Allow invariant component ref parts.
1456         * gimple.h (is_gimple_formal_tmp_rhs, is_gimple_formal_tmp_var,
1457         is_gimple_formal_tmp_reg): Remove declarations.
1458         * tree-cfg.c (verify_expr): Verify that variables with address
1459         taken do not have DECL_GIMPLE_REG_P set.
1460         * tree-mudflap.c (mf_build_check_statement_for): Use
1461         force_gimple_operand instead of gimplify_expr.
1462
1463 2009-03-31  Ayal Zaks  <zaks@il.ibm.com>
1464
1465         * modulo-sched.c (sms_schedule_by_order): Pass the actual
1466         schedulable rows to compute_split_row.
1467
1468 2009-03-31  Ben Elliston  <bje@au.ibm.com>
1469
1470         PR target/31635
1471         * config/rs6000/rs6000.c (rs6000_handle_option): Handle
1472         OPT_mvrsave.
1473
1474 2009-03-31  Alan Modra  <amodra@bigpond.net.au>
1475
1476         * doc/invoke.texi (RS/6000 and PowerPC Options):Document mtls-markers.
1477         * configure.ac (HAVE_AS_TLS_MARKERS): New gas feature check.
1478         * configure: Regenerate.
1479         * config.in: Regenerate.
1480         * config/rs6000/rs6000.opt (mtls-markers): Add.
1481         * config/rs6000/rs6000.h (TARGET_TLS_MARKERS): Define.
1482         * config/rs6000/rs6000.md (tls_gd_aix, tls_gd_sysv): Add splitter.
1483         (tls_ld_aix, tls_ld_sysv): Likewise.
1484         (tls_gd, tls_gd_call_aix, tls_gd_call_sysv): New insns.
1485         (tls_ld, tls_ld_call_aix, tls_ld_call_sysv): Likewise.
1486
1487 2009-03-31  Alan Modra  <amodra@bigpond.net.au>
1488
1489         * config/spu/spu.c (spu_expand_prologue): Delete redundant code.
1490
1491 2009-03-30  Jan Hubicka  <jh@suse.cz>
1492
1493         * tree-eh.c (make_eh_edges): Set probability 100% to first edge
1494         out of RESX.
1495         (tree_remove_unreachable_handlers): Cleanup EH predecestor
1496         detection and label handling.
1497
1498 2009-03-30  Vladimir Makarov  <vmakarov@redhat.com>
1499
1500         * ira-int.h (ira_allocno): Rename left_conflicts_num to
1501         left_conflicts_size.
1502         (ALLOCNO_LEFT_CONFLICTS_NUM): Rename to
1503         ALLOCNO_LEFT_CONFLICTS_SIZE.
1504
1505         * ira-color.c (allocno_spill_priority, push_allocno_to_stack,
1506         remove_allocno_from_bucket_and_push,
1507         allocno_spill_priority_compare, push_allocnos_to_stack,
1508         setup_allocno_available_regs_num): Use ALLOCNO_LEFT_CONFLICTS_SIZE
1509         instead of ALLOCNO_LEFT_CONFLICTS_NUM.
1510         (setup_allocno_left_conflicts_num): Ditto.  Rename to
1511         setup_allocno_left_conflicts_size.
1512         (put_allocno_into_bucket): Use ALLOCNO_LEFT_CONFLICTS_SIZE
1513         instead of ALLOCNO_LEFT_CONFLICTS_NUM and
1514         setup_allocno_left_conflicts_size instead of
1515         setup_allocno_left_conflicts_num.
1516
1517         * ira-build.c (ira_create_allocno): Use
1518         ALLOCNO_LEFT_CONFLICTS_SIZE instead of
1519         ALLOCNO_LEFT_CONFLICTS_NUM.
1520                 
1521 2009-03-30  Vladimir Makarov  <vmakarov@redhat.com>
1522
1523         * reload.c (push_reload, find_dummy_reload): Use df_get_live_out
1524         instead of DF_LR_OUT.
1525
1526         * ira-lives.c (process_bb_node_lives): Ditto.
1527
1528         * ira-color.c (ira_loop_edge_freq): Use df_get_live_{out,in}
1529         instead of DF_LR_{OUT,IN}.
1530
1531         * ira-emit.c (generate_edge_moves, add_ranges_and_copies): Ditto.
1532
1533         * ira-build.c (create_bb_allocnos, create_loop_allocnos): Ditto.
1534
1535 2009-03-30  Jan Hubicka  <jh@suse.cz>
1536
1537         * except.c (label_to_region_map): Fix thinko.
1538
1539 2009-03-30  Steve Ellcey  <sje@cup.hp.com>
1540
1541         PR middle-end/38237
1542         * tree.h (tree_find_value): New declaration.
1543         * tree.c (tree_find_value): New function.
1544         * varasm.c (assemble_external): Avoid duplicate entries on lists.
1545
1546 2009-03-30  Jakub Jelinek  <jakub@redhat.com>
1547
1548         PR debug/39563
1549         * c-decl.c (struct c_binding): Add locus field.
1550         (bind): Add locus argument, set locus field from it.
1551         (pop_scope): For b->nested VAR_DECL or FUNCTION_DECL,
1552         add a DECL_EXTERNAL copy of b->decl to current BLOCK_VARS.
1553         (push_file_scope, pushtag, pushdecl, pushdecl_top_level,
1554         implicitly_declare, undeclared_variable, lookup_label,
1555         declare_label, c_make_fname_decl, c_builtin_function,
1556         c_builtin_function_ext_scope, store_parm_decls_newstyle): Adjust
1557         bind callers.
1558
1559 2008-03-30  H.J. Lu  <hongjiu.lu@intel.com>
1560
1561         PR target/38781
1562         * config/i386/i386.c (classify_argument): Check total size of
1563         structure.
1564
1565 2009-03-30  Martin Jambor  <mjambor@suse.cz>
1566
1567         * ipa-prop.h (jump_func_type): Rename IPA_UNKNOWN, IPA_CONST,
1568         IPA_CONST_MEMBER_PTR, and IPA_PASS_THROUGH to IPA_JF_UNKNOWN,
1569         IPA_JF_CONST, IPA_JF_CONST_MEMBER_PTR, and IPA_JF_PASS_THROUGH
1570         respectively.
1571
1572         * tree-dfa.c (get_ref_base_and_extent): Return -1 maxsize if
1573         seen_variable_array_ref while also traversing a union.
1574
1575         * tree-inline.c (optimize_inline_calls): Do not call
1576         cgraph_node_remove_callees.
1577         * cgraphbuild.c (remove_cgraph_callee_edges): New function.
1578         (pass_remove_cgraph_callee_edges): New variable.
1579         * passes.c (init_optimization_passes): Add
1580         pass_remove_cgraph_callee_edges after early inlining and before all
1581         late intraprocedural passes.
1582
1583         * omp-low.c (expand_omp_taskreg): Always set current_function_decl.
1584
1585 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
1586
1587         * config/sparc/sparc.md (*nand<V64mode>_vis, *nand<V32mode>_vis):
1588         Fix typos in names.
1589
1590 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
1591
1592         * combine.c (simplify_comparison): Use have_insn_for.
1593         * dojump.c (do_jump): Likewise.
1594
1595 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
1596
1597         * config/sparc/sparc.c (sparc_compare_emitted): Remove.
1598         (gen_compare_reg, emit_v9_brxx_insn): Handle MODE_CC
1599         sparc_compare_op0 like sparc_compare_emitted used to be handled.
1600         (sparc_expand_compare_and_swap_12): Set sparc_compare_op0
1601         instead of sparc_compare_emitted.
1602         * config/sparc/sparc.h (sparc_compare_emitted): Remove.
1603         * config/sparc/sparc.md (stack_protect_test): Set sparc_compare_op0
1604         instead of sparc_compare_emitted.
1605
1606 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
1607
1608         * bb-reorder.c (partition_hot_cold_basic_blocks): Do not
1609         enter/exit cfglayout mode.
1610         (pass_partition_block): Require it.
1611         * combine.c (find_single_use, reg_dead_at_p): Use CFG.
1612         (combine_instructions): Track basic blocks instead of labels.
1613         (update_cfg_for_uncondjump): New.
1614         (try_combine): Use it.  Update jumps after rescanning.
1615         (pass_combine): Require PROP_cfglayout.
1616         * passes.c (pass_outof_cfg_layout_mode): Move after regmove.
1617
1618 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
1619
1620         * cfglayout.c (pass_into_cfg_layout_mode, pass_outof_cfg_layout_mode):
1621         Provide/destroy PROP_cfglayout respectively.
1622         * gcse.c (pass_jump_bypass, pass_gcse): Require it.
1623         * tree-pass.h (PROP_cfglayout): New.
1624
1625 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
1626
1627         * fold-const.c (const_binop, fold_convert_const_real_from_fixed,
1628         fold_convert_const_fixed_from_fixed,
1629         fold_convert_const_fixed_from_int,
1630         fold_convert_const_fixed_from_real, fold_negate_const): Do not
1631         set TREE_CONSTANT_OVERFLOW.
1632         * tree.def: Remove mention of TREE_CONSTANT_OVERFLOW.
1633         * tree.h (TREE_CONSTANT_OVERFLOW): Delete.
1634
1635 2009-03-30  Ira Rosen  <irar@il.ibm.com>
1636
1637         * tree-vect-loop-manip.c: New file.
1638         * tree-vectorizer.c: Update documentation and included files.
1639         (vect_loop_location): Make extern.
1640         (rename_use_op): Move to tree-vect-loop-manip.c
1641         (rename_variables_in_bb, rename_variables_in_loop, 
1642         slpeel_update_phis_for_duplicate_loop, 
1643         slpeel_update_phi_nodes_for_guard1,
1644         slpeel_update_phi_nodes_for_guard2, slpeel_make_loop_iterate_ntimes,
1645         slpeel_tree_duplicate_loop_to_edge_cfg, slpeel_add_loop_guard,
1646         slpeel_can_duplicate_loop_p, slpeel_verify_cfg_after_peeling,
1647         set_prologue_iterations, slpeel_tree_peel_loop_to_edge, 
1648         find_loop_location): Likewise.
1649         (new_stmt_vec_info): Move to tree-vect-stmts.c.
1650         (init_stmt_vec_info_vec, free_stmt_vec_info_vec, free_stmt_vec_info,
1651         get_vectype_for_scalar_type, vect_is_simple_use,
1652         supportable_widening_operation, supportable_narrowing_operation):
1653         Likewise.
1654         (bb_in_loop_p): Move to tree-vect-loop.c.
1655         (new_loop_vec_info, destroy_loop_vec_info, 
1656         reduction_code_for_scalar_code, report_vect_op, 
1657         vect_is_simple_reduction, vect_is_simple_iv_evolution): Likewise.
1658         (vect_can_force_dr_alignment_p): Move to tree-vect-data-refs.c.
1659         (vect_supportable_dr_alignment): Likewise.
1660         * tree-vectorizer.h (tree-data-ref.h): Include.
1661         (vect_loop_location): Declare.
1662         Reorganize function declarations according to the new file structure.
1663         * tree-vect-loop.c: New file.
1664         * tree-vect-analyze.c: Remove. Move functions to tree-vect-data-refs.c, 
1665         tree-vect-stmts.c, tree-vect-slp.c, tree-vect-loop.c.
1666         * tree-vect-data-refs.c: New file.
1667         * tree-vect-patterns.c (timevar.h): Don't include.
1668         * tree-vect-stmts.c: New file.
1669         * tree-vect-transform.c: Remove. Move functions to tree-vect-stmts.c, 
1670         tree-vect-slp.c, tree-vect-loop.c.
1671         * Makefile.in (OBJS-common): Remove tree-vect-analyze.o and 
1672         tree-vect-transform.o. Add tree-vect-data-refs.o, tree-vect-stmts.o, 
1673         tree-vect-loop.o, tree-vect-loop-manip.o, tree-vect-slp.o.
1674         (tree-vect-analyze.o): Remove.
1675         (tree-vect-transform.o): Likewise.
1676         (tree-vect-data-refs.o): Add rule.
1677         (tree-vect-stmts.o, tree-vect-loop.o, tree-vect-loop-manip.o, 
1678         tree-vect-slp.o): Likewise.
1679         (tree-vect-patterns.o): Remove redundant dependencies.
1680         (tree-vectorizer.o): Likewise.
1681         * tree-vect-slp.c: New file.
1682
1683 2009-03-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1684
1685         * optc-gen.awk: Warn if an option flag has multiple different
1686         help strings.
1687
1688 2009-03-30  Sebastian Pop  <sebastian.pop@amd.com>
1689
1690         * doc/invoke.texi (-floop-interchange, -floop-strip-mine,
1691         -floop-block): Document dependences on PPL, CLooG and Graphite.
1692
1693 2009-03-30  Joseph Myers  <joseph@codesourcery.com>
1694
1695         PR rtl-optimization/323
1696         * c-common.c (c_fully_fold, convert_and_check,
1697         c_common_truthvalue_conversion): Handle EXCESS_PRECISION_EXPR.
1698         (c_fully_fold_internal): Disallow EXCESS_PRECISION_EXPR.
1699         * c-common.def (EXCESS_PRECISION_EXPR): New.
1700         * c-cppbuiltin.c (builtin_define_float_constants): Define
1701         constants with enough digits for long double.
1702         * c-lex.c (interpret_float): Interpret constant with excess
1703         precision where appropriate.
1704         * c-opts.c (c_common_post_options): Set
1705         flag_excess_precision_cmdline.  Give an error for
1706         -fexcess-precision=standard for C++ for processors where the
1707         option is significant.
1708         * c-parser.c (c_parser_conditional_expression): Handle excess
1709         precision in condition.
1710         * c-typeck.c (convert_arguments): Handle arguments with excess
1711         precision.
1712         (build_unary_op): Move excess precision outside operation.
1713         (build_conditional_expr): Likewise.
1714         (build_compound_expr): Likewise.
1715         (build_c_cast): Do cast on operand of EXCESS_PRECISION_EXPR.
1716         (build_modify_expr): Handle excess precision in RHS.
1717         (convert_for_assignment): Handle excess precision in converted
1718         value.
1719         (digest_init, output_init_element, process_init_element): Handle
1720         excess precision in initializer.
1721         (c_finish_return): Handle excess precision in return value.
1722         (build_binary_op): Handle excess precision in operands and add
1723         excess precision as needed for operation.
1724         * common.opt (-fexcess-precision=): New option.
1725         * config/i386/i386.h (X87_ENABLE_ARITH, X87_ENABLE_FLOAT): New.
1726         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
1727         For standard excess precision, output explicit conversion to and
1728         truncation from XFmode.
1729         (*float<SSEMODEI24:mode><X87MODEF:mode>2_1,
1730         *float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp,
1731         *float<SSEMODEI24:mode><X87MODEF:mode>2_i387, two unnamed
1732         define_splits, floatdi<X87MODEF:mode>2_i387_with_xmm, two unnamed
1733         define_splits, *floatunssi<mode>2_1, two unnamed define_splits,
1734         floatunssi<mode>2, add<mode>3, sub<mode>3, mul<mode>3, divdf3,
1735         divsf3, *fop_<mode>_comm_i387, *fop_<mode>_1_i387,
1736         *fop_<MODEF:mode>_2_i387, *fop_<MODEF:mode>_3_i387,
1737         *fop_df_4_i387, *fop_df_5_i387, *fop_df_6_i387, two unnamed
1738         define_splits, sqrt<mode>2): Disable where appropriate for
1739         standard excess precision.
1740         * convert.c (convert_to_real): Do not shorten arithmetic to type
1741         for which excess precision would be used.
1742         * defaults.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Define.
1743         * doc/invoke.texi (-fexcess-precision=): Document option.
1744         (-mfpmath=): Correct index entry.
1745         * flags.h (enum excess_precision, flag_excess_precision_cmdline,
1746         flag_excess_precision): New.
1747         * langhooks.c (lhd_post_options): Set
1748         flag_excess_precision_cmdline.
1749         * opts.c (common_handle_option): Handle -fexcess-precision=.
1750         * toplev.c (flag_excess_precision_cmdline, flag_excess_precision,
1751         init_excess_precision): New.
1752         (lang_dependent_init_target): Call init_excess_precision.
1753         * tree.c (excess_precision_type): New.
1754         * tree.h (excess_precision_type): Declare.
1755
1756 2009-03-30  Joseph Myers  <joseph@codesourcery.com>
1757
1758         PR c/35235
1759         * c-typeck.c (build_component_ref): Do not copy qualifiers from
1760         non-lvalue to component.
1761
1762 2009-03-29  Joseph Myers  <joseph@codesourcery.com>
1763
1764         PR preprocessor/34695
1765         * Makefile.in (c-opts.o): Depend on c-tree.h.
1766         * c-common.c: Move down include of diagnostic.h.
1767         (done_lexing, c_cpp_error): New.
1768         * c-common.h (done_lexing): Declare.
1769         * c-decl.c (c_write_global_declarations): Don't check cpp_errors
1770         (parse_in).
1771         * c-opts.c: Include c-tree.h.
1772         (c_common_init_options): Set preprocessor error callback.
1773         (c_common_handle_option): Do not set preprocessor
1774         inhibit_warnings, warnings_are_errors, warn_system_headers,
1775         pedantic_errors or inhibit_warnings flags.
1776         (c_common_post_options): Do not check cpp_errors (parse_in).
1777         (c_common_finish): Do not output dependencies if there were
1778         errors.  Do not check return value of cpp_finish.
1779         * c-ppoutput.c (pp_file_change): Set input_location.
1780         * c-tree.h (c_cpp_error): Declare.
1781         * diagnostic.c (diagnostic_set_info_translated): Also initialize
1782         override_column.
1783         (diagnostic_build_prefix): Check override_column.
1784         * diagnostic.h (diagnostic_info): Add override_column field.
1785         (diagnostic_override_column): Define.
1786
1787 2009-03-28  Paolo Bonzini  <bonzini@gnu.org>
1788
1789         * c-common.c (c_expand_expr, c_staticp): Remove.
1790         * c-common.def (COMPOUND_LITERAL_EXPR): Delete.
1791         * c-common.h (emit_local_var, c_staticp, COMPOUND_LITERAL_EXPR_DECL,
1792         COMPOUND_LITERAL_EXPR_DECL_EXPR): Remove.
1793         * c-gimplify.c (gimplify_compound_literal_expr,
1794         optimize_compound_literals_in_ctor): Remove.
1795         (c_gimplify_expr): Remove COMPOUND_LITERAL_EXPR handling.
1796         * c-objc-common.h (LANG_HOOKS_STATICP): Remove.
1797         * c-semantics.c (emit_local_var): Remove.
1798
1799         * langhooks-def.h (lhd_expand_expr): Remove.
1800         * langhooks.c (lhd_expand_expr): Remove.
1801         * langhooks.h (LANG_HOOKS_DEF): Remove LANG_HOOKS_EXPAND_EXPR.
1802
1803         * expr.c (expand_expr_real_1): Move COMPOUND_LITERAL_EXPR
1804         handling from c-semantics.c; don't call into langhook.
1805         (expand_expr_addr_expr_1): Check that we don't get non-GENERIC trees.
1806         * gimplify.c (gimplify_compound_literal_expr,
1807         optimize_compound_literals_in_ctor): Move from c-gimplify.c.
1808         (gimplify_init_constructor): Call optimize_compound_literals_in_ctor.
1809         (gimplify_modify_expr_rhs, gimplify_expr): Handle COMPOUND_LITERAL_EXPR
1810         as was done in c-gimplify.c.
1811         * tree.c (staticp): Move COMPOUND_LITERAL_EXPR handling from c_staticp.
1812         * tree.h (COMPOUND_LITERAL_EXPR_DECL, COMPOUND_LITERAL_EXPR_DECL_EXPR):
1813         Move from c-common.h.
1814         * tree.def (COMPOUND_LITERAL_EXPR): Move from c-common.def.
1815
1816         * tree.c (staticp): Do not call langhook.
1817         * langhooks.c (lhd_staticp): Delete.
1818         * langhooks-def.h (lhd_staticp): Delete prototype.
1819         (LANG_HOOKS_STATICP): Delete.
1820         (LANG_HOOKS_INITIALIZER): Delete LANG_HOOKS_STATICP.
1821
1822         * doc/c-tree.texi (Expression nodes): Refer to DECL_EXPRs
1823         instead of DECL_STMTs.
1824
1825 2009-03-29  Joseph Myers  <joseph@codesourcery.com>
1826
1827         PR c/456
1828         PR c/5675
1829         PR c/19976
1830         PR c/29116
1831         PR c/31871
1832         PR c/35198
1833         * builtins.c (fold_builtin_sincos): Build COMPOUND_EXPR in
1834         void_type_node.
1835         (fold_call_expr): Return a NOP_EXPR from folding rather than the
1836         contained expression.
1837         * c-common.c (c_fully_fold, c_fully_fold_internal, c_save_expr): New.
1838         (c_common_truthvalue_conversion): Use c_save_expr.  Do not fold
1839         conditional expressions for C.
1840         (decl_constant_value_for_optimization): Move from
1841         decl_constant_value_for_broken_optimization in c-typeck.c.  Check
1842         whether optimizing and that the expression is a VAR_DECL not of
1843         array type instead of doing such checks in the caller.  Do not
1844         check pedantic.  Call gcc_unreachable for C++.
1845         * c-common.def (C_MAYBE_CONST_EXPR): New.
1846         * c-common.h (c_fully_fold, c_save_expr,
1847         decl_constant_value_for_optimization): New prototypes.
1848         (C_MAYBE_CONST_EXPR_PRE, C_MAYBE_CONST_EXPR_EXPR,
1849         C_MAYBE_CONST_EXPR_INT_OPERANDS, C_MAYBE_CONST_EXPR_NON_CONST,
1850         EXPR_INT_CONST_OPERANDS): Define.
1851         * c-convert.c (convert): Strip nops from expression.
1852         * c-decl.c (groktypename): Take extra parameters expr and
1853         expr_const_operands.  Update call to grokdeclarator.
1854         (start_decl): Update call to grokdeclarator.  Add statement for
1855         expressions used in type of decl.
1856         (grokparm): Update call to grokdeclarator.
1857         (push_parm_decl): Update call to grokdeclarator.
1858         (build_compound_literal): Add parameter non_const and build a
1859         C_MAYBE_COSNT_EXPR if applicable.
1860         (grokdeclarator): Take extra parameters expr and
1861         expr_const_operands.  Track expressions used in declaration
1862         specifiers and declarators.  Fold array sizes and track whether
1863         they are constant expressions and whether they are integer
1864         constant expressions.
1865         (parser_xref_tag): Set expr and expr_const_operands fields in
1866         return value.
1867         (grokfield): Update call to grokdeclarator.
1868         (start_function): Update call to grokdeclarator.
1869         (build_null_declspecs): Set expr and expr_const_operands fields in
1870         return value.
1871         (declspecs_add_type): Handle expressions in typeof specifiers.
1872         * c-parser.c (c_parser_declspecs): Set expr and
1873         expr_const_operands fields for declaration specifiers.
1874         (c_parser_enum_specifier): Likewise.
1875         (c_parser_struct_or_union_specifier): Likewise.
1876         (c_parser_typeof_specifier): Likewise.  Update call to
1877         groktypename.  Fold expression as needed.  Return expressions with
1878         type instead of adding statements.
1879         (c_parser_attributes): Update calls to c_parser_expr_list.
1880         (c_parser_statement_after_labels): Fold expression before passing
1881         to objc_build_throw_stmt.
1882         (c_parser_condition): Fold expression.
1883         (c_parser_asm_operands): Fold expression.
1884         (c_parser_conditional_expression): Use c_save_expr.  Update call
1885         to build_conditional_expr.
1886         (c_parser_alignof_expression): Update call to groktypename.
1887         (c_parser_postfix_expression): Preserve C_MAYBE_CONST_EXPR as
1888         original_code.  Fold expression argument of va_arg.  Create
1889         C_MAYBE_CONST_EXPR to preserve side effects of expressions in type
1890         argument to va_arg.  Update calls to groktypename.  Fold array
1891         index for offsetof.  Verify that first argument to
1892         __builtin_choose_expr has integer type.
1893         (c_parser_postfix_expression_after_paren_type): Update calls to
1894         groktypename and build_compound_literal.  Handle expressions with
1895         side effects in type name.
1896         (c_parser_postfix_expression_after_primary): Update call to
1897         c_parser_expr_list.  Set original_code for calls to
1898         __builtin_constant_p.
1899         (c_parser_expr_list): Take extra parameter fold_p.  Fold
1900         expressions if requested.
1901         (c_parser_objc_type_name): Update call to groktypename.
1902         (c_parser_objc_synchronized_statement): Fold expression.
1903         (c_parser_objc_receiver): Fold expression.
1904         (c_parser_objc_keywordexpr): Update call to c_parser_expr_list.
1905         (c_parser_omp_clause_num_threads, c_parser_omp_clause_schedule,
1906         c_parser_omp_atomic, c_parser_omp_for_loop): Fold expressions.
1907         * c-tree.h (CONSTRUCTOR_NON_CONST): Define.
1908         (struct c_typespec): Add elements expr and expr_const_operands.
1909         (struct c_declspecs): Add elements expr and expr_const_operands.
1910         (groktypename, build_conditional_expr, build_compound_literal):
1911         Update prototypes.
1912         (in_late_binary_op): Declare.
1913         * c-typeck.c (note_integer_operands): New function.
1914         (in_late_binary_op): New variable.
1915         (decl_constant_value_for_broken_optimization): Move to c-common.c
1916         and rename to decl_constant_value_for_optimization.
1917         (default_function_array_conversion): Do not strip nops.
1918         (default_conversion): Do not call
1919         decl_constant_value_for_broken_optimization.
1920         (build_array_ref): Do not fold result.
1921         (c_expr_sizeof_expr): Fold operand.  Use C_MAYBE_CONST_EXPR for
1922         result when operand is a VLA.
1923         (c_expr_sizeof_type): Update call to groktypename.  Handle
1924         expressions included in type name.  Use C_MAYBE_CONST_EXPR for
1925         result when operand names a VLA type.
1926         (build_function_call): Update call to build_compound_literal.
1927         Only fold result for calls to __builtin_* functions.  Strip
1928         NOP_EXPR from INTEGER_CST returned from such functions.  Fold
1929         the function designator.
1930         (convert_arguments): Fold arguments.  Update call to
1931         convert_for_assignment.
1932         (build_unary_op): Handle increment and decrement of
1933         C_MAYBE_CONST_EXPR.  Move lvalue checks for increment and
1934         decrement earlier.  Fold operand of increment and decrement.
1935         Handle address of C_MAYBE_CONST_EXPR.  Only fold expression being
1936         built for integer operand.  Wrap returns that are INTEGER_CSTs
1937         without being integer constant expressions or that have integer
1938         constant operands without being INTEGER_CSTs.
1939         (lvalue_p): Handle C_MAYBE_CONST_EXPR.
1940         (build_conditional_expr): Add operand ifexp_bcp.  Track whether
1941         result is an integer constant expression or can be used in
1942         unevaluated parts of one and avoid folding and wrap as
1943         appropriate.  Fold operands before possibly doing -Wsign-compare
1944         warnings.
1945         (build_compound_expr): Wrap result for C99 if operands can be used
1946         in integer constant expressions.
1947         (build_c_cast): Update call to digest_init.  Do not ignore
1948         overflow from casting floating-point constants to integers.  Wrap
1949         results that could be confused with integer constant expressions,
1950         null pointer constants or floating-point constants.
1951         (c_cast_expr): Update call to groktypename.  Handle expressions
1952         included in type name.
1953         (build_modify_expr): Handle modifying a C_MAYBE_CONST_EXPR.  Fold
1954         lhs inside possible SAVE_EXPR.  Fold RHS before assignment.
1955         Update calls to convert_for_assignment.
1956         (convert_for_assignment): Take new parameter
1957         null_pointer_constant.  Do not strip nops or call
1958         decl_constant_value_for_broken_optimization.  Set
1959         in_late_binary_op for conversions to boolean.
1960         (store_init_value): Update call to digest_init.
1961         (digest_init): Take new parameter null_pointer_constant.  Do not
1962         call decl_constant_value_for_broken_optimization.  pedwarn for
1963         initializers not constant expressions.  Update calls to
1964         convert_for_assignment.
1965         (constructor_nonconst): New.
1966         (struct constructor_stack): Add nonconst element.
1967         (really_start_incremental_init, push_init_level, pop_init_level):
1968         Handle constructor_nonconst and nonconst element.
1969         (set_init_index): Call constant_expression_warning for array
1970         designators.
1971         (output_init_element): Fold value.  Set constructor_nonconst as
1972         applicable.  pedwarn for initializers not constant expressions.
1973         Update call to digest_init.  Call constant_expression_warning
1974         where constant initializers are required.
1975         (process_init_element): Use c_save_expr.
1976         (c_finish_goto_ptr): Fold expression.
1977         (c_finish_return): Fold return value.  Update call to
1978         convert_for_assignment.
1979         (c_start_case): Fold switch expression.
1980         (c_process_expr_stmt): Fold expression.
1981         (c_finish_stmt_expr): Create C_MAYBE_CONST_EXPR as needed to
1982         ensure statement expression is not evaluated in constant expression.
1983         (build_binary_op): Track whether results are integer constant
1984         expressions or may occur in such, disable folding and wrap results
1985         as applicable.  Fold operands for -Wsign-compare warnings unless
1986         in_late_binary_op.
1987         (c_objc_common_truthvalue_conversion): Handle results folded to
1988         integer constants that are not integer constant expressions.
1989         * doc/extend.texi: Document when typeof operands are evaluated,
1990         that condition of __builtin_choose_expr is an integer constant
1991         expression, and more about use of __builtin_constant_p in
1992         initializers.
1993
1994 2009-03-29  Richard Guenther  <rguenther@suse.de>
1995
1996         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Properly
1997         propagate addresses of array references.
1998
1999 2009-03-29  Steven Bosscher  <steven@gcc.gnu.org>
2000
2001         * regmove.c (perhaps_ends_bb_p): Remove.
2002         (optimize_reg_copy_1): Don't call perhaps_ends_bb_p.  Get basic block
2003         from INSN and check that the main loop stays within that basic block.
2004         (optimize_reg_copy_1, optimize_reg_copy_3, fixup_match_2): Likewise.
2005         (regmove_forward_pass): Split out from regmove_optimize.  Use
2006         FOR_EACH_BB and FOR_BB_INSNS instead of traversing the insns stream.
2007         (regmove_backward_pass): Split out from regmove_optimize.  Use
2008         FOR_EACH_BB_REVERSE and FOR_BB_INSNS_REVERS_SAFE.
2009         (regmove_optimize): Simplify.
2010
2011 2009-03-29  H.J. Lu  <hongjiu.lu@intel.com>
2012
2013         PR target/39545
2014         * config/i386/i386.c (classify_argument): Ignore flexible array
2015         member in struct and warn ABI change.
2016
2017 2009-03-29  H.J. Lu  <hongjiu.lu@intel.com>
2018
2019         * config/i386/i386-protos.h (ix86_agi_dependent): New.
2020
2021         * config/i386/i386.c (ix86_agi_dependent): Rewrite.
2022         (ix86_adjust_cost): Updated.
2023
2024 2009-03-29  Jan Hubicka  <jh@suse.cz>
2025
2026         PR middle-end/28850
2027         * tree-pass.h (pass_cleanup_eh): New function.
2028         (remove_unreachable_regions): Break code handling RTL
2029         to rtl_remove_unreachable_regions; remove ERT_MUST_NOT_THROW
2030         that can not be reached by runtime.
2031         (can_be_reached_by_runtime): New function.
2032         (label_to_region_map): New function.
2033         (num_eh_regions): New function.
2034         (rtl_remove_unreachable_regions): New function.
2035         (convert_from_eh_region_ranges): Call rtl_remove_unreachable_regions.
2036         (remove_eh_region): New function.
2037         * except.h: Include sbitmap and vecprim.
2038         (remove_eh_region, remove_unreachable_regions, label_to_region_map,
2039         num_eh_regions): Declare.
2040         * passes.c (init_optimization_passes): Schedule cleanup_eh.
2041         * Makefile.in (EXCEPT_H): New; replace all uses of except.h by it.
2042         * tree-eh.c (tree_remove_unreachable_handlers): New function.
2043         (tree_empty_eh_handler_p): New function.
2044         (cleanup_empty_eh): New function.
2045         (cleanup_eh): New function.
2046         (pass_cleanup_eh): New function.
2047
2048 2009-03-29  Jan Hubicka  <jh@suse.cz>
2049
2050         * except.c (verify_eh_tree): Fix handling of fun!=cfun; be ready
2051         for removed regions.
2052
2053 2009-03-29  Jan Hubicka  <jh@suse.cz>
2054
2055         * except.c (dump_eh_tree): Dump all datastructures.
2056
2057 2009-03-29  Jan Hubicka  <jh@suse.cz>
2058
2059         * except.c (duplicate_eh_regions_0): Handle AKA bitmap.
2060         (duplicate_eh_regions_1): Likewise.
2061         (duplicate_eh_regions): Likewise; cleanup code gorwing the region
2062         vector; call EH verification.
2063         (foreach_reachable_handler, can_throw_internal_1, can_throw_external_1):
2064         Be ready for region being removed.
2065
2066 2009-03-29  Jan Hubicka  <jh@suse.cz>
2067
2068         * bitmap.c (bitmap_last_set_bit): New function.
2069         * bitmap.h (bitmap_last_set_bit): Declare.
2070
2071 2009-03-29  David Ayers  <ayers@fsfe.org>
2072
2073         PR objc/27377
2074         * c-typeck.c (build_conditional_expr): Emit ObjC warnings
2075         by calling objc_compare_types and surpress warnings about
2076         incompatible C pointers that are compatible ObjC pointers.
2077         
2078 2009-03-29  Adam Nemet  <anemet@caviumnetworks.com>
2079
2080         * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Don't
2081         call initialize_inline_failed.
2082         (initialize_inline_failed): Move it from here ...
2083         * cgraph.c (initialize_inline_failed): ... to here.
2084         (cgraph_create_edge): Call initialize_inline_failed rather than
2085         setting inline_failed directly.
2086
2087 2009-03-29  Ben Elliston  <bje@au.ibm.com>
2088
2089         PR target/32542
2090         * sysv4.opt (msdata): Improve comment.
2091         * linux64.h (ASM_SPEC32): Do not pass -memb when -msdata is given.
2092         * sysv4.h (SVR4_ASM_SPEC): Likewise.
2093
2094 2009-03-29  Ben Elliston  <bje@au.ibm.com>
2095
2096         PR target/30451
2097         * config/rs6000/rs6000.md (*movti_ppc64): Correct the order of
2098         load and store attributes.
2099
2100 2009-03-29  Ben Elliston  <bje@au.ibm.com>
2101
2102         * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_HUGE_VALQ.
2103         (ix86_init_builtins): Add built-in function __builtin_huge_valq.
2104         (ix86_expand_builtin): Handle IX86_BUILTIN_HUGE_VALQ.
2105         * doc/extend.texi (X86 Built-in Functions): Add index entries for
2106         __builtin_infq and __builtin_huge_valq.
2107
2108 2009-03-28  Anatoly Sokolov  <aesok@post.ru>
2109
2110         * config/avr/avr.c (avr_mcu_t): Add atmega8c1, atmega16c1 and
2111         atmega8m1 devices.
2112         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
2113         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.)
2114
2115 2009-03-28  Xinliang David Li  <davidxl@google.com>
2116
2117         * tree-ssa-ccp.c (ccp_finalize): Add dbg_count support. 
2118         (do_dbg_cnt): New function.
2119
2120 2009-03-28  Jan Hubicka  <jh@suse.cz>
2121
2122         Merge from pretty-ipa:
2123
2124         2009-03-27  Jan Hubicka  <jh@suse.cz>
2125
2126         * cgraph.c (dump_cgraph_node): Add replace output flag by process.
2127         * tree-pass.h (function_called_by_processed_nodes_p): Declare.
2128         * passes.c (function_called_by_processed_nodes_p): New.
2129         * ipa-pure-const.c (check_call): Fix handling of operands.
2130         (analyze_function): Dump debug output for skipped bodies.
2131         (local_pure_const): Use function_called_by_processed_nodes_p.
2132         * dwarf2out.c (reference_to_unused): Use output.
2133         * passes.c (do_per_function_toporder): Likewise.
2134
2135         2008-11-12  Jan Hubicka  <jh@suse.cz>
2136
2137         * tree-pass.h (pass_fixup_cfg, pass_local_pure_const): Declare.
2138         * ipa-pure-const.c (funct_state_d): Add can throw field; make
2139         state_set_in_source enum
2140         (check_decl): Ignore memory tags; do not set fake looping flags;
2141         dump diagnostics.
2142         (check_operand, check_tree, check_rhs_var, check_lhs_var,
2143         get_asm_expr_operands, scan_function_op, scan_function_stmt): Remove.
2144         (check_call, analyze_function): Rewrite.
2145         (check_stmt): New.
2146         (add_new_function): Update call of analyze_function.
2147         (generate_summary): Add call of analyze_function.
2148         (propagate): Propagate can_throw; handle state_set_in_source correctly.
2149         (local_pure_const): New function.
2150         (pass_local_pure_const): New pass.
2151         * ipa-inline.c (inline_transform): Set after_inlining.
2152         * tree-eh.c (stmt_can_throw_external): New.
2153         * tree-optimize.c (execute_fixup_cfg): Do not set after_inlining;
2154         work with aliasing built.
2155         * tree-flow.h (stmt_can_throw_external): New.
2156         * passes.c (init_optimization_passes): Schedule fixup_cfg pass early;
2157         and local pure/const pass in early and late optimization queue.
2158
2159 2009-03-28  Martin Jambor  <mjambor@suse.cz>
2160
2161         * fold-const.c (get_pointer_modulus_and_residue): New parameter
2162         allow_func_align.
2163         (fold_binary): Allow function decl aligment consideration is the
2164         second argument is integer constant one.
2165         * tree-ssa-forwprop.c (simplify_bitwise_and): New function.
2166         (tree_ssa_forward_propagate_single_use_vars): Handle assing statements
2167         with BIT_AND_EXPR on the RHS by calling simplify_bitwise_and.
2168
2169 2009-03-28  Jan Hubicka  <jh@suse.cz>
2170
2171         * dwarf2out.c (dwarf2out_begin_prologue): Use crtl->nothrow
2172         * tree-eh.c (stmt_could_throw_p): Remove check for WEAK decls.
2173         * function.h (rtl_data): Add nothrow flag.
2174         * except.c (set_nothrow_function_flags): Use crtl->nothrow;
2175         set DECL_NOTHROW for AVAILABLE functions.
2176
2177 2009-03-28  Jakub Jelinek  <jakub@redhat.com>
2178
2179         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If macro
2180         following vector keyword has expansion starting with pixel or bool
2181         keyword, expand vector to __vector and pixel or bool to __pixel or
2182         __bool.
2183
2184         PR c++/39554
2185         * opts.c (warning_disallowed_functions, warn_disallowed_functions,
2186         warn_if_disallowed_function_p): Removed.
2187         (common_handle_option): Don't handle OPT_Wdisallowed_function_list_.
2188         * c-parser.c (c_parser_postfix_expression_after_primary): Don't call
2189         warning_if_disallowed_function_p.
2190         * flags.h (warn_if_disallowed_function_p,
2191         warn_disallowed_functions): Removed.
2192         * common.opt (Wdisallowed-function-list=): Removed.
2193         * doc/invoke.texi (-Wdisallowed-function-list=): Removed.
2194
2195 2009-03-28  Richard Guenther  <rguenther@suse.de>
2196
2197         PR tree-optimization/38723
2198         * tree-ssa-pre.c (compute_avail): Add all default definitions to
2199         the entry block.
2200
2201 2009-03-28  Jan Hubicka  <jh@suse.cz>
2202
2203         * tree-ssa-structalias.c (ipa_pta_execute): Fix bogus node->analyzed
2204         test introduced by my previous patch.
2205
2206 2009-03-28  Richard Guenther  <rguenther@suse.de>
2207
2208         * tree-ssa-copy.c (copy_prop_visit_phi_node): Do not leave
2209         the PHIs value undefined.
2210
2211 2009-03-28  Jan Hubicka  <jh@suse.cz>
2212
2213         * tree-pass.h (pass_fixup_cfg): New pass.
2214         * ipa-inline.c (inline_transform): Set
2215         always_inline_functions_inlined/after_inlining.
2216         * tree-optimize.c (execute_fixup_cfg): Do not set them here.
2217         (pass_fixup_cfg): New pass.
2218         * passes.c (init_optimization_passes): Add fixup_cfg.
2219
2220 2009-03-28  Richard Guenther  <rguenther@suse.de>
2221
2222         PR tree-optimization/38458
2223         * tree-ssa-copy.c (copy_prop_visit_phi_node): For the first
2224         argument use the arguments copy-of value.
2225
2226 2009-03-28  Richard Guenther  <rguenther@suse.de>
2227
2228         PR tree-optimization/38180
2229         * tree-ssa-ccp.c (get_default_value): Simplify.
2230         (likely_value): Likewise.
2231         (surely_varying_stmt_p): Properly handle VOP case.
2232         (ccp_initialize): Likewise.
2233         (ccp_fold): Handle propagating through *&.
2234         (fold_const_aggregate_ref): Also handle decls.
2235
2236 2009-03-28  Jan Hubicka  <jh@suse.cz>
2237
2238         * cgraph.c (dump_cgraph_node): Add replace output flag by process.
2239         * cgraph.h (cgraph_node): Likewise.
2240         * cgraphunit.c (cgraph_process_new_functions): Set process flag.
2241         (cgraph_reset_node): Use process flag.
2242         (cgraph_mark_functions_to_output): Likewise.
2243         (cgraph_expand_function): Likewise.
2244         (cgraph_expand_all_functions): Likewise.
2245         (cgraph_output_in_order): Likewise.
2246         * dwarf2out.c (reference_to_unused): Likewise.
2247         * passes.c do_per_function_toporder): Likewise.
2248
2249 2009-03-28  Jan Hubicka  <jh@suse.cz>
2250
2251         Bring from lto-branch:
2252
2253         2008-09-03  Doug Kwan  <dougkwan@google.com>
2254
2255         * cgraphbuild.c (initialize_inline_failed): Use cgraph_inline_failed_t
2256         enums instead of reason strings.
2257         * cgraph.c (cgraph_create_edge): Same.
2258         (cgraph_inline_failed_string): New function.
2259         * cgraph.h (cgraph_inline_failed_t): New enum type.
2260         (cgraph_inline_failed_string): New prototype.
2261         (struct cgraph_edge): Change type of INLINED_FAILED from constant
2262         char pointer to cgraph_inline_failed_t.
2263         (cgraph_inline_p): Adjust prototype to use cgraph_inline_failed_t.
2264         (cgraph_default_inline_p): Ditto.
2265         * gcc/cgraphunit.c (cgraph_inline_p): Change type of parameter REASON
2266         to cgraph_inline_failed_t pointer.
2267         * cif-code.def: New file.
2268         * ipa-inline.c (cgraph_mark_inline_edge): Use an enum instead of a
2269         reason string.
2270         (cgraph_check_inline_limits): Change type of REASON to pointer to
2271         cgraph_inline_failed_t.  Replace reason strings with enums.
2272         (cgraph_default_inline_p): Ditto.
2273         (cgraph_recursive_inlining_p): Ditto.
2274         (update_caller_keys): Change type of FAILED_REASON to
2275         cgraph_inline_failed_t.
2276         (cgraph_set_inline_failed): Change type of REASON to pointer to
2277         cgraph_inline_failed_t.  Call cgraph_inline_failed_string to
2278         convert enums to strings for text output.
2279         (cgraph_decide_inlining_of_small_function): Change FAILED_REASON
2280         to be of type cgraph_inline_failed_t.  Replace reason strings with
2281         enums.  Call cgraph_inline_failed_string to covert enums
2282         to strings for text output.
2283         (cgraph_decide_inlining): Replace reason strings with enums.
2284         (cgraph_decide_inlining_incrementally): Change type of FAILED_REASON
2285         to cgraph_inline_failed_t type.  Call cgraph_inline_failed_string
2286         for text output.
2287         * tree-inline.c (expand_call_inline): Change type of REASON
2288         to cgraph_inline_failed_t.  Replace reason strings with enums.
2289         Call cgraph_inline_failed_string for text output.
2290         * Makefile.in (CGRAPH_H): Add cif-code.def to dependencies.
2291         (cgraph.o): Ditto.
2292
2293 2009-03-28  Jan Hubicka  <jh@suse.cz>
2294
2295         * cgraph.c (cgraph_node, cgraph_remove_node, dump_cgraph_node,
2296         cgraph_clone_node): Remove master clone handling.
2297         (cgraph_is_master_clone, cgraph_master_clone): Remove.
2298         * cgraph.h (master_clone): Remove.
2299         (cgraph_is_master_clone, cgraph_master_clone): Remove.
2300         * ipa-type-escape.c (type_escape_execute): Remove use of master clone.
2301         (tree-ssa-structalias.c (ipa_pta_execute): Likewise.
2302
2303 2009-03-28  Jan Hubicka  <jh@suse.cz>
2304
2305         * cgraph.c (cgraph_function_body_availability): Functions declared
2306         inline are always safe to assume that it is not going to be replaced.
2307
2308 2009-03-28  Richard Guenther  <rguenther@suse.de>
2309
2310         PR tree-optimization/38513
2311         * tree-ssa-pre.c (eliminate): Remove redundant stores.
2312         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
2313         EXC_PTR_EXPR and FILTER_EXPR.
2314         (get_ref_from_reference_ops): Likewise.
2315
2316 2009-03-28  Richard Guenther  <rguenther@suse.de>
2317
2318         PR tree-optimization/38968
2319         * tree-vect-analyze.c (vect_compute_data_ref_alignment):
2320         Use FLOOR_MOD_EXPR to compute misalignment.
2321
2322 2009-03-28  Richard Guenther  <rguenther@suse.de>
2323
2324         PR tree-optimization/37795
2325         * tree.h (combine_comparisons): Declare.
2326         * fold-const.c (combine_comparisons): Export.
2327         * tree-ssa-ifcombine.c (ifcombine_ifandif): Optimize two successive
2328         comparisons.
2329         (ifcombine_iforif): Use combine_comparisons.
2330
2331 2009-03-28  Jan Hubicka  <jh@suse.cz>
2332
2333         * tree-eh.c (inlinable_call_p): New function.
2334         (make_eh_edges): Use it.
2335         (verify_eh_edges): Use it.
2336         (stmt_can_throw_external, stmt_can_throw_internal): Use it.
2337         * except.c (reachable_next_level): Add inlinable_function argument
2338         (sjlj_find_directly_reachable_regions): Update.
2339         (add_reachable_handler): Do not set saw_any_handlers.
2340         (reachable_next_level): Handle MUST_NOT_THROW more curefully.
2341         (foreach_reachable_handler, can_throw_internal_1, can_throw_external_1):
2342         Add new inlinable call parameter.
2343         (can_throw_internal, can_throw_external): Update.
2344         * except.h (can_throw_internal_1, can_throw_external_1,
2345         foreach_reachable_handler): Update declaration.
2346
2347 2009-03-28  Joseph Myers  <joseph@codesourcery.com>
2348
2349         * config/arm/t-arm-coff, config/h8300/coff.h,
2350         config/i386/i386-aout.h, config/i386/i386-coff.h,
2351         config/libgloss.h, config/m68k/coff.h, config/m68k/m68k-aout.h,
2352         config/pdp11/2bsd.h, config/rs6000/aix41.h,
2353         config/rs6000/aix41.opt, config/rs6000/t-newas, config/sh/coff.h,
2354         fix-header.c, fixproto, gen-protos.c, protoize.c, scan-decls.c,
2355         scan-types.sh, scan.c, scan.h, sort-protos, sys-protos.h,
2356         sys-types.h: Remove.
2357         * Makefile.in: Remove protoize and fixproto support and references
2358         in comments.
2359         (SYSCALLS.c.X-warn, TARGET_GETGROUPS_T, STMP_FIXPROTO,
2360         PROTOIZE_INSTALL_NAME, UNPROTOIZE_INSTALL_NAME, FIXPROTO_DEFINES):
2361         Remove.
2362         (ALL_HOST_OBJS): Remove $(PROTO_OBJS).
2363         (MOSTLYCLEANFILES): Remove protoize$(exeext) and
2364         unprotoize$(exeext).
2365         (rest.encap): Don't depend on $(STMP_FIXPROTO)
2366         (.PHONY): Don't depend on proto.
2367         (libgcc-support): Don't depend on $(STMP_FIXPROTO).
2368         (proto, PROTO_OBJS, protoize$(exeext), unprotoize$(exeext),
2369         protoize.o, unprotoize.o, SYSCALLS.c.X, test-protoize-simple,
2370         deduced.h, GEN_PROTOS_OBJS, build/gen-protos$(build_exeext),
2371         build/gen-protos.o, build/scan.o, xsys-protos.h,
2372         build/fix-header$(build_exeext), build/fix-header.o,
2373         build/scan-decls.o, fixhdr.ready, stmp-fixproto,
2374         stmp-install-fixproto): Remove.
2375         (mostlyclean): Don't remove xsys-protos.hT, SYSCALLS.c.X,
2376         SYSCALLS.c or fixproto files.
2377         (install-common): Don't install protoize.
2378         (install-headers-tar, install-headers-cpio, install-headers-cp):
2379         Don't depend on $(STMP_FIXPROTO).
2380         (install-mkheaders): Don't depend on $(STMP_FIXPROTO).  Don't
2381         install fixproto files or write out fixproto settings.
2382         (uninstall): Don't uninstall protoize.
2383         * config.gcc (use_fixproto): Remove.
2384         (arm-*-coff*, armel-*-coff*, h8300-*-*, i[34567]86-*-aout*,
2385         i[34567]86-*-coff*, m68k-*-aout*, m68k-*-coff*, pdp11-*-bsd,
2386         rs6000-ibm-aix4.[12]*, powerpc-ibm-aix4.[12]*, sh-*-*): Remove.
2387         * config/m32r/t-linux (STMP_FIXPROTO): Remove.
2388         * config/m68k/m68k.c: Remove M68K_TARGET_COFF-conditional code.
2389         * config/mips/t-iris (FIXPROTO_DEFINES): Remove.
2390         * config/pa/t-pa-hpux (FIXPROTO_DEFINES): Remove.
2391         * config/pdp11/pdp11.c: Remove TWO_BSD-conditional code.
2392         * config/t-svr4 (FIXPROTO_DEFINES): Remove.
2393         * config/t-vxworks (STMP_FIXPROTO): Remove.
2394         * configure.ac (AC_TYPE_GETGROUPS, TARGET_GETGROUPS_T,
2395         STMP_FIXPROTO): Remove.
2396         * config.in, configure: Regenerate.
2397         * crtstuff.c (gid_t, uid_t): Don't undefine.
2398         * doc/install.texi: Change m68k-coff to m68k-elf in example.
2399         (arm-*-coff, arm-*-aout: Remove target entries.
2400         (*-ibm-aix*): Mention removal of support for AIX 4.2 and older.
2401         Remove mention of AIX 4.1.
2402         (m68k-*-*): Remove mention of m68k-*-aout and m68k-*-coff*.
2403         * doc/invoke.texi (Running Protoize): Remove.
2404         * doc/trouble.texi (Actual Bugs): Remove mention of fixproto.
2405         (Protoize Caveats): Remove.
2406         * tsystem.h: Update comments on headers assumed to exist.
2407
2408 2009-03-27  Vladimir Makarov  <vmakarov@redhat.com>
2409
2410         * genautomata.c: Add a new year to the copyright.  Add a new
2411         reference.
2412         (struct insn_reserv_decl): Add comments for member bypass_list.
2413         (find_bypass): Remove.
2414         (insert_bypass): New.
2415         (process_decls): Use insert_bypass.
2416         (output_internal_insn_latency_func): Output all bypasses with the
2417         same input insn in one switch case.
2418
2419         * rtl.def (define_bypass): Describe bypass choice.
2420         * doc/md.texi (define_bypass): Ditto.
2421
2422 2009-03-27  Richard Guenther  <rguenther@suse.de>
2423
2424         * gimplify.c (mark_addressable): Export.
2425         * tree-flow.h (mark_addressable): Declare.
2426         * tree-ssa-loop-manip.c (create_iv): Mark the base addressable.
2427         * tree-ssa.c (verify_phi_args): Verify that address taken
2428         variables have TREE_ADDRESSABLE set.
2429
2430 2009-03-27  Richard Guenther  <rguenther@suse.de>
2431
2432         * fold-const.c (build_fold_addr_expr_with_type_1): Rename back to ...
2433         (build_fold_addr_expr_with_type): ... this.  Remove in_fold handling.
2434         Do not mark decls TREE_ADDRESSABLE.
2435         (build_fold_addr_expr): Adjust.
2436         (fold_addr_expr): Remove.
2437         (fold_unary): Use build_fold_addr_expr.
2438         (fold_comparison): Likewise.
2439         (split_address_to_core_and_offset): Likewise.
2440         * coverage.c (tree_coverage_counter_addr): Mark the array decl
2441         TREE_ADDRESSABLE.
2442         * gimplify.c (mark_addressable): Do not exclude RESULT_DECLs.
2443         (gimplify_modify_expr_to_memcpy): Mark source and destination
2444         addressable.
2445         * omp-low.c (create_omp_child_function): Mark the object decl
2446         TREE_ADDRESSABLE.
2447         (lower_rec_input_clauses): Mark the var we take the address of
2448         TREE_ADDRESSABLE.
2449         (lower_omp_taskreg): Mark the sender decl TREE_ADDRESSABLE.
2450
2451 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
2452
2453         PR middle-end/39315
2454         * cfgexpand.c (expand_one_stack_var_at): Change alignment
2455         limit to MAX_SUPPORTED_STACK_ALIGNMENT.
2456
2457 2009-03-27  Richard Guenther  <rguenther@suse.de>
2458
2459         PR tree-optimization/39120
2460         * tree-ssa-structalias.c (handle_rhs_call): Fill out return
2461         constraints.
2462         (handle_lhs_call): Process return constraints.  Add escape
2463         constraints if necessary.
2464         (handle_const_call): Fill out return constraints.  Make nested
2465         case more precise.  Avoid consttmp if possible.
2466         (handle_pure_call): Fill out return constraints.  Avoid
2467         callused if possible.
2468         (find_func_aliases): Simplify call handling.
2469
2470 2009-03-27  Richard Guenther  <rguenther@suse.de>
2471
2472         PR tree-optimization/39120
2473         * tree-ssa-structalias.c (do_sd_constraint): Do not use CALLUSED
2474         as a representative.
2475         (solve_graph): Do propagate CALLUSED.
2476         (handle_pure_call): Use a scalar constraint from CALLUSED for
2477         the return value.
2478         (find_what_p_points_to): CALLUSED shall not appear in poins-to
2479         solutions.
2480
2481 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
2482
2483         PR c/39323
2484         * c-common.c (handle_aligned_attribute): Properly check alignment
2485         overflow.  Use (1U << i) instead of (1 << i).
2486
2487         * emit-rtl.c (get_mem_align_offset): Use "unsigned int" for align.
2488
2489         * expr.h (get_mem_align_offset): Updated.
2490
2491         * tree.h (tree_decl_common): Change align to "unsigned int" and
2492         move it before pointer_alias_set.
2493
2494 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
2495             Jakub Jelinek  <jakub@redhat.com>
2496
2497         PR target/38034
2498         * config/ia64/sync.md (cmpxchg_rel_<mode>): Replace input
2499         gr_register_operand with gr_reg_or_0_operand.
2500         (cmpxchg_rel_di): Likewise.
2501         (sync_lock_test_and_set<mode>): Likewise.
2502
2503 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
2504
2505         * jump.c (rtx_renumbered_equal_p): Use subreg_get_info.
2506         (true_regnum): Likewise.
2507
2508         * rtlanal.c (subreg_info): Moved to ...
2509         * rtl.h (subreg_info): Here.  New.
2510         (subreg_get_info): New.
2511
2512         * rtlanal.c (subreg_get_info): Make it extern.
2513
2514 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
2515
2516         PR target/39472
2517         * config/i386/i386.c (ix86_abi): New.
2518         (override_options): Handle -mabi=.
2519         (ix86_function_arg_regno_p): Replace DEFAULT_ABI with ix86_abi.
2520         (ix86_call_abi_override): Likewise.
2521         (init_cumulative_args): Likewise.
2522         (function_arg_advance): Likewise.
2523         (function_arg_64): Likewise.
2524         (function_arg): Likewise.
2525         (ix86_pass_by_reference): Likewise.
2526         (ix86_function_value_regno_p): Likewise.
2527         (ix86_build_builtin_va_list_abi): Likewise.
2528         (setup_incoming_varargs_64): Likewise.
2529         (is_va_list_char_pointer): Likewise.
2530         (ix86_init_machine_status): Likewise.
2531         (ix86_reg_parm_stack_space): Use enum calling_abi on call_abi.
2532         (ix86_function_type_abi): Return enum calling_abi.  Rewrite
2533         for 64bit.  Replace DEFAULT_ABI with ix86_abi.
2534         (ix86_function_abi): Make it static and return enum calling_abi.
2535         (ix86_cfun_abi): Return enum calling_abi.  Replace DEFAULT_ABI
2536         with ix86_abi.
2537         (ix86_fn_abi_va_list): Updated.
2538
2539         * config/i386/i386.h (ix86_abi): New.
2540         (STACK_BOUNDARY): Replace DEFAULT_ABI with ix86_abi.
2541         (CONDITIONAL_REGISTER_USAGE): Likewise.
2542         (CUMULATIVE_ARGS): Change call_abi type to enum calling_abi.
2543         (machine_function): Likewise.
2544
2545         * config/i386/i386.md (untyped_call): Replace DEFAULT_ABI
2546         with ix86_abi.
2547         * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Likewise.
2548         (STACK_BOUNDARY): Likewise.
2549         * config/i386/mingw32.h (EXTRA_OS_CPP_BUILTINS): Likewise.
2550
2551         * config/i386/i386.opt (mabi=): New.
2552
2553         * config/i386/i386-protos.h (ix86_cfun_abi): Changed to
2554         return enum calling_abi.
2555         (ix86_function_type_abi): Likewise.
2556         (ix86_function_abi): Removed.
2557
2558         * doc/invoke.texi: Document -mabi= option for x86.
2559
2560 2009-03-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2561
2562         * builtins.c (real_dconstp): Delete.
2563         (fold_builtin_logarithm): Remove inaccurate log(e) special case.
2564
2565 2009-03-27  Dodji Seketeli  <dodji@redhat.com>
2566             Jakub Jelinek  <jakub@redhat.com>
2567
2568         PR debug/37959
2569         * dwarf2out.c (dwarf_attr_name): Handle DW_AT_explicit attribute.
2570         (gen_subprogram_die): When a function is explicit, generate the
2571         DW_AT_explicit attribute.
2572         * langhooks.h (struct lang_hooks_for_decls): Add
2573         function_decl_explicit_p langhook.
2574         * langhooks-def.h (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P): Define.
2575         (LANG_HOOKS_DECLS): Add LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P.
2576
2577 2009-03-27  Jakub Jelinek  <jakub@redhat.com>
2578
2579         * builtins.c (fold_builtin_memory_op): Optimize memmove
2580         into memcpy if we can prove source and destination don't overlap.
2581
2582         * tree-inline.c: Include gt-tree-inline.h.
2583         (clone_fn_id_num): New variable.
2584         (clone_function_name): New function.
2585         (tree_function_versioning): Use it.
2586         * Makefile.in (GTFILES): Add tree-inline.c.
2587
2588 2009-03-27  Mark Mitchell  <mark@codesourcery.com>
2589
2590         * BASE-VER: Change to 4.5.0.
2591
2592 2009-03-27  Xinliang David Li  <davidxl@google.com>
2593
2594         PR tree-optimization/39557
2595         * tree-ssa.c (warn_uninitialized_vars): free postdom info.
2596
2597 2009-03-27  Xinliang David Li  <davidxl@google.com>
2598
2599         PR tree-optimization/39548
2600         * tree-ssa-copy.c (copy_prop_visit_phi_node): Add copy 
2601         candidate check.
2602
2603 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
2604
2605         * c-common.c (pointer_int_sum): Use %wd on return from
2606         tree_low_cst.
2607
2608 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
2609
2610         * c-common.c (pointer_int_sum): Use HOST_WIDE_INT_PRINT_DEC
2611         on return from tree_low_cst.
2612
2613 2009-03-27  Andrew Pinski  <andrew_pinski@playstation.sony.com>
2614
2615         PR c++/36799
2616         * ginclude/stdarg.h (va_copy): Define also for
2617         __GXX_EXPERIMENTAL_CXX0X__.
2618
2619 2009-03-27  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
2620
2621         PR c++/35652
2622         * builtins.h (c_strlen): Do not warn here.
2623         * c-typeck.c (build_binary_op): Adjust calls to pointer_int_sum.
2624         * c-common.c (pointer_int_sum): Take an explicit location.
2625         Warn about offsets out of bounds.
2626         * c-common.h (pointer_int_sum): Adjust declaration.
2627
2628 2009-03-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2629
2630         * doc/invoke.texi (i386 and x86-64 Windows Options): Fix texinfo
2631         markup glitch.
2632
2633 2009-03-26  Jakub Jelinek  <jakub@redhat.com>
2634
2635         PR c++/39554
2636         * opts.c (warn_if_disallowed_function_p): Don't assume
2637         get_callee_fndecl must return non-NULL.
2638
2639 2009-03-26  Vladimir Makarov  <vmakarov@redhat.com>
2640
2641         PR rtl-optimization/39522
2642         * reload1.c (reload_as_needed): Invalidate reg_last_reload_reg too
2643         when reg_reloaded_valid is set.
2644
2645 2009-03-26  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2646
2647         * config/spu/divv2df3.c: New file.
2648         * config/spu/t-spu-elf (LIB2FUNCS_STATIC_EXTRA): Add it.
2649         (DPBIT_FUNCS): Filter out _div_df.
2650
2651 2009-03-26  Bernd Schmidt  <bernd.schmidt@analog.com>
2652
2653         * config/bfin/bfin.c (bfin_optimize_loop): If the LSETUP goes before
2654         a jump insn, count that jump in the distance to the loop start.
2655
2656 2009-03-25  Kaz Kojima  <kkojima@gcc.gnu.org>
2657
2658         PR target/39523
2659         * config/sh/sh.c (calc_live_regs): Fix condition for global
2660         registers except PIC_OFFSET_TABLE_REGNUM.
2661
2662 2009-03-25  Kai Tietz  <kai.tietz@onevision.com>
2663
2664         PR/39518
2665         * doc/invoke.texi (-mconsole): New.
2666         (-mcygwin): New.
2667         (-mno-cygwin): New.
2668         (-mdll): New.
2669         (-mnop-fun-dllimport): New.
2670         (-mthread): New.
2671         (-mwin32): New.
2672         (-mwindows): New.
2673         (sub section "i386 and x86-64 Windows Options"): New.
2674
2675 2009-03-25  Ralf Corsépius <ralf.corsepius@rtems.org>
2676
2677         * config/arm/rtems-elf.h: Remove LINK_GCC_C_SEQUENCE_SPEC.
2678         * config/rs6000/t-rtems: Remove MULTILIB_EXTRA_OPTS.
2679
2680 2009-03-25  Richard Guenther  <rguenther@suse.de>
2681
2682         PR middle-end/39497
2683         * Makefile.in (dfp.o-warn): Use -fno-strict-aliasing instead
2684         of -Wno-error.
2685
2686 2009-03-25  Andrey Belevantsev  <abel@ispras.ru>
2687
2688         * config/ia64/ia64.c (ia64_set_sched_flags): Zero spec_info->mask when
2689         neither of haifa/selective schedulers are working.
2690
2691 2009-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2692
2693         * doc/invoke.texi (Debugging Options): Fix description of
2694         -fno-merge-debug-strings.
2695
2696 2009-03-24  Hans-Peter Nilsson  <hp@axis.com>
2697
2698         * config/cris/libgcc.ver: New version-script.
2699         * config/cris/t-linux (SHLIB_MAPFILES): Use it.
2700
2701         * configure.ac <GAS features, nop mnemonic>: Add pattern
2702         crisv32-*-* for "nop".
2703         <GAS features, Thread-local storage>: Add item for CRIS and CRIS v32.
2704         * configure: Regenerate.
2705
2706 2009-03-24  Ira Rosen  <irar@il.ibm.com>
2707
2708         PR tree-optimization/39529
2709         * tree-vect-transform.c (vect_create_data_ref_ptr): Call
2710         mark_sym_for_renaming for the tag copied to the new vector
2711         pointer.
2712
2713 2009-03-24  Arthur Loiret  <aloiret@debian.org>
2714
2715         * config.host (alpha*-*-linux*): Use driver-alpha.o and alpha/x-alpha.
2716         * config/alpha/linux.h (host_detect_local_cpu): Declare, add to
2717         EXTRA_SPEC_FUNCTIONS.
2718         (MCPU_MTUNE_NATIVE_SPECS, DRIVER_SELF_SPECS): New macros.
2719         * config/alpha/driver-alpha.c, config/alpha/x-alpha: New.
2720         * doc/invoke.texi (DEC Alpha Options): Document 'native' value for
2721         -march and -mtune options.
2722
2723 2009-03-24  Ralf Corsépius <ralf.corsepius@rtems.org>
2724
2725         * config/m68k/t-rtems: Add m5329 multilib.
2726
2727 2009-03-24  Dodji Seketeli  <dodji@redhat.com>
2728             Jakub Jelinek  <jakub@redhat.com>
2729
2730         PR debug/39524
2731         * dwarf2out.c (gen_variable_die): Avoid adding duplicate declaration
2732         nodes.
2733
2734 2009-03-23  Jakub Jelinek  <jakub@redhat.com>
2735
2736         PR c/39495
2737         * c-parser.c (c_parser_omp_for_loop): Call c_parser_binary_expression
2738         instead of c_parser_expression_conv, if original_code isn't one of the
2739         4 allowed comparison codes, fail.
2740
2741 2009-03-23  Richard Guenther  <rguenther@suse.de>
2742
2743         * cgraph.h (struct cgraph_node): Reorder fields for 64-bit hosts.
2744         * tree.h (struct tree_type): Likewise.
2745         * reload.h (struct insn_chain): Likewise.
2746         * dwarf2out.c (struct dw_loc_descr_struct): Likewise.
2747         * function.h (struct function): Likewise.
2748         * tree-ssa-structalias.c (struct equiv_class_label): Likewise.
2749
2750 2009-03-23  Jakub Jelinek  <jakub@redhat.com>
2751
2752         PR tree-optimization/39516
2753         * lambda-code.c (perfect_nestify): Fix type of the uboundvar variable.
2754
2755 2009-03-23 Bingfeng Mei  <bmei@broadcom.com>
2756
2757         * config.gcc (need_64bit_hwint): Make clear that need_64bit_hwint 
2758         should be set true if BITS_PER_WORD of target is bigger than 32
2759
2760 2009-03-22  Hans-Peter Nilsson  <hp@axis.com>
2761
2762         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC):
2763         Translate -B-options to -rpath-link.  Correct existing
2764         rpath-link and conditionalize on !nostdlib.
2765
2766 2009-03-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2767
2768         * doc/extend.texi (Function Attributes, Variable Attributes):
2769         Fix typos.
2770         * doc/invoke.texi (Debugging Options, Optimize Options)
2771         (i386 and x86-64 Options, MCore Options): Likewise.
2772
2773 2009-03-20  Jakub Jelinek  <jakub@redhat.com>
2774
2775         PR debug/37890
2776         * dwarf2out.c (gen_namespace_die): Add context_die argument and use
2777         it for block local namespace aliases.
2778         (gen_decl_die): Pass context_die to gen_namespace_die.
2779
2780 2009-03-19  Jakub Jelinek  <jakub@redhat.com>
2781
2782         PR c/39495
2783         * c-omp.c (c_finish_omp_for): Allow NE_EXPR with TREE_TYPE (decl)'s
2784         minimum or maximum value.
2785
2786 2009-03-19  Alexandre Oliva  <aoliva@redhat.com>
2787
2788         * reginfo.c (globalize_reg): Recompute derived reg sets.
2789
2790 2009-03-19  Ozkan Sezer <sezeroz@gmail.com>
2791
2792         PR target/39063
2793         * libgcc2.c (mprotect): Do not use signed arguments for
2794         VirtualProtect, use DWORD arguments.  Also fix the 'may
2795         be used uninitialized' warning for the np variable.
2796
2797 2009-03-19  Jakub Jelinek  <jakub@redhat.com>
2798
2799         PR target/39496
2800         * config/i386/i386.c (ix86_function_regparm): Don't optimize local
2801         functions using regparm calling conventions when not optimizing.
2802         (ix86_function_sseregparm): Similarly for sseregparm calling
2803         conventions.
2804
2805 2009-03-19  Li Feng  <nemokingdom@gmail.com>
2806
2807         PR middle-end/39500
2808         * tree-data-ref.c (analyze_subscript_affine_affine): There is no
2809         dependence if the first conflict is after niter iterations.
2810
2811 2009-03-19  Hans-Peter Nilsson  <hp@axis.com>
2812
2813         PR middle-end/38609
2814         * config/cris/cris.h (FRAME_POINTER_REQUIRED): Force for all
2815         functions with dynamic stack-pointer adjustments.
2816
2817 2009-03-19  Ben Elliston  <bje@au.ibm.com>
2818
2819         * doc/invoke.texi (RS/6000 and PowerPC Options): Fix -msdata-data
2820         option; change to -msdata=data.
2821
2822 2009-03-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2823
2824         * c.opt: Unify help texts for -Wdeprecated, -Wsystem-headers,
2825         and -fopenmp.
2826
2827 2009-03-18  Eric Botcazou  <ebotcazou@adacore.com>
2828
2829         PR target/35180
2830         * config/sparc/sparc.md (do_builtin_setjmp_setup): Prettify asm output.
2831
2832 2009-03-18  Sandra Loosemore  <sandra@codesourcery.com>
2833
2834         * doc/invoke.texi (Code Gen Options): Expand discussion of
2835         -fno-common.
2836
2837 2009-03-18  Jakub Jelinek  <jakub@redhat.com>
2838
2839         * dse.c (struct group_info): Reorder fields for 64-bit hosts.
2840         * matrix-reorg.c (struct matrix_info): Likewise.
2841         * tree-ssa-loop-ivopts.c (struct ivopts_data): Likewise.
2842         * rtl.h (struct mem_attrs): Likewise.
2843         * df.h (struct df): Likewise.
2844         * tree-data-ref.h (struct data_dependence_relation): Likewise.
2845         * ira-int.h (struct ira_allocno): Likewise.
2846         * df-scan.c (struct df_collection_rec): Likewise.
2847         * ira.c (struct equivalence): Likewise.
2848         * function.c (struct temp_slot): Likewise.
2849         * cfgloop.h (struct loop): Likewise.
2850
2851         PR debug/39485
2852         * function.c (use_register_for_decl): When not optimizing, disregard
2853         register keyword for variables with types containing methods.
2854
2855 2009-03-18  Sebastian Pop  <sebastian.pop@amd.com>
2856
2857         PR middle-end/39447
2858         * graphite.c (exclude_component_ref): Renamed contains_component_ref_p.
2859         (is_simple_operand): Call contains_component_ref_p before calling data
2860         reference analysis that would fail on COMPONENT_REFs.
2861
2862         * tree-vrp.c (search_for_addr_array): Fix formatting.
2863
2864 2009-03-18  Richard Guenther  <rguenther@suse.de>
2865
2866         * tree-vect-transform.c (vect_loop_versioning): Fold the
2867         generated comparisons.
2868         * tree-vectorizer.c (set_prologue_iterations): Likewise.
2869         (slpeel_tree_peel_loop_to_edge): Likewise.
2870
2871 2009-03-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2872
2873         PR middle-end/37805
2874         * opts.c (print_specific_help): In addition to `undocumented',
2875         accept `separate' and `joined' flags if passed alone.  Describe
2876         output by the first matched one of those.
2877         (common_handle_option): Skip over empty strings.
2878         * gcc.c (display_help): Fix help string for `--help='.
2879         * doc/invoke.texi (Option Summary, Overall Options): With
2880         `--help=', classes and qualifiers can both be repeated, but
2881         only the latter can be negated.  One should not pass only
2882         negated qualifiers.  Fix markup and examples.
2883
2884         Revert
2885         2008-10-14  Jakub Jelinek  <jakub@redhat.com>
2886         PR middle-end/37805
2887         * opts.c (common_handle_option): Don't ICE on -fhelp=joined
2888         and -fhelp=separate.
2889
2890 2009-03-17  Jing Yu  <jingyu@google.com>
2891
2892         PR middle-end/39378
2893         * function.h (struct rtl_data): Move is_thunk from here...
2894         (struct function): ...to here.
2895         * cp/method.c (use_thunk): Change is_thunk from crtl to cfun.
2896         * varasm.c (assemble_start_function): Change is_thunk from crtl to
2897         cfun.
2898         * config/alpha/alpha.c (alpha_sa_mask): Change is_thunk from crtl to
2899         cfun.
2900         (alpha_does_function_need_gp, alpha_start_function): Likewise.
2901         (alpha_output_function_end_prologue): Likewise.
2902         (alpha_end_function, alpha_output_mi_thunk_osf): Likewise.
2903         * config/rs6000/rs6000.c (rs6000_ra_ever_killed): Likewise.
2904         (rs6000_output_function_epilogue): Likewise.
2905         * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Likewise.
2906
2907 2009-03-17  Uros Bizjak  <ubizjak@gmail.com>
2908
2909         PR target/39482
2910         * config/i386/i386.md (*truncdfsf_mixed): Avoid combining registers
2911         from different units in a single alternative.
2912         (*truncdfsf_i387): Ditto.
2913         (*truncxfsf2_mixed): Ditto.
2914         (*truncxfdf2_mixed): Ditto.
2915
2916 2009-03-17  Jakub Jelinek  <jakub@redhat.com>
2917
2918         * dwarf2out.c (dwarf2out_imported_module_or_decl_1): Allow
2919         non-NAMESPACE_DECL IMPORTED_DECL_ASSOCIATED_DECL.
2920
2921         PR debug/39474
2922         * tree-ssa-live.c (remove_unused_locals): Don't remove local
2923         unused non-artificial variables when not optimizing.
2924
2925         PR debug/39471
2926         * dwarf2out.c (dwarf2out_imported_module_or_decl_1): Emit
2927         DW_TAG_imported_module even if decl is IMPORTED_DECL with
2928         NAMESPACE_DECL in its DECL_INITIAL.
2929
2930         PR middle-end/39443
2931         * optabs.c (set_user_assembler_libfunc): New function.
2932         * expr.h (set_user_assembler_libfunc): New prototype.
2933         * c-common.c: Include libfuncs.h.
2934         (set_builtin_user_assembler_name): Call set_user_assembler_libfunc
2935         for memcmp, memset, memcpy, memmove and abort.
2936         * Makefile.in (c-common.o): Depend on libfuncs.h.
2937
2938         PR debug/39412
2939         * dwarf2out.c (gen_inlined_enumeration_type_die,
2940         gen_inlined_structure_type_die, gen_inlined_union_type_die,
2941         gen_tagged_type_instantiation_die): Removed.
2942         (gen_decl_die): For TYPE_DECL_IS_STUB with non-NULL decl_origin
2943         do nothing.
2944
2945 2009-03-17  Janis Johnson  <janis187@us.ibm.com>
2946
2947         PR testsuite/38526
2948         * Makefile.in (site.exp): Rename TEST_GCC_EXEC_PREFIX and comment
2949         its use.
2950         (check-%): Don't set GCC_EXEC_PREFIX when invoking runtest.
2951         (check-parallel-%): Ditto.
2952         (check-consistency): Ditto.
2953
2954 2009-03-17  Kai Tietz  <kai.tietz@onevision.com>
2955
2956         * ipa-struct-reorg.c (create_general_new_stmt): Initialize
2957         local variable rhs by NULL_TREE.
2958
2959 2009-03-17  H.J. Lu  <hongjiu.lu@intel.com>
2960
2961         PR target/39477
2962         * doc/extend.texi: Correct register behavior for regparm on Intel 386.
2963
2964 2009-03-17  H.J. Lu  <hongjiu.lu@intel.com>
2965
2966         PR target/39476
2967         * config/i386/i386.c (ix86_function_regparm): Rewrite for 64bit.
2968
2969 2009-03-17  H.J. Lu  <hongjiu.lu@intel.com>
2970
2971         PR target/39473
2972         * config/i386/i386.c (ix86_expand_call): Check extra clobbers
2973         for ms->sysv ABI calls only in 64bit mode.
2974
2975         * config/i386/i386.md (untyped_call): Support 32bit.
2976
2977 2009-03-16  H.J. Lu  <hongjiu.lu@intel.com>
2978
2979         * doc/extend.texi: Replace x86_65 with x86_64.
2980
2981 2009-03-16  Jakub Jelinek  <jakub@redhat.com>
2982
2983         PR tree-optimization/39455
2984         * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Fix types
2985         mismatches for POINTER_TYPE_P (type).
2986         (number_of_iterations_le): Likewise.
2987
2988 2009-03-16  Hariharan Sandanagobalane <hariharan@picochip.com>
2989
2990         * config/picochip/picochip.c: Removed profiling support.
2991         * config/picochip/picochip.md: Removed profiling instruction.
2992         * config/picochip/picochip.h: Removed profiling builtin.
2993
2994 2009-03-16  Joseph Myers  <joseph@codesourcery.com>
2995
2996         * doc/install.texi (--with-host-libstdcxx): Document.
2997
2998 2009-03-14  Anatoly Sokolov  <aesok@post.ru>
2999
3000         PR target/34299
3001         * config/avr/avr.c (avr_handle_fndecl_attribute): Move code for
3002         generate a warning if the function name does not begin with
3003         "__vector" and the function has either the 'signal' or 'interrupt'
3004         attribute, from here to ...
3005         (avr_declare_function_name): ...here. New function.
3006         * config/avr/avr.h (ASM_DECLARE_FUNCTION_NAME): Redefine.
3007         * config/avr/avr-protos.h (avr_declare_function_name): Declare.
3008
3009 2009-03-14  Jakub Jelinek  <jakub@redhat.com>
3010
3011         PR bootstrap/39454
3012         * cse.c (fold_rtx): Don't modify original const_arg1 when
3013         canonicalizing SHIFT_COUNT_TRUNCATED shift count, do it on a
3014         separate variable instead.
3015         * rtlanal.c (nonzero_bits1) <case ASHIFTRT>: Don't assume anything
3016         from out of range shift counts.
3017         (num_sign_bit_copies1) <case ASHIFTRT, case ASHIFT>: Similarly.
3018
3019 2008-03-13  Catherine Moore  <clm@codesourcery.com>
3020
3021         * gcc/config/i386/x-mingw32 (host-mingw32.o): Replace
3022         diagnostic.h with $(DIAGNOSTIC_H).
3023
3024 2008-03-12  Jakub Jelinek  <jakub@redhat.com>
3025
3026         PR target/39431
3027         * config/i386/predicates.md (cmpxchg8b_pic_memory_operand): New
3028         predicate.
3029         * config/i386/sync.md (sync_compare_and_swap<mode>,
3030         sync_compare_and_swap_cc<mode>): For DImode with -m32 -fpic check
3031         if operands[1] is cmpxchg8b_pic_memory_operand, if not force address
3032         into a register.
3033         (sync_double_compare_and_swapdi_pic,
3034         sync_double_compare_and_swap_ccdi_pic): Require operand 1 to be
3035         cmpxchg8b_pic_memory_operand instead of just memory_operand.
3036
3037 2009-03-12  H.J. Lu  <hongjiu.lu@intel.com>
3038
3039         PR target/39445
3040         * config/i386/i386.c (ix86_expand_push): Don't set memory alignment.
3041
3042 2009-03-12  H.J. Lu  <hongjiu.lu@intel.com>
3043
3044         PR target/39327
3045         * config/i386/sse.md (avx_addsubv8sf3): Correct item bits.
3046         (avx_addsubv4df3): Likewise.
3047         (*avx_addsubv4sf3): Likewise.
3048         (sse3_addsubv4sf3): Likewise.
3049
3050 2009-03-12  H.J. Lu  <hongjiu.lu@intel.com>
3051
3052         PR target/38824
3053         * config/i386/i386.md: Compare REGNO on the new peephole2 patterns.
3054
3055 2009-03-12  Vladimir Makarov  <vmakarov@redhat.com>
3056
3057         PR debug/39432
3058         * ira-int.h (struct allocno): Fix comment for calls_crossed_num.
3059         * ira-conflicts.c (ira_build_conflicts): Prohibit call used
3060         registers for allocnos created from user-defined variables.
3061
3062 2009-03-11  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3063
3064         PR target/39181
3065         * config/spu/spu.c (spu_expand_mov): Handle invalid subregs
3066         of non-integer mode as well.
3067
3068 2009-03-11  Adam Nemet  <anemet@caviumnetworks.com>
3069
3070         * gimplify.c (gimplify_call_expr): Don't set CALL_CANNOT_INLINE_P
3071         for functions for which the parameter types are unknown.
3072
3073 2009-03-11  Jakub Jelinek  <jakub@redhat.com>
3074
3075         PR target/39137
3076         * cfgexpand.c (get_decl_align_unit): Use LOCAL_DECL_ALIGNMENT macro.
3077         * defaults.h (LOCAL_DECL_ALIGNMENT): Define if not yet defined.
3078         * config/i386/i386.h (LOCAL_DECL_ALIGNMENT): Define.
3079         * config/i386/i386.c (ix86_local_alignment): For
3080         -m32 -mpreferred-stack-boundary=2 use 32-bit alignment for
3081         long long variables on the stack to avoid dynamic realignment.
3082         Allow the first argument to be a decl rather than type.
3083         * doc/tm.texi (LOCAL_DECL_ALIGNMENT): Document.
3084
3085 2009-03-11  Nick Clifton  <nickc@redhat.com>
3086
3087         PR target/5362
3088         * config/mcore/mcore.opt: Remove deprecated m4align and m8align
3089         options.
3090         Add description to mno-lsim option.
3091         * config/mcore/mcore.h: Remove comment about deprecated m4align
3092         option.
3093         (TARGET_DEFAULT): Remove deprecated MASK_M8ALIGN.
3094         * doc/invoke.texi: Add description of mno-lsim and
3095         mstack-increment options.
3096
3097         * config/fr30/fr30.opt: Document the -mno-lsim option.
3098         * doc/invoke.texi: Add descriptions of the FR30's -msmall-model
3099         and -mno-lsim options.
3100
3101 2009-03-11  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3102
3103         * fold-const.c (fold_comparison): Only call fold_inf_compare
3104         if the mode supports infinities.
3105
3106 2009-03-11  Jason Merrill  <jason@redhat.com>
3107
3108         PR debug/39086
3109         * tree-nrv.c (tree_nrv): Don't do this optimization if the front
3110         end already did.  Notice GIMPLE_CALL modifications of the result.
3111         Don't copy debug information from an ignored decl or a decl from
3112         another function.
3113
3114 2009-03-10  Richard Guenther  <rguenther@suse.de>
3115             Nathan Froyd  <froydnj@codesourcery.com>
3116
3117         PR middle-end/37850
3118         * libgcc2.c (__mulMODE3): Use explicit assignments to form the result.
3119         (__divMODE3): Likewise.
3120
3121 2009-03-09  Jakub Jelinek  <jakub@redhat.com>
3122
3123         PR tree-optimization/39394
3124         * gimplify.c (gimplify_type_sizes): Gimplify DECL_SIZE and
3125         DECL_SIZE_UNIT of variable length FIELD_DECLs.
3126
3127 2009-03-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3128
3129         * recog.c (verfiy_changes): Disallow renaming of hard regs in
3130         inline asms for register asm ("") declarations.
3131
3132 2009-03-09  Eric Botcazou  <ebotcazou@adacore.com>
3133
3134         * fold-const.c (fold_unary): Fix comment.
3135
3136 2009-03-07  Jan Hubicka  <jh@suse.cz>
3137
3138         PR target/39361
3139         * tree-inline.c (setup_one_parameter): Do replacement of const
3140         argument by constant in SSA form.
3141
3142 2009-03-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3143
3144         PR middle-end/38028
3145         * function.c (assign_parm_setup_stack): Use STACK_SLOT_ALIGNMENT to
3146         determine alignment passed to assign_stack_local.
3147         (assign_parms_unsplit_complex): Likewise.
3148         * except.c (sjlj_build_landing_pads): Likewise.
3149
3150 2009-03-06  Jakub Jelinek  <jakub@redhat.com>
3151
3152         PR middle-end/39360
3153         * tree-flow.h (add_referenced_var): Return bool instead of void.
3154         * tree-dfa.c (add_referenced_var): Return result of
3155         referenced_var_check_and_insert call.
3156         * tree-inline.c (expand_call_inline): Call add_referenced_var instead
3157         of referenced_var_check_and_insert.
3158
3159         PR debug/39372
3160         * dwarf2out.c (add_abstract_origin_attribute): Return origin_die.
3161         (gen_variable_die): Emit DW_AT_location on abstract static variable's
3162         DIE, don't emit it if abstract origin already has it.
3163         * tree-cfg.c (remove_useless_stmts_bind): GIMPLE_BINDs with any
3164         BLOCK_NONLOCALIZED_VARS in its gimple_bind_block aren't useless.
3165
3166 2009-03-06  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
3167
3168         * genpreds.c (needs_variable): Fix parentheses at variable name
3169         detection.
3170         (write_tm_constrs_h): Indent generated code.
3171
3172 2009-03-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3173
3174         * doc/extend.texi (Function Attributes): Add documentation
3175         for isr attributes.
3176
3177 2009-03-06  Jakub Jelinek  <jakub@redhat.com>
3178
3179         PR debug/39387
3180         * dwarf2out.c (dwarf2out_imported_module_or_decl_1): For IMPORTED_DECL
3181         take locus from its DECL_SOURCE_LOCATION instead of input_location.
3182
3183 2009-03-05  Bernd Schmidt  <bernd.schmidt@analog.com>
3184
3185         * config/bfin/bfin.c (bfin_discover_loop): When retrying fails, mark
3186         the loop as bad.
3187
3188 2009-03-05  Jakub Jelinek  <jakub@redhat.com>
3189
3190         PR debug/39379
3191         * tree-cfg.c (remove_useless_stmts_bind): Don't remove GIMPLE_BINDs
3192         with blocks containing IMPORTED_DECLs in BLOCK_VARS.
3193
3194 2009-03-05  Uros Bizjak  <ubizjak@gmail.com>
3195
3196         * config/i386/i386.md (R8_REG, R9_REG): New constants.
3197         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Use named
3198         constants instead of magic numbers.
3199         (HARD_REGNO_CALLER_SAVE_MODE): Ditto.
3200         (QI_REG_P): Ditto.
3201         * config/i386/i386.c (x86_64_int_parameter_registers): Ditto.
3202         (x86_64_ms_abi_int_parameter_registers): Ditto.
3203         (x86_64_int_return_registers): Ditto.
3204         (ix86_maybe_switch_abi): Ditto.
3205         (ix86_expand_call): Ditto for clobbered_registers array.
3206         (ix86_hard_regno_mode_ok): Ditto.
3207         (x86_extended_QIreg_mentioned_p): Ditto.
3208
3209 2009-03-05  J"orn Rennecke  <joern.rennecke@arc.com>
3210
3211         PR tree-optimization/39349
3212         * cse.c (cse_insn): Fix loop to stop at VOIDmode.
3213
3214         * combine.c (gen_lowpart_for_combine): Use omode when generating
3215         clobber.
3216
3217 2009-03-04  J"orn Rennecke  <joern.rennecke@arc.com>
3218
3219         PR rtl-optimization/39235
3220         * loop-iv.c (get_simple_loop_desc): Use XCNEW.
3221
3222 2009-03-04  Zdenek Dvorak  <ook@ucw.cz>
3223
3224         * graphite.c (nb_reductions_in_loop): Update simple_iv arguments.
3225
3226 2009-03-04  Richard Guenther  <rguenther@suse.de>
3227
3228         PR tree-optimization/39362
3229         * tree-ssa-sccvn.c (visit_use): Stores and copies from SSA_NAMEs
3230         that occur in abnormal PHIs should be varying.
3231
3232 2009-03-04  Zdenek Dvorak  <ook@ucw.cz>
3233
3234         * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop):
3235         Extend comments.
3236         (simple_iv):  Take loop as an argument instead of statement.
3237         * tree-scalar-evolution.h (simple_iv): Declaration changed.
3238         * tree-ssa-loop-niter.c (number_of_iterations_exit): Update calls
3239         to simple_iv.
3240         * tree-ssa-loop-ivopts.c (determine_biv_step, find_givs_in_stmt_scev):
3241         Ditto.
3242         * tree-parloops.c (loop_parallel_p, canonicalize_loop_ivs): Ditto.
3243         * matrix-reorg.c (analyze_transpose): Ditto.
3244         * tree-data-ref.c (dr_analyze_innermost): Ditto.
3245         * tree-vect-analyze.c (vect_analyze_data_refs): Ditto.
3246         * tree-predcom.c (ref_at_iteration): Ditto.
3247         * tree-ssa-loop-prefetch.c (idx_analyze_ref): Ditto.
3248
3249 2009-03-04  Richard Guenther  <rguenther@suse.de>
3250
3251         PR tree-optimization/39358
3252         * tree-ssa-structalias.c (do_sd_constraint): Fix check for
3253         escaped_id and callused_id.
3254         (solve_graph): Likewise.
3255
3256 2009-03-04  Richard Guenther  <rguenther@suse.de>
3257
3258         PR tree-optimization/39339
3259         * tree-sra.c (try_instantiate_multiple_fields): Make it
3260         no longer ICE on the above.
3261
3262 2009-03-03  Joseph Myers  <joseph@codesourcery.com>
3263
3264         * emit-rtl.c (adjust_address_1): Reduce offset to a signed value
3265         that fits within Pmode.
3266
3267 2009-03-03  Steve Ellcey  <sje@cup.hp.com>
3268
3269         PR middle-end/10109
3270         * tm.texi (LIBCALL_VALUE): Update description.
3271
3272 2009-03-03  Steve Ellcey  <sje@cup.hp.com>
3273
3274         PR middle-end/34443
3275         * doc/extend.texi (section): Update description.
3276
3277 2009-03-03  H.J. Lu  <hongjiu.lu@intel.com>
3278
3279         PR middle-end/39345
3280         * tree-inline.c (remapped_type): New.
3281         (can_be_nonlocal): Call remapped_type instead of remap_type.
3282
3283 2009-03-03  Jakub Jelinek  <jakub@redhat.com>
3284
3285         PR fortran/39354
3286         * gimplify.c (goa_stabilize_expr): Handle tcc_comparison,
3287         TRUTH_ANDIF_EXPR and TRUTH_ORIF_EXPR.
3288
3289 2009-03-03  Richard Guenther  <rguenther@suse.de>
3290
3291         PR middle-end/39272
3292         * tree.c (tree_nonartificial_location): New function.
3293         * tree.h (tree_nonartificial_location): Declare.
3294         * builtins.c (expand_builtin_memory_chk): Provide location
3295         of the call location for artificial function pieces.
3296         (maybe_emit_chk_warning): Likewise.
3297         (maybe_emit_sprintf_chk_warning): Likewise.
3298         (maybe_emit_free_warning): Likewise.
3299         * expr.c (expand_expr_real_1): Likewise.
3300
3301 2009-03-03  Jakub Jelinek  <jakub@redhat.com>
3302
3303         PR tree-optimization/39343
3304         * tree-ssa-ccp.c (maybe_fold_offset_to_address): Don't check if
3305         COMPONENT_REF t has ARRAY_TYPE.
3306
3307 2009-03-02  Sebastian Pop  <sebastian.pop@amd.com>
3308
3309         PR middle-end/39335
3310         * tree-parloops.c (canonicalize_loop_ivs): Call fold_convert
3311         when the type precision of the induction variable should be
3312         larger than the type precision of nit.
3313         (gen_parallel_loop): Update use of canonicalize_loop_ivs.
3314         * graphite.c (graphite_loop_normal_form): Same.
3315         * tree-flow.h (canonicalize_loop_ivs): Update declaration.
3316
3317 2009-03-02  Uros Bizjak  <ubizjak@gmail.com>
3318
3319         * config/i386/i386.md (ST?_REG, MM?_REG): New constants.
3320         (*call_1_rex64_ms_sysv): Use named constants instead of magic
3321         numbers to describe clobbered registers.
3322         (*call_value_0_rex64_ms_sysv): Ditto.
3323         * config/i386/mmx.md (mmx_emms): Ditto.
3324         (mmx_femms): Ditto.
3325
3326 2009-03-02  Richard Sandiford  <rdsandiford@googlemail.com>
3327
3328         * config/mips/mips.c (mips_mdebug_abi_name): Fix the handling
3329         of ABI_64.
3330
3331 2009-03-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3332
3333         * config/spu/spu.c (TARGET_SECTION_TYPE_FLAGS): Define.
3334         (spu_section_type_flags): New function.
3335
3336 2009-03-02  Uros Bizjak  <ubizjak@gmail.com>
3337
3338         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Do not copy
3339         reg_class_contents of FLOAT_REGS into a temporary.
3340
3341 2009-03-02  Richard Guenther  <rguenther@suse.de>
3342             Ira Rosen  <irar@il.ibm.com>
3343
3344         PR tree-optimization/39318
3345         * tree-vect-transform.c (vectorizable_call): Transfer the EH region
3346         information to the vectorized statement.
3347
3348 2009-03-01  Uros Bizjak  <ubizjak@gmail.com>
3349
3350         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Do not shadow "i"
3351         variable.  Use defined names instead of magic constants for REX SSE
3352         registers.
3353
3354 2009-03-01  Richard Guenther  <rguenther@suse.de>
3355
3356         PR tree-optimization/39331
3357         * omp-low.c (lower_send_shared_vars): Do not receive new
3358         values for the reference of DECL_BY_REFERENCE parms or results.
3359
3360 2009-03-01  Jan Hubicka  <jh@suse.cz>
3361
3362         PR debug/39267
3363         * tree.h (BLOCK_NONLOCALIZED_VARS, BLOCK_NUM_NONLOCALIZED_VARS,
3364         BLOCK_NONLOCALIZED_VAR): New macros.
3365         (tree_block): Add nonlocalized_vars.
3366         * dwarf2out.c (gen_formal_parameter_die, gen_variable_die,
3367         gen_decl_die): Add origin argument.  Allow generation of die with
3368         origin at hand only.
3369         (gen_member_die, gen_type_die_with_usage, force_decl_die,
3370         declare_in_namespace, gen_namescpace_die, dwarf2out_decl): Update use
3371         of gen_*.
3372         (gen_block_die): Fix checking for unused blocks.
3373         (process_scope_var): Break out from .... ; work with origins only.
3374         (decls_for_scope) ... here; process nonlocalized list.
3375         (dwarf2out_ignore_block): Look for nonlocalized vars.
3376         * tree-ssa-live.c (remove_unused_scope_block_p): Look for nonlocalized
3377         vars.
3378         (dump_scope_block): Dump them.
3379         * tree-inline.c (remap_decls): Handle nonlocalized vars.
3380         (remap_block): Likewise.
3381         (can_be_nonlocal): New predicate.
3382         (copy_bind_expr, copy_gimple_bind): Update use of remap_block.
3383
3384 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3385
3386         * configure: Regenerate.
3387
3388 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3389
3390         * optc-gen.awk: No need to duplicate option flags twice.
3391         Reuse help texts for duplicate options which do not have any.
3392
3393         * gcc.c (display_help): Document --version.
3394
3395         * gcc.c (main): If print_help_list and verbose_flag, ensure
3396         driver output comes before subprocess output.
3397
3398         * optc-gen.awk: Assign all remaining fields to help string,
3399         space-separated, for multi-line help in *.opt.
3400
3401         * doc/invoke.texi (Warning Options): -Wsync-nand is C/C++ only.
3402         -Wno-pedantic-ms-format is for MinGW targets only.
3403
3404         * doc/options.texi (Option file format): Fix bad indentation,
3405         restoring dropped sentence.
3406
3407 2009-02-28  Jan Hubicka  <jh@suse.cz>
3408
3409         * tree-inline.c (tree_function_versioning): Output debug info.
3410
3411 2009-02-28  Jan Hubicka  <jh@suse.cz>
3412
3413         PR debug/39267
3414         * tree-inline.c (setup_one_parameter): Do not copy propagate
3415         arguments when not optimizing.
3416
3417 2009-02-28  H.J. Lu  <hongjiu.lu@intel.com>
3418
3419         PR target/39327
3420         * config/i386/sse.md (avx_addsubv8sf3): Correct item bits.
3421         (avx_addsubv4df3): Likewise.
3422         (*avx_addsubv4sf3): Likewise.
3423         (sse3_addsubv4sf3): Likewise.
3424         (*avx_addsubv2df3): Likewise.
3425         (sse3_addsubv2df3): Likewise.
3426         (avx_unpckhps256): Correct item selectors.
3427         (avx_unpcklps256): Likewise.
3428         (avx_unpckhpd256): Likewise.
3429         (avx_unpcklpd256): Likewise.
3430
3431 2009-02-28  Jan Hubicka  <jh@suse.cz>
3432
3433         * tree-inline.c (expand_call_inline): Avoid duplicate declarations of
3434         static vars.
3435         (copy_arguments_for_versioning): If var is declared don't declare it.
3436         (tree_function_versioning): First setup substitutions and then copy
3437         args.
3438
3439 2009-02-27  Jan Hubicka  <jh@suse.cz>
3440
3441         PR debug/39267
3442         * cgraph.h (varpool_output_debug_info): Remove.
3443         * cgraphunit.c (varpool_output_debug_info): Remove.
3444         * dwarf2out.c (deferred_locations_struct): New struct
3445         (deferred_locations): New type.
3446         (deferred_locations_list): New static var.
3447         (deffer_location): New function.
3448         (gen_variable_die): Use it.
3449         (decls_for_scope): Output info on local static vars.
3450         (dwarf2out_finish): Process deferred locations.
3451         * varpool.c (varpool_output_debug_info): Remove.
3452
3453 2009-02-27  Jan Hubicka  <jh@suse.cz>
3454
3455         PR debug/39267
3456         * tree.h (TREE_PROTECTED): Fix comment.
3457         (BLOCK_HANDLER_BLOCK): Remove.
3458         (struct tree_block): Remove handler_block add body_block.
3459         (inlined_function_outer_scope_p): New.
3460         (is_body_block): Remove.
3461         * dbxout.c (dbxout_block): Remove BLOCK_HANDLER_BLOCK.
3462         * dwarf2out.c (is_inlined_entry_point): Remove.
3463         (add_high_low_attributes): Use inlined_function_outer_scope_p.
3464         (gen_block_die): Use is_inlined_entry_point check.  Remove body block
3465         code.
3466         * langhooks.h (struct lang_hooks): Remove no_bodu_blocks.
3467         * gimplify.c (gimplify_expr): Gimplify body blocks.
3468         * tree-ssa-live.c (remove_unused_scope_block_p): Allow removing wrapper
3469         block with multiple subblocks.
3470         (dump_scope_block): Prettier output; dump more flags and info.
3471         (dump_scope_blocks): New.
3472         (remove_unused_locals): Use dump_scope_blocks.
3473         * tree-flow.h (dump_scope_blocks): Declare.
3474         * tree-cfg.c (execute_build_cfg): Dump scope blocks.
3475         * stmt.c (is_body_block): Remove.
3476         * tree-inline.c (remap_block): Copy BODY_BLOCK info.
3477         * langhooks-def.h (LANG_HOOKS_NO_BODY_BLOCKS): Remove.
3478
3479 2009-02-27  Sebastian Pop  <sebastian.pop@amd.com>
3480
3481         PR middle-end/39308
3482         * graphite.c (graphite_loop_normal_form): Do not call 
3483         number_of_iterations_exit from a gcc_assert.
3484
3485 2009-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3486
3487         * gcc/config/s390/s390.c (s390_swap_cmp): Look for conditional
3488         jumps if COND is NULL.
3489         (find_cond_jump): New function.
3490         (s390_z10_optimize_cmp): Handling for reg-reg compares added.
3491         * gcc/config/s390/s390.md: Remove z10_cobra attribute value.
3492
3493 2009-02-26  Uros Bizjak  <ubizjak@gmail.com>
3494
3495         * config/alpha/alpha.h (alpha_expand_mov): Return false if
3496         force_const_mem returns NULL_RTX.
3497
3498 2009-02-26  Jan Hubicka  <jh@suse.cz>
3499
3500         PR debug/39267
3501         * cgraph.h (varpool_output_debug_info): Remove.
3502         * cgraphunit.c (varpool_output_debug_info): Remove.
3503         * dwarf2out.c (deferred_locations_struct): New struct
3504         (deferred_locations): New type.
3505         (deferred_locations_list): New static var.
3506         (deffer_location): New function.
3507         (gen_variable_die): Use it.
3508         (decls_for_scope): Output info on local static vars.
3509         (dwarf2out_finish): Process deferred locations.
3510         * varpool.c (varpool_output_debug_info): Remove.
3511
3512 2009-02-25  H.J. Lu  <hongjiu.lu@intel.com>
3513
3514         PR rtl-optimization/39241
3515         * jump.c (rtx_renumbered_equal_p): Remove 2 superfluous calls
3516         to subreg_offset_representable_p.
3517
3518 2009-02-25  Paolo Bonzini  <bonzini@gnu.org>
3519
3520         * regmove.c (regmove_optimize): Conform to struct rtl_opt_pass
3521         execute function prototype.  Get f and nregs from max_reg_num
3522         and get_insns.  Remove the first backward pass as it's dead,
3523         guard the forward pass by flag_expensive_optimizations.
3524         (rest_of_handle_regmove): Delete.
3525         (pass_regmove): Replace it with regmove_optimize.
3526
3527 2009-02-25  Martin Jambor  <mjambor@suse.cz>
3528
3529         PR tree-optimization/39259
3530         * tree-inline.c (initialize_cfun): Remove asserts for calls_setjmp and
3531         calls_alloca function flags.
3532         (copy_bb): Set calls_setjmp and alls_alloca function flags if such
3533         calls are detected.
3534
3535 2009-02-25  Paolo Bonzini  <bonzini@gnu.org>
3536
3537         * regmove.c (discover_flags_reg, flags_set_1, mark_flags_life_zones,
3538         flags_set_1_rtx, flags_set_1_set): Delete.
3539         (regmove_optimize): Do not call mark_flags_life_zones.
3540
3541 2009-02-24  Julian Brown  <julian@codesourcery.com>
3542
3543         PR target/35965
3544         * config/arm/arm.c (require_pic_register): Only set
3545         cfun->machine->pic_reg once per function.
3546
3547 2009-02-24  Sandra Loosemore  <sandra@codesourcery.com>
3548
3549         * doc/invoke.texi (Link Options): Document an easier way to pass
3550         options that take arguments to the GNU linker using -Xlinker and -Wl.
3551
3552 2009-02-24  Steve Ellcey  <sje@cup.hp.com>
3553
3554         PR target/33785
3555         * doc/tm.texi (TARGET_C99_FUNCTIONS): Fix description.
3556
3557 2009-02-24  Richard Guenther  <rguenther@suse.de>
3558
3559         PR debug/39285
3560         * dwarf2out.c (gen_enumeration_type_die): Handle CONST_DECLs.
3561
3562 2009-02-24  Richard Guenther  <rguenther@suse.de>
3563             Zdenek Dvorak  <ook@ucw.cz>
3564
3565         PR tree-optimization/39233
3566         * tree-ssa-loop-ivopts.c (add_candidate_1): Do not except pointers
3567         from converting them to a generic type.
3568
3569 2009-02-23  Sebastian Pop  <sebastian.pop@amd.com>
3570
3571         PR tree-optimization/39260
3572         * graphite.c (harmful_stmt_in_bb): Stop a SCoP when the basic block
3573         contains a condition with a real type.
3574         (build_scop_conditions_1): Conditions are always last_stmt of a bb.
3575
3576 2009-02-23  Jason Merrill  <jason@redhat.com>
3577
3578         PR c++/38880
3579         * varasm.c (initializer_constant_valid_p) [PLUS_EXPR]: Check
3580         narrowing_initializer_constant_valid_p.
3581         (narrowing_initializer_constant_valid_p): Don't return 
3582         null_pointer_node for adding a pointer to itself.
3583
3584 2009-02-23  Jan Hubicka  <jh@suse.cz>
3585
3586         PR c/12245
3587         * ggc.h (htab_create_ggc): Use ggc_free to free hashtable when
3588         resizing.
3589
3590 2009-02-23  Jan Hubicka  <jh@suse.cz>
3591
3592         PR tree-optimization/37709
3593         * tree.c (block_ultimate_origin): Move here from dwarf2out.
3594         * tree.h (block_ultimate_origin): Declare.
3595         * dwarf2out.c (block_ultimate_origin): Move to tree.c
3596         * tree-ssa-live.c (remove_unused_scope_block_p):
3597         Eliminate blocks containig no instructions nor live variables nor
3598         nested blocks.
3599         (dump_scope_block): New function.
3600         (remove_unused_locals): Enable removal of dead blocks by default;
3601         enable dumping at TDF_DETAILS.
3602
3603 2009-02-21  H.J. Lu  <hongjiu.lu@intel.com>
3604
3605         * config/i386/i386.c (classify_argument): Don't allow COImode
3606         and OImode.
3607         (function_arg_advance_32): Don't allow OImode.
3608         (function_arg_32): Likewise.
3609         (function_value_32): Likewise.
3610         (return_in_memory_32): Likewise.
3611         (function_arg_64): Remove OImode comment.
3612
3613 2009-02-21  H.J. Lu  <hongjiu.lu@intel.com>
3614
3615         PR target/39261
3616         * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Use
3617         ix86_expand_vector_set for V4DImode in 64bit mode only.
3618         (ix86_expand_vector_init_one_var): Likewise.
3619
3620 2009-02-21  Sebastian Pop  <sebastian.pop@amd.com>
3621
3622         * graphite.c (graphite_trans_loop_block): Adjust tile size to 51.
3623
3624 2009-02-21  Richard Sandiford  <rdsandiford@googlemail.com>
3625
3626         PR bootstrap/39257
3627         * loop-iv.c: Revert last change.
3628         * emit-rtl.c: Likewise.
3629
3630 2009-02-21  H.J. Lu  <hongjiu.lu@intel.com>
3631
3632         PR target/39256
3633         * config/i386/i386.c (type_natural_mode): Remove an extra
3634         space in the warning message.
3635         (function_value_32): Handle 32-byte vector modes.
3636         (return_in_memory_32): Likewise.
3637
3638 2009-02-21  Richard Sandiford  <rdsandiford@googlemail.com>
3639
3640         * loop-iv.c (truncate_value): New function.
3641         (iv_subreg, get_iv_value, iv_number_of_iterations): Use it instead
3642         of lowpart_subreg.
3643         (lowpart_subreg): Move to...
3644         * emit-rtl.c: ...here.
3645
3646 2009-02-21  Danny Smith  <dannysmith@users.sourceforge.net>
3647
3648         * config/i386/winnt.c (i386_pe_asm_output_aligned_decl_common): Revert
3649         accidental and undocumented change at revision 140860.
3650
3651 2009-02-21  Joseph Myers  <joseph@codesourcery.com>
3652
3653         * config/arm/arm.c (arm_gimplify_va_arg_expr): Update prototype to
3654         take gimple_seq * arguments.
3655         (arm_mangle_type): Use CONST_CAST_TREE on type argument passed to
3656         types_compatible_p langhook.
3657
3658 2009-02-20  Mark Mitchell  <mark@codesourcery.com>
3659             Joseph Myers  <joseph@codesourcery.com>
3660
3661         * config/arm/arm.c (arm_builtin_va_list): New function.
3662         (arm_expand_builtin_va_start): Likewise.
3663         (arm_gimplify_va_arg_expr): Likewise.
3664         (TARGET_BUILD_BUILTIN_VA_LIST): Define.
3665         (TARGET_BUILD_BUILTIN_VA_START): Likewise.
3666         (TARGET_BUILD_BUILTIN_VA_ARG_EXPR): Likewise.
3667         (va_list_type): New variable.
3668         (arm_mangle_type): Mangle va_list_type appropriately.
3669
3670 2009-02-20  Jakub Jelinek  <jakub@redhat.com>
3671
3672         PR middle-end/39157
3673         * Makefile.in (loop-invariant.o): Depend on $(PARAMS_H).
3674         * params.h (LOOP_INVARIANT_MAX_BBS_IN_LOOP): Define.
3675         * params.def (loop-invariant-max-bbs-in-loop): New parameter.
3676         * opts.c (decode_options): Set loop-invariant-max-bbs-in-loop
3677         parameter to 1000 for -O1 by default.
3678         * doc/invoke.texi (loop-invariant-max-bbs-in-loop): Document new
3679         parameter.
3680         * loop-invariant.c: Include params.h.
3681         (move_loop_invariants): Don't call move_single_loop_invariants on
3682         very large loops.
3683
3684 2009-02-20  Jaka Mocnik  <jaka@xlab.si>
3685
3686         * calls.c (emit_library_call_value_1): Use slot_offset instead of
3687         offset when calculating bounds for indexing stack_usage_map.  Fixes
3688         a buffer overflow with certain target setups.
3689
3690 2009-02-20  Jakub Jelinek  <jakub@redhat.com>
3691
3692         PR target/39240
3693         * calls.c (expand_call): Clear try_tail_call if caller and callee
3694         disagree in promotion of function return value.
3695
3696 2009-02-19  Jakub Jelinek  <jakub@redhat.com>
3697
3698         PR target/39175
3699         * c-common.c (c_determine_visibility): If visibility changed and
3700         DECL_RTL has been already set, call make_decl_rtl to update symbol
3701         flags.
3702
3703 2009-02-19  H.J. Lu  <hongjiu.lu@intel.com>
3704
3705         PR c++/39188
3706         * varasm.c (assemble_variable): Don't check DECL_NAME when
3707         globalizing a variable.
3708
3709 2009-02-19  Joseph Myers  <joseph@codesourcery.com>
3710
3711         PR c/38483
3712         * builtins.c (gimplify_va_arg_expr): Evaluate the va_list
3713         expression before any __builtin_trap call.
3714         * c-typeck.c (build_function_call): Convert and check function
3715         arguments before generating a call to a trap.  Evaluate the
3716         function arguments before the trap.
3717
3718 2009-02-19  Uros Bizjak  <ubizjak@gmail.com>
3719
3720         PR target/39228
3721         * config/i386/i386.md (isinfxf2): Split from isinf<mode>2.
3722         (UNSPEC_FXAM_MEM): New unspec.
3723         (fxam<mode>2_i387_with_temp): New insn and split pattern.
3724         (isinf<mode>2): Use MODEF mode iterator.  Force operand[1] through
3725         memory using fxam<mode>2_i387_with_temp to remove excess precision.
3726
3727 2009-02-19  Richard Guenther  <rguenther@suse.de>
3728
3729         PR tree-optimization/39207
3730         PR tree-optimization/39074
3731         * tree-ssa-structalias.c (storedanything_id, var_storedanything,
3732         storedanything_tree): New.
3733         (do_ds_constraint): Simplify ANYTHING shortcutting.  Update
3734         the STOREDANYTHING solution if the lhs solution contains ANYTHING.
3735         (build_succ_graph): Add edges from STOREDANYTHING to all
3736         non-direct nodes.
3737         (init_base_vars): Initialize STOREDANYTHING.
3738         (compute_points_to_sets): Free substitution info after
3739         building the succ graph.
3740         (ipa_pta_execute): Likewise.
3741
3742         * tree-ssa-structalias.c (struct variable_info): Add may_have_pointers
3743         field.
3744         (do_ds_constraint): Do not add to special var or non-pointer
3745         field solutions.
3746         (type_could_have_pointers): Split out from ...
3747         (could_have_pointers): ... here.  For arrays use the element type.
3748         (create_variable_info_for): Initialize may_have_pointers.
3749         (new_var_info): Likewise.
3750         (handle_lhs_call): Make the HEAP variable unknown-sized.
3751         (intra_create_variable_infos): Use a type with pointers for
3752         PARM_NOALIAS, make it unknown-sized.
3753
3754 2009-02-18  H.J. Lu  <hongjiu.lu@intel.com>
3755
3756         PR target/39224
3757         * config/i386/i386.c (ix86_return_in_memory): Properly check ABI.
3758
3759 2009-02-18  Jason Merrill  <jason@redhat.com>
3760
3761         PR target/39179
3762         * tree-ssa-ccp.c (get_symbol_constant_value): Don't assume zero
3763         value if DECL_EXTERNAL.
3764         * tree-sra.c (sra_walk_gimple_assign): Likewise.
3765         * target.h (gcc_target::binds_local_p): Clarify "module".
3766         * tree.h (TREE_PUBLIC): Clarify "module".
3767
3768 2009-02-17  Xuepeng Guo  <xuepeng.guo@intel.com>
3769
3770         PR target/38891
3771         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Move the hunk of
3772         initialization for MS_ABI prior to the hunk of !TARGET_MMX.
3773
3774 2009-02-17  H.J. Lu  <hongjiu.lu@intel.com>
3775
3776         PR target/39082
3777         * c.opt (Wabi): Support C and ObjC.
3778         (Wpsabi): New.
3779
3780         * c-opts.c (c_common_handle_option): Handle OPT_Wabi.
3781
3782         * config/i386/i386.c (classify_argument): Warn once about the ABI
3783         change when passing union with long double.
3784
3785         * doc/invoke.texi: Update -Wabi for warning psABI changes.
3786
3787 2009-02-18  Joseph Myers  <joseph@codesourcery.com>
3788
3789         PR c/35447
3790         * c-parser.c (c_parser_compound_statement): Always enter and leave
3791         a scope.
3792
3793 2009-02-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3794
3795         PR target/34587
3796         * config/darwin.h (SUPPORTS_INIT_PRIORITY): Define.
3797
3798 2009-02-18  Jakub Jelinek  <jakub@redhat.com>
3799
3800         PR tree-optimization/36922
3801         * tree-data-ref.c (initialize_matrix_A): Handle BIT_NOT_EXPR.
3802         * tree-scalar-evolution.c (interpret_rhs_expr, instantiate_scev_1):
3803         Likewise.
3804
3805 2009-02-17  Richard Sandiford  <rdsandiford@googlemail.com>
3806
3807         * config/mips/mips.c (mips_override_options): Set flag_dwarf2_cfi_asm
3808         to 0 for EABI64.
3809
3810 2009-02-17  Richard Sandiford  <rdsandiford@googlemail.com>
3811
3812         * config/mips/mips.md (type): Reclassify lui_movf as "unknown".
3813
3814 2009-02-17  Richard Sandiford  <rdsandiford@googlemail.com>
3815
3816         * config/mips/mips.c (mips_gimplify_va_arg_expr): Fix invalid
3817         tree sharing.
3818
3819 2009-02-17  Ruan Beihong  <ruanbeihong@gmail.com>
3820             Richard Sandiford  <rdsandiford@googlemail.com>
3821
3822         * config/mips/mips.c (CODE_FOR_loongson_biadd): Delete.
3823         * config/mips/loongson.md (reduc_uplus_<mode>): Rename to...
3824         (loongson_biadd): ...this.
3825
3826 2009-02-17  Richard Guenther  <rguenther@suse.de>
3827
3828         PR tree-optimization/39202
3829         * tree-ssa-structalias.c (do_structure_copy): Before collapsing
3830         a var make sure to follow existing collapses.
3831
3832 2009-02-17  Richard Guenther  <rguenther@suse.de>
3833
3834         PR middle-end/39214
3835         * langhooks.c (lhd_print_error_function): Check for NULL block.
3836
3837 2009-02-17  Richard Guenther  <rguenther@suse.de>
3838
3839         PR tree-optimization/39204
3840         * tree-ssa-pre.c (phi_translate_1): Lookup the value-number
3841         of the PHI arg.
3842
3843 2009-02-17  Uros Bizjak  <ubizjak@gmail.com>
3844
3845         * config/soft-fp/double.h: Update from glibc CVS.
3846
3847 2009-02-17  Richard Guenther  <rguenther@suse.de>
3848
3849         PR tree-optimization/39207
3850         * tree-ssa-structalias.c (find_what_p_points_to): Do not emit
3851         strict-aliasing warnings for pointers pointing to NULL.
3852
3853 2009-02-16  Joseph Myers  <joseph@codesourcery.com>
3854
3855         PR c/35446
3856         * c-parser.c (c_parser_braced_init): Call pop_init_level when
3857         skipping until next close brace.
3858
3859 2009-02-16  H.J. Lu  <hongjiu.lu@intel.com>
3860
3861         PR target/37049
3862         * config/i386/i386.c (ix86_expand_push): Set memory alignment
3863         to function argument boundary.
3864
3865 2009-02-16  Hariharan Sandanagobalane  <hariharan@picochip.com>
3866
3867         * config/picochip/picochip.md (lea_add): Allow any nonimmediate
3868         in the lea_add. Reload eventually constraints it properly.
3869         * config/picochip/constraints.md : Remove the target constraint
3870         "b", since it is not needed anymore.
3871
3872 2009-02-16  Jakub Jelinek  <jakub@redhat.com>
3873
3874         * gthr-dce.h: Uglify function parameter and local variable names.
3875         * gthr-gnat.h: Likewise.
3876         * gthr-mipssde.h: Likewise.
3877         * gthr-nks.h: Likewise.
3878         * gthr-posix95.h: Likewise.
3879         * gthr-posix.h: Likewise.
3880         * gthr-rtems.h: Likewise.
3881         * gthr-single.h: Likewise.
3882         * gthr-solaris.h: Likewise.
3883         * gthr-tpf.h: Likewise.
3884         * gthr-vxworks.h: Likewise.
3885         * gthr-win32.h: Likewise.
3886
3887 2009-02-15  H.J. Lu  <hongjiu.lu@intel.com>
3888
3889         PR target/39196
3890         * config/i386/i386.md: Restrict the new peephole2 to move
3891         between MMX/SSE registers.
3892
3893 2009-02-15  Richard Guenther  <rguenther@suse.de>
3894
3895         Revert
3896         2009-02-13  Richard Guenther  <rguenther@suse.de>
3897
3898         * configure.ac: Enable LFS.
3899         * configure: Re-generate.
3900         * config.in: Likewise.
3901
3902 2009-02-13  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3903
3904         * config/spu/spu_internals.h (spu_sr, spu_sra, spu_srqw,
3905         spu_srqwbyte, spu_srqwbytebc): Define.
3906         * config/spu/spu-builtins.def (spu_sr, spu_sra, spu_srqw,
3907         spu_srqwbyte, spu_srqwbytebc): New overloaded builtins.
3908         * config/spu/spu.md ("shrqbybi_<mode>", "shrqbi_<mode>",
3909         "shrqby_<mode>"): New insn-and-split patterns.
3910         * config/spu/spu.c (expand_builtin_args): Determine and return
3911         number of operands using spu_builtin_description data.
3912         (spu_expand_builtin_1): Use it.
3913
3914 2009-02-13  Steve Ellcey  <sje@cup.hp.com>
3915
3916         PR target/38056
3917         * config/ia64/ia64.c (ia64_function_ok_for_sibcall): Check
3918         TARGET_CONST_GP.
3919
3920 2009-02-13  H.J. Lu  <hongjiu.lu@intel.com>
3921
3922         PR target/39149
3923         * config/i386/i386.c (override_options): Correct warning
3924         messages for -malign-loops, -malign-jumps and -malign-functions.
3925
3926 2009-02-13  H.J. Lu  <hongjiu.lu@intel.com>
3927
3928         PR target/39152
3929         * config/i386/i386.md: Restrict the new peephole2 to move
3930         between the general purpose registers.
3931
3932 2009-02-13  H.J. Lu  <hongjiu.lu@intel.com>
3933
3934         PR target/39162
3935         * config/i386/i386.c (type_natural_mode): Add a new argument.
3936         Return the original mode and warn ABI change if vector size is 32byte.
3937         (function_arg_advance): Updated.
3938         (function_arg): Likewise.
3939         (ix86_function_value): Likewise.
3940         (ix86_return_in_memory): Likewise.
3941         (ix86_sol10_return_in_memory): Likewise.
3942         (ix86_gimplify_va_arg): Likewise.
3943         (function_arg_32): Don't warn ABX ABI change here.
3944         (function_arg_64): Likewise.
3945
3946 2009-02-13  Bernd Schmidt  <bernd.schmidt@analog.com>
3947
3948         * loop-iv.c (implies_p): In the final case, test that operands 0
3949         of the two comparisons match.
3950
3951         * config/bfin/bfin.c (find_prev_insn_start): New function.
3952         (bfin_optimize_loop): Use it in some cases instead of PREV_INSN.
3953         (find_next_insn_start): Move.
3954
3955 2009-02-13  Richard Guenther  <rguenther@suse.de>
3956
3957         * configure.ac: Enable LFS.
3958         * configure: Re-generate.
3959         * config.in: Likewise.
3960
3961 2009-02-13  Joseph Myers  <joseph@codesourcery.com>
3962
3963         PR c/35444
3964         * c-parser.c (c_parser_parms_list_declarator): Discard pending
3965         sizes on syntax error after some arguments have been parsed.
3966
3967 2009-02-12  Jakub Jelinek  <jakub@redhat.com>
3968
3969         * doc/invoke.texi (-fira): Remove.
3970
3971 2009-02-12  H.J. Lu  <hongjiu.lu@intel.com>
3972
3973         * caller-save.c: Replace regclass.c with reginfo.c in comments.
3974         * recog.c: Likewise.
3975         * rtl.h: Likewise.
3976
3977 2009-02-12  Uros Bizjak  <ubizjak@gmail.com>
3978
3979         * longlong.h (sub_ddmmss): New for ia64. Ported from GMP 4.2.
3980         (umul_ppmm): Likewise.
3981         (count_leading_zeros): Likewise.
3982         (count_trailing_zeros): Likewise.
3983         (UMUL_TIME): Likewise.
3984
3985 2009-02-12  H.J. Lu  <hongjiu.lu@intel.com>
3986
3987         * config.gcc (ia64*-*-linux*): Add ia64/t-fprules-softfp and
3988         soft-fp/t-softfp to tmake_file.
3989
3990         * config/ia64/ia64.c (ia64_soft_fp_init_libfuncs): New.
3991         (ia64_expand_compare): Use HPUX library for TFmode only for HPUX.
3992         (ia64_builtins) [IA64_BUILTIN_COPYSIGNQ, IA64_BUILTIN_FABSQ,
3993         IA64_BUILTIN_INFQ]: New.
3994         (ia64_init_builtins): Initialize __builtin_infq,
3995         __builtin_fabsq and __builtin_copysignq if not HPUX.
3996         (ia64_expand_builtin): Handle IA64_BUILTIN_COPYSIGNQ,
3997         IA64_BUILTIN_FABSQ and IA64_BUILTIN_INFQ.
3998
3999         * config/ia64/lib1funcs.asm (__divtf3): Define only if
4000         SHARED is defined.
4001         (__fixtfti): Likewise.
4002         (__fixunstfti): Likewise.
4003         (__floattitf): Likewise.
4004
4005         * config/ia64/libgcc-glibc.ver: New.
4006         * config/ia64/t-fprules-softfp: Likewise.
4007         * config/ia64/sfp-machine.h: Likewise.
4008
4009         * config/ia64/linux.h (LIBGCC2_HAS_TF_MODE): New.
4010         (LIBGCC2_TF_CEXT): Likewise.
4011         (TF_SIZE): Likewise.
4012         (TARGET_INIT_LIBFUNCS): Likewise.
4013
4014         * config/ia64/t-glibc (SHLINB_MAPFILES):
4015         Add $(srcdir)/config/ia64/libgcc-glibc.ver.
4016
4017 2009-02-12  H.J. Lu  <hongjiu.lu@intel.com>
4018
4019         * config/i386/i386.c (construct_container): Rewrite processing
4020         BLKmode with X86_64_SSE_CLASS.
4021
4022 2009-02-12  Paolo Bonzini  <bonzini@gnu.org>
4023
4024         PR target/39152
4025         * config/i386/i386.md: Replace simplify_replace_rtx with
4026         replace_rtx in the new peephole2.
4027
4028 2009-02-12  Nathan Sidwell  <nathan@codesourcery.com>
4029
4030         * doc/invoke.texi (Optimize Options): Stop claiming inlining and
4031         loop unrolling do not happen at -O2.
4032
4033 2009-02-12  Michael Matz  <matz@suse.de>
4034
4035         * gcc.c (ASM_DEBUG_SPEC): Check for -g0.
4036
4037 2009-02-12  Jakub Jelinek  <jakub@redhat.com>
4038
4039         * dwarf2out.c (dwarf2out_finish): Force output of comp_unit_die
4040         for -g3.
4041
4042 2009-02-12  Ben Elliston  <bje@au.ibm.com>
4043
4044         * config/rs6000/rs6000.md (allocate_stack): Use _stack form of
4045         patterns when updating the back chain.  Missed in the 2009-02-10
4046         change.
4047
4048 2009-02-11  Janis Johnson  <janis187@us.ibm.com>
4049
4050         * doc/extend.texi (Decimal Floating Types): Update identifier of
4051         draft TR and list of missing support.
4052
4053 2009-02-11  Jakub Jelinek  <jakub@redhat.com>
4054
4055         PR middle-end/39154
4056         * gimplify.c (omp_notice_variable): If adding GOVD_SEEN
4057         bit to variable length decl's flags, add it also to its
4058         pointer replacement variable.
4059
4060 2009-02-11  Uros Bizjak  <ubizjak@gmail.com>
4061             Jakub Jelinek  <jakub@redhat.com>
4062
4063         PR target/39118
4064         * config/i386/i386.md (UNSPEC_MEMORY_BLOCKAGE): New constant.
4065         (memory_blockage): New expander.
4066         (*memory_blockage): New insn pattern.
4067         * config/i386/i386.c (ix86_expand_prologue): Use memory_blockage
4068         instead of general blockage at the end of function prologue when
4069         frame pointer is used to access red zone area.  Do not emit blockage
4070         when profiling, it is emitted in generic code.
4071         (ix86_expand_epilogue): Emit memory_blockage at the beginning of
4072         function epilogue when frame pointer is used to access red zone area.
4073
4074 2009-02-11  Paolo Bonzini  <bonzini@gnu.org>
4075
4076         PR target/38824
4077         * config/i386/i386.md: Add two new peephole2 to avoid mov followed
4078         by arithmetic with memory operands.
4079         * config/i386/predicates.md (commutative_operator): New.
4080
4081 2009-02-10  Janis Johnson  <janis187@us.ibm.com>
4082
4083         * doc/extend.texi (Fixed-Point Types): Break long paragraphs into
4084         bulleted lists.
4085
4086 2009-02-10  Eric Botcazou  <ebotcazou@adacore.com>
4087
4088         * alias.h (record_alias_subset): Declare.
4089         * alias.c (record_alias_subset): Make global.
4090
4091 2009-02-10  Nick Clifton  <nickc@redhat.com>
4092
4093         * tree-parloops.c: Change license to GPLv3.
4094         * ipa-struct-reorg.c: Change license to GPLv3.
4095         * ipa-struct-reorg.h: Change license to GPLv3.
4096
4097 2009-02-10  Steve Ellcey  <sje@cup.hp.com>
4098
4099         PR c/39084
4100         * c-decl.c (start_struct): Return NULL on error.
4101
4102 2009-02-10  Jakub Jelinek  <jakub@redhat.com>
4103
4104         PR middle-end/39124
4105         * cfgloopmanip.c (remove_path): Call remove_bbs after
4106         cancel_loop_tree, not before it.
4107
4108         PR target/39139
4109         * function.h (struct function): Add has_local_explicit_reg_vars bit.
4110         * gimplify.c (gimplify_bind_expr): Set it if local DECL_HARD_REGISTER
4111         VAR_DECLs were seen.
4112         * tree-ssa-live.c (remove_unused_locals): Recompute
4113         cfun->has_local_explicit_reg_vars.
4114         * tree-ssa-sink.c (statement_sink_location): Don't sink BLKmode
4115         copies or clearings if cfun->has_local_explicit_reg_vars.
4116
4117 2009-02-10  Uros Bizjak  <ubizjak@gmail.com>
4118
4119         PR target/39118
4120         * config/i386/i386.c (expand_prologue): Emit blockage at the end
4121         of function prologue when frame pointer is used to access
4122         red zone area.
4123
4124 2009-02-10  Richard Guenther  <rguenther@suse.de>
4125
4126         PR middle-end/39127
4127         * gimplify.c (gimple_regimplify_operands): Always look if
4128         we need to create a temporary.
4129
4130 2009-02-10  Richard Guenther  <rguenther@suse.de>
4131
4132         PR tree-optimization/39132
4133         * tree-loop-distribution.c (todo): New global var.
4134         (generate_memset_zero): Trigger TODO_rebuild_alias.
4135         (tree_loop_distribution): Return todo.
4136
4137 2009-02-10  H.J. Lu  <hongjiu.lu@intel.com>
4138
4139         PR target/39119
4140         * config/i386/i386.c (x86_64_reg_class): Remove X86_64_AVX_CLASS.
4141         (x86_64_reg_class_name): Removed.
4142         (classify_argument): Return 0 if bytes > 32.  Return 0 if the
4143         first one isn't X86_64_SSE_CLASS or any other ones aren't
4144         X86_64_SSEUP_CLASS when size > 16bytes.  Don't turn
4145         X86_64_SSEUP_CLASS into X86_64_SSE_CLASS if the preceded one
4146         is X86_64_SSEUP_CLASS.  Set AVX modes to 1 X86_64_SSE_CLASS
4147         and 3 X86_64_SSEUP_CLASS.
4148         (construct_container): Remove X86_64_AVX_CLASS.  Handle 4
4149         registers with 1 X86_64_SSE_CLASS and 3 X86_64_SSEUP_CLASS.
4150
4151 2009-02-10  Ben Elliston  <bje@au.ibm.com>
4152
4153         * config/rs6000/rs6000.md (allocate_stack): Always use an update
4154         form instruction to update the stack back chain word, even if the
4155         user has disabled the generation of update instructions.
4156         (movdi_<mode>_update_stack): New.
4157         (movsi_update_stack): Likewise.
4158         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Likewise,
4159         always use an update form instruction to update the stack back
4160         chain word.
4161
4162 2009-02-09  Sebastian Pop  <sebastian.pop@amd.com>
4163
4164         PR middle-end/38953
4165         * graphite.c (if_region_set_false_region): After moving a region in
4166         the false branch of a condition, remove the empty dummy basic block.
4167         (gloog): Remove wrong fix for PR38953.
4168
4169 2009-02-09  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4170
4171         * config/spu/spu.c (array_to_constant): Fix (latent) wrong-code
4172         generation due to implicit sign extension.
4173
4174 2009-02-09  Eric Botcazou  <ebotcazou@adacore.com>
4175
4176         PR middle-end/38981
4177         * tree-ssa-coalesce.c (add_coalesce): Cap the costs of coalesce pairs
4178         at MUST_COALESCE_COST-1 instead of MUST_COALESCE_COST.
4179
4180 2009-02-09  Richard Guenther  <rguenther@suse.de>
4181
4182         PR middle-end/35202
4183         * convert.c (convert_to_real): Disable (float)fn((double)x)
4184         to fnf(x) conversion if errno differences may occur and
4185         -fmath-errno is set.
4186
4187 2009-02-07  Anatoly Sokolov  <aesok@post.ru>
4188
4189         * config/avr/avr.c (avr_mcu_t): Add ata6289 device.
4190         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
4191         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
4192
4193 2009-02-06  Joseph Myers  <joseph@codesourcery.com>
4194
4195         PR c/35434
4196         * c-common.c (handle_alias_attribute): Disallow attribute for
4197         anything not a FUNCTION_DECL or VAR_DECL.
4198
4199 2009-02-06  Janis Johnson  <janis187@us.ibm.com>
4200
4201         PR c/39035
4202         * real.c (do_compare): Special-case compare of zero against
4203         decimal float value.
4204
4205 2009-02-06  Joseph Myers  <joseph@codesourcery.com>
4206
4207         PR c/36432
4208         * c-decl.c (grokdeclarator): Don't treat [] declarators in fields
4209         as indicating flexible array members unless the field itself is
4210         being declarared as the incomplete array.
4211
4212 2009-02-06  Jan Hubicka  <jh@suse.cz>
4213
4214         PR tree-optimization/38844
4215         * ipa-inline.c (try_inline): Stop inlining recursion when edge
4216         is already inlined.
4217
4218 2009-02-06  Richard Guenther  <rguenther@suse.de>
4219
4220         PR middle-end/38977
4221         * tree-cfg.c (need_fake_edge_p): Force a fake edge for
4222         fork because we may expand it as __gcov_fork.
4223
4224 2009-02-06  Nick Clifton  <nickc@redhat.com>
4225
4226         * config/m32c/m32c.h (PCC_BITFIELD_TYPE_MATTERS): Define to zero.
4227
4228 2009-02-06  Paolo Bonzini  <bonzini@gnu.org>
4229
4230         PR tree-optimization/35659
4231         * tree-ssa-sccvn.c (vn_constant_eq, vn_reference_eq, vn_nary_op_eq
4232         vn_phi_eq): Shortcut if hashcode does not match.
4233         (vn_reference_op_compute_hash): Do not call iterative_hash_expr for
4234         NULL operands.
4235         * tree-ssa-pre.c (pre_expr_hash): Look at hashcode if available,
4236         and avoid iterative_hash_expr.
4237         (FOR_EACH_VALUE_ID_IN_SET): New.
4238         (value_id_compare): Remove.
4239         (sorted_array_from_bitmap_set): Use FOR_EACH_VALUE_ID_IN_SET to
4240         sort expressions by value id.
4241
4242 2009-02-05  Kaz Kojima  <kkojima@gcc.gnu.org>
4243
4244         PR target/38991
4245         * config/sh/predicates.md (general_movsrc_operand): Don't check
4246         the subreg of system registers here.
4247
4248 2009-02-05  Jakub Jelinek  <jakub@redhat.com>
4249
4250         PR c++/39106
4251         * cgraphunit.c (cgraph_function_versioning): Clear also DECL_VIRTUAL_P
4252         on the copied decl.
4253
4254 2009-02-05  Paolo Bonzini  <bonzini@gnu.org>
4255
4256         PR rtl-optimization/39110
4257         * rtlanal.c (rtx_addr_can_trap_p_1): Shortcut unaligned
4258         addresses, not aligned ones.
4259
4260 2009-02-05  Daniel Berlin  <dberlin@dberlin.org>
4261             Richard Guenther  <rguenther@suse.de>
4262
4263         PR tree-optimization/39100
4264         * tree-ssa-structalias.c (do_ds_constraint): Actually do what the
4265         comment says and add edges.
4266
4267 2009-02-05  Joseph Myers  <joseph@codesourcery.com>
4268
4269         PR c/35435
4270         * c-common.c (handle_tls_model_attribute): Ignore attribute for
4271         non-VAR_DECLs without checking DECL_THREAD_LOCAL_P.
4272
4273 2009-02-04  Tobias Grosser  <grosser@fim.uni-passau.de> 
4274
4275         * graphite.c (bb_in_sese_p, sese_build_livein_liveouts_use,
4276         sese_build_livein_liveouts_bb, sese_build_livein_liveouts,
4277         register_bb_in_sese, new_sese, free_sese): Moved.
4278         (dot_scop_1, build_scop_loop_nests, build_loop_iteration_domains,
4279         outermost_loop_in_scop, build_scop_iteration_domain,
4280         expand_scalar_variables_ssa_name, get_vdef_before_scop,
4281         limit_scops): Use bb_in_sese_p instead of bb_in_scop_p.
4282         Use loop_in_sese_p instead of loop_in_scop_p.
4283         (new_graphite_bb, gloog): Do not initialize SCOP_BBS_B.
4284         (new_scop, free_scop): Remove SCOP_LOOP2CLOOG_LOOP and SCOP_BBS_B.
4285         (scopdet_basic_block_info): Fix bug in scop detection.
4286         (new_loop_to_cloog_loop_str, hash_loop_to_cloog_loop,
4287         eq_loop_to_cloog_loop): Remove.
4288         (nb_loops_around_loop_in_scop, nb_loop
4289         ref_nb_loops): Moved here...
4290         * graphite.h (ref_nb_loops): ... from here.
4291         (struct scop): Remove bbs_b bitmap and loop2cloog_loop.
4292         (loop_domain_dim, loop_iteration_vector_dim): Remove.
4293         (SCOP_BBS_B, bb_in_scop_p, loop_in_scop_p): Removed.
4294         * testsuite/gcc.dg/graphite/scop-19.c: New
4295
4296 2009-02-04  Paolo Bonzini  <bonzini@gnu.org>
4297             Hans-Peter Nilsson  <hp@axis.com>
4298
4299         PR rtl-optimization/37889
4300         * rtlanal.c (rtx_addr_can_trap_p_1): Add offset and size arguments.
4301         Move offset handling from PLUS to before the switch.  Use new
4302         arguments when considering SYMBOL_REFs too.
4303         (rtx_addr_can_trap_p): Pass dummy offset and size.
4304         (enum may_trap_p_flags): Remove.
4305         (may_trap_p_1): Pass size from MEM_SIZE.
4306
4307         PR rtl-optimization/38921
4308         * loop-invariant.c (find_invariant_insn): Use may_trap_or_fault_p.
4309         * rtl.h (may_trap_after_code_motion_p): Delete prototype.
4310         * rtlanal.c (may_trap_after_code_motion_p): Delete.
4311         (may_trap_p, may_trap_or_fault_p): Pass 0/1 as flags.
4312
4313 2009-02-04  H.J. Lu  <hongjiu.lu@intel.com>
4314
4315         AVX Programming Reference (January, 2009)
4316         * config/i386/sse.md (*vpclmulqdq): New.
4317
4318 2009-02-04  Jakub Jelinek  <jakub@redhat.com>
4319
4320         PR tree-optimization/38977
4321         PR gcov-profile/38292
4322         * calls.c (special_function_p): Disregard __builtin_ prefix.
4323
4324 2009-02-04  Hariharan Sandanagobalane  <hariharan@picochip.com>
4325
4326         * config/picochip/picochip.c (GO_IF_LEGITIMATE_ADDRESS): Disallow
4327         non-indexable addresses even before reload.
4328
4329 2009-02-03  Joseph Myers  <joseph@codesourcery.com>
4330
4331         PR c/29129
4332         * c-decl.c (grokdeclarator): Mark [*] arrays in field declarators
4333         as having variable size.  Do not give an error for unnamed
4334         parameters with [*] declarators.  Give a warning for type names
4335         with [*] declarators and mark them as variable size.
4336         * c-parser.c (c_parser_sizeof_expression): Do not give an error
4337         for sizeof applied to [*] type names.
4338
4339 2009-02-03  Andrew Pinski  <andrew_pinski@playstation.sony.com>
4340
4341         PR C++/36607
4342         * convert.c (convert_to_integer): Treat OFFSET_TYPE like INTEGER_TYPE.
4343
4344 2009-02-03  Jakub Jelinek  <jakub@redhat.com>
4345
4346         * gcc.c (process_command): Update copyright notice dates.
4347         * gcov.c (print_version): Likewise.
4348         * gcov-dump.c (print_version): Likewise.
4349         * mips-tfile.c (main): Likewise.
4350         * mips-tdump.c (main): Likewise.
4351
4352 2009-02-03  Joseph Myers  <joseph@codesourcery.com>
4353
4354         PR c/35433
4355         * c-typeck.c (composite_type): Set TYPE_SIZE and TYPE_SIZE_UNIT
4356         for composite type involving a zero-length array type.
4357
4358 2009-02-03  Jakub Jelinek  <jakub@redhat.com>
4359
4360         PR target/35318
4361         * function.c (match_asm_constraints_1): Skip over
4362         initial optional % in the constraint.
4363
4364         PR inline-asm/39059
4365         * c-parser.c (c_parser_postfix_expression): If fixed point is not
4366         supported, don't accept FIXED_CSTs.
4367         * c-decl.c (finish_declspecs): Error if fixed point is not supported
4368         and _Sat is used without _Fract/_Accum.  Set specs->type to
4369         integer_type_node for cts_fract/cts_accum if fixed point is not
4370         supported.
4371
4372 2009-02-02  Catherine Moore  <clm@codesourcery.com>
4373
4374         * sde.h (SUBTARGET_ARM_SPEC): Don't assemble -fpic code as -mabicalls.
4375
4376 2009-02-02  Richard Sandiford  <rdsandiford@googlemail.com>
4377
4378         * config/mips/mips.h (FILE_HAS_64BIT_SYMBOLS): New macro.
4379         (ABI_HAS_64BIT_SYMBOLS): Use it.
4380         (DWARF2_ADDR_SIZE): Use it instead of ABI_HAS_64BIT_SYMBOLS.
4381
4382 2009-02-02  Paul Brook  <paul@codesourcery.com>
4383
4384         * config/arm/arm.md (arm_addsi3): Add r/r/k alternative.
4385
4386 2009-02-02  Jakub Jelinek  <jakub@redhat.com>
4387
4388         PR inline-asm/39058
4389         * recog.h (asm_operand_ok): Add constraints argument.
4390         * recog.c (asm_operand_ok): Likewise.  If it is set, for digits
4391         recurse on matching constraint.
4392         (check_asm_operands): Pass constraints as 3rd argument to
4393         asm_operand_ok.  Don't look up matching constraint here.
4394         * stmt.c (expand_asm_operands): Pass NULL as 3rd argument
4395         to asm_operand_ok.
4396
4397 2009-02-02  Ben Elliston  <bje@au.ibm.com>
4398
4399         * doc/tm.texi (Storage Layout): Fix TARGET_ALIGN_ANON_BITFIELD and
4400         TARGET_NARROW_VOLATILE_BITFIELD macro names.
4401
4402 2009-01-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4403
4404         * doc/install.texi (hppa*-hp-hpux*): Update binutils and linker
4405         information.  Remove some obsolete information.  Reorganize.
4406
4407         * config/pa/fptr.c: Revert license to GPL 2.
4408         * config/pa/milli64.S: Likewise.
4409
4410 2009-01-31  Dave Korn  <dave.korn.cygwin@gmail.com>
4411
4412         PR target/38904
4413         * mkmap-flat.awk (END):  Use pe_dll command-line arg to pass
4414         LIBRARY name in, instead of hard-coding it.
4415         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*):  Add an
4416         extra target make frag to tmake_files according to EH model.
4417         (i[34567]86-*-mingw* | x86_64-*-mingw*):  Likewise.
4418         * config/i386/t-dw2-eh, config/i386/t-sjlj-eh:  Add new target
4419         frags that define makefile variable EH_MODEL appropriately.
4420         * config/i386/cygming.h (DWARF2_UNWIND_INFO):  Add comment.
4421         * config/i386/cygwin.h (LIBGCC_EH_EXTN):  Define to nothing or
4422         to "-sjlj" according to type of EH configured.
4423         (LIBGCC_SONAME):  Concatenate it to shared library base name.
4424         * config/i386/mingw32.h (LIBGCC_EH_EXTN):  Define to "_dw2" or
4425         to "_sjlj" according to type of EH configured.
4426         (LIBGCC_SONAME):  Concatenate it to shared library base name.
4427         * config/i386/t-cygming (SHLIB_SONAME):  Use EH_MODEL.
4428         (SHLIB_LINK):  Add missing semicolon to if-else construct.
4429         (SHLIB_MKMAP_OPTS):  Pass library name to mkmap-flat.awk as
4430         string value of "pe_dll" command-line option.
4431         * config/i386/t-cygwin (SHLIB_EH_EXTENSION):  New helper.
4432         (SHLIB_SONAME):  Use it when overriding t-cygming default.
4433         (SHLIB_IMPLIB):  Override t-cygming default.
4434         (SHLIB_MKMAP_OPTS):  Pass library name to mkmap-flat.awk as
4435         string value of "pe_dll" command-line option.
4436
4437 2009-01-31  Dave Korn  <dave.korn.cygwin@gmail.com>
4438
4439         PR target/38952
4440         * config/i386/i386.c (ix86_builtin_setjmp_frame_value): New.
4441         (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Override default to point at it.
4442
4443 2009-01-31  Richard Guenther  <rguenther@suse.de>
4444
4445         PR tree-optimization/38937
4446         * tree-ssa-structalias.c (do_sd_constraint): Do not shortcut
4447         computing the transitive closure.
4448
4449 2009-01-30  Richard Guenther  <rguenther@suse.de>
4450
4451         PR tree-optimization/39041
4452         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1):
4453         Propagate variable indices only if the types match for this stmt.
4454
4455 2009-01-30  Jakub Jelinek  <jakub@redhat.com>
4456
4457         PR target/39013
4458         * c-decl.c (pop_scope): Set DECL_EXTERNAL for functions declared
4459         inline but never defined.
4460
4461 2009-01-30  Wolfgang Gellerich  <gellerich@de.ibm.com>
4462
4463         * config/s390/s390.md (*insv<mode>_reg_extimm): Removed.
4464         (*insv_h_di_reg_extimm): New insn.
4465         (*insv_l<mode>_reg_extimm): New insn.
4466
4467 2009-01-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
4468
4469         * config/picochip/picochip.c (flag_conserve_stack): set
4470         PARAM_LARGE_STACK_FRAME and PARAM_STACK_FRAME_GROWTH to zero under
4471         fconserve-stack. Reduce call-overhead used by inliner.
4472
4473 2009-01-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
4474
4475         PR/38157
4476         * common.opt (flag_conserve_stack): Initialised to zero.
4477
4478 2009-01-30  Kai Tietz  <kai.tietz@onevision.com>
4479
4480         PR/39002
4481         * config/i386/i386.c (ix86_can_use_return_insn_p): Check for nsseregs.
4482         (ix86_expand_epilogue): Take nsseregs in account to use proper restore
4483         method.
4484
4485 2009-01-29  H.J. Lu  <hongjiu.lu@intel.com>
4486
4487         * ira-color.c (allocno_reload_assign): Update comments.
4488         * regmove.c (regmove_optimize): Likewise.
4489
4490         * ra.h: Removed.
4491
4492 2009-01-29  Robert Millan  <rmh@aybabtu.com>
4493
4494         * gcc/config.gcc: Recognize GNU/kOpenSolaris (*-*-kopensolaris*-gnu).
4495         * gcc/config/i386/kopensolaris-gnu.h: New file.  Undefine
4496         `MD_UNWIND_SUPPORT'.
4497         * gcc/config/kopensolaris-gnu.h: New file (based on kfreebsd-gnu.h).
4498
4499 2009-01-29  Kazu Hirata  <kazu@codesourcery.com>
4500
4501         PR tree-optimization/39007
4502         * tree-loop-distribution.c (generate_builtin): Use
4503         recompute_dominator to compute the immediate dominator of the
4504         basic block just after the loop.
4505
4506 2009-01-29  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
4507
4508         * config/i386/sol2-10.h [!HAVE_AS_IX86_DIFF_SECT_DELTA]
4509         (ASM_OUTPUT_DWARF_PCREL): Define.
4510
4511 2009-01-29  Vladimir Makarov  <vmakarov@redhat.com>
4512
4513         * doc/tm.texi (TARGET_IRA_COVER_CLASSES): Modify description.
4514         * doc/passes.texi: Remove entries about regclass, local-alloc, and
4515         global.  Modify entries about regmove and IRA.
4516
4517         * ra-conflict.c: Remove the file.
4518
4519         * reload.c (push_reload, find_dummy_reload): Remove flag_ira.
4520
4521         * tree-pass.h (pass_local_alloc, pass_global_alloc): Remove.
4522         (pass_regclass_init): Rename to pass_reginfo_init.
4523
4524         * cfgloopanal.c (estimate_reg_pressure_cost): Remove flag_ira.
4525
4526         * toplev.h (flag_ira): Remove.
4527
4528         * caller-save.c (setup_save_areas): Remove flag_ira.
4529
4530         * ira-color.c (ira_reuse_stack_slot, ira_mark_new_stack_slot): Ditto.
4531
4532         * global.c: Remove the file.
4533
4534         * opts.c (decode_options): Remove flag_ira.
4535
4536         * hard-reg-set.h (losing_caller_save_reg_set): Remove.
4537
4538         * regmove.c: Modify file description.
4539         (find_use_as_address, try_auto_increment): Define them only if
4540         AUTO_INC_DEC is defined.
4541         (replacement_quality, replace_in_call_usage, fixup_match_1,
4542         stable_and_no_regs_but_for_p): Remove.
4543         (reg_set_in_bb): Make it static.
4544         (regmove_optimize): Remove flag_ira and code which worked for
4545         !flag_ira.
4546
4547         * local-alloc.c: Remove the file.
4548
4549         * common.opt (fira): Remove.
4550
4551         * ira.c: Include except.h.
4552         (eliminable_regset): Move from global.c.
4553         (mark_elimination): Ditto.  Remove flag_ira.
4554         (reg_renumber, struct equivalence, reg_equiv, equiv_mem,
4555         equiv_mem_modified, validate_equiv_mem_from_store,
4556         validate_equiv_mem, equiv_init_varies_p, equiv_init_movable_p,
4557         contains_replace_regs, memref_referenced_p, memref_used_between_p,
4558         no_equiv, recorded_label_ref): Move from local-alloc.c.
4559         (update_equiv_regs): Ditto.  Make it static.
4560         (print_insn_chain, print_insn_chains): Move it from global.c.
4561         (pseudo_for_reload_consideration_p): Ditto.  Remove flag_ira.
4562         (build_insn_chain): Ditto.  Make it static.
4563         (ra_init_live_subregs): Move from ra-conflict.c.  Make it static.
4564         Rename to init_live_subregs.
4565         (gate_ira): Remove flag_ira.
4566
4567         * regclass.c: Rename reginfo.c.  Change file description.
4568         (FORBIDDEN_INC_DEC_CLASSES): Remove.
4569         (reg_class_superclasses, forbidden_inc_dec_class, in_inc_dec): Remove.
4570         (init_reg_sets_1): Remove code for evaluation of
4571         reg_class_superclasses and losing_caller_save_reg_set.
4572         (init_regs): Remove init_reg_autoinc.
4573         (struct costs, costs, init_cost, ok_for_index_p_nonstrict,
4574         ok_for_base_p_nonstrict): Remove.
4575         (regclass_init): Rename to reginfo_init.  Don't initialize init_cost.
4576         (pass_regclass_init): Rename to pass_reginfo_init.  Modify
4577         corresponding entries.
4578         (dump_regclass, record_operand_costs, scan_one_insn,
4579         init_reg_autoinc, regclass, record_reg_classes, copy_cost,
4580         record_address_regs, auto_inc_dec_reg_p): Remove.
4581         (gt-regclass.h): Rename to gt-reginfo.h.
4582
4583         * rtl.h (dump_global_regs, retry_global_alloc,
4584         build_insn_chain, dump_local_alloc, update_equiv_regs): Remove.
4585
4586         * Makefile.in (RA_H): Remove.
4587         (OBJS-common): Remove global.o, local-alloc.o, and ra-conflict.o.
4588         Rename regclass.o to reginfo.o.
4589         (regclass.o): Rename to reginfo.o.  Rename gt-regclass.h to
4590         gt-reginfo.h.
4591         (global.o, local-alloc.o, ra-conflict.o): Remove entries.
4592         (GTFILES): Rename regclass.c to reginfo.c.
4593
4594         * passes.c (init_optimization_passes): Remove pass_local_alloc and
4595         pass_global_alloc.  Rename pass_regclass_init to pass_reginfo_init.
4596
4597         * reload1.c (compute_use_by_pseudos, reload, count_pseudo,
4598         count_spilled_pseudo, find_reg, alter_reg, delete_output_reload):
4599         Remove flag_ira.
4600         (finish_spills): Ditto.  Remove code for !flag_ira.
4601         
4602 2009-01-29  Kenneth Zadeck  <zadeck@naturalbridge.com>
4603
4604         PR middle-end/35854
4605         * doc/invoke.texi (rtl debug options): Complete rewrite.
4606         * auto-inc-dec.c (pass_inc_dec): Rename pass from "auto-inc-dec"
4607         to auto_inc_dec".
4608         * mode-switching.c (pass_mode_switching): Rename pass from
4609         "mode-sw" to "mode_sw".
4610         * except.c (pass_convert_to_eh_ranges): Rename pass from
4611         "eh-ranges" to "eh_ranges".
4612         * lower-subreg.c (pass_lower_subreg): Renamed pass from "subreg"
4613         to "subreg1".
4614                 
4615         
4616 2009-01-29  Andrey Belevantsev  <abel@ispras.ru>
4617             Alexander Monakov  <amonakov@ispras.ru>
4618
4619         PR middle-end/38857
4620         * sel-sched.c (count_occurrences_1): Check that *cur_rtx is a hard
4621         register.
4622         (move_exprs_to_boundary): Change return type and pass through
4623         should_move from move_op.  Relax assert.  Update usage ...
4624         (schedule_expr_on_boundary): ... here.  Use should_move instead of
4625         cant_move.
4626         (move_op_orig_expr_found): Indicate that insn was disconnected from
4627         stream.
4628         (code_motion_process_successors): Do not call after_merge_succs
4629         callback if original expression was not found when traversing any of
4630         the branches.
4631         (code_motion_path_driver): Change return type.  Update prototype.
4632         (move_op): Update comment.  Add a new parameter (should_move).  Update
4633         prototype.  Set *should_move based on indication provided by
4634         move_op_orig_expr_found.
4635
4636 2009-01-28  Pat Haugen  <pthaugen@us.ibm.com>
4637
4638         * doc/invoke.texi (avoid-indexed-addresses): Document new option.
4639         * config/rs6000/rs6000-protos.h (avoiding_indexed_address_p): Declare.
4640         * config/rs6000/rs6000.opt (avoid-indexed-addresses): New option.
4641         * config/rs6000/rs6000.c (rs6000_override_options): Default
4642         avoid-indexed-addresses on for Power6, off for everything else.
4643         (avoiding_indexed_address_p): New function.
4644         (rs6000_legitimize_address): Use it.
4645         (rs6000_legitimate_address): Likewise.
4646         * config/rs6000/rs6000.md (movXX_updateX): Likewise
4647
4648 2009-01-28  Kazu Hirata  <kazu@codesourcery.com>
4649
4650         PR tree-optimization/38997
4651         * tree-loop-distribution.c (generate_memset_zero): Use
4652         POINTER_PLUS_EXPR for a pointer addition.
4653
4654 2009-01-28  Andreas Krebbel  <krebbel1@de.ibm.com>
4655
4656         * config/s390/s390.md (bswap<mode>2): New pattern added.
4657
4658 2009-01-28  Wolfgang Gellerich  <gellerich@de.ibm.com>
4659
4660         * config/s390/s390.md (*tls_load_31): Added type attribute.
4661
4662 2009-01-28  Wolfgang Gellerich  <gellerich@de.ibm.com>
4663
4664         * config/s390/s390.md: Fix a few comments.
4665
4666 2009-01-28  Wolfgang Gellerich  <gellerich@de.ibm.com>
4667
4668         * config/s390/s390.md (*tmsi_reg): Fixed z10prop attribute.
4669         (*tm<mode>_full): Fixed z10prop attribute.
4670         (*tst<mode>_extimm): Fixed z10prop attribute.
4671         (*tst<mode>_cconly_extimm): Fixed z10prop attribute.
4672         (*tstqiCCT_cconly): Fixed z10prop attribute.
4673         (*cmpsi_ccu_zerohi_rlsi): Fixed z10prop attribute.
4674         (*movsi_larl): Fixed z10prop attribute.
4675         (*movsi_zarch): Fixed z10prop attribute.
4676         (*movsi_eas): Fixed z10prop attribute.
4677         (*movhi): Fixed z10prop attribute.
4678         (*movqi): Fixed z10prop attribute.
4679         (*movstrictqi): Fixed z10prop attribute.
4680         (*mov<mode>): Fixed z10prop attribute.
4681         (*movcc): Fixed z10prop attribute.
4682         (*sethighpartdi_64): Fixed z10prop attribute.
4683         (*zero_extendhi<mode>2_z10): Fixed z10prop attribute.
4684         (*negdi2_sign_cc): Fixed z10prop attribute.
4685         (*negdi2_sign): Fixed z10prop attribute.
4686         (*absdi2_sign_cc): Fixed z10prop attribute.
4687         (*absdi2_sign): Fixed z10prop attribute.
4688         (*negabsdi2_sign_cc): Fixed z10prop attribute.
4689         (*negabsdi2_sign): Fixed z10prop attribute.
4690         (*cmp_and_trap_signed_int<mode>): Fixed z10prop attribute.
4691         (*cmp_and_trap_unsigned_int<mode>): Fixed z10prop attribute.
4692         (doloop_si64): Fixed z10prop attribute.
4693         (doloop_si31): Fixed z10prop attribute.
4694         (doloop_long): Fixed z10prop attribute.
4695         (indirect_jump): Fixed z10prop attribute.
4696         (nop): Fixed z10prop attribute.
4697         (main_base_64): Fixed z10prop attribute.
4698         (reload_base_64): Fixed z10prop attribute.
4699
4700 2009-01-28  Jakub Jelinek  <jakub@redhat.com>
4701
4702         PR rtl-optimization/38740
4703         * reorg.c (gate_handle_delay_slots): Avoid dbr scheduling
4704         if !optimize.
4705         * config/mips/mips.c (mips_reorg): Likewise.
4706
4707 2009-01-28  Richard Guenther  <rguenther@suse.de>
4708
4709         PR tree-optimization/38926
4710         * tree-ssa-pre.c (add_to_value): Assert we add only expressions
4711         with the correct value id to a value.
4712         (do_regular_insertion): Use the value number of edoubleprime
4713         for the value number of the expr.
4714
4715         Revert
4716         2008-08-21  Richard Guenther  <rguenther@suse.de>
4717
4718         * tree-ssa-pre.c (insert_into_preds_of_block): Before inserting
4719         a PHI ask VN if it is already available.
4720         * tree-ssa-sccvn.h (vn_phi_lookup): Declare.
4721         * tree-ssa-sccvn.c (vn_phi_lookup): Export.
4722
4723 2009-01-28  Jakub Jelinek  <jakub@redhat.com>
4724
4725         PR middle-end/38934
4726         * tree-vrp.c (extract_range_from_assert): For LE_EXPR and LT_EXPR
4727         set to varying whenever max has TREE_OVERFLOW set, similarly
4728         for GE_EXPR and GT_EXPR and TREE_OVERFLOW min.
4729
4730 2009-01-28  Richard Guenther  <rguenther@suse.de>
4731
4732         PR middle-end/38908
4733         * tree-ssa.c (warn_uninitialized_var): Do not warn for seemingly
4734         uninitialized aggregate uses in call arguments.
4735
4736 2009-01-28  Paolo Bonzini  <bonzini@gnu.org>
4737
4738         PR tree-optimization/38984
4739         * tree-ssa-structalias.c (get_constraints_for_1): Do not use
4740         the nothing_id variable if -fno-delete-null-pointer-checks.
4741
4742 2009-01-28  Uros Bizjak  <ubizjak@gmail.com>
4743
4744         PR target/38988
4745         * config/i386/i386.md (set_rip_rex64): Wrap operand 1 in label_ref.
4746         (set_got_offset_rex64): Ditto.
4747
4748 2009-01-27  H.J. Lu  <hongjiu.lu@intel.com>
4749
4750         PR target/38941
4751         * doc/extend.texi: Improve local variable with asm reg.
4752
4753 2009-01-27  Adam Nemet  <anemet@caviumnetworks.com>
4754
4755         * c.opt (Wpacked-bitfield-compat): Change init value to -1.
4756         * c-opts.c (c_common_post_options): If -W*packed-bitfield-compat
4757         was not supplied then set warn_packed_bitfield_compat to the
4758         default value of 1.
4759         * stor-layout.c (place_field): Check warn_packed_bitfield_compat
4760         against 1.
4761
4762 2009-01-27  Richard Guenther  <rguenther@suse.de>
4763
4764         PR tree-optimization/38503
4765         * cfgexpand.c (expand_gimple_basic_block): Ignore
4766         GIMPLE_CHANGE_DYNAMIC_TYPE during expansion.
4767         * tree-ssa-structalias.c (set_uids_in_ptset): Do not prune
4768         variables that cannot have TBAA applied.
4769         (compute_points_to_sets): Do not remove GIMPLE_CHANGE_DYNAMIC_TYPE
4770         statements.
4771
4772 2009-01-27  Uros Bizjak  <ubizjak@gmail.com>
4773
4774         PR middle-end/38969
4775         * calls.c (initialize_argument_information): Do not wrap complex
4776         arguments in SAVE_EXPR.
4777
4778 2009-01-26  Andreas Tobler  <a.tobler@schweiz.org>
4779
4780         * config/t-vxworks (LIBGCC2_INCLUDES): Fix typo.
4781         (INSTALL_LIBGCC): Revert typo commit.
4782
4783 2009-01-26  Richard Guenther  <rguenther@suse.de>
4784
4785         PR tree-optimization/38745
4786         * tree-ssa-alias.c (update_alias_info_1): Exclude RESULT_DECL
4787         from special handling.
4788
4789 2009-01-26  Richard Guenther  <rguenther@suse.de>
4790
4791         PR tree-optimization/38745
4792         * tree-ssa.c (execute_update_addresses_taken): Do not include
4793         variables that cannot possibly be a register in not_reg_needs.
4794         Do not clear TREE_ADDRESSABLE on vars that may not become
4795         registers.
4796         * tree-ssa.c (update_alias_info_1): Include those in the set
4797         of addressable vars.
4798
4799 2009-01-26  Richard Guenther  <rguenther@suse.de>
4800
4801         PR middle-end/38851
4802         * Makefile.in (tree-ssa-dse.o): Add langhooks.h.
4803         * tree-ssa-dse.c: Include langhooks.h
4804         (execute_simple_dse): Remove stores with zero size.
4805
4806 2009-01-24  Jakub Jelinek  <jakub@redhat.com>
4807
4808         PR c/38957
4809         * c-typeck.c (c_finish_return): Handle POINTER_PLUS_EXPR the same way
4810         as PLUS_EXPR.
4811
4812 2009-01-24  Julian Brown  <julian@codesourcery.com>
4813
4814         * config/arm/t-linux-eabi (LIB2FUNCS_STATIC_EXTRA): Add
4815         config/arm/linux-atomic.c.
4816         * config/arm/linux-atomic.c: New.
4817
4818 2009-01-24  Eric Botcazou  <ebotcazou@adacore.com>
4819
4820         * config/sparc/linux.h (DBX_REGISTER_NUMBER): Delete.
4821         * config/sparc/linux64.h (DBX_REGISTER_NUMBER): Likewise.
4822         * config/sparc/sysv4.h (DBX_REGISTER_NUMBER): Likewise.
4823
4824 2009-01-24  H.J. Lu  <hongjiu.lu@intel.com>
4825
4826         PR c/38938
4827         * c-opts.c (c_common_handle_option): Update warn_pointer_sign
4828         properly.
4829
4830 2009-01-24  Sebastian Pop  <sebastian.pop@amd.com>
4831
4832         PR tree-optimization/38953
4833         * graphite.c (graphite_verify): Add a call to verify_loop_closed_ssa.
4834         (scop_adjust_phis_for_liveouts): Initialize false_i to zero.
4835         (gloog): Split the exit of the scop when the scop exit is a loop exit.
4836         (graphite_transform_loops): Only call cleanup_tree_cfg if gloog
4837         changed the CFG.
4838
4839 2009-01-24  Paul Brook  <paul@codesourcery.com>
4840
4841         * config/arm/neon.md (neon_type): Move to arm.md.
4842         (neon_mov<VSTRUCT>): Add neon_type attribute.
4843         * config/arm/arm.md (neon_type): Move to here.
4844         (conds): Add "unconditioal" and use as default for NEON insns.
4845
4846 2009-01-24  Ben Elliston  <bje@au.ibm.com>
4847
4848         * bitmap.h (BITMAP_FREE): Eliminate `implicit conversion from
4849         void *' warning from -Wc++-compat.
4850         * Makefile.in (dominance.o-warn): Remove.
4851
4852 2009-01-23  Paolo Bonzini  <bonzini@gnu.org>
4853
4854         PR tree-optimization/38932
4855         * fold-const.c (fold_unary_ignore_overflow): New.
4856         * tree.h (fold_unary_ignore_overflow): Declare.
4857         * tree-ssa-ccp.c (ccp_fold): Use fold_unary_ignore_overflow.
4858         * tree-ssa-sccvn.c (visit_reference_op_load,
4859         simplify_unary_expression): Likewise.
4860
4861 2009-01-22  Adam Nemet  <anemet@caviumnetworks.com>
4862
4863         * c-decl.c (finish_struct): Move code to set DECL_PACKED after
4864         DECL_BIT_FIELD is alreay known.  Also inherit packed for bitfields
4865         regardless of their type.
4866         * c-common.c (handle_packed_attribute): Don't ignore packed on
4867         bitfields.
4868         * c.opt (Wpacked-bitfield-compat): New warning option.
4869         * stor-layout.c (place_field): Warn if offset of a field changed.
4870         * doc/extend.texi (packed): Mention the ABI change.
4871         * doc/invoke.texi (-Wpacked-bitfield-compat): Document.
4872         (Warning Options): Add it to the list.
4873
4874 2009-01-22  H.J. Lu  <hongjiu.lu@intel.com>
4875
4876         * c-opts.c (c_common_post_options): Fix a typo in comments.
4877
4878 2009-01-22  Steve Ellcey  <sje@cup.hp.com>
4879
4880         PR middle-end/38615
4881         * gimplify.c (gimplify_init_constructor): Fix promotion of const
4882         variables to static.
4883         * doc/invoke.texi (-fmerge-all-constants): Update description.
4884
4885 2009-01-22  Uros Bizjak  <ubizjak@gmail.com>
4886
4887         PR target/38931
4888         * config/i386/i386.md (*movsi_1): Use type "mmx" for alternative 2.
4889         (*movdi_1_rex64): Use type "mmx" for alternative 5.
4890
4891 2009-01-22  Richard Earnshaw  <rearnsha@arm.com>
4892
4893         * arm.h (DATA_ALIGNMENT): Align structures, unions and arrays to
4894         a word boundary.
4895         (LOCAL_ALIGNMENT): Similarly.
4896
4897 2009-01-22  Mark Shinwell  <shinwell@codesourcery.com>
4898             Joseph Myers  <joseph@codesourcery.com>
4899
4900         * config/arm/arm.c (all_architectures): Add iWMMXt2 entry.
4901         * config/arm/arm-cores.def: New ARM_CORE entry for iWMMXt2.
4902         * config/arm/arm-tune.md: Regenerate.
4903         * doc/invoke.texi (ARM Options): Document -mcpu=iwmmxt2 and
4904         -march=iwmmxt2.
4905
4906 2009-01-22  Mark Shinwell  <shinwell@codesourcery.com>
4907
4908         * config/arm/bpabi.h (SUBTARGET_EXTRA_ASM_SPEC): Bump EABI
4909         version number to five.
4910
4911 2009-01-22  Dodji Seketeli  <dodji@redhat.com>
4912
4913         PR c++/38930
4914         * c-decl.c (clone_underlying_type): Revert PR c++/26693 changes.
4915         * c-common.c (set_underlying_type): Likewise.
4916         (is_typedef_decl ): Likewise
4917         * tree.h: Likewise
4918         (set_underlying_type): Likewise.
4919         (is_typedef_type): Likewise.
4920
4921 2009-01-21  Vladimir Makarov  <vmakarov@redhat.com>
4922
4923         PR middle-end/38587
4924         * ira-color.c (coalesce_spill_slots): Don't coalesce allocnos
4925         crossing setjmps.
4926
4927 2009-01-21  Dave Korn  <dave.korn.cygwin@gmail.com>
4928
4929         PR bootstrap/37660
4930         * config/i386/cygwin.h (SHARED_LIBGCC_SPEC):  New helper macro.
4931         (LIBGCC_SPEC):  Don't define.
4932         (REAL_LIBGCC_SPEC):  Define instead, using SHARED_LIBGCC_SPEC.
4933
4934 2009-01-21  Uros Bizjak  <ubizjak@gmail.com>
4935
4936         PR rtl-optimization/38879
4937         * alias.c (base_alias_check): Unaligned access via AND address can
4938         alias all surrounding object types except those with sizes equal
4939         or wider than the size of unaligned access.
4940
4941 2009-01-21  Dodji Seketeli  <dodji@redhat.com>
4942
4943         PR c++/26693
4944         * c-decl.c (clone_underlying_type): Move this ...
4945         * c-common.c (set_underlying_type): ... here.
4946         Also, make sure the function properly sets TYPE_STUB_DECL() on
4947         the newly created typedef variant type.
4948         (is_typedef_decl ): New entry point.
4949         * tree.h: Added a new member member_types_needing_access_check to
4950         struct tree_decl_non_common.
4951         (set_underlying_type): New entry point.
4952         (is_typedef_type): Likewise.
4953
4954 2009-01-21  Bingfeng Mei  <bmei@broadcom.com>
4955
4956         * alias.c (walk_mems_1, walk_mems_2, insn_alias_sets_conflict_p):
4957         Check whether two instructions have memory references that
4958         belong to conflicting alias sets.  walk_mems_1 and walk_mems_2
4959         are helper functions for traversing.
4960         * alias.h (insn_alias_sets_confilict_p): New prototypes.
4961         * ddg.c (add_inter_loop_mem_dep): Call insn_alias_sets_conflict_p
4962         not to draw dependency edge for instructions with non-conflicting
4963         alias sets.
4964
4965 2009-01-20  Joseph Myers  <joseph@codesourcery.com>
4966
4967         PR other/38758
4968         * longlong.h: Update copyright years.  Use soft-fp license notice.
4969         Sync __clz_tab declaration with glibc.
4970
4971 2009-01-20  Steve Ellcey  <sje@cup.hp.com>
4972
4973         PR target/30687
4974         * doc/extend.texi (syscall_linkage): New.
4975         (version_id): Modify.
4976
4977 2009-01-20  Andrew Pinski  <andrew_pinski@playstation.sony.com>
4978             Richard Guenther  <rguenther@suse.de>
4979
4980         PR tree-optimization/38747
4981         PR tree-optimization/38748
4982         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Disable the VCE
4983         conversion if the base address is an indirect reference and the
4984         aliasing sets could cause issues.
4985
4986 2009-01-20  Sebastian Pop  <sebastian.pop@amd.com>
4987
4988         * common.opt (fgraphite, fgraphite-identity): Add comment for 
4989         explaining why these options are not documented.
4990
4991 2009-01-20  Sebastian Pop  <sebastian.pop@amd.com>
4992
4993         * graphite.c (stmt_simple_for_scop_p): Also handle cases when
4994         gimple_call_lhs is NULL.
4995
4996 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
4997
4998         PR target/38868
4999         * emit-rtl.c (adjust_address_1): Make sure memref is never
5000         overwritten.
5001
5002 2009-01-20  Ben Elliston  <bje@au.ibm.com>
5003
5004         * libgcov.c (__gcov_execl, __gcov_execlp, __gcov_execle): Remove
5005         const qualifier from arg parameter. Remove unnecessary cast to char *.
5006         * gcov-io.h (__gcov_execl, __gcov_execlp, __gcov_execle): Remove
5007         const qualifier from arg 2.
5008
5009 2009-01-19  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
5010
5011         * config/darwin.h: Add static-libgfortran to LINK_SPEC.
5012
5013 2009-01-19  Vladimir Makarov  <vmakarov@redhat.com>
5014
5015         PR c/38869
5016         * rtl.h (reinit_regs): New prototype.
5017         * regclass.c: Include ira.h.
5018         (reinit_regs): New.
5019         * Makefile.in (regclass.o): Add ira.h.
5020         * config/i386/i386.c (ix86_maybe_switch_abi): Use reinit_regs.
5021
5022 2009-01-18  H.J. Lu  <hongjiu.lu@intel.com>
5023
5024         PR target/38736
5025         * c-common.c (handle_aligned_attribute): Use
5026         ATTRIBUTE_ALIGNED_VALUE instead of BIGGEST_ALIGNMENT for
5027         default alignment value.
5028
5029         * c-cppbuiltin.c (c_cpp_builtins): Define __BIGGEST_ALIGNMENT__.
5030
5031         * defaults.h (ATTRIBUTE_ALIGNED_VALUE): New.
5032         * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Likewise.
5033
5034         * doc/extend.texi: Update __attribute__ ((aligned)).  Document
5035         __BIGGEST_ALIGNMENT__.
5036
5037         * doc/tm.texi: Document ATTRIBUTE_ALIGNED_VALUE.
5038
5039 2009-01-18  Richard Guenther  <rguenther@suse.de>
5040
5041         PR tree-optimization/38819
5042         * tree-flow.h (operation_could_trap_helper_p): Declare.
5043         * tree-eh.c (operation_could_trap_helper_p): Export.
5044         * tree-ssa-sccvn.h (vn_nary_may_trap): Declare.
5045         * tree-ssa-sccvn.c (vn_nary_may_trap): New function.
5046         * tree-ssa-pre.c (insert_into_preds_of_block): Check if we
5047         are about to insert a possibly trapping instruction and fail
5048         in this case.
5049
5050 2009-01-18  Andreas Schwab  <schwab@suse.de>
5051
5052         * doc/install.texi (Configuration): Remove obsolete paragraph
5053         about use of --with-gnu-ld with --with-gnu-as.
5054
5055 2009-01-18  Kazu Hirata  <kazu@codesourcery.com>
5056
5057         * doc/extend.texi, doc/gimple.texi, doc/invoke.texi,
5058         doc/md.texi, doc/sourcebuild.texi, doc/tm.texi: Fix typos.
5059         Follow spelling conventions.
5060
5061 2009-01-18  Ben Elliston  <bje@au.ibm.com>
5062
5063         * bitmap.c (bitmap_obstack_alloc_stat): Adjust cast to eliminate
5064         C++ warning about implicit conversion from void * to struct
5065         bitmap_head_def *.
5066         (bitmap_obstack_free): Likewise for bitmap_element *.
5067         * Makefile.in (bitmap.o-warn): Remove.
5068
5069 2009-01-17  Dave Korn  <dave.korn.cygwin@gmail.com>
5070
5071         * Makefile.in (BACKENDLIBS):  Reorder to match dependencies.
5072
5073 2009-01-17  Sebastian Pop  <sebastian.pop@amd.com>
5074             Tobias Grosser  <tobi.grosser@amd.com>
5075
5076         * graphite.c (graphite_trans_scop_block): Do not block single
5077         nested loops.
5078
5079 2009-01-16  Alexandre Oliva  <aoliva@redhat.com>
5080
5081         * ebitmap.h (ebitmap_iter_init): Initialize all fields.
5082         * ipa-struct-reorg.c (gen_struct_type): Replace known-true
5083         test with assertion.
5084
5085 2009-01-16  Richard Guenther  <rguenther@suse.de>
5086
5087         PR tree-optimization/38835
5088         PR middle-end/36227
5089         * fold-const.c (fold_binary): Remove PTR + INT -> (INT)(PTR p+ INT)
5090         and INT + PTR -> (INT)(PTR p+ INT) folding.
5091         * tree-ssa-address.c (create_mem_ref): Properly use POINTER_PLUS_EXPR.
5092
5093 2009-01-16  Adam Nemet  <anemet@caviumnetworks.com>
5094
5095         PR target/38554
5096         * expmed.c (expand_shift): With SHIFT_COUNT_TRUNCATED, don't lift
5097         the subreg from a lowpart subreg if it is also casting the value.
5098
5099 2009-01-16  Sebastian Pop  <sebastian.pop@amd.com>
5100             Tobias Grosser  <tobi.grosser@amd.com>
5101
5102         * graphite.c (compare_prefix_loops): New.
5103         (build_scop_canonical_schedules): Rewritten.
5104         (graphite_transform_loops): Move build_scop_canonical_schedules
5105         after build_scop_iteration_domain.
5106
5107 2009-01-16  Sebastian Pop  <sebastian.pop@amd.com>
5108             Tobias Grosser  <tobi.grosser@amd.com>
5109
5110         * graphite.c (add_conditions_to_domain): Add the loops to 
5111         the dimension of the iteration domain.  Do copy the domain
5112         only when it exists.
5113         (build_scop_conditions_1): Do not call add_conditions_to_domain.
5114         (add_conditions_to_constraints): New.
5115         (can_generate_code_stmt, can_generate_code): Removed.
5116         (gloog): Do not call can_generate_code.
5117         (graphite_transform_loops): Call add_conditions_to_constraints
5118         after building the iteration domain.
5119
5120 2009-01-16  Jakub Jelinek  <jakub@redhat.com>
5121
5122         PR tree-optimization/38789
5123         * tree-ssa-threadedge.c
5124         (record_temporary_equivalences_from_stmts_at_dest): Ignore calls to
5125         __builtin_constant_p.
5126
5127 2009-01-16  Kenneth Zadeck  <zadeck@naturalbridge.com>
5128
5129         * dce.c (delete_unmarked_insns): Reversed the order that insns are
5130         examined before deleting them.
5131         
5132 2009-01-16  Richard Earnshaw  <rearnsha@arm.com>
5133
5134         * function.c (aggregate_value_p): Correctly extract the function
5135         type from CALL_EXPR_FN lookup.
5136
5137 2009-01-16  Hariharan Sandanagobalane  <hariharan@picochip.com>
5138
5139         * config/picochip/picochip.c (picochip_override_options): Revert
5140         CFI asm flag disable commited previously.
5141
5142 2009-01-15  Sebastian Pop  <sebastian.pop@amd.com>
5143             Tobias Grosser  <tobi.grosser@amd.com>
5144             Jan Sjodin  <jan.sjodin@amd.com>
5145
5146         * graphite.c (scan_tree_for_params): On substractions negate
5147         all the coefficients of the term.
5148         (clast_to_gcc_expression_red): New.  Handle reduction expressions
5149         of more than two operands.
5150         (clast_to_gcc_expression): Call clast_to_gcc_expression_red.
5151         (get_vdef_before_scop): Handle also the case of default definitions.
5152
5153 2009-01-15  Richard Sandiford  <rdsandiford@googlemail.com>
5154
5155         * caller-save.c (add_used_regs_1, add_used_regs): New functions.
5156         (insert_one_insn): Use them instead of REG_DEAD and REG_INC notes.
5157         Also use them when walking CALL_INSN_FUNCTION_USAGE.
5158
5159 2009-01-15  H.J. Lu  <hongjiu.lu@intel.com>
5160             Joey Ye  <joey.ye@intel.com>
5161
5162         PR middle-end/37843
5163         * cfgexpand.c (expand_stack_alignment): Don't update stack
5164         boundary nor check incoming stack boundary here.
5165         (gimple_expand_cfg): Update stack boundary and check incoming
5166         stack boundary here.
5167
5168 2009-01-15  Kenneth Zadeck  <zadeck@naturalbridge.com>
5169
5170         * dce.c (find_call_stack_args, delete_unmarked_insns): Fixed comments.
5171         
5172 2009-01-14  Jakub Jelinek  <jakub@redhat.com>
5173
5174         PR rtl-optimization/38245
5175         * calls.c (expand_call): Add stack arguments to
5176         CALL_INSN_FUNCTION_USAGE even for pure calls (when
5177         ACCUMULATE_OUTGOING_ARGS) and even for args partially passed
5178         in regs and partially in memory or BLKmode arguments.
5179         (emit_library_call_value_1): Add stack arguments to
5180         CALL_INSN_FUNCTION_USAGE even for pure calls (when
5181         ACCUMULATE_OUTGOING_ARGS).
5182         * dce.c: Include tm_p.h.
5183         (find_call_stack_args): New function.
5184         (deletable_insn_p): Call it for CALL_P insns.  Add ARG_STORES
5185         argument.
5186         (mark_insn): Call find_call_stack_args for CALL_Ps.
5187         (prescan_insns_for_dce): Walk insns backwards in bb rather than
5188         forwards.  Allocate and free arg_stores bitmap if needed, pass it
5189         down to deletable_insn_p, don't mark stores set in arg_stores
5190         bitmap, clear the bitmap at the beginning of each bb.
5191         * Makefile.in (dce.o): Depend on $(TM_P_H).
5192
5193 2009-01-14  Michael Meissner  <gnu@the-meissners.org>
5194
5195         PR target/22599
5196         * config/i386/i386.c (print_operand): Add tests for 'D', 'C', 'F', 'f'
5197         to make sure the insn is a conditional test (bug 22599).  Reformat a
5198         few long lines.
5199
5200 2009-01-14  Sebastian Pop  <sebastian.pop@amd.com>
5201
5202         PR middle-end/38431
5203         * graphite.c (get_vdef_before_scop, scop_adjust_vphi): New.
5204         (scop_adjust_phis_for_liveouts): Call scop_adjust_vphi.
5205         (gloog): Do not call cleanup_tree_cfg.
5206         (graphite_transform_loops): Call cleanup_tree_cfg after all 
5207         scops have been code generated.
5208
5209 2009-01-14  Basile Starynkevitch  <basile@starynkevitch.net>
5210         * doc/gty.texi (Invoking the garbage collector): Added new node
5211         and section documenting ggc_collect.
5212
5213 2009-01-14  Richard Guenther  <rguenther@suse.de>
5214
5215         PR tree-optimization/38826
5216         PR middle-end/38477
5217         * tree-ssa-structalias.c (emit_alias_warning): Emit the pointer
5218         initialization notes only if we actually emitted a warning.
5219         (intra_create_variable_infos): Add constraints for a result decl
5220         that is passed by hidden reference.
5221         (build_pred_graph): Mark all related variables non-direct on
5222         address-taking.
5223
5224 2009-01-14  Nick Clifton  <nickc@redhat.com>
5225
5226         * ira-conflicts.c: Include addresses.h for the definition of
5227         base_reg_class.
5228         (ira_build_conflicts): Use base_reg_class instead of BASE_REG_CLASS.
5229         * Makefile.in: Add a dependency of ira-conflicts.o on addresses.h.
5230
5231 2009-01-13  Vladimir Makarov  <vmakarov@redhat.com>
5232
5233         PR target/38811
5234         * Makefile.in (ira-lives.o): Add except.h.
5235
5236         * ira-lives.c: Include except.h.
5237         (process_bb_node_lives): Process can_throw_internal.
5238
5239 2009-01-13  Jakub Jelinek  <jakub@redhat.com>
5240
5241         PR rtl-optimization/38774
5242         * combine.c (simplify_set): When undoing cc_use change, don't do
5243         PUT_CODE on the newly created comparison, but instead put back the
5244         old comparison.
5245
5246 2009-01-13  Joseph Myers  <joseph@codesourcery.com>
5247
5248         * doc/invoke.texi (ARM Options): Update lists of -mcpu and -march
5249         values.  Remove duplicate arm8 entry.
5250
5251 2009-01-13  Sebastian Pop  <sebastian.pop@amd.com>
5252
5253         PR tree-optimization/38786
5254         * graphite.c (expand_scalar_variables_ssa_name): New, outlined from
5255         the SSA_NAME case of expand_scalar_variables_expr.
5256         Set the type of an expression to the type of its assign statement.
5257         (expand_scalar_variables_expr): Also gather the scalar computation
5258         used to index the memory access.  Do not pass loop_p.
5259         Fix comment.  Stop recursion on tcc_constant or tcc_declaration.
5260         (expand_scalar_variables_stmt): Pass to expand_scalar_variables_expr
5261         the gimple_stmt_iterator where it inserts new code.
5262         Do not pass loop_p.
5263         (copy_bb_and_scalar_dependences): Do not pass loop_p.
5264         (translate_clast): Update call to copy_bb_and_scalar_dependences.
5265
5266 2009-01-13  Sebastian Pop  <sebastian.pop@amd.com>
5267
5268         * graphite.h (debug_value): Removed.
5269         * graphite.c (debug_value): Removed.
5270
5271 2009-01-13  Richard Earnshaw  <rearnsha@arm.com>
5272
5273         * config/arm/arm.c (output_move_double): Don't synthesize thumb-2
5274         ldrd/strd with two 32-bit instructions.
5275
5276 2009-01-13  Richard Earnshaw  <rearnsha@arm.com>
5277
5278         * config/arm/arm.c (struct processors): Pass for speed down into
5279         cost helper functions.
5280         (const_ok_for_op): Handle COMPARE and inequality nodes.
5281         (arm_rtx_costs_1): Rewrite.
5282         (arm_size_rtx_costs): Update prototype.
5283         (arm_rtx_costs): Pass speed down to helper functions.
5284         (arm_slowmul_rtx_costs): Rework cost calculations.
5285         (arm_fastmul_rtx_costs, arm_xscale_rtx_costs): Likewise.
5286         (arm_9e_rtx_costs): Likewise.
5287
5288 2009-01-13  Uros Bizjak  <ubizjak@gmail.com>
5289
5290         * config/alpha/alpha.c (alpha_legitimate_address_p): Explicit
5291         relocations of local symbols wider than UNITS_PER_WORD are not valid.
5292         (alpha_legitimize_address): Do not split local symbols wider than
5293         UNITS_PER_WORD into HIGH/LO_SUM parts.
5294
5295 2009-01-13  Danny Smith  <dannysmith@users.sourceforge.net>
5296
5297         PR bootstrap/38580
5298         * gcc.c (process_command): Replace call to execvp with calls
5299         to pex_one and exit.
5300
5301 2009-01-03  Anatoly Sokolov  <aesok@post.ru>
5302
5303         PR target/29141
5304         * config/avr/t-avr (LIB1ASMFUNCS): Add _tablejump_elpm.
5305         * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Add
5306         variant for devices with 3-byte PC.
5307         (__tablejump_elpm__): New.
5308
5309 2009-01-12  Jakub Jelinek  <jakub@redhat.com>
5310
5311         PR c/32041
5312         * c-parser.c (c_parser_postfix_expression): Allow `->' in
5313         offsetof member-designator, handle it as `[0].'.
5314
5315 2009-01-12  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5316
5317         * pa.c (pa_asm_output_mi_thunk): Use pc-relative branch to thunk
5318         function when not using named sections on targets with named sections
5319         if branch distance is less than 262132.
5320
5321 2009-01-12  Richard Earnshaw  <rearnsha@arm.com>
5322
5323         * combine.c (combine_instructions):  Recompute
5324         optimize_this_for_speed_p  for each BB in the main combine loop.
5325
5326 2009-01-12  Tomas Bily  <tbily@suse.cz>
5327
5328         PR middlend/38385
5329         * tree-loop-distribution.c (prop_phis): New function.
5330         (generate_builtin): Call prop_phis.
5331         * testsuite/gcc.dg/tree-ssa/pr38385.c: New file.
5332
5333 2009-01-12  Jakub Jelinek  <jakub@redhat.com>
5334
5335         PR tree-optimization/38807
5336         * tree-ssa-reassoc.c (remove_visited_stmt_chain): Don't look at
5337         gimple_visited_p unless stmt is GIMPLE_ASSIGN.
5338
5339 2009-01-11  Adam Nemet  <anemet@caviumnetworks.com>
5340
5341         * expmed.c (store_bit_field_1): Properly truncate the paradoxical
5342         subreg of op0 to the original op0.
5343
5344 2009-01-11  Laurent GUERBY  <laurent@guerby.net>
5345
5346         * doc/sourcebuild.texi (Source Tree): Move up intl and fixinc.
5347         
5348 2009-01-11  Markus Schoepflin  <markus.schoepflin@comsoft.de>
5349
5350         PR debug/7055
5351         * gcc/mips-tfile.c (parse_def): Fix parsing of def strings
5352         starting with digits.
5353
5354 2009-01-10  Jakub Jelinek  <jakub@redhat.com>
5355
5356         PR target/38695
5357         * config/arm/arm.c (arm_is_long_call_p): Don't call
5358         arm_function_in_section_p if decl isn't a FUNCTION_DECL.
5359
5360 2009-01-09  Steven Bosscher  <steven@gcc.gnu.org>
5361
5362         * regrename.c (regrename_optimize): Fix dumping.
5363         (find_oldest_value_reg): Preserve REG_POINTER.
5364         (copy_hardreg_forward_1): Likewise.
5365
5366 2009-01-09  Diego Novillo  <dnovillo@google.com>
5367
5368         * gimple.h (struct gimple_statement_base) <uid>: Document
5369         the restrictions on its use.
5370         (gimple_uid): Tidy.
5371         (gimple_set_uid): Tidy.
5372
5373 2009-01-09  Jakub Jelinek  <jakub@redhat.com>
5374
5375         * config/i386/i386.c (ix86_expand_movmem, ix86_expand_setmem): Add
5376         zero guard even if align_bytes != 0 and count is smaller than
5377         size_needed.
5378
5379 2009-01-09  Vladimir Makarov  <vmakarov@redhat.com>
5380
5381         PR rtl-optimization/38495
5382         * ira-emit.c (print_move_list, ira_debug_move_list): New functions.
5383         (add_range_and_copies_from_move_list): Print all added ranges.
5384         Add ranges to memory optimized destination.
5385
5386 2009-01-09  Jakub Jelinek  <jakub@redhat.com>
5387
5388         PR target/38686
5389         PR target/38708
5390         * config/i386/i386.c (override_options): Reject
5391         -mstringop-strategy=rep_8byte with -m32.
5392         (ix86_expand_movmem): For size_needed == 1 set epilogue_size_needed
5393         to 1.  Do count comparison against epilogue_size_needed at compile
5394         time even when count_exp was constant forced into register.  For
5395         size_needed don't jump to epilogue, instead just avoid aligning
5396         and invoke the body algorithm.  If need_zero_guard, add zero guard
5397         even if count is non-zero, but smaller than size_needed + number of
5398         bytes that could be stored for alignment.
5399         (ix86_expand_setmem): For size_needed == 1 set epilogue_size_needed
5400         to 1.  If need_zero_guard, add zero guard even if count is non-zero,
5401         but smaller than size_needed + number of bytes that could be stored
5402         for alignment.  Compare size_needed with epilogue_size_needed instead
5403         of desired_align - align, don't adjust size_needed, pass
5404         epilogue_size_needed to the epilogue expanders.
5405
5406         PR c/35742
5407         * c-pretty-print.c (pp_c_expression): Handle GOTO_EXPR like BIND_EXPR.
5408
5409 2009-01-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5410
5411         * pa.c (last_address): Change to unsigned.
5412         (update_total_code_bytes): Change argument to unsigned.  Don't
5413         check if insn addresses are set.
5414         (pa_output_function_epilogue): Set last_address to UINT_MAX if insn
5415         addresses are not set.
5416         (pa_asm_output_mi_thunk): Handle wrap when updating last_address.
5417
5418 2009-01-09  Nick Clifton  <nickc@redhat.com>
5419
5420         * config/sh/symbian.c: Replace uses of DECL_INLINE with
5421         DECL_DECLARED_INLINE_P.
5422
5423 2009-01-09  Jakub Jelinek  <jakub@redhat.com>
5424
5425         PR middle-end/38347
5426         * dojump.c (do_jump_by_parts_zero_rtx): Use mode instead of
5427         GET_MODE (op0) in operand_subword_force calls.
5428
5429         PR middle-end/38771
5430         * fold-const.c (fold_unary): For COMPOUND_EXPR and COND_EXPR,
5431         fold_convert arg0 operands to TREE_TYPE (op0) first.
5432
5433 2009-01-08  Vladimir Makarov  <vmakarov@redhat.com>
5434
5435         * params.def (ira-max-conflict-table-size): Decrease default value
5436         to 1000.
5437
5438 2009-01-08  Jakub Jelinek  <jakub@redhat.com>
5439
5440         PR tree-optimization/37031
5441         * lambda-code.c (lambda_collect_parameters): Call pointer_set_destroy
5442         on parameter_set.
5443         (build_access_matrix): Reserve correct size for AM_MATRIX vector,
5444         allocate it using gc instead of heap, use VEC_quick_push instead of
5445         VEC_safe_push.
5446         * graphite.c (build_access_matrix): Allocate AM_MATRIX vector using gc
5447         instead of heap, use VEC_quick_push instead of VEC_safe_push.
5448         * tree-data-ref.h (struct access_matrix): Change matrix to gc
5449         allocated vector from heap allocated.
5450         * lambda.h: Add DEF_VEC_ALLOC_P for gc allocated lambda_vector.
5451         * tree-loop-linear.c (linear_transform_loops): Allocate nest
5452         vector only after perfect_loop_nest_depth call.
5453
5454 2009-01-08  Sebastian Pop  <sebastian.pop@amd.com>
5455             Jan Sjodin  <jan.sjodin@amd.com>
5456
5457         PR tree-optimization/38559
5458         * graphite.c (debug_value, copy_constraint,
5459         swap_constraint_variables, scale_constraint_variable, ): New.
5460         (get_lower_bound, get_upper_bound): Removed.
5461         (graphite_trans_bb_strip_mine): Clean up this code that works
5462         only for constant number of iterations.  Fully copy upper and
5463         lower bound constraints, not only the constant part of them.
5464         * graphite.h (debug_value): Declared.
5465
5466 2009-01-08  Ira Rosen  <irar@il.ibm.com>
5467
5468         PR tree-optimization/37194
5469         * tree-vect-transform.c (vect_estimate_min_profitable_iters):
5470         Don't add the cost of cost model guard in prologue to scalar 
5471         outside cost in case of known number of iterations.
5472
5473 2009-01-07  Nathan Froyd  <froydnj@codesourcery.com>
5474             Alan Modra  <amodra@bigpond.net.au>
5475
5476         * config/rs6000/rs6000.c (rs6000_legitimize_address): Check for
5477         non-word-aligned REG+CONST addressing.
5478
5479 2009-01-07  Uros Bizjak  <ubizjak@gmail.com>
5480
5481         PR target/38706
5482         * config/alpha/alpha.c (alpha_end_function): For TARGET_ABI_OSF, call
5483         free_after_compilation when outputting a thunk.
5484         (alpha_output_mi_thunk_osf): Assert that we are processing a thunk.
5485         Do not call free_after_compilation here.
5486
5487 2009-01-07  Uros Bizjak  <ubizjak@gmail.com>
5488
5489         * config/i386/i386.c (ix86_target_string): Use ARRAY_SIZE.
5490         (ix86_valid_target_attribute_inner_p): Ditto.
5491
5492 2009-01-07  Jan Sjodin  <jan.sjodin@amd.com>
5493
5494         PR tree-optimization/38492
5495         PR tree-optimization/38498
5496         * tree-check.c (operator_is_linear, scev_is_linear_expression): New.
5497         * tree-chrec.h (scev_is_linear_expression): Declared.
5498         * graphite.c (graphite_cannot_represent_loop_niter): New.
5499         (scopdet_basic_block_info): Call graphite_cannot_represent_loop_niter.
5500         (graphite_loop_normal_form): Use gcc_assert.
5501         (scan_tree_for_params): Use CASE_CONVERT.
5502         (phi_node_is_iv, bb_contains_non_iv_scalar_phi_nodes): New.
5503         (build_scop_conditions_1): Call bb_contains_non_iv_scalar_phi_nodes.
5504         Use gcc_assert.  Discard scops that contain unhandled cases.
5505         (build_scop_conditions): Return a boolean status for unhandled cases.
5506         (strip_mine_profitable_p): Print the loop number, not its depth.
5507         (is_interchange_valid): Pass the depth of the loop nest, don't
5508         recompute it wrongly.
5509         (graphite_trans_bb_block): Same.
5510         (graphite_trans_bb_block): Print tentative of loop blocking.
5511         (graphite_trans_scop_block): Do not print that the loop has been
5512         blocked.
5513         (graphite_transform_loops): Do not handle scops that contain condition
5514         scalar phi nodes.
5515
5516 2009-01-07  H.J. Lu  <hongjiu.lu@intel.com>
5517
5518         AVX Programming Reference (December, 2008)
5519         * config/i386/avxintrin.h (_mm256_stream_si256): New.
5520         (_mm256_stream_pd): Likewise.
5521         (_mm256_stream_ps): Likewise.
5522
5523         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MOVNTDQ256,
5524         IX86_BUILTIN_MOVNTPD256 and IX86_BUILTIN_MOVNTPS256.
5525         (ix86_special_builtin_type): Add VOID_FTYPE_PV4DI_V4DI.
5526         (bdesc_special_args): Add __builtin_ia32_movntdq256,
5527         __builtin_ia32_movntpd256 and __builtin_ia32_movntps256.
5528         (ix86_init_mmx_sse_builtins): Handle VOID_FTYPE_PV4DI_V4DI.
5529         (ix86_expand_special_args_builtin): Likewise.
5530
5531         * config/i386/sse.md (AVXMODEDI): New.
5532         (avx_movnt<mode>): Likewise.
5533         (avx_movnt<mode>): Likewise.
5534         (<sse>_movnt<mode>): Remove AVX support.
5535         (sse2_movntv2di): Likewise.
5536
5537 2009-01-07  Richard Guenther  <rguenther@suse.de>
5538
5539         PR middle-end/38751
5540         * fold-const.c (extract_muldiv): Remove obsolete comment.
5541         (fold_plusminus_mult_expr): Undo MINUS_EXPR
5542         to PLUS_EXPR canonicalization for the canonicalization.
5543
5544 2009-01-07  Gerald Pfeifer  <gerald@pfeifer.com>
5545
5546         * doc/install.texi (alpha*-dec-osf*): Remove note on 32-bit
5547         hosted cross-compilers generating less efficient code.
5548
5549 2009-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
5550
5551         * function.h (rtl_data): Add a dbr_scheduled_p field.
5552         * reorg.c (dbr_schedule): Set it.
5553         (gate_handle_delay_slots): Check it.
5554         * config/mips/mips.c (mips_base_delayed_branch): Delete.
5555         (mips_reorg): Check flag_delayed_branch instead of
5556         mips_base_delayed_branch.
5557         (mips_override_options): Don't set mips_base_delayed_branch
5558         or flag_delayed_branch.
5559
5560 2009-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
5561
5562         PR rtl-optimization/38426.
5563         * ira.c (ira): Set current_function_is_leaf earlier.
5564
5565 2009-01-06  Jakub Jelinek  <jakub@redhat.com>
5566
5567         PR rtl-optimization/38722
5568         * combine.c (try_combine): Don't modify PATTERN (i3) and notes
5569         too early, only set a flag and modify after last possible
5570         undo_all point.
5571
5572 2009-01-06  Janis Johnson  <janis187@us.ibm.com>
5573
5574         PR c/34252
5575         * ginclude/float.h: Rename DECnn_DEN to DECnn_SUBNORMAL_MIN.
5576         * real.c (decimal_single_format): Correct values of emin and emax.
5577         (decimal_double_format): Ditto.
5578         (decimal_quad_format): Ditto.
5579         * c-cppbuiltin.c (builtin_define_decimal_float_constants): Adjust
5580         computation of DECnn_MIN and DECnn_MAX for corrected values of
5581         emin and emax.  Define __DECnn_SUBNORMAL_MIN__ instead of
5582         __DECnn_MIN__, and adjust its computation for the corrected value
5583         of emin.
5584
5585 2009-01-06  Jan Hubicka  <jh@suse.cz>
5586
5587         PR target/38744
5588         * config/i386/i386.c (ix86_expand_call): Use ARRAY_SIZE.
5589
5590 2009-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
5591
5592         * doc/contrib.texi (Contributors): Slightly adjust the end note.
5593         Add Robert Clark to the list of testers.
5594
5595 2009-01-06  Jan Hubicka  <jh@suse.cz>
5596             Kai Tietz  <kai.tietz@onevision.com>
5597
5598         * config/i386/i386.md (*msabi_syvabi): Add SSE regs clobbers.
5599         * config/i386/i386.c (ix86_expand_call): Add clobbers.
5600
5601 2009-01-06  Jan Hubicka  <jh@suse.cz>
5602             Kai Tietz  <kai.tietz@onevision.com>
5603
5604         * config/i386/i386.h (CONDITIONAL_CALL_USAGE): SSE regs are not used
5605         for w64 ABI.
5606         * config/i386/i386.c (struct ix86_frame): Add padding0 and nsseregs.
5607         (ix86_nsaved_regs): Count only general purpose regs.
5608         (ix86_nsaved_sseregs): New.
5609         (ix86_compute_frame_layout): Update nsseregs; set preferred alignment
5610         to 16 for w64; compute padding and size of sse reg save area.
5611         (ix86_emit_save_regs, ix86_emit_save_regs_using_mov): Save only
5612         general purpose regs.
5613         (ix86_emit_save_sse_regs_using_mov): New.
5614         (ix86_expand_prologue): Save SSE regs if needed.
5615         (ix86_emit_restore_regs_using_mov): Use only general purpose regs.
5616         (ix86_emit_restore_sse_regs_using_mov): New.
5617         (ix86_expand_epilogue): Save SSE regs if needed.
5618
5619 2009-01-06  Jan Hubicka  <jh@suse.cz>
5620             Kai Tietz  <kai.tietz@onevision.com>
5621
5622         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Enable for MSABI
5623         * config/i386/i386.c (init_cumulative_args): Disallow calls of MSABI
5624         functions when accumulate outgoing args is off.
5625
5626 2009-01-06  H.J. Lu  <hongjiu.lu@intel.com>
5627
5628         PR bootstrap/38742
5629         * ira-color.c (ira_reuse_stack_slot): Check ENABLE_IRA_CHECKING
5630         before using pseudos_have_intersected_live_ranges_p.
5631
5632         * ira-int.h (ira_assert): Always define.
5633
5634 2009-01-06  H.J. Lu  <hongjiu.lu@intel.com>
5635
5636         AVX Programming Reference (December, 2008)
5637         * config/i386/avxintrin.h (_mm_permute2_pd): Removed.
5638         (_mm256_permute2_pd): Likewise.
5639         (_mm_permute2_ps): Likewise.
5640         (_mm256_permute2_ps): Likewise.
5641         * config/i386/i386.md (UNSPEC_VPERMIL2): Likewise.
5642         * config/i386/sse.md (avx_vpermil2<mode>3): Likewise.
5643
5644         * config/i386/i386.c (ix86_builtins): Remove
5645         IX86_BUILTIN_VPERMIL2PD, IX86_BUILTIN_VPERMIL2PS,
5646         IX86_BUILTIN_VPERMIL2PD256 and IX86_BUILTIN_VPERMIL2PS256.
5647         (ix86_builtin_type): Remove V8SF_FTYPE_V8SF_V8SF_V8SI_INT,
5648         V4DF_FTYPE_V4DF_V4DF_V4DI_INT, V4SF_FTYPE_V4SF_V4SF_V4SI_INT
5649         and V2DF_FTYPE_V2DF_V2DF_V2DI_INT.
5650         (bdesc_args): Remove __builtin_ia32_vpermil2pd,
5651         __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256 and
5652         __builtin_ia32_vpermil2ps256.
5653         (ix86_init_mmx_sse_builtins): Updated.
5654         (ix86_expand_args_builtin): Likewise.
5655
5656 2009-01-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5657
5658         * pa.c (output_call): Relocate non-jump insns in the delay slot of
5659         long absolute calls when generating PA 2.0 code.
5660
5661 2009-01-05  Vladimir Makarov  <vmakarov@redhat.com>
5662
5663         PR rtl-optimization/38583
5664         * params.h (IRA_MAX_CONFLICT_TABLE_SIZE): New macro.
5665
5666         * params.def (ira-max-conflict-table-size): New.
5667
5668         * doc/invoke.texi (ira-max-conflict-table-size): Decribe.
5669         
5670         * ira.h (ira_conflicts_p): New external definition.
5671         
5672         * ira-conflicts.c (build_conflict_bit_table): Do not build too big
5673         table.  Report this.  Return result of building.
5674         (ira_build_conflicts): Use ira_conflicts_p.  Check result of
5675         building conflict table.
5676
5677         * ira-color.c (fast_allocation): Use num instead of ira_allocnos_num.
5678         (ira_color): Use ira_conflicts_p.
5679         
5680         * global.c: Include ira.h.
5681         (pseudo_for_reload_consideration_p, build_insn_chain): Use
5682         ira_conflicts_p.
5683
5684         * Makefile.in (global.o): Add ira.h.
5685         
5686         * ira-build.c (mark_all_loops_for_removal,
5687         propagate_some_info_from_allocno): New.
5688         (remove_unnecessary_allocnos): Call
5689         propagate_some_info_from_allocno.
5690         (remove_low_level_allocnos): New.
5691         (remove_unnecessary_regions): Add parameter.  Call
5692         mark_all_loops_for_removal and remove_low_level_allocnos.  Pass
5693         parameter to remove_unnecessary_regions.
5694         (ira_build): Remove all regions but root if the conflict table was
5695         not built.  Update conflict hard regs for allocnos crossing calls.
5696
5697         * ira.c (ira_conflicts_p): New global.
5698         (ira): Define and use ira_conflicts_p.
5699
5700         * reload1.c (compute_use_by_pseudos, reload, count_pseudo,
5701         count_spilled_pseudo, find_reg, alter_reg, finish_spills,
5702         emit_input_reload_insns, delete_output_reload): Use ira_conflicts_p.
5703         
5704 2009-01-06  Ben Elliston  <bje@au.ibm.com>
5705
5706         * gengtype-lex.l (YY_NO_INPUT): Define.
5707
5708 2009-01-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>
5709
5710         PR c/34911
5711         * c-common.c (handle_vector_size_attribute): Also reject
5712         BOOLEAN_TYPE types.
5713
5714 2009-01-05  Sebastian Pop  <sebastian.pop@amd.com>
5715
5716         PR tree-optimization/38492
5717         * graphite.c (rename_map_elt, debug_rename_elt,
5718         debug_rename_map_1, debug_rename_map, new_rename_map_elt,
5719         rename_map_elt_info, eq_rename_map_elts,
5720         get_new_name_from_old_name, bb_in_sese_p): Moved around.
5721         (sese_find_uses_to_rename_use): Renamed sese_build_livein_liveouts_use.
5722         (sese_find_uses_to_rename_bb): Renamed sese_build_livein_liveouts_bb.
5723         (sese_build_livein_liveouts): New.
5724         (new_sese, free_sese): New.
5725         (new_scop): Call new_sese.
5726         (free_scop): Call free_sese.
5727         (rename_variables_from_edge, rename_phis_end_scop): Removed.
5728         (register_old_new_names): Renamed register_old_and_new_names.
5729         (register_scop_liveout_renames, add_loop_exit_phis,
5730         insert_loop_close_phis, struct igp,
5731         default_liveout_before_guard, add_guard_exit_phis,
5732         insert_guard_phis, copy_renames): New.
5733         (translate_clast): Call insert_loop_close_phis and insert_guard_phis.
5734         (sese_add_exit_phis_edge): Renamed scop_add_exit_phis_edge.
5735         (rewrite_into_sese_closed_ssa): Renamed scop_insert_phis_for_liveouts.
5736         (scop_adjust_phis_for_liveouts): New.
5737         (gloog): Call scop_adjust_phis_for_liveouts.
5738
5739         * graphite.h (struct sese): Documented.  Added fields liveout,
5740         num_ver and livein.
5741         (SESE_LIVEOUT, SESE_LIVEIN, SESE_LIVEIN_VER, SESE_NUM_VER): New.
5742         (new_sese, free_sese, sese_build_livein_liveouts): Declared.
5743         (struct scop): Added field liveout_renames.
5744         (SCOP_LIVEOUT_RENAMES): New.
5745
5746 2009-01-05  Harsha Jagasia  <harsha.jagasia@amd.com>
5747
5748         PR tree-optimization/38510
5749         * graphite.c (recompute_all_dominators): Call mark_irreducible_loops.
5750         (translate_clast): Call recompute_all_dominators before
5751         graphite_verify.
5752         (gloog): Call recompute_all_dominators before graphite_verify.
5753
5754 2009-01-05  Harsha Jagasia  <harsha.jagasia@amd.com>
5755             Jan Sjodin  <jan.sjodin@amd.com>
5756
5757         PR tree-optimization/38500
5758         * graphite.c (create_sese_edges): Call fix_loop_structure after
5759         splitting blocks.
5760
5761 2009-01-05  Joel Sherrill  <joel.sherrill@oarcorp.com>
5762
5763         * config.gcc: Add m32r*-*-rtems*.
5764         * config/m32r/rtems.h: New file.
5765
5766 2009-01-05  Ben Elliston  <bje@au.ibm.com>
5767
5768         * Makefile.in (.po.gmo): Use mkinstalldirs, not test -d || mkdir.
5769         (.po.pox): Likewise.
5770         (po/gcc.pot): Likewise.
5771
5772 2009-01-04  David S. Miller  <davem@davemloft.net>
5773
5774         * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED_RTX): Delete.
5775         (STARTING_FRAME_OFFSET): Always set to zero.
5776
5777 2009-01-04  Richard Sandiford  <rdsandiford@googlemail.com>
5778
5779         * tree.def (LSHIFT_EXPR, RSHIFT_EXPR): Add commentary.
5780         * tree-cfg.c (verify_gimple_assign_binary): Allow shifts of
5781         fixed-point types, and vectors of the same.
5782
5783 2009-01-04  Richard Sandiford  <rdsandiford@googlemail.com>
5784
5785         * config/mips/sync.md (*mb_barrier): Rename to...
5786         (*memory_barrier): ...this.
5787
5788 2009-01-04  Jonathan Wakely  <jwakely.gcc@gmail.com>
5789
5790         * doc/extend.texi (Function Attributes): Move @cindex after @item
5791         for 'artificial' and 'flatten'. Fix grammar for 'externally_visible'
5792         and put in alphabetical order. Fix 'target' name and put in order.
5793         * doc/invoke.texi (-Wstrict-null-sentinel, -fipa-matrix-reorg): Fix
5794         typos.
5795
5796 2009-01-04  Uros Bizjak  <ubizjak@gmail.com>
5797
5798         * config/s390/s390.md (UNSPEC_MB): Rename from UNSPECV_MB.
5799         (memory_barrier): Expand as unspec instead of unspec_volatile.
5800         Remove mem:BLK from insn operands.  Use Pmode scratch register.
5801         (*memory_barrier): Define as unspec instead of unspec_volatile.
5802         Use (match_dup 0) as input operand.
5803
5804         * config/sparc/sparc.md (UNSPEC_MEMBAR): Rename from UNSPECV_MEMBAR.
5805         * config/sparc/sync.md (memory_barrier): Expand as unspec instead of
5806         unspec_volatile.  Remove mem:BLK from insn operands.  Use Pmode
5807         scratch register.  Remove operand 1.
5808         (*stbar): Define as unspec instead of unspec_volatile.
5809         Use (match_dup 0) as input operand, remove (const_int 8).
5810         (*membar): Define as unspec instead of unspec_volatile.
5811         Use (match_dup 0) as input operand, remove input operand 2.
5812
5813         * config/xtensa/xtensa.md (UNSPEC_MEMW): Rename from UNSPECV_MEMW.
5814         (memory_barrier): Expand as unspec instead of unspec_volatile.
5815         Remove mem:BLK from insn operands.  Use Pmode scratch register.
5816         (*memory_barrier): Define as unspec instead of unspec_volatile.
5817         Use (match_dup 0) as input operand.
5818
5819         * config/ia64/sync.md (memory_barrier): Redefine as expander pattern.
5820         Remove mem:BLK from insn operands.  Use Pmode scratch register.
5821         Set volatile flag on operand 0.
5822         (*memory_barrier): New insn pattern.
5823
5824         * config/rs6000/sync.md (memory_barrier): Remove mem:BLK from
5825         insn operands.
5826         (*memory_barrier): Use (match_dup 0) as input operand.
5827
5828         * config/mips/sync.md (memory_barrier): Redefine as expander pattern.
5829         Remove mem:BLK from insn operands.  Use Pmode scratch register.
5830         Set volatile flag on operand 0.
5831         (*mb_internal): New insn pattern.
5832
5833         * config/alpha/sync.md (*memory_barrier): Rename from *mb_internal.
5834
5835 2009-01-04  Steven Bosscher  <steven@gcc.gnu.org>
5836
5837         PR middle-end/38586
5838         * function.c (struct temp_slot): Move to the section of the file
5839         that deals with temp slots.  Remove field 'address'.
5840         (temp_slot_address_table): New hash table of address -> temp slot.
5841         (struct temp_slot_address_entry): New struct, items for the table.
5842         (temp_slot_address_compute_hash, temp_slot_address_hash,
5843         temp_slot_address_eq, insert_temp_slot_address): Support functions
5844         for the new table.
5845         (find_temp_slot_from_address): Rewrite to use the new hash table.
5846         (remove_unused_temp_slot_addresses): Remove addresses of temp
5847         slots that have been made available.
5848         (remove_unused_temp_slot_addresses_1): Call-back for htab_traverse,
5849         worker function for remove_unused_temp_slot_addresses.
5850         (assign_stack_temp_for_type): Don't clear the temp slot address list.
5851         Add the temp slot address to the address -> temp slot map.
5852         (update_temp_slot_address): Update via insert_temp_slot_address.
5853         (free_temp_slots): Call remove_unused_temp_slot_addresses.
5854         (pop_temp_slots): Likewise.
5855         (init_temp_slots): Allocate the address -> temp slot map, or empty
5856         the map if it is already allocated.
5857         (prepare_function_start): Initialize temp slot processing.
5858
5859 2009-01-04  Steven Bosscher  <steven@gcc.gnu.org>
5860
5861         PR middle-end/38584
5862         * cfgexpand.c (estimate_stack_frame_size): Simplify the estimate:
5863         Calculate the size of all stack vars assuming no packing of stack
5864         vars will happen, replacing a quadratic algorithm with a linear one.
5865
5866 2009-01-03  Jakub Jelinek  <jakub@redhat.com>
5867
5868         PR target/38707
5869         * expmed.c (store_bit_field_1): Don't modify op0 if movstrict insn
5870         can't be used.
5871
5872 2009-01-03  Diego Novillo  <dnovillo@google.com>
5873
5874         * doc/contrib.texi: Update contributions.
5875
5876 2009-01-03  Jakub Jelinek  <jakub@redhat.com>
5877
5878         PR c++/38705
5879         * builtins.c (fold_builtin_memory_op): Give up if either operand
5880         is volatile.  Set srctype or desttype to non-qualified version
5881         of the other type.
5882
5883         PR c/38700
5884         * builtins.c (fold_builtin_expect): Only check DECL_WEAK for VAR_DECLs
5885         and FUNCTION_DECLs.
5886
5887 2009-01-02  Kenneth Zadeck  <zadeck@naturalbridge.com>
5888
5889         PR rtl-optimization/35805
5890         * df-problems.c (df_lr_finalize): Add recursive call to resolve lr
5891         problem if fast dce is able to remove any instructions.
5892         * dce.c (dce_process_block): Fix dump message.
5893         
5894 2009-01-02  Mark Mitchell  <mark@codesourcery.com>
5895
5896         PR 33649
5897         * tree-ssa-pre.c (compute_antic): Correct loop bounds.
5898
5899 2009-01-02  Jakub Jelinek  <jakub@redhat.com>
5900
5901         PR middle-end/38690
5902         * tree-flow.h (op_code_prio, op_prio): New prototypes.
5903         * tree-pretty-print.c (op_code_prio): New function.
5904         (op_prio): No longer static.  Use op_code_prio.
5905         * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs):
5906         Use op_prio and op_code_prio to determine if () should be
5907         printed around operand(s) or not.
5908
5909         * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs,
5910         dump_gimple_call, dump_gimple_switch, dump_gimple_cond,
5911         dump_gimple_label, dump_gimple_try, dump_symbols, dump_gimple_phi,
5912         dump_gimple_mem_ops, dump_bb_header, dump_bb_end, pp_cfg_jump): Use
5913         pp_character instead of pp_string for single letter printing.
5914
5915 2009-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
5916
5917         * doc/extend.texi: Fix '#pragma GCC option' typo.
5918
5919 2009-01-02  Richard Guenther  <rguenther@suse.de>
5920
5921         * doc/install.texi (--enable-checking): Mention different
5922         default for stage1.
5923         (--enable-stage1-checking): Document.
5924
5925 2009-01-01  Andrew Pinski  <pinskia@gmail.com>
5926
5927         PR middle-end/30142
5928         * tree-cfg.c (verify_expr): Add INDIRECT_REF case.  Change MODIFY_EXPR
5929         case to be an error.
5930
5931 2009-01-02  Ben Elliston  <bje@au.ibm.com>
5932
5933         * config/fp-bit.h (pack_d): Constify argument.
5934         * config/fp-bit.c (makenan): Constify return type. Remove casts.
5935         (isnan): Constify argument.
5936         (isinf): Likewise.
5937         (iszero): Likewise.
5938         (pack_d): Likewise.
5939         (_fpadd_parts): Constify return type.
5940         (_fpmul_parts): Likewise.
5941         (_fpdiv_parts): Likewise.
5942
5943 2009-01-01  Jakub Jelinek  <jakub@redhat.com>
5944
5945         PR c/36489
5946         * c-typeck.c (add_pending_init): Add IMPLICIT argument.  Only
5947         warn about overwriting initializer with side-effects or
5948         -Woverride-init if !IMPLICIT.
5949         (output_init_element): Likewise.  Pass IMPLICIT down to
5950         add_pending_init.
5951         (process_init_element): Add IMPLICIT argument.  Pass it down
5952         to output_init_element.
5953         (push_init_element, pop_init_level, set_designator): Adjust
5954         process_init_element callers.
5955         (set_nonincremental_init, set_nonincremental_init_from_string):
5956         Adjust add_pending_init callers.
5957         (output_pending_init_elements): Adjust output_init_element callers.
5958         * c-tree.h (process_init_element): Adjust prototype.
5959         * c-parser.c (c_parser_initelt, c_parser_initval): Adjust
5960         process_init_element callers.