OSDN Git Service

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