OSDN Git Service

* sdbout.c (sdbout_symbol): Pass VOIDmode to eliminate_regs.
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2009-04-22  Dave Korn  <dave.korn.cygwin@gmail.com>
2
3         * sdbout.c (sdbout_symbol):  Pass VOIDmode to eliminate_regs.
4         (sdbout_parms):  Likewise.
5
6 2009-04-21  Kaz Kojima  <kkojima@gcc.gnu.org>
7
8         * config/sh/sh.c (prepare_cbranch_operands): Use
9         LAST_AND_UNUSED_RTX_CODE instead of CODE_FOR_nothing.
10         (expand_cbranchdi4): Likewise.
11         (from_compare): Add cast to enum type.
12         (expand_cbranchsi4): Use add_reg_note.
13         (output_stack_adjust, push, pop, sh_expand_prologue): Likewise.
14         (sh_insn_length_adjustment): Use sh_cpu_attr instead of sh_cpu.
15         (sh_initialize_trampoline): Change 0 to LCT_NORMAL in function call.
16         (sh_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
17         * config/sh/sh.md (cbranchsi4): Use LAST_AND_UNUSED_RTX_CODE
18         instead of CODE_FOR_nothing.
19         (cbranchdi4): Likewise.  Fix the order of arguments for
20         gen_rtx_fmt_ee.
21         (push_fpscr): Use add_reg_note.
22         (pop_fpscr, movdf_i4+1, reload_outdf__RnFRm+3, reload_outdf__RnFRm+4,
23         reload_outdf__RnFRm+5, fpu_switch+1, fpu_switch+2): Likewise.
24         
25 2009-04-21  Joseph Myers  <joseph@codesourcery.com>
26
27         * ABOUT-GCC-NLS, ChangeLog, ChangeLog-1997, ChangeLog-1998,
28         ChangeLog-1999, ChangeLog-2000, ChangeLog-2001, ChangeLog-2002,
29         ChangeLog-2003, ChangeLog-2004, ChangeLog-2005, ChangeLog-2006,
30         ChangeLog-2007, ChangeLog-2008, ChangeLog.dataflow, ChangeLog.lib,
31         ChangeLog.ptr, ChangeLog.tree-ssa, ChangeLog.tuples, FSFChangeLog,
32         FSFChangeLog.10, FSFChangeLog.11, LANGUAGES, ONEWS, acinclude.m4,
33         config/alpha/gnu.h, config/alpha/libgcc-alpha-ldbl.ver,
34         config/alpha/t-osf4, config/alpha/t-vms, config/alpha/va_list.h,
35         config/alpha/x-vms, config/arc/t-arc,
36         config/arm/README-interworking, config/arm/arm-c.c,
37         config/arm/gentune.sh, config/arm/libgcc-bpabi.ver,
38         config/arm/t-arm, config/arm/t-arm-elf, config/arm/t-arm-softfp,
39         config/arm/t-bpabi, config/arm/t-linux, config/arm/t-linux-eabi,
40         config/arm/t-netbsd, config/arm/t-pe, config/arm/t-strongarm-elf,
41         config/arm/t-symbian, config/arm/t-vxworks, config/arm/t-wince-pe,
42         config/avr/t-avr, config/bfin/elf.h, config/bfin/libgcc-bfin.ver,
43         config/bfin/linux.h, config/bfin/t-bfin, config/bfin/t-bfin-elf,
44         config/bfin/t-bfin-linux, config/bfin/t-bfin-uclinux,
45         config/bfin/uclinux.h, config/cris/mulsi3.asm, config/cris/t-cris,
46         config/cris/t-elfmulti, config/crx/t-crx,
47         config/darwin-ppc-ldouble-patch.def, config/darwin-sections.def,
48         config/divmod.c, config/fr30/t-fr30, config/frv/libgcc-frv.ver,
49         config/frv/t-frv, config/frv/t-linux, config/h8300/genmova.sh,
50         config/h8300/t-h8300, config/i386/athlon.md,
51         config/i386/darwin-libgcc.10.4.ver,
52         config/i386/darwin-libgcc.10.5.ver, config/i386/libgcc-glibc.ver,
53         config/i386/mach.h, config/i386/netbsd.h, config/i386/t-crtpc,
54         config/i386/t-cygming, config/i386/t-cygwin, config/i386/t-i386,
55         config/i386/t-linux64, config/i386/t-nwld,
56         config/i386/t-rtems-i386, config/i386/t-sol2-10,
57         config/i386/x-mingw32, config/ia64/div.md, config/ia64/elf.h,
58         config/ia64/ia64.opt, config/ia64/libgcc-glibc.ver,
59         config/ia64/libgcc-ia64.ver, config/ia64/linux.h,
60         config/ia64/sysv4.h, config/ia64/t-hpux, config/ia64/t-ia64,
61         config/iq2000/abi, config/iq2000/lib2extra-funcs.c,
62         config/iq2000/t-iq2000, config/libgcc-glibc.ver,
63         config/m32r/libgcc-glibc.ver, config/m32r/t-linux,
64         config/m32r/t-m32r, config/m68hc11/t-m68hc11,
65         config/m68k/t-floatlib, config/m68k/t-linux, config/m68k/t-mlibs,
66         config/m68k/t-uclinux, config/mcore/t-mcore,
67         config/mcore/t-mcore-pe, config/mips/20kc.md, config/mips/4130.md,
68         config/mips/5400.md, config/mips/5500.md, config/mips/crti.asm,
69         config/mips/crtn.asm, config/mips/irix-crti.asm,
70         config/mips/irix-crtn.asm, config/mips/libgcc-mips16.ver,
71         config/mips/mips-dsp.md, config/mips/mips-dspr2.md,
72         config/mips/mips-fixed.md, config/mips/sb1.md,
73         config/mips/sr71k.md, config/mips/t-elf, config/mips/t-gofast,
74         config/mips/t-iris6, config/mips/t-isa3264,
75         config/mips/t-libgcc-mips16, config/mips/t-linux64,
76         config/mips/t-mips, config/mips/t-r3900, config/mips/t-rtems,
77         config/mips/t-sb1, config/mips/t-sde, config/mips/t-sdemtk,
78         config/mips/t-slibgcc-irix, config/mips/t-sr71k, config/mips/t-st,
79         config/mips/t-vr, config/mips/t-vxworks, config/mmix/t-mmix,
80         config/mn10300/t-linux, config/mn10300/t-mn10300,
81         config/pa/pa32-regs.h, config/pa/t-hpux-shlib, config/pa/t-linux,
82         config/pa/t-linux64, config/pa/t-pa64, config/pdp11/t-pdp11,
83         config/picochip/libgccExtras/clzsi2.asm,
84         config/picochip/t-picochip, config/rs6000/darwin-ldouble-format,
85         config/rs6000/darwin-libgcc.10.4.ver,
86         config/rs6000/darwin-libgcc.10.5.ver,
87         config/rs6000/libgcc-ppc-glibc.ver, config/rs6000/ppc-asm.h,
88         config/rs6000/t-aix43, config/rs6000/t-aix52,
89         config/rs6000/t-darwin, config/rs6000/t-fprules,
90         config/rs6000/t-fprules-fpbit, config/rs6000/t-linux64,
91         config/rs6000/t-lynx, config/rs6000/t-netbsd,
92         config/rs6000/t-ppccomm, config/rs6000/t-ppcendian,
93         config/rs6000/t-ppcgas, config/rs6000/t-rs6000,
94         config/rs6000/t-rtems, config/rs6000/t-spe,
95         config/rs6000/t-vxworks, config/s390/libgcc-glibc.ver,
96         config/score/t-score-elf, config/sh/divcost-analysis,
97         config/sh/libgcc-glibc.ver, config/sh/t-netbsd, config/sh/t-sh,
98         config/sh/t-sh64, config/sh/t-superh, config/sh/t-symbian,
99         config/sparc/libgcc-sparc-glibc.ver, config/sparc/sol2-bi.h,
100         config/sparc/sol2-gas.h, config/sparc/sol2-gld-bi.h,
101         config/sparc/t-elf, config/sparc/t-linux64, config/sparc/t-sol2,
102         config/stormy16/stormy-abi, config/stormy16/t-stormy16,
103         config/t-darwin, config/t-libunwind, config/t-libunwind-elf,
104         config/t-linux, config/t-lynx, config/t-slibgcc-elf-ver,
105         config/t-slibgcc-sld, config/t-sol2, config/t-vxworks,
106         config/udivmod.c, config/udivmodsi4.c, config/v850/t-v850,
107         config/v850/t-v850e, config/xtensa/t-xtensa, diagnostic.def,
108         gdbinit.in, glimits.h, gstab.h, gsyms.h, java/ChangeLog,
109         java/ChangeLog.ptr, java/ChangeLog.tree-ssa, libgcc-std.ver,
110         limitx.h, version.c, xcoff.h: Add copyright and license notices.
111         * config/h8300/genmova.sh: Include copyright and license notices
112         in generated output.
113         * config/h8300/mova.md: Regenerate.
114         * doc/install.texi2html: Include word "Copyright" in copyright
115         notice and use name "Free Software Foundation, Inc.".
116         * ChangeLog, ChangeLog-2000, ChangeLog-2001, ChangeLog-2002,
117         ChangeLog-2003, ChangeLog-2004, ChangeLog-2005, ChangeLog-2006,
118         ChangeLog-2007, ChangeLog-2008: Correct dates.
119
120 2009-04-21  Eric Botcazou  <ebotcazou@adacore.com>
121
122         * c-common.c (c_common_truthvalue_conversion): Use LOCATION to build
123         NE_EXPR operations as well.
124         * c-parser.c (c_parser_condition): Do not set location information on
125         the condition.
126         (c_parser_conditional_expression): Likewise.
127         (c_parser_binary_expression): Set location information on operators.
128         * c-typeck.c (build_unary_op) <TRUTH_NOT_EXPR>: Reset the location if
129         TRUTH_NOT_EXPR has been folded.
130         * fold-const.c (fold_truth_not_expr): Copy location information from
131         the incoming expression to the outgoing one.
132         * gimplify.c (shortcut_cond_r): Add locus parameter.  Pass it to
133         recursive calls on the LHS of the operator but pass that of the
134         operator to recursive calls on the RHS of the operator.  Set it
135         on the COND_EXPR.
136         (shortcut_cond_expr): Set the locus of the operator on the second
137         COND_EXPR and that of the expression on the first in degenerate cases.
138         Pass the locus of the expression to calls to shortcut_cond_r.
139         Set the locus of the 'then' block on the associated jump, if any.
140         (gimplify_boolean_expr): Add locus parameter.  Set it on the COND_EXPR.
141         (gimplify_expr) <TRUTH_ANDIF_EXPR>: Pass the locus of the outer
142         expression to call to gimplify_boolean_expr.
143
144 2009-04-21  Kai Tietz  <kai.tietz@onevision.com>
145
146         * config.gcc: Add additional configuration for
147         i686-w64-mingw* and x86_64-w64-mingw* triplet.
148         * config/i386/mingw-w64.h: New mingw-w64 specific header.
149         (CPP_SPEC): Redefine for allowing -municode option.
150         (STARTFILE_SPEC): Likewise.
151         * config/i386/t-mingw-w64: New.
152         * config/i386/mingw-w64.opt: New.
153         (municode): Add new target option.
154         * doc/invoke.texi (municode): Add documentation for new option.
155
156 2009-04-21  Ian Lance Taylor  <iant@google.com>
157
158         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
159         Correct test for number of arguments.
160         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
161
162 2009-04-21  Andreas Schwab  <schwab@linux-m68k.org>
163
164         * config/m68k/linux.h (FINALIZE_TRAMPOLINE): Use enum for second
165         argument of emit_library_call.
166
167 2009-04-21  Richard Guenther  <rguenther@suse.de>
168
169         PR middle-end/39829
170         * gimple.c (walk_stmt_load_store_addr_ops): Catch addresses
171         inside VIEW_CONVERT_EXPRs.
172
173 2009-04-21  Martin Jambor  <mjambor@suse.cz>
174
175         * tree-switch-conversion.c (build_constructors): Split a long line.
176         (constructor_contains_same_values_p): New function.
177         (build_one_array): Create assigns of constants if possible, do not call
178         mark_sym_for_renaming, call update_stmt.
179         (build_arrays): Call make_ssa_name (create_tmp_var ()) instead of
180         make_rename_temp.  Do not call mark_symbols_for_renaming, call
181         update_stmt.
182         (gen_def_assigns): Do not call mark_symbols_for_renaming or
183         find_new_referenced_vars, call update_stmt.
184         (gen_inbound_check): Use create_tmp_var and create ssa names manually
185         instead of calling make_rename_temp.  Do not call
186         find_new_referenced_vars or mark_symbols_for_renaming, call
187         update_stmt.
188
189 2009-04-21  Richard Guenther  <rguenther@suse.de>
190
191         PR tree-optimization/39827
192         * tree-ssa-phiprop.c (propagate_with_phi): Check SSA_NAME
193         is in range.
194         (tree_ssa_phiprop): Pass the correct array size.
195
196 2009-04-21  Uros Bizjak  <ubizjak@gmail.com>
197
198         * config/alpha/alpha.md (tune): Add cast to enum attr_tune.
199
200 2009-04-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
201
202         PR 16202
203         * c-typeck.c (lvalue_p): Move declaration ...
204         * c-common.h (lvalue_p): ... to here.
205         * c-common.c (candidate_equal_p): New.
206         (add_tlist): Use it.
207         (merge_tlist): Use it.
208         (warn_for_collisions_1): Likewise.
209         (warning_candidate_p): Accept more candidates.
210         (verify_tree): A warning candidate can be an expression. Use
211         candidate_equal_p.
212
213 2009-04-21  Ben Elliston  <bje@au.ibm.com>
214
215         PR target/5267
216         * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation
217         for -mcall-eabi, -mcall-aixdesc, -mcall-freebsd and -mcall-openbsd
218         options.  Remove -mcall-solaris documentation.
219
220 2009-04-21  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
221
222         PR c++/13358
223         * doc/invoke.texi (-Wlong-long): Update description.
224         * c-lex (interpret_integer): Only warn if there was no previous
225         overflow and -Wlong-long is enabled.
226         * c-decl.c (declspecs_add_type): Drop redundant flags.
227         * c.opt (Wlong-long): Init to -1.
228         * c-opts.c (sanitize_cpp_opts): Synchronize cpp's warn_long_long
229         and front-end warn_long_long. Wlong-long only depends on other
230         flags if it is uninitialized.
231         * c-parser.c (disable_extension_diagnostics): warn_long_long is
232         the same for CPP and FE.
233         (restore_extension_diagnostics): Likewise.
234
235 2009-04-20  Ian Lance Taylor  <iant@google.com>
236
237         Fix enum conversions which are invalid in C++:
238         * auto-inc-dec.c (attempt_change): Change 0 to SET in function call.
239         * calls.c (store_one_arg): Change 0 to EXPAND_NORMAL in function call.
240         * cse.c (hash_rtx_cb): Change 0 to VOIDmode in function call.
241         * dbgcnt.c (dbg_cnt_set_limit_by_name): Add cast to enum type.
242         * dbxout.c (dbxout_symbol): Change 0 to VOIDmode in function call.
243         (dbxout_parms): Likewise.
244         * df-core.c (df_set_flags): Change changeable_flags parameter to int.
245         (df_clear_flags): Likewise.
246         * df-problems.c (df_rd_bb_local_compute_process_def): Change
247         top_flag parameter to int.
248         (df_chain_create_bb_process_use): Likewise.
249         (df_chain_add_problem): Change chain_flags parameter to unsigned int.
250         Remove cast.
251         * df-scan.c (df_ref_create): Change ref_flags parameter to int.
252         (df_ref_create_structure, df_def_record_1): Likewise.
253         (df_defs_record, df_uses_record, df_get_call_refs): Likewise.
254         (df_notes_rescan): Change 0 to VOIDmode in function call.
255         (df_get_call_refs, df_insn_refs_collect): Likewise.
256         (df_bb_regs_collect): Likewise.
257         (df_entry_block_defs_collect): Likewise.
258         (df_exit_block_uses_collect): Likewise.
259         * df.h: Update declarations.
260         * double-int.c (double_int_divmod): Add cast to enum type.
261         * dse.c (replace_inc_dec): Reverse parameters to gen_int_mode.
262         * dwarf2out.c (new_reg_loc_descr): Add casts to enum type.
263         (based_loc_descr): Likewise.
264         (loc_descriptor_from_tree_1): Change first_op and second_op to
265         enum dwarf_location_atom.  Add cast to enum type.
266         * expmed.c (init_expmed): Change 0 to SET in function call.
267         * expr.c (init_expr_target): Change 0 to VOIDmode in function call.
268         (expand_expr_real_1): Change 0 to EXPAND_NORMAL in function call.
269         (do_store_flag): Likewise.
270         * fixed-value.h (struct fixed_value): Change mode to enum
271         machine_mode.
272         * function.c (assign_parms): Change 0 to VOIDmode in function call.
273         * genautomata.c (insert_automaton_decl): Change 1 to INSERT in
274         function call.
275         (insert_insn_decl, insert_decl, insert_state): Likewise.
276         (automata_list_finish): Likewise.
277         * genrecog.c (process_define_predicate): Add cast to enum type.
278         * gensupport.c (init_predicate_table): Add cast to enum type.
279         * gimple.c (gimple_build_return): Change 0 to ERROR_MARK in
280         function call.
281         (gimple_build_call_1, gimple_build_label): Likewise.
282         (gimple_build_goto, gimple_build_asm_1): Likewise.
283         (gimple_build_switch_1, gimple_build_cdt): Likewise.
284         * gimple.h (GIMPLE_CHECK): Change 0 to ERROR_MARK in function call.
285         (enum fallback): Rename from enum fallback_t.
286         (fallback_t): Typedef as int.
287         * gimple-low.c (lower_builtin_setjmp): Change TSI_SAME_STMT to
288         GSI_SAME_STMT in function call.
289         * ira.c (setup_class_subset_and_memory_move_costs): Add casts to
290         enum type.
291         (setup_reg_class_relations): Likewise.
292         (setup_reg_class_nregs): Change cl to int.  Add casts to enum type.
293         (setup_prohibited_class_mode_regs): Add cast to enum type.
294         (setup_prohibited_mode_move_regs): Likewise.
295         * ira-costs.c (record_reg_classes): Change rclass to enum reg_class.
296         (record_address_regs): Change i to enum reg_class.
297         * lists.c (alloc_EXPR_LIST): Add cast to enum type.
298         * machmode.h (GET_MODE_CLASS): Cast value to enum mode_class.
299         (GET_MODE_WIDER_MODE): Cast value to enum machine_mode.
300         (GET_MODE_2XWIDER_MODE): Likewise.
301         (GET_CLASS_NARROWEST_MODE): Likewise.
302         * omp-low.c (expand_omp_for): Add cast to enum type.
303         * optabs.c (debug_optab_libfuncs): Add casts to enum type.
304         * opts.c (enable_warning_as_error): Change kind to diagostic_t.
305         * postreload.c (reload_cse_simplify_operands): Change rclass local
306         to enum reg_class.
307         * predict.c (combine_predictions_for_insn): Change best_predictor
308         and predictor to enum br_predictor.
309         (combine_predictions_for_bb): Likewise.
310         (build_predict_expr): Change assignment to PREDICT_EXPR_OUTCOME to
311         use SET_PREDICT_EXPR_OUTCOME.
312         * real.c (real_arithmetic): Change icode to code in function call.
313         * reginfo.c (init_move_cost): Add casts to enum type.
314         (init_reg_sets_1, init_fake_stack_mems): Likewise.
315         * regmove.c (regclass_compatible_p): Change class0 and class1 to
316         enum reg_class.
317         * reload.c (find_valid_class): Add casts to enum type.
318         (push_reload): Change 0 to NO_REGS in function call.
319         (find_reloads): Change this_alternative to array of enum
320         reg_class.  Remove some now-unnecessary casts.
321         (make_memloc): Change 0 to VOIDmode in function call.
322         * reload1.c (reload): Change 0 to VOIDmode in function call.
323         (eliminate_regs_1, elimination_effects): Likewise.
324         (eliminate_regs_in_insn): Likewise.
325         (emit_input_reload_insns): Add cast to enum type.
326         (delete_output_reload): Change 0 to VOIDmode in function call.
327         * reorg.c (insn_sets_resource_p): Convert include_delayed_effects
328         to enum type in function call.
329         * tree.h (PREDICT_EXPR_OUTCOME): Add cast to enum type.
330         (SET_PREDICT_EXPR_OUTCOME): Define.
331         * tree-dump.c (get_dump_file_info): Change phase parameter to int.
332         (get_dump_file_name, dump_begin, dump_enabled_p): Likewise.
333         (dump_initialized_p, dump_flag_name, dump_end): Likewise.
334         (dump_function): Likewise.
335         * tree-dump.h: Update declarations.
336         * tree-pass.h: Update declarations.
337         * varasm.c (assemble_integer): Change mclass to enum mode_class.
338         * config/arm/arm.c (thumb_legitimize_reload_address): Add cast to
339         enum type.
340         (arm_rtx_costs_1): Correct parenthesization.
341         (arm_rtx_costs): Add casts to enum type.
342         (adjacent_mem_locations): Reverse arguments to const_ok_for_op.
343         (vfp_emit_fstmd): Use add_rg_note.
344         (emit_multi_reg_push, emit_sfm): Likewise.
345         (thumb_set_frame_pointer): Likewise.
346         (arm_expand_prologue): Likewise.
347         (arm_regno_class): Change return type to enum reg_class.
348         (thumb1_expand_prologue): Use add_reg_note.
349         * config/arm/arm-protos.h (arm_regno_class): Update declaration.
350         * config/arm/arm.h (INITIALIZE_TRAMPOLINE): Change 0 to LCT_NORMAL
351         in function call.
352         * config/arm/gentune.sh: Add cast to enum type.
353         * config/arm/arm-tune.md: Rebuild.
354         * config/i386/i386.c (ix86_expand_prologue): Use add_reg_note.
355         (ix86_split_fp_branch, predict_jump): Likewise.
356         (ix86_expand_multi_arg_builtin): Change sub_code from enum
357         insn_code to enum rtx_code.
358         (ix86_builtin_vectorized_function): Add cast to enum type.
359         * config/i386/i386.md (truncdfsf2): Change slot to enum
360         ix86_stack_slot.
361         (truncxf<mode>2, isinf<mode>2): Likewise.
362         * config/i386/i386-c.c (ix86_pragma_target_parse): Add cast to
363         enum type.
364         * config/ia64/ia64.c (ia64_split_tmode_move): Use add_reg_note.
365         (spill_restore_mem, do_spill, ia64_expand_prologue): Likewise.
366         (insert_bundle_state): Change 1 to INSERT in function call.
367         (ia64_add_bundle_selector_before): Likewise.
368         * config/ia64/ia64.md (cpu attr): Add cast to enum type.
369         (save_stack_nonlocal): Change 0 to LCT_NORMAL in function call.
370         (restore_stack_nonlocal): Likewise.
371         * config/mips/mips.h (MIPS_ICACHE_SYNC): Change 0 to LCT_NORMAL in
372         function call.
373         * config/mips/mips.c (mips_binary_cost): Change 0 to SET in
374         function call.
375         (mips_rtx_costs): Likewise.
376         (mips_override_options): Add casts to enum type.
377         * config/mips/sdemtk.h (MIPS_ICACHE_SYNC): Change 0 to LCT_NORMAL
378         in function call.
379         * config/pa/pa.c (legitimize_pic_address): Use add_reg_note.
380         (store_reg, set_reg_plus_d): Likewise.
381         (hppa_expand_prologue, hppa_profile_hook): Likewise.
382         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
383         cast to enum type.
384         (altivec_expand_vec_set_builtin): Change 0 to EXPAND_NORMAL in
385         function call.
386         (emit_unlikely_jump): Use add_reg_note.
387         (rs6000_emit_allocate_stack): Likewise.
388         (rs6000_frame_related, rs6000_emit_prologue): Likewise.
389         (output_toc): Change 1 to INSERT in function call.
390         (output_profile_hook): Change 0 to LCT_NORMAL in function call.
391         (rs6000_initialize_trampoline): Likewise.
392         (rs6000_init_dwarf_reg_sizes_extra): Change 0 to EXPAND_NORMAL in
393         function call.
394         * config/s390/s390.c (s390_rtx_costs): Add cast to enum type.
395         (s390_expand_movmem): Change 0 to OPTAB_DIRECT in function call.
396         (s390_expand_setmem, s390_expand_cmpmem): Likewise.
397         (save_gprs): Use add_reg_note.
398         (s390_emit_prologue): Likewise.
399         (s390_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
400         * config/sparc/sparc.c (sparc_expand_prologue): Use add_reg_note.
401         (sparc_fold_builtin): Add cast to enum type.
402         * config/spu/spu.c (spu_emit_branch_or_set): Change ior_code to
403         enum insn_code.
404         (spu_expand_prologue): Use add_reg_note.
405         (expand_builtin_args): Change 0 to EXPAND_NORMAL in function call.
406
407 2009-04-20  Ian Lance Taylor  <iant@google.com>
408
409         * c-parser.c (c_parser_attributes): Change VEC back to tree list.
410         (c_parser_postfix_expression_after_primary): Get VEC for list of
411         arguments.  Get original types of arguments.  Call
412         build_function_call_vec.
413         (cached_expr_list_1, cached_expr_list_2): New static variables.
414         (c_parser_expr_list): Change return type to VEC *.  Add
415         p_orig_types parameter.  Change all callers.
416         (c_parser_release_expr): New static function.
417         (c_parser_vec_to_tree_list): New static function.
418         * c-typeck.c (build_function_call): Rewrite to build a VEC and
419         call build_function_call_vec.
420         (build_function_call_vec): New function, based on old
421         build_function_call.
422         (convert_arguments): Remove nargs and argarray parameters.  Change
423         values to a VEC.  Add origtypes parameter.
424         (build_modify_expr): Add rhs_origtype parameter.  Change all callers.
425         (convert_for_assignment): Add origtype parameter.  Change all
426         callers.  If warn_cxx_compat, check for conversion to an enum
427         type when calling a function.
428         (store_init_value): Add origtype parameter.  Change all callers.
429         (digest_init): Likewise.
430         (struct init_node): Add origtype field.
431         (add_pending_init): Add origtype parameter.  Change all callers.
432         (output_init_element): Likewise.
433         (output_pending_init_elements): Pass origtype from init_node to
434         output_init_element.
435         (process_init_element): Pass origtype from c_expr to
436         output_init_element.
437         (c_finish_return): Add origtype parameter.  Change all callers.
438         * c-common.c (sync_resolve_size): Change params to VEC *.  Change
439         caller.
440         (sync_resolve_params): Likewise.
441         (sync_resolve_return): Change params to first_param.  Change caller.
442         (resolve_overloaded_builtins): Change params to VEC *.  Change
443         callers.  Save first parameter around call to build_function_call_vec.
444         * c-decl.c (finish_decl): Add origtype parameter.  Change all
445         callers.  Call build_function_call_vec rather than
446         build_function_call for cleanup.
447         * c-tree.h: Update declarations.
448         * c-common.h: Update declarations.
449         * stub-objc.c (objc_rewrite_function_call): Change parameter from
450         params to first_param.
451         * target.h (struct gcc_target): Change resolve_overloaded_builtin
452         params parameter from tree to void *.
453         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
454         Change arglist parameter to have type void *, and to be a pointer
455         to a VEC.
456         * config/rs6000/rs6000-protos.h
457         (altivec_resolve_overloaded_builtin): Update declaration.
458         * config/spu/spu-c.c (spu_resolved_overloaded_builtin): Change
459         fnargs parameter to have type void *, and to be a pointer to a
460         VEC.  Call build_function_call_vec instead of
461         build_function_call.
462         * config/spu/spu-protos.h (spu_expand_builtin): Update declaration.
463
464 2009-04-20  Joey Ye  <joey.ye@intel.com>
465             Xuepeng Guo <xuepeng.guo@intel.com>
466             H.J. Lu  <hongjiu.lu@intel.com>
467
468         * config/i386/atom.md: Add bypasses with ix86_dep_by_shift_count.
469
470         * config/i386/i386.c (LEA_SEARCH_THRESHOLD): New macro.
471         (IX86_LEA_PRIORITY): Likewise.
472         (distance_non_agu_define): New function.
473         (distance_agu_use): Likewise.
474         (ix86_lea_for_add_ok): Likewise.
475         (ix86_dep_by_shift_count): Likewise.
476
477         * config/i386/i386.md: Call ix86_lea_for_add_ok to decide we
478         should split for LEA.
479
480         * config/i386/i386-protos.h (ix86_lea_for_add_ok): Declare new
481         function.
482         (ix86_dep_by_shift_count): Likewise.
483
484 2009-04-20  Richard Guenther  <rguenther@suse.de>
485
486         * expr.c (handled_component_p): Move ...
487         * tree.h (handled_component_p): ... here.
488         * tree.def: Re-order BIT_FIELD_REF, COMPONENT_REF,
489         ARRAY_REF, ARRAY_RANGE_REF, VIEW_CONVERT_EXPR, IMAGPART_EXPR
490         and REALPART_EXPR to be in one group.
491
492 2009-04-20  Richard Guenther  <rguenther@suse.de>
493
494         * basic-block.h (get_all_dominated_blocks): Declare.
495         * dominance.c (get_all_dominated_blocks): New function.
496         * tree-cfg.c (get_all_dominated_blocks): Remove.
497         (remove_edge_and_dominated_blocks): Adjust.
498         * tree-ssa-phiprop.c (tree_ssa_phiprop_1): Fold in ...
499         (tree_ssa_phiprop): ... here.  Use get_all_dominated_blocks
500         instead of recursing.
501
502 2009-04-20  Doug Kwan  <dougkwan@google.com>
503
504         * cgraph.h (cgraph_node_ptr): New type for vector functions.
505         (struct cgraph_node_set_def): New type.
506         (cgraph_node_set) New type. Also declare vector functions.
507         (struct cgraph_node_set_element_def): New type.
508         (cgraph_node_set_element): Ditto.
509         (cgraph_node_set_iterator): New iterator type.
510         (cgraph_node_set_new, cgraph_node_set_find, cgraph_node_set_add,
511         cgraph_node_set_remove, dump_cgraph_node_set,
512         debug_cgraph_node_set): New prototypes.
513         (csi_end_p, csi_next, csi_node, csi_start, cgraph_node_in_set_p,
514         cgraph_node_set_size): New inlines.
515         * tree-pass.h (struct cgraph_node_set_def): New decl to avoid
516         including cgraph.h.
517         (struct ipa_opt_pass): Add struct cgraph_node_set_def
518         argument to function 'write_summary'.
519         * ipa.c: Include ggc.h.
520         (hash_cgraph_node_set_element,
521         eq_cgraph_node_set_element, cgraph_node_set_new,
522         cgraph_node_set_add, cgraph_node_set_remove,
523         cgraph_node_set_find, dump_cgraph_node_set,
524         debug_cgraph_node_set): New functions.
525         * Makefile.in (ipa.o): Add dependency on GGC_H.
526
527 2009-04-20  Ira Rosen  <irar@il.ibm.com>
528
529         PR tree-optimization/39675
530         * tree-vect-loop.c (vect_transform_loop): Remove currently redundant
531         check of the return code of vect_schedule_slp. Check that
532         stmt_vec_info still exists for the statement, before checking its
533         vectorization type.
534
535 2009-04-20  Michael Matz  <matz@suse.de>
536
537         * Makefile.in (generated_files): Take out $(simple_generated_c).
538
539 2009-04-19  Dave Korn  <dave.korn.cygwin@gmail.com>
540
541         * config/i386/cygwin-stdint.h (INTPTR_TYPE):  Remove "long".
542         (UINTPTR_TYPE):  Likewise.
543
544 2009-04-19  Joseph Myers  <joseph@codesourcery.com>
545
546         PR c/37481
547         * c-typeck.c (digest_init): Check for initializing an array with a
548         string literal.
549
550 2009-04-19  Joseph Myers  <joseph@codesourcery.com>
551
552         PR c/19771
553         * c-semantics.c (pop_stmt_list): Propagate
554         STATEMENT_LIST_HAS_LABEL to parent statement list.
555
556 2009-04-19  Adam Nemet  <anemet@caviumnetworks.com>
557
558         * config/mips/mips.h (mips_tune_attr): New macro.
559         * config/mips/mips.md (cpu): Use it.
560
561 2009-04-19  Joseph Myers  <joseph@codesourcery.com>
562
563         PR c/38243
564         * c-decl.c (shadow_tag_warned): Diagnose use of restrict when
565         declaring a tag.
566
567 2009-04-19  Diego Novillo  <dnovillo@google.com>
568
569         * toplev.c (compile_file): Move call to coverage_finish ...
570         * cgraphunit.c (ipa_passes): ... here.
571         Call cgraph_process_new_functions.
572         * ipa-utils.c (get_base_var): Handle CONSTRUCTOR.
573         * Makefile.in (cgraphunit.o): Add dependency on COVERAGE_H.
574
575 2009-04-19  Jan Hubicka  <jh@suse.cz>
576
577         * cgraph.c (cgraph_create_edge, cgraph_set_call_stmt): Set proper
578         cfun.
579         (dump_cgraph_node): Dump can throw external flag.
580         * ipa-pure-const.c (propagate): Fix propagation of nothrow flags.
581
582 2009-04-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
583
584         PR c/32061
585         PR c++/36954
586         * doc/invoke.texi: Add -Wlogical-op to -Wextra.
587         * common.opt (Wlogical-op): Move from here...
588         * c.opt (Wlogical-op): ... to here.
589         * c-typeck.c (parser_build_binary_op): Update call to
590         warn_logical_operator.
591         * c-opts.c (c_common_post_options): Enable warn_logical_op with
592         extra_warnings.
593         * c-common.c (warn_logical_op): Update.
594         * c-common.h (warn_logical_op): Update declaration.
595
596 2009-04-19  Eric Botcazou  <ebotcazou@adacore.com>
597
598         * tree.c (protected_set_expr_location): Fix formatting.
599
600 2009-04-18  Joseph Myers  <joseph@codesourcery.com>
601
602         PR c/27676
603         * c-typeck.c (readonly_warning): new.
604         (build_unary_op, build_modify_expr): Use readonly_warning for
605         storing into something readonly but not const-qualified.
606
607 2009-04-18  Joseph Myers  <joseph@codesourcery.com>
608
609         PR c/22367
610         * c-typeck.c (build_unary_op): Check for taking address of
611         expression of type void.
612
613 2009-04-18  Joseph Myers  <joseph@codesourcery.com>
614
615         PR c/35210
616         * c-typeck.c (build_function_call): Check for calling a function
617         with qualified void return types.  Call require_complete_type when
618         generating a trap.
619
620 2009-04-18  Jan Hubicka  <jh@suse.cz>
621
622         * cgraph.c (cgraph_make_edge, dump_cgraph_node, cgraph_set_call_stmt):
623         Set nothrow flag.
624         * cgraph.h (struct function): Reduce loop_nest to 30 bits; add
625         can_throw_external flag.
626         * ipa-reference.c (ipa_utils_reduced_inorder): Update call.
627         * ipa-pure-const.c (ignore_edge): New function.
628         (propagate): Compute order for NOTHROW computation; set NOTHROWs
629         only over can_throw_external edges.
630         (local_pure_const): Add nothrow flag.
631         * ipa-utils.c (searchc): Add ignore_edge callback.
632         (ipa_utils_reduced_inorder): Add ignore_edge callback.
633         * ipa-utils.h (ipa_utils_reduced_inorder): Update prototype.
634         (set_nothrow_function_flags): Update cgraph.
635         * tree-cfg.c (verify_stmt): Relax nothrow checking when in IPA mode.
636
637 2009-04-18  Richard Guenther  <rguenther@suse.de>
638
639         PR middle-end/39804
640         * tree-ssa-ccp.c (fold_stmt_1): New function factored from ...
641         (fold_stmt): ... this and ...
642         (fold_stmt_inplace): ... this.
643         (fold_stmt_1): Fold references in calls and asms.
644         * tree-cfg.c (remove_useless_stmts_cond): Use fold_stmt.
645
646 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
647
648         * tree-vrp.c (ssa_name_nonzero_p): Remove.
649         * tree.h: Remove the prototype for ssa_name_nonzero_p.
650
651 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
652
653         * tree.c (function_args_count): Remove.
654         * tree.h: Remove the prototype for function_args_count.
655
656 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
657
658         * tree-iterator.c (expr_only): Remove.
659         * tree.h: Remove the prototype for expr_only.
660
661 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
662
663         * reginfo.c (cannot_change_mode_set_regs): Remove.
664         * rtl.h: Remove the prototype for cannot_change_mode_set_regs.
665
666 2009-04-08  Anatoly Sokolov  <aesok@post.ru>
667
668         * config/avr/avr.md (*rotlsi3_8, *rotlsi3_16, *rotlsi3_24 ): Check
669         whether operands 0 and 1 overlaps.
670
671 2009-04-18  Manuel López-Ibáñez  <manu@gcc.gnu.org>
672
673         PR middle-end/36902
674         * tree-vrp.c (check_array_ref): Pass a location_t instead of a
675         pointer. Use warning_at instead of warning.
676         (search_for_addr_array): Likewise.
677         (check_array_bounds): Likewise.
678         (check_all_array_refs): Check that the incoming edge is not in the
679         list of edges to be removed.
680         (check_all_array_refs): Avoid the temporal pointer.
681         (vrp_visit_cond_stmt): Fix typo.
682         (simplify_switch_using_ranges): Handle the case where the switch
683         index is an integer constant.
684
685 2009-04-18  Adam Nemet  <anemet@caviumnetworks.com>
686
687         * config/mips/mips.c (mips_final_postscan_insn): Make it static.
688
689 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
690
691         * doc/extend.texi, doc/invoke.texi: Fix typos.
692
693 2009-04-17  Cary Coutant  <ccoutant@google.com>
694
695         * tree-flow-inline.h (get_lineno): Fix inverted test.
696
697 2009-04-17  Diego Novillo  <dnovillo@google.com>
698
699         * tree-ssa-pre.c (create_expression_by_pieces): Remove
700         assertion for AVAIL_OUT.
701
702 2009-04-17  Mike Frysinger  <vapier@gentoo.org>
703
704         PR target/38627
705         * config/sh/lib1funcs.asm [__ELF__ && __linux__]: Add .note.GNU-stack.
706         * config/sh/linux-atomic.asm: Likewise.
707
708 2009-04-17  Diego Novillo  <dnovillo@google.com>
709
710         * except.c (debug_eh_tree): New.
711         (struct eh_region, struct eh_status): Move ...
712         * except.h: ... here.
713         (add_type_for_runtime): Declare extern.
714         (lookup_type_for_runtime): Likewise.
715         (debug_eh_tree): Declare.
716         * Makefile.in (GTFILES): List except.h before except.c
717
718 2009-04-17  Diego Novillo  <dnovillo@google.com>
719
720         * omp-low.c (create_omp_child_function): Set DECL_CONTEXT for DECL.
721         * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
722         * tree-dfa.c (find_referenced_vars_in): Factor out of ...
723         (find_vars_r): ... here.
724         * tree-flow.h (find_referenced_vars_in): Declare.
725         * tree-ssa-pre.c (create_expression_by_pieces): Assert
726         that AVAIL_OUT exists for BLOCK.
727         * Makefile.in (CGRAPH_H): Add dependency on cif-code.def
728         (tree-loop-distribution.o): Fix dependency on TREE_VECTORIZER_H.
729         (tree-parloops.o): Likewise.
730
731 2009-04-17  Simon Baldwin  <simonb@google.com>
732
733         * toplev.c (default_tree_printer): Add handling for %E format.
734
735 2009-04-17  Diego Novillo  <dnovillo@google.com>
736
737         * tree-pretty-print.c (dump_generic_node): Add break after
738         TREE_BINFO handler.  Handle COMPLEX_TYPE, REAL_TYPE and
739         FIXED_POINT_TYPE.  Handle NULL TREE_TYPEs.  Handle METHOD_TYPE and
740         FUNCTION_TYPE together.  Call print_struct_decl when printing
741         structures and TDF_SLIM is not given.
742         (print_struct_decl): Fix logic for detecting recursion.
743
744 2009-04-17  Rafael Avila de Espindola  <espindola@google.com>
745
746         PR 31567
747         * gcc.c (create_at_file): New.
748         (compile_input_file_p): New.
749         (do_spec_1): Use @args files for %i. Use create_at_file for %o.
750         * main.c (main): Update call to toplev_main.
751         * toplev.c (toplev_main): Change signature. Call expandargv.
752         * toplev.h (toplev_main): Change signature.
753
754 2009-04-17  Eric Botcazou  <ebotcazou@adacore.com>
755
756         * dwarf2out.c (field_byte_offset): Use the type size as the field size
757         if the latter is not constant.
758
759 2009-04-17  David Edelsohn  <edelsohn@gnu.org>
760
761         * dbxout.c (xcoff_debug_hooks): Add set_name_debug_nothing.
762
763 2009-04-17  Eric Botcazou  <ebotcazou@adacore.com>
764
765         * dbxout.c (dbxout_block): Reinstate test on TREE_USED.
766         * tree-ssa-live.c (remove_unused_scope_block_p): Update TREE_USED bit.
767
768 2009-04-17  Richard Guenther  <rguenther@suse.de>
769
770         * tree-ssa-structalias.c (get_constraint_for_component_ref):
771         Handle component references view-converting an invariant address.
772
773 2009-04-17  Adam Nemet  <anemet@caviumnetworks.com>
774
775         * doc/tm.texi (TARGET_DEFAULT_TARGET_FLAGS,
776         TARGET_MIN_ANCHOR_OFFSET, TARGET_MAX_ANCHOR_OFFSET,
777         TARGET_HAVE_SRODATA_SECTION, TARGET_HAVE_TLS,
778         TARGET_UNWIND_TABLES_DEFAULT, TARGET_TERMINATE_DW2_EH_FRAME_INFO):
779         Use @deftypevr rather than @deftypevar.
780
781 2009-04-17  Richard Guenther  <rguenther@suse.de>
782
783         * tree-ssa-forwprop.c (get_prop_dest_stmt): Clean up tuplification.
784         (get_prop_source_stmt): Likewise.
785         (can_propagate_from): Likewise.
786
787 2009-04-17  Andrew Stubbs  <ams@codesourcery.com>
788
789         * configure.ac: Add new AC_SUBST for TM_ENDIAN_CONFIG,
790         TM_MULTILIB_CONFIG and TM_MULTILIB_EXCEPTIONS_CONFIG.
791         (--with-multilib-list): Add default value.
792         * configure: Regenerate.
793         * Makefile.in (TM_ENDIAN_CONFIG): Define.
794         (TM_MULTILIB_CONFIG, TM_MULTILIB_EXCEPTIONS_CONFIG): Define.
795         * config.gcc (sh-*-*): Switch to using TM_ENDIAN_CONFIG,
796         TM_MULTILIB_CONFIG, and TM_MULTILIB_EXCEPTIONS_CONFIG.
797         Don't add default cpu to multilib list unnecessarily, but do enable
798         the relevant compiler option..
799         Add support for --with-multilib-list=<blank> and
800         --with-multilib-list=!<somelib> to supress unwanted multilibs.
801         * config/sh/t-sh (DEFAULT_ENDIAN, OTHER_ENDIAN): New variables.
802         (MULTILIB_ENDIAN, MULTILIB_CPUS): Delete variables.
803         (MULTILIB_OPTIONS): Redefine using OTHER_ENDIAN and
804         TM_MULTILIB_CONFIG.
805         (MULTILIB_EXCEPTIONS): Add TM_MULTILIB_EXCEPTIONS_CONFIG.
806         (MULTILIB_OSDIRNAMES): New variable.
807         * config/sh/t-1e: Delete file.
808         * config/sh/t-mlib-sh1: Delete file.
809         * config/sh/t-mlib-sh2: Delete file.
810         * config/sh/t-mlib-sh2a: Delete file.
811         * config/sh/t-mlib-sh2a-nofpu: Delete file.
812         * config/sh/t-mlib-sh2a-single: Delete file.
813         * config/sh/t-mlib-sh2a-single-only: Delete file.
814         * config/sh/t-mlib-sh2e: Delete file.
815         * config/sh/t-mlib-sh3e: Delete file.
816         * config/sh/t-mlib-sh4: Delete file.
817         * config/sh/t-mlib-sh4-nofpu: Delete file.
818         * config/sh/t-mlib-sh4-single: Delete file.
819         * config/sh/t-mlib-sh4-single-only: Delete file.
820         * config/sh/t-mlib-sh4a: Delete file.
821         * config/sh/t-mlib-sh4a-nofpu: Delete file.
822         * config/sh/t-mlib-sh4a-single: Delete file.
823         * config/sh/t-mlib-sh4a-single-only: Delete file.
824         * config/sh/t-mlib-sh4al: Delete file.
825         * config/sh/t-mlib-sh5-32media: Delete file.
826         * config/sh/t-mlib-sh5-32media-nofpu: Delete file.
827         * config/sh/t-mlib-sh5-64media: Delete file.
828         * config/sh/t-mlib-sh5-64media-nofpu: Delete file.
829         * config/sh/t-mlib-sh5-compact: Delete file.
830         * config/sh/t-mlib-sh5-compact-nofpu: Delete file.
831         * config/sh/t-linux: Don't override MULTILIB_EXCEPTIONS.
832         * doc/install.texi (Options specification): Add
833         --with-multilib-list and --with-endian.
834
835 2009-04-17  Rafael Avila de Espindola  <espindola@google.com>
836
837         * Makefile.in (REVISION_s): Always include quotes. Change ifdef to use
838         REVISION_c.
839         (OBJS-common): Add plugin-version.o.
840         (plugin-version.o): New.
841         * gcc-plugin.h (plugin_gcc_version): New.
842         (plugin_default_version_check): New.
843         (plugin_init_func, plugin_init): Add version argument.
844         * plugin-version.c: New.
845         * plugin.c (str_plugin_gcc_version_name): New.
846         (try_init_one_plugin): Read plugin_gcc_version from the plugin and
847         pass it to the init function.
848         (plugin_default_version_check): New.
849
850 2009-04-17  Richard Guenther  <rguenther@suse.de>
851
852         * tree-ssa-alias.c (refs_may_alias_p_1): Do not use TBAA
853         for decl-vs-decl disambiguation.
854
855 2009-04-17  Andreas Krebbel  <krebbel1@de.ibm.com>
856
857         * config/s390/s390.h (s390_tune_attr): New macro definition.
858         * config/s390/s390.md (cpu attribute): Map to s390_tune_attr.
859
860 2009-04-17  Richard Guenther  <rguenther@suse.de>
861
862         * tree-ssa-ccp.c (struct fold_stmt_r_data): Remove.
863         (fold_stmt_r): Likewise.
864         (maybe_fold_reference): New function.
865         (fold_gimple_assign): Handle cases fold_stmt_r did.
866         (fold_stmt): Do not use fold_stmt_r.
867         (fold_stmt_inplace): Likewise.
868
869 2009-04-17  Richard Guenther  <rguenther@suse.de>
870
871         * tree-ssa-dom.c (gimple_assign_unary_useless_conversion_p): Remove.
872         (record_equivalences_from_stmt): Remove useless checks and
873         simplifications.
874         * tree-ssa-pre.c (eliminate): Avoid converting a constant if
875         the type is already suitable.
876
877 2009-04-17  Paolo Bonzini  <bonzini@gnu.org>
878
879         * config/sh/sh.h (FUNCTION_VALUE): Fix call to sh_promote_prototypes.
880
881 2009-04-17  Uros Bizjak  <ubizjak@gmail.com>
882
883         * config/arm/sfp-machine.h (__gcc_CMPtype): New typedef.
884         (CMPtype): Define as __gcc_CMPtype.
885
886 2009-04-17  Aurelien Jarno  <aurelien@aurel32.net>
887
888         * config.gcc: Add soft-fp/t-softfp and i386/t-linux to tmake_file
889         for i[34567]86-*-kfreebsd*-gnu*, x86_64-*-kfreebsd*-gnu*.
890
891 2009-04-17  Richard Guenther  <rguenther@suse.de>
892
893         PR tree-optimization/39746
894         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Remove
895         special-casing for builtins and static variable use/def.
896         (call_may_clobber_ref_p_1): Likewise.
897
898 2009-04-16  Ian Lance Taylor  <iant@google.com>
899
900         * df.h: Include "timevar.h".
901         (struct df_problem): Change tv_id field to timevar_id_t.
902         * tree-pass.h: Include "timevar.h".
903         (struct opt_pass): Change tv_id field to timevar_id_t.
904         * timevar.h (timevar_id_t): Define TV_NONE.
905         * passes.c (execute_one_ipa_transform_pass): Check for tv_id !=
906         TV_NONE rather than tv_id != 0.
907         (execute_one_pass): Likewise.
908         * Makefile.in (DF_H): Add $(TIMEVAR_H).
909         (TREE_PASS_H): Define.  Change all instances of tree-pass.h in
910         dependencies to $(TREE_PASS_H).
911         * bt-load.c (pass_branch_target_load_optimize1): Set tv_id field
912         to TV_NONE.
913         (pass_branch_target_load_optimize2): Likewise.
914         * cfglayout.c (pass_into_cfg_layout_mode): Likewise.
915         (pass_outof_cfg_layout_mode): Likewise.
916         * cgraphbuild.c (pass_remove_cgraph_callee_edges): Likewise.
917         (pass_rebuild_cgraph_edges): Likewise.
918         (pass_remove_cgraph_callee_edges): Likewise.
919         * df-core.c (pass_df_initialize_opt): Likewise.
920         (pass_df_initialize_no_opt): Likewise.
921         (pass_df_finish): Likewise.
922         * emit-rtl.c (pass_unshare_all_rtl): Likewise.
923         * except.c (pass_set_nothrow_function_flags): Likewise.
924         (pass_convert_to_eh_region_ranges): Likewise.
925         * final.c (pass_compute_alignments): Likewise.
926         * function.c (pass_instantiate_virtual_regs): Likewise.
927         (pass_init_function): Likewise.
928         (pass_leaf_regs): Likewise.
929         (pass_match_asm_constraints): Likewise.
930         * gimple-low.c (pass_lower_cf): Likewise.
931         (pass_mark_used_blocks): Likewise.
932         * init-regs.c (pass_initialize_regs): Likewise.
933         * integrate.c (pass_initial_value_sets): Likewise.
934         * ira.c (pass_ira): Likewise.
935         * jump.c (pass_cleanup_barriers): Likewise.
936         * omp-low.c (pass_expand_omp): Likewise.
937         (pass_lower_omp): Likewise.
938         * matrix-reorg.c (pass_ipa_matrix_reorg): Likewise.
939         * recog.c (pass_split_all_insns): Likewise.
940         (pass_split_after_reload): Likewise.
941         (pass_split_before_regstack): Likewise.
942         (pass_split_before_sched2): Likewise.
943         (pass_split_for_shorten_branches): Likewise.
944         * reginfo.c (pass_reginfo_init): Likewise.
945         (pass_subregs_of_mode_init): Likewise.
946         (pass_subregs_of_mode_finish): Likewise.
947         * passes.c (pass_postreload): Likewise.
948         * stack-ptr-mod.c (pass_stack_ptr_mod): Likewise.
949         * tree-cfg.c (pass_remove_useless_stmts): Likewise.
950         (pass_warn_function_return): Likewise.
951         (pass_warn_function_noreturn): Likewise.
952         * tree-complex.c (pass_lower_complex): Likewise.
953         (pass_lower_complex_O0): Likewise.
954         * tree-if-conv.c (pass_if_conversion): Likewise.
955         * tree-into-ssa.c (pass_build_ssa): Likewise.
956         * tree-mudflap.c (pass_mudflap_1): Likewise.
957         (pass_mudflap_2): Likewise.
958         * tree-nomudflap.c (pass_mudflap_1): Likewise.
959         (pass_mudflap_2): Likewise.
960         * tree-nrv.c (pass_return_slot): Likewise.
961         * tree-object-size.c (pass_object_sizes): Likewise.
962         * tree-optimize.c (pass_all_optimizations): Likewise.
963         (pass_early_local_passes): Likewise.
964         (pass_all_early_optimizations): Likewise.
965         (pass_cleanup_cfg): Likewise.
966         (pass_cleanup_cfg_post_optimizing): Likewise.
967         (pass_free_datastructures): Likewise.
968         (pass_free_cfg_annotations): Likewise.
969         (pass_fixup_cfg): Likewise.
970         (pass_init_datastructures): Likewise.
971         * tree-ssa.c (pass_early_warn_uninitialized): Likewise.
972         (pass_late_warn_uninitialized): Likewise.
973         (pass_update_address_taken): Likewise.
974         * tree-ssa-ccp.c (pass_fold_builtins): Likewise.
975         * tree-ssa-math-opts.c (pass_cse_reciprocals): Likewise.
976         (pass_cse_sincos): Likewise.
977         (pass_convert_to_rsqrt): Likewise.
978         * tree-ssa-structalias.c (pass_build_alias): Likewise.
979         * tree-stdarg.c (pass_stdarg): Likewise.
980         * tree-tailcall.c (pass_tail_recursion): Likewise.
981         (pass_tail_calls): Likewise.
982         * tree-vect-generic.c (pass_lower_vector): Likewise.
983         (pass_lower_vector_ssa): Likewise.
984         * tree-vectorizer.c (pass_ipa_increase_alignment): Likewise.
985
986 2009-04-16  Joseph Myers  <joseph@codesourcery.com>
987
988         * config/mips/mips.c (mips_rtx_cost_data): Use SOFT_FP_COSTS in
989         XLR entry.
990         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC, MIPS_ARCH_FLOAT_SPEC):
991         Handle -march=xlr.
992         * config/mips/xlr.md (ir_xlr_alu): Also accept insn types move,
993         logical and signext.
994
995 2009-04-16  Kaz Kojima  <kkojima@gcc.gnu.org>
996
997         PR target/39767
998         * config/sh/predicates.md (arith_operand): Check if the operand
999         of TRUNCATE is a REG.
1000
1001 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
1002
1003         * cfgrtl.c (delete_insn_chain_and_edges): Remove.
1004         * rtl.h: Remove the prototype for delete_insn_chain_and_edges.
1005
1006 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
1007
1008         * tree-iterator.c (tsi_split_statement_list_after,
1009         tsi_split_statement_list_before): Remove.
1010         * tree-iterator.h: Remove the prototypes for
1011         tsi_split_statement_list_after and tsi_split_statement_list_before.
1012
1013 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
1014
1015         * tree-ssa-propagate.c (stmt_makes_single_load): Remove.
1016         * tree-ssa-propagate.h: Remove the prototype for
1017         stmt_makes_single_load.
1018
1019 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
1020
1021         * emit-rtl.c (set_mem_attrs_from_reg): Remove.
1022         * rtl.h: Remove the prototype for set_mem_attrs_from_reg.
1023
1024 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
1025
1026         * tree-iterator.c (EXPR_LAST_BODY): Remove.
1027
1028 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
1029
1030         * except.c (eh_region_outer_p): Remove.
1031         * except.h: Remove the prototype for eh_region_outer_p.
1032
1033 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
1034
1035         * function.c (current_function_assembler_name): Remove.
1036         * function.h: Remove the prototype for
1037         current_function_assembler_name.
1038
1039 2009-04-16  Ian Lance Taylor  <iant@google.com>
1040
1041         * rtlanal.c (alloc_reg_note): New function, broken out of add_reg_note.
1042         (add_reg_note): Call alloc_reg_note.
1043         * rtl.h (alloc_reg_note): Declare.
1044         * combine.c (try_combine): Use alloc_reg_note.
1045         (recog_for_combine, move_deaths): Likewise.
1046         (distribute_notes): Use alloc_reg_note and add_reg_note.
1047         * haifa-sched.c (sched_create_recovery_edges): Use add_reg_note.
1048         * combine-stack-adj.c (adjust_frame_related_expr): Likewise.
1049         * reload1.c (eliminate_regs_1): Use alloc_reg_note.
1050
1051 2009-04-16  Vladimir Makarov  <vmakarov@redhat.com>
1052
1053         PR rtl-optimization/39762
1054         * ira-int.h (ira_register_move_cost, ira_may_move_in_cost,
1055         ira_may_move_out_cost): Add comments about way of their usage.
1056         (ira_get_register_move_cost, ira_get_may_move_cost): New functions.
1057
1058         * ira-conflicts.c (process_regs_for_copy): Use function
1059         ira_get_register_move_cost instead of global
1060         ira_register_move_cost.
1061
1062         * ira-color.c (update_copy_costs, calculate_allocno_spill_cost,
1063         color_pass, move_spill_restore, update_curr_costs): Ditto.
1064
1065         * ira-lives.c (process_single_reg_class_operands): Ditto.
1066
1067         * ira-emit.c (emit_move_list): Ditto.
1068
1069         * ira-costs.c (copy_cost): Don't call ira_init_register_move_cost.
1070         (record_reg_classes): Ditto.  Use functions
1071         ira_get_register_move_cost and ira_get_may_move_cost instead of
1072         global vars ira_register_move_cost, ira_may_move_out_cost and
1073         ira_may_move_in_cost.
1074         (record_address_regs): Don't call ira_init_register_move_cost.
1075         Use function ira_get_may_move_cost instead of global
1076         ira_may_move_in_cost.
1077         (process_bb_node_for_hard_reg_moves): Use function
1078         ira_get_register_move_cost instead of global ira_register_move_cost.
1079         (ira_costs): Don't call ira_init_register_move_cost.
1080
1081 2009-04-16  Richard Guenther  <rguenther@suse.de>
1082
1083         * tree-cfg.c (verify_gimple_assign_binary):
1084         Allow POINTER_PLUS_EXPR-like PLUS_EXPR for vectors.
1085         * ipa-struct-reorg.c (gen_size): Fold the built expressions.
1086         (create_general_new_stmt): Note that this function is broken.
1087
1088 2009-04-16  Rafael Avila de Espindola  <espindola@google.com>
1089
1090         * common.opt (fhelp): Add Var(help_flag).
1091         * gcc-plugin.h (plugin_info): Add help.
1092         * plugin.c (plugin_name_args): Add help.
1093         (register_plugin_info): Set plugin->help.
1094         (print_help_one_plugin): New.
1095         (print_plugins_help): New.
1096         * plugin.h (print_plugins_help): New.
1097         * toplev.c (toplev_main): Call print_plugins_help if needed.
1098
1099 2009-04-16  Richard Guenther  <rguenther@suse.de>
1100
1101         * gimple.c (gimple_copy): Do not clear addresses_taken bitmap.
1102         (gimple_ior_addresses_taken_1): New function.
1103         (gimple_ior_addresses_taken): Likewise.
1104         * gimple.h (struct gimple_statement_with_ops_base): Remove
1105         addresses_taken member.
1106         (gimple_ior_addresses_taken): Declare.
1107         (gimple_addresses_taken, gimple_addresses_taken_ptr,
1108         gimple_set_addresses_taken): Remove.
1109         * ipa-reference.c (mark_address): New function.
1110         (scan_stmt_for_static_refs): Use it for marking addresses taken.
1111         * tree-ssa-operands.c (add_to_addressable_set): Rename to ...
1112         (mark_address_taken): ... this.  Just set TREE_ADDRESSABLE.
1113         (gimple_add_to_addresses_taken): Remove.
1114         (get_tmr_operands): Call mark_address_taken.
1115         (get_asm_expr_operands): Likewise.
1116         (get_expr_operands): Likewise.
1117         (build_ssa_operands): Do not clear the addresses_taken bitmap.
1118         (free_stmt_operands): Do not free it.
1119         * tree-ssa.c (delete_tree_ssa): Likewise.
1120         (execute_update_addresses_taken): Use gimple_ior_addresses_taken.
1121
1122 2009-04-16  Richard Guenther  <rguenther@suse.de>
1123
1124         * gimple.h (walk_stmt_load_store_addr_ops): Declare.
1125         (walk_stmt_load_store_ops): Likewise.
1126         * gimple.c (get_base_loadstore): New function.
1127         (walk_stmt_load_store_addr_ops): Likewise.
1128         (walk_stmt_load_store_ops): Likewise.
1129         * ipa-pure-const.c (check_op): Simplify.
1130         (check_load, check_store): New functions.
1131         (check_stmt): Use walk_stmt_load_store_ops.
1132         * ipa-reference.c (mark_load): Adjust signature.
1133         (mark_store): Likewise.
1134         (scan_stmt_for_static_refs): Use walk_stmt_load_store_addr_ops.
1135
1136 2009-04-16  Rafael Avila de Espindola  <espindola@google.com>
1137
1138         * gcc-plugin.h (plugin_event): Add PLUGIN_INFO.
1139         (plugin_info): New.
1140         * opts.c (common_handle_option): Don't call print_version.
1141         * plugin.c (plugin_name_args): Add version.
1142         (register_plugin_info): New.
1143         (register_callback): Handle PLUGIN_INFO.
1144         (try_init_one_plugin): New.
1145         (init_one_plugin): Use try_init_one_plugin. Only free plugin_name_args
1146         if failed to init.
1147         (finalize_one_plugin): New.
1148         (finalize_plugins): New.
1149         (print_one_plugin): New.
1150         (print_plugins_versions): New.
1151         * plugin.h (print_plugins_versions): New.
1152         (finalize_plugins): New.
1153         * toplev.c (compile_file): Don't call initialize_plugins.
1154         (print_version): Call print_plugins_versions.
1155         (toplev_main): Call initialize_plugins. Print version if needed.
1156         Call finalize_plugins.
1157
1158 2009-04-16  Rafael Avila de Espindola  <espindola@google.com>
1159
1160         * common.opt (fversion): New.
1161         * gcc.c (print_version): New.
1162         (process_command): Don't print the version. Just set print_version.
1163         (main): Print version. Call subprocesses if print_version and
1164         verbose_flag are set.
1165         * opts.c (common_handle_option): Handle OPT_fversion.
1166
1167 2009-04-16  Richard Guenther  <rguenther@suse.de>
1168             Ira Rosen  <irar@il.ibm.com>
1169
1170         PR tree-optimization/39698
1171         * tree-vect-loop.c (get_initial_def_for_reduction): Use the
1172         type of the reduction variable.  Only generate the def if
1173         it is needed.
1174
1175         * omp-low.c (expand_omp_for_generic): When converting to a pointer
1176         make sure to first convert to an integer of the same precision.
1177         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Retain
1178         the type of the evolution correctly in computing the new
1179         induction variable base.
1180
1181 2009-04-16  Richard Guenther  <rguenther@suse.de>
1182
1183         PR middle-end/39625
1184         * tree-cfg.c (make_blocks): Split statements with to-be
1185         abnormal SSA names on the lhs.
1186
1187 2009-04-16  Paolo Bonzini  <bonzini@gnu.org>
1188
1189         * c-common.c (vector_targets_convertible_p, vector_types_convertible_p):
1190         Use TYPE_VECTOR_OPAQUE instead of targetm.vector_opaque_p.
1191         * c-typeck.c (really_start_incremental_init): Likewise.
1192         * target-def.h (TARGET_VECTOR_OPAQUE_P): Remove.
1193         (TARGET_INITIALIZER): Remove it.
1194         * target.h (struct target): Remove vector_opaque_p.
1195         * tree.c (build_opaque_vector_type): New.
1196         * tree.h (TYPE_VECTOR_OPAQUE): New.
1197         (build_opaque_vector_type): Declare.
1198         * doc/tm.texi (TARGET_VECTOR_OPAQUE_P): Remove.
1199         * config/rs6000/rs6000.c (build_opaque_vector_type,
1200         rs6000_is_vector_type, TARGET_VECTOR_OPAQUE_P): Remove.
1201         (rs6000_init_builtins): Use build_opaque_vector_type for
1202         opaque_V4SI_type_node.
1203
1204 2009-04-15  Catherine Moore  <clm@codesourcery.com>
1205
1206         * debug.h (set_name):  Declare.
1207         * dwarf2out.c (dwarf2out_set_name): Declare.
1208         (dwarf2_debug_hooks): Add set_name.
1209         (find_AT_string): New.
1210         (add_AT_string): Call find_AT_string.
1211         (dwarf2out_set_name): New.
1212         * cp/decl.c (grokdeclarator): Call set_name.
1213         * vmsdbgout.c (vmsdbg_debug_hooks): Add set_name_debug_nothing.
1214         * debug.c (do_nothing_debug_hooks):  Likewise.
1215         * dbxout.c (dbx_debug_hooks): Likewise.
1216         * sdbout.c (sdb_debug_hooks): Likewise.
1217
1218 2009-04-15  Michael Eager <eager@eagercon.com>
1219
1220         * config/rs6000/rs6000.c (rs6000_function_value): Set function return
1221         reg for single-precision FPU.
1222         * config/rs6000/rs6000.md (movsi_internal1): Only for
1223         !TARGET_SINGLE_FPU.
1224         (movsi_internal1_single): New. Add pattern to move SI values to/from
1225         single-precision FP regs.
1226
1227 2009-04-15  Richard Guenther  <rguenther@suse.de>
1228
1229         * omp-low.c (lower_rec_input_clauses): Build correct address
1230         expressions.
1231         (expand_omp_for_generic): Fix multiplication type.
1232         * tree-loop-distribution.c (build_size_arg): Build a size_t argument.
1233         (generate_memset_zero): Fix types.
1234         * tree-profile.c (prepare_instrumented_value): Correctly
1235         widen a pointer.
1236
1237 2009-04-15  Ian Lance Taylor  <iant@google.com>
1238
1239         * c.opt (Wenum-compare): Enable for C and Objc.  Initialize to -1.
1240         * c-opts.c (c_common_handle_option): For C, set warn_enum_compare
1241         for -Wall and for -Wc++-compat.
1242         (c_common_post_options): For C++, set warn_enum_compare if not
1243         already set.
1244         * c-tree.h (struct c_expr): Add field original_type.
1245         (build_external_ref): Update declaration.
1246         * c-parser.c (c_parser_braced_init): Set original_type.
1247         (c_parser_initelt): Likewise.
1248         (c_parser_expr_no_commas): Likewise.
1249         (c_parser_conditional_expression): Likewise.
1250         (c_parser_cast_expression): Likewise.
1251         (c_parser_unary_expression): Likewise.  Pull setting of
1252         original_code to top of function.
1253         (c_parser_sizeof_expression): Set original_type.
1254         (c_parser_alignof_expression): Likewise.
1255         (c_parser_postfix_expression): Likewise.  Pull setting of
1256         original_code to top of function.
1257         (c_parser_postfix_expression_after_paren_type): Set original_type.
1258         (c_parser_postfix_expression_after_primary): Likewise.
1259         (c_parser_expression): Likewise.
1260         * c-typeck.c (build_external_ref): Add type parameter.  Change all
1261         callers.
1262         (c_expr_sizeof_expr): Set original_type field.
1263         (parser_build_unary_op): Likewise.
1264         (parser_build_binary_op): Likewise.  Optionally warn about
1265         comparisons of enums of different types.
1266         (digest_init): Set original_type field.
1267         (really_start_incremental_init): Likewise.
1268         (push_init_level, pop_init_level): Likewise.
1269         * doc/invoke.texi (Warning Options): -Wenum-compare now
1270         supported in C.
1271
1272 2009-04-15  Richard Guenther  <rguenther@suse.de>
1273
1274         * tree-ssa-pre.c (eliminate): When replacing a PHI node carry
1275         out a necessary conversion.
1276         * tree-ssa-sccvn.c (run_scc_vn): Also assign value-ids to
1277         names we didn't value number.
1278         * tree-mudflap.c (mf_build_check_statement_for): Use correct types.
1279
1280 2009-04-15  Richard Guenther  <rguenther@suse.de>
1281
1282         PR tree-optimization/39764
1283         * tree-ssa-ccp.c (get_value): Canonicalize value with
1284         canonicalize_float_value.
1285
1286 2009-04-15  Jan Hubicka  <jh@suse.cz>
1287
1288         * builtins.def (va_start, va_end, va_copy): Fix my previous commit.
1289         Wrong version of patch.
1290
1291 2009-04-15  Jan Hubicka  <jh@suse.cz>
1292
1293         * builtins.def (va_start, va_end, va_copy): Mark nothrow.
1294
1295 2009-04-15  Nathan Sidwell  <nathan@codesourcery.com>
1296
1297         * config/rs6000/rs6000.c (rs6000_init_builtins): Set TYPE_NAME of
1298         our distinct integral and vector types.
1299
1300 2009-04-15  Rafael Avila de Espindola  <espindola@google.com>
1301
1302         * class.c (build_vtbl_ref_1): Remove call to assemble_external.
1303         * init.c (build_vtbl_address): Remove call to assemble_external.
1304
1305 2009-04-14  Daniel Jacobowitz  <dan@codesourcery.com>
1306
1307         * config/rs6000/rs6000.c (rs6000_dwarf_register_span): Fix debug
1308         output for other floating point modes.
1309
1310 2009-04-14  Diego Novillo  <dnovillo@google.com>
1311
1312         * diagnostic.c (diagnostic_report_diagnostic): Do not
1313         warn about loaded plugins for DK_ERROR and DK_WARNING.
1314         * c-decl.c (declspecs_add_type): Move call to
1315         invoke_plugin_callbacks ...
1316         * c-parser.c (c_parser_declspecs): ... here.
1317         * plugin.c (dump_active_plugins): Tidy output.
1318
1319 2009-04-14  Diego Novillo  <dnovillo@google.com>
1320             Le-Chun Wu  <lcwu@google.com>
1321
1322         * configure.ac: Add --enable-plugin support.
1323         Define ENABLE_PLUGIN and PLUGINLIBS when specified.
1324         * Makefile.in (PLUGIN_H): Define.
1325         Export ENABLE_PLUGIN and GMPINC to site.exp.
1326         Add PLUGINLIBS to link command.
1327         Add/modify dependencies for plugin.o and files including plugin.h.
1328         (plugin.o): New.
1329         * config.in: Regenerate.
1330
1331         * opts.c (common_handle_option): Handle OPT_fplugin_ and
1332         OPT_fplugin_arg_.
1333
1334 2009-04-14  Le-Chun Wu  <lcwu@google.com>
1335
1336         * tree-pass.h (register_one_dump_file): Add a prototype for
1337         register_one_dump_file.
1338         * toplev.c (compile_file): Call initialize_plugins.
1339         (do_compile): Call invoke_plugin_callbacks.
1340         (toplev_main): Call invoke_plugin_callbacks.
1341         * common.opt: Add -fplugin= and -fplugin-arg-.
1342         * gcc-plugin.h: New public header file for plugins to include.
1343         * plugin.c: New source file.
1344         * plugin.h: New internal header file.
1345         * passes.c (register_one_dump_file): Make it external.
1346
1347         * c-parser.c (c_parser_declspecs): Call invoke_plugin_callbacks.
1348
1349 2009-04-14  Diego Novillo  <dnovillo@google.com>
1350
1351         * doc/plugins.texi: New.
1352         * doc/gccint.texi: Add reference to Plugins chapter.
1353         * doc/invoke.texi: Document -fplugin and -fplugin-arg
1354         * diagnostic.c (diagnostic_report_diagnostic): Warn about
1355         loaded plugins, if any.
1356         * timevar.def (TV_PLUGIN_INIT): Define.
1357         (TV_PLUGIN_RUN): Define.
1358         * plugin.c: Include timevar.h
1359         (plugins_active_p): New.
1360         (dump_active_plugins): New.
1361         (debug_active_plugins): New.
1362
1363 2009-04-14  Joseph Myers  <joseph@codesourcery.com>
1364
1365         * config/sol2.h (LINK_ARCH32_SPEC_BASE): Use %R with absolute
1366         library paths.
1367         * config/sparc/sol2-bi.h (LINK_ARCH64_SPEC_BASE): Likewise.
1368
1369 2009-04-14  Kazu Hirata  <kazu@codesourcery.com>
1370
1371         * config/arm/arm.c (arm_rtx_costs_1): Treat a minus with a shift
1372         the same as a minus without a shift.
1373
1374 2009-04-14  Nick Clifton  <nickc@redhat.com>
1375
1376         * config/stormy16/stormy16.md (ineqbranch_1): Do not assume that
1377         comparisons with small integers will always produce a short
1378         branch.
1379
1380 2009-04-14  Rafael Avila de Espindola  <espindola@google.com>
1381
1382         Merge:
1383         2008-12-19  Diego Novillo  <dnovillo@google.com>
1384
1385         * cgraph.c (dump_cgraph_node): Show memory address of NODE.
1386
1387 2009-04-14  Richard Guenther  <rguenther@suse.de>
1388
1389         * tree-cfg.c (verify_gimple_assign_unary): Adjust vector code
1390         verification.
1391         (verify_gimple_assign_binary): Likewise.  Handle shifts and
1392         rotates correctly.
1393         (verify_gimple_phi): Print the mismatched argument position.
1394         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
1395         Fix types.
1396         (vect_update_init_of_dr): Likewise.
1397         * matrix-reorg.c (transform_access_sites): Do what the
1398         comment suggests.
1399         * omp-low.c (expand_omp_atomic_pipeline): Use the correct types.
1400
1401 2009-04-13  Michael Eager <eager@eagercon.com>
1402
1403         * config/rs6000/rs6000-c.c: generate defines if rs6000_xilinx_fpu:
1404         _XFPU, _XFPU_SP_LITE, _XFPU_SP_FULL, _XFPU_DP_LITE, _XFPU_DP_FULL
1405         * config/rs6000/xilinx.h: New.  Spec for powerpc-xilinx-eabi
1406         * config.gcc (powerpc-xilinx-eabi): add xilinx.h to tm_file,
1407         remove duplicate config
1408
1409 2009-04-13  Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
1410
1411         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Dump
1412         file_name:line_number type locator of the call site.
1413
1414 2009-04-13  Vladimir Makarov  <vmakarov@redhat.com>
1415
1416         * genautomata.c: Put blank after comma.
1417         (automaton_decls): New.
1418         (struct unit_usage): Add comments to member next.
1419         (store_alt_unit_usage): Keep the list ordered.
1420         (unit_present_on_list_p, equal_alternatives_p): New.
1421         (check_regexp_units_distribution): Check units distribution
1422         correctness correctly.
1423         (main): Don't write automata if error is found.  Return correct
1424         exit code.
1425
1426         * config/m68k/cf.md (cfv4_ds): Remove.
1427         (cfv4_pOEP1, cfv4_sOEP1, cfv4_pOEP2,cfv4_sOEP2, cfv4_pOEP3,
1428         cfv4_sOEP3): Assign to cfv4_oep instead of cfv4_ds.
1429
1430         * config/rs6000/power4.md (lsuq_power4, iq_power4, fpq_power4,
1431         power4-load-ext, power4-store, power4-store-update,
1432         power4-fpstore, power4-fpstore-update, power4-two, power4-three,
1433         power4-insert, power4-compare, power4-lmul-cmp, power4-imul-cmp,
1434         power4-lmul, , power4-imul, power4-imul3, power4-sdiv,
1435         power4-sqrt, power4-isync): Modify reservation to make correct
1436         unit distribution to automata.
1437
1438         * config/rs6000/power5.md (iq_power5, fpq_power5, power5-store,
1439         power5-store-update, power5-two, power5-three, power5-lmul,
1440         power5-imul, power5-imul3, power5-sdiv, power5-sqrt): Ditto.
1441
1442 2009-04-13  Adam Nemet  <anemet@caviumnetworks.com>
1443
1444         * except.c (pass_set_nothrow_function_flags): Set name and add
1445         TODO_dump_func.
1446         (set_nothrow_function_flags): Mention in the dump file when
1447         changing a function to nothrow.
1448
1449 2009-04-13  Ozkan Sezer  <sezeroz@gmail.com>
1450
1451         PR/39066
1452         * gbl-ctors.h (DO_GLOBAL_CTORS_BODY): Use __SIZE_TYPE__
1453         instead of unsigned long.
1454
1455 2009-04-13  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
1456
1457         * config/arm/arm.c (return_used_this_function): Remove.
1458         (arm_output_function_prologue): Remove use of
1459         return_used_this_function.
1460         (output_return_instruction): Replace use of
1461         return_used_this_function
1462         by cfun->machine->return_used_this_function.
1463         (arm_output_epilogue): Likewise.
1464         (arm_output_function_epilogue): Likewise.
1465         (thumb_unexpanded_epilogue): Likewise.
1466         * config/arm/arm.h (struct machine_function):
1467         New member return_used_this_function.
1468
1469 2009-04-12  Mark Mitchell  <mark@codesourcery.com>
1470
1471         * doc/install.texi: Correct description of default directory for
1472         --with-gxx-include-dir.
1473
1474 2009-04-12  Eric Botcazou  <ebotcazou@adacore.com>
1475
1476         * fold-const.c (build_range_check): Properly deal with enumeral and
1477         boolean base types.
1478
1479 2009-04-12  Steven Bosscher  <steven@gcc.gnu.org>
1480
1481         * doc/invoke.texi (max_gcse_passes): Remove documentation.
1482         * params.def (PARAM_MAX_GCSE_PASSES): Remove.
1483         * params.h (MAX_GCSE_PASSES): Remove.
1484         * gcse.c (gcse_main): Run CPROP1, PRE or HOIST, and CPROP2
1485         in sequence.  Remove ability to run multiple passes.
1486         (bypass_jumps): Report run as third CPROP pass.
1487
1488 2009-04-12  Adam Nemet  <anemet@caviumnetworks.com>
1489
1490         PR middle-end/39651
1491         * except.c (can_throw_external): Look at each insn in a SEQUENCE
1492         when deciding whether the whole SEQUENCE can throw.
1493
1494 2009-04-12  Uros Bizjak  <ubizjak@gmail.com>
1495
1496         PR target/39740
1497         * config/alpha/predicates.md (local_symbolic_operand): Return 1 for
1498         offseted label references.
1499
1500 2009-04-11  Jan Hubicka  <jh@suse.cz>
1501
1502         * tree-ssa-pre.c (eliminate): Fix call of update_stmt.
1503
1504 2009-04-11  Richard Guenther  <rguenther@suse.de>
1505
1506         PR middle-end/39732
1507         * tree-inline.c (declare_return_variable): Mark DECL_BY_REFERENCE
1508         return variables as TREE_ADDRESSABLE.
1509
1510 2009-04-11  Richard Guenther  <rguenther@suse.de>
1511
1512         PR tree-optimization/39713
1513         * tree-ssa-sccvn.c (vn_get_expr_for): Make sure built
1514         reference trees have SSA_NAME operands.
1515
1516 2009-04-11  Richard Guenther  <rguenther@suse.de>
1517
1518         PR c/39712
1519         * c-gimplify.c (c_gimplify_expr): Adjust check for mismatched
1520         address expressions.
1521
1522 2009-04-11  Dave Korn  <dave.korn.cygwin@gmail.com>
1523
1524         * config/i386/cygwin-stdint.h (INT_LEAST32_TYPE):  Update to
1525         match changes in Cygwin 1.7
1526         (UINT_LEAST32_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE,
1527         UINT_FAST16_TYPE, UINT_FAST32_TYPE):  Likewise.
1528
1529 2009-04-10  Paolo Bonzini  <bonzini@gnu.org>
1530
1531         PR tree-optimization/39701
1532         * doc/invoke.texi (Optimization Options): Document change in
1533         meaning and initialization of -fdelete-null-pointer-checks.
1534
1535 2009-04-10  H.J. Lu  <hongjiu.lu@intel.com>
1536
1537         PR middle-end/39701
1538         * common.opt (-fdelete-null-pointer-checks): Initialize to 1.
1539
1540         * opts.c (decode_options): Don't set flag_delete_null_pointer_checks
1541         here.
1542
1543         * doc/invoke.texi: Update -fdelete-null-pointer-checks.
1544
1545 2009-04-10  Chao-ying Fu  <fu@mips.com>
1546
1547         * doc/tm.texi (Instruction Output): Document
1548         TARGET_ASM_FINAL_POSTSCAN_INSN.
1549         * target.h (final_postscan_insn): New field in asm_out.
1550         * target-def.h (TARGET_ASM_FINAL_POSTSCAN_INSN): New define.
1551         (TARGET_ASM_OUT): Add TARGET_ASM_FINAL_POSTSCAN_INSN.
1552         * final.c (final_scan_insn): Call
1553         targetm.asm_out.final_postscan_insn after outputting
1554         an asm macro and a normal instruction.
1555
1556         * config/mips/mips.h (FINAL_PRESCAN_INSN): New define.
1557         * config/mips/mips-protos.h (mips_final_prescan_insn): Declare.
1558         * config/mips/mips.c (mips_at_reg_p): New for_each_rtx callback.
1559         (mips_final_prescan_insn, mips_final_postscan_insn): New functions.
1560         (TARGET_ASM_FINAL_POSTSCAN_INSN): New define.
1561
1562 2009-04-10  Paolo Bonzini  <bonzini@gnu.org>
1563
1564         PR middle-end/39701
1565         * fold-const.c (tree_single_nonzero_warnv_p): Pass non-static
1566         variables as non-NULL even with -fdelete-null-pointer-checks.
1567
1568 2009-04-10  H.J. Lu  <hongjiu.lu@intel.com>
1569
1570         * config/rs6000/darwin-vecsave.asm: Remove extra "*/".
1571
1572 2009-04-09  H.J. Lu  <hongjiu.lu@intel.com>
1573
1574         PR target/39678
1575         * config/i386/i386.c (classify_argument): Handle SCmode with
1576         (bit_offset % 64) != 0.
1577
1578 2009-04-09  Sandra Loosemore  <sandra@codesourcery.com>
1579
1580         * doc/invoke.texi (Optimize Options): Add cross-reference to
1581         -Q --help=optimizers examples.
1582
1583 2009-04-10  Ben Elliston  <bje@au.ibm.com>
1584
1585         PR target/36800
1586         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Do not set
1587         regalign for the reg == fpr and TDmode case.
1588
1589 2009-04-09  David Ayers  <ayers@fsfe.org>
1590
1591         PR objc/29200
1592         * objc/objc-act.c (warn_with_method): Remove helper function.
1593         (check_duplicates): Call warning and inform directly.
1594         (really_start_method): Likewise.
1595
1596 2009-04-09  Paolo Bonzini  <bonzini@gnu.org>
1597
1598         * expmed.c (expand_divmod): Always use a comparison for a division
1599         by a large unsigned integer.
1600
1601         * fold-const.c (tree_single_nonzero_warnv_p): Always treat decls
1602         for things others than variables or functions as nonzero.
1603
1604 2009-04-09  Nick Clifton  <nickc@redhat.com>
1605
1606         * unwind-compat.c: Change copyright header to refer to version
1607         3 of the GNU General Public License with version 3.1 of the
1608         GCC Runtime Library Exception and to point readers at the
1609         COPYING3 and COPYING3.RUNTIME files and the FSF's license web page.
1610         * config/alpha/crtfastmath.c: Likewise.
1611         * config/alpha/linux-unwind.h: Likewise.
1612         * config/alpha/qrnnd.asm: Likewise.
1613         * config/alpha/vms-crt0-64.c: Likewise.
1614         * config/alpha/vms-crt0.c: Likewise.
1615         * config/alpha/vms-dwarf2.asm: Likewise.
1616         * config/alpha/vms-dwarf2eh.asm: Likewise.
1617         * config/alpha/vms-psxcrt0-64.c: Likewise.
1618         * config/alpha/vms-psxcrt0.c: Likewise.
1619         * config/alpha/vms_tramp.asm: Likewise.
1620         * config/arc/initfini.c: Likewise.
1621         * config/arc/lib1funcs.asm: Likewise.
1622         * config/arm/bpabi-v6m.S: Likewise.
1623         * config/arm/bpabi.S: Likewise.
1624         * config/arm/bpabi.c: Likewise.
1625         * config/arm/crti.asm: Likewise.
1626         * config/arm/crtn.asm: Likewise.
1627         * config/arm/ieee754-df.S: Likewise.
1628         * config/arm/ieee754-sf.S: Likewise.
1629         * config/arm/lib1funcs.asm: Likewise.
1630         * config/arm/libunwind.S: Likewise.
1631         * config/arm/linux-atomic.c: Likewise.
1632         * config/arm/mmintrin.h: Likewise.
1633         * config/arm/pr-support.c: Likewise.
1634         * config/arm/unaligned-funcs.c: Likewise.
1635         * config/arm/unwind-arm.c: Likewise.
1636         * config/arm/unwind-arm.h: Likewise.
1637         * config/avr/libgcc.S: Likewise.
1638         * config/bfin/crti.s: Likewise.
1639         * config/bfin/crtlibid.s: Likewise.
1640         * config/bfin/crtn.s: Likewise.
1641         * config/bfin/lib1funcs.asm: Likewise.
1642         * config/bfin/linux-unwind.h: Likewise.
1643         * config/cris/arit.c: Likewise.
1644         * config/cris/cris_abi_symbol.c: Likewise.
1645         * config/darwin-64.c: Likewise.
1646         * config/darwin-crt2.c: Likewise.
1647         * config/darwin-crt3.c: Likewise.
1648         * config/darwin.h: Likewise.
1649         * config/dbxelf.h: Likewise.
1650         * config/dfp-bit.c: Likewise.
1651         * config/dfp-bit.h: Likewise.
1652         * config/elfos.h: Likewise.
1653         * config/fixed-bit.c: Likewise.
1654         * config/fixed-bit.h: Likewise.
1655         * config/fp-bit.c: Likewise.
1656         * config/fp-bit.h: Likewise.
1657         * config/fr30/crti.asm: Likewise.
1658         * config/fr30/crtn.asm: Likewise.
1659         * config/fr30/lib1funcs.asm: Likewise.
1660         * config/freebsd-spec.h: Likewise.
1661         * config/frv/cmovd.c: Likewise.
1662         * config/frv/cmovh.c: Likewise.
1663         * config/frv/cmovw.c: Likewise.
1664         * config/frv/frvbegin.c: Likewise.
1665         * config/frv/frvend.c: Likewise.
1666         * config/frv/lib1funcs.asm: Likewise.
1667         * config/glibc-stdint.h: Likewise.
1668         * config/h8300/clzhi2.c: Likewise.
1669         * config/h8300/crti.asm: Likewise.
1670         * config/h8300/crtn.asm: Likewise.
1671         * config/h8300/ctzhi2.c: Likewise.
1672         * config/h8300/fixunssfsi.c: Likewise.
1673         * config/h8300/lib1funcs.asm: Likewise.
1674         * config/h8300/parityhi2.c: Likewise.
1675         * config/h8300/popcounthi2.c: Likewise.
1676         * config/i386/ammintrin.h: Likewise.
1677         * config/i386/att.h: Likewise.
1678         * config/i386/avxintrin.h: Likewise.
1679         * config/i386/biarch64.h: Likewise.
1680         * config/i386/bmmintrin.h: Likewise.
1681         * config/i386/cpuid.h: Likewise.
1682         * config/i386/cross-stdarg.h: Likewise.
1683         * config/i386/crtfastmath.c: Likewise.
1684         * config/i386/crtprec.c: Likewise.
1685         * config/i386/cygming-crtbegin.c: Likewise.
1686         * config/i386/cygming-crtend.c: Likewise.
1687         * config/i386/cygwin.asm: Likewise.
1688         * config/i386/emmintrin.h: Likewise.
1689         * config/i386/gmm_malloc.h: Likewise.
1690         * config/i386/gthr-win32.c: Likewise.
1691         * config/i386/i386.h: Likewise.
1692         * config/i386/immintrin.h: Likewise.
1693         * config/i386/linux-unwind.h: Likewise.
1694         * config/i386/linux64.h: Likewise.
1695         * config/i386/mm3dnow.h: Likewise.
1696         * config/i386/mmintrin-common.h: Likewise.
1697         * config/i386/mmintrin.h: Likewise.
1698         * config/i386/nmmintrin.h: Likewise.
1699         * config/i386/pmm_malloc.h: Likewise.
1700         * config/i386/pmmintrin.h: Likewise.
1701         * config/i386/smmintrin.h: Likewise.
1702         * config/i386/sol2-c1.asm: Likewise.
1703         * config/i386/sol2-ci.asm: Likewise.
1704         * config/i386/sol2-cn.asm: Likewise.
1705         * config/i386/sol2-gc1.asm: Likewise.
1706         * config/i386/tmmintrin.h: Likewise.
1707         * config/i386/unix.h: Likewise.
1708         * config/i386/w32-unwind.h: Likewise.
1709         * config/i386/wmmintrin.h: Likewise.
1710         * config/i386/x86-64.h: Likewise.
1711         * config/i386/x86intrin.h: Likewise.
1712         * config/i386/xmmintrin.h: Likewise.
1713         * config/ia64/crtbegin.asm: Likewise.
1714         * config/ia64/crtend.asm: Likewise.
1715         * config/ia64/crtfastmath.c: Likewise.
1716         * config/ia64/crti.asm: Likewise.
1717         * config/ia64/crtn.asm: Likewise.
1718         * config/ia64/fde-glibc.c: Likewise.
1719         * config/ia64/lib1funcs.asm: Likewise.
1720         * config/ia64/linux-unwind.h: Likewise.
1721         * config/ia64/quadlib.c: Likewise.
1722         * config/ia64/unwind-ia64.c: Likewise.
1723         * config/linux.h: Likewise.
1724         * config/m32c/m32c-lib1.S: Likewise.
1725         * config/m32c/m32c-lib2-trapv.c: Likewise.
1726         * config/m32c/m32c-lib2.c: Likewise.
1727         * config/m32r/initfini.c: Likewise.
1728         * config/m68hc11/larith.asm: Likewise.
1729         * config/m68hc11/m68hc11-crt0.S: Likewise.
1730         * config/m68k/cf.md: Likewise.
1731         * config/m68k/crti.s: Likewise.
1732         * config/m68k/crtn.s: Likewise.
1733         * config/m68k/lb1sf68.asm: Likewise.
1734         * config/m68k/linux-unwind.h: Likewise.
1735         * config/mcore/crti.asm: Likewise.
1736         * config/mcore/crtn.asm: Likewise.
1737         * config/mcore/lib1.asm: Likewise.
1738         * config/mips/linux-unwind.h: Likewise.
1739         * config/mips/loongson.h: Likewise.
1740         * config/mips/mips16.S: Likewise.
1741         * config/mmix/crti.asm: Likewise.
1742         * config/mmix/crtn.asm: Likewise.
1743         * config/pa/fptr.c: Likewise.
1744         * config/pa/hpux-unwind.h: Likewise.
1745         * config/pa/lib2funcs.asm: Likewise.
1746         * config/pa/linux-atomic.c: Likewise.
1747         * config/pa/linux-unwind.h: Likewise.
1748         * config/pa/milli64.S: Likewise.
1749         * config/pa/quadlib.c: Likewise.
1750         * config/pa/stublib.c: Likewise.
1751         * config/picochip/libgccExtras/adddi3.asm: Likewise.
1752         * config/picochip/libgccExtras/ashlsi3.asm: Likewise.
1753         * config/picochip/libgccExtras/ashlsi3.c: Likewise.
1754         * config/picochip/libgccExtras/ashrsi3.asm: Likewise.
1755         * config/picochip/libgccExtras/ashrsi3.c: Likewise.
1756         * config/picochip/libgccExtras/cmpsi2.asm: Likewise.
1757         * config/picochip/libgccExtras/divmod15.asm: Likewise.
1758         * config/picochip/libgccExtras/divmodhi4.asm: Likewise.
1759         * config/picochip/libgccExtras/divmodsi4.asm: Likewise.
1760         * config/picochip/libgccExtras/longjmp.asm: Likewise.
1761         * config/picochip/libgccExtras/lshrsi3.asm: Likewise.
1762         * config/picochip/libgccExtras/lshrsi3.c: Likewise.
1763         * config/picochip/libgccExtras/parityhi2.asm: Likewise.
1764         * config/picochip/libgccExtras/popcounthi2.asm: Likewise.
1765         * config/picochip/libgccExtras/setjmp.asm: Likewise.
1766         * config/picochip/libgccExtras/subdi3.asm: Likewise.
1767         * config/picochip/libgccExtras/ucmpsi2.asm: Likewise.
1768         * config/picochip/libgccExtras/udivmodhi4.asm: Likewise.
1769         * config/picochip/libgccExtras/udivmodsi4.asm: Likewise.
1770         * config/rs6000/750cl.h: Likewise.
1771         * config/rs6000/altivec.h: Likewise.
1772         * config/rs6000/biarch64.h: Likewise.
1773         * config/rs6000/crtresfpr.asm: Likewise.
1774         * config/rs6000/crtresgpr.asm: Likewise.
1775         * config/rs6000/crtresxfpr.asm: Likewise.
1776         * config/rs6000/crtresxgpr.asm: Likewise.
1777         * config/rs6000/crtsavfpr.asm: Likewise.
1778         * config/rs6000/crtsavgpr.asm: Likewise.
1779         * config/rs6000/darwin-asm.h: Likewise.
1780         * config/rs6000/darwin-fallback.c: Likewise.
1781         * config/rs6000/darwin-fpsave.asm: Likewise.
1782         * config/rs6000/darwin-ldouble.c: Likewise.
1783         * config/rs6000/darwin-tramp.asm: Likewise.
1784         * config/rs6000/darwin-unwind.h: Likewise.
1785         * config/rs6000/darwin-vecsave.asm: Likewise.
1786         * config/rs6000/darwin-world.asm: Likewise.
1787         * config/rs6000/e500crtres32gpr.asm: Likewise.
1788         * config/rs6000/e500crtres64gpr.asm: Likewise.
1789         * config/rs6000/e500crtres64gprctr.asm: Likewise.
1790         * config/rs6000/e500crtrest32gpr.asm: Likewise.
1791         * config/rs6000/e500crtrest64gpr.asm: Likewise.
1792         * config/rs6000/e500crtresx32gpr.asm: Likewise.
1793         * config/rs6000/e500crtresx64gpr.asm: Likewise.
1794         * config/rs6000/e500crtsav32gpr.asm: Likewise.
1795         * config/rs6000/e500crtsav64gpr.asm: Likewise.
1796         * config/rs6000/e500crtsav64gprctr.asm: Likewise.
1797         * config/rs6000/e500crtsavg32gpr.asm: Likewise.
1798         * config/rs6000/e500crtsavg64gpr.asm: Likewise.
1799         * config/rs6000/e500crtsavg64gprctr.asm: Likewise.
1800         * config/rs6000/eabi-ci.asm: Likewise.
1801         * config/rs6000/eabi-cn.asm: Likewise.
1802         * config/rs6000/eabi.asm: Likewise.
1803         * config/rs6000/linux-unwind.h: Likewise.
1804         * config/rs6000/linux64.h: Likewise.
1805         * config/rs6000/paired.h: Likewise.
1806         * config/rs6000/paired.md: Likewise.
1807         * config/rs6000/ppc64-fp.c: Likewise.
1808         * config/rs6000/ppu_intrinsics.h: Likewise.
1809         * config/rs6000/rs6000.h: Likewise.
1810         * config/rs6000/si2vmx.h: Likewise.
1811         * config/rs6000/sol-ci.asm: Likewise.
1812         * config/rs6000/sol-cn.asm: Likewise.
1813         * config/rs6000/spe.h: Likewise.
1814         * config/rs6000/spu2vmx.h: Likewise.
1815         * config/rs6000/sysv4.h: Likewise.
1816         * config/rs6000/tramp.asm: Likewise.
1817         * config/rs6000/vec_types.h: Likewise.
1818         * config/s390/linux-unwind.h: Likewise.
1819         * config/s390/tpf-unwind.h: Likewise.
1820         * config/score/crti.asm: Likewise.
1821         * config/score/crtn.asm: Likewise.
1822         * config/sh/crt1.asm: Likewise.
1823         * config/sh/crti.asm: Likewise.
1824         * config/sh/crtn.asm: Likewise.
1825         * config/sh/divtab-sh4-300.c: Likewise.
1826         * config/sh/divtab-sh4.c: Likewise.
1827         * config/sh/divtab.c: Likewise.
1828         * config/sh/lib1funcs-4-300.asm: Likewise.
1829         * config/sh/lib1funcs-Os-4-200.asm: Likewise.
1830         * config/sh/lib1funcs.asm: Likewise.
1831         * config/sh/lib1funcs.h: Likewise.
1832         * config/sh/linux-atomic.asm: Likewise.
1833         * config/sh/linux-unwind.h: Likewise.
1834         * config/sh/shmedia.h: Likewise.
1835         * config/sh/sshmedia.h: Likewise.
1836         * config/sh/ushmedia.h: Likewise.
1837         * config/sparc/crtfastmath.c: Likewise.
1838         * config/sparc/linux-unwind.h: Likewise.
1839         * config/sparc/sol2-c1.asm: Likewise.
1840         * config/sparc/sol2-ci.asm: Likewise.
1841         * config/sparc/sol2-cn.asm: Likewise.
1842         * config/spu/divmodti4.c: Likewise.
1843         * config/spu/divv2df3.c: Likewise.
1844         * config/spu/float_disf.c: Likewise.
1845         * config/spu/float_unsdidf.c: Likewise.
1846         * config/spu/float_unsdisf.c: Likewise.
1847         * config/spu/float_unssidf.c: Likewise.
1848         * config/spu/mfc_multi_tag_release.c: Likewise.
1849         * config/spu/mfc_multi_tag_reserve.c: Likewise.
1850         * config/spu/mfc_tag_release.c: Likewise.
1851         * config/spu/mfc_tag_reserve.c: Likewise.
1852         * config/spu/mfc_tag_table.c: Likewise.
1853         * config/spu/multi3.c: Likewise.
1854         * config/spu/spu_internals.h: Likewise.
1855         * config/spu/spu_intrinsics.h: Likewise.
1856         * config/spu/spu_mfcio.h: Likewise.
1857         * config/spu/vec_types.h: Likewise.
1858         * config/spu/vmx2spu.h: Likewise.
1859         * config/stormy16/stormy16-lib2.c: Likewise.
1860         * config/svr4.h: Likewise.
1861         * config/sync.c: Likewise.
1862         * config/v850/lib1funcs.asm: Likewise.
1863         * config/vxlib-tls.c: Likewise.
1864         * config/vxlib.c: Likewise.
1865         * config/vxworks-dummy.h: Likewise.
1866         * config/xtensa/crti.asm: Likewise.
1867         * config/xtensa/crtn.asm: Likewise.
1868         * config/xtensa/ieee754-df.S: Likewise.
1869         * config/xtensa/ieee754-sf.S: Likewise.
1870         * config/xtensa/lib1funcs.asm: Likewise.
1871         * config/xtensa/lib2funcs.S: Likewise.
1872         * config/xtensa/linux-unwind.h: Likewise.
1873         * config/xtensa/unwind-dw2-xtensa.c: Likewise.
1874         * config/xtensa/unwind-dw2-xtensa.h: Likewise.
1875         * coretypes.h: Likewise.
1876         * crtstuff.c: Likewise.
1877         * defaults.h: Likewise.
1878         * dwarf2.h: Likewise.
1879         * emutls.c: Likewise.
1880         * gbl-ctors.h: Likewise.
1881         * gcov-io.h: Likewise.
1882         * ginclude/float.h: Likewise.
1883         * ginclude/iso646.h: Likewise.
1884         * ginclude/stdarg.h: Likewise.
1885         * ginclude/stdbool.h: Likewise.
1886         * ginclude/stddef.h: Likewise.
1887         * ginclude/stdfix.h: Likewise.
1888         * ginclude/stdint-gcc.h: Likewise.
1889         * ginclude/tgmath.h: Likewise.
1890         * gthr-aix.h: Likewise.
1891         * gthr-dce.h: Likewise.
1892         * gthr-gnat.c: Likewise.
1893         * gthr-gnat.h: Likewise.
1894         * gthr-lynx.h: Likewise.
1895         * gthr-mipssde.h: Likewise.
1896         * gthr-nks.h: Likewise.
1897         * gthr-posix.c: Likewise.
1898         * gthr-posix.h: Likewise.
1899         * gthr-posix95.h: Likewise.
1900         * gthr-rtems.h: Likewise.
1901         * gthr-single.h: Likewise.
1902         * gthr-solaris.h: Likewise.
1903         * gthr-tpf.h: Likewise.
1904         * gthr-vxworks.h: Likewise.
1905         * gthr-win32.h: Likewise.
1906         * gthr.h: Likewise.
1907         * libgcc2.c: Likewise.
1908         * libgcc2.h: Likewise.
1909         * libgcov.c: Likewise.
1910         * tsystem.h: Likewise.
1911         * typeclass.h: Likewise.
1912         * unwind-c.c: Likewise.
1913         * unwind-compat.h: Likewise.
1914         * unwind-dw2-fde-compat.c: Likewise.
1915         * unwind-dw2-fde-darwin.c: Likewise.
1916         * unwind-dw2-fde-glibc.c: Likewise.
1917         * unwind-dw2-fde.c: Likewise.
1918         * unwind-dw2-fde.h: Likewise.
1919         * unwind-dw2.c: Likewise.
1920         * unwind-dw2.h: Likewise.
1921         * unwind-generic.h: Likewise.
1922         * unwind-pe.h: Likewise.
1923         * unwind-sjlj.c: Likewise.
1924         * unwind.inc: Likewise.
1925         * config/arm/neon-gen.ml: Change generated copyright header to
1926         refer to version 3 of the GNU General Public License with
1927         version 3.1 of the GCC Runtime Library Exception and to point
1928         readers at the COPYING3 and COPYING3.RUNTIME files and the
1929         FSF's license web page.
1930         * config/arm/arm_neon.h: Regenerate.
1931
1932 2009-04-09  Jakub Jelinek  <jakub@redhat.com>
1933
1934         * config/cris/cris.md: Change copyright header to refer to version
1935         3 of the GNU General Public License.
1936         * doc/install.texi2html: Change copyright header to refer to version
1937         3 of the GNU General Public License and to point readers at the
1938         COPYING3 file and the FSF's license web page.
1939         * config/vax/linux.h: Likewise.
1940
1941 2009-04-09  Paolo Bonzini  <bonzini@gnu.org>
1942
1943         * config/i386/i386.md (cmpcc): New.
1944         * config/i386/sync.md (sync_compare_and_swap*): Set FLAGS_REG.
1945         (sync_compare_and_swap_cc*): Delete.
1946
1947         * config/s390/s390.c (s390_compare_emitted): Remove.
1948         (s390_emit_compare): Handle MODE_CC s390_compare_op0 like
1949         s390_compare_emitted used to be handled.  Assert that modes match.
1950         (s390_emit_compare_and_swap): Use s390_emit_compare, do not
1951         refer to sync_compare_and_swap_ccsi.
1952         * config/s390/s390.h (s390_compare_emitted): Remove.
1953         * config/s390/s390.md (seq): Look for MODE_CC s390_compare_op0
1954         instead of s390_compare_emitted.
1955         (stack_protect_test, sync_compare_and_swap_cc): Set s390_compare_op0
1956         instead of s390_compare_emitted.
1957         * config/s390/s390.md (cmpcc): New.
1958         (sync_compare_and_swapqi, sync_compare_and_swaphi): Clobber
1959         CC_REGNUM, do not pretend it's set.
1960         (sync_compare_and_swap_cc*): Delete.
1961         * config/s390/predicates.md (cc_reg_operand): New.
1962
1963         * expr.c (sync_compare_and_swap_cc): Delete.
1964         * optabs.h (sync_compare_and_swap_cc): Delete.
1965         * optabs.c (prepare_cmp_insn): Ignore which specific CCmode
1966         is being used with can_compare_p.
1967         (emit_cmp_and_jump_insn_1): Likewise when looking in the optab.
1968         (find_cc_set): New.
1969         (expand_bool_compare_and_swap): Do not use sync_compare_and_swap_cc,
1970         look for a MODE_CC set instead.  Use emit_store_flag.
1971         (expand_compare_and_swap_loop): Likewise, with some additional
1972         complication to avoid a force_reg when useless.  Use
1973         emit_cmp_and_jump_insns.
1974         * genopinit.c (optabs): Delete sync_compare_and_swap_cc.
1975         * doc/md.texi (sync_compare_and_swap_cc): Merge with
1976         sync_compare_and_swap documentation.
1977
1978 2009-04-09  Jan Hubicka  <jh@suse.cz>
1979
1980         * except.c (find_prev_try): Break out from ....
1981         (duplicate_eh_regions): ... here; properly update prev_try pointers
1982         when duplication part of tree.
1983         (dump_eh_tree): Improve dumping.
1984         (verify_eh_region): New.
1985         (verify_eh_tree): Use it.
1986
1987 2009-04-06  Richard Guenther  <rguenther@suse.de>
1988
1989         * c-gimplify.c (c_gimplify_expr): Fix the invalid GENERIC
1990         &ARRAY addresses by adjusting their types and prepending
1991         a conversion.
1992         * tree-cfg.c (verify_gimple_assign_single): Verify that
1993         addresses are correct.
1994
1995 2009-04-09  Richard Guenther  <rguenther@suse.de>
1996
1997         * tree-ssa-ccp.c (maybe_fold_stmt_addition): Move non-constant
1998         indices into an array reference if possible.
1999         * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
2000         Fold POINTER_PLUS_EXPR statements with invariant address.
2001
2002 2009-04-09  Alan Modra  <amodra@bigpond.net.au>
2003
2004         PR target/39634
2005         * config.gcc (powerpc64-*-linux*): Always build biarch.
2006
2007 2009-04-09  Joseph Myers  <joseph@codesourcery.com>
2008
2009         PR c/39613
2010         * c-typeck.c (do_case): If case label is not an INTEGER_CST, fold
2011         it and pedwarn if this results in an INTEGER_CST.
2012
2013 2009-04-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2014
2015         * doc/install.texi: Update minimum GMP version.  Remove obsolete
2016         text in MPFR section.
2017
2018 2009-04-08  Jakub Jelinek  <jakub@redhat.com>
2019
2020         * dwarf2out.c (class_scope_p): New static inline.
2021         (class_or_namespace_scope_p): Use it.
2022         (gen_variable_die): Use DW_TAG_member tag for static data member
2023         declarations instead of DW_TAG_variable.
2024
2025         PR middle-end/39573
2026         * omp-low.c (expand_omp_taskreg): Finalize taskreg static local_decls
2027         variables.
2028
2029 2009-04-08  Richard Guenther  <rguenther@suse.de>
2030
2031         * tree-ssa-sccvn.c (valueize_refs): Do not continue to
2032         valueize random data.
2033
2034 2009-04-08  David Edelsohn  <edelsohn@gnu.org>
2035
2036         * config.gcc (aix tm_file):  Add aix-stdint.h.
2037         (aix tm clause use_gcc_stdint):  Set to wrap.
2038         * config/rs6000/aix-stdint.h:  New file.
2039
2040 2009-04-08  Richard Guenther  <rguenther@suse.de>
2041
2042         PR middle-end/36291
2043         * tree-dfa.c (add_referenced_var): Do not recurse into
2044         global initializers.
2045         * tree-ssa-ccp.c (get_symbol_constant_value): Add newly
2046         exposed variables.
2047         (fold_const_aggregate_ref): Likewise.
2048
2049 2009-04-08  Paolo Bonzini  <bonzini@gnu.org>
2050
2051         * recog.c (ordered_comparison_operator): New.
2052         * gensupport.c (std_preds): Add it.
2053         * doc/md.texi (Machine-Independent Predicates): Document it.
2054
2055 2009-04-08  Jan Hubicka  <jh@suse.cz>
2056
2057         * tree-eh.c (cleanup_eh): When not optimizing, do not try EH merging.
2058         * function.h (rtl_eh): Remove exception_handler_label_map.
2059         * except.c (ehl_hash, ehl_eq, add_ehl_entry,
2060         remove_exception_handler_label, for_each_eh_label_1): Remove.
2061         (rtl_remove_unreachable_regions): Remove.
2062         (convert_from_eh_region_ranges): Do not remove unreachable regions.
2063         (find_exception_handler_labels): Don't build the hashtable.
2064         (maybe_remove_eh_handler): Remove.
2065         (for_each_eh_label): Rewrite to walk the tree.
2066         (rest_of_handle_eh): Do not cleanup cfg prior EH construction.
2067         * except.h (maybe_remove_eh_handler): Remove.
2068         * passes.c (init_optimization_passes): Schedule second EH cleanup
2069         before out-of-ssa.
2070         * cfgrtl.c (rtl_delete_block, rtl_merge_blocks,
2071         cfg_layout_merge_blocks): Do not call maybe_remove_eh_handler.
2072
2073 2009-04-08  Paolo Bonzini  <bonzini@gnu.org>
2074
2075         * genoutput.c (validate_optab_operands): New.
2076         (gen_insn, gen_expand): Call it.
2077
2078         * genflags.c (gen_insn): Detect misused iterators.
2079         (main): Pass line_no to gen_insn, exit with status 1 on error.
2080
2081         * genextract.c (line_no): Make global.
2082         (VEC_safe_set_locstr): Change assertion to error message.
2083         (main): Exit with status 1 on error.
2084
2085 2009-04-08  Joseph Myers  <joseph@codesourcery.com>
2086
2087         PR c/39614
2088         PR c/39673
2089         * c-common.h (C_MAYBE_CONST_EXPR_PRE, C_MAYBE_CONST_EXPR_EXPR,
2090         C_MAYBE_CONST_EXPR_INT_OPERANDS, C_MAYBE_CONST_EXPR_NON_CONST,
2091         EXPR_INT_CONST_OPERANDS): Remove duplicate definitions.
2092         * c-convert.c (convert): Do not call fold on results of conversion
2093         functions when the result is a C_MAYBE_CONST_EXPR.
2094         * c-parser.c (c_parser_postfix_expression): Do not fold condition
2095         of __builtin_choose_expr.
2096         * c-typeck.c (remove_c_maybe_const_expr): New.
2097         (build_unary_op, build_conditional_expr, build_compound_expr,
2098         build_binary_op, c_objc_common_truthvalue_conversion): Call
2099         remove_c_maybe_const_expr on any input C_MAYBE_CONST_EXPR with
2100         integer operands.
2101
2102 2009-04-08 Bingfeng Mei <bmei@broadcom.com>
2103
2104         * fold-const.c (const_binop): Combine two VECTOR_CST under operation
2105         CODE to produce a new one. Add a prototype to use fold_convert_const
2106
2107 2009-04-08  Danny Smith  <dannysmith@users.sourceforge.net>
2108
2109         PR bootstrap/39660
2110         * config/i386/host-mingw32.c (mingw32_gt_pch_use_address): Don't
2111         mix declarations and code.
2112
2113 2009-04-08  Ben Elliston  <bje@au.ibm.com>
2114
2115         * gcc.c: Replace `CC' with `GCC' throughout.
2116
2117 2009-04-07  H.J. Lu  <hongjiu.lu@intel.com>
2118
2119         * doc/invoke.texi: Document Atom support.
2120
2121 2009-04-07  Jason Merrill  <jason@redhat.com>
2122
2123         PR c++/25185
2124         * c-common.h, c-common.c: Add flag_pretty_templates.
2125         * c-opts.c (c_common_handle_option): Set it.
2126         * c.opt: Add -fno-pretty-templates.
2127         * doc/invoke.texi (C++ Dialect Options): Likewise.
2128
2129 2009-04-07  Uros Bizjak  <ubizjak@gmail.com>
2130
2131         * config/ia64/ia64.c (ia64_builtins): Add IA64_BUILTIN_HUGE_VALQ.
2132         (ia64_init_builtins): Handle IA64_BUILTIN_HUGE_VALQ.
2133         (ia64_expand_builtin): Likewise.
2134
2135 2009-04-07  Martin Jambor  <mjambor@suse.cz>
2136
2137         * tree-ssa-alias.c (refs_may_alias_p_1): Check for
2138         is_gimple_min_invariant rather than CONSTANT_CLASS_P so that invariant
2139         ADDR_EXPRS are include too.
2140
2141 2009-04-07  Richard Guenther  <rguenther@suse.de>
2142
2143         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Non-aliased
2144         decls are only used if passes as parameters or if they are
2145         local statics and the call is not to a builtin.
2146         (call_may_clobber_ref_p_1): Likewise.
2147
2148 2009-04-07  Paolo Bonzini  <bonzini@gnu.org>
2149
2150         * expr.c (do_store_flag): Remove last argument.  Simplify code
2151         to avoid duplication of tests already done by can_compare_p.
2152         (expand_expr_real_1): Adjust caller.
2153
2154 2009-04-07  Paolo Bonzini  <bonzini@gnu.org>
2155
2156         * optabs.c (can_compare_p): Test the predicate of a
2157         cbranch and cstore pattern.
2158
2159 2009-04-07  Paolo Bonzini  <bonzini@gnu.org>
2160
2161         * expr.c (convert_move): Use emit_store_flag instead of
2162         "emulating" it.
2163
2164 2009-04-07  Paolo Bonzini  <bonzini@gnu.org>
2165
2166         * config/i386/i386.c (ix86_compare_emitted): Remove.
2167         (ix86_expand_compare, ix86_expand_branch): Handle MODE_CC
2168         ix86_compare_op0 like ix86_compare_emitted used to be handled.
2169         * config/i386/i386.h (ix86_compare_emitted): Remove.
2170         * config/i386/i386.md (stack_protect_test): Set ix86_compare_op0
2171         instead of ix86_compare_emitted.
2172         * config/i386/sync.md (sync_compare_and_swap_cc): Likewise.
2173
2174 2009-04-07  Andrew Stubbs  <ams@codesourcery.com>
2175
2176         * config.gcc (sh-*-*): Add sysroot-suffix.h to tm_file.
2177         Add t-sysroot-suffix to tmake_file.
2178         * config/print-sysroot-suffix.sh: New file.
2179         * config/t-sysroot-suffix: New file.
2180
2181 2009-04-07  Ben Elliston  <bje@au.ibm.com>
2182
2183         * libgcc2.c (INFINITY): Use __builtin_huge_val, not __builtin_inf,
2184         as the latter produces a warning when the target does not support
2185         infinity.
2186
2187 2009-04-07  Ben Elliston  <bje@au.ibm.com>
2188
2189         * dfp.c: Replace type punning assignments with memcpy throughout.
2190         * Makefile.in (dfp.o-warn): Remove.
2191
2192 2009-04-07  Alan Modra  <amodra@bigpond.net.au>
2193
2194         PR target/39634
2195         * config.gcc: Merge powerpc-*-linux* and powerpc64-*-linux*.
2196         Include soft-fp/t-softfp after rs6000/t-linux64.
2197
2198 2009-04-06  Eric Botcazou  <ebotcazou@adacore.com>
2199
2200         * stor-layout.c (set_sizetype): Use the full precision of their
2201         machine mode for bitsize types.
2202
2203 2009-04-06  H.J. Lu  <hongjiu.lu@intel.com>
2204
2205         * config/i386/i386.md: Revert 2 accidental checkins.
2206
2207 2009-04-06  Joey Ye  <joey.ye@intel.com>
2208             Xuepeng Guo <xuepeng.guo@intel.com>
2209             H.J. Lu  <hongjiu.lu@intel.com>
2210
2211         Atom pipeline model, tuning and insn selection.
2212         * config.gcc (atom): Add atom config options and target.
2213
2214         * config/i386/atom.md: New.
2215
2216         * config/i386/i386.c (atom_cost): New cost.
2217         (m_ATOM): New macro flag.
2218         (initial_ix86_tune_features): Set m_ATOM.
2219         (x86_accumulate_outgoing_args): Likewise.
2220         (x86_arch_always_fancy_math_387): Likewise.
2221         (processor_target): Add Atom cost.
2222         (cpu_names): Add Atom cpu name.
2223         (override_options): Set Atom ISA.
2224         (ix86_issue_rate): New case PROCESSOR_ATOM.
2225         (ix86_adjust_cost): Likewise.
2226
2227         * config/i386/i386.h (TARGET_ATOM): New target macro.
2228         (ix86_tune_indices): Add X86_TUNE_OPT_AGU.
2229         (TARGET_OPT_AGU): New target option.
2230         (target_cpu_default): Add TARGET_CPU_DEFAULT_atom.
2231         (processor_type): Add PROCESSOR_ATOM.
2232
2233         * config/i386/i386.md (cpu): Add new value "atom".
2234         (use_carry, movu): New attr.
2235         (atom.md): Include atom.md.
2236         (adddi3_carry_rex64): Set attr "use_carry".
2237         (addqi3_carry): Likewise.
2238         (addhi3_carry): Likewise.
2239         (addsi3_carry): Likewise.
2240         (*addsi3_carry_zext): Likewise.
2241         (subdi3_carry_rex64): Likewise.
2242         (subqi3_carry): Likewise.
2243         (subhi3_carry): Likewise.
2244         (subsi3_carry): Likewise.
2245         (x86_movdicc_0_m1_rex64): Likewise.
2246         (*x86_movdicc_0_m1_se): Likewise.
2247         (x86_movsicc_0_m1): Likewise.
2248         (*x86_movsicc_0_m1_se): Likewise.
2249         (*adddi_1_rex64): Emit add insn as much as possible.
2250         (*addsi_1): Likewise.
2251         (return_internal): Set atom_unit.
2252         (return_internal_long): Likewise.
2253         (return_pop_internal): Likewise.
2254         (*rcpsf2_sse): Set atom_sse_attr attr.
2255         (*qrt<mode>2_sse): Likewise.
2256         (*prefetch_sse): Likewise.
2257
2258         * config/i386/i386-c.c (ix86_target_macros_internal): New case
2259         PROCESSOR_ATOM.
2260         (ix86_target_macros_internal): Likewise.
2261
2262         * config/i386/sse.md (cpu): Set attr "atom_sse_attr".
2263         (*prefetch_sse_rex): Likewise.
2264         (sse_rcpv4sf2): Likewise.
2265         (sse_vmrcpv4sf2): Likewise.
2266         (sse_sqrtv4sf2): Likewise.
2267         (<sse>_vmsqrt<mode>2): Likewise.
2268         (sse_ldmxcsr): Likewise.
2269         (sse_stmxcsr): Likewise.
2270         (*sse_sfence): Likewise.
2271         (sse2_clflush): Likewise.
2272         (*sse2_mfence): Likewise.
2273         (*sse2_lfence): Likewise.
2274         (avx_movup<avxmodesuffixf2c><avxmodesuffix>): Set attr "movu".
2275         (<sse>_movup<ssemodesuffixf2c>): Likewise.
2276         (avx_movdqu<avxmodesuffix>): Likewise.
2277         (avx_lddqu<avxmodesuffix>): Likewise.
2278         (sse2_movntv2di): Change attr "type" to "ssemov".
2279         (sse2_movntsi): Likewise.
2280         (rsqrtv8sf2): Change attr "type" to "sseadd".
2281         (sse3_addsubv2df3): Set attr "atom_unit".
2282         (sse3_h<plusminus_insn>v4sf3): Likewise.
2283         (*sse2_pmaddwd): Likewise.
2284         (*vec_extractv2di_1_rex64): Likewise.
2285         (*vec_extractv2di_1_avx): Likewise.
2286         (sse2_psadbw): Likewise.
2287         (ssse3_phaddwv8hi3): Likewise.
2288         (ssse3_phaddwv4hi3): Likewise.
2289         (ssse3_phadddv4si3): Likewise.
2290         (ssse3_phadddv2si3): Likewise.
2291         (ssse3_phaddswv8hi3): Likewise.
2292         (ssse3_phaddswv4hi3): Likewise.
2293         (ssse3_phsubwv8hi3): Likewise.
2294         (ssse3_phsubwv4hi3): Likewise.
2295         (ssse3_phsubdv4si3): Likewise.
2296         (ssse3_phsubdv2si3): Likewise.
2297         (ssse3_phsubswv8hi3): Likewise.
2298         (ssse3_phsubswv4hi3): Likewise.
2299         (ssse3_pmaddubsw128): Likewise.
2300         (sse3_pmaddubsw: Likewise.
2301         (ssse3_palignrti): Likewise.
2302         (ssse3_palignrdi): Likewise.
2303
2304 2009-04-06  Gerald Pfeifer  <gerald@pfeifer.com>
2305
2306         * doc/install.texi (Specific): Fix two cross-references to MinGW.
2307
2308 2009-04-06  Richard Guenther  <rguenther@suse.de>
2309
2310         PR tree-optimization/28868
2311         * tree-ssa-pre.c (inserted_phi_names): New bitmap to keep track
2312         of which PHI results we inserted.
2313         (insert_into_preds_of_block): Record inserted PHIs.
2314         (eliminate): Eliminate redundant PHI nodes.
2315         (init_pre): Init inserted_phi_names.
2316
2317 2009-04-06  Richard Guenther  <rguenther@suse.de>
2318
2319         PR tree-optimization/39643
2320         * tree-ssa-ccp.c (ccp_fold): Fold REALPART_EXPRs and
2321         IMAGPART_EXPRs of complex constants.
2322         (execute_fold_all_builtins): If we folded a call queue
2323         TODO_update_address_taken.
2324
2325 2009-04-06  Jan Hubicka  <jh@suse.cz>
2326
2327         PR middle-end/39659
2328         * except.c (remove_unreachable_regions): Propagate may_contain_throw
2329         flag.
2330
2331 2009-04-06  Andrew Stubbs  <ams@codesourcery.com>
2332
2333         * config/sh/lib1funcs.asm (ic_invalidate): Move ICBI out of the
2334         delay slot.
2335         (ic_invalidate_array): Likewise.
2336
2337 2009-04-06  Hariharan Sandanagobalane <hariharan@picochip.com>
2338
2339         * calls.c (emit_library_call_value_1): Fix a problem with parameter
2340         alignment for library calls.
2341
2342 2009-04-06  Danny Smith  <dannysmith@users.sourceforge.net>
2343
2344         * config.gcc (mingw32 tm_file):  Add mingw-stdint.h.
2345         (mingw32 tm clause use_gcc_stdint):  Set to wrap.
2346         * config/i386/mingw-stdint.h:  New file.
2347
2348 2009-04-05  Richard Guenther  <rguenther@suse.de>
2349
2350         PR tree-optimization/39648
2351         * tree-ssa-sccvn.c (vn_reference_fold_indirect): Work around
2352         our &A vs. &A[0] IL deficiencies.
2353
2354 2009-04-04  Jan Hubicka  <jh@suse.cz>
2355
2356         * except.c (sjlj_find_directly_reachable_regions): Be ready for
2357         removed toplevel regions.
2358         (sjlj_mark_call_sites): Likewise.
2359
2360 2009-04-04  Dave Korn  <dave.korn.cygwin@gmail.com>
2361
2362         * config.gcc (cygwin tm_file):  Add cygwin-stdint.h.
2363         (cygwin tm clause use_gcc_stdint):  Set to wrap.
2364         * config/i386/cygwin-stdint.h:  New file.
2365
2366 2009-04-04  Richard Guenther  <rguenther@suse.de>
2367
2368         * Makefile.in (tree-ssa-copy.o): Add $(CFGLOOP_H) dependency.
2369         * tree-ssa-copy.c (init_copy_prop): Do not propagate through
2370         single-argument PHIs if we are in loop-closed SSA form.
2371         * tree-vect-loop-manip.c (slpeel_add_loop_guard): Pass extra guards
2372         for the pre-condition.
2373         (slpeel_tree_peel_loop_to_edge): Likewise.
2374         (vect_build_loop_niters): Take an optional sequence to append stmts.
2375         (vect_generate_tmps_on_preheader): Likewise.
2376         (vect_do_peeling_for_loop_bound): Take extra guards for the
2377         pre-condition.
2378         (vect_do_peeling_for_alignment): Adjust.  Unconditionally apply
2379         the cost model check.
2380         (vect_loop_versioning): Take stmt and stmt list to put pre-condition
2381         guards if we are going to peel.  Do not apply versioning in that case.
2382         * tree-vectorizer.h (vect_loop_versioning): Adjust declaration.
2383         (vect_do_peeling_for_loop_bound): Likewise.
2384         * tree-vect-loop.c (vect_transform_loop): If we are peeling for
2385         loop bound only record extra pre-conditions, do not apply loop
2386         versioning.
2387
2388 2009-04-04  Richard Guenther  <rguenther@suse.de>
2389
2390         * tree-ssa-operands.c (pop_stmt_changes): Remove automatic
2391         renaming code.
2392
2393 2009-04-04  Jan Hubicka  <jh@suse.cz>
2394
2395         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
2396         last_basic_block for size of bb->index indexed array.
2397         * bt-load.c (compute_defs_uses_and_gen, compute_kill,
2398         compute_out, link_btr_uses, build_btr_def_use_webs,
2399         build_btr_def_use_webs, migrate_btr_defs): Likewise.
2400
2401 2009-04-04  Jan Hubicka  <jh@suse.cz>
2402
2403         * except.c (remove_eh_handler_and_replace): Break out from ...
2404         (remove_eh_handler): ... here.
2405         (bring_to_root): New function.
2406         (remove_unreachable_regions): Collect MUST_NOT_THROW, unify runtime
2407         handled ones, bring others to root of tree.
2408
2409 2009-04-04  Jan Hubicka  <jh@suse.cz>
2410
2411         * tree-eh.c (tree_empty_eh_handler_p): Pattern match more curefully.
2412         (all_phis_safe_to_merge): New function.
2413         (update_info): New structure.
2414         (make_eh_edge_and_update_phi, update_eh_edges): New functions.
2415         (cleanup_empty_eh): Update SSA if possible.
2416
2417 2009-04-04  Richard Guenther  <rguenther@suse.de>
2418
2419         * tree-ssa.c (verify_ssa): With -O0 we do not need VOPs.
2420         * tree-ssa-operands.c (append_vdef): Do not append VOPs at -O0.
2421         (append_vuse): Likewise.
2422
2423 2009-04-04  Jakub Jelinek  <jakub@redhat.com>
2424
2425         * unwind-dw2.h (_Unwind_FrameState): Add REG_UNDEFINED enum value.
2426         * unwind-dw2.c (execute_cfa_program): Set how to REG_UNDEFINED
2427         instead of REG_UNSAVED for DW_CFA_undefined.
2428         (uw_update_context_1): Handle REG_UNDEFINED the same as REG_UNSAVED.
2429         (uw_update_context): If RA column is REG_UNDEFINED, mark it as
2430         outermost frame.
2431
2432 2009-04-04  Richard Earnshaw  <rearnsha@arm.com>
2433
2434         PR target/39501
2435         * arm.md (movsfcc): Disable if not TARGET_HARD_FLOAT.
2436         * testsuite/gcc.c-torture/execute/pr39501.c: New file.
2437         * testsuite/gcc.c-torture/execute/pr39501.x: New file.
2438
2439 2009-04-04  Richard Guenther  <rguenther@suse.de>
2440
2441         PR tree-optimization/8781
2442         PR tree-optimization/37892
2443         * tree-ssa-sccvn.h (vn_reference_fold_indirect): Declare.
2444         * tree-ssa-sccvn.c (vn_reference_fold_indirect): New function.
2445         (valueize_refs): Call it for *& valueizations.
2446         (shared_reference_ops_from_ref): Rename to ...
2447         (valueize_shared_reference_ops_from_ref): ... this and valueize.
2448         (shared_reference_ops_from_call): Rename to ...
2449         (valueize_shared_reference_ops_from_call): ... this and valueize.
2450         (vn_reference_lookup): Update.
2451         (visit_reference_op_call): Likewise.
2452         * tree-ssa-pre.c (phi_translate_1): Fold *&.
2453         (eliminate): Value-replace the call address in call statements.
2454
2455 2009-04-04  Richard Guenther  <rguenther@suse.de>
2456
2457         PR tree-optimization/39636
2458         * tree-ssa-forwprop.c
2459         (forward_propagate_addr_into_variable_array_index): Check for
2460         GIMPLE_ASSIGN before accessing the rhs code.
2461
2462 2009-04-03  Jason Merrill  <jason@redhat.com>
2463
2464         * stor-layout.c (set_sizetype): Set TYPE_CANONICAL.
2465
2466 2009-04-03  Steve Ellcey  <sje@cup.hp.com>
2467
2468         * config/ia64/ia64.md (extendsfdf2, extendsfxf2, extenddfxf2,
2469         truncdfsf2, truncxfsf2, truncxfdf2, floatdixf2, fix_truncsfdi2,
2470         fix_truncdfdi2, fix_truncxfdi2, fix_truncxfdi2_alts, floatunsdisf2,
2471         floatunsdidf2, floatunsdixf2, fixuns_truncsfdi2, fixuns_truncdfdi2,
2472         fixuns_truncxfdi2, fixuns_truncxfdi2_alts, divsi3_internal,
2473         smuldi3_highpart, umuldi3_highpart, ctzdi2, *getf_exp_xf,
2474         divdi3_internal_lat, divdi3_internal_thr, mulditi3, *mulditi3_internal,
2475         umulditi3, *umulditi3_internal, addsf3, mulsf3, abssf2, negsf2,
2476         *nabssf2, sminsf3, smaxsf3, *maddsf4, *msubsf4, *nmulsf3, *nmaddsf4,
2477         *nmaddsf4_alts, divsf3, *sqrt_approx, sqrtsf2, sqrtsf2_internal_thr,
2478         adddf3, *adddf3_trunc, muldf3, *muldf3_trunc, absdf2, negdf2, *nabsdf2,
2479         smindf3, smaxdf3, *madddf4, *madddf4_trunc, *msubdf4, *msubdf4_trunc,
2480         *nmuldf3, *nmuldf3_trunc, *nmadddf4, *nmadddf4_alts, *nmadddf4_truncsf,
2481         *nmadddf4_truncsf_alts, divdf3, sqrtdf2, sqrtdf2_internal_thr, divxf3,
2482         sqrtxf2, sqrtxf2_internal_thr, *recip_approx):
2483         Use fr_reg_or_fp01_operand instead of fr_register_operand
2484
2485         * config/ia64/div.md (extend<mode>rf2, truncrf<mode>2,
2486         recip_approx_rf, divsf3_internal_thr, divsf3_internal_lat,
2487         divdf3_internal_thr, divdf3_internal_lat divxf3_internal): Ditto.
2488
2489 2009-04-03  Vladimir Makarov  <vmakarov@redhat.com>
2490
2491         PR rtl-optimization/39607
2492         PR rtl-optimization/39631
2493
2494         Revert:
2495
2496         2009-03-30  Vladimir Makarov  <vmakarov@redhat.com>
2497         * reload.c (push_reload, find_dummy_reload): Use df_get_live_out
2498         instead of DF_LR_OUT.
2499         * ira-lives.c (process_bb_node_lives): Ditto.
2500         * ira-color.c (ira_loop_edge_freq): Use df_get_live_{out,in}
2501         instead of DF_LR_{OUT,IN}.
2502         * ira-emit.c (generate_edge_moves, add_ranges_and_copies): Ditto.
2503         * ira-build.c (create_bb_allocnos, create_loop_allocnos): Ditto.
2504
2505 2009-04-03  Steven Bosscher  <steven@gcc.gnu.org>
2506
2507         * omp-low.c (pass_expand_omp): Don't claim to provide PROP_gimple_lomp.
2508         (execute_lower_omp): Always run but take the short way out if -fopenmp
2509         is not given.
2510         (gate_lower_omp): Remove, forcing the pass manager to always run the
2511         pass and always set PROP_gimple_lomp.
2512         (pass_lower_omp): Remove gate function.
2513         * matrix-reorg.c (pass_ipa_matrix_reorg): Don't claim to provide
2514         PROP_trees.  Instead, require it.
2515         * ipa-cp.c (pass_ipa_cp): Likewise.
2516         * ipa-inline.c (pass_early_inline): Don't claim to provide PROP_cfg.
2517         (pass_ipa_early_inline, pass_inline_parameters, pass_ipa_inline): Idem.
2518         * tree-profile.c (pass_tree_profile): Don't claim to provide PROP_cfg
2519         and PROP_gimple_leh.
2520
2521 2009-04-03  Richard Guenther  <rguenther@suse.de>
2522
2523         PR middle-end/13146
2524         PR tree-optimization/23940
2525         PR tree-optimization/33237
2526         PR middle-end/33974
2527         PR middle-end/34093
2528         PR tree-optimization/36201
2529         PR tree-optimization/36230
2530         PR tree-optimization/38049
2531         PR tree-optimization/38207
2532         PR tree-optimization/38230
2533         PR tree-optimization/38301
2534         PR tree-optimization/38585
2535         PR middle-end/38895
2536         PR tree-optimization/38985
2537         PR tree-optimization/39299
2538         * tree-ssa-structalias.h: Remove.
2539         * tree-ssa-operands.h (NULL_USE_OPERAND_P): Make of type use_operand_p.
2540         (NULL_DEF_OPERAND_P): Make of type def_operand_p.
2541         (struct vuse_element_d): Remove.
2542         (struct vuse_vec_d): Likewise.
2543         (VUSE_VECT_NUM_ELEM, VUSE_VECT_ELEMENT_NC, VUSE_ELEMENT_PTR_NC,
2544         VUSE_ELEMENT_VAR_NC, VUSE_VECT_ELEMENT, VUSE_ELEMENT_PTR,
2545         SET_VUSE_VECT_ELEMENT, SET_VUSE_ELEMENT_VAR, SET_VUSE_ELEMENT_PTR,
2546         VUSE_ELEMENT_VAR): Likewise.
2547         (struct voptype_d): Likewise.
2548         (NUM_VOP_FREE_BUCKETS): Likewise.
2549         (struct ssa_operands): Remove vop_free_buckets and mpt_table fields.
2550         (struct stmt_operands_d): Remove.
2551         (VUSE_OP_PTR, VUSE_OP, SET_VUSE_OP, VUSE_NUM, VUSE_VECT,
2552         VDEF_RESULT_PTR, VDEF_RESULT, VDEF_OP_PTR, VDEF_OP, SET_VDEF_OP,
2553         VDEF_NUM, VDEF_VECT): Likewise.
2554         (copy_virtual_operands): Remove.
2555         (operand_build_cmp): Likewise.
2556         (create_ssa_artificial_load_stmt): Likewise.
2557         (enum ssa_op_iter_type): Remove ssa_op_iter_vdef.
2558         (struct ssa_operand_iterator_d): Remove vuses, vdefs, mayusesm
2559         vuse_index and mayuse_index members.  Pack and move done and iter_type
2560         members to the front.
2561         (SSA_OP_VMAYUSE): Remove.
2562         (SSA_OP_VIRTUAL_USES): Adjust.
2563         (FOR_EACH_SSA_VDEF_OPERAND): Remove.
2564         (unlink_stmt_vdef): Declare.
2565         (add_to_addressable_set): Remove.
2566         * tree-vrp.c (stmt_interesting_for_vrp): Adjust.
2567         (vrp_visit_stmt): Likewise.
2568         * doc/tree-ssa.texi (Alias analysis): Update.
2569         * doc/invoke.texi (max-aliased-vops): Remove docs.
2570         (avg-aliased-vops): Likewise.
2571         * tree-into-ssa.c (syms_to_rename): Remove.
2572         (need_to_update_vops_p): Likewise.
2573         (need_to_initialize_update_ssa_p): Rename to ...
2574         (update_ssa_initialized_fn): ... this.  Track function we are
2575         initialized for.
2576         (symbol_marked_for_renaming): Simplify.
2577         (add_new_name_mapping): Do not set need_to_update_vops_p.
2578         (dump_currdefs): Use SYMS_TO_RENAME.
2579         (rewrite_update_stmt): Always walk all uses/defs.
2580         (dump_update_ssa): Adjust.
2581         (init_update_ssa): Take function argument.  Track what we are
2582         initialized for.
2583         (delete_update_ssa): Reset SYMS_TO_RENAME and update_ssa_initialized_fn.
2584         (create_new_def_for): Initialize for cfun, assert we are initialized
2585         for cfun.
2586         (mark_sym_for_renaming): Simplify.
2587         (mark_set_for_renaming): Do not initialize update-ssa.
2588         (need_ssa_update_p): Simplify.  Take function argument.
2589         (name_mappings_registered_p): Assert we ask for the correct function.
2590         (name_registered_for_update_p): Likewise.
2591         (ssa_names_to_replace): Likewise.
2592         (release_ssa_name_after_update_ssa): Likewise.
2593         (update_ssa): Likewise.  Use SYMS_TO_RENAME.
2594         (dump_decl_set): Do not print a newline.
2595         (debug_decl_set): Do it here.
2596         (dump_update_ssa): And here.
2597         * tree-ssa-loop-im.c (move_computations): Adjust.
2598         (movement_possibility): Likewise.
2599         (determine_max_movement): Likewise.
2600         (gather_mem_refs_stmt): Likewise.
2601         * tree-dump.c (dequeue_and_dump): Do not handle SYMBOL_MEMORY_TAG
2602         or NAME_MEMORY_TAG.
2603         * tree-complex.c (update_all_vops): Remove.
2604         (expand_complex_move): Adjust.
2605         * tree-ssa-loop-niter.c (chain_of_csts_start): Use NULL_TREE.
2606         Simplify test for memory referencing statement.  Exclude
2607         non-invariant ADDR_EXPRs.
2608         * tree-pretty-print.c (dump_generic_node): Do not handle memory tags.
2609         * tree-loop-distribution.c (generate_memset_zero): Adjust.
2610         (rdg_flag_uses): Likewise.
2611         * tree-tailcall.c (suitable_for_tail_opt_p): Remove memory-tag
2612         related code.
2613         (tree_optimize_tail_calls_1): Also split the
2614         edge from the entry block if we have degenerate PHI nodes in
2615         the first basic block.
2616         * tree.c (init_ttree): Remove memory-tag related code.
2617         (tree_code_size): Likewise.
2618         (tree_node_structure): Likewise.
2619         (build7_stat): Re-write to be build6_stat.
2620         * tree.h (MTAG_P, TREE_MEMORY_TAG_CHECK, TMR_TAG): Remove.
2621         (SSA_VAR_P): Adjust.
2622         (struct tree_memory_tag): Remove.
2623         (struct tree_memory_partition_tag): Likewise.
2624         (union tree_node): Adjust.
2625         (build7): Re-write to be build6.
2626         * tree-pass.h (pass_reset_cc_flags): Remove.
2627         (TODO_update_address_taken): New flag.
2628         (pass_simple_dse): Remove.
2629         * ipa-cp.c (ipcp_update_callgraph): Update SSA form.
2630         * params.h (MAX_ALIASED_VOPS): Remove.
2631         (AVG_ALIASED_VOPS): Likewise.
2632         * omp-low.c (expand_omp_taskreg): Update SSA form.
2633         * tree-ssa-dse.c (dse_optimize_stmt): Properly query if the rhs
2634         aliases the lhs in a copy stmt.
2635         * tree-ssa-dse.c (struct address_walk_data): Remove.
2636         (memory_ssa_name_same): Likewise.
2637         (memory_address_same): Likewise.
2638         (get_kill_of_stmt_lhs): Likewise.
2639         (dse_possible_dead_store_p): Simplify, use the oracle.  Handle
2640         unused stores.  Look through PHI nodes into post-dominated regions.
2641         (dse_optimize_stmt): Simplify.  Properly remove stores.
2642         (tree_ssa_dse): Compute dominators.
2643         (execute_simple_dse): Remove.
2644         (pass_simple_dse): Likewise.
2645         * ipa-reference.c (scan_stmt_for_static_refs): Open-code
2646         gimple_loaded_syms and gimple_stored_syms computation.
2647         * toplev.c (dump_memory_report): Dump alias and pta stats.
2648         * tree-ssa-sccvn.c (vn_reference_compute_hash): Simplify.
2649         (vn_reference_eq): Likewise.
2650         (vuses_to_vec, copy_vuses_from_stmt, vdefs_to_vec,
2651         copy_vdefs_from_stmt, shared_lookup_vops, shared_vuses_from_stmt,
2652         valueize_vuses): Remove.
2653         (get_def_ref_stmt_vuses): Simplify.  Rename to ...
2654         (get_def_ref_stmt_vuse): ... this.
2655         (vn_reference_lookup_2): New function.
2656         (vn_reference_lookup_pieces): Use walk_non_aliased_vuses for
2657         walking equivalent vuses.  Simplify.
2658         (vn_reference_lookup): Likewise.
2659         (vn_reference_insert): Likewise.
2660         (vn_reference_insert_pieces): Likewise.
2661         (visit_reference_op_call): Simplify.
2662         (visit_reference_op_load): Likewise.
2663         (visit_reference_op_store): Likewise.
2664         (init_scc_vn): Remove shared_lookup_vuses initialization.
2665         (free_scc_vn): Remove shared_lookup_vuses freeing.
2666         (sort_vuses, sort_vuses_heap): Remove.
2667         (get_ref_from_reference_ops): Export.
2668         * tree-ssa-sccvn.h (struct vn_reference_s): Replace vuses
2669         vector with single vuse pointer.
2670         (vn_reference_lookup_pieces, vn_reference_lookup,
2671         vn_reference_insert, vn_reference_insert_pieces): Adjust prototypes.
2672         (shared_vuses_from_stmt): Remove.
2673         (get_ref_from_reference_ops): Declare.
2674         * tree-ssa-loop-manip.c (slpeel_can_duplicate_loop_p): Adjust.
2675         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Remove
2676         memory-tag related code.
2677         * tree-ssa-ccp.c (get_symbol_constant_value): Remove memory-tag code.
2678         (likely_value): Add comment, skip static-chain of call statements.
2679         (surely_varying_stmt_p): Adjust.
2680         (gimplify_and_update_call_from_tree): Likewise.
2681         (execute_fold_all_builtins): Do not rebuild alias info.
2682         (gimplify_and_update_call_from_tree): Properly update VOPs.
2683         * tree-ssa-loop-ivopts.c (get_ref_tag): Remove.
2684         (copy_ref_info): Remove memory-tag related code.
2685         * tree-call-cdce.c (tree_call_cdce): Rename the VOP.
2686         * ipa-pure-const.c (check_decl): Remove memory-tag related code.
2687         (check_stmt): Open-code gimple_loaded_syms and gimple_stored_syms
2688         computation.
2689         * tree-ssa-dom.c (gimple_p): Remove typedef.
2690         (eliminate_redundant_computations): Adjust.
2691         (record_equivalences_from_stmt): Likewise.
2692         (avail_expr_hash): Likewise.
2693         (avail_expr_eq): Likewise.
2694         * tree-ssa-propagate.c (update_call_from_tree): Properly update VOPs.
2695         (stmt_makes_single_load): Likewise.
2696         (stmt_makes_single_store): Likewise.
2697         * tree-ssa-alias.c: Rewrite completely.
2698         (debug_memory_partitions, dump_mem_ref_stats, debug_mem_ref_stats,
2699         debug_mem_sym_stats, dump_mem_sym_stats_for_var,
2700         debug_all_mem_sym_stats, debug_mp_info, update_mem_sym_stats_from_stmt,
2701         delete_mem_ref_stats, create_tag_raw, dump_points_to_info,
2702         dump_may_aliases_for, debug_may_aliases_for, new_type_alias):
2703         Remove public functions.
2704         (pass_reset_cc_flags): Remove.
2705         (pass_build_alias): Move ...
2706         * tree-ssa-structalias.c (pass_build_alias): ... here.
2707         * tree-ssa-alias.c (may_be_aliased): Move ...
2708         * tree-flow-inline.h (may_be_aliased): ... here.
2709         tree-ssa-alias.c (struct count_ptr_d, count_ptr_derefs,
2710         count_uses_and_derefs): Move ...
2711         * gimple.c: ... here.
2712         * gimple.h (count_uses_and_derefs): Declare.
2713         * tree-ssa-alias.c (dump_alias_stats, ptr_deref_may_alias_global_p,
2714         ptr_deref_may_alias_decl_p, ptr_derefs_may_alias_p,
2715         same_type_for_tbaa, nonaliasing_component_refs_p, decl_refs_may_alias_p,
2716         indirect_ref_may_alias_decl_p, indirect_refs_may_alias_p,
2717         ref_maybe_used_by_call_p, ref_maybe_used_by_stmt_p,
2718         call_may_clobber_ref_p, stmt_may_clobber_ref_p, maybe_skip_until,
2719         get_continuation_for_phi, walk_non_aliased_vuses, walk_aliased_vdefs):
2720         New functions.
2721         * tree-dfa.c (refs_may_alias_p): Move ...
2722         * tree-ssa-alias.c (refs_may_alias_p): ... here.  Extend.
2723         * tree-ssa-alias.h: New file.
2724         * tree-ssa-sink.c (is_hidden_global_store): Adjust.
2725         (statement_sink_location): Likewise.
2726         * opts.c (decode_options): Do not adjust max-aliased-vops or
2727         avg-aliased-vops values.
2728         * timevar.def (TV_TREE_MAY_ALIAS): Remove.
2729         (TV_CALL_CLOBBER): Likewise.
2730         (TV_FLOW_SENSITIVE): Likewise.
2731         (TV_FLOW_INSENSITIVE): Likewise.
2732         (TV_MEMORY_PARTITIONING): Likewise.
2733         (TV_ALIAS_STMT_WALK): New timevar.
2734         * tree-ssa-loop-ivcanon.c (empty_loop_p): Adjust.
2735         * tree-ssa-address.c (create_mem_ref_raw): Use build6.
2736         (get_address_description): Remove memory-tag related code.
2737         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Adjust.
2738         * treestruct.def (TS_MEMORY_TAG, TS_MEMORY_PARTITION_TAG): Remove.
2739         * tree-eh.c (cleanup_empty_eh): Do not leave stale SSA_NAMEs
2740         and immediate uses in statements.  Document.
2741         * gimple-pretty-print.c (dump_gimple_mem_ops): Adjust.
2742         (dump_symbols): Remove.
2743         (dump_gimple_mem_ops): Do not dump loaded or stored syms.
2744         * alias.c (get_deref_alias_set): New function split out from ...
2745         (get_alias_set): ... here.
2746         * alias.h (get_deref_alias_set): Declare.
2747         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Remove unused
2748         type parameter.  Remove restrict pointer handling.  Create a
2749         ref-all pointer in case type-based alias sets do not conflict.
2750         (vect_analyze_data_refs): Remove SMT related code.
2751         * tree-vect-stmts.c (vectorizable_store): Re-instantiate TBAA assert.
2752         (vectorizable_load): Likewise.
2753         * tree-data-ref.h (struct dr_alias): Remove symbol_tag field.
2754         (DR_SYMBOL_TAG, DR_VOPS): Remove.
2755         * tree-data-ref.c (dr_may_alias_p): Use the alias-oracle.
2756         Ignore vops and SMTs.
2757         (dr_analyze_alias): Likewise..
2758         (free_data_ref): Likewise.
2759         (create_data_ref): Likewise.
2760         (analyze_all_data_dependences): Likewise.
2761         (get_references_in_stmt): Adjust.
2762         * tree-flow-inline.h (gimple_aliases_computed_p,
2763         gimple_addressable_vars, gimple_call_clobbered_vars,
2764         gimple_call_used_vars, gimple_global_var, may_aliases, memory_partition,
2765         factoring_name_p, mark_call_clobbered, clear_call_clobbered,
2766         compare_ssa_operands_equal, symbol_mem_tag, set_symbol_mem_tag,
2767         gimple_mem_ref_stats): Remove.
2768         (gimple_vop): New function.
2769         (op_iter_next_use): Remove vuses and mayuses cases.
2770         (op_iter_next_def): Remove vdefs case.
2771         (op_iter_next_tree): Remove vuses, mayuses and vdefs cases.
2772         (clear_and_done_ssa_iter): Do not set removed fields.
2773         (op_iter_init): Likewise.  Skip vuse and/or vdef if requested.
2774         Assert we are not iterating over vuses or vdefs if not also
2775         iterating over uses or defs.
2776         (op_iter_init_use): Likewise.
2777         (op_iter_init_def): Likewise.
2778         (op_iter_next_vdef): Remove.
2779         (op_iter_next_mustdef): Likewise.
2780         (op_iter_init_vdef): Likewise.
2781         (compare_ssa_operands_equal): Likewise.
2782         (link_use_stmts_after): Handle vuse operand.
2783         (is_call_used): Use is_call_clobbered.
2784         (is_call_clobbered): Global variables are always call clobbered,
2785         query the call-clobbers bitmap.
2786         (mark_call_clobbered): Ignore global variables.
2787         (clear_call_clobbered): Likewise.
2788         * tree-ssa-coalesce.c (create_outofssa_var_map): Adjust
2789         virtual operands sanity check.
2790         * tree.def (NAME_MEMORY_TAG, SYMBOL_MEMORY_TAG, MEMORY_PARTITION_TAG):
2791         Remove.
2792         (TARGET_MEM_REF): Remove TMR_TAG operand.
2793         * tree-dfa.c (add_referenced_var): Initialize call-clobber state.
2794         Remove call-clobber related code.
2795         (remove_referenced_var): Likewise.  Do not clear mpt or symbol_mem_tag.
2796         (dump_variable): Do not dump SMTs, memory stats, may-aliases or
2797         partitions or escape reason.
2798         (get_single_def_stmt, get_single_def_stmt_from_phi,
2799         get_single_def_stmt_with_phi): Remove.
2800         (dump_referenced_vars): Tidy.
2801         (get_ref_base_and_extent): Allow bare decls.
2802         (collect_dfa_stats): Adjust.
2803         * graphite.c (rename_variables_in_stmt): Adjust.
2804         (graphite_copy_stmts_from_block): Likewise.
2805         (translate_clast): Likewise.
2806         * tree-ssa-pre.c (struct bb_bitmap_sets): Add expr_dies bitmap.
2807         (EXPR_DIES): New.
2808         (translate_vuse_through_block): Use the oracle.
2809         (phi_translate_1): Adjust.
2810         (value_dies_in_block_x): Use the oracle.  Cache the outcome
2811         in EXPR_DIES.
2812         (valid_in_sets): Check if the VUSE for
2813         a REFERENCE is available.
2814         (eliminate): Do not remove stmts during elimination,
2815         instead queue and remove them afterwards.
2816         (do_pre): Do not rebuild alias info.
2817         (pass_pre): Run TODO_rebuild_alias before PRE.
2818         * tree-ssa-live.c (remove_unused_locals): Remove memory-tag code.
2819         * tree-sra.c (sra_walk_function): Use gimple_references_memory_p.
2820         (mark_all_v_defs_stmt): Remove.
2821         (mark_all_v_defs_seq): Adjust.
2822         (sra_replace): Likewise.
2823         (scalarize_use): Likewise.
2824         (scalarize_copy): Likewise.
2825         (scalarize_init): Likewise.
2826         (scalarize_ldst): Likewise.
2827         (todoflags): Remove.
2828         (tree_sra): Do not rebuild alias info.
2829         (tree_sra_early): Adjust.
2830         (pass_sra): Run TODO_update_address_taken before SRA.
2831         * tree-predcom.c (set_alias_info): Remove.
2832         (prepare_initializers_chain): Do not call it.
2833         (mark_virtual_ops_for_renaming): Adjust.
2834         (mark_virtual_ops_for_renaming_list): Remove.
2835         (initialize_root_vars): Adjust.
2836         (initialize_root_vars_lm): Likewise.
2837         (prepare_initializers_chain): Likewise.
2838         * tree-ssa-copy.c (may_propagate_copy): Remove memory-tag related code.
2839         (may_propagate_copy_into_stmt): Likewise.
2840         (merge_alias_info): Do nothing for now.
2841         (propagate_tree_value_into_stmt): Adjust.
2842         (stmt_may_generate_copy): Likewise.
2843         * tree-ssa-forwprop.c (tidy_after_forward_propagate_addr): Do
2844         not mark symbols for renaming.
2845         (forward_propagate_addr_expr): Match up push/pop_stmt_changes
2846         with the same statement, make sure to update the new pointed-to one.
2847         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not copy
2848         call statements, do not mark symbols for renaming.
2849         (mark_operand_necessary): Dump something.
2850         (ref_may_be_aliased): New function.
2851         (mark_aliased_reaching_defs_necessary_1): New helper function.
2852         (mark_aliased_reaching_defs_necessary): Likewise.
2853         (mark_all_reaching_defs_necessary_1): Likewise.
2854         (mark_all_reaching_defs_necessary): Likewise.
2855         (propagate_necessity): Do not process virtual PHIs.  For
2856         non-aliased loads mark all reaching definitions as necessary.
2857         For aliased loads and stores mark the immediate dominating
2858         aliased clobbers as necessary.
2859         (visited): New global static.
2860         (perform_tree_ssa_dce): Free visited bitmap after propagating
2861         necessity.
2862         (remove_dead_phis): Perform simple dead virtual PHI removal.
2863         (remove_dead_stmt): Properly unlink virtual operands when
2864         removing stores.
2865         (eliminate_unnecessary_stmts): Schedule PHI removal after
2866         stmt removal.
2867         * tree-ssa-ter.c (is_replaceable_p): Adjust.
2868         (process_replaceable): Likewise.
2869         (find_replaceable_in_bb): Likewise.
2870         * tree-ssa.c (verify_ssa_name): Verify all VOPs are
2871         based on the single gimple vop.
2872         (verify_flow_insensitive_alias_info): Remove.
2873         (verify_flow_sensitive_alias_info): Likewise.
2874         (verify_call_clobbering): Likewise.
2875         (verify_memory_partitions): Likewise.
2876         (verify_alias_info): Likewise.
2877         (verify_ssa): Adjust..
2878         (execute_update_addresses_taken): Export.  Update SSA
2879         manually.  Optimize only when optimizing.  Use a local bitmap.
2880         (pass_update_address_taken): Remove TODO_update_ssa, add
2881         TODO_dump_func.
2882         (pass_update_address_taken): Just use TODO_update_address_taken.
2883         (init_tree_ssa): Do not initialize addressable_vars.
2884         (verify_ssa): Verify new VUSE / VDEF properties.
2885         Verify that all stmts definitions have the stmt as SSA_NAME_DEF_STMT.
2886         Do not call verify_alias_info.
2887         (delete_tree_ssa): Clear the VUSE, VDEF operands.
2888         Do not free the loaded and stored syms bitmaps.  Reset the escaped
2889         and callused solutions.  Do not free addressable_vars.
2890         Remove memory-tag related code.
2891         (warn_uninitialized_var): Aliases are always available.
2892         * tree-ssa-loop-prefetch.c (gather_memory_references): Adjust.
2893         * lambda-code.c (can_put_in_inner_loop): Adjust.
2894         (can_put_after_inner_loop): Likewise.
2895         (perfect_nestify): Likewise.
2896         * tree-vect-stmts.c (vect_stmt_relevant_p): Adjust.
2897         (vect_gen_widened_results_half): Remove CALL_EXPR handling.
2898         (vectorizable_conversion): Do not mark symbols for renaming.
2899         * tree-inline.c (remap_gimple_stmt): Clear VUSE/VDEF.
2900         (expand_call_inline): Unlink the calls virtual operands before
2901         replacing it.
2902         (tree_function_versioning): Do not call update_ssa if we are not
2903         updating clones.  Simplify.
2904         * tree-ssa-phiprop.c (phivn_valid_p): Adjust.
2905         (propagate_with_phi): Likewise..
2906         * tree-outof-ssa.c (create_temp): Remove memory tag and call
2907         clobber code.  Assert we are not aliased or global.
2908         * tree-flow.h: Include tree-ssa-alias.h
2909         (enum escape_type): Remove.
2910         (struct mem_sym_stats_d): Likewise.
2911         (struct mem_ref_stats_d): Likewise.
2912         (struct gimple_df): Add vop member.  Remove global_var,
2913         call_clobbered_vars, call_used_vars, addressable_vars,
2914         aliases_compted_p and mem_ref_stats members.  Add syms_to_rename,
2915         escaped and callused members.
2916         (struct ptr_info_def): Remove all members, add points-to solution
2917         member pt.
2918         (struct var_ann_d): Remove in_vuse_list, in_vdef_list,
2919         call_clobbered, escape_mask, mpt and symbol_mem_tag members.
2920         * Makefile.in (TREE_FLOW_H): Add tree-ssa-alias.h.
2921         (tree-ssa-structalias.o): Remove tree-ssa-structalias.h.
2922         (tree-ssa-alias.o): Likewise.
2923         (toplev.o): Add tree-ssa-alias.h
2924         (GTFILES): Remove tree-ssa-structalias.h, add tree-ssa-alias.h.
2925         * gimple.c (gimple_set_bb): Fix off-by-one error.
2926         (is_gimple_reg): Do not handle memory tags.
2927         (gimple_copy): Also copy virtual operands.
2928         Delay updating the statement.  Do not reset loaded and stored syms.
2929         (gimple_set_stored_syms): Remove.
2930         (gimple_set_loaded_syms): Likewise.
2931         (gimple_call_copy_skip_args): Copy the virtual operands
2932         and mark the new statement modified.
2933         * tree-ssa-structalias.c (may_alias_p): Remove.
2934         (set_uids_in_ptset): Take the alias set to prune with as
2935         parameter.  Fold in the alias test of may_alias_p.
2936         (compute_points_to_sets): Compute whether a ptr is dereferenced
2937         in a local sbitmap.
2938         (process_constraint): Deal with &ANYTHING on the lhs, reject all
2939         other ADDRESSOF constraints on the lhs.
2940         (get_constraint_for_component_ref): Assert that we don't get
2941         ADDRESSOF constraints from the base of the reference.
2942         Properly generate UNKNOWN_OFFSET for DEREF if needed.
2943         (struct variable_info): Remove collapsed_to member.
2944         (get_varinfo_fc): Remove.
2945         (new_var_info): Do not set collapsed_to.
2946         (dump_constraint): Do not follow cycles.
2947         (dump_constraint_graph): Likewise.
2948         (build_pred_graph): Likewise.
2949         (build_succ_graph): Likewise.
2950         (rewrite_constraints): Likewise.
2951         (do_simple_structure_copy): Remove.
2952         (do_rhs_deref_structure_copy): Remove.
2953         (do_lhs_deref_structure_copy): Remove.
2954         (collapse_rest_of_var): Remove.
2955         (do_structure_copy): Re-implement.
2956         (pta_stats): New global variable.
2957         (dump_pta_stats): New function.
2958         (struct constraint_expr): Make offset signed.
2959         (UNKNOWN_OFFSET): Define special value.
2960         (dump_constraint): Dump UNKNOWN_OFFSET as UNKNOWN.
2961         (solution_set_expand): New helper function split out from ...
2962         (do_sd_constraint): ... here.
2963         (solution_set_add): Handle UNKNOWN_OFFSET.  Handle negative offsets.
2964         (do_ds_constraint): Likewise.
2965         (do_sd_constraint): Likewise.  Do not special-case ESCAPED = *ESCAPED
2966         and CALLUSED = *CALLUSED.
2967         (set_union_with_increment): Make inc argument signed.
2968         (type_safe): Remove.
2969         (get_constraint_for_ptr_offset): Handle unknown and negative
2970         constant offsets.
2971         (first_vi_for_offset): Handle offsets before start.  Bail
2972         out early for offsets beyond the variable extent.
2973         (first_or_preceding_vi_for_offset): New function.
2974         (init_base_vars): Add ESCAPED = ESCAPED + UNKNOWN_OFFSET constraint.
2975         Together with ESCAPED = *ESCAPED this properly computes reachability.
2976         (find_what_var_points_to): New function.
2977         (find_what_p_points_to): Implement in terms of find_what_var_points_to.
2978         (pt_solution_reset, pt_solution_empty_p, pt_solution_includes_global,
2979         pt_solution_includes_1, pt_solution_includes, pt_solutions_intersect_1,
2980         pt_solutions_intersect): New functions.
2981         (compute_call_used_vars): Remove.
2982         (compute_may_aliases): New main entry into PTA computation.
2983         * gimple.h (gimple_p): New typedef.
2984         (struct gimple_statement_base): Remove references_memory_p.
2985         (struct gimple_statement_with_memory_ops_base): Remove
2986         vdef_ops, vuse_ops, stores and loads members.  Add vdef and vuse
2987         members.
2988         (gimple_vuse_ops, gimple_set_vuse_ops, gimple_vdef_ops,
2989         gimple_set_vdef_ops, gimple_loaded_syms, gimple_stored_syms,
2990         gimple_set_references_memory): Remove.
2991         (gimple_vuse_op, gimple_vdef_op, gimple_vuse, gimple_vdef,
2992         gimple_vuse_ptr, gimple_vdef_ptri, gimple_set_vuse, gimple_set_vdef):
2993         New functions.
2994         * tree-cfg.c (move_block_to_fn): Fix off-by-one error.
2995         (verify_expr): Allow RESULT_DECL.
2996         (gimple_duplicate_bb): Do not copy virtual operands.
2997         (gimple_duplicate_sese_region): Adjust.
2998         (gimple_duplicate_sese_tail): Likewise.
2999         (mark_virtual_ops_in_region): Remove.
3000         (move_sese_region_to_fn): Do not call it.
3001         * passes.c (init_optimization_passes): Remove pass_reset_cc_flags
3002         and pass_simple_dse.
3003         (execute_function_todo): Handle TODO_update_address_taken,
3004         call execute_update_addresses_taken for TODO_rebuild_alias.
3005         (execute_todo): Adjust.
3006         (execute_one_pass): Init dump files early.
3007         * ipa-struct-reorg.c (finalize_var_creation): Do not mark vars
3008         call-clobbered.
3009         (create_general_new_stmt): Clear vops.
3010         * tree-ssa-reassoc.c (get_rank): Adjust.
3011         * tree-vect-slp.c (vect_create_mask_and_perm): Do not mark
3012         symbols for renaming.
3013         * params.def (PARAM_MAX_ALIASED_VOPS): Remove.
3014         (PARAM_AVG_ALIASED_VOPS): Likewise.
3015         * tree-ssanames.c (init_ssanames): Allocate SYMS_TO_RENAME.
3016         (duplicate_ssa_name_ptr_info): No need to copy the shared bitmaps.
3017         * tree-ssa-operands.c: Simplify for new virtual operand representation.
3018         (operand_build_cmp, copy_virtual_operands,
3019         create_ssa_artificial_load_stmt, add_to_addressable_set,
3020         gimple_add_to_addresses_taken): Remove public functions.
3021         (unlink_stmt_vdef): New function.
3022
3023 2009-04-03  Alan Modra  <amodra@bigpond.net.au>
3024
3025         * config.gcc (powerpc-*-linux*): Merge variants.
3026
3027 2009-04-02  Chao-ying Fu  <fu@mips.com>
3028             James Grosbach <james.grosbach@microchip.com>
3029
3030         * config/mips/mips.c (mips_frame_info): Add acc_mask, num_acc,
3031         num_cop0_regs, acc_save_offset, cop0_save_offset, acc_sp_offset,
3032         cop0_sp_offset.
3033         (machine_function): Add interrupt_handler_p, use_shadow_register_set_p,
3034         keep_interrupts_masked_p, use_debug_exception_return_p.
3035         (mips_attribute_table): Add interrupt, use_shadow_register_set,
3036         keep_interrupts_masked, use_debug_exception_return.
3037         (mips_interrupt_type_p, mips_use_shadow_register_set_p,
3038         mips_keep_interrupts_masked_p, mips_use_debug_exception_return_p):
3039         New functions.
3040         (mips_function_ok_for_sibcall): Return false for interrupt handlers.
3041         (mips_print_operand): Process COP0 registers to print $0 .. $31
3042         correctly for GAS to process.
3043         (mips_interrupt_extra_call_saved_reg_p): New function.
3044         (mips_cfun_call_saved_reg_p): For interrupt handlers, we need to check
3045         extra registers.
3046         (mips_cfun_might_clobber_call_saved_reg_p): Likewise.
3047         (mips_compute_frame_info): Add supports for interrupt context that
3048         includes doubleword accumulators and COP0 registers.
3049         (mips_for_each_saved_acc): New function.
3050         (mips_for_each_saved_gpr_and_fpr): Change the function name from
3051         mips_for_each_saved_reg.
3052         (mips_save_reg): Save accumulators.
3053         (mips_kernel_reg_p): A new for_each_rtx callback.
3054         (mips_expand_prologue): Support interrupt handlers.
3055         (mips_restore_reg): Restore accumulators.
3056         (mips_expand_epilogue): Support interrupt handlers.
3057         (mips_can_use_return_insn): Return false for interrupt handlers.
3058         (mips_epilogue_uses): New function.
3059         * config/mips/mips.md (UNSPEC_ERET, UNSPEC_DERET, UNSPEC_DI,
3060         UNSPEC_EHB, UNSPEC_RDPGPR, UNSPEC_COP0): New UNSPEC.
3061         (mips_eret, mips_deret, mips_di, mips_ehb, mips_rdpgpr,
3062         cop0_move): New instructions.
3063         * config/mips/mips-protos.h (mips_epilogue_uses): Declare.
3064         * config/mips/mips.h (K0_REG_NUM, K1_REG_NUM, KERNEL_REG_P): New
3065         defines.
3066         (COP0_STATUS_REG_NUM, COP0_CAUSE_REG_NUM, COP0_EPC_REG_NUM):
3067         New defines.
3068         (CAUSE_IPL, SR_IPL, SR_EXL, SR_IE): New defines.
3069         (MIPS_PROLOGUE_TEMP_REGNUM, MIPS_EPILOGUE_TEMP_REGNUM): For
3070         interrupt handlers, we use K0 as the temporary register.
3071         (EPILOGUE_USES): Change to a function call.
3072         * config/mips/sde.h (MIPS_EPILOGUE_TEMP_REGNUM): For interrupt
3073         handlers, we use K0 as the temporary register.
3074
3075         * doc/extend.texi (Function Attributes): Document interrupt,
3076         use_shadow_register_set, keep_interrupts_masked,
3077         use_debug_exception_return for MIPS attributes.
3078
3079 2009-04-03  Alan Modra  <amodra@bigpond.net.au>
3080
3081         * config.gcc (powerpc64-*-gnu*): Add rs6000/default64.h to tm_file.
3082         Remove a number of t-files from tmake_file.
3083         * config/rs6000/sysv4.opt (mprototype): Name variable target_prototype.
3084         * config/rs6000/sysv4.h (TARGET_PROTOTYPE): Define.
3085         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
3086         target_prototype, not TARGET_PROTOTYPE.
3087         (LINK_OS_GNU_SPEC): Define.
3088         * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Delete tramp.S
3089         and darwin-ldoubdle.c.
3090
3091 2009-04-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
3092
3093         PR driver/39293
3094         * gcc.c (save_temps_flag): Add support for -save-temps=obj.
3095         (cpp_options): Ditto.
3096         (default_compilers): Ditto.
3097         (display_help): Ditto.
3098         (process_command): Ditto.
3099         (do_spec_1): Ditto.
3100         (set_input): Use lbasename instead of duplicate code.
3101         (save_temps_prefix): New static for -save-temps=obj.
3102         (save_temps_length): Ditto.
3103
3104         * doc/invoke.texi (-save-temps=obj): Document new variant to
3105         -save-temps switch.
3106
3107 2009-04-02  Jeff Law  <law@redhat.com>
3108
3109         * reload1.c (fixup_eh_region_notes): Remove write-only "trap_count"
3110         variable.
3111
3112 2009-04-02  H.J. Lu  <hongjiu.lu@intel.com>
3113
3114         * configure.ac: Support -Bstatic/-Bdynamic for linker version > 2.
3115         * configure: Regenerated.
3116
3117 2009-04-02  Rafael Avila de Espindola  <espindola@google.com>
3118
3119         * c-decl.c (merge_decls): Make sure newdecl and olddecl don't
3120         share the argument list.
3121
3122 2009-04-02  Rafael Avila de Espindola  <espindola@google.com>
3123
3124         Merge
3125
3126         2009-02-12  Diego Novillo  <dnovillo@google.com>
3127
3128         * varpool.c (debug_varpool): New.
3129         * cgraph.h (debug_varpool): Declare.
3130
3131 2009-04-02  Jan Hubicka  <jh@suse.cz>
3132
3133         * passes.c (init_optimization_passes): Remove two copies of ehcleanup
3134         pass.
3135
3136 2009-04-02  H.J. Lu  <hongjiu.lu@intel.com>
3137
3138         * config/i386/i386.c (ix86_abi): Move initialization to ...
3139         (override_options): Here.
3140
3141 2009-04-02  Christian Bruel  <christian.bruel@st.com>
3142
3143         * config/sh/sh.c (sh_dwarf_register_span): New function.
3144         (TARGET_DWARF_REGISTER_SPAN): Define.
3145         * config/sh/sh-protos.h (sh_dwarf_register_span): Declare.
3146
3147 2009-04-02  Ira Rosen  <irar@il.ibm.com>
3148
3149         PR tree-optimization/39595
3150         * tree-vect-slp.c (vect_build_slp_tree): Check that the size of
3151         interleaved loads group is not  greater than the SLP group size.
3152
3153 2009-04-02  Rafael Avila de Espindola  <espindola@google.com>
3154
3155         * builtins.c (is_builtin_name): New.
3156         (called_as_built_in): Use is_builtin_name.
3157         * tree.h (is_builtin_name): New.
3158         * varasm.c (incorporeal_function_p): Use is_builtin_name
3159
3160 2009-04-02  Andrew Stubbs  <ams@codesourcery.com>
3161
3162         * config/sh/linux-unwind.h: Disable when inhibit_libc is defined.
3163
3164 2009-04-02  Dodji Seketeli  <dodji@redhat.com>
3165
3166         PR c++/26693
3167         * c-decl.c (clone_underlying_type): Move this ...
3168         * c-common.c (set_underlying_type): ... here.
3169         Also, make sure the function properly sets TYPE_STUB_DECL() on
3170         the newly created typedef variant type.
3171         * c-common.h (is_typedef_decl, set_underlying_type): Declare ...
3172         * c-common.c (is_typedef_decl, set_underlying_type): ... new entry
3173         points.
3174
3175 2009-04-02  Richard Guenther  <rguenther@suse.de>
3176
3177         PR tree-optimization/37221
3178         * tree-flow.h (degenerate_phi_result): Declare.
3179         * tree-ssa-dom.c (degenerate_phi_result): Export.
3180         * tree-scalar-evolution.c (analyze_initial_condition): If
3181         the initial condition is defined by a degenerate PHI node
3182         use the degenerate value.
3183
3184 2009-04-01  Eric Botcazou  <ebotcazou@adacore.com>
3185
3186         PR rtl-optimization/39588
3187         * combine.c (merge_outer_ops): Do not set the constant when this
3188         is not necessary.
3189         (simplify_shift_const_1): Do not modify it either in this case.
3190
3191 2009-04-01  Steven Bosscher  <steven@gcc.gnu.org>
3192
3193         * config/ia64/ia64.c (ia64_handle_option): Inform user that Itanium1
3194         tuning is deprecated if -mtune value is set to an Itanium1 variant.
3195
3196 2009-04-01  Janis Johnson  <janis187@us.ibm.com>
3197
3198         PR c/29027
3199         * c-lex.c (interpret_float): Default (no suffix) is double.
3200
3201 2009-04-1  Xinliang David Li  <davidxl@google.com>
3202
3203         * config/i386/i386.c (legitimate_constant_p): Recognize
3204         all one vector constant.
3205
3206 2009-04-01  Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
3207
3208         * gcc/config/vax/vax.c: Add #includes to silence warnings.
3209         Change #include order to silence two warnings.
3210
3211 2009-04-01  Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
3212
3213         * gcc/config/vax/linux.h (TARGET_DEFAULT): Add the MASK_QMATH flag bit.
3214         (ASM_SPEC): Pass -k to the assembler for PIC code.
3215
3216 2009-04-01  Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
3217
3218         * gcc/config.gcc: Add vax-*-linux* to the switch.
3219         * gcc/config/vax/linux.h: New file. (TARGET_VERSION,
3220         TARGET_OS_CPP_BUILTINS, TARGET_DEFAULT, CPP_SPEC, LINK_SPEC): Define.
3221
3222 2009-04-01  Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
3223
3224         * gcc/config/vax/vax.c (vax_output_int_move, adjacent_operands_p):
3225         Use predicate macros instead of GET_CODE() == foo.
3226         * gcc/config/vax/vax.md (movsi_2, movstrictqi, and<mode>3, ashrsi3,
3227         ashlsi3, rotrsi3, <unnamed>): Likewise.
3228
3229 2009-04-01  Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
3230
3231         * gcc/config/vax/builtins.md (jbbssiqi, jbbssihi, jbbssisi, jbbcciqi,
3232         jbbccihi, jbbccisi): Remova trailing whitespace.
3233         * gcc/config/vax/constraints.md: Likewise.
3234         * gcc/config/vax/elf.h: (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
3235         * gcc/config/vax/openbsd1.h (OBSD_OLD_GAS): Likewise.
3236         * gcc/config/vax/predicates.md: Likewise.
3237         * gcc/config/vax/vax.c (print_operand_address, vax_output_int_move,
3238         vax_expand_addsub_di_operands, adjacent_operands_p): Likewise.
3239         * gcc/config/vax/vax.h: Likewise.
3240         * gcc/config/vax/vax.md (nonlocal_goto): Likewise.
3241
3242 2009-04-01  Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
3243
3244         * gcc/config/vax/vax.c (vax_float_literal, vax_output_int_move)
3245         (indirectable_address_p, adjacent_operands_p): Add spaces around
3246         braces.
3247         * gcc/config/vax/vax-protos.h (adjacent_operands_p): Likewise.
3248
3249 2009-04-01  Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
3250
3251         * gcc/config/vax/vax.c (legitimate_constant_address_p,
3252         legitimate_constant_p, indirectable_address_p, nonindexed_address_p,
3253         index_term_p, reg_plus_index_p, legitimate_address_p,
3254         vax_mode_dependent_address_p): Update comments to match functions
3255         modified by the recent int->bool conversion.
3256
3257 2009-04-01  Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
3258
3259         * gcc/config/vax/builtins.md: Update copyright message.
3260         * gcc/config/vax/constraints.md: Likewise.
3261         * gcc/config/vax/netbsd-elf.h: Likewise.
3262         * gcc/config/vax/predicates.md: Likewise.
3263         * gcc/config/vax/vax-protos.h: Likewise.
3264         * gcc/config/vax/vax.c: Likewise.
3265         * gcc/config/vax/vax.h: Likewise.
3266         * gcc/config/vax/vax.md: Likewise.
3267         * gcc/config/vax/vax.opt: Likewise.
3268
3269 2009-04-01  Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
3270
3271         * gcc/config/vax/builtins.md (ffssi2, ffssi2_internal,
3272         sync_lock_test_and_set<mode>, sync_lock_release<mode>): Fix indention.
3273         * gcc/config/vax/constraints.md (B, R): Likewise.
3274         * gcc/config/vax/predicates.md (external_memory_operand,
3275         nonimmediate_addsub_di_operand): Likewise.
3276         * gcc/config/vax/vax.c (vax_output_int_add): Likewise.
3277         * gcc/config/vax/vax.md (movsi, movsi_2, mov<mode>, call_value,
3278         untyped_call): Likewise.
3279
3280 2009-04-01  Matt Thomas <matt@3am-software.com>
3281
3282         * config/vax/predicates.md: New file.
3283         (symbolic_operand, local_symbolic_operand, external_symbolic_operand,
3284         external_const_operand, nonsymbolic_operand, external_memory_operand,
3285         indirect_memory_operand, indexed_memory_operand,
3286         illegal_blk_memory_operand, illegal_addsub_di_memory_operand,
3287         nonimmediate_addsub_di_operand, general_addsub_di_operand): New
3288         predicate.
3289         * config/vax/constraints.md: New file.
3290         (Z0, U06,  U08, U16, CN6, S08, S16, I, J, K, L, M, N, O, G, Q, B, R, T):
3291         New constraint.
3292         * config/vax/builtins.md: New file.
3293         (ffssi2, ffssi2_internal, sync_lock_test_and_set<mode>, jbbssiqi,
3294         jbbssihi, jbbssisi, sync_lock_release<mode>, jbbcciqi, jbbccihi,
3295         jbbccisi): Define.
3296         * config/vax/vax.opt (mqmath): Add option.
3297         * config/vax/vax.md (isfx): Extend with DI.
3298         (VAXintQH, VAXintQHSD): Define.
3299         (tst<mode>, cmp<mode>, *bit<mode>, movmemhi1, truncsiqi2, truncsihi2,
3300         mulsidi3, add<mode>3, sub<mode>, mul<mode>3, div<mode>3, and<mode>,
3301         and<mode>_const_int, ior<mode>3, xor<mode>3, neg<mode>2,
3302         one_cmpl<mode>2, ashlsi3, lshrsi3, rotlsi3): Update constraints.
3303         (movdi): Update constraints and use vax_output_int_move().
3304         (movsi, movsi_2, pushlclsymreg, pushextsymreg, movlclsymreg,
3305         movextsymreg, adddi3, adcdi3, subdi3, sbcdi3, pushextsym, movextsym,
3306         pushlclsym, movlclsym, movaddr<mode>, pushaddr<mode>,
3307         nonlocal_goto): New.
3308         (mov<mode>): Extend accepted operand types.
3309         (subdi3_old): Rename from subdi3, change update constraints and use
3310         a new implementation.
3311         * gcc/config/vax/vax.h (PCC_BITFIELD_TYPE_MATTERS): Add space.
3312         (FRAME_POINTER_CFA_OFFSET, IRA_COVER_CLASSES, CLASS_MAX_NREGS,
3313         MOVE_RATIO, CLEAR_RATIO): Define.
3314         (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P,
3315         CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Delete.
3316         (PRINT_OPERAND): Redefine using a function instead of inlined code.
3317         * gcc/config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
3318         (split_quadword_operands): Make static and really allow variable
3319         splitting.
3320         (print_operand_address): Update for PIC generation.
3321         (print_operand, vax_builtin_setjmp_frame_value, vax_output_int_subtract,
3322         indexable_address_p, fixup_mathdi_operand,
3323         vax_expand_addsub_di_operands, adjacent_operands_p): New.
3324         (vax_float_literal, legitimate_constant_p,
3325         indirectable_constant_address_p, index_term_p,
3326         reg_plus_index_p): Return bool instead of int.
3327         (vax_rtx_costs): Fix cost for CONST_INT, indent and use HOST_WIDE_INT
3328         where needed.
3329         (vax_output_int_move, vax_output_int_add): Extend to allow PIC
3330         generation.
3331         (vax_output_conditional_branch): Indent.
3332         (legitimate_constant_address_p, indirectable_constant_address_p,
3333         indirectable_address_p, nonindexed_address_p, legitimate_address_p,
3334         vax_mode_dependent_address_p): Return bool instead of int, update for
3335         PIC generation.
3336         * config/vax/vax-protos.h (legitimate_constant_address_p,
3337         legitimate_constant_p, legitimate_address_p,
3338         vax_mode_dependent_address_p): Change declaration to bool.
3339         (legitimate_pic_operand_p, adjacent_operands_p, print_operand,
3340         vax_expand_addsub_di_operands, vax_output_int_subtract,
3341         vax_output_movmemsi): Declare.
3342         (split_quadword_operands, vax_float_literal): Delete declaration.
3343         * config/vax/netbsd-elf.h (CC1_SPEC, CC1PLUS_SPEC) Define.
3344         * config/vax/elf.h (NO_EXTERNAL_INDIRECT_ADDRESS,
3345         VAX_CC1_AND_CC1PLUS_SPEC, ASM_PREFERRED_EH_DATA_FORMAT,
3346         ASM_OUTPUT_DWARF_PCREL): Define.
3347         (ASM_SPEC): Change definition to allow PIC generation.
3348
3349 2009-04-01  Steve Ellcey  <sje@cup.hp.com>
3350
3351         * doc/sourcebuild.texi: Update front-end requirements.
3352
3353 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
3354
3355         PR target/39226
3356         * config/rs6000/rs6000.md (andsi3_internal5_nomc,
3357         anddi3_internal2_nomc, anddi3_internal3_nomc): Removed.
3358         (booldi3_internal3): Use boolean_or_operator instead of
3359         boolean_operator.
3360
3361 2009-04-01  Joseph Myers  <joseph@codesourcery.com>
3362
3363         PR c/39605
3364         * c-decl.c (grokdeclarator): Pedwarn for file-scope array
3365         declarator whose size is not an integer constant expression but
3366         folds to an integer constant, then treat it as a constant
3367         subsequently.
3368
3369 2009-04-01  Richard Guenther  <rguenther@suse.de>
3370
3371         * fold-const.c (fold_plusminus_mult_expr): Do not fold
3372         i * 4 + 2 to (i * 2 + 1) * 2.
3373
3374 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
3375
3376         PR c/37772
3377         * c-parser.c