OSDN Git Service

7ab7374a04ef4e8330dd14ac763a9791ee20d998
[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         (mips_compute_frame_info): Add supports for interrupt context that
3380         includes doubleword accumulators and COP0 registers.
3381         (mips_for_each_saved_acc): New function.
3382         (mips_for_each_saved_gpr_and_fpr): Change the function name from
3383         mips_for_each_saved_reg.
3384         (mips_save_reg): Save accumulators.
3385         (mips_kernel_reg_p): A new for_each_rtx callback.
3386         (mips_expand_prologue): Support interrupt handlers.
3387         (mips_restore_reg): Restore accumulators.
3388         (mips_expand_epilogue): Support interrupt handlers.
3389         (mips_can_use_return_insn): Return false for interrupt handlers.
3390         (mips_epilogue_uses): New function.
3391         * config/mips/mips.md (UNSPEC_ERET, UNSPEC_DERET, UNSPEC_DI,
3392         UNSPEC_EHB, UNSPEC_RDPGPR, UNSPEC_COP0): New UNSPEC.
3393         (mips_eret, mips_deret, mips_di, mips_ehb, mips_rdpgpr,
3394         cop0_move): New instructions.
3395         * config/mips/mips-protos.h (mips_epilogue_uses): Declare.
3396         * config/mips/mips.h (K0_REG_NUM, K1_REG_NUM, KERNEL_REG_P): New
3397         defines.
3398         (COP0_STATUS_REG_NUM, COP0_CAUSE_REG_NUM, COP0_EPC_REG_NUM):
3399         New defines.
3400         (CAUSE_IPL, SR_IPL, SR_EXL, SR_IE): New defines.
3401         (MIPS_PROLOGUE_TEMP_REGNUM, MIPS_EPILOGUE_TEMP_REGNUM): For
3402         interrupt handlers, we use K0 as the temporary register.
3403         (EPILOGUE_USES): Change to a function call.
3404         * config/mips/sde.h (MIPS_EPILOGUE_TEMP_REGNUM): For interrupt
3405         handlers, we use K0 as the temporary register.
3406
3407         * doc/extend.texi (Function Attributes): Document interrupt,
3408         use_shadow_register_set, keep_interrupts_masked,
3409         use_debug_exception_return for MIPS attributes.
3410
3411 2009-04-03  Alan Modra  <amodra@bigpond.net.au>
3412
3413         * config.gcc (powerpc64-*-gnu*): Add rs6000/default64.h to tm_file.
3414         Remove a number of t-files from tmake_file.
3415         * config/rs6000/sysv4.opt (mprototype): Name variable target_prototype.
3416         * config/rs6000/sysv4.h (TARGET_PROTOTYPE): Define.
3417         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
3418         target_prototype, not TARGET_PROTOTYPE.
3419         (LINK_OS_GNU_SPEC): Define.
3420         * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Delete tramp.S
3421         and darwin-ldoubdle.c.
3422
3423 2009-04-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
3424
3425         PR driver/39293
3426         * gcc.c (save_temps_flag): Add support for -save-temps=obj.
3427         (cpp_options): Ditto.
3428         (default_compilers): Ditto.
3429         (display_help): Ditto.
3430         (process_command): Ditto.
3431         (do_spec_1): Ditto.
3432         (set_input): Use lbasename instead of duplicate code.
3433         (save_temps_prefix): New static for -save-temps=obj.
3434         (save_temps_length): Ditto.
3435
3436         * doc/invoke.texi (-save-temps=obj): Document new variant to
3437         -save-temps switch.
3438
3439 2009-04-02  Jeff Law  <law@redhat.com>
3440
3441         * reload1.c (fixup_eh_region_notes): Remove write-only "trap_count"
3442         variable.
3443
3444 2009-04-02  H.J. Lu  <hongjiu.lu@intel.com>
3445
3446         * configure.ac: Support -Bstatic/-Bdynamic for linker version > 2.
3447         * configure: Regenerated.
3448
3449 2009-04-02  Rafael Avila de Espindola  <espindola@google.com>
3450
3451         * c-decl.c (merge_decls): Make sure newdecl and olddecl don't
3452         share the argument list.
3453
3454 2009-04-02  Rafael Avila de Espindola  <espindola@google.com>
3455
3456         Merge
3457
3458         2009-02-12  Diego Novillo  <dnovillo@google.com>
3459
3460         * varpool.c (debug_varpool): New.
3461         * cgraph.h (debug_varpool): Declare.
3462
3463 2009-04-02  Jan Hubicka  <jh@suse.cz>
3464
3465         * passes.c (init_optimization_passes): Remove two copies of ehcleanup
3466         pass.
3467
3468 2009-04-02  H.J. Lu  <hongjiu.lu@intel.com>
3469
3470         * config/i386/i386.c (ix86_abi): Move initialization to ...
3471         (override_options): Here.
3472
3473 2009-04-02  Christian Bruel  <christian.bruel@st.com>
3474
3475         * config/sh/sh.c (sh_dwarf_register_span): New function.
3476         (TARGET_DWARF_REGISTER_SPAN): Define.
3477         * config/sh/sh-protos.h (sh_dwarf_register_span): Declare.
3478
3479 2009-04-02  Ira Rosen  <irar@il.ibm.com>
3480
3481         PR tree-optimization/39595
3482         * tree-vect-slp.c (vect_build_slp_tree): Check that the size of
3483         interleaved loads group is not  greater than the SLP group size.
3484
3485 2009-04-02  Rafael Avila de Espindola  <espindola@google.com>
3486
3487         * builtins.c (is_builtin_name): New.
3488         (called_as_built_in): Use is_builtin_name.
3489         * tree.h (is_builtin_name): New.
3490         * varasm.c (incorporeal_function_p): Use is_builtin_name
3491
3492 2009-04-02  Andrew Stubbs  <ams@codesourcery.com>
3493
3494         * config/sh/linux-unwind.h: Disable when inhibit_libc is defined.
3495
3496 2009-04-02  Dodji Seketeli  <dodji@redhat.com>
3497
3498         PR c++/26693
3499         * c-decl.c (clone_underlying_type): Move this ...
3500         * c-common.c (set_underlying_type): ... here.
3501         Also, make sure the function properly sets TYPE_STUB_DECL() on
3502         the newly created typedef variant type.
3503         * c-common.h (is_typedef_decl, set_underlying_type): Declare ...
3504         * c-common.c (is_typedef_decl, set_underlying_type): ... new entry
3505         points.
3506
3507 2009-04-02  Richard Guenther  <rguenther@suse.de>
3508
3509         PR tree-optimization/37221
3510         * tree-flow.h (degenerate_phi_result): Declare.
3511         * tree-ssa-dom.c (degenerate_phi_result): Export.
3512         * tree-scalar-evolution.c (analyze_initial_condition): If
3513         the initial condition is defined by a degenerate PHI node
3514         use the degenerate value.
3515
3516 2009-04-01  Eric Botcazou  <ebotcazou@adacore.com>
3517
3518         PR rtl-optimization/39588
3519         * combine.c (merge_outer_ops): Do not set the constant when this
3520         is not necessary.
3521         (simplify_shift_const_1): Do not modify it either in this case.
3522
3523 2009-04-01  Steven Bosscher  <steven@gcc.gnu.org>
3524
3525         * config/ia64/ia64.c (ia64_handle_option): Inform user that Itanium1
3526         tuning is deprecated if -mtune value is set to an Itanium1 variant.
3527
3528 2009-04-01  Janis Johnson  <janis187@us.ibm.com>
3529
3530         PR c/29027
3531         * c-lex.c (interpret_float): Default (no suffix) is double.
3532
3533 2009-04-1  Xinliang David Li  <davidxl@google.com>
3534
3535         * config/i386/i386.c (legitimate_constant_p): Recognize
3536         all one vector constant.
3537
3538 2009-04-01  Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
3539
3540         * gcc/config/vax/vax.c: Add #includes to silence warnings.
3541         Change #include order to silence two warnings.
3542
3543 2009-04-01  Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
3544
3545         * gcc/config/vax/linux.h (TARGET_DEFAULT): Add the MASK_QMATH flag bit.
3546         (ASM_SPEC): Pass -k to the assembler for PIC code.
3547
3548 2009-04-01  Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
3549
3550         * gcc/config.gcc: Add vax-*-linux* to the switch.
3551         * gcc/config/vax/linux.h: New file. (TARGET_VERSION,
3552         TARGET_OS_CPP_BUILTINS, TARGET_DEFAULT, CPP_SPEC, LINK_SPEC): Define.
3553
3554 2009-04-01  Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
3555
3556         * gcc/config/vax/vax.c (vax_output_int_move, adjacent_operands_p):
3557         Use predicate macros instead of GET_CODE() == foo.
3558         * gcc/config/vax/vax.md (movsi_2, movstrictqi, and<mode>3, ashrsi3,
3559         ashlsi3, rotrsi3, <unnamed>): Likewise.
3560
3561 2009-04-01  Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
3562
3563         * gcc/config/vax/builtins.md (jbbssiqi, jbbssihi, jbbssisi, jbbcciqi,
3564         jbbccihi, jbbccisi): Remova trailing whitespace.
3565         * gcc/config/vax/constraints.md: Likewise.
3566         * gcc/config/vax/elf.h: (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
3567         * gcc/config/vax/openbsd1.h (OBSD_OLD_GAS): Likewise.
3568         * gcc/config/vax/predicates.md: Likewise.
3569         * gcc/config/vax/vax.c (print_operand_address, vax_output_int_move,
3570         vax_expand_addsub_di_operands, adjacent_operands_p): Likewise.
3571         * gcc/config/vax/vax.h: Likewise.
3572         * gcc/config/vax/vax.md (nonlocal_goto): Likewise.
3573
3574 2009-04-01  Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
3575
3576         * gcc/config/vax/vax.c (vax_float_literal, vax_output_int_move)
3577         (indirectable_address_p, adjacent_operands_p): Add spaces around
3578         braces.
3579         * gcc/config/vax/vax-protos.h (adjacent_operands_p): Likewise.
3580
3581 2009-04-01  Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
3582
3583         * gcc/config/vax/vax.c (legitimate_constant_address_p,
3584         legitimate_constant_p, indirectable_address_p, nonindexed_address_p,
3585         index_term_p, reg_plus_index_p, legitimate_address_p,
3586         vax_mode_dependent_address_p): Update comments to match functions
3587         modified by the recent int->bool conversion.
3588
3589 2009-04-01  Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
3590
3591         * gcc/config/vax/builtins.md: Update copyright message.
3592         * gcc/config/vax/constraints.md: Likewise.
3593         * gcc/config/vax/netbsd-elf.h: Likewise.
3594         * gcc/config/vax/predicates.md: Likewise.
3595         * gcc/config/vax/vax-protos.h: Likewise.
3596         * gcc/config/vax/vax.c: Likewise.
3597         * gcc/config/vax/vax.h: Likewise.
3598         * gcc/config/vax/vax.md: Likewise.
3599         * gcc/config/vax/vax.opt: Likewise.
3600
3601 2009-04-01  Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
3602
3603         * gcc/config/vax/builtins.md (ffssi2, ffssi2_internal,
3604         sync_lock_test_and_set<mode>, sync_lock_release<mode>): Fix indention.
3605         * gcc/config/vax/constraints.md (B, R): Likewise.
3606         * gcc/config/vax/predicates.md (external_memory_operand,
3607         nonimmediate_addsub_di_operand): Likewise.
3608         * gcc/config/vax/vax.c (vax_output_int_add): Likewise.
3609         * gcc/config/vax/vax.md (movsi, movsi_2, mov<mode>, call_value,
3610         untyped_call): Likewise.
3611
3612 2009-04-01  Matt Thomas <matt@3am-software.com>
3613
3614         * config/vax/predicates.md: New file.
3615         (symbolic_operand, local_symbolic_operand, external_symbolic_operand,
3616         external_const_operand, nonsymbolic_operand, external_memory_operand,
3617         indirect_memory_operand, indexed_memory_operand,
3618         illegal_blk_memory_operand, illegal_addsub_di_memory_operand,
3619         nonimmediate_addsub_di_operand, general_addsub_di_operand): New
3620         predicate.
3621         * config/vax/constraints.md: New file.
3622         (Z0, U06,  U08, U16, CN6, S08, S16, I, J, K, L, M, N, O, G, Q, B, R, T):
3623         New constraint.
3624         * config/vax/builtins.md: New file.
3625         (ffssi2, ffssi2_internal, sync_lock_test_and_set<mode>, jbbssiqi,
3626         jbbssihi, jbbssisi, sync_lock_release<mode>, jbbcciqi, jbbccihi,
3627         jbbccisi): Define.
3628         * config/vax/vax.opt (mqmath): Add option.
3629         * config/vax/vax.md (isfx): Extend with DI.
3630         (VAXintQH, VAXintQHSD): Define.
3631         (tst<mode>, cmp<mode>, *bit<mode>, movmemhi1, truncsiqi2, truncsihi2,
3632         mulsidi3, add<mode>3, sub<mode>, mul<mode>3, div<mode>3, and<mode>,
3633         and<mode>_const_int, ior<mode>3, xor<mode>3, neg<mode>2,
3634         one_cmpl<mode>2, ashlsi3, lshrsi3, rotlsi3): Update constraints.
3635         (movdi): Update constraints and use vax_output_int_move().
3636         (movsi, movsi_2, pushlclsymreg, pushextsymreg, movlclsymreg,
3637         movextsymreg, adddi3, adcdi3, subdi3, sbcdi3, pushextsym, movextsym,
3638         pushlclsym, movlclsym, movaddr<mode>, pushaddr<mode>,
3639         nonlocal_goto): New.
3640         (mov<mode>): Extend accepted operand types.
3641         (subdi3_old): Rename from subdi3, change update constraints and use
3642         a new implementation.
3643         * gcc/config/vax/vax.h (PCC_BITFIELD_TYPE_MATTERS): Add space.
3644         (FRAME_POINTER_CFA_OFFSET, IRA_COVER_CLASSES, CLASS_MAX_NREGS,
3645         MOVE_RATIO, CLEAR_RATIO): Define.
3646         (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P,
3647         CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Delete.
3648         (PRINT_OPERAND): Redefine using a function instead of inlined code.
3649         * gcc/config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
3650         (split_quadword_operands): Make static and really allow variable
3651         splitting.
3652         (print_operand_address): Update for PIC generation.
3653         (print_operand, vax_builtin_setjmp_frame_value, vax_output_int_subtract,
3654         indexable_address_p, fixup_mathdi_operand,
3655         vax_expand_addsub_di_operands, adjacent_operands_p): New.
3656         (vax_float_literal, legitimate_constant_p,
3657         indirectable_constant_address_p, index_term_p,
3658         reg_plus_index_p): Return bool instead of int.
3659         (vax_rtx_costs): Fix cost for CONST_INT, indent and use HOST_WIDE_INT
3660         where needed.
3661         (vax_output_int_move, vax_output_int_add): Extend to allow PIC
3662         generation.
3663         (vax_output_conditional_branch): Indent.
3664         (legitimate_constant_address_p, indirectable_constant_address_p,
3665         indirectable_address_p, nonindexed_address_p, legitimate_address_p,
3666         vax_mode_dependent_address_p): Return bool instead of int, update for
3667         PIC generation.
3668         * config/vax/vax-protos.h (legitimate_constant_address_p,
3669         legitimate_constant_p, legitimate_address_p,
3670         vax_mode_dependent_address_p): Change declaration to bool.
3671         (legitimate_pic_operand_p, adjacent_operands_p, print_operand,
3672         vax_expand_addsub_di_operands, vax_output_int_subtract,
3673         vax_output_movmemsi): Declare.
3674         (split_quadword_operands, vax_float_literal): Delete declaration.
3675         * config/vax/netbsd-elf.h (CC1_SPEC, CC1PLUS_SPEC) Define.
3676         * config/vax/elf.h (NO_EXTERNAL_INDIRECT_ADDRESS,
3677         VAX_CC1_AND_CC1PLUS_SPEC, ASM_PREFERRED_EH_DATA_FORMAT,
3678         ASM_OUTPUT_DWARF_PCREL): Define.
3679         (ASM_SPEC): Change definition to allow PIC generation.
3680
3681 2009-04-01  Steve Ellcey  <sje@cup.hp.com>
3682
3683         * doc/sourcebuild.texi: Update front-end requirements.
3684
3685 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
3686
3687         PR target/39226
3688         * config/rs6000/rs6000.md (andsi3_internal5_nomc,
3689         anddi3_internal2_nomc, anddi3_internal3_nomc): Removed.
3690         (booldi3_internal3): Use boolean_or_operator instead of
3691         boolean_operator.
3692
3693 2009-04-01  Joseph Myers  <joseph@codesourcery.com>
3694
3695         PR c/39605
3696         * c-decl.c (grokdeclarator): Pedwarn for file-scope array
3697         declarator whose size is not an integer constant expression but
3698         folds to an integer constant, then treat it as a constant
3699         subsequently.
3700
3701 2009-04-01  Richard Guenther  <rguenther@suse.de>
3702
3703         * fold-const.c (fold_plusminus_mult_expr): Do not fold
3704         i * 4 + 2 to (i * 2 + 1) * 2.
3705
3706 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
3707
3708         PR c/37772
3709         * c-parser.c (c_parser_asm_statement): Skip until close paren and
3710         return if c_parser_asm_string_literal returned NULL.
3711
3712 2009-04-01  Nick Clifton  <nickc@redhat.com>
3713
3714         * config/m32c/m32c.h (LIBGCC2_UNITS_PER_WORD): Define if not
3715         already defined.
3716         * config/m32c/t-m32c (LIB2FUNCS_EXTRA): Add m32c-lib2-trapv.c.
3717         * config/m32c/m32c-lib2.c: Remove unused typedefs.  Rename the
3718         other typedefs to avoid conflicts with libgcc2.c.  Define labels
3719         to gain 16-bit bit-manipulation functions from libgcc2.c and then
3720         include it.
3721         * config/m32c/m32c-lib2-trapv.c: New file.  Define labels
3722         to gain 16-bit trapping arithmetic functions from libgcc2.c and
3723         then include it.
3724
3725 2009-04-01  Rafael Avila de Espindola  <espindola@google.com>
3726
3727         * varasm.c (default_function_rodata_section): Declare DOT as
3728         const char*.
3729
3730 2009-04-01  Kai Tietz  <kai.tietz@onevision.com>
3731             Andrey Galkin <agalkin@hypercom.com>
3732
3733         PR/39492
3734         * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
3735         Make object_name unique for each process.
3736
3737 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
3738
3739         PR other/39591
3740         * omp-low.c (remove_exit_barrier): Don't optimize if there are any
3741         addressable variables in the parallel that could go out of scope while
3742         running queued tasks.
3743
3744 2009-04-01  Anatoly Sokolov  <aesok@post.ru>
3745
3746         * config/avr/avr.h (avr_case_values_threshold): Remove declaration.
3747         (CASE_VALUES_THRESHOLD): Redefine.
3748         * config/avr/avr.c (avr_override_options): Remove initialization of
3749         avr_case_values_threshold variable.
3750         (avr_case_values_threshold): Remove variable. Add new function.
3751         * config/avr/avr-protos.h (avr_case_values_threshold): Declare.
3752         * config/avr/avr.opt (mno-tablejump): Remove option.
3753         * doc/invoke.texi (AVR Options): Remove -mno-tablejump.
3754
3755 2009-04-01  DJ Delorie  <dj@redhat.com>
3756
3757         * varasm.c (default_function_rodata_section): Don't assume
3758         anything about where the first '.' in the section name is.
3759
3760 2009-04-01  Alan Modra  <amodra@bigpond.net.au>
3761
3762         * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Delete redundant
3763         rs6000_emit_stack_tie.
3764
3765 2009-03-31  Ian Lance Taylor  <iant@google.com>
3766
3767         * tree-eh.c (tree_remove_unreachable_handlers): Compare
3768         gimple_code with GIMPLE_RESX, not RESX.
3769
3770 2009-03-31  Joseph Myers  <joseph@codesourcery.com>
3771
3772         * c-common.c (c_get_ident): New.
3773         (c_common_nodes_and_builtins): Call it for type names that may be NULL.
3774
3775 2009-04-01  Ben Elliston  <bje@au.ibm.com>
3776
3777         * config/rs6000/sysv4.opt (msdata): Improve option description.
3778
3779 2009-03-31  Steve Ellcey  <sje@cup.hp.com>
3780
3781         * config/ia64/ia64.md (divsf3_internal_lat): Remove.
3782         (divdf3_internal_lat): Remove.
3783         (divxf3_internal_lat): Remove.
3784         (divxf3_internal_thr): Remove.
3785         (divxf): Use divxf3_internal.
3786         * config/ia64/div.md (divsf3_internal_lat): New.
3787         (divdf3_internal_lat): New.
3788         (divxf3_internal): New.
3789
3790 2009-03-31  Joseph Myers  <joseph@codesourcery.com>
3791
3792         PR c/448
3793         * Makefile.in (USE_GCC_STDINT): Define.
3794         (stmp-int-hdrs): Install stdint.h if applicable.
3795         * c-common.c (CHAR16_TYPE): Define in terms of UINT_LEAST16_TYPE
3796         if known.
3797         (CHAR32_TYPE): Define in terms of UINT_LEAST32_TYPE if known.
3798         (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE, INT32_TYPE, INT64_TYPE,
3799         UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE,
3800         INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
3801         INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
3802         UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
3803         INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
3804         UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
3805         UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
3806         (c_common_nodes_and_builtins): Initialize
3807         underlying_wchar_type_node.  Do not initialize
3808         signed_wchar_type_node or unsigned_wchar_type_node.  Initialize
3809         nodes for new types.
3810         (c_stddef_cpp_builtins): Define macros for new types.
3811         * c-common.h (CTI_SIGNED_WCHAR_TYPE, CTI_UNSIGNED_WCHAR_TYPE):
3812         Remove.
3813         (CTI_UNDERLYING_WCHAR_TYPE, CTI_SIG_ATOMIC_TYPE, CTI_INT8_TYPE,
3814         CTI_INT16_TYPE, CTI_INT32_TYPE, CTI_INT64_TYPE, CTI_UINT8_TYPE,
3815         CTI_UINT16_TYPE, CTI_UINT32_TYPE, CTI_UINT64_TYPE,
3816         CTI_INT_LEAST8_TYPE, CTI_INT_LEAST16_TYPE, CTI_INT_LEAST32_TYPE,
3817         CTI_INT_LEAST64_TYPE, CTI_UINT_LEAST8_TYPE, CTI_UINT_LEAST16_TYPE,
3818         CTI_UINT_LEAST32_TYPE, CTI_UINT_LEAST64_TYPE, CTI_INT_FAST8_TYPE,
3819         CTI_INT_FAST16_TYPE, CTI_INT_FAST32_TYPE, CTI_INT_FAST64_TYPE,
3820         CTI_UINT_FAST8_TYPE, CTI_UINT_FAST16_TYPE, CTI_UINT_FAST32_TYPE,
3821         CTI_UINT_FAST64_TYPE, CTI_INTPTR_TYPE, CTI_UINTPTR_TYPE): Define.
3822         (signed_wchar_type_node, unsigned_wchar_type_node): Remove.
3823         (underlying_wchar_type_node, sig_atomic_type_node, int8_type_node,
3824         int16_type_node, int32_type_node, int64_type_node,
3825         uint8_type_node, uint16_type_node, c_uint32_type_node,
3826         c_uint64_type_node, int_least8_type_node, int_least16_type_node,
3827         int_least32_type_node, int_least64_type_node,
3828         uint_least8_type_node, uint_least16_type_node,
3829         uint_least32_type_node, uint_least64_type_node,
3830         int_fast8_type_node, int_fast16_type_node, int_fast32_type_node,
3831         int_fast64_type_node, uint_fast8_type_node, uint_fast16_type_node,
3832         uint_fast32_type_node, uint_fast64_type_node, intptr_type_node,
3833         uintptr_type_node): Define.
3834         * c-cppbuiltin.c (builtin_define_constants,
3835         builtin_define_type_minmax): New.
3836         (builtin_define_stdint_macros): Define more macros.
3837         (c_cpp_builtins): Define more limit macros.
3838         (type_suffix): New.
3839         (builtin_define_type_max): Define in terms of
3840         builtin_define_type_minmax.  Remove is_long parameter.  All
3841         callers changed.
3842         * config.gcc (use_gcc_stdint): Define.
3843         (tm_file): Add glibc-stdint.h for targets using glibc or uClibc.
3844         Add newlib-stdint.h for generic targets.
3845         * config/glibc-stdint.h, config/newlib-stdint.h,
3846         ginclude/stdint-gcc.h, ginclude/stdint-wrap.h: New.
3847         * config/m32c/m32c.h (UINTPTR_TYPE): Define.
3848         * config/score/score.h (UINTPTR_TYPE): Define.
3849         * config/sol2.h (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE,
3850         INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE,
3851         UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
3852         INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
3853         UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
3854         INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
3855         UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
3856         UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
3857         * config/spu/spu.h (STDINT_LONG32): Define.
3858         * configure.ac (use_gcc_stdint): Substitute.
3859         * configure: Regenerate.
3860         * doc/cpp.texi (__SIG_ATOMIC_TYPE__, __INT8_TYPE__,
3861         __INT16_TYPE__, __INT32_TYPE__, __INT64_TYPE__, __UINT8_TYPE__,
3862         __UINT16_TYPE__, __UINT32_TYPE__, __UINT64_TYPE__,
3863         __INT_LEAST8_TYPE__, __INT_LEAST16_TYPE__, __INT_LEAST32_TYPE__,
3864         __INT_LEAST64_TYPE__, __UINT_LEAST8_TYPE__, __UINT_LEAST16_TYPE__,
3865         __UINT_LEAST32_TYPE_, __UINT_LEAST64_TYPE__, __INT_FAST8_TYPE__,
3866         __INT_FAST16_TYPE__, __INT_FAST32_TYPE__, __INT_FAST64_TYPE__,
3867         __UINT_FAST8_TYPE__, __UINT_FAST16_TYPE__, __UINT_FAST32_TYPE__,
3868         __UINT_FAST64_TYPE__, __INTPTR_TYPE__, __UINTPTR_TYPE__,
3869         __WINT_MAX__, __SIZE_MAX__, __PTRDIFF_MAX__, __UINTMAX_MAX__,
3870         __SIG_ATOMIC_MAX__, __INT8_MAX__, __INT16_MAX__, __INT32_MAX__,
3871         __INT64_MAX__, __UINT8_MAX__, __UINT16_MAX__, __UINT32_MAX__,
3872         __UINT64_MAX__, __INT_LEAST8_MAX__, __INT_LEAST16_MAX__,
3873         __INT_LEAST32_MAX__, __INT_LEAST64_MAX__, __UINT_LEAST8_MAX__,
3874         __UINT_LEAST16_MAX__, __UINT_LEAST32_MAX__, __UINT_LEAST64_MAX__,
3875         __INT_FAST8_MAX__, __INT_FAST16_MAX__, __INT_FAST32_MAX__,
3876         __INT_FAST64_MAX__, __UINT_FAST8_MAX__, __UINT_FAST16_MAX__,
3877         __UINT_FAST32_MAX__, __UINT_FAST64_MAX__, __INTPTR_MAX__,
3878         __UINTPTR_MAX__, __WCHAR_MIN__, __WINT_MIN__, __SIG_ATOMIC_MIN__,
3879         __INT8_C, __INT16_C, __INT32_C, __INT64_C, __UINT8_C, __UINT16_C,
3880         __UINT32_C, __UINT64_C, __INTMAX_C, __UINTMAX_C): Document.
3881         * doc/tm.texi (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE, INT32_TYPE,
3882         INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE,
3883         INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
3884         INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
3885         UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
3886         INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
3887         UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
3888         UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Document.
3889
3890 2009-03-31  Bernd Schmidt  <bernd.schmidt@analog.com>
3891
3892         * loop-iv.c (suitable_set_for_replacement): Renamed from
3893         simplify_using_assignment; changed to return bool and to accept new
3894         args DEST and SRC.  Return true iff we find a source/destination pair
3895         that can be used to make a replacement, and fill SRC and DEST if so.
3896         Remove arg ALTERED.  Don't deal with altered regs here.  All callers
3897         changed.
3898         (simplify_using_initial_values): Deal with altered regs here and track
3899         more precisely the effect they have on the validity of our expression.
3900
3901         * loop-iv.c (simplify_using_condition): A condition of the form
3902         (EQ REG CONST) can be used to simply make a substitution.
3903         (simplify_using_initial_values): Keep track of conditions we have seen
3904         and keep using them to simplify new expressions, while applying the
3905         same substitutions to them as to the expression.
3906
3907         * simplify-rtx.c (simplify_relational_operation_1): Simplify
3908         (LTU (PLUS a C) C) or (LTU (PLUS a C) a) to (GEU a -C); likewise with
3909         GEU/LTU reversed.
3910
3911         * loop-iv.c (determine_max_iter): New arg OLD_NITER.  All callers
3912         changed.  Use this when trying to improve the upper bound.
3913         Generate the comparison by using simplify_gen_relational.
3914
3915         * loop-iv.c (simple_rhs_p): Allow more kinds of expressions.
3916
3917         * loop-iv.c (replace_single_def_regs, replace_in_expr): New static
3918         functions.
3919         (simplify_using_assignment, simplify_using_initial_values): Call
3920         replace_in_expr to make replacements.  Call replace_single_def_regs
3921         once on the initial version of the expression.
3922
3923 2009-03-31  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3924
3925         PR target/27237
3926         * doc/invoke.texi (ARM Options): Update documentation for -mthumb.
3927
3928 2009-03-31  Richard Guenther  <rguenther@suse.de>
3929
3930         PR middle-end/31029
3931         * fold-const.c (fold_binary): Fold X +- Y CMP X to Y CMP 0 for
3932         equality comparisons.  Fold C - X CMP X if C % 2 == 1.
3933
3934 2009-03-31  Richard Guenther  <rguenther@suse.de>
3935
3936         * tree.h (div_if_zero_remainder): Declare.
3937         * fold-const.c (div_if_zero_remainder): Export.
3938         * tree-ssa-forwprop.c
3939         (forward_propagate_addr_into_variable_array_index): Handle
3940         constant array index addition outside of the variable index.
3941
3942 2009-03-31  Joseph Myers  <joseph@codesourcery.com>
3943
3944         PR target/39592
3945         * config/i386/i386.md (*floatunssi<mode>2_1, two unnamed
3946         define_splits, floatunssi<mode>2): Require x87 conversions from
3947         DImode to be permitted.
3948
3949 2009-03-31  Joseph Myers  <joseph@codesourcery.com>
3950
3951         PR preprocessor/15638
3952         * c-common.c (c_cpp_error): Handle CPP_DL_FATAL.
3953
3954 2009-03-31  Richard Guenther  <rguenther@suse.de>
3955
3956         PR middle-end/23401
3957         PR middle-end/27810
3958         * tree.h (DECL_GIMPLE_FORMAL_TEMP_P): Remove.
3959         (struct tree_decl_with_vis): Remove gimple_formal_temp member.
3960         * tree-eh.c (lower_eh_constructs_2): Move LHS assignment to
3961         a separate statement.
3962         * gimplify.c (pop_gimplify_context): Remove formal temp handling.
3963         (lookup_tmp_var): Likewise.
3964         (is_gimple_formal_tmp_or_call_rhs): Remove.
3965         (is_gimple_reg_or_call_rhs): Rename to ...
3966         (is_gimple_reg_rhs_or_call): ... this.
3967         (is_gimple_mem_or_call_rhs): Rename to ...
3968         (is_gimple_mem_rhs_or_call): ... this.
3969         (internal_get_tmp_var): Use is_gimple_reg_rhs_or_call.  Set
3970         DECL_GIMPLE_REG_P only if is_formal is true.
3971         (gimplify_compound_lval): Use is_gimple_reg.  Remove workaround
3972         for non-proper post-modify expression gimplification.
3973         (gimplify_self_mod_expr): For post-modify expressions gimplify
3974         the lvalue to a minimal lvalue.
3975         (rhs_predicate_for): Remove formal temp case.
3976         (gimplify_modify_expr_rhs): Likewise.
3977         (gimplify_addr_expr): Use is_gimple_reg.
3978         (gimplify_expr): Remove formal temp cases.
3979         (gimple_regimplify_operands): Likewise.
3980         * tree-ssa-pre.c (get_or_alloc_expr_for): Treat EXC_PTR_EXPR
3981         and FILTER_EXPR like constants.
3982         * gimple.c (walk_gimple_op): Fix val_only initialization, use
3983         is_gimple_reg.
3984         (is_gimple_formal_tmp_rhs): Remove.
3985         (is_gimple_reg_rhs): Remove special casing.
3986         (is_gimple_mem_rhs): Fix.
3987         (is_gimple_reg): Move DECL_GIMPLE_REG_P handling earlier.
3988         (is_gimple_formal_tmp_var): Remove.
3989         (is_gimple_formal_tmp_reg): Likewise.
3990         (is_gimple_min_lval): Allow invariant component ref parts.
3991         * gimple.h (is_gimple_formal_tmp_rhs, is_gimple_formal_tmp_var,
3992         is_gimple_formal_tmp_reg): Remove declarations.
3993         * tree-cfg.c (verify_expr): Verify that variables with address
3994         taken do not have DECL_GIMPLE_REG_P set.
3995         * tree-mudflap.c (mf_build_check_statement_for): Use
3996         force_gimple_operand instead of gimplify_expr.
3997
3998 2009-03-31  Ayal Zaks  <zaks@il.ibm.com>
3999
4000         * modulo-sched.c (sms_schedule_by_order): Pass the actual
4001         schedulable rows to compute_split_row.
4002
4003 2009-03-31  Ben Elliston  <bje@au.ibm.com>
4004
4005         PR target/31635
4006         * config/rs6000/rs6000.c (rs6000_handle_option): Handle
4007         OPT_mvrsave.
4008
4009 2009-03-31  Alan Modra  <amodra@bigpond.net.au>
4010
4011         * doc/invoke.texi (RS/6000 and PowerPC Options):Document mtls-markers.
4012         * configure.ac (HAVE_AS_TLS_MARKERS): New gas feature check.
4013         * configure: Regenerate.
4014         * config.in: Regenerate.
4015         * config/rs6000/rs6000.opt (mtls-markers): Add.
4016         * config/rs6000/rs6000.h (TARGET_TLS_MARKERS): Define.
4017         * config/rs6000/rs6000.md (tls_gd_aix, tls_gd_sysv): Add splitter.
4018         (tls_ld_aix, tls_ld_sysv): Likewise.
4019         (tls_gd, tls_gd_call_aix, tls_gd_call_sysv): New insns.
4020         (tls_ld, tls_ld_call_aix, tls_ld_call_sysv): Likewise.
4021
4022 2009-03-31  Alan Modra  <amodra@bigpond.net.au>
4023
4024         * config/spu/spu.c (spu_expand_prologue): Delete redundant code.
4025
4026 2009-03-30  Jan Hubicka  <jh@suse.cz>
4027
4028         * tree-eh.c (make_eh_edges): Set probability 100% to first edge
4029         out of RESX.
4030         (tree_remove_unreachable_handlers): Cleanup EH predecestor
4031         detection and label handling.
4032
4033 2009-03-30  Vladimir Makarov  <vmakarov@redhat.com>
4034
4035         * ira-int.h (ira_allocno): Rename left_conflicts_num to
4036         left_conflicts_size.
4037         (ALLOCNO_LEFT_CONFLICTS_NUM): Rename to
4038         ALLOCNO_LEFT_CONFLICTS_SIZE.
4039
4040         * ira-color.c (allocno_spill_priority, push_allocno_to_stack,
4041         remove_allocno_from_bucket_and_push,
4042         allocno_spill_priority_compare, push_allocnos_to_stack,
4043         setup_allocno_available_regs_num): Use ALLOCNO_LEFT_CONFLICTS_SIZE
4044         instead of ALLOCNO_LEFT_CONFLICTS_NUM.
4045         (setup_allocno_left_conflicts_num): Ditto.  Rename to
4046         setup_allocno_left_conflicts_size.
4047         (put_allocno_into_bucket): Use ALLOCNO_LEFT_CONFLICTS_SIZE
4048         instead of ALLOCNO_LEFT_CONFLICTS_NUM and
4049         setup_allocno_left_conflicts_size instead of
4050         setup_allocno_left_conflicts_num.
4051
4052         * ira-build.c (ira_create_allocno): Use
4053         ALLOCNO_LEFT_CONFLICTS_SIZE instead of
4054         ALLOCNO_LEFT_CONFLICTS_NUM.
4055
4056 2009-03-30  Vladimir Makarov  <vmakarov@redhat.com>
4057
4058         * reload.c (push_reload, find_dummy_reload): Use df_get_live_out
4059         instead of DF_LR_OUT.
4060
4061         * ira-lives.c (process_bb_node_lives): Ditto.
4062
4063         * ira-color.c (ira_loop_edge_freq): Use df_get_live_{out,in}
4064         instead of DF_LR_{OUT,IN}.
4065
4066         * ira-emit.c (generate_edge_moves, add_ranges_and_copies): Ditto.
4067
4068         * ira-build.c (create_bb_allocnos, create_loop_allocnos): Ditto.
4069
4070 2009-03-30  Jan Hubicka  <jh@suse.cz>
4071
4072         * except.c (label_to_region_map): Fix thinko.
4073
4074 2009-03-30  Steve Ellcey  <sje@cup.hp.com>
4075
4076         PR middle-end/38237
4077         * tree.h (tree_find_value): New declaration.
4078         * tree.c (tree_find_value): New function.
4079         * varasm.c (assemble_external): Avoid duplicate entries on lists.
4080
4081 2009-03-30  Jakub Jelinek  <jakub@redhat.com>
4082
4083         PR debug/39563
4084         * c-decl.c (struct c_binding): Add locus field.
4085         (bind): Add locus argument, set locus field from it.
4086         (pop_scope): For b->nested VAR_DECL or FUNCTION_DECL,
4087         add a DECL_EXTERNAL copy of b->decl to current BLOCK_VARS.
4088         (push_file_scope, pushtag, pushdecl, pushdecl_top_level,
4089         implicitly_declare, undeclared_variable, lookup_label,
4090         declare_label, c_make_fname_decl, c_builtin_function,
4091         c_builtin_function_ext_scope, store_parm_decls_newstyle): Adjust
4092         bind callers.
4093
4094 2009-03-30  H.J. Lu  <hongjiu.lu@intel.com>
4095
4096         PR target/38781
4097         * config/i386/i386.c (classify_argument): Check total size of
4098         structure.
4099
4100 2009-03-30  Martin Jambor  <mjambor@suse.cz>
4101
4102         * ipa-prop.h (jump_func_type): Rename IPA_UNKNOWN, IPA_CONST,
4103         IPA_CONST_MEMBER_PTR, and IPA_PASS_THROUGH to IPA_JF_UNKNOWN,
4104         IPA_JF_CONST, IPA_JF_CONST_MEMBER_PTR, and IPA_JF_PASS_THROUGH
4105         respectively.
4106
4107         * tree-dfa.c (get_ref_base_and_extent): Return -1 maxsize if
4108         seen_variable_array_ref while also traversing a union.
4109
4110         * tree-inline.c (optimize_inline_calls): Do not call
4111         cgraph_node_remove_callees.
4112         * cgraphbuild.c (remove_cgraph_callee_edges): New function.
4113         (pass_remove_cgraph_callee_edges): New variable.
4114         * passes.c (init_optimization_passes): Add
4115         pass_remove_cgraph_callee_edges after early inlining and before all
4116         late intraprocedural passes.
4117
4118         * omp-low.c (expand_omp_taskreg): Always set current_function_decl.
4119
4120 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
4121
4122         * config/sparc/sparc.md (*nand<V64mode>_vis, *nand<V32mode>_vis):
4123         Fix typos in names.
4124
4125 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
4126
4127         * combine.c (simplify_comparison): Use have_insn_for.
4128         * dojump.c (do_jump): Likewise.
4129
4130 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
4131
4132         * config/sparc/sparc.c (sparc_compare_emitted): Remove.
4133         (gen_compare_reg, emit_v9_brxx_insn): Handle MODE_CC
4134         sparc_compare_op0 like sparc_compare_emitted used to be handled.
4135         (sparc_expand_compare_and_swap_12): Set sparc_compare_op0
4136         instead of sparc_compare_emitted.
4137         * config/sparc/sparc.h (sparc_compare_emitted): Remove.
4138         * config/sparc/sparc.md (stack_protect_test): Set sparc_compare_op0
4139         instead of sparc_compare_emitted.
4140
4141 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
4142
4143         * bb-reorder.c (partition_hot_cold_basic_blocks): Do not
4144         enter/exit cfglayout mode.
4145         (pass_partition_block): Require it.
4146         * combine.c (find_single_use, reg_dead_at_p): Use CFG.
4147         (combine_instructions): Track basic blocks instead of labels.
4148         (update_cfg_for_uncondjump): New.
4149         (try_combine): Use it.  Update jumps after rescanning.
4150         (pass_combine): Require PROP_cfglayout.
4151         * passes.c (pass_outof_cfg_layout_mode): Move after regmove.
4152
4153 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
4154
4155         * cfglayout.c (pass_into_cfg_layout_mode, pass_outof_cfg_layout_mode):
4156         Provide/destroy PROP_cfglayout respectively.
4157         * gcse.c (pass_jump_bypass, pass_gcse): Require it.
4158         * tree-pass.h (PROP_cfglayout): New.
4159
4160 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
4161
4162         * fold-const.c (const_binop, fold_convert_const_real_from_fixed,
4163         fold_convert_const_fixed_from_fixed,
4164         fold_convert_const_fixed_from_int,
4165         fold_convert_const_fixed_from_real, fold_negate_const): Do not
4166         set TREE_CONSTANT_OVERFLOW.
4167         * tree.def: Remove mention of TREE_CONSTANT_OVERFLOW.
4168         * tree.h (TREE_CONSTANT_OVERFLOW): Delete.
4169
4170 2009-03-30  Ira Rosen  <irar@il.ibm.com>
4171
4172         * tree-vect-loop-manip.c: New file.
4173         * tree-vectorizer.c: Update documentation and included files.
4174         (vect_loop_location): Make extern.
4175         (rename_use_op): Move to tree-vect-loop-manip.c
4176         (rename_variables_in_bb, rename_variables_in_loop,
4177         slpeel_update_phis_for_duplicate_loop,
4178         slpeel_update_phi_nodes_for_guard1,
4179         slpeel_update_phi_nodes_for_guard2, slpeel_make_loop_iterate_ntimes,
4180         slpeel_tree_duplicate_loop_to_edge_cfg, slpeel_add_loop_guard,
4181         slpeel_can_duplicate_loop_p, slpeel_verify_cfg_after_peeling,
4182         set_prologue_iterations, slpeel_tree_peel_loop_to_edge,
4183         find_loop_location): Likewise.
4184         (new_stmt_vec_info): Move to tree-vect-stmts.c.
4185         (init_stmt_vec_info_vec, free_stmt_vec_info_vec, free_stmt_vec_info,
4186         get_vectype_for_scalar_type, vect_is_simple_use,
4187         supportable_widening_operation, supportable_narrowing_operation):
4188         Likewise.
4189         (bb_in_loop_p): Move to tree-vect-loop.c.
4190         (new_loop_vec_info, destroy_loop_vec_info,
4191         reduction_code_for_scalar_code, report_vect_op,
4192         vect_is_simple_reduction, vect_is_simple_iv_evolution): Likewise.
4193         (vect_can_force_dr_alignment_p): Move to tree-vect-data-refs.c.
4194         (vect_supportable_dr_alignment): Likewise.
4195         * tree-vectorizer.h (tree-data-ref.h): Include.
4196         (vect_loop_location): Declare.
4197         Reorganize function declarations according to the new file structure.
4198         * tree-vect-loop.c: New file.
4199         * tree-vect-analyze.c: Remove. Move functions to tree-vect-data-refs.c,
4200         tree-vect-stmts.c, tree-vect-slp.c, tree-vect-loop.c.
4201         * tree-vect-data-refs.c: New file.
4202         * tree-vect-patterns.c (timevar.h): Don't include.
4203         * tree-vect-stmts.c: New file.
4204         * tree-vect-transform.c: Remove. Move functions to tree-vect-stmts.c,
4205         tree-vect-slp.c, tree-vect-loop.c.
4206         * Makefile.in (OBJS-common): Remove tree-vect-analyze.o and
4207         tree-vect-transform.o. Add tree-vect-data-refs.o, tree-vect-stmts.o,
4208         tree-vect-loop.o, tree-vect-loop-manip.o, tree-vect-slp.o.
4209         (tree-vect-analyze.o): Remove.
4210         (tree-vect-transform.o): Likewise.
4211         (tree-vect-data-refs.o): Add rule.
4212         (tree-vect-stmts.o, tree-vect-loop.o, tree-vect-loop-manip.o,
4213         tree-vect-slp.o): Likewise.
4214         (tree-vect-patterns.o): Remove redundant dependencies.
4215         (tree-vectorizer.o): Likewise.
4216         * tree-vect-slp.c: New file.
4217
4218 2009-03-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4219
4220         * optc-gen.awk: Warn if an option flag has multiple different
4221         help strings.
4222
4223 2009-03-30  Sebastian Pop  <sebastian.pop@amd.com>
4224
4225         * doc/invoke.texi (-floop-interchange, -floop-strip-mine,
4226         -floop-block): Document dependences on PPL, CLooG and Graphite.
4227
4228 2009-03-30  Joseph Myers  <joseph@codesourcery.com>
4229
4230         PR rtl-optimization/323
4231         * c-common.c (c_fully_fold, convert_and_check,
4232         c_common_truthvalue_conversion): Handle EXCESS_PRECISION_EXPR.
4233         (c_fully_fold_internal): Disallow EXCESS_PRECISION_EXPR.
4234         * c-common.def (EXCESS_PRECISION_EXPR): New.
4235         * c-cppbuiltin.c (builtin_define_float_constants): Define
4236         constants with enough digits for long double.
4237         * c-lex.c (interpret_float): Interpret constant with excess
4238         precision where appropriate.
4239         * c-opts.c (c_common_post_options): Set
4240         flag_excess_precision_cmdline.  Give an error for
4241         -fexcess-precision=standard for C++ for processors where the
4242         option is significant.
4243         * c-parser.c (c_parser_conditional_expression): Handle excess
4244         precision in condition.
4245         * c-typeck.c (convert_arguments): Handle arguments with excess
4246         precision.
4247         (build_unary_op): Move excess precision outside operation.
4248         (build_conditional_expr): Likewise.
4249         (build_compound_expr): Likewise.
4250         (build_c_cast): Do cast on operand of EXCESS_PRECISION_EXPR.
4251         (build_modify_expr): Handle excess precision in RHS.
4252         (convert_for_assignment): Handle excess precision in converted
4253         value.
4254         (digest_init, output_init_element, process_init_element): Handle
4255         excess precision in initializer.
4256         (c_finish_return): Handle excess precision in return value.
4257         (build_binary_op): Handle excess precision in operands and add
4258         excess precision as needed for operation.
4259         * common.opt (-fexcess-precision=): New option.
4260         * config/i386/i386.h (X87_ENABLE_ARITH, X87_ENABLE_FLOAT): New.
4261         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
4262         For standard excess precision, output explicit conversion to and
4263         truncation from XFmode.
4264         (*float<SSEMODEI24:mode><X87MODEF:mode>2_1,
4265         *float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp,
4266         *float<SSEMODEI24:mode><X87MODEF:mode>2_i387, two unnamed
4267         define_splits, floatdi<X87MODEF:mode>2_i387_with_xmm, two unnamed
4268         define_splits, *floatunssi<mode>2_1, two unnamed define_splits,
4269         floatunssi<mode>2, add<mode>3, sub<mode>3, mul<mode>3, divdf3,
4270         divsf3, *fop_<mode>_comm_i387, *fop_<mode>_1_i387,
4271         *fop_<MODEF:mode>_2_i387, *fop_<MODEF:mode>_3_i387,
4272         *fop_df_4_i387, *fop_df_5_i387, *fop_df_6_i387, two unnamed
4273         define_splits, sqrt<mode>2): Disable where appropriate for
4274         standard excess precision.
4275         * convert.c (convert_to_real): Do not shorten arithmetic to type
4276         for which excess precision would be used.
4277         * defaults.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Define.
4278         * doc/invoke.texi (-fexcess-precision=): Document option.
4279         (-mfpmath=): Correct index entry.
4280         * flags.h (enum excess_precision, flag_excess_precision_cmdline,
4281         flag_excess_precision): New.
4282         * langhooks.c (lhd_post_options): Set
4283         flag_excess_precision_cmdline.
4284         * opts.c (common_handle_option): Handle -fexcess-precision=.
4285         * toplev.c (flag_excess_precision_cmdline, flag_excess_precision,
4286         init_excess_precision): New.
4287         (lang_dependent_init_target): Call init_excess_precision.
4288         * tree.c (excess_precision_type): New.
4289         * tree.h (excess_precision_type): Declare.
4290
4291 2009-03-30  Joseph Myers  <joseph@codesourcery.com>
4292
4293         PR c/35235
4294         * c-typeck.c (build_component_ref): Do not copy qualifiers from
4295         non-lvalue to component.
4296
4297 2009-03-29  Joseph Myers  <joseph@codesourcery.com>
4298
4299         PR preprocessor/34695
4300         * Makefile.in (c-opts.o): Depend on c-tree.h.
4301         * c-common.c: Move down include of diagnostic.h.
4302         (done_lexing, c_cpp_error): New.
4303         * c-common.h (done_lexing): Declare.
4304         * c-decl.c (c_write_global_declarations): Don't check cpp_errors
4305         (parse_in).
4306         * c-opts.c: Include c-tree.h.
4307         (c_common_init_options): Set preprocessor error callback.
4308         (c_common_handle_option): Do not set preprocessor
4309         inhibit_warnings, warnings_are_errors, warn_system_headers,
4310         pedantic_errors or inhibit_warnings flags.
4311         (c_common_post_options): Do not check cpp_errors (parse_in).
4312         (c_common_finish): Do not output dependencies if there were
4313         errors.  Do not check return value of cpp_finish.
4314         * c-ppoutput.c (pp_file_change): Set input_location.
4315         * c-tree.h (c_cpp_error): Declare.
4316         * diagnostic.c (diagnostic_set_info_translated): Also initialize
4317         override_column.
4318         (diagnostic_build_prefix): Check override_column.
4319         * diagnostic.h (diagnostic_info): Add override_column field.
4320         (diagnostic_override_column): Define.
4321
4322 2009-03-28  Paolo Bonzini  <bonzini@gnu.org>
4323
4324         * c-common.c (c_expand_expr, c_staticp): Remove.
4325         * c-common.def (COMPOUND_LITERAL_EXPR): Delete.
4326         * c-common.h (emit_local_var, c_staticp, COMPOUND_LITERAL_EXPR_DECL,
4327         COMPOUND_LITERAL_EXPR_DECL_EXPR): Remove.
4328         * c-gimplify.c (gimplify_compound_literal_expr,
4329         optimize_compound_literals_in_ctor): Remove.
4330         (c_gimplify_expr): Remove COMPOUND_LITERAL_EXPR handling.
4331         * c-objc-common.h (LANG_HOOKS_STATICP): Remove.
4332         * c-semantics.c (emit_local_var): Remove.
4333
4334         * langhooks-def.h (lhd_expand_expr): Remove.
4335         * langhooks.c (lhd_expand_expr): Remove.
4336         * langhooks.h (LANG_HOOKS_DEF): Remove LANG_HOOKS_EXPAND_EXPR.
4337
4338         * expr.c (expand_expr_real_1): Move COMPOUND_LITERAL_EXPR
4339         handling from c-semantics.c; don't call into langhook.
4340         (expand_expr_addr_expr_1): Check that we don't get non-GENERIC trees.
4341         * gimplify.c (gimplify_compound_literal_expr,
4342         optimize_compound_literals_in_ctor): Move from c-gimplify.c.
4343         (gimplify_init_constructor): Call optimize_compound_literals_in_ctor.
4344         (gimplify_modify_expr_rhs, gimplify_expr): Handle COMPOUND_LITERAL_EXPR
4345         as was done in c-gimplify.c.
4346         * tree.c (staticp): Move COMPOUND_LITERAL_EXPR handling from c_staticp.
4347         * tree.h (COMPOUND_LITERAL_EXPR_DECL, COMPOUND_LITERAL_EXPR_DECL_EXPR):
4348         Move from c-common.h.
4349         * tree.def (COMPOUND_LITERAL_EXPR): Move from c-common.def.
4350
4351         * tree.c (staticp): Do not call langhook.
4352         * langhooks.c (lhd_staticp): Delete.
4353         * langhooks-def.h (lhd_staticp): Delete prototype.
4354         (LANG_HOOKS_STATICP): Delete.
4355         (LANG_HOOKS_INITIALIZER): Delete LANG_HOOKS_STATICP.
4356
4357         * doc/c-tree.texi (Expression nodes): Refer to DECL_EXPRs
4358         instead of DECL_STMTs.
4359
4360 2009-03-29  Joseph Myers  <joseph@codesourcery.com>
4361
4362         PR c/456
4363         PR c/5675
4364         PR c/19976
4365         PR c/29116
4366         PR c/31871
4367         PR c/35198
4368         * builtins.c (fold_builtin_sincos): Build COMPOUND_EXPR in
4369         void_type_node.
4370         (fold_call_expr): Return a NOP_EXPR from folding rather than the
4371         contained expression.
4372         * c-common.c (c_fully_fold, c_fully_fold_internal, c_save_expr): New.
4373         (c_common_truthvalue_conversion): Use c_save_expr.  Do not fold
4374         conditional expressions for C.
4375         (decl_constant_value_for_optimization): Move from
4376         decl_constant_value_for_broken_optimization in c-typeck.c.  Check
4377         whether optimizing and that the expression is a VAR_DECL not of
4378         array type instead of doing such checks in the caller.  Do not
4379         check pedantic.  Call gcc_unreachable for C++.
4380         * c-common.def (C_MAYBE_CONST_EXPR): New.
4381         * c-common.h (c_fully_fold, c_save_expr,
4382         decl_constant_value_for_optimization): New prototypes.
4383         (C_MAYBE_CONST_EXPR_PRE, C_MAYBE_CONST_EXPR_EXPR,
4384         C_MAYBE_CONST_EXPR_INT_OPERANDS, C_MAYBE_CONST_EXPR_NON_CONST,
4385         EXPR_INT_CONST_OPERANDS): Define.
4386         * c-convert.c (convert): Strip nops from expression.
4387         * c-decl.c (groktypename): Take extra parameters expr and
4388         expr_const_operands.  Update call to grokdeclarator.
4389         (start_decl): Update call to grokdeclarator.  Add statement for
4390         expressions used in type of decl.
4391         (grokparm): Update call to grokdeclarator.
4392         (push_parm_decl): Update call to grokdeclarator.
4393         (build_compound_literal): Add parameter non_const and build a
4394         C_MAYBE_COSNT_EXPR if applicable.
4395         (grokdeclarator): Take extra parameters expr and
4396         expr_const_operands.  Track expressions used in declaration
4397         specifiers and declarators.  Fold array sizes and track whether
4398         they are constant expressions and whether they are integer
4399         constant expressions.
4400         (parser_xref_tag): Set expr and expr_const_operands fields in
4401         return value.
4402         (grokfield): Update call to grokdeclarator.
4403         (start_function): Update call to grokdeclarator.
4404         (build_null_declspecs): Set expr and expr_const_operands fields in
4405         return value.
4406         (declspecs_add_type): Handle expressions in typeof specifiers.
4407         * c-parser.c (c_parser_declspecs): Set expr and
4408         expr_const_operands fields for declaration specifiers.
4409         (c_parser_enum_specifier): Likewise.
4410         (c_parser_struct_or_union_specifier): Likewise.
4411         (c_parser_typeof_specifier): Likewise.  Update call to
4412         groktypename.  Fold expression as needed.  Return expressions with
4413         type instead of adding statements.
4414         (c_parser_attributes): Update calls to c_parser_expr_list.
4415         (c_parser_statement_after_labels): Fold expression before passing
4416         to objc_build_throw_stmt.
4417         (c_parser_condition): Fold expression.
4418         (c_parser_asm_operands): Fold expression.
4419         (c_parser_conditional_expression): Use c_save_expr.  Update call
4420         to build_conditional_expr.
4421         (c_parser_alignof_expression): Update call to groktypename.
4422         (c_parser_postfix_expression): Preserve C_MAYBE_CONST_EXPR as
4423         original_code.  Fold expression argument of va_arg.  Create
4424         C_MAYBE_CONST_EXPR to preserve side effects of expressions in type
4425         argument to va_arg.  Update calls to groktypename.  Fold array
4426         index for offsetof.  Verify that first argument to
4427         __builtin_choose_expr has integer type.
4428         (c_parser_postfix_expression_after_paren_type): Update calls to
4429         groktypename and build_compound_literal.  Handle expressions with
4430         side effects in type name.
4431         (c_parser_postfix_expression_after_primary): Update call to
4432         c_parser_expr_list.  Set original_code for calls to
4433         __builtin_constant_p.
4434         (c_parser_expr_list): Take extra parameter fold_p.  Fold
4435         expressions if requested.
4436         (c_parser_objc_type_name): Update call to groktypename.
4437         (c_parser_objc_synchronized_statement): Fold expression.
4438         (c_parser_objc_receiver): Fold expression.
4439         (c_parser_objc_keywordexpr): Update call to c_parser_expr_list.
4440         (c_parser_omp_clause_num_threads, c_parser_omp_clause_schedule,
4441         c_parser_omp_atomic, c_parser_omp_for_loop): Fold expressions.
4442         * c-tree.h (CONSTRUCTOR_NON_CONST): Define.
4443         (struct c_typespec): Add elements expr and expr_const_operands.
4444         (struct c_declspecs): Add elements expr and expr_const_operands.
4445         (groktypename, build_conditional_expr, build_compound_literal):
4446         Update prototypes.
4447         (in_late_binary_op): Declare.
4448         * c-typeck.c (note_integer_operands): New function.
4449         (in_late_binary_op): New variable.
4450         (decl_constant_value_for_broken_optimization): Move to c-common.c
4451         and rename to decl_constant_value_for_optimization.
4452         (default_function_array_conversion): Do not strip nops.
4453         (default_conversion): Do not call
4454         decl_constant_value_for_broken_optimization.
4455         (build_array_ref): Do not fold result.
4456         (c_expr_sizeof_expr): Fold operand.  Use C_MAYBE_CONST_EXPR for
4457         result when operand is a VLA.
4458         (c_expr_sizeof_type): Update call to groktypename.  Handle
4459         expressions included in type name.  Use C_MAYBE_CONST_EXPR for
4460         result when operand names a VLA type.
4461         (build_function_call): Update call to build_compound_literal.
4462         Only fold result for calls to __builtin_* functions.  Strip
4463         NOP_EXPR from INTEGER_CST returned from such functions.  Fold
4464         the function designator.
4465         (convert_arguments): Fold arguments.  Update call to
4466         convert_for_assignment.
4467         (build_unary_op): Handle increment and decrement of
4468         C_MAYBE_CONST_EXPR.  Move lvalue checks for increment and
4469         decrement earlier.  Fold operand of increment and decrement.
4470         Handle address of C_MAYBE_CONST_EXPR.  Only fold expression being
4471         built for integer operand.  Wrap returns that are INTEGER_CSTs
4472         without being integer constant expressions or that have integer
4473         constant operands without being INTEGER_CSTs.
4474         (lvalue_p): Handle C_MAYBE_CONST_EXPR.
4475         (build_conditional_expr): Add operand ifexp_bcp.  Track whether
4476         result is an integer constant expression or can be used in
4477         unevaluated parts of one and avoid folding and wrap as
4478         appropriate.  Fold operands before possibly doing -Wsign-compare
4479         warnings.
4480         (build_compound_expr): Wrap result for C99 if operands can be used
4481         in integer constant expressions.
4482         (build_c_cast): Update call to digest_init.  Do not ignore
4483         overflow from casting floating-point constants to integers.  Wrap
4484         results that could be confused with integer constant expressions,
4485         null pointer constants or floating-point constants.
4486         (c_cast_expr): Update call to groktypename.  Handle expressions
4487         included in type name.
4488         (build_modify_expr): Handle modifying a C_MAYBE_CONST_EXPR.  Fold
4489         lhs inside possible SAVE_EXPR.  Fold RHS before assignment.
4490         Update calls to convert_for_assignment.
4491         (convert_for_assignment): Take new parameter
4492         null_pointer_constant.  Do not strip nops or call
4493         decl_constant_value_for_broken_optimization.  Set
4494         in_late_binary_op for conversions to boolean.
4495         (store_init_value): Update call to digest_init.
4496         (digest_init): Take new parameter null_pointer_constant.  Do not
4497         call decl_constant_value_for_broken_optimization.  pedwarn for
4498         initializers not constant expressions.  Update calls to
4499         convert_for_assignment.
4500         (constructor_nonconst): New.
4501         (struct constructor_stack): Add nonconst element.
4502         (really_start_incremental_init, push_init_level, pop_init_level):
4503         Handle constructor_nonconst and nonconst element.
4504         (set_init_index): Call constant_expression_warning for array
4505         designators.
4506         (output_init_element): Fold value.  Set constructor_nonconst as
4507         applicable.  pedwarn for initializers not constant expressions.
4508         Update call to digest_init.  Call constant_expression_warning
4509         where constant initializers are required.
4510         (process_init_element): Use c_save_expr.
4511         (c_finish_goto_ptr): Fold expression.
4512         (c_finish_return): Fold return value.  Update call to
4513         convert_for_assignment.
4514         (c_start_case): Fold switch expression.
4515         (c_process_expr_stmt): Fold expression.
4516         (c_finish_stmt_expr): Create C_MAYBE_CONST_EXPR as needed to
4517         ensure statement expression is not evaluated in constant expression.
4518         (build_binary_op): Track whether results are integer constant
4519         expressions or may occur in such, disable folding and wrap results
4520         as applicable.  Fold operands for -Wsign-compare warnings unless
4521         in_late_binary_op.
4522         (c_objc_common_truthvalue_conversion): Handle results folded to
4523         integer constants that are not integer constant expressions.
4524         * doc/extend.texi: Document when typeof operands are evaluated,
4525         that condition of __builtin_choose_expr is an integer constant
4526         expression, and more about use of __builtin_constant_p in
4527         initializers.
4528
4529 2009-03-29  Richard Guenther  <rguenther@suse.de>
4530
4531         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Properly
4532         propagate addresses of array references.
4533
4534 2009-03-29  Steven Bosscher  <steven@gcc.gnu.org>
4535
4536         * regmove.c (perhaps_ends_bb_p): Remove.
4537         (optimize_reg_copy_1): Don't call perhaps_ends_bb_p.  Get basic block
4538         from INSN and check that the main loop stays within that basic block.
4539         (optimize_reg_copy_1, optimize_reg_copy_3, fixup_match_2): Likewise.
4540         (regmove_forward_pass): Split out from regmove_optimize.  Use
4541         FOR_EACH_BB and FOR_BB_INSNS instead of traversing the insns stream.
4542         (regmove_backward_pass): Split out from regmove_optimize.  Use
4543         FOR_EACH_BB_REVERSE and FOR_BB_INSNS_REVERS_SAFE.
4544         (regmove_optimize): Simplify.
4545
4546 2009-03-29  H.J. Lu  <hongjiu.lu@intel.com>
4547
4548         PR target/39545
4549         * config/i386/i386.c (classify_argument): Ignore flexible array
4550         member in struct and warn ABI change.
4551
4552 2009-03-29  H.J. Lu  <hongjiu.lu@intel.com>
4553
4554         * config/i386/i386-protos.h (ix86_agi_dependent): New.
4555
4556         * config/i386/i386.c (ix86_agi_dependent): Rewrite.
4557         (ix86_adjust_cost): Updated.
4558
4559 2009-03-29  Jan Hubicka  <jh@suse.cz>
4560
4561         PR middle-end/28850
4562         * tree-pass.h (pass_cleanup_eh): New function.
4563         (remove_unreachable_regions): Break code handling RTL
4564         to rtl_remove_unreachable_regions; remove ERT_MUST_NOT_THROW
4565         that can not be reached by runtime.
4566         (can_be_reached_by_runtime): New function.
4567         (label_to_region_map): New function.
4568         (num_eh_regions): New function.
4569         (rtl_remove_unreachable_regions): New function.
4570         (convert_from_eh_region_ranges): Call rtl_remove_unreachable_regions.
4571         (remove_eh_region): New function.
4572         * except.h: Include sbitmap and vecprim.
4573         (remove_eh_region, remove_unreachable_regions, label_to_region_map,
4574         num_eh_regions): Declare.
4575         * passes.c (init_optimization_passes): Schedule cleanup_eh.
4576         * Makefile.in (EXCEPT_H): New; replace all uses of except.h by it.
4577         * tree-eh.c (tree_remove_unreachable_handlers): New function.
4578         (tree_empty_eh_handler_p): New function.
4579         (cleanup_empty_eh): New function.
4580         (cleanup_eh): New function.
4581         (pass_cleanup_eh): New function.
4582
4583 2009-03-29  Jan Hubicka  <jh@suse.cz>
4584
4585         * except.c (verify_eh_tree): Fix handling of fun!=cfun; be ready
4586         for removed regions.
4587
4588 2009-03-29  Jan Hubicka  <jh@suse.cz>
4589
4590         * except.c (dump_eh_tree): Dump all datastructures.
4591
4592 2009-03-29  Jan Hubicka  <jh@suse.cz>
4593
4594         * except.c (duplicate_eh_regions_0): Handle AKA bitmap.
4595         (duplicate_eh_regions_1): Likewise.
4596         (duplicate_eh_regions): Likewise; cleanup code gorwing the region
4597         vector; call EH verification.
4598         (foreach_reachable_handler, can_throw_internal_1, can_throw_external_1):
4599         Be ready for region being removed.
4600
4601 2009-03-29  Jan Hubicka  <jh@suse.cz>
4602
4603         * bitmap.c (bitmap_last_set_bit): New function.
4604         * bitmap.h (bitmap_last_set_bit): Declare.
4605
4606 2009-03-29  David Ayers  <ayers@fsfe.org>
4607
4608         PR objc/27377
4609         * c-typeck.c (build_conditional_expr): Emit ObjC warnings
4610         by calling objc_compare_types and surpress warnings about
4611         incompatible C pointers that are compatible ObjC pointers.
4612
4613 2009-03-29  Adam Nemet  <anemet@caviumnetworks.com>
4614
4615         * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Don't
4616         call initialize_inline_failed.
4617         (initialize_inline_failed): Move it from here ...
4618         * cgraph.c (initialize_inline_failed): ... to here.
4619         (cgraph_create_edge): Call initialize_inline_failed rather than
4620         setting inline_failed directly.
4621
4622 2009-03-29  Ben Elliston  <bje@au.ibm.com>
4623
4624         PR target/32542
4625         * sysv4.opt (msdata): Improve comment.
4626         * linux64.h (ASM_SPEC32): Do not pass -memb when -msdata is given.
4627         * sysv4.h (SVR4_ASM_SPEC): Likewise.
4628
4629 2009-03-29  Ben Elliston  <bje@au.ibm.com>
4630
4631         PR target/30451
4632         * config/rs6000/rs6000.md (*movti_ppc64): Correct the order of
4633         load and store attributes.
4634
4635 2009-03-29  Ben Elliston  <bje@au.ibm.com>
4636
4637         * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_HUGE_VALQ.
4638         (ix86_init_builtins): Add built-in function __builtin_huge_valq.
4639         (ix86_expand_builtin): Handle IX86_BUILTIN_HUGE_VALQ.
4640         * doc/extend.texi (X86 Built-in Functions): Add index entries for
4641         __builtin_infq and __builtin_huge_valq.
4642
4643 2009-03-28  Anatoly Sokolov  <aesok@post.ru>
4644
4645         * config/avr/avr.c (avr_mcu_t): Add atmega8c1, atmega16c1 and
4646         atmega8m1 devices.
4647         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
4648         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.)
4649
4650 2009-03-28  Xinliang David Li  <davidxl@google.com>
4651
4652         * tree-ssa-ccp.c (ccp_finalize): Add dbg_count support.
4653         (do_dbg_cnt): New function.
4654
4655 2009-03-28  Jan Hubicka  <jh@suse.cz>
4656
4657         Merge from pretty-ipa:
4658
4659         2009-03-27  Jan Hubicka  <jh@suse.cz>
4660
4661         * cgraph.c (dump_cgraph_node): Add replace output flag by process.
4662         * tree-pass.h (function_called_by_processed_nodes_p): Declare.
4663         * passes.c (function_called_by_processed_nodes_p): New.
4664         * ipa-pure-const.c (check_call): Fix handling of operands.
4665         (analyze_function): Dump debug output for skipped bodies.
4666         (local_pure_const): Use function_called_by_processed_nodes_p.
4667         * dwarf2out.c (reference_to_unused): Use output.
4668         * passes.c (do_per_function_toporder): Likewise.
4669
4670         2008-11-12  Jan Hubicka  <jh@suse.cz>
4671
4672         * tree-pass.h (pass_fixup_cfg, pass_local_pure_const): Declare.
4673         * ipa-pure-const.c (funct_state_d): Add can throw field; make
4674         state_set_in_source enum
4675         (check_decl): Ignore memory tags; do not set fake looping flags;
4676         dump diagnostics.
4677         (check_operand, check_tree, check_rhs_var, check_lhs_var,
4678         get_asm_expr_operands, scan_function_op, scan_function_stmt): Remove.
4679         (check_call, analyze_function): Rewrite.
4680         (check_stmt): New.
4681         (add_new_function): Update call of analyze_function.
4682         (generate_summary): Add call of analyze_function.
4683         (propagate): Propagate can_throw; handle state_set_in_source correctly.
4684         (local_pure_const): New function.
4685         (pass_local_pure_const): New pass.
4686         * ipa-inline.c (inline_transform): Set after_inlining.
4687         * tree-eh.c (stmt_can_throw_external): New.
4688         * tree-optimize.c (execute_fixup_cfg): Do not set after_inlining;
4689         work with aliasing built.
4690         * tree-flow.h (stmt_can_throw_external): New.
4691         * passes.c (init_optimization_passes): Schedule fixup_cfg pass early;
4692         and local pure/const pass in early and late optimization queue.
4693
4694 2009-03-28  Martin Jambor  <mjambor@suse.cz>
4695
4696         * fold-const.c (get_pointer_modulus_and_residue): New parameter
4697         allow_func_align.
4698         (fold_binary): Allow function decl aligment consideration is the
4699         second argument is integer constant one.
4700         * tree-ssa-forwprop.c (simplify_bitwise_and): New function.
4701         (tree_ssa_forward_propagate_single_use_vars): Handle assing statements
4702         with BIT_AND_EXPR on the RHS by calling simplify_bitwise_and.
4703
4704 2009-03-28  Jan Hubicka  <jh@suse.cz>
4705
4706         * dwarf2out.c (dwarf2out_begin_prologue): Use crtl->nothrow
4707         * tree-eh.c (stmt_could_throw_p): Remove check for WEAK decls.
4708         * function.h (rtl_data): Add nothrow flag.
4709         * except.c (set_nothrow_function_flags): Use crtl->nothrow;
4710         set DECL_NOTHROW for AVAILABLE functions.
4711
4712 2009-03-28  Jakub Jelinek  <jakub@redhat.com>
4713
4714         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If macro
4715         following vector keyword has expansion starting with pixel or bool
4716         keyword, expand vector to __vector and pixel or bool to __pixel or
4717         __bool.
4718
4719         PR c++/39554
4720         * opts.c (warning_disallowed_functions, warn_disallowed_functions,
4721         warn_if_disallowed_function_p): Removed.
4722         (common_handle_option): Don't handle OPT_Wdisallowed_function_list_.
4723         * c-parser.c (c_parser_postfix_expression_after_primary): Don't call
4724         warning_if_disallowed_function_p.
4725         * flags.h (warn_if_disallowed_function_p,
4726         warn_disallowed_functions): Removed.
4727         * common.opt (Wdisallowed-function-list=): Removed.
4728         * doc/invoke.texi (-Wdisallowed-function-list=): Removed.
4729
4730 2009-03-28  Richard Guenther  <rguenther@suse.de>
4731
4732         PR tree-optimization/38723
4733         * tree-ssa-pre.c (compute_avail): Add all default definitions to
4734         the entry block.
4735
4736 2009-03-28  Jan Hubicka  <jh@suse.cz>
4737
4738         * tree-ssa-structalias.c (ipa_pta_execute): Fix bogus node->analyzed
4739         test introduced by my previous patch.
4740
4741 2009-03-28  Richard Guenther  <rguenther@suse.de>
4742
4743         * tree-ssa-copy.c (copy_prop_visit_phi_node): Do not leave
4744         the PHIs value undefined.
4745
4746 2009-03-28  Jan Hubicka  <jh@suse.cz>
4747
4748         * tree-pass.h (pass_fixup_cfg): New pass.
4749         * ipa-inline.c (inline_transform): Set
4750         always_inline_functions_inlined/after_inlining.
4751         * tree-optimize.c (execute_fixup_cfg): Do not set them here.
4752         (pass_fixup_cfg): New pass.
4753         * passes.c (init_optimization_passes): Add fixup_cfg.
4754
4755 2009-03-28  Richard Guenther  <rguenther@suse.de>
4756
4757         PR tree-optimization/38458
4758         * tree-ssa-copy.c (copy_prop_visit_phi_node): For the first
4759         argument use the arguments copy-of value.
4760
4761 2009-03-28  Richard Guenther  <rguenther@suse.de>
4762
4763         PR tree-optimization/38180
4764         * tree-ssa-ccp.c (get_default_value): Simplify.
4765         (likely_value): Likewise.
4766         (surely_varying_stmt_p): Properly handle VOP case.
4767         (ccp_initialize): Likewise.
4768         (ccp_fold): Handle propagating through *&.
4769         (fold_const_aggregate_ref): Also handle decls.
4770
4771 2009-03-28  Jan Hubicka  <jh@suse.cz>
4772
4773         * cgraph.c (dump_cgraph_node): Add replace output flag by process.
4774         * cgraph.h (cgraph_node): Likewise.
4775         * cgraphunit.c (cgraph_process_new_functions): Set process flag.
4776         (cgraph_reset_node): Use process flag.
4777         (cgraph_mark_functions_to_output): Likewise.
4778         (cgraph_expand_function): Likewise.
4779         (cgraph_expand_all_functions): Likewise.
4780         (cgraph_output_in_order): Likewise.
4781         * dwarf2out.c (reference_to_unused): Likewise.
4782         * passes.c do_per_function_toporder): Likewise.
4783
4784 2009-03-28  Jan Hubicka  <jh@suse.cz>
4785
4786         Bring from lto-branch:
4787
4788         2008-09-03  Doug Kwan  <dougkwan@google.com>
4789
4790         * cgraphbuild.c (initialize_inline_failed): Use cgraph_inline_failed_t
4791         enums instead of reason strings.
4792         * cgraph.c (cgraph_create_edge): Same.
4793         (cgraph_inline_failed_string): New function.
4794         * cgraph.h (cgraph_inline_failed_t): New enum type.
4795         (cgraph_inline_failed_string): New prototype.
4796         (struct cgraph_edge): Change type of INLINED_FAILED from constant
4797         char pointer to cgraph_inline_failed_t.
4798         (cgraph_inline_p): Adjust prototype to use cgraph_inline_failed_t.
4799         (cgraph_default_inline_p): Ditto.
4800         * gcc/cgraphunit.c (cgraph_inline_p): Change type of parameter REASON
4801         to cgraph_inline_failed_t pointer.
4802         * cif-code.def: New file.
4803         * ipa-inline.c (cgraph_mark_inline_edge): Use an enum instead of a
4804         reason string.
4805         (cgraph_check_inline_limits): Change type of REASON to pointer to
4806         cgraph_inline_failed_t.  Replace reason strings with enums.
4807         (cgraph_default_inline_p): Ditto.
4808         (cgraph_recursive_inlining_p): Ditto.
4809         (update_caller_keys): Change type of FAILED_REASON to
4810         cgraph_inline_failed_t.
4811         (cgraph_set_inline_failed): Change type of REASON to pointer to
4812         cgraph_inline_failed_t.  Call cgraph_inline_failed_string to
4813         convert enums to strings for text output.
4814         (cgraph_decide_inlining_of_small_function): Change FAILED_REASON
4815         to be of type cgraph_inline_failed_t.  Replace reason strings with
4816         enums.  Call cgraph_inline_failed_string to covert enums
4817         to strings for text output.
4818         (cgraph_decide_inlining): Replace reason strings with enums.
4819         (cgraph_decide_inlining_incrementally): Change type of FAILED_REASON
4820         to cgraph_inline_failed_t type.  Call cgraph_inline_failed_string
4821         for text output.
4822         * tree-inline.c (expand_call_inline): Change type of REASON
4823         to cgraph_inline_failed_t.  Replace reason strings with enums.
4824         Call cgraph_inline_failed_string for text output.
4825         * Makefile.in (CGRAPH_H): Add cif-code.def to dependencies.
4826         (cgraph.o): Ditto.
4827
4828 2009-03-28  Jan Hubicka  <jh@suse.cz>
4829
4830         * cgraph.c (cgraph_node, cgraph_remove_node, dump_cgraph_node,
4831         cgraph_clone_node): Remove master clone handling.
4832         (cgraph_is_master_clone, cgraph_master_clone): Remove.
4833         * cgraph.h (master_clone): Remove.
4834         (cgraph_is_master_clone, cgraph_master_clone): Remove.
4835         * ipa-type-escape.c (type_escape_execute): Remove use of master clone.
4836         (tree-ssa-structalias.c (ipa_pta_execute): Likewise.
4837
4838 2009-03-28  Jan Hubicka  <jh@suse.cz>
4839
4840         * cgraph.c (cgraph_function_body_availability): Functions declared
4841         inline are always safe to assume that it is not going to be replaced.
4842
4843 2009-03-28  Richard Guenther  <rguenther@suse.de>
4844
4845         PR tree-optimization/38513
4846         * tree-ssa-pre.c (eliminate): Remove redundant stores.
4847         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
4848         EXC_PTR_EXPR and FILTER_EXPR.
4849         (get_ref_from_reference_ops): Likewise.
4850
4851 2009-03-28  Richard Guenther  <rguenther@suse.de>
4852
4853         PR tree-optimization/38968
4854         * tree-vect-analyze.c (vect_compute_data_ref_alignment):
4855         Use FLOOR_MOD_EXPR to compute misalignment.
4856
4857 2009-03-28  Richard Guenther  <rguenther@suse.de>
4858
4859         PR tree-optimization/37795
4860         * tree.h (combine_comparisons): Declare.
4861         * fold-const.c (combine_comparisons): Export.
4862         * tree-ssa-ifcombine.c (ifcombine_ifandif): Optimize two successive
4863         comparisons.
4864         (ifcombine_iforif): Use combine_comparisons.
4865
4866 2009-03-28  Jan Hubicka  <jh@suse.cz>
4867
4868         * tree-eh.c (inlinable_call_p): New function.
4869         (make_eh_edges): Use it.
4870         (verify_eh_edges): Use it.
4871         (stmt_can_throw_external, stmt_can_throw_internal): Use it.
4872         * except.c (reachable_next_level): Add inlinable_function argument
4873         (sjlj_find_directly_reachable_regions): Update.
4874         (add_reachable_handler): Do not set saw_any_handlers.
4875         (reachable_next_level): Handle MUST_NOT_THROW more curefully.
4876         (foreach_reachable_handler, can_throw_internal_1, can_throw_external_1):
4877         Add new inlinable call parameter.
4878         (can_throw_internal, can_throw_external): Update.
4879         * except.h (can_throw_internal_1, can_throw_external_1,
4880         foreach_reachable_handler): Update declaration.
4881
4882 2009-03-28  Joseph Myers  <joseph@codesourcery.com>
4883
4884         * config/arm/t-arm-coff, config/h8300/coff.h,
4885         config/i386/i386-aout.h, config/i386/i386-coff.h,
4886         config/libgloss.h, config/m68k/coff.h, config/m68k/m68k-aout.h,
4887         config/pdp11/2bsd.h, config/rs6000/aix41.h,
4888         config/rs6000/aix41.opt, config/rs6000/t-newas, config/sh/coff.h,
4889         fix-header.c, fixproto, gen-protos.c, protoize.c, scan-decls.c,
4890         scan-types.sh, scan.c, scan.h, sort-protos, sys-protos.h,
4891         sys-types.h: Remove.
4892         * Makefile.in: Remove protoize and fixproto support and references
4893         in comments.
4894         (SYSCALLS.c.X-warn, TARGET_GETGROUPS_T, STMP_FIXPROTO,
4895         PROTOIZE_INSTALL_NAME, UNPROTOIZE_INSTALL_NAME, FIXPROTO_DEFINES):
4896         Remove.
4897         (ALL_HOST_OBJS): Remove $(PROTO_OBJS).
4898         (MOSTLYCLEANFILES): Remove protoize$(exeext) and
4899         unprotoize$(exeext).
4900         (rest.encap): Don't depend on $(STMP_FIXPROTO)
4901         (.PHONY): Don't depend on proto.
4902         (libgcc-support): Don't depend on $(STMP_FIXPROTO).
4903         (proto, PROTO_OBJS, protoize$(exeext), unprotoize$(exeext),
4904         protoize.o, unprotoize.o, SYSCALLS.c.X, test-protoize-simple,
4905         deduced.h, GEN_PROTOS_OBJS, build/gen-protos$(build_exeext),
4906         build/gen-protos.o, build/scan.o, xsys-protos.h,
4907         build/fix-header$(build_exeext), build/fix-header.o,
4908         build/scan-decls.o, fixhdr.ready, stmp-fixproto,
4909         stmp-install-fixproto): Remove.
4910         (mostlyclean): Don't remove xsys-protos.hT, SYSCALLS.c.X,
4911         SYSCALLS.c or fixproto files.
4912         (install-common): Don't install protoize.
4913         (install-headers-tar, install-headers-cpio, install-headers-cp):
4914         Don't depend on $(STMP_FIXPROTO).
4915         (install-mkheaders): Don't depend on $(STMP_FIXPROTO).  Don't
4916         install fixproto files or write out fixproto settings.
4917         (uninstall): Don't uninstall protoize.
4918         * config.gcc (use_fixproto): Remove.
4919         (arm-*-coff*, armel-*-coff*, h8300-*-*, i[34567]86-*-aout*,
4920         i[34567]86-*-coff*, m68k-*-aout*, m68k-*-coff*, pdp11-*-bsd,
4921         rs6000-ibm-aix4.[12]*, powerpc-ibm-aix4.[12]*, sh-*-*): Remove.
4922         * config/m32r/t-linux (STMP_FIXPROTO): Remove.
4923         * config/m68k/m68k.c: Remove M68K_TARGET_COFF-conditional code.
4924         * config/mips/t-iris (FIXPROTO_DEFINES): Remove.
4925         * config/pa/t-pa-hpux (FIXPROTO_DEFINES): Remove.
4926         * config/pdp11/pdp11.c: Remove TWO_BSD-conditional code.
4927         * config/t-svr4 (FIXPROTO_DEFINES): Remove.
4928         * config/t-vxworks (STMP_FIXPROTO): Remove.
4929         * configure.ac (AC_TYPE_GETGROUPS, TARGET_GETGROUPS_T,
4930         STMP_FIXPROTO): Remove.
4931         * config.in, configure: Regenerate.
4932         * crtstuff.c (gid_t, uid_t): Don't undefine.
4933         * doc/install.texi: Change m68k-coff to m68k-elf in example.
4934         (arm-*-coff, arm-*-aout: Remove target entries.
4935         (*-ibm-aix*): Mention removal of support for AIX 4.2 and older.
4936         Remove mention of AIX 4.1.
4937         (m68k-*-*): Remove mention of m68k-*-aout and m68k-*-coff*.
4938         * doc/invoke.texi (Running Protoize): Remove.
4939         * doc/trouble.texi (Actual Bugs): Remove mention of fixproto.
4940         (Protoize Caveats): Remove.
4941         * tsystem.h: Update comments on headers assumed to exist.
4942
4943 2009-03-27  Vladimir Makarov  <vmakarov@redhat.com>
4944
4945         * genautomata.c: Add a new year to the copyright.  Add a new
4946         reference.
4947         (struct insn_reserv_decl): Add comments for member bypass_list.
4948         (find_bypass): Remove.
4949         (insert_bypass): New.
4950         (process_decls): Use insert_bypass.
4951         (output_internal_insn_latency_func): Output all bypasses with the
4952         same input insn in one switch case.
4953
4954         * rtl.def (define_bypass): Describe bypass choice.
4955         * doc/md.texi (define_bypass): Ditto.
4956
4957 2009-03-27  Richard Guenther  <rguenther@suse.de>
4958
4959         * gimplify.c (mark_addressable): Export.
4960         * tree-flow.h (mark_addressable): Declare.
4961         * tree-ssa-loop-manip.c (create_iv): Mark the base addressable.
4962         * tree-ssa.c (verify_phi_args): Verify that address taken
4963         variables have TREE_ADDRESSABLE set.
4964
4965 2009-03-27  Richard Guenther  <rguenther@suse.de>
4966
4967         * fold-const.c (build_fold_addr_expr_with_type_1): Rename back to ...
4968         (build_fold_addr_expr_with_type): ... this.  Remove in_fold handling.
4969         Do not mark decls TREE_ADDRESSABLE.
4970         (build_fold_addr_expr): Adjust.
4971         (fold_addr_expr): Remove.
4972         (fold_unary): Use build_fold_addr_expr.
4973         (fold_comparison): Likewise.
4974         (split_address_to_core_and_offset): Likewise.
4975         * coverage.c (tree_coverage_counter_addr): Mark the array decl
4976         TREE_ADDRESSABLE.
4977         * gimplify.c (mark_addressable): Do not exclude RESULT_DECLs.
4978         (gimplify_modify_expr_to_memcpy): Mark source and destination
4979         addressable.
4980         * omp-low.c (create_omp_child_function): Mark the object decl
4981         TREE_ADDRESSABLE.
4982         (lower_rec_input_clauses): Mark the var we take the address of
4983         TREE_ADDRESSABLE.
4984         (lower_omp_taskreg): Mark the sender decl TREE_ADDRESSABLE.
4985
4986 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
4987
4988         PR middle-end/39315
4989         * cfgexpand.c (expand_one_stack_var_at): Change alignment
4990         limit to MAX_SUPPORTED_STACK_ALIGNMENT.
4991
4992 2009-03-27  Richard Guenther  <rguenther@suse.de>
4993
4994         PR tree-optimization/39120
4995         * tree-ssa-structalias.c (handle_rhs_call): Fill out return
4996         constraints.
4997         (handle_lhs_call): Process return constraints.  Add escape
4998         constraints if necessary.
4999         (handle_const_call): Fill out return constraints.  Make nested
5000         case more precise.  Avoid consttmp if possible.
5001         (handle_pure_call): Fill out return constraints.  Avoid
5002         callused if possible.
5003         (find_func_aliases): Simplify call handling.
5004
5005 2009-03-27  Richard Guenther  <rguenther@suse.de>
5006
5007         PR tree-optimization/39120
5008         * tree-ssa-structalias.c (do_sd_constraint): Do not use CALLUSED
5009         as a representative.
5010         (solve_graph): Do propagate CALLUSED.
5011         (handle_pure_call): Use a scalar constraint from CALLUSED for
5012         the return value.
5013         (find_what_p_points_to): CALLUSED shall not appear in poins-to
5014         solutions.
5015
5016 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
5017
5018         PR c/39323
5019         * c-common.c (handle_aligned_attribute): Properly check alignment
5020         overflow.  Use (1U << i) instead of (1 << i).
5021
5022         * emit-rtl.c (get_mem_align_offset): Use "unsigned int" for align.
5023
5024         * expr.h (get_mem_align_offset): Updated.
5025
5026         * tree.h (tree_decl_common): Change align to "unsigned int" and
5027         move it before pointer_alias_set.
5028
5029 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
5030             Jakub Jelinek  <jakub@redhat.com>
5031
5032         PR target/38034
5033         * config/ia64/sync.md (cmpxchg_rel_<mode>): Replace input
5034         gr_register_operand with gr_reg_or_0_operand.
5035         (cmpxchg_rel_di): Likewise.
5036         (sync_lock_test_and_set<mode>): Likewise.
5037
5038 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
5039
5040         * jump.c (rtx_renumbered_equal_p): Use subreg_get_info.
5041         (true_regnum): Likewise.
5042
5043         * rtlanal.c (subreg_info): Moved to ...
5044         * rtl.h (subreg_info): Here.  New.
5045         (subreg_get_info): New.
5046
5047         * rtlanal.c (subreg_get_info): Make it extern.
5048
5049 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
5050
5051         PR target/39472
5052         * config/i386/i386.c (ix86_abi): New.
5053         (override_options): Handle -mabi=.
5054         (ix86_function_arg_regno_p): Replace DEFAULT_ABI with ix86_abi.
5055         (ix86_call_abi_override): Likewise.
5056         (init_cumulative_args): Likewise.
5057         (function_arg_advance): Likewise.
5058         (function_arg_64): Likewise.
5059         (function_arg): Likewise.
5060         (ix86_pass_by_reference): Likewise.
5061         (ix86_function_value_regno_p): Likewise.
5062         (ix86_build_builtin_va_list_abi): Likewise.
5063         (setup_incoming_varargs_64): Likewise.
5064         (is_va_list_char_pointer): Likewise.
5065         (ix86_init_machine_status): Likewise.
5066         (ix86_reg_parm_stack_space): Use enum calling_abi on call_abi.
5067         (ix86_function_type_abi): Return enum calling_abi.  Rewrite
5068         for 64bit.  Replace DEFAULT_ABI with ix86_abi.
5069         (ix86_function_abi): Make it static and return enum calling_abi.
5070         (ix86_cfun_abi): Return enum calling_abi.  Replace DEFAULT_ABI
5071         with ix86_abi.
5072         (ix86_fn_abi_va_list): Updated.
5073
5074         * config/i386/i386.h (ix86_abi): New.
5075         (STACK_BOUNDARY): Replace DEFAULT_ABI with ix86_abi.
5076         (CONDITIONAL_REGISTER_USAGE): Likewise.
5077         (CUMULATIVE_ARGS): Change call_abi type to enum calling_abi.
5078         (machine_function): Likewise.
5079
5080         * config/i386/i386.md (untyped_call): Replace DEFAULT_ABI
5081         with ix86_abi.
5082         * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Likewise.
5083         (STACK_BOUNDARY): Likewise.
5084         * config/i386/mingw32.h (EXTRA_OS_CPP_BUILTINS): Likewise.
5085
5086         * config/i386/i386.opt (mabi=): New.
5087
5088         * config/i386/i386-protos.h (ix86_cfun_abi): Changed to
5089         return enum calling_abi.
5090         (ix86_function_type_abi): Likewise.
5091         (ix86_function_abi): Removed.
5092
5093         * doc/invoke.texi: Document -mabi= option for x86.
5094
5095 2009-03-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5096
5097         * builtins.c (real_dconstp): Delete.
5098         (fold_builtin_logarithm): Remove inaccurate log(e) special case.
5099
5100 2009-03-27  Dodji Seketeli  <dodji@redhat.com>
5101             Jakub Jelinek  <jakub@redhat.com>
5102
5103         PR debug/37959
5104         * dwarf2out.c (dwarf_attr_name): Handle DW_AT_explicit attribute.
5105         (gen_subprogram_die): When a function is explicit, generate the
5106         DW_AT_explicit attribute.
5107         * langhooks.h (struct lang_hooks_for_decls): Add
5108         function_decl_explicit_p langhook.
5109         * langhooks-def.h (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P): Define.
5110         (LANG_HOOKS_DECLS): Add LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P.
5111
5112 2009-03-27  Jakub Jelinek  <jakub@redhat.com>
5113
5114         * builtins.c (fold_builtin_memory_op): Optimize memmove
5115         into memcpy if we can prove source and destination don't overlap.
5116
5117         * tree-inline.c: Include gt-tree-inline.h.
5118         (clone_fn_id_num): New variable.
5119         (clone_function_name): New function.
5120         (tree_function_versioning): Use it.
5121         * Makefile.in (GTFILES): Add tree-inline.c.
5122
5123 2009-03-27  Mark Mitchell  <mark@codesourcery.com>
5124
5125         * BASE-VER: Change to 4.5.0.
5126
5127 2009-03-27  Xinliang David Li  <davidxl@google.com>
5128
5129         PR tree-optimization/39557
5130         * tree-ssa.c (warn_uninitialized_vars): free postdom info.
5131
5132 2009-03-27  Xinliang David Li  <davidxl@google.com>
5133
5134         PR tree-optimization/39548
5135         * tree-ssa-copy.c (copy_prop_visit_phi_node): Add copy
5136         candidate check.
5137
5138 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
5139
5140         * c-common.c (pointer_int_sum): Use %wd on return from
5141         tree_low_cst.
5142
5143 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
5144
5145         * c-common.c (pointer_int_sum): Use HOST_WIDE_INT_PRINT_DEC
5146         on return from tree_low_cst.
5147
5148 2009-03-27  Andrew Pinski  <andrew_pinski@playstation.sony.com>
5149
5150         PR c++/36799
5151         * ginclude/stdarg.h (va_copy): Define also for
5152         __GXX_EXPERIMENTAL_CXX0X__.
5153
5154 2009-03-27  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
5155
5156         PR c++/35652
5157         * builtins.h (c_strlen): Do not warn here.
5158         * c-typeck.c (build_binary_op): Adjust calls to pointer_int_sum.
5159         * c-common.c (pointer_int_sum): Take an explicit location.
5160         Warn about offsets out of bounds.
5161         * c-common.h (pointer_int_sum): Adjust declaration.
5162
5163 2009-03-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5164
5165         * doc/invoke.texi (i386 and x86-64 Windows Options): Fix texinfo
5166         markup glitch.
5167
5168 2009-03-26  Jakub Jelinek  <jakub@redhat.com>
5169
5170         PR c++/39554
5171         * opts.c (warn_if_disallowed_function_p): Don't assume
5172         get_callee_fndecl must return non-NULL.
5173
5174 2009-03-26  Vladimir Makarov  <vmakarov@redhat.com>
5175
5176         PR rtl-optimization/39522
5177         * reload1.c (reload_as_needed): Invalidate reg_last_reload_reg too
5178         when reg_reloaded_valid is set.
5179
5180 2009-03-26  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5181
5182         * config/spu/divv2df3.c: New file.
5183         * config/spu/t-spu-elf (LIB2FUNCS_STATIC_EXTRA): Add it.
5184         (DPBIT_FUNCS): Filter out _div_df.
5185
5186 2009-03-26  Bernd Schmidt  <bernd.schmidt@analog.com>
5187
5188         * config/bfin/bfin.c (bfin_optimize_loop): If the LSETUP goes before
5189         a jump insn, count that jump in the distance to the loop start.
5190
5191 2009-03-25  Kaz Kojima  <kkojima@gcc.gnu.org>
5192
5193         PR target/39523
5194         * config/sh/sh.c (calc_live_regs): Fix condition for global
5195         registers except PIC_OFFSET_TABLE_REGNUM.
5196
5197 2009-03-25  Kai Tietz  <kai.tietz@onevision.com>
5198
5199         PR/39518
5200         * doc/invoke.texi (-mconsole): New.
5201         (-mcygwin): New.
5202         (-mno-cygwin): New.
5203         (-mdll): New.
5204         (-mnop-fun-dllimport): New.
5205         (-mthread): New.
5206         (-mwin32): New.
5207         (-mwindows): New.
5208         (sub section "i386 and x86-64 Windows Options"): New.
5209
5210 2009-03-25  Ralf Corsépius <ralf.corsepius@rtems.org>
5211
5212         * config/arm/rtems-elf.h: Remove LINK_GCC_C_SEQUENCE_SPEC.
5213         * config/rs6000/t-rtems: Remove MULTILIB_EXTRA_OPTS.
5214
5215 2009-03-25  Richard Guenther  <rguenther@suse.de>
5216
5217         PR middle-end/39497
5218         * Makefile.in (dfp.o-warn): Use -fno-strict-aliasing instead
5219         of -Wno-error.
5220
5221 2009-03-25  Andrey Belevantsev  <abel@ispras.ru>
5222
5223         * config/ia64/ia64.c (ia64_set_sched_flags): Zero spec_info->mask when
5224         neither of haifa/selective schedulers are working.
5225
5226 2009-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5227
5228         * doc/invoke.texi (Debugging Options): Fix description of
5229         -fno-merge-debug-strings.
5230
5231 2009-03-24  Hans-Peter Nilsson  <hp@axis.com>
5232
5233         * config/cris/libgcc.ver: New version-script.
5234         * config/cris/t-linux (SHLIB_MAPFILES): Use it.
5235
5236         * configure.ac <GAS features, nop mnemonic>: Add pattern
5237         crisv32-*-* for "nop".
5238         <GAS features, Thread-local storage>: Add item for CRIS and CRIS v32.
5239         * configure: Regenerate.
5240
5241 2009-03-24  Ira Rosen  <irar@il.ibm.com>
5242
5243         PR tree-optimization/39529
5244         * tree-vect-transform.c (vect_create_data_ref_ptr): Call
5245         mark_sym_for_renaming for the tag copied to the new vector
5246         pointer.
5247
5248 2009-03-24  Arthur Loiret  <aloiret@debian.org>
5249
5250         * config.host (alpha*-*-linux*): Use driver-alpha.o and alpha/x-alpha.
5251         * config/alpha/linux.h (host_detect_local_cpu): Declare, add to
5252         EXTRA_SPEC_FUNCTIONS.
5253         (MCPU_MTUNE_NATIVE_SPECS, DRIVER_SELF_SPECS): New macros.
5254         * config/alpha/driver-alpha.c, config/alpha/x-alpha: New.
5255         * doc/invoke.texi (DEC Alpha Options): Document 'native' value for
5256         -march and -mtune options.
5257
5258 2009-03-24  Ralf Corsépius <ralf.corsepius@rtems.org>
5259
5260         * config/m68k/t-rtems: Add m5329 multilib.
5261
5262 2009-03-24  Dodji Seketeli  <dodji@redhat.com>
5263             Jakub Jelinek  <jakub@redhat.com>
5264
5265         PR debug/39524
5266         * dwarf2out.c (gen_variable_die): Avoid adding duplicate declaration
5267         nodes.
5268
5269 2009-03-23  Jakub Jelinek  <jakub@redhat.com>
5270
5271         PR c/39495
5272         * c-parser.c (c_parser_omp_for_loop): Call c_parser_binary_expression
5273         instead of c_parser_expression_conv, if original_code isn't one of the
5274         4 allowed comparison codes, fail.
5275
5276 2009-03-23  Richard Guenther  <rguenther@suse.de>
5277
5278         * cgraph.h (struct cgraph_node): Reorder fields for 64-bit hosts.
5279         * tree.h (struct tree_type): Likewise.
5280         * reload.h (struct insn_chain): Likewise.
5281         * dwarf2out.c (struct dw_loc_descr_struct): Likewise.
5282         * function.h (struct function): Likewise.
5283         * tree-ssa-structalias.c (struct equiv_class_label): Likewise.
5284
5285 2009-03-23  Jakub Jelinek  <jakub@redhat.com>
5286
5287         PR tree-optimization/39516
5288         * lambda-code.c (perfect_nestify): Fix type of the uboundvar variable.
5289
5290 2009-03-23 Bingfeng Mei  <bmei@broadcom.com>
5291
5292         * config.gcc (need_64bit_hwint): Make clear that need_64bit_hwint
5293         should be set true if BITS_PER_WORD of target is bigger than 32
5294
5295 2009-03-22  Hans-Peter Nilsson  <hp@axis.com>
5296
5297         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC):
5298         Translate -B-options to -rpath-link.  Correct existing
5299         rpath-link and conditionalize on !nostdlib.
5300
5301 2009-03-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5302
5303         * doc/extend.texi (Function Attributes, Variable Attributes):
5304         Fix typos.
5305         * doc/invoke.texi (Debugging Options, Optimize Options)
5306         (i386 and x86-64 Options, MCore Options): Likewise.
5307
5308 2009-03-20  Jakub Jelinek  <jakub@redhat.com>
5309
5310         PR debug/37890
5311         * dwarf2out.c (gen_namespace_die): Add context_die argument and use
5312         it for block local namespace aliases.
5313         (gen_decl_die): Pass context_die to gen_namespace_die.
5314
5315 2009-03-19  Jakub Jelinek  <jakub@redhat.com>
5316
5317         PR c/39495
5318         * c-omp.c (c_finish_omp_for): Allow NE_EXPR with TREE_TYPE (decl)'s
5319         minimum or maximum value.
5320
5321 2009-03-19  Alexandre Oliva  <aoliva@redhat.com>
5322
5323         * reginfo.c (globalize_reg): Recompute derived reg sets.
5324
5325 2009-03-19  Ozkan Sezer <sezeroz@gmail.com>
5326
5327         PR target/39063
5328         * libgcc2.c (mprotect): Do not use signed arguments for
5329         VirtualProtect, use DWORD arguments.  Also fix the 'may
5330         be used uninitialized' warning for the np variable.
5331
5332 2009-03-19  Jakub Jelinek  <jakub@redhat.com>
5333
5334         PR target/39496
5335         * config/i386/i386.c (ix86_function_regparm): Don't optimize local
5336         functions using regparm calling conventions when not optimizing.
5337         (ix86_function_sseregparm): Similarly for sseregparm calling
5338         conventions.
5339
5340 2009-03-19  Li Feng  <nemokingdom@gmail.com>
5341
5342         PR middle-end/39500
5343         * tree-data-ref.c (analyze_subscript_affine_affine): There is no
5344         dependence if the first conflict is after niter iterations.
5345
5346 2009-03-19  Hans-Peter Nilsson  <hp@axis.com>
5347
5348         PR middle-end/38609
5349         * config/cris/cris.h (FRAME_POINTER_REQUIRED): Force for all
5350         functions with dynamic stack-pointer adjustments.
5351
5352 2009-03-19  Ben Elliston  <bje@au.ibm.com>
5353
5354         * doc/invoke.texi (RS/6000 and PowerPC Options): Fix -msdata-data
5355         option; change to -msdata=data.
5356
5357 2009-03-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5358
5359         * c.opt: Unify help texts for -Wdeprecated, -Wsystem-headers,
5360         and -fopenmp.
5361
5362 2009-03-18  Eric Botcazou  <ebotcazou@adacore.com>
5363
5364         PR target/35180
5365         * config/sparc/sparc.md (do_builtin_setjmp_setup): Prettify asm output.
5366
5367 2009-03-18  Sandra Loosemore  <sandra@codesourcery.com>
5368
5369         * doc/invoke.texi (Code Gen Options): Expand discussion of
5370         -fno-common.
5371
5372 2009-03-18  Jakub Jelinek  <jakub@redhat.com>
5373
5374         * dse.c (struct group_info): Reorder fields for 64-bit hosts.
5375         * matrix-reorg.c (struct matrix_info): Likewise.
5376         * tree-ssa-loop-ivopts.c (struct ivopts_data): Likewise.
5377         * rtl.h (struct mem_attrs): Likewise.
5378         * df.h (struct df): Likewise.
5379         * tree-data-ref.h (struct data_dependence_relation): Likewise.
5380         * ira-int.h (struct ira_allocno): Likewise.
5381         * df-scan.c (struct df_collection_rec): Likewise.
5382         * ira.c (struct equivalence): Likewise.
5383         * function.c (struct temp_slot): Likewise.
5384         * cfgloop.h (struct loop): Likewise.
5385
5386         PR debug/39485
5387         * function.c (use_register_for_decl): When not optimizing, disregard
5388         register keyword for variables with types containing methods.
5389
5390 2009-03-18  Sebastian Pop  <sebastian.pop@amd.com>
5391
5392         PR middle-end/39447
5393         * graphite.c (exclude_component_ref): Renamed contains_component_ref_p.
5394         (is_simple_operand): Call contains_component_ref_p before calling data
5395         reference analysis that would fail on COMPONENT_REFs.
5396
5397         * tree-vrp.c (search_for_addr_array): Fix formatting.
5398
5399 2009-03-18  Richard Guenther  <rguenther@suse.de>
5400
5401         * tree-vect-transform.c (vect_loop_versioning): Fold the
5402         generated comparisons.
5403         * tree-vectorizer.c (set_prologue_iterations): Likewise.
5404         (slpeel_tree_peel_loop_to_edge): Likewise.
5405
5406 2009-03-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5407
5408         PR middle-end/37805
5409         * opts.c (print_specific_help): In addition to `undocumented',
5410         accept `separate' and `joined' flags if passed alone.  Describe
5411         output by the first matched one of those.
5412         (common_handle_option): Skip over empty strings.
5413         * gcc.c (display_help): Fix help string for `--help='.
5414         * doc/invoke.texi (Option Summary, Overall Options): With
5415         `--help=', classes and qualifiers can both be repeated, but
5416         only the latter can be negated.  One should not pass only
5417         negated qualifiers.  Fix markup and examples.
5418
5419         Revert
5420         2008-10-14  Jakub Jelinek  <jakub@redhat.com>
5421         PR middle-end/37805
5422         * opts.c (common_handle_option): Don't ICE on -fhelp=joined
5423         and -fhelp=separate.
5424
5425 2009-03-17  Jing Yu  <jingyu@google.com>
5426
5427         PR middle-end/39378
5428         * function.h (struct rtl_data): Move is_thunk from here...
5429         (struct function): ...to here.
5430         * cp/method.c (use_thunk): Change is_thunk from crtl to cfun.
5431         * varasm.c (assemble_start_function): Change is_thunk from crtl to
5432         cfun.
5433         * config/alpha/alpha.c (alpha_sa_mask): Change is_thunk from crtl to
5434         cfun.
5435         (alpha_does_function_need_gp, alpha_start_function): Likewise.
5436         (alpha_output_function_end_prologue): Likewise.
5437         (alpha_end_function, alpha_output_mi_thunk_osf): Likewise.
5438         * config/rs6000/rs6000.c (rs6000_ra_ever_killed): Likewise.
5439         (rs6000_output_function_epilogue): Likewise.
5440         * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Likewise.
5441
5442 2009-03-17  Uros Bizjak  <ubizjak@gmail.com>
5443
5444         PR target/39482
5445         * config/i386/i386.md (*truncdfsf_mixed): Avoid combining registers
5446         from different units in a single alternative.
5447         (*truncdfsf_i387): Ditto.
5448         (*truncxfsf2_mixed): Ditto.
5449         (*truncxfdf2_mixed): Ditto.
5450
5451 2009-03-17  Jakub Jelinek  <jakub@redhat.com>
5452
5453         * dwarf2out.c (dwarf2out_imported_module_or_decl_1): Allow
5454         non-NAMESPACE_DECL IMPORTED_DECL_ASSOCIATED_DECL.
5455
5456         PR debug/39474
5457         * tree-ssa-live.c (remove_unused_locals): Don't remove local
5458         unused non-artificial variables when not optimizing.
5459
5460         PR debug/39471
5461         * dwarf2out.c (dwarf2out_imported_module_or_decl_1): Emit
5462         DW_TAG_imported_module even if decl is IMPORTED_DECL with
5463         NAMESPACE_DECL in its DECL_INITIAL.
5464
5465         PR middle-end/39443
5466         * optabs.c (set_user_assembler_libfunc): New function.
5467         * expr.h (set_user_assembler_libfunc): New prototype.
5468         * c-common.c: Include libfuncs.h.
5469         (set_builtin_user_assembler_name): Call set_user_assembler_libfunc
5470         for memcmp, memset, memcpy, memmove and abort.
5471         * Makefile.in (c-common.o): Depend on libfuncs.h.
5472
5473         PR debug/39412
5474         * dwarf2out.c (gen_inlined_enumeration_type_die,
5475         gen_inlined_structure_type_die, gen_inlined_union_type_die,
5476         gen_tagged_type_instantiation_die): Removed.
5477         (gen_decl_die): For TYPE_DECL_IS_STUB with non-NULL decl_origin
5478         do nothing.
5479
5480 2009-03-17  Janis Johnson  <janis187@us.ibm.com>
5481
5482         PR testsuite/38526
5483         * Makefile.in (site.exp): Rename TEST_GCC_EXEC_PREFIX and comment
5484         its use.
5485         (check-%): Don't set GCC_EXEC_PREFIX when invoking runtest.
5486         (check-parallel-%): Ditto.
5487         (check-consistency): Ditto.
5488
5489 2009-03-17  Kai Tietz  <kai.tietz@onevision.com>
5490
5491         * ipa-struct-reorg.c (create_general_new_stmt): Initialize
5492         local variable rhs by NULL_TREE.
5493
5494 2009-03-17  H.J. Lu  <hongjiu.lu@intel.com>
5495
5496         PR target/39477
5497         * doc/extend.texi: Correct register behavior for regparm on Intel 386.
5498
5499 2009-03-17  H.J. Lu  <hongjiu.lu@intel.com>
5500
5501         PR target/39476
5502         * config/i386/i386.c (ix86_function_regparm): Rewrite for 64bit.
5503
5504 2009-03-17  H.J. Lu  <hongjiu.lu@intel.com>
5505
5506         PR target/39473
5507         * config/i386/i386.c (ix86_expand_call): Check extra clobbers
5508         for ms->sysv ABI calls only in 64bit mode.
5509
5510         * config/i386/i386.md (untyped_call): Support 32bit.
5511
5512 2009-03-16  H.J. Lu  <hongjiu.lu@intel.com>
5513
5514         * doc/extend.texi: Replace x86_65 with x86_64.
5515
5516 2009-03-16  Jakub Jelinek  <jakub@redhat.com>
5517
5518         PR tree-optimization/39455
5519         * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Fix types
5520         mismatches for POINTER_TYPE_P (type).
5521         (number_of_iterations_le): Likewise.
5522
5523 2009-03-16  Hariharan Sandanagobalane <hariharan@picochip.com>
5524
5525         * config/picochip/picochip.c: Removed profiling support.
5526         * config/picochip/picochip.md: Removed profiling instruction.
5527         * config/picochip/picochip.h: Removed profiling builtin.
5528
5529 2009-03-16  Joseph Myers  <joseph@codesourcery.com>
5530
5531         * doc/install.texi (--with-host-libstdcxx): Document.
5532
5533 2009-03-14  Anatoly Sokolov  <aesok@post.ru>
5534
5535         PR target/34299
5536         * config/avr/avr.c (avr_handle_fndecl_attribute): Move code for
5537         generate a warning if the function name does not begin with
5538         "__vector" and the function has either the 'signal' or 'interrupt'
5539         attribute, from here to ...
5540         (avr_declare_function_name): ...here. New function.
5541         * config/avr/avr.h (ASM_DECLARE_FUNCTION_NAME): Redefine.
5542         * config/avr/avr-protos.h (avr_declare_function_name): Declare.
5543
5544 2009-03-14  Jakub Jelinek  <jakub@redhat.com>
5545
5546         PR bootstrap/39454
5547         * cse.c (fold_rtx): Don't modify original const_arg1 when
5548         canonicalizing SHIFT_COUNT_TRUNCATED shift count, do it on a
5549         separate variable instead.
5550         * rtlanal.c (nonzero_bits1) <case ASHIFTRT>: Don't assume anything
5551         from out of range shift counts.
5552         (num_sign_bit_copies1) <case ASHIFTRT, case ASHIFT>: Similarly.
5553
5554 2009-03-13  Catherine Moore  <clm@codesourcery.com>
5555
5556         * gcc/config/i386/x-mingw32 (host-mingw32.o): Replace
5557         diagnostic.h with $(DIAGNOSTIC_H).
5558
5559 2009-03-12  Jakub Jelinek  <jakub@redhat.com>
5560
5561         PR target/39431
5562         * config/i386/predicates.md (cmpxchg8b_pic_memory_operand): New
5563         predicate.
5564         * config/i386/sync.md (sync_compare_and_swap<mode>,
5565         sync_compare_and_swap_cc<mode>): For DImode with -m32 -fpic check
5566         if operands[1] is cmpxchg8b_pic_memory_operand, if not force address
5567         into a register.
5568         (sync_double_compare_and_swapdi_pic,
5569         sync_double_compare_and_swap_ccdi_pic): Require operand 1 to be
5570         cmpxchg8b_pic_memory_operand instead of just memory_operand.
5571
5572 2009-03-12  H.J. Lu  <hongjiu.lu@intel.com>
5573
5574         PR target/39445
5575         * config/i386/i386.c (ix86_expand_push): Don't set memory alignment.
5576
5577 2009-03-12  H.J. Lu  <hongjiu.lu@intel.com>
5578
5579         PR target/39327
5580         * config/i386/sse.md (avx_addsubv8sf3): Correct item bits.
5581         (avx_addsubv4df3): Likewise.
5582         (*avx_addsubv4sf3): Likewise.
5583         (sse3_addsubv4sf3): Likewise.
5584
5585 2009-03-12  H.J. Lu  <hongjiu.lu@intel.com>
5586
5587         PR target/38824
5588         * config/i386/i386.md: Compare REGNO on the new peephole2 patterns.
5589
5590 2009-03-12  Vladimir Makarov  <vmakarov@redhat.com>
5591
5592         PR debug/39432
5593         * ira-int.h (struct allocno): Fix comment for calls_crossed_num.
5594         * ira-conflicts.c (ira_build_conflicts): Prohibit call used
5595         registers for allocnos created from user-defined variables.
5596
5597 2009-03-11  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5598
5599         PR target/39181
5600         * config/spu/spu.c (spu_expand_mov): Handle invalid subregs
5601         of non-integer mode as well.
5602
5603 2009-03-11  Adam Nemet  <anemet@caviumnetworks.com>
5604
5605         * gimplify.c (gimplify_call_expr): Don't set CALL_CANNOT_INLINE_P
5606         for functions for which the parameter types are unknown.
5607
5608 2009-03-11  Jakub Jelinek  <jakub@redhat.com>
5609
5610         PR target/39137
5611         * cfgexpand.c (get_decl_align_unit): Use LOCAL_DECL_ALIGNMENT macro.
5612         * defaults.h (LOCAL_DECL_ALIGNMENT): Define if not yet defined.
5613         * config/i386/i386.h (LOCAL_DECL_ALIGNMENT): Define.
5614         * config/i386/i386.c (ix86_local_alignment): For
5615         -m32 -mpreferred-stack-boundary=2 use 32-bit alignment for
5616         long long variables on the stack to avoid dynamic realignment.
5617         Allow the first argument to be a decl rather than type.
5618         * doc/tm.texi (LOCAL_DECL_ALIGNMENT): Document.
5619
5620 2009-03-11  Nick Clifton  <nickc@redhat.com>
5621
5622         PR target/5362
5623         * config/mcore/mcore.opt: Remove deprecated m4align and m8align
5624         options.
5625         Add description to mno-lsim option.
5626         * config/mcore/mcore.h: Remove comment about deprecated m4align
5627         option.
5628         (TARGET_DEFAULT): Remove deprecated MASK_M8ALIGN.
5629         * doc/invoke.texi: Add description of mno-lsim and
5630         mstack-increment options.
5631
5632         * config/fr30/fr30.opt: Document the -mno-lsim option.
5633         * doc/invoke.texi: Add descriptions of the FR30's -msmall-model
5634         and -mno-lsim options.
5635
5636 2009-03-11  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5637
5638         * fold-const.c (fold_comparison): Only call fold_inf_compare
5639         if the mode supports infinities.
5640
5641 2009-03-11  Jason Merrill  <jason@redhat.com>
5642
5643         PR debug/39086
5644         * tree-nrv.c (tree_nrv): Don't do this optimization if the front
5645         end already did.  Notice GIMPLE_CALL modifications of the result.
5646         Don't copy debug information from an ignored decl or a decl from
5647         another function.
5648
5649 2009-03-10  Richard Guenther  <rguenther@suse.de>
5650             Nathan Froyd  <froydnj@codesourcery.com>
5651
5652         PR middle-end/37850
5653         * libgcc2.c (__mulMODE3): Use explicit assignments to form the result.
5654         (__divMODE3): Likewise.
5655
5656 2009-03-09  Jakub Jelinek  <jakub@redhat.com>
5657
5658         PR tree-optimization/39394
5659         * gimplify.c (gimplify_type_sizes): Gimplify DECL_SIZE and
5660         DECL_SIZE_UNIT of variable length FIELD_DECLs.
5661
5662 2009-03-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5663
5664         * recog.c (verfiy_changes): Disallow renaming of hard regs in
5665         inline asms for register asm ("") declarations.
5666
5667 2009-03-09  Eric Botcazou  <ebotcazou@adacore.com>
5668
5669         * fold-const.c (fold_unary): Fix comment.
5670
5671 2009-03-07  Jan Hubicka  <jh@suse.cz>
5672
5673         PR target/39361
5674         * tree-inline.c (setup_one_parameter): Do replacement of const
5675         argument by constant in SSA form.
5676
5677 2009-03-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5678
5679         PR middle-end/38028
5680         * function.c (assign_parm_setup_stack): Use STACK_SLOT_ALIGNMENT to
5681         determine alignment passed to assign_stack_local.
5682         (assign_parms_unsplit_complex): Likewise.
5683         * except.c (sjlj_build_landing_pads): Likewise.
5684
5685 2009-03-06  Jakub Jelinek  <jakub@redhat.com>
5686
5687         PR middle-end/39360
5688         * tree-flow.h (add_referenced_var): Return bool instead of void.
5689         * tree-dfa.c (add_referenced_var): Return result of
5690         referenced_var_check_and_insert call.
5691         * tree-inline.c (expand_call_inline): Call add_referenced_var instead
5692         of referenced_var_check_and_insert.
5693
5694         PR debug/39372
5695         * dwarf2out.c (add_abstract_origin_attribute): Return origin_die.
5696         (gen_variable_die): Emit DW_AT_location on abstract static variable's
5697         DIE, don't emit it if abstract origin already has it.
5698         * tree-cfg.c (remove_useless_stmts_bind): GIMPLE_BINDs with any
5699         BLOCK_NONLOCALIZED_VARS in its gimple_bind_block aren't useless.
5700
5701 2009-03-06  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
5702
5703         * genpreds.c (needs_variable): Fix parentheses at variable name
5704         detection.
5705         (write_tm_constrs_h): Indent generated code.
5706
5707 2009-03-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5708
5709         * doc/extend.texi (Function Attributes): Add documentation
5710         for isr attributes.
5711
5712 2009-03-06  Jakub Jelinek  <jakub@redhat.com>
5713
5714         PR debug/39387
5715         * dwarf2out.c (dwarf2out_imported_module_or_decl_1): For IMPORTED_DECL
5716         take locus from its DECL_SOURCE_LOCATION instead of input_location.
5717
5718 2009-03-05  Bernd Schmidt  <bernd.schmidt@analog.com>
5719
5720         * config/bfin/bfin.c (bfin_discover_loop): When retrying fails, mark
5721         the loop as bad.
5722
5723 2009-03-05  Jakub Jelinek  <jakub@redhat.com>
5724
5725         PR debug/39379
5726         * tree-cfg.c (remove_useless_stmts_bind): Don't remove GIMPLE_BINDs
5727         with blocks containing IMPORTED_DECLs in BLOCK_VARS.
5728
5729 2009-03-05  Uros Bizjak  <ubizjak@gmail.com>
5730
5731         * config/i386/i386.md (R8_REG, R9_REG): New constants.
5732         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Use named
5733         constants instead of magic numbers.
5734         (HARD_REGNO_CALLER_SAVE_MODE): Ditto.
5735         (QI_REG_P): Ditto.
5736         * config/i386/i386.c (x86_64_int_parameter_registers): Ditto.
5737         (x86_64_ms_abi_int_parameter_registers): Ditto.
5738         (x86_64_int_return_registers): Ditto.
5739         (ix86_maybe_switch_abi): Ditto.
5740         (ix86_expand_call): Ditto for clobbered_registers array.
5741         (ix86_hard_regno_mode_ok): Ditto.
5742         (x86_extended_QIreg_mentioned_p): Ditto.
5743
5744 2009-03-05  J"orn Rennecke  <joern.rennecke@arc.com>
5745
5746         PR tree-optimization/39349
5747         * cse.c (cse_insn): Fix loop to stop at VOIDmode.
5748
5749         * combine.c (gen_lowpart_for_combine): Use omode when generating
5750         clobber.
5751
5752 2009-03-04  J"orn Rennecke  <joern.rennecke@arc.com>
5753
5754         PR rtl-optimization/39235
5755         * loop-iv.c (get_simple_loop_desc): Use XCNEW.
5756
5757 2009-03-04  Zdenek Dvorak  <ook@ucw.cz>
5758
5759         * graphite.c (nb_reductions_in_loop): Update simple_iv arguments.
5760
5761 2009-03-04  Richard Guenther  <rguenther@suse.de>
5762
5763         PR tree-optimization/39362
5764         * tree-ssa-sccvn.c (visit_use): Stores and copies from SSA_NAMEs
5765         that occur in abnormal PHIs should be varying.
5766
5767 2009-03-04  Zdenek Dvorak  <ook@ucw.cz>
5768
5769         * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop):
5770         Extend comments.
5771         (simple_iv):  Take loop as an argument instead of statement.
5772         * tree-scalar-evolution.h (simple_iv): Declaration changed.
5773         * tree-ssa-loop-niter.c (number_of_iterations_exit): Update calls
5774         to simple_iv.
5775         * tree-ssa-loop-ivopts.c (determine_biv_step, find_givs_in_stmt_scev):
5776         Ditto.
5777         * tree-parloops.c (loop_parallel_p, canonicalize_loop_ivs): Ditto.
5778         * matrix-reorg.c (analyze_transpose): Ditto.
5779         * tree-data-ref.c (dr_analyze_innermost): Ditto.
5780         * tree-vect-analyze.c (vect_analyze_data_refs): Ditto.
5781         * tree-predcom.c (ref_at_iteration): Ditto.
5782         * tree-ssa-loop-prefetch.c (idx_analyze_ref): Ditto.
5783
5784 2009-03-04  Richard Guenther  <rguenther@suse.de>
5785
5786         PR tree-optimization/39358
5787         * tree-ssa-structalias.c (do_sd_constraint): Fix check for
5788         escaped_id and callused_id.
5789         (solve_graph): Likewise.
5790
5791 2009-03-04  Richard Guenther  <rguenther@suse.de>
5792
5793         PR tree-optimization/39339
5794         * tree-sra.c (try_instantiate_multiple_fields): Make it
5795         no longer ICE on the above.
5796
5797 2009-03-03  Joseph Myers  <joseph@codesourcery.com>
5798
5799         * emit-rtl.c (adjust_address_1): Reduce offset to a signed value
5800         that fits within Pmode.
5801
5802 2009-03-03  Steve Ellcey  <sje@cup.hp.com>
5803
5804         PR middle-end/10109
5805         * tm.texi (LIBCALL_VALUE): Update description.
5806
5807 2009-03-03  Steve Ellcey  <sje@cup.hp.com>
5808
5809         PR middle-end/34443
5810         * doc/extend.texi (section): Update description.
5811
5812 2009-03-03  H.J. Lu  <hongjiu.lu@intel.com>
5813
5814         PR middle-end/39345
5815         * tree-inline.c (remapped_type): New.
5816         (can_be_nonlocal): Call remapped_type instead of remap_type.
5817
5818 2009-03-03  Jakub Jelinek  <jakub@redhat.com>
5819
5820         PR fortran/39354
5821         * gimplify.c (goa_stabilize_expr): Handle tcc_comparison,
5822         TRUTH_ANDIF_EXPR and TRUTH_ORIF_EXPR.
5823
5824 2009-03-03  Richard Guenther  <rguenther@suse.de>
5825
5826         PR middle-end/39272
5827         * tree.c (tree_nonartificial_location): New function.
5828         * tree.h (tree_nonartificial_location): Declare.
5829         * builtins.c (expand_builtin_memory_chk): Provide location
5830         of the call location for artificial function pieces.
5831         (maybe_emit_chk_warning): Likewise.
5832         (maybe_emit_sprintf_chk_warning): Likewise.
5833         (maybe_emit_free_warning): Likewise.
5834         * expr.c (expand_expr_real_1): Likewise.
5835
5836 2009-03-03  Jakub Jelinek  <jakub@redhat.com>
5837
5838         PR tree-optimization/39343
5839         * tree-ssa-ccp.c (maybe_fold_offset_to_address): Don't check if
5840         COMPONENT_REF t has ARRAY_TYPE.
5841
5842 2009-03-02  Sebastian Pop  <sebastian.pop@amd.com>
5843
5844         PR middle-end/39335
5845         * tree-parloops.c (canonicalize_loop_ivs): Call fold_convert
5846         when the type precision of the induction variable should be
5847         larger than the type precision of nit.
5848         (gen_parallel_loop): Update use of canonicalize_loop_ivs.
5849         * graphite.c (graphite_loop_normal_form): Same.
5850         * tree-flow.h (canonicalize_loop_ivs): Update declaration.
5851
5852 2009-03-02  Uros Bizjak  <ubizjak@gmail.com>
5853
5854         * config/i386/i386.md (ST?_REG, MM?_REG): New constants.
5855         (*call_1_rex64_ms_sysv): Use named constants instead of magic
5856         numbers to describe clobbered registers.
5857         (*call_value_0_rex64_ms_sysv): Ditto.
5858         * config/i386/mmx.md (mmx_emms): Ditto.
5859         (mmx_femms): Ditto.
5860
5861 2009-03-02  Richard Sandiford  <rdsandiford@googlemail.com>
5862
5863         * config/mips/mips.c (mips_mdebug_abi_name): Fix the handling
5864         of ABI_64.
5865
5866 2009-03-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5867
5868         * config/spu/spu.c (TARGET_SECTION_TYPE_FLAGS): Define.
5869         (spu_section_type_flags): New function.
5870
5871 2009-03-02  Uros Bizjak  <ubizjak@gmail.com>
5872
5873         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Do not copy
5874         reg_class_contents of FLOAT_REGS into a temporary.
5875
5876 2009-03-02  Richard Guenther  <rguenther@suse.de>
5877             Ira Rosen  <irar@il.ibm.com>
5878
5879         PR tree-optimization/39318
5880         * tree-vect-transform.c (vectorizable_call): Transfer the EH region
5881         information to the vectorized statement.
5882
5883 2009-03-01  Uros Bizjak  <ubizjak@gmail.com>
5884
5885         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Do not shadow "i"
5886         variable.  Use defined names instead of magic constants for REX SSE
5887         registers.
5888
5889 2009-03-01  Richard Guenther  <rguenther@suse.de>
5890
5891         PR tree-optimization/39331
5892         * omp-low.c (lower_send_shared_vars): Do not receive new
5893         values for the reference of DECL_BY_REFERENCE parms or results.
5894
5895 2009-03-01  Jan Hubicka  <jh@suse.cz>
5896
5897         PR debug/39267
5898         * tree.h (BLOCK_NONLOCALIZED_VARS, BLOCK_NUM_NONLOCALIZED_VARS,
5899         BLOCK_NONLOCALIZED_VAR): New macros.
5900         (tree_block): Add nonlocalized_vars.
5901         * dwarf2out.c (gen_formal_parameter_die, gen_variable_die,
5902         gen_decl_die): Add origin argument.  Allow generation of die with
5903         origin at hand only.
5904         (gen_member_die, gen_type_die_with_usage, force_decl_die,
5905         declare_in_namespace, gen_namescpace_die, dwarf2out_decl): Update use
5906         of gen_*.
5907         (gen_block_die): Fix checking for unused blocks.
5908         (process_scope_var): Break out from .... ; work with origins only.
5909         (decls_for_scope) ... here; process nonlocalized list.
5910         (dwarf2out_ignore_block): Look for nonlocalized vars.
5911         * tree-ssa-live.c (remove_unused_scope_block_p): Look for nonlocalized
5912         vars.
5913         (dump_scope_block): Dump them.
5914         * tree-inline.c (remap_decls): Handle nonlocalized vars.
5915         (remap_block): Likewise.
5916         (can_be_nonlocal): New predicate.
5917         (copy_bind_expr, copy_gimple_bind): Update use of remap_block.
5918
5919 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5920
5921         * configure: Regenerate.
5922
5923 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5924
5925         * optc-gen.awk: No need to duplicate option flags twice.
5926         Reuse help texts for duplicate options which do not have any.
5927
5928         * gcc.c (display_help): Document --version.
5929
5930         * gcc.c (main): If print_help_list and verbose_flag, ensure
5931         driver output comes before subprocess output.
5932
5933         * optc-gen.awk: Assign all remaining fields to help string,
5934         space-separated, for multi-line help in *.opt.
5935
5936         * doc/invoke.texi (Warning Options): -Wsync-nand is C/C++ only.
5937         -Wno-pedantic-ms-format is for MinGW targets only.
5938
5939         * doc/options.texi (Option file format): Fix bad indentation,
5940         restoring dropped sentence.
5941
5942 2009-02-28  Jan Hubicka  <jh@suse.cz>
5943
5944         * tree-inline.c (tree_function_versioning): Output debug info.
5945
5946 2009-02-28  Jan Hubicka  <jh@suse.cz>
5947
5948         PR debug/39267
5949         * tree-inline.c (setup_one_parameter): Do not copy propagate
5950         arguments when not optimizing.
5951
5952 2009-02-28  H.J. Lu  <hongjiu.lu@intel.com>
5953
5954         PR target/39327
5955         * config/i386/sse.md (avx_addsubv8sf3): Correct item bits.
5956         (avx_addsubv4df3): Likewise.
5957         (*avx_addsubv4sf3): Likewise.
5958         (sse3_addsubv4sf3): Likewise.
5959         (*avx_addsubv2df3): Likewise.
5960         (sse3_addsubv2df3): Likewise.
5961         (avx_unpckhps256): Correct item selectors.
5962         (avx_unpcklps256): Likewise.
5963         (avx_unpckhpd256): Likewise.
5964         (avx_unpcklpd256): Likewise.
5965
5966 2009-02-28  Jan Hubicka  <jh@suse.cz>
5967
5968         * tree-inline.c (expand_call_inline): Avoid duplicate declarations of
5969         static vars.
5970         (copy_arguments_for_versioning): If var is declared don't declare it.
5971         (tree_function_versioning): First setup substitutions and then copy
5972         args.
5973
5974 2009-02-27  Jan Hubicka  <jh@suse.cz>
5975
5976         PR debug/39267
5977         * cgraph.h (varpool_output_debug_info): Remove.
5978         * cgraphunit.c (varpool_output_debug_info): Remove.
5979         * dwarf2out.c (deferred_locations_struct): New struct
5980         (deferred_locations): New type.
5981         (deferred_locations_list): New static var.
5982         (deffer_location): New function.
5983         (gen_variable_die): Use it.
5984         (decls_for_scope): Output info on local static vars.
5985         (dwarf2out_finish): Process deferred locations.
5986         * varpool.c (varpool_output_debug_info): Remove.
5987
5988 2009-02-27  Jan Hubicka  <jh@suse.cz>
5989
5990         PR debug/39267
5991         * tree.h (TREE_PROTECTED): Fix comment.
5992         (BLOCK_HANDLER_BLOCK): Remove.
5993         (struct tree_block): Remove handler_block add body_block.
5994         (inlined_function_outer_scope_p): New.
5995         (is_body_block): Remove.
5996         * dbxout.c (dbxout_block): Remove BLOCK_HANDLER_BLOCK.
5997         * dwarf2out.c (is_inlined_entry_point): Remove.
5998         (add_high_low_attributes): Use inlined_function_outer_scope_p.
5999         (gen_block_die): Use is_inlined_entry_point check.  Remove body block
6000         code.
6001         * langhooks.h (struct lang_hooks): Remove no_bodu_blocks.
6002         * gimplify.c (gimplify_expr): Gimplify body blocks.
6003         * tree-ssa-live.c (remove_unused_scope_block_p): Allow removing wrapper
6004         block with multiple subblocks.
6005         (dump_scope_block): Prettier output; dump more flags and info.
6006         (dump_scope_blocks): New.
6007         (remove_unused_locals): Use dump_scope_blocks.
6008         * tree-flow.h (dump_scope_blocks): Declare.
6009         * tree-cfg.c (execute_build_cfg): Dump scope blocks.
6010         * stmt.c (is_body_block): Remove.
6011         * tree-inline.c (remap_block): Copy BODY_BLOCK info.
6012         * langhooks-def.h (LANG_HOOKS_NO_BODY_BLOCKS): Remove.
6013
6014 2009-02-27  Sebastian Pop  <sebastian.pop@amd.com>
6015
6016         PR middle-end/39308
6017         * graphite.c (graphite_loop_normal_form): Do not call
6018         number_of_iterations_exit from a gcc_assert.
6019
6020 2009-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6021
6022         * gcc/config/s390/s390.c (s390_swap_cmp): Look for conditional
6023         jumps if COND is NULL.
6024         (find_cond_jump): New function.
6025         (s390_z10_optimize_cmp): Handling for reg-reg compares added.
6026         * gcc/config/s390/s390.md: Remove z10_cobra attribute value.
6027
6028 2009-02-26  Uros Bizjak  <ubizjak@gmail.com>
6029
6030         * config/alpha/alpha.h (alpha_expand_mov): Return false if
6031         force_const_mem returns NULL_RTX.
6032
6033 2009-02-26  Jan Hubicka  <jh@suse.cz>
6034
6035         PR debug/39267
6036         * cgraph.h (varpool_output_debug_info): Remove.
6037         * cgraphunit.c (varpool_output_debug_info): Remove.
6038         * dwarf2out.c (deferred_locations_struct): New struct
6039         (deferred_locations): New type.
6040         (deferred_locations_list): New static var.
6041         (deffer_location): New function.
6042         (gen_variable_die): Use it.
6043         (decls_for_scope): Output info on local static vars.
6044         (dwarf2out_finish): Process deferred locations.
6045         * varpool.c (varpool_output_debug_info): Remove.
6046
6047 2009-02-25  H.J. Lu  <hongjiu.lu@intel.com>
6048
6049         PR rtl-optimization/39241
6050         * jump.c (rtx_renumbered_equal_p): Remove 2 superfluous calls
6051         to subreg_offset_representable_p.
6052
6053 2009-02-25  Paolo Bonzini  <bonzini@gnu.org>
6054
6055         * regmove.c (regmove_optimize): Conform to struct rtl_opt_pass
6056         execute function prototype.  Get f and nregs from max_reg_num
6057         and get_insns.  Remove the first backward pass as it's dead,
6058         guard the forward pass by flag_expensive_optimizations.
6059         (rest_of_handle_regmove): Delete.
6060         (pass_regmove): Replace it with regmove_optimize.
6061
6062 2009-02-25  Martin Jambor  <mjambor@suse.cz>
6063
6064         PR tree-optimization/39259
6065         * tree-inline.c (initialize_cfun): Remove asserts for calls_setjmp and
6066         calls_alloca function flags.
6067         (copy_bb): Set calls_setjmp and alls_alloca function flags if such
6068         calls are detected.
6069
6070 2009-02-25  Paolo Bonzini  <bonzini@gnu.org>
6071
6072         * regmove.c (discover_flags_reg, flags_set_1, mark_flags_life_zones,
6073         flags_set_1_rtx, flags_set_1_set): Delete.
6074         (regmove_optimize): Do not call mark_flags_life_zones.
6075
6076 2009-02-24  Julian Brown  <julian@codesourcery.com>
6077
6078         PR target/35965
6079         * config/arm/arm.c (require_pic_register): Only set
6080         cfun->machine->pic_reg once per function.
6081
6082 2009-02-24  Sandra Loosemore  <sandra@codesourcery.com>
6083
6084         * doc/invoke.texi (Link Options): Document an easier way to pass
6085         options that take arguments to the GNU linker using -Xlinker and -Wl.
6086
6087 2009-02-24  Steve Ellcey  <sje@cup.hp.com>
6088
6089         PR target/33785
6090         * doc/tm.texi (TARGET_C99_FUNCTIONS): Fix description.
6091
6092 2009-02-24  Richard Guenther  <rguenther@suse.de>
6093
6094         PR debug/39285
6095         * dwarf2out.c (gen_enumeration_type_die): Handle CONST_DECLs.
6096
6097 2009-02-24  Richard Guenther  <rguenther@suse.de>
6098             Zdenek Dvorak  <ook@ucw.cz>
6099
6100         PR tree-optimization/39233
6101         * tree-ssa-loop-ivopts.c (add_candidate_1): Do not except pointers
6102         from converting them to a generic type.
6103
6104 2009-02-23  Sebastian Pop  <sebastian.pop@amd.com>
6105
6106         PR tree-optimization/39260
6107         * graphite.c (harmful_stmt_in_bb): Stop a SCoP when the basic block
6108         contains a condition with a real type.
6109         (build_scop_conditions_1): Conditions are always last_stmt of a bb.
6110
6111 2009-02-23  Jason Merrill  <jason@redhat.com>
6112
6113         PR c++/38880
6114         * varasm.c (initializer_constant_valid_p) [PLUS_EXPR]: Check
6115         narrowing_initializer_constant_valid_p.
6116         (narrowing_initializer_constant_valid_p): Don't return
6117         null_pointer_node for adding a pointer to itself.
6118
6119 2009-02-23  Jan Hubicka  <jh@suse.cz>
6120
6121         PR c/12245
6122         * ggc.h (htab_create_ggc): Use ggc_free to free hashtable when
6123         resizing.
6124
6125 2009-02-23  Jan Hubicka  <jh@suse.cz>
6126
6127         PR tree-optimization/37709
6128         * tree.c (block_ultimate_origin): Move here from dwarf2out.
6129         * tree.h (block_ultimate_origin): Declare.
6130         * dwarf2out.c (block_ultimate_origin): Move to tree.c
6131         * tree-ssa-live.c (remove_unused_scope_block_p):
6132         Eliminate blocks containig no instructions nor live variables nor
6133         nested blocks.
6134         (dump_scope_block): New function.
6135         (remove_unused_locals): Enable removal of dead blocks by default;
6136         enable dumping at TDF_DETAILS.
6137
6138 2009-02-21  H.J. Lu  <hongjiu.lu@intel.com>
6139
6140         * config/i386/i386.c (classify_argument): Don't allow COImode
6141         and OImode.
6142         (function_arg_advance_32): Don't allow OImode.
6143         (function_arg_32): Likewise.
6144         (function_value_32): Likewise.
6145         (return_in_memory_32): Likewise.
6146         (function_arg_64): Remove OImode comment.
6147
6148 2009-02-21  H.J. Lu  <hongjiu.lu@intel.com>
6149
6150         PR target/39261
6151         * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Use
6152         ix86_expand_vector_set for V4DImode in 64bit mode only.
6153         (ix86_expand_vector_init_one_var): Likewise.
6154
6155 2009-02-21  Sebastian Pop  <sebastian.pop@amd.com>
6156
6157         * graphite.c (graphite_trans_loop_block): Adjust tile size to 51.
6158
6159 2009-02-21  Richard Sandiford  <rdsandiford@googlemail.com>
6160
6161         PR bootstrap/39257
6162         * loop-iv.c: Revert last change.
6163         * emit-rtl.c: Likewise.
6164
6165 2009-02-21  H.J. Lu  <hongjiu.lu@intel.com>
6166
6167         PR target/39256
6168         * config/i386/i386.c (type_natural_mode): Remove an extra
6169         space in the warning message.
6170         (function_value_32): Handle 32-byte vector modes.
6171         (return_in_memory_32): Likewise.
6172
6173 2009-02-21  Richard Sandiford  <rdsandiford@googlemail.com>
6174
6175         * loop-iv.c (truncate_value): New function.
6176         (iv_subreg, get_iv_value, iv_number_of_iterations): Use it instead
6177         of lowpart_subreg.
6178         (lowpart_subreg): Move to...
6179         * emit-rtl.c: ...here.
6180
6181 2009-02-21  Danny Smith  <dannysmith@users.sourceforge.net>
6182
6183         * config/i386/winnt.c (i386_pe_asm_output_aligned_decl_common): Revert
6184         accidental and undocumented change at revision 140860.
6185
6186 2009-02-21  Joseph Myers  <joseph@codesourcery.com>
6187
6188         * config/arm/arm.c (arm_gimplify_va_arg_expr): Update prototype to
6189         take gimple_seq * arguments.
6190         (arm_mangle_type): Use CONST_CAST_TREE on type argument passed to
6191         types_compatible_p langhook.
6192
6193 2009-02-20  Mark Mitchell  <mark@codesourcery.com>
6194             Joseph Myers  <joseph@codesourcery.com>
6195
6196         * config/arm/arm.c (arm_builtin_va_list): New function.
6197         (arm_expand_builtin_va_start): Likewise.
6198         (arm_gimplify_va_arg_expr): Likewise.
6199         (TARGET_BUILD_BUILTIN_VA_LIST): Define.
6200         (TARGET_BUILD_BUILTIN_VA_START): Likewise.
6201         (TARGET_BUILD_BUILTIN_VA_ARG_EXPR): Likewise.
6202         (va_list_type): New variable.
6203         (arm_mangle_type): Mangle va_list_type appropriately.
6204
6205 2009-02-20  Jakub Jelinek  <jakub@redhat.com>
6206
6207         PR middle-end/39157
6208         * Makefile.in (loop-invariant.o): Depend on $(PARAMS_H).
6209         * params.h (LOOP_INVARIANT_MAX_BBS_IN_LOOP): Define.
6210         * params.def (loop-invariant-max-bbs-in-loop): New parameter.
6211         * opts.c (decode_options): Set loop-invariant-max-bbs-in-loop
6212         parameter to 1000 for -O1 by default.
6213         * doc/invoke.texi (loop-invariant-max-bbs-in-loop): Document new
6214         parameter.
6215         * loop-invariant.c: Include params.h.
6216         (move_loop_invariants): Don't call move_single_loop_invariants on
6217         very large loops.
6218
6219 2009-02-20  Jaka Mocnik  <jaka@xlab.si>
6220
6221         * calls.c (emit_library_call_value_1): Use slot_offset instead of
6222         offset when calculating bounds for indexing stack_usage_map.  Fixes
6223         a buffer overflow with certain target setups.
6224
6225 2009-02-20  Jakub Jelinek  <jakub@redhat.com>
6226
6227         PR target/39240
6228         * calls.c (expand_call): Clear try_tail_call if caller and callee
6229         disagree in promotion of function return value.
6230
6231 2009-02-19  Jakub Jelinek  <jakub@redhat.com>
6232
6233         PR target/39175
6234         * c-common.c (c_determine_visibility): If visibility changed and
6235         DECL_RTL has been already set, call make_decl_rtl to update symbol
6236         flags.
6237
6238 2009-02-19  H.J. Lu  <hongjiu.lu@intel.com>
6239
6240         PR c++/39188
6241         * varasm.c (assemble_variable): Don't check DECL_NAME when
6242         globalizing a variable.
6243
6244 2009-02-19  Joseph Myers  <joseph@codesourcery.com>
6245
6246         PR c/38483
6247         * builtins.c (gimplify_va_arg_expr): Evaluate the va_list
6248         expression before any __builtin_trap call.
6249         * c-typeck.c (build_function_call): Convert and check function
6250         arguments before generating a call to a trap.  Evaluate the
6251         function arguments before the trap.
6252
6253 2009-02-19  Uros Bizjak  <ubizjak@gmail.com>
6254
6255         PR target/39228
6256         * config/i386/i386.md (isinfxf2): Split from isinf<mode>2.
6257         (UNSPEC_FXAM_MEM): New unspec.
6258         (fxam<mode>2_i387_with_temp): New insn and split pattern.
6259         (isinf<mode>2): Use MODEF mode iterator.  Force operand[1] through
6260         memory using fxam<mode>2_i387_with_temp to remove excess precision.
6261
6262 2009-02-19  Richard Guenther  <rguenther@suse.de>
6263
6264         PR tree-optimization/39207
6265         PR tree-optimization/39074
6266         * tree-ssa-structalias.c (storedanything_id, var_storedanything,
6267         storedanything_tree): New.
6268         (do_ds_constraint): Simplify ANYTHING shortcutting.  Update
6269         the STOREDANYTHING solution if the lhs solution contains ANYTHING.
6270         (build_succ_graph): Add edges from STOREDANYTHING to all
6271         non-direct nodes.
6272         (init_base_vars): Initialize STOREDANYTHING.
6273         (compute_points_to_sets): Free substitution info after
6274         building the succ graph.
6275         (ipa_pta_execute): Likewise.
6276
6277         * tree-ssa-structalias.c (struct variable_info): Add may_have_pointers
6278         field.
6279         (do_ds_constraint): Do not add to special var or non-pointer
6280         field solutions.
6281         (type_could_have_pointers): Split out from ...
6282         (could_have_pointers): ... here.  For arrays use the element type.
6283         (create_variable_info_for): Initialize may_have_pointers.
6284         (new_var_info): Likewise.
6285         (handle_lhs_call): Make the HEAP variable unknown-sized.
6286         (intra_create_variable_infos): Use a type with pointers for
6287         PARM_NOALIAS, make it unknown-sized.
6288
6289 2009-02-18  H.J. Lu  <hongjiu.lu@intel.com>
6290
6291         PR target/39224
6292         * config/i386/i386.c (ix86_return_in_memory): Properly check ABI.
6293
6294 2009-02-18  Jason Merrill  <jason@redhat.com>
6295
6296         PR target/39179
6297         * tree-ssa-ccp.c (get_symbol_constant_value): Don't assume zero
6298         value if DECL_EXTERNAL.
6299         * tree-sra.c (sra_walk_gimple_assign): Likewise.
6300         * target.h (gcc_target::binds_local_p): Clarify "module".
6301         * tree.h (TREE_PUBLIC): Clarify "module".
6302
6303 2009-02-17  Xuepeng Guo  <xuepeng.guo@intel.com>
6304
6305         PR target/38891
6306         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Move the hunk of
6307         initialization for MS_ABI prior to the hunk of !TARGET_MMX.
6308
6309 2009-02-17  H.J. Lu  <hongjiu.lu@intel.com>
6310
6311         PR target/39082
6312         * c.opt (Wabi): Support C and ObjC.
6313         (Wpsabi): New.
6314
6315         * c-opts.c (c_common_handle_option): Handle OPT_Wabi.
6316
6317         * config/i386/i386.c (classify_argument): Warn once about the ABI
6318         change when passing union with long double.
6319
6320         * doc/invoke.texi: Update -Wabi for warning psABI changes.
6321
6322 2009-02-18  Joseph Myers  <joseph@codesourcery.com>
6323
6324         PR c/35447
6325         * c-parser.c (c_parser_compound_statement): Always enter and leave
6326         a scope.
6327
6328 2009-02-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6329
6330         PR target/34587
6331         * config/darwin.h (SUPPORTS_INIT_PRIORITY): Define.
6332
6333 2009-02-18  Jakub Jelinek  <jakub@redhat.com>
6334
6335         PR tree-optimization/36922
6336         * tree-data-ref.c (initialize_matrix_A): Handle BIT_NOT_EXPR.
6337         * tree-scalar-evolution.c (interpret_rhs_expr, instantiate_scev_1):
6338         Likewise.
6339
6340 2009-02-17  Richard Sandiford  <rdsandiford@googlemail.com>
6341
6342         * config/mips/mips.c (mips_override_options): Set flag_dwarf2_cfi_asm
6343         to 0 for EABI64.
6344
6345 2009-02-17  Richard Sandiford  <rdsandiford@googlemail.com>
6346
6347         * config/mips/mips.md (type): Reclassify lui_movf as "unknown".
6348
6349 2009-02-17  Richard Sandiford  <rdsandiford@googlemail.com>
6350
6351         * config/mips/mips.c (mips_gimplify_va_arg_expr): Fix invalid
6352         tree sharing.
6353
6354 2009-02-17  Ruan Beihong  <ruanbeihong@gmail.com>
6355             Richard Sandiford  <rdsandiford@googlemail.com>
6356
6357         * config/mips/mips.c (CODE_FOR_loongson_biadd): Delete.
6358         * config/mips/loongson.md (reduc_uplus_<mode>): Rename to...
6359         (loongson_biadd): ...this.
6360
6361 2009-02-17  Richard Guenther  <rguenther@suse.de>
6362
6363         PR tree-optimization/39202
6364         * tree-ssa-structalias.c (do_structure_copy): Before collapsing
6365         a var make sure to follow existing collapses.
6366
6367 2009-02-17  Richard Guenther  <rguenther@suse.de>
6368
6369         PR middle-end/39214
6370         * langhooks.c (lhd_print_error_function): Check for NULL block.
6371
6372 2009-02-17  Richard Guenther  <rguenther@suse.de>
6373
6374         PR tree-optimization/39204
6375         * tree-ssa-pre.c (phi_translate_1): Lookup the value-number
6376         of the PHI arg.
6377
6378 2009-02-17  Uros Bizjak  <ubizjak@gmail.com>
6379
6380         * config/soft-fp/double.h: Update from glibc CVS.
6381
6382 2009-02-17  Richard Guenther  <rguenther@suse.de>
6383
6384         PR tree-optimization/39207
6385         * tree-ssa-structalias.c (find_what_p_points_to): Do not emit
6386         strict-aliasing warnings for pointers pointing to NULL.
6387
6388 2009-02-16  Joseph Myers  <joseph@codesourcery.com>
6389
6390         PR c/35446
6391         * c-parser.c (c_parser_braced_init): Call pop_init_level when
6392         skipping until next close brace.
6393
6394 2009-02-16  H.J. Lu  <hongjiu.lu@intel.com>
6395
6396         PR target/37049
6397         * config/i386/i386.c (ix86_expand_push): Set memory alignment
6398         to function argument boundary.
6399
6400 2009-02-16  Hariharan Sandanagobalane  <hariharan@picochip.com>
6401
6402         * config/picochip/picochip.md (lea_add): Allow any nonimmediate
6403         in the lea_add. Reload eventually constraints it properly.
6404         * config/picochip/constraints.md : Remove the target constraint
6405         "b", since it is not needed anymore.
6406
6407 2009-02-16  Jakub Jelinek  <jakub@redhat.com>
6408
6409         * gthr-dce.h: Uglify function parameter and local variable names.
6410         * gthr-gnat.h: Likewise.
6411         * gthr-mipssde.h: Likewise.
6412         * gthr-nks.h: Likewise.
6413         * gthr-posix95.h: Likewise.
6414         * gthr-posix.h: Likewise.
6415         * gthr-rtems.h: Likewise.
6416         * gthr-single.h: Likewise.
6417         * gthr-solaris.h: Likewise.
6418         * gthr-tpf.h: Likewise.
6419         * gthr-vxworks.h: Likewise.
6420         * gthr-win32.h: Likewise.
6421
6422 2009-02-15  H.J. Lu  <hongjiu.lu@intel.com>
6423
6424         PR target/39196
6425         * config/i386/i386.md: Restrict the new peephole2 to move
6426         between MMX/SSE registers.
6427
6428 2009-02-15  Richard Guenther  <rguenther@suse.de>
6429
6430         Revert
6431         2009-02-13  Richard Guenther  <rguenther@suse.de>
6432
6433         * configure.ac: Enable LFS.
6434         * configure: Re-generate.
6435         * config.in: Likewise.
6436
6437 2009-02-13  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6438
6439         * config/spu/spu_internals.h (spu_sr, spu_sra, spu_srqw,
6440         spu_srqwbyte, spu_srqwbytebc): Define.
6441         * config/spu/spu-builtins.def (spu_sr, spu_sra, spu_srqw,
6442         spu_srqwbyte, spu_srqwbytebc): New overloaded builtins.
6443         * config/spu/spu.md ("shrqbybi_<mode>", "shrqbi_<mode>",
6444         "shrqby_<mode>"): New insn-and-split patterns.
6445         * config/spu/spu.c (expand_builtin_args): Determine and return
6446         number of operands using spu_builtin_description data.
6447         (spu_expand_builtin_1): Use it.
6448
6449 2009-02-13  Steve Ellcey  <sje@cup.hp.com>
6450
6451         PR target/38056
6452         * config/ia64/ia64.c (ia64_function_ok_for_sibcall): Check
6453         TARGET_CONST_GP.
6454
6455 2009-02-13  H.J. Lu  <hongjiu.lu@intel.com>
6456
6457         PR target/39149
6458         * config/i386/i386.c (override_options): Correct warning
6459         messages for -malign-loops, -malign-jumps and -malign-functions.
6460
6461 2009-02-13  H.J. Lu  <hongjiu.lu@intel.com>
6462
6463         PR target/39152
6464         * config/i386/i386.md: Restrict the new peephole2 to move
6465         between the general purpose registers.
6466
6467 2009-02-13  H.J. Lu  <hongjiu.lu@intel.com>
6468
6469         PR target/39162
6470         * config/i386/i386.c (type_natural_mode): Add a new argument.
6471         Return the original mode and warn ABI change if vector size is 32byte.
6472         (function_arg_advance): Updated.
6473         (function_arg): Likewise.
6474         (ix86_function_value): Likewise.
6475         (ix86_return_in_memory): Likewise.
6476         (ix86_sol10_return_in_memory): Likewise.
6477         (ix86_gimplify_va_arg): Likewise.
6478         (function_arg_32): Don't warn ABX ABI change here.
6479         (function_arg_64): Likewise.
6480
6481 2009-02-13  Bernd Schmidt  <bernd.schmidt@analog.com>
6482
6483         * loop-iv.c (implies_p): In the final case, test that operands 0
6484         of the two comparisons match.
6485
6486         * config/bfin/bfin.c (find_prev_insn_start): New function.
6487         (bfin_optimize_loop): Use it in some cases instead of PREV_INSN.
6488         (find_next_insn_start): Move.
6489
6490 2009-02-13  Richard Guenther  <rguenther@suse.de>
6491
6492         * configure.ac: Enable LFS.
6493         * configure: Re-generate.
6494         * config.in: Likewise.
6495
6496 2009-02-13  Joseph Myers  <joseph@codesourcery.com>
6497
6498         PR c/35444
6499         * c-parser.c (c_parser_parms_list_declarator): Discard pending
6500         sizes on syntax error after some arguments have been parsed.
6501
6502 2009-02-12  Jakub Jelinek  <jakub@redhat.com>
6503
6504         * doc/invoke.texi (-fira): Remove.
6505
6506 2009-02-12  H.J. Lu  <hongjiu.lu@intel.com>
6507
6508         * caller-save.c: Replace regclass.c with reginfo.c in comments.
6509         * recog.c: Likewise.
6510         * rtl.h: Likewise.
6511
6512 2009-02-12  Uros Bizjak  <ubizjak@gmail.com>
6513
6514         * longlong.h (sub_ddmmss): New for ia64. Ported from GMP 4.2.
6515         (umul_ppmm): Likewise.
6516         (count_leading_zeros): Likewise.
6517         (count_trailing_zeros): Likewise.
6518         (UMUL_TIME): Likewise.
6519
6520 2009-02-12  H.J. Lu  <hongjiu.lu@intel.com>
6521
6522         * config.gcc (ia64*-*-linux*): Add ia64/t-fprules-softfp and
6523         soft-fp/t-softfp to tmake_file.
6524
6525         * config/ia64/ia64.c (ia64_soft_fp_init_libfuncs): New.
6526         (ia64_expand_compare): Use HPUX library for TFmode only for HPUX.
6527         (ia64_builtins) [IA64_BUILTIN_COPYSIGNQ, IA64_BUILTIN_FABSQ,
6528         IA64_BUILTIN_INFQ]: New.
6529         (ia64_init_builtins): Initialize __builtin_infq,
6530         __builtin_fabsq and __builtin_copysignq if not HPUX.
6531         (ia64_expand_builtin): Handle IA64_BUILTIN_COPYSIGNQ,
6532         IA64_BUILTIN_FABSQ and IA64_BUILTIN_INFQ.
6533
6534         * config/ia64/lib1funcs.asm (__divtf3): Define only if
6535         SHARED is defined.
6536         (__fixtfti): Likewise.
6537         (__fixunstfti): Likewise.
6538         (__floattitf): Likewise.
6539
6540         * config/ia64/libgcc-glibc.ver: New.
6541         * config/ia64/t-fprules-softfp: Likewise.
6542         * config/ia64/sfp-machine.h: Likewise.
6543
6544         * config/ia64/linux.h (LIBGCC2_HAS_TF_MODE): New.
6545         (LIBGCC2_TF_CEXT): Likewise.
6546         (TF_SIZE): Likewise.
6547         (TARGET_INIT_LIBFUNCS): Likewise.
6548
6549         * config/ia64/t-glibc (SHLINB_MAPFILES):
6550         Add $(srcdir)/config/ia64/libgcc-glibc.ver.
6551
6552 2009-02-12  H.J. Lu  <hongjiu.lu@intel.com>
6553
6554         * config/i386/i386.c (construct_container): Rewrite processing
6555         BLKmode with X86_64_SSE_CLASS.
6556
6557 2009-02-12  Paolo Bonzini  <bonzini@gnu.org>
6558
6559         PR target/39152
6560         * config/i386/i386.md: Replace simplify_replace_rtx with
6561         replace_rtx in the new peephole2.
6562
6563 2009-02-12  Nathan Sidwell  <nathan@codesourcery.com>
6564
6565         * doc/invoke.texi (Optimize Options): Stop claiming inlining and
6566         loop unrolling do not happen at -O2.
6567
6568 2009-02-12  Michael Matz  <matz@suse.de>
6569
6570         * gcc.c (ASM_DEBUG_SPEC): Check for -g0.
6571
6572 2009-02-12  Jakub Jelinek  <jakub@redhat.com>
6573
6574         * dwarf2out.c (dwarf2out_finish): Force output of comp_unit_die
6575         for -g3.
6576
6577 2009-02-12  Ben Elliston  <bje@au.ibm.com>
6578
6579         * config/rs6000/rs6000.md (allocate_stack): Use _stack form of
6580         patterns when updating the back chain.  Missed in the 2009-02-10
6581         change.
6582
6583 2009-02-11  Janis Johnson  <janis187@us.ibm.com>
6584
6585         * doc/extend.texi (Decimal Floating Types): Update identifier of
6586         draft TR and list of missing support.
6587
6588 2009-02-11  Jakub Jelinek  <jakub@redhat.com>
6589
6590         PR middle-end/39154
6591         * gimplify.c (omp_notice_variable): If adding GOVD_SEEN
6592         bit to variable length decl's flags, add it also to its
6593         pointer replacement variable.
6594
6595 2009-02-11  Uros Bizjak  <ubizjak@gmail.com>
6596             Jakub Jelinek  <jakub@redhat.com>
6597
6598         PR target/39118
6599         * config/i386/i386.md (UNSPEC_MEMORY_BLOCKAGE): New constant.
6600         (memory_blockage): New expander.
6601         (*memory_blockage): New insn pattern.
6602         * config/i386/i386.c (ix86_expand_prologue): Use memory_blockage
6603         instead of general blockage at the end of function prologue when
6604         frame pointer is used to access red zone area.  Do not emit blockage
6605         when profiling, it is emitted in generic code.
6606         (ix86_expand_epilogue): Emit memory_blockage at the beginning of
6607         function epilogue when frame pointer is used to access red zone area.
6608
6609 2009-02-11  Paolo Bonzini  <bonzini@gnu.org>
6610
6611         PR target/38824
6612         * config/i386/i386.md: Add two new peephole2 to avoid mov followed
6613         by arithmetic with memory operands.
6614         * config/i386/predicates.md (commutative_operator): New.
6615
6616 2009-02-10  Janis Johnson  <janis187@us.ibm.com>
6617
6618         * doc/extend.texi (Fixed-Point Types): Break long paragraphs into
6619         bulleted lists.
6620
6621 2009-02-10  Eric Botcazou  <ebotcazou@adacore.com>
6622
6623         * alias.h (record_alias_subset): Declare.
6624         * alias.c (record_alias_subset): Make global.
6625
6626 2009-02-10  Nick Clifton  <nickc@redhat.com>
6627
6628         * tree-parloops.c: Change license to GPLv3.
6629         * ipa-struct-reorg.c: Change license to GPLv3.
6630         * ipa-struct-reorg.h: Change license to GPLv3.
6631
6632 2009-02-10  Steve Ellcey  <sje@cup.hp.com>
6633
6634         PR c/39084
6635         * c-decl.c (start_struct): Return NULL on error.
6636
6637 2009-02-10  Jakub Jelinek  <jakub@redhat.com>
6638
6639         PR middle-end/39124
6640         * cfgloopmanip.c (remove_path): Call remove_bbs after
6641         cancel_loop_tree, not before it.
6642
6643         PR target/39139
6644         * function.h (struct function): Add has_local_explicit_reg_vars bit.
6645         * gimplify.c (gimplify_bind_expr): Set it if local DECL_HARD_REGISTER
6646         VAR_DECLs were seen.
6647         * tree-ssa-live.c (remove_unused_locals): Recompute
6648         cfun->has_local_explicit_reg_vars.
6649         * tree-ssa-sink.c (statement_sink_location): Don't sink BLKmode
6650         copies or clearings if cfun->has_local_explicit_reg_vars.
6651
6652 2009-02-10  Uros Bizjak  <ubizjak@gmail.com>
6653
6654         PR target/39118
6655         * config/i386/i386.c (expand_prologue): Emit blockage at the end
6656         of function prologue when frame pointer is used to access
6657         red zone area.
6658
6659 2009-02-10  Richard Guenther  <rguenther@suse.de>
6660
6661         PR middle-end/39127
6662         * gimplify.c (gimple_regimplify_operands): Always look if
6663         we need to create a temporary.
6664
6665 2009-02-10  Richard Guenther  <rguenther@suse.de>
6666
6667         PR tree-optimization/39132
6668         * tree-loop-distribution.c (todo): New global var.
6669         (generate_memset_zero): Trigger TODO_rebuild_alias.
6670         (tree_loop_distribution): Return todo.
6671
6672 2009-02-10  H.J. Lu  <hongjiu.lu@intel.com>
6673
6674         PR target/39119
6675         * config/i386/i386.c (x86_64_reg_class): Remove X86_64_AVX_CLASS.
6676         (x86_64_reg_class_name): Removed.
6677         (classify_argument): Return 0 if bytes > 32.  Return 0 if the
6678         first one isn't X86_64_SSE_CLASS or any other ones aren't
6679         X86_64_SSEUP_CLASS when size > 16bytes.  Don't turn
6680         X86_64_SSEUP_CLASS into X86_64_SSE_CLASS if the preceded one
6681         is X86_64_SSEUP_CLASS.  Set AVX modes to 1 X86_64_SSE_CLASS
6682         and 3 X86_64_SSEUP_CLASS.
6683         (construct_container): Remove X86_64_AVX_CLASS.  Handle 4
6684         registers with 1 X86_64_SSE_CLASS and 3 X86_64_SSEUP_CLASS.
6685
6686 2009-02-10  Ben Elliston  <bje@au.ibm.com>
6687
6688         * config/rs6000/rs6000.md (allocate_stack): Always use an update
6689         form instruction to update the stack back chain word, even if the
6690         user has disabled the generation of update instructions.
6691         (movdi_<mode>_update_stack): New.
6692         (movsi_update_stack): Likewise.
6693         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Likewise,
6694         always use an update form instruction to update the stack back
6695         chain word.
6696
6697 2009-02-09  Sebastian Pop  <sebastian.pop@amd.com>
6698
6699         PR middle-end/38953
6700         * graphite.c (if_region_set_false_region): After moving a region in
6701         the false branch of a condition, remove the empty dummy basic block.
6702         (gloog): Remove wrong fix for PR38953.
6703
6704 2009-02-09  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6705
6706         * config/spu/spu.c (array_to_constant): Fix (latent) wrong-code
6707         generation due to implicit sign extension.
6708
6709 2009-02-09  Eric Botcazou  <ebotcazou@adacore.com>
6710
6711         PR middle-end/38981
6712         * tree-ssa-coalesce.c (add_coalesce): Cap the costs of coalesce pairs
6713         at MUST_COALESCE_COST-1 instead of MUST_COALESCE_COST.
6714
6715 2009-02-09  Richard Guenther  <rguenther@suse.de>
6716
6717         PR middle-end/35202
6718         * convert.c (convert_to_real): Disable (float)fn((double)x)
6719         to fnf(x) conversion if errno differences may occur and
6720         -fmath-errno is set.
6721
6722 2009-02-07  Anatoly Sokolov  <aesok@post.ru>
6723
6724         * config/avr/avr.c (avr_mcu_t): Add ata6289 device.
6725         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
6726         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
6727
6728 2009-02-06  Joseph Myers  <joseph@codesourcery.com>
6729
6730         PR c/35434
6731         * c-common.c (handle_alias_attribute): Disallow attribute for
6732         anything not a FUNCTION_DECL or VAR_DECL.
6733
6734 2009-02-06  Janis Johnson  <janis187@us.ibm.com>
6735
6736         PR c/39035
6737         * real.c (do_compare): Special-case compare of zero against
6738         decimal float value.
6739
6740 2009-02-06  Joseph Myers  <joseph@codesourcery.com>
6741
6742         PR c/36432
6743         * c-decl.c (grokdeclarator): Don't treat [] declarators in fields
6744         as indicating flexible array members unless the field itself is
6745         being declarared as the incomplete array.
6746
6747 2009-02-06  Jan Hubicka  <jh@suse.cz>
6748
6749         PR tree-optimization/38844
6750         * ipa-inline.c (try_inline): Stop inlining recursion when edge
6751         is already inlined.
6752
6753 2009-02-06  Richard Guenther  <rguenther@suse.de>
6754
6755         PR middle-end/38977
6756         * tree-cfg.c (need_fake_edge_p): Force a fake edge for
6757         fork because we may expand it as __gcov_fork.
6758
6759 2009-02-06  Nick Clifton  <nickc@redhat.com>
6760
6761         * config/m32c/m32c.h (PCC_BITFIELD_TYPE_MATTERS): Define to zero.
6762
6763 2009-02-06  Paolo Bonzini  <bonzini@gnu.org>
6764
6765         PR tree-optimization/35659
6766         * tree-ssa-sccvn.c (vn_constant_eq, vn_reference_eq, vn_nary_op_eq
6767         vn_phi_eq): Shortcut if hashcode does not match.
6768         (vn_reference_op_compute_hash): Do not call iterative_hash_expr for
6769         NULL operands.
6770         * tree-ssa-pre.c (pre_expr_hash): Look at hashcode if available,
6771         and avoid iterative_hash_expr.
6772         (FOR_EACH_VALUE_ID_IN_SET): New.
6773         (value_id_compare): Remove.
6774         (sorted_array_from_bitmap_set): Use FOR_EACH_VALUE_ID_IN_SET to
6775         sort expressions by value id.
6776
6777 2009-02-05  Kaz Kojima  <kkojima@gcc.gnu.org>
6778
6779         PR target/38991
6780         * config/sh/predicates.md (general_movsrc_operand): Don't check
6781         the subreg of system registers here.
6782
6783 2009-02-05  Jakub Jelinek  <jakub@redhat.com>
6784
6785         PR c++/39106
6786         * cgraphunit.c (cgraph_function_versioning): Clear also DECL_VIRTUAL_P
6787         on the copied decl.
6788
6789 2009-02-05  Paolo Bonzini  <bonzini@gnu.org>
6790
6791         PR rtl-optimization/39110
6792         * rtlanal.c (rtx_addr_can_trap_p_1): Shortcut unaligned
6793         addresses, not aligned ones.
6794
6795 2009-02-05  Daniel Berlin  <dberlin@dberlin.org>
6796             Richard Guenther  <rguenther@suse.de>
6797
6798         PR tree-optimization/39100
6799         * tree-ssa-structalias.c (do_ds_constraint): Actually do what the
6800         comment says and add edges.
6801
6802 2009-02-05  Joseph Myers  <joseph@codesourcery.com>
6803
6804         PR c/35435
6805         * c-common.c (handle_tls_model_attribute): Ignore attribute for
6806         non-VAR_DECLs without checking DECL_THREAD_LOCAL_P.
6807
6808 2009-02-04  Tobias Grosser  <grosser@fim.uni-passau.de>
6809
6810         * graphite.c (bb_in_sese_p, sese_build_livein_liveouts_use,
6811         sese_build_livein_liveouts_bb, sese_build_livein_liveouts,
6812         register_bb_in_sese, new_sese, free_sese): Moved.
6813         (dot_scop_1, build_scop_loop_nests, build_loop_iteration_domains,
6814         outermost_loop_in_scop, build_scop_iteration_domain,
6815         expand_scalar_variables_ssa_name, get_vdef_before_scop,
6816         limit_scops): Use bb_in_sese_p instead of bb_in_scop_p.
6817         Use loop_in_sese_p instead of loop_in_scop_p.
6818         (new_graphite_bb, gloog): Do not initialize SCOP_BBS_B.
6819         (new_scop, free_scop): Remove SCOP_LOOP2CLOOG_LOOP and SCOP_BBS_B.
6820         (scopdet_basic_block_info): Fix bug in scop detection.
6821         (new_loop_to_cloog_loop_str, hash_loop_to_cloog_loop,
6822         eq_loop_to_cloog_loop): Remove.
6823         (nb_loops_around_loop_in_scop, nb_loop
6824         ref_nb_loops): Moved here...
6825         * graphite.h (ref_nb_loops): ... from here.
6826         (struct scop): Remove bbs_b bitmap and loop2cloog_loop.
6827         (loop_domain_dim, loop_iteration_vector_dim): Remove.
6828         (SCOP_BBS_B, bb_in_scop_p, loop_in_scop_p): Removed.
6829         * testsuite/gcc.dg/graphite/scop-19.c: New
6830
6831 2009-02-04  Paolo Bonzini  <bonzini@gnu.org>
6832             Hans-Peter Nilsson  <hp@axis.com>
6833
6834         PR rtl-optimization/37889
6835         * rtlanal.c (rtx_addr_can_trap_p_1): Add offset and size arguments.
6836         Move offset handling from PLUS to before the switch.  Use new
6837         arguments when considering SYMBOL_REFs too.
6838         (rtx_addr_can_trap_p): Pass dummy offset and size.
6839         (enum may_trap_p_flags): Remove.
6840         (may_trap_p_1): Pass size from MEM_SIZE.
6841
6842         PR rtl-optimization/38921
6843         * loop-invariant.c (find_invariant_insn): Use may_trap_or_fault_p.
6844         * rtl.h (may_trap_after_code_motion_p): Delete prototype.
6845         * rtlanal.c (may_trap_after_code_motion_p): Delete.
6846         (may_trap_p, may_trap_or_fault_p): Pass 0/1 as flags.
6847
6848 2009-02-04  H.J. Lu  <hongjiu.lu@intel.com>
6849
6850         AVX Programming Reference (January, 2009)
6851         * config/i386/sse.md (*vpclmulqdq): New.
6852
6853 2009-02-04  Jakub Jelinek  <jakub@redhat.com>
6854
6855         PR tree-optimization/38977
6856         PR gcov-profile/38292
6857         * calls.c (special_function_p): Disregard __builtin_ prefix.
6858
6859 2009-02-04  Hariharan Sandanagobalane  <hariharan@picochip.com>
6860
6861         * config/picochip/picochip.c (GO_IF_LEGITIMATE_ADDRESS): Disallow
6862         non-indexable addresses even before reload.
6863
6864 2009-02-03  Joseph Myers  <joseph@codesourcery.com>
6865
6866         PR c/29129
6867         * c-decl.c (grokdeclarator): Mark [*] arrays in field declarators
6868         as having variable size.  Do not give an error for unnamed
6869         parameters with [*] declarators.  Give a warning for type names
6870         with [*] declarators and mark them as variable size.
6871         * c-parser.c (c_parser_sizeof_expression): Do not give an error
6872         for sizeof applied to [*] type names.
6873
6874 2009-02-03  Andrew Pinski  <andrew_pinski@playstation.sony.com>
6875
6876         PR C++/36607
6877         * convert.c (convert_to_integer): Treat OFFSET_TYPE like INTEGER_TYPE.
6878
6879 2009-02-03  Jakub Jelinek  <jakub@redhat.com>
6880
6881         * gcc.c (process_command): Update copyright notice dates.
6882         * gcov.c (print_version): Likewise.
6883         * gcov-dump.c (print_version): Likewise.
6884         * mips-tfile.c (main): Likewise.
6885         * mips-tdump.c (main): Likewise.
6886
6887 2009-02-03  Joseph Myers  <joseph@codesourcery.com>
6888
6889         PR c/35433
6890         * c-typeck.c (composite_type): Set TYPE_SIZE and TYPE_SIZE_UNIT
6891         for composite type involving a zero-length array type.
6892
6893 2009-02-03  Jakub Jelinek  <jakub@redhat.com>
6894
6895         PR target/35318
6896         * function.c (match_asm_constraints_1): Skip over
6897         initial optional % in the constraint.
6898
6899         PR inline-asm/39059
6900         * c-parser.c (c_parser_postfix_expression): If fixed point is not
6901         supported, don't accept FIXED_CSTs.
6902         * c-decl.c (finish_declspecs): Error if fixed point is not supported
6903         and _Sat is used without _Fract/_Accum.  Set specs->type to
6904         integer_type_node for cts_fract/cts_accum if fixed point is not
6905         supported.
6906
6907 2009-02-02  Catherine Moore  <clm@codesourcery.com>
6908
6909         * sde.h (SUBTARGET_ARM_SPEC): Don't assemble -fpic code as -mabicalls.
6910
6911 2009-02-02  Richard Sandiford  <rdsandiford@googlemail.com>
6912
6913         * config/mips/mips.h (FILE_HAS_64BIT_SYMBOLS): New macro.
6914         (ABI_HAS_64BIT_SYMBOLS): Use it.
6915         (DWARF2_ADDR_SIZE): Use it instead of ABI_HAS_64BIT_SYMBOLS.
6916
6917 2009-02-02  Paul Brook  <paul@codesourcery.com>
6918
6919         * config/arm/arm.md (arm_addsi3): Add r/r/k alternative.
6920
6921 2009-02-02  Jakub Jelinek  <jakub@redhat.com>
6922
6923         PR inline-asm/39058
6924         * recog.h (asm_operand_ok): Add constraints argument.
6925         * recog.c (asm_operand_ok): Likewise.  If it is set, for digits
6926         recurse on matching constraint.
6927         (check_asm_operands): Pass constraints as 3rd argument to
6928         asm_operand_ok.  Don't look up matching constraint here.
6929         * stmt.c (expand_asm_operands): Pass NULL as 3rd argument
6930         to asm_operand_ok.
6931
6932 2009-02-02  Ben Elliston  <bje@au.ibm.com>
6933
6934         * doc/tm.texi (Storage Layout): Fix TARGET_ALIGN_ANON_BITFIELD and
6935         TARGET_NARROW_VOLATILE_BITFIELD macro names.
6936
6937 2009-01-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6938
6939         * doc/install.texi (hppa*-hp-hpux*): Update binutils and linker
6940         information.  Remove some obsolete information.  Reorganize.
6941
6942         * config/pa/fptr.c: Revert license to GPL 2.
6943         * config/pa/milli64.S: Likewise.
6944
6945 2009-01-31  Dave Korn  <dave.korn.cygwin@gmail.com>
6946
6947         PR target/38904
6948         * mkmap-flat.awk (END):  Use pe_dll command-line arg to pass
6949         LIBRARY name in, instead of hard-coding it.
6950         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*):  Add an
6951         extra target make frag to tmake_files according to EH model.
6952         (i[34567]86-*-mingw* | x86_64-*-mingw*):  Likewise.
6953         * config/i386/t-dw2-eh, config/i386/t-sjlj-eh:  Add new target
6954         frags that define makefile variable EH_MODEL appropriately.
6955         * config/i386/cygming.h (DWARF2_UNWIND_INFO):  Add comment.
6956         * config/i386/cygwin.h (LIBGCC_EH_EXTN):  Define to nothing or
6957         to "-sjlj" according to type of EH configured.
6958         (LIBGCC_SONAME):  Concatenate it to shared library base name.
6959         * config/i386/mingw32.h (LIBGCC_EH_EXTN):  Define to "_dw2" or
6960         to "_sjlj" according to type of EH configured.
6961         (LIBGCC_SONAME):  Concatenate it to shared library base name.
6962         * config/i386/t-cygming (SHLIB_SONAME):  Use EH_MODEL.
6963         (SHLIB_LINK):  Add missing semicolon to if-else construct.
6964         (SHLIB_MKMAP_OPTS):  Pass library name to mkmap-flat.awk as
6965         string value of "pe_dll" command-line option.
6966         * config/i386/t-cygwin (SHLIB_EH_EXTENSION):  New helper.
6967         (SHLIB_SONAME):  Use it when overriding t-cygming default.
6968         (SHLIB_IMPLIB):  Override t-cygming default.
6969         (SHLIB_MKMAP_OPTS):  Pass library name to mkmap-flat.awk as
6970         string value of "pe_dll" command-line option.
6971
6972 2009-01-31  Dave Korn  <dave.korn.cygwin@gmail.com>
6973
6974         PR target/38952
6975         * config/i386/i386.c (ix86_builtin_setjmp_frame_value): New.
6976         (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Override default to point at it.
6977
6978 2009-01-31  Richard Guenther  <rguenther@suse.de>
6979
6980         PR tree-optimization/38937
6981         * tree-ssa-structalias.c (do_sd_constraint): Do not shortcut
6982         computing the transitive closure.
6983
6984 2009-01-30  Richard Guenther  <rguenther@suse.de>
6985
6986         PR tree-optimization/39041
6987         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1):
6988         Propagate variable indices only if the types match for this stmt.
6989
6990 2009-01-30  Jakub Jelinek  <jakub@redhat.com>
6991
6992         PR target/39013
6993         * c-decl.c (pop_scope): Set DECL_EXTERNAL for functions declared
6994         inline but never defined.
6995
6996 2009-01-30  Wolfgang Gellerich  <gellerich@de.ibm.com>
6997
6998         * config/s390/s390.md (*insv<mode>_reg_extimm): Removed.
6999         (*insv_h_di_reg_extimm): New insn.
7000         (*insv_l<mode>_reg_extimm): New insn.
7001
7002 2009-01-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
7003
7004         * config/picochip/picochip.c (flag_conserve_stack): set
7005         PARAM_LARGE_STACK_FRAME and PARAM_STACK_FRAME_GROWTH to zero under
7006         fconserve-stack. Reduce call-overhead used by inliner.
7007
7008 2009-01-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
7009
7010         PR/38157
7011         * common.opt (flag_conserve_stack): Initialised to zero.
7012
7013 2009-01-30  Kai Tietz  <kai.tietz@onevision.com>
7014
7015         PR/39002
7016         * config/i386/i386.c (ix86_can_use_return_insn_p): Check for nsseregs.
7017         (ix86_expand_epilogue): Take nsseregs in account to use proper restore
7018         method.
7019
7020 2009-01-29  H.J. Lu  <hongjiu.lu@intel.com>
7021
7022         * ira-color.c (allocno_reload_assign): Update comments.
7023         * regmove.c (regmove_optimize): Likewise.
7024
7025         * ra.h: Removed.
7026
7027 2009-01-29  Robert Millan  <rmh@aybabtu.com>
7028
7029         * gcc/config.gcc: Recognize GNU/kOpenSolaris (*-*-kopensolaris*-gnu).
7030         * gcc/config/i386/kopensolaris-gnu.h: New file.  Undefine
7031         `MD_UNWIND_SUPPORT'.
7032         * gcc/config/kopensolaris-gnu.h: New file (based on kfreebsd-gnu.h).
7033
7034 2009-01-29  Kazu Hirata  <kazu@codesourcery.com>
7035
7036         PR tree-optimization/39007
7037         * tree-loop-distribution.c (generate_builtin): Use
7038         recompute_dominator to compute the immediate dominator of the
7039         basic block just after the loop.
7040
7041 2009-01-29  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
7042
7043         * config/i386/sol2-10.h [!HAVE_AS_IX86_DIFF_SECT_DELTA]
7044         (ASM_OUTPUT_DWARF_PCREL): Define.
7045
7046 2009-01-29  Vladimir Makarov  <vmakarov@redhat.com>
7047
7048         * doc/tm.texi (TARGET_IRA_COVER_CLASSES): Modify description.
7049         * doc/passes.texi: Remove entries about regclass, local-alloc, and
7050         global.  Modify entries about regmove and IRA.
7051
7052         * ra-conflict.c: Remove the file.
7053
7054         * reload.c (push_reload, find_dummy_reload): Remove flag_ira.
7055
7056         * tree-pass.h (pass_local_alloc, pass_global_alloc): Remove.
7057         (pass_regclass_init): Rename to pass_reginfo_init.
7058
7059         * cfgloopanal.c (estimate_reg_pressure_cost): Remove flag_ira.
7060
7061         * toplev.h (flag_ira): Remove.
7062
7063         * caller-save.c (setup_save_areas): Remove flag_ira.
7064
7065         * ira-color.c (ira_reuse_stack_slot, ira_mark_new_stack_slot): Ditto.
7066
7067         * global.c: Remove the file.
7068
7069         * opts.c (decode_options): Remove flag_ira.
7070
7071         * hard-reg-set.h (losing_caller_save_reg_set): Remove.
7072
7073         * regmove.c: Modify file description.
7074         (find_use_as_address, try_auto_increment): Define them only if
7075         AUTO_INC_DEC is defined.
7076         (replacement_quality, replace_in_call_usage, fixup_match_1,
7077         stable_and_no_regs_but_for_p): Remove.
7078         (reg_set_in_bb): Make it static.
7079         (regmove_optimize): Remove flag_ira and code which worked for
7080         !flag_ira.
7081
7082         * local-alloc.c: Remove the file.
7083
7084         * common.opt (fira): Remove.
7085
7086         * ira.c: Include except.h.
7087         (eliminable_regset): Move from global.c.
7088         (mark_elimination): Ditto.  Remove flag_ira.
7089         (reg_renumber, struct equivalence, reg_equiv, equiv_mem,
7090         equiv_mem_modified, validate_equiv_mem_from_store,
7091         validate_equiv_mem, equiv_init_varies_p, equiv_init_movable_p,
7092         contains_replace_regs, memref_referenced_p, memref_used_between_p,
7093         no_equiv, recorded_label_ref): Move from local-alloc.c.
7094         (update_equiv_regs): Ditto.  Make it static.
7095         (print_insn_chain, print_insn_chains): Move it from global.c.
7096         (pseudo_for_reload_consideration_p): Ditto.  Remove flag_ira.
7097         (build_insn_chain): Ditto.  Make it static.
7098         (ra_init_live_subregs): Move from ra-conflict.c.  Make it static.
7099         Rename to init_live_subregs.
7100         (gate_ira): Remove flag_ira.
7101
7102         * regclass.c: Rename reginfo.c.  Change file description.
7103         (FORBIDDEN_INC_DEC_CLASSES): Remove.
7104         (reg_class_superclasses, forbidden_inc_dec_class, in_inc_dec): Remove.
7105         (init_reg_sets_1): Remove code for evaluation of
7106         reg_class_superclasses and losing_caller_save_reg_set.
7107         (init_regs): Remove init_reg_autoinc.
7108         (struct costs, costs, init_cost, ok_for_index_p_nonstrict,
7109         ok_for_base_p_nonstrict): Remove.
7110         (regclass_init): Rename to reginfo_init.  Don't initialize init_cost.
7111         (pass_regclass_init): Rename to pass_reginfo_init.  Modify
7112         corresponding entries.
7113         (dump_regclass, record_operand_costs, scan_one_insn,
7114         init_reg_autoinc, regclass, record_reg_classes, copy_cost,
7115         record_address_regs, auto_inc_dec_reg_p): Remove.
7116         (gt-regclass.h): Rename to gt-reginfo.h.
7117
7118         * rtl.h (dump_global_regs, retry_global_alloc,
7119         build_insn_chain, dump_local_alloc, update_equiv_regs): Remove.
7120
7121         * Makefile.in (RA_H): Remove.
7122         (OBJS-common): Remove global.o, local-alloc.o, and ra-conflict.o.
7123         Rename regclass.o to reginfo.o.
7124         (regclass.o): Rename to reginfo.o.  Rename gt-regclass.h to
7125         gt-reginfo.h.
7126         (global.o, local-alloc.o, ra-conflict.o): Remove entries.
7127         (GTFILES): Rename regclass.c to reginfo.c.
7128
7129         * passes.c (init_optimization_passes): Remove pass_local_alloc and
7130         pass_global_alloc.  Rename pass_regclass_init to pass_reginfo_init.
7131
7132         * reload1.c (compute_use_by_pseudos, reload, count_pseudo,
7133         count_spilled_pseudo, find_reg, alter_reg, delete_output_reload):
7134         Remove flag_ira.
7135         (finish_spills): Ditto.  Remove code for !flag_ira.
7136
7137 2009-01-29  Kenneth Zadeck  <zadeck@naturalbridge.com>
7138
7139         PR middle-end/35854
7140         * doc/invoke.texi (rtl debug options): Complete rewrite.
7141         * auto-inc-dec.c (pass_inc_dec): Rename pass from "auto-inc-dec"
7142         to auto_inc_dec".
7143         * mode-switching.c (pass_mode_switching): Rename pass from
7144         "mode-sw" to "mode_sw".
7145         * except.c (pass_convert_to_eh_ranges): Rename pass from
7146         "eh-ranges" to "eh_ranges".
7147         * lower-subreg.c (pass_lower_subreg): Renamed pass from "subreg"
7148         to "subreg1".
7149
7150
7151 2009-01-29  Andrey Belevantsev  <abel@ispras.ru>
7152             Alexander Monakov  <amonakov@ispras.ru>
7153
7154         PR middle-end/38857
7155         * sel-sched.c (count_occurrences_1): Check that *cur_rtx is a hard
7156         register.
7157         (move_exprs_to_boundary): Change return type and pass through
7158         should_move from move_op.  Relax assert.  Update usage ...
7159         (schedule_expr_on_boundary): ... here.  Use should_move instead of
7160         cant_move.
7161         (move_op_orig_expr_found): Indicate that insn was disconnected from
7162         stream.
7163         (code_motion_process_successors): Do not call after_merge_succs
7164         callback if original expression was not found when traversing any of
7165         the branches.
7166         (code_motion_path_driver): Change return type.  Update prototype.
7167         (move_op): Update comment.  Add a new parameter (should_move).  Update
7168         prototype.  Set *should_move based on indication provided by
7169         move_op_orig_expr_found.
7170
7171 2009-01-28  Pat Haugen  <pthaugen@us.ibm.com>
7172
7173         * doc/invoke.texi (avoid-indexed-addresses): Document new option.
7174         * config/rs6000/rs6000-protos.h (avoiding_indexed_address_p): Declare.
7175         * config/rs6000/rs6000.opt (avoid-indexed-addresses): New option.
7176         * config/rs6000/rs6000.c (rs6000_override_options): Default
7177         avoid-indexed-addresses on for Power6, off for everything else.
7178         (avoiding_indexed_address_p): New function.
7179         (rs6000_legitimize_address): Use it.
7180         (rs6000_legitimate_address): Likewise.
7181         * config/rs6000/rs6000.md (movXX_updateX): Likewise
7182
7183 2009-01-28  Kazu Hirata  <kazu@codesourcery.com>
7184
7185         PR tree-optimization/38997
7186         * tree-loop-distribution.c (generate_memset_zero): Use
7187         POINTER_PLUS_EXPR for a pointer addition.
7188
7189 2009-01-28  Andreas Krebbel  <krebbel1@de.ibm.com>
7190
7191         * config/s390/s390.md (bswap<mode>2): New pattern added.
7192
7193 2009-01-28  Wolfgang Gellerich  <gellerich@de.ibm.com>
7194
7195         * config/s390/s390.md (*tls_load_31): Added type attribute.
7196
7197 2009-01-28  Wolfgang Gellerich  <gellerich@de.ibm.com>
7198
7199         * config/s390/s390.md: Fix a few comments.
7200
7201 2009-01-28  Wolfgang Gellerich  <gellerich@de.ibm.com>
7202
7203         * config/s390/s390.md (*tmsi_reg): Fixed z10prop attribute.
7204         (*tm<mode>_full): Fixed z10prop attribute.
7205         (*tst<mode>_extimm): Fixed z10prop attribute.
7206         (*tst<mode>_cconly_extimm): Fixed z10prop attribute.
7207         (*tstqiCCT_cconly): Fixed z10prop attribute.
7208         (*cmpsi_ccu_zerohi_rlsi): Fixed z10prop attribute.
7209         (*movsi_larl): Fixed z10prop attribute.
7210         (*movsi_zarch): Fixed z10prop attribute.
7211         (*movsi_eas): Fixed z10prop attribute.
7212         (*movhi): Fixed z10prop attribute.
7213         (*movqi): Fixed z10prop attribute.
7214         (*movstrictqi): Fixed z10prop attribute.
7215         (*mov<mode>): Fixed z10prop attribute.
7216         (*movcc): Fixed z10prop attribute.
7217         (*sethighpartdi_64): Fixed z10prop attribute.
7218         (*zero_extendhi<mode>2_z10): Fixed z10prop attribute.
7219         (*negdi2_sign_cc): Fixed z10prop attribute.
7220         (*negdi2_sign): Fixed z10prop attribute.
7221         (*absdi2_sign_cc): Fixed z10prop attribute.
7222         (*absdi2_sign): Fixed z10prop attribute.
7223         (*negabsdi2_sign_cc): Fixed z10prop attribute.
7224         (*negabsdi2_sign): Fixed z10prop attribute.
7225         (*cmp_and_trap_signed_int<mode>): Fixed z10prop attribute.
7226         (*cmp_and_trap_unsigned_int<mode>): Fixed z10prop attribute.
7227         (doloop_si64): Fixed z10prop attribute.
7228         (doloop_si31): Fixed z10prop attribute.
7229         (doloop_long): Fixed z10prop attribute.
7230         (indirect_jump): Fixed z10prop attribute.
7231         (nop): Fixed z10prop attribute.
7232         (main_base_64): Fixed z10prop attribute.
7233         (reload_base_64): Fixed z10prop attribute.
7234
7235 2009-01-28  Jakub Jelinek  <jakub@redhat.com>
7236
7237         PR rtl-optimization/38740
7238         * reorg.c (gate_handle_delay_slots): Avoid dbr scheduling
7239         if !optimize.
7240         * config/mips/mips.c (mips_reorg): Likewise.
7241
7242 2009-01-28  Richard Guenther  <rguenther@suse.de>
7243
7244         PR tree-optimization/38926
7245         * tree-ssa-pre.c (add_to_value): Assert we add only expressions
7246         with the correct value id to a value.
7247         (do_regular_insertion): Use the value number of edoubleprime
7248         for the value number of the expr.
7249
7250         Revert
7251         2008-08-21  Richard Guenther  <rguenther@suse.de>
7252
7253         * tree-ssa-pre.c (insert_into_preds_of_block): Before inserting
7254         a PHI ask VN if it is already available.
7255         * tree-ssa-sccvn.h (vn_phi_lookup): Declare.
7256         * tree-ssa-sccvn.c (vn_phi_lookup): Export.
7257
7258 2009-01-28  Jakub Jelinek  <jakub@redhat.com>
7259
7260         PR middle-end/38934
7261         * tree-vrp.c (extract_range_from_assert): For LE_EXPR and LT_EXPR
7262         set to varying whenever max has TREE_OVERFLOW set, similarly
7263         for GE_EXPR and GT_EXPR and TREE_OVERFLOW min.
7264
7265 2009-01-28  Richard Guenther  <rguenther@suse.de>
7266
7267         PR middle-end/38908
7268         * tree-ssa.c (warn_uninitialized_var): Do not warn for seemingly
7269         uninitialized aggregate uses in call arguments.
7270
7271 2009-01-28  Paolo Bonzini  <bonzini@gnu.org>
7272
7273         PR tree-optimization/38984
7274         * tree-ssa-structalias.c (get_constraints_for_1): Do not use
7275         the nothing_id variable if -fno-delete-null-pointer-checks.
7276
7277 2009-01-28  Uros Bizjak  <ubizjak@gmail.com>
7278
7279         PR target/38988
7280         * config/i386/i386.md (set_rip_rex64): Wrap operand 1 in label_ref.
7281         (set_got_offset_rex64): Ditto.
7282
7283 2009-01-27  H.J. Lu  <hongjiu.lu@intel.com>
7284
7285         PR target/38941
7286         * doc/extend.texi: Improve local variable with asm reg.
7287
7288 2009-01-27  Adam Nemet  <anemet@caviumnetworks.com>
7289
7290         * c.opt (Wpacked-bitfield-compat): Change init value to -1.
7291         * c-opts.c (c_common_post_options): If -W*packed-bitfield-compat
7292         was not supplied then set warn_packed_bitfield_compat to the
7293         default value of 1.
7294         * stor-layout.c (place_field): Check warn_packed_bitfield_compat
7295         against 1.
7296
7297 2009-01-27  Richard Guenther  <rguenther@suse.de>
7298
7299         PR tree-optimization/38503
7300         * cfgexpand.c (expand_gimple_basic_block): Ignore
7301         GIMPLE_CHANGE_DYNAMIC_TYPE during expansion.
7302         * tree-ssa-structalias.c (set_uids_in_ptset): Do not prune
7303         variables that cannot have TBAA applied.
7304         (compute_points_to_sets): Do not remove GIMPLE_CHANGE_DYNAMIC_TYPE
7305         statements.
7306
7307 2009-01-27  Uros Bizjak  <ubizjak@gmail.com>
7308
7309         PR middle-end/38969
7310         * calls.c (initialize_argument_information): Do not wrap complex
7311         arguments in SAVE_EXPR.
7312
7313 2009-01-26  Andreas Tobler  <a.tobler@schweiz.org>
7314
7315         * config/t-vxworks (LIBGCC2_INCLUDES): Fix typo.
7316         (INSTALL_LIBGCC): Revert typo commit.
7317
7318 2009-01-26  Richard Guenther  <rguenther@suse.de>
7319
7320         PR tree-optimization/38745
7321         * tree-ssa-alias.c (update_alias_info_1): Exclude RESULT_DECL
7322         from special handling.
7323
7324 2009-01-26  Richard Guenther  <rguenther@suse.de>
7325
7326         PR tree-optimization/38745
7327         * tree-ssa.c (execute_update_addresses_taken): Do not include
7328         variables that cannot possibly be a register in not_reg_needs.
7329         Do not clear TREE_ADDRESSABLE on vars that may not become
7330         registers.
7331         * tree-ssa.c (update_alias_info_1): Include those in the set
7332         of addressable vars.
7333
7334 2009-01-26  Richard Guenther  <rguenther@suse.de>
7335
7336         PR middle-end/38851
7337         * Makefile.in (tree-ssa-dse.o): Add langhooks.h.
7338         * tree-ssa-dse.c: Include langhooks.h
7339         (execute_simple_dse): Remove stores with zero size.
7340
7341 2009-01-24  Jakub Jelinek  <jakub@redhat.com>
7342
7343         PR c/38957
7344         * c-typeck.c (c_finish_return): Handle POINTER_PLUS_EXPR the same way
7345         as PLUS_EXPR.
7346
7347 2009-01-24  Julian Brown  <julian@codesourcery.com>
7348
7349         * config/arm/t-linux-eabi (LIB2FUNCS_STATIC_EXTRA): Add
7350         config/arm/linux-atomic.c.
7351         * config/arm/linux-atomic.c: New.
7352
7353 2009-01-24  Eric Botcazou  <ebotcazou@adacore.com>
7354
7355         * config/sparc/linux.h (DBX_REGISTER_NUMBER): Delete.
7356         * config/sparc/linux64.h (DBX_REGISTER_NUMBER): Likewise.
7357         * config/sparc/sysv4.h (DBX_REGISTER_NUMBER): Likewise.
7358
7359 2009-01-24  H.J. Lu  <hongjiu.lu@intel.com>
7360
7361         PR c/38938
7362         * c-opts.c (c_common_handle_option): Update warn_pointer_sign
7363         properly.
7364
7365 2009-01-24  Sebastian Pop  <sebastian.pop@amd.com>
7366
7367         PR tree-optimization/38953
7368         * graphite.c (graphite_verify): Add a call to verify_loop_closed_ssa.
7369         (scop_adjust_phis_for_liveouts): Initialize false_i to zero.
7370         (gloog): Split the exit of the scop when the scop exit is a loop exit.
7371         (graphite_transform_loops): Only call cleanup_tree_cfg if gloog
7372         changed the CFG.
7373
7374 2009-01-24  Paul Brook  <paul@codesourcery.com>
7375
7376         * config/arm/neon.md (neon_type): Move to arm.md.
7377         (neon_mov<VSTRUCT>): Add neon_type attribute.
7378         * config/arm/arm.md (neon_type): Move to here.
7379         (conds): Add "unconditioal" and use as default for NEON insns.
7380
7381 2009-01-24  Ben Elliston  <bje@au.ibm.com>
7382
7383         * bitmap.h (BITMAP_FREE): Eliminate `implicit conversion from
7384         void *' warning from -Wc++-compat.
7385         * Makefile.in (dominance.o-warn): Remove.
7386
7387 2009-01-23  Paolo Bonzini  <bonzini@gnu.org>
7388
7389         PR tree-optimization/38932
7390         * fold-const.c (fold_unary_ignore_overflow): New.
7391         * tree.h (fold_unary_ignore_overflow): Declare.
7392         * tree-ssa-ccp.c (ccp_fold): Use fold_unary_ignore_overflow.
7393         * tree-ssa-sccvn.c (visit_reference_op_load,
7394         simplify_unary_expression): Likewise.
7395
7396 2009-01-22  Adam Nemet  <anemet@caviumnetworks.com>
7397
7398         * c-decl.c (finish_struct): Move code to set DECL_PACKED after
7399         DECL_BIT_FIELD is alreay known.  Also inherit packed for bitfields
7400         regardless of their type.
7401         * c-common.c (handle_packed_attribute): Don't ignore packed on
7402         bitfields.
7403         * c.opt (Wpacked-bitfield-compat): New warning option.
7404         * stor-layout.c (place_field): Warn if offset of a field changed.
7405         * doc/extend.texi (packed): Mention the ABI change.
7406         * doc/invoke.texi (-Wpacked-bitfield-compat): Document.
7407         (Warning Options): Add it to the list.
7408
7409 2009-01-22  H.J. Lu  <hongjiu.lu@intel.com>
7410
7411         * c-opts.c (c_common_post_options): Fix a typo in comments.
7412
7413 2009-01-22  Steve Ellcey  <sje@cup.hp.com>
7414
7415         PR middle-end/38615
7416         * gimplify.c (gimplify_init_constructor): Fix promotion of const
7417         variables to static.
7418         * doc/invoke.texi (-fmerge-all-constants): Update description.
7419
7420 2009-01-22  Uros Bizjak  <ubizjak@gmail.com>
7421
7422         PR target/38931
7423         * config/i386/i386.md (*movsi_1): Use type "mmx" for alternative 2.
7424         (*movdi_1_rex64): Use type "mmx" for alternative 5.
7425
7426 2009-01-22  Richard Earnshaw  <rearnsha@arm.com>
7427
7428         * arm.h (DATA_ALIGNMENT): Align structures, unions and arrays to
7429         a word boundary.
7430         (LOCAL_ALIGNMENT): Similarly.
7431
7432 2009-01-22  Mark Shinwell  <shinwell@codesourcery.com>
7433             Joseph Myers  <joseph@codesourcery.com>
7434
7435         * config/arm/arm.c (all_architectures): Add iWMMXt2 entry.
7436         * config/arm/arm-cores.def: New ARM_CORE entry for iWMMXt2.
7437         * config/arm/arm-tune.md: Regenerate.
7438         * doc/invoke.texi (ARM Options): Document -mcpu=iwmmxt2 and
7439         -march=iwmmxt2.
7440
7441 2009-01-22  Mark Shinwell  <shinwell@codesourcery.com>
7442
7443         * config/arm/bpabi.h (SUBTARGET_EXTRA_ASM_SPEC): Bump EABI
7444         version number to five.
7445
7446 2009-01-22  Dodji Seketeli  <dodji@redhat.com>
7447
7448         PR c++/38930
7449         * c-decl.c (clone_underlying_type): Revert PR c++/26693 changes.
7450         * c-common.c (set_underlying_type): Likewise.
7451         (is_typedef_decl ): Likewise
7452         * tree.h: Likewise
7453         (set_underlying_type): Likewise.
7454         (is_typedef_type): Likewise.
7455
7456 2009-01-21  Vladimir Makarov  <vmakarov@redhat.com>
7457
7458         PR middle-end/38587
7459         * ira-color.c (coalesce_spill_slots): Don't coalesce allocnos
7460         crossing setjmps.
7461
7462 2009-01-21  Dave Korn  <dave.korn.cygwin@gmail.com>
7463
7464         PR bootstrap/37660
7465         * config/i386/cygwin.h (SHARED_LIBGCC_SPEC):  New helper macro.
7466         (LIBGCC_SPEC):  Don't define.
7467         (REAL_LIBGCC_SPEC):  Define instead, using SHARED_LIBGCC_SPEC.
7468
7469 2009-01-21  Uros Bizjak  <ubizjak@gmail.com>
7470
7471         PR rtl-optimization/38879
7472         * alias.c (base_alias_check): Unaligned access via AND address can
7473         alias all surrounding object types except those with sizes equal
7474         or wider than the size of unaligned access.
7475
7476 2009-01-21  Dodji Seketeli  <dodji@redhat.com>
7477
7478         PR c++/26693
7479         * c-decl.c (clone_underlying_type): Move this ...
7480         * c-common.c (set_underlying_type): ... here.
7481         Also, make sure the function properly sets TYPE_STUB_DECL() on
7482         the newly created typedef variant type.
7483         (is_typedef_decl ): New entry point.
7484         * tree.h: Added a new member member_types_needing_access_check to
7485         struct tree_decl_non_common.
7486         (set_underlying_type): New entry point.
7487         (is_typedef_type): Likewise.
7488
7489 2009-01-21  Bingfeng Mei  <bmei@broadcom.com>
7490
7491         * alias.c (walk_mems_1, walk_mems_2, insn_alias_sets_conflict_p):
7492         Check whether two instructions have memory references that
7493         belong to conflicting alias sets.  walk_mems_1 and walk_mems_2
7494         are helper functions for traversing.
7495         * alias.h (insn_alias_sets_confilict_p): New prototypes.
7496         * ddg.c (add_inter_loop_mem_dep): Call insn_alias_sets_conflict_p
7497         not to draw dependency edge for instructions with non-conflicting
7498         alias sets.
7499
7500 2009-01-20  Joseph Myers  <joseph@codesourcery.com>
7501
7502         PR other/38758
7503         * longlong.h: Update copyright years.  Use soft-fp license notice.
7504         Sync __clz_tab declaration with glibc.
7505
7506 2009-01-20  Steve Ellcey  <sje@cup.hp.com>
7507
7508         PR target/30687
7509         * doc/extend.texi (syscall_linkage): New.
7510         (version_id): Modify.
7511
7512 2009-01-20  Andrew Pinski  <andrew_pinski@playstation.sony.com>
7513             Richard Guenther  <rguenther@suse.de>
7514
7515         PR tree-optimization/38747
7516         PR tree-optimization/38748
7517         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Disable the VCE
7518         conversion if the base address is an indirect reference and the
7519         aliasing sets could cause issues.
7520
7521 2009-01-20  Sebastian Pop  <sebastian.pop@amd.com>
7522
7523         * common.opt (fgraphite, fgraphite-identity): Add comment for
7524         explaining why these options are not documented.
7525
7526 2009-01-20  Sebastian Pop  <sebastian.pop@amd.com>
7527
7528         * graphite.c (stmt_simple_for_scop_p): Also handle cases when
7529         gimple_call_lhs is NULL.
7530
7531 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
7532
7533         PR target/38868
7534         * emit-rtl.c (adjust_address_1): Make sure memref is never
7535         overwritten.
7536
7537 2009-01-20  Ben Elliston  <bje@au.ibm.com>
7538
7539         * libgcov.c (__gcov_execl, __gcov_execlp, __gcov_execle): Remove
7540         const qualifier from arg parameter. Remove unnecessary cast to char *.
7541         * gcov-io.h (__gcov_execl, __gcov_execlp, __gcov_execle): Remove
7542         const qualifier from arg 2.
7543
7544 2009-01-19  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
7545
7546         * config/darwin.h: Add static-libgfortran to LINK_SPEC.
7547
7548 2009-01-19  Vladimir Makarov  <vmakarov@redhat.com>
7549
7550         PR c/38869
7551         * rtl.h (reinit_regs): New prototype.
7552         * regclass.c: Include ira.h.
7553         (reinit_regs): New.
7554         * Makefile.in (regclass.o): Add ira.h.
7555         * config/i386/i386.c (ix86_maybe_switch_abi): Use reinit_regs.
7556
7557 2009-01-18  H.J. Lu  <hongjiu.lu@intel.com>
7558
7559         PR target/38736
7560         * c-common.c (handle_aligned_attribute): Use
7561         ATTRIBUTE_ALIGNED_VALUE instead of BIGGEST_ALIGNMENT for
7562         default alignment value.
7563
7564         * c-cppbuiltin.c (c_cpp_builtins): Define __BIGGEST_ALIGNMENT__.
7565
7566         * defaults.h (ATTRIBUTE_ALIGNED_VALUE): New.
7567         * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Likewise.
7568
7569         * doc/extend.texi: Update __attribute__ ((aligned)).  Document
7570         __BIGGEST_ALIGNMENT__.
7571
7572         * doc/tm.texi: Document ATTRIBUTE_ALIGNED_VALUE.
7573
7574 2009-01-18  Richard Guenther  <rguenther@suse.de>
7575
7576         PR tree-optimization/38819
7577         * tree-flow.h (operation_could_trap_helper_p): Declare.
7578         * tree-eh.c (operation_could_trap_helper_p): Export.
7579         * tree-ssa-sccvn.h (vn_nary_may_trap): Declare.
7580         * tree-ssa-sccvn.c (vn_nary_may_trap): New function.
7581         * tree-ssa-pre.c (insert_into_preds_of_block): Check if we
7582         are about to insert a possibly trapping instruction and fail
7583         in this case.
7584
7585 2009-01-18  Andreas Schwab  <schwab@suse.de>
7586
7587         * doc/install.texi (Configuration): Remove obsolete paragraph
7588         about use of --with-gnu-ld with --with-gnu-as.
7589
7590 2009-01-18  Kazu Hirata  <kazu@codesourcery.com>
7591
7592         * doc/extend.texi, doc/gimple.texi, doc/invoke.texi,
7593         doc/md.texi, doc/sourcebuild.texi, doc/tm.texi: Fix typos.
7594         Follow spelling conventions.
7595
7596 2009-01-18  Ben Elliston  <bje@au.ibm.com>
7597
7598         * bitmap.c (bitmap_obstack_alloc_stat): Adjust cast to eliminate
7599         C++ warning about implicit conversion from void * to struct
7600         bitmap_head_def *.
7601         (bitmap_obstack_free): Likewise for bitmap_element *.
7602         * Makefile.in (bitmap.o-warn): Remove.
7603
7604 2009-01-17  Dave Korn  <dave.korn.cygwin@gmail.com>
7605
7606         * Makefile.in (BACKENDLIBS):  Reorder to match dependencies.
7607
7608 2009-01-17  Sebastian Pop  <sebastian.pop@amd.com>
7609             Tobias Grosser  <tobi.grosser@amd.com>
7610
7611         * graphite.c (graphite_trans_scop_block): Do not block single
7612         nested loops.
7613
7614 2009-01-16  Alexandre Oliva  <aoliva@redhat.com>
7615
7616         * ebitmap.h (ebitmap_iter_init): Initialize all fields.
7617         * ipa-struct-reorg.c (gen_struct_type): Replace known-true
7618         test with assertion.
7619
7620 2009-01-16  Richard Guenther  <rguenther@suse.de>
7621
7622         PR tree-optimization/38835
7623         PR middle-end/36227
7624         * fold-const.c (fold_binary): Remove PTR + INT -> (INT)(PTR p+ INT)
7625         and INT + PTR -> (INT)(PTR p+ INT) folding.
7626         * tree-ssa-address.c (create_mem_ref): Properly use POINTER_PLUS_EXPR.
7627
7628 2009-01-16  Adam Nemet  <anemet@caviumnetworks.com>
7629
7630         PR target/38554
7631         * expmed.c (expand_shift): With SHIFT_COUNT_TRUNCATED, don't lift
7632         the subreg from a lowpart subreg if it is also casting the value.
7633
7634 2009-01-16  Sebastian Pop  <sebastian.pop@amd.com>
7635             Tobias Grosser  <tobi.grosser@amd.com>
7636
7637         * graphite.c (compare_prefix_loops): New.
7638         (build_scop_canonical_schedules): Rewritten.
7639         (graphite_transform_loops): Move build_scop_canonical_schedules
7640         after build_scop_iteration_domain.
7641
7642 2009-01-16  Sebastian Pop  <sebastian.pop@amd.com>
7643             Tobias Grosser  <tobi.grosser@amd.com>
7644
7645         * graphite.c (add_conditions_to_domain): Add the loops to
7646         the dimension of the iteration domain.  Do copy the domain
7647         only when it exists.
7648         (build_scop_conditions_1): Do not call add_conditions_to_domain.
7649         (add_conditions_to_constraints): New.
7650         (can_generate_code_stmt, can_generate_code): Removed.
7651         (gloog): Do not call can_generate_code.
7652         (graphite_transform_loops): Call add_conditions_to_constraints
7653         after building the iteration domain.
7654
7655 2009-01-16  Jakub Jelinek  <jakub@redhat.com>
7656
7657         PR tree-optimization/38789
7658         * tree-ssa-threadedge.c
7659         (record_temporary_equivalences_from_stmts_at_dest): Ignore calls to
7660         __builtin_constant_p.
7661
7662 2009-01-16  Kenneth Zadeck  <zadeck@naturalbridge.com>
7663
7664         * dce.c (delete_unmarked_insns): Reversed the order that insns are
7665         examined before deleting them.
7666
7667 2009-01-16  Richard Earnshaw  <rearnsha@arm.com>
7668
7669         * function.c (aggregate_value_p): Correctly extract the function
7670         type from CALL_EXPR_FN lookup.
7671
7672 2009-01-16  Hariharan Sandanagobalane  <hariharan@picochip.com>
7673
7674         * config/picochip/picochip.c (picochip_override_options): Revert
7675         CFI asm flag disable commited previously.
7676
7677 2009-01-15  Sebastian Pop  <sebastian.pop@amd.com>
7678             Tobias Grosser  <tobi.grosser@amd.com>
7679             Jan Sjodin  <jan.sjodin@amd.com>
7680
7681         * graphite.c (scan_tree_for_params): On substractions negate
7682         all the coefficients of the term.
7683         (clast_to_gcc_expression_red): New.  Handle reduction expressions
7684         of more than two operands.
7685         (clast_to_gcc_expression): Call clast_to_gcc_expression_red.
7686         (get_vdef_before_scop): Handle also the case of default definitions.
7687
7688 2009-01-15  Richard Sandiford  <rdsandiford@googlemail.com>
7689
7690         * caller-save.c (add_used_regs_1, add_used_regs): New functions.
7691         (insert_one_insn): Use them instead of REG_DEAD and REG_INC notes.
7692         Also use them when walking CALL_INSN_FUNCTION_USAGE.
7693
7694 2009-01-15  H.J. Lu  <hongjiu.lu@intel.com>
7695             Joey Ye  <joey.ye@intel.com>
7696
7697         PR middle-end/37843
7698         * cfgexpand.c (expand_stack_alignment): Don't update stack
7699         boundary nor check incoming stack boundary here.
7700         (gimple_expand_cfg): Update stack boundary and check incoming
7701         stack boundary here.
7702
7703 2009-01-15  Kenneth Zadeck  <zadeck@naturalbridge.com>
7704
7705         * dce.c (find_call_stack_args, delete_unmarked_insns): Fixed comments.
7706
7707 2009-01-14  Jakub Jelinek  <jakub@redhat.com>
7708
7709         PR rtl-optimization/38245
7710         * calls.c (expand_call): Add stack arguments to
7711         CALL_INSN_FUNCTION_USAGE even for pure calls (when
7712         ACCUMULATE_OUTGOING_ARGS) and even for args partially passed
7713         in regs and partially in memory or BLKmode arguments.
7714         (emit_library_call_value_1): Add stack arguments to
7715         CALL_INSN_FUNCTION_USAGE even for pure calls (when
7716         ACCUMULATE_OUTGOING_ARGS).
7717         * dce.c: Include tm_p.h.
7718         (find_call_stack_args): New function.
7719         (deletable_insn_p): Call it for CALL_P insns.  Add ARG_STORES
7720         argument.
7721         (mark_insn): Call find_call_stack_args for CALL_Ps.
7722         (prescan_insns_for_dce): Walk insns backwards in bb rather than
7723         forwards.  Allocate and free arg_stores bitmap if needed, pass it
7724         down to deletable_insn_p, don't mark stores set in arg_stores
7725         bitmap, clear the bitmap at the beginning of each bb.
7726         * Makefile.in (dce.o): Depend on $(TM_P_H).
7727
7728 2009-01-14  Michael Meissner  <gnu@the-meissners.org>
7729
7730         PR target/22599
7731         * config/i386/i386.c (print_operand): Add tests for 'D', 'C', 'F', 'f'
7732         to make sure the insn is a conditional test (bug 22599).  Reformat a
7733         few long lines.
7734
7735 2009-01-14  Sebastian Pop  <sebastian.pop@amd.com>
7736
7737         PR middle-end/38431
7738         * graphite.c (get_vdef_before_scop, scop_adjust_vphi): New.
7739         (scop_adjust_phis_for_liveouts): Call scop_adjust_vphi.
7740         (gloog): Do not call cleanup_tree_cfg.
7741         (graphite_transform_loops): Call cleanup_tree_cfg after all
7742         scops have been code generated.
7743
7744 2009-01-14  Basile Starynkevitch  <basile@starynkevitch.net>
7745         * doc/gty.texi (Invoking the garbage collector): Added new node
7746         and section documenting ggc_collect.
7747
7748 2009-01-14  Richard Guenther  <rguenther@suse.de>
7749
7750         PR tree-optimization/38826
7751         PR middle-end/38477
7752         * tree-ssa-structalias.c (emit_alias_warning): Emit the pointer
7753         initialization notes only if we actually emitted a warning.
7754         (intra_create_variable_infos): Add constraints for a result decl
7755         that is passed by hidden reference.
7756         (build_pred_graph): Mark all related variables non-direct on
7757         address-taking.
7758
7759 2009-01-14  Nick Clifton  <nickc@redhat.com>
7760
7761         * ira-conflicts.c: Include addresses.h for the definition of
7762         base_reg_class.
7763         (ira_build_conflicts): Use base_reg_class instead of BASE_REG_CLASS.
7764         * Makefile.in: Add a dependency of ira-conflicts.o on addresses.h.
7765
7766 2009-01-13  Vladimir Makarov  <vmakarov@redhat.com>
7767
7768         PR target/38811
7769         * Makefile.in (ira-lives.o): Add except.h.
7770
7771         * ira-lives.c: Include except.h.
7772         (process_bb_node_lives): Process can_throw_internal.
7773
7774 2009-01-13  Jakub Jelinek  <jakub@redhat.com>
7775
7776         PR rtl-optimization/38774
7777         * combine.c (simplify_set): When undoing cc_use change, don't do
7778         PUT_CODE on the newly created comparison, but instead put back the
7779         old comparison.
7780
7781 2009-01-13  Joseph Myers  <joseph@codesourcery.com>
7782
7783         * doc/invoke.texi (ARM Options): Update lists of -mcpu and -march
7784         values.  Remove duplicate arm8 entry.
7785
7786 2009-01-13  Sebastian Pop  <sebastian.pop@amd.com>
7787
7788         PR tree-optimization/38786
7789         * graphite.c (expand_scalar_variables_ssa_name): New, outlined from
7790         the SSA_NAME case of expand_scalar_variables_expr.
7791         Set the type of an expression to the type of its assign statement.
7792         (expand_scalar_variables_expr): Also gather the scalar computation
7793         used to index the memory access.  Do not pass loop_p.
7794         Fix comment.  Stop recursion on tcc_constant or tcc_declaration.
7795         (expand_scalar_variables_stmt): Pass to expand_scalar_variables_expr
7796         the gimple_stmt_iterator where it inserts new code.
7797         Do not pass loop_p.
7798         (copy_bb_and_scalar_dependences): Do not pass loop_p.
7799         (translate_clast): Update call to copy_bb_and_scalar_dependences.
7800
7801 2009-01-13  Sebastian Pop  <sebastian.pop@amd.com>
7802
7803         * graphite.h (debug_value): Removed.
7804         * graphite.c (debug_value): Removed.
7805
7806 2009-01-13  Richard Earnshaw  <rearnsha@arm.com>
7807
7808         * config/arm/arm.c (output_move_double): Don't synthesize thumb-2
7809         ldrd/strd with two 32-bit instructions.
7810
7811 2009-01-13  Richard Earnshaw  <rearnsha@arm.com>
7812
7813         * config/arm/arm.c (struct processors): Pass for speed down into
7814         cost helper functions.
7815         (const_ok_for_op): Handle COMPARE and inequality nodes.
7816         (arm_rtx_costs_1): Rewrite.
7817         (arm_size_rtx_costs): Update prototype.
7818         (arm_rtx_costs): Pass speed down to helper functions.
7819         (arm_slowmul_rtx_costs): Rework cost calculations.
7820         (arm_fastmul_rtx_costs, arm_xscale_rtx_costs): Likewise.
7821         (arm_9e_rtx_costs): Likewise.
7822
7823 2009-01-13  Uros Bizjak  <ubizjak@gmail.com>
7824
7825         * config/alpha/alpha.c (alpha_legitimate_address_p): Explicit
7826         relocations of local symbols wider than UNITS_PER_WORD are not valid.
7827         (alpha_legitimize_address): Do not split local symbols wider than
7828         UNITS_PER_WORD into HIGH/LO_SUM parts.
7829
7830 2009-01-13  Danny Smith  <dannysmith@users.sourceforge.net>
7831
7832         PR bootstrap/38580
7833         * gcc.c (process_command): Replace call to execvp with calls
7834         to pex_one and exit.
7835
7836 2009-01-03  Anatoly Sokolov  <aesok@post.ru>
7837
7838         PR target/29141
7839         * config/avr/t-avr (LIB1ASMFUNCS): Add _tablejump_elpm.
7840         * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Add
7841         variant for devices with 3-byte PC.
7842         (__tablejump_elpm__): New.
7843
7844 2009-01-12  Jakub Jelinek  <jakub@redhat.com>
7845
7846         PR c/32041
7847         * c-parser.c (c_parser_postfix_expression): Allow `->' in
7848         offsetof member-designator, handle it as `[0].'.
7849
7850 2009-01-12  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7851
7852         * pa.c (pa_asm_output_mi_thunk): Use pc-relative branch to thunk
7853         function when not using named sections on targets with named sections
7854         if branch distance is less than 262132.
7855
7856 2009-01-12  Richard Earnshaw  <rearnsha@arm.com>
7857
7858         * combine.c (combine_instructions):  Recompute
7859         optimize_this_for_speed_p  for each BB in the main combine loop.
7860
7861 2009-01-12  Tomas Bily  <tbily@suse.cz>
7862
7863         PR middlend/38385
7864         * tree-loop-distribution.c (prop_phis): New function.
7865         (generate_builtin): Call prop_phis.
7866         * testsuite/gcc.dg/tree-ssa/pr38385.c: New file.
7867
7868 2009-01-12  Jakub Jelinek  <jakub@redhat.com>
7869
7870         PR tree-optimization/38807
7871         * tree-ssa-reassoc.c (remove_visited_stmt_chain): Don't look at
7872         gimple_visited_p unless stmt is GIMPLE_ASSIGN.
7873
7874 2009-01-11  Adam Nemet  <anemet@caviumnetworks.com>
7875
7876         * expmed.c (store_bit_field_1): Properly truncate the paradoxical
7877         subreg of op0 to the original op0.
7878
7879 2009-01-11  Laurent GUERBY  <laurent@guerby.net>
7880
7881         * doc/sourcebuild.texi (Source Tree): Move up intl and fixinc.
7882
7883 2009-01-11  Markus Schoepflin  <markus.schoepflin@comsoft.de>
7884
7885         PR debug/7055
7886         * gcc/mips-tfile.c (parse_def): Fix parsing of def strings
7887         starting with digits.
7888
7889 2009-01-10  Jakub Jelinek  <jakub@redhat.com>
7890
7891         PR target/38695
7892         * config/arm/arm.c (arm_is_long_call_p): Don't call
7893         arm_function_in_section_p if decl isn't a FUNCTION_DECL.
7894
7895 2009-01-09  Steven Bosscher  <steven@gcc.gnu.org>
7896
7897         * regrename.c (regrename_optimize): Fix dumping.
7898         (find_oldest_value_reg): Preserve REG_POINTER.
7899         (copy_hardreg_forward_1): Likewise.
7900
7901 2009-01-09  Diego Novillo  <dnovillo@google.com>
7902
7903         * gimple.h (struct gimple_statement_base) <uid>: Document
7904         the restrictions on its use.
7905         (gimple_uid): Tidy.
7906         (gimple_set_uid): Tidy.
7907
7908 2009-01-09  Jakub Jelinek  <jakub@redhat.com>
7909
7910         * config/i386/i386.c (ix86_expand_movmem, ix86_expand_setmem): Add
7911         zero guard even if align_bytes != 0 and count is smaller than
7912         size_needed.
7913
7914 2009-01-09  Vladimir Makarov  <vmakarov@redhat.com>
7915
7916         PR rtl-optimization/38495
7917         * ira-emit.c (print_move_list, ira_debug_move_list): New functions.
7918         (add_range_and_copies_from_move_list): Print all added ranges.
7919         Add ranges to memory optimized destination.
7920
7921 2009-01-09  Jakub Jelinek  <jakub@redhat.com>
7922
7923         PR target/38686
7924         PR target/38708
7925         * config/i386/i386.c (override_options): Reject
7926         -mstringop-strategy=rep_8byte with -m32.
7927         (ix86_expand_movmem): For size_needed == 1 set epilogue_size_needed
7928         to 1.  Do count comparison against epilogue_size_needed at compile
7929         time even when count_exp was constant forced into register.  For
7930         size_needed don't jump to epilogue, instead just avoid aligning
7931         and invoke the body algorithm.  If need_zero_guard, add zero guard
7932         even if count is non-zero, but smaller than size_needed + number of
7933         bytes that could be stored for alignment.
7934         (ix86_expand_setmem): For size_needed == 1 set epilogue_size_needed
7935         to 1.  If need_zero_guard, add zero guard even if count is non-zero,
7936         but smaller than size_needed + number of bytes that could be stored
7937         for alignment.  Compare size_needed with epilogue_size_needed instead
7938         of desired_align - align, don't adjust size_needed, pass
7939         epilogue_size_needed to the epilogue expanders.
7940
7941         PR c/35742
7942         * c-pretty-print.c (pp_c_expression): Handle GOTO_EXPR like BIND_EXPR.
7943
7944 2009-01-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7945
7946         * pa.c (last_address): Change to unsigned.
7947         (update_total_code_bytes): Change argument to unsigned.  Don't
7948         check if insn addresses are set.
7949         (pa_output_function_epilogue): Set last_address to UINT_MAX if insn
7950         addresses are not set.
7951         (pa_asm_output_mi_thunk): Handle wrap when updating last_address.
7952
7953 2009-01-09  Nick Clifton  <nickc@redhat.com>
7954
7955         * config/sh/symbian.c: Replace uses of DECL_INLINE with
7956         DECL_DECLARED_INLINE_P.
7957
7958 2009-01-09  Jakub Jelinek  <jakub@redhat.com>
7959
7960         PR middle-end/38347
7961         * dojump.c (do_jump_by_parts_zero_rtx): Use mode instead of
7962         GET_MODE (op0) in operand_subword_force calls.
7963
7964         PR middle-end/38771
7965         * fold-const.c (fold_unary): For COMPOUND_EXPR and COND_EXPR,
7966         fold_convert arg0 operands to TREE_TYPE (op0) first.
7967
7968 2009-01-08  Vladimir Makarov  <vmakarov@redhat.com>
7969
7970         * params.def (ira-max-conflict-table-size): Decrease default value
7971         to 1000.
7972
7973 2009-01-08  Jakub Jelinek  <jakub@redhat.com>
7974
7975         PR tree-optimization/37031
7976         * lambda-code.c (lambda_collect_parameters): Call pointer_set_destroy
7977         on parameter_set.
7978         (build_access_matrix): Reserve correct size for AM_MATRIX vector,
7979         allocate it using gc instead of heap, use VEC_quick_push instead of
7980         VEC_safe_push.
7981         * graphite.c (build_access_matrix): Allocate AM_MATRIX vector using gc
7982         instead of heap, use VEC_quick_push instead of VEC_safe_push.
7983         * tree-data-ref.h (struct access_matrix): Change matrix to gc
7984         allocated vector from heap allocated.
7985         * lambda.h: Add DEF_VEC_ALLOC_P for gc allocated lambda_vector.
7986         * tree-loop-linear.c (linear_transform_loops): Allocate nest
7987         vector only after perfect_loop_nest_depth call.
7988
7989 2009-01-08  Sebastian Pop  <sebastian.pop@amd.com>
7990             Jan Sjodin  <jan.sjodin@amd.com>
7991
7992         PR tree-optimization/38559
7993         * graphite.c (debug_value, copy_constraint,
7994         swap_constraint_variables, scale_constraint_variable, ): New.
7995         (get_lower_bound, get_upper_bound): Removed.
7996         (graphite_trans_bb_strip_mine): Clean up this code that works
7997         only for constant number of iterations.  Fully copy upper and
7998         lower bound constraints, not only the constant part of them.
7999         * graphite.h (debug_value): Declared.
8000
8001 2009-01-08  Ira Rosen  <irar@il.ibm.com>
8002
8003         PR tree-optimization/37194
8004         * tree-vect-transform.c (vect_estimate_min_profitable_iters):
8005         Don't add the cost of cost model guard in prologue to scalar
8006         outside cost in case of known number of iterations.
8007
8008 2009-01-07  Nathan Froyd  <froydnj@codesourcery.com>
8009             Alan Modra  <amodra@bigpond.net.au>
8010
8011         * config/rs6000/rs6000.c (rs6000_legitimize_address): Check for
8012         non-word-aligned REG+CONST addressing.
8013
8014 2009-01-07  Uros Bizjak  <ubizjak@gmail.com>
8015
8016         PR target/38706
8017         * config/alpha/alpha.c (alpha_end_function): For TARGET_ABI_OSF, call
8018         free_after_compilation when outputting a thunk.
8019         (alpha_output_mi_thunk_osf): Assert that we are processing a thunk.
8020         Do not call free_after_compilation here.
8021
8022 2009-01-07  Uros Bizjak  <ubizjak@gmail.com>
8023
8024         * config/i386/i386.c (ix86_target_string): Use ARRAY_SIZE.
8025         (ix86_valid_target_attribute_inner_p): Ditto.
8026
8027 2009-01-07  Jan Sjodin  <jan.sjodin@amd.com>
8028
8029         PR tree-optimization/38492
8030         PR tree-optimization/38498
8031         * tree-check.c (operator_is_linear, scev_is_linear_expression): New.
8032         * tree-chrec.h (scev_is_linear_expression): Declared.
8033         * graphite.c (graphite_cannot_represent_loop_niter): New.
8034         (scopdet_basic_block_info): Call graphite_cannot_represent_loop_niter.
8035         (graphite_loop_normal_form): Use gcc_assert.
8036         (scan_tree_for_params): Use CASE_CONVERT.
8037         (phi_node_is_iv, bb_contains_non_iv_scalar_phi_nodes): New.
8038         (build_scop_conditions_1): Call bb_contains_non_iv_scalar_phi_nodes.
8039         Use gcc_assert.  Discard scops that contain unhandled cases.
8040         (build_scop_conditions): Return a boolean status for unhandled cases.
8041         (strip_mine_profitable_p): Print the loop number, not its depth.
8042         (is_interchange_valid): Pass the depth of the loop nest, don't
8043         recompute it wrongly.
8044         (graphite_trans_bb_block): Same.
8045         (graphite_trans_bb_block): Print tentative of loop blocking.
8046         (graphite_trans_scop_block): Do not print that the loop has been
8047         blocked.
8048         (graphite_transform_loops): Do not handle scops that contain condition
8049         scalar phi nodes.
8050
8051 2009-01-07  H.J. Lu  <hongjiu.lu@intel.com>
8052
8053         AVX Programming Reference (December, 2008)
8054         * config/i386/avxintrin.h (_mm256_stream_si256): New.
8055         (_mm256_stream_pd): Likewise.
8056         (_mm256_stream_ps): Likewise.
8057
8058         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MOVNTDQ256,
8059         IX86_BUILTIN_MOVNTPD256 and IX86_BUILTIN_MOVNTPS256.
8060         (ix86_special_builtin_type): Add VOID_FTYPE_PV4DI_V4DI.
8061         (bdesc_special_args): Add __builtin_ia32_movntdq256,
8062         __builtin_ia32_movntpd256 and __builtin_ia32_movntps256.
8063         (ix86_init_mmx_sse_builtins): Handle VOID_FTYPE_PV4DI_V4DI.
8064         (ix86_expand_special_args_builtin): Likewise.
8065
8066         * config/i386/sse.md (AVXMODEDI): New.
8067         (avx_movnt<mode>): Likewise.
8068         (avx_movnt<mode>): Likewise.
8069         (<sse>_movnt<mode>): Remove AVX support.
8070         (sse2_movntv2di): Likewise.
8071
8072 2009-01-07  Richard Guenther  <rguenther@suse.de>
8073
8074         PR middle-end/38751
8075         * fold-const.c (extract_muldiv): Remove obsolete comment.
8076         (fold_plusminus_mult_expr): Undo MINUS_EXPR
8077         to PLUS_EXPR canonicalization for the canonicalization.
8078
8079 2009-01-07  Gerald Pfeifer  <gerald@pfeifer.com>
8080
8081         * doc/install.texi (alpha*-dec-osf*): Remove note on 32-bit
8082         hosted cross-compilers generating less efficient code.
8083
8084 2009-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
8085
8086         * function.h (rtl_data): Add a dbr_scheduled_p field.
8087         * reorg.c (dbr_schedule): Set it.
8088         (gate_handle_delay_slots): Check it.
8089         * config/mips/mips.c (mips_base_delayed_branch): Delete.
8090         (mips_reorg): Check flag_delayed_branch instead of
8091         mips_base_delayed_branch.
8092         (mips_override_options): Don't set mips_base_delayed_branch
8093         or flag_delayed_branch.
8094
8095 2009-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
8096
8097         PR rtl-optimization/38426.
8098         * ira.c (ira): Set current_function_is_leaf earlier.
8099
8100 2009-01-06  Jakub Jelinek  <jakub@redhat.com>
8101
8102         PR rtl-optimization/38722
8103         * combine.c (try_combine): Don't modify PATTERN (i3) and notes
8104         too early, only set a flag and modify after last possible
8105         undo_all point.
8106
8107 2009-01-06  Janis Johnson  <janis187@us.ibm.com>
8108
8109         PR c/34252
8110         * ginclude/float.h: Rename DECnn_DEN to DECnn_SUBNORMAL_MIN.
8111         * real.c (decimal_single_format): Correct values of emin and emax.
8112         (decimal_double_format): Ditto.
8113         (decimal_quad_format): Ditto.
8114         * c-cppbuiltin.c (builtin_define_decimal_float_constants): Adjust
8115         computation of DECnn_MIN and DECnn_MAX for corrected values of
8116         emin and emax.  Define __DECnn_SUBNORMAL_MIN__ instead of
8117         __DECnn_MIN__, and adjust its computation for the corrected value
8118         of emin.
8119
8120 2009-01-06  Jan Hubicka  <jh@suse.cz>
8121
8122         PR target/38744
8123         * config/i386/i386.c (ix86_expand_call): Use ARRAY_SIZE.
8124
8125 2009-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
8126
8127         * doc/contrib.texi (Contributors): Slightly adjust the end note.
8128         Add Robert Clark to the list of testers.
8129
8130 2009-01-06  Jan Hubicka  <jh@suse.cz>
8131             Kai Tietz  <kai.tietz@onevision.com>
8132
8133         * config/i386/i386.md (*msabi_syvabi): Add SSE regs clobbers.
8134         * config/i386/i386.c (ix86_expand_call): Add clobbers.
8135
8136 2009-01-06  Jan Hubicka  <jh@suse.cz>
8137             Kai Tietz  <kai.tietz@onevision.com>
8138
8139         * config/i386/i386.h (CONDITIONAL_CALL_USAGE): SSE regs are not used
8140         for w64 ABI.
8141         * config/i386/i386.c (struct ix86_frame): Add padding0 and nsseregs.
8142         (ix86_nsaved_regs): Count only general purpose regs.
8143         (ix86_nsaved_sseregs): New.
8144         (ix86_compute_frame_layout): Update nsseregs; set preferred alignment
8145         to 16 for w64; compute padding and size of sse reg save area.
8146         (ix86_emit_save_regs, ix86_emit_save_regs_using_mov): Save only
8147         general purpose regs.
8148         (ix86_emit_save_sse_regs_using_mov): New.
8149         (ix86_expand_prologue): Save SSE regs if needed.
8150         (ix86_emit_restore_regs_using_mov): Use only general purpose regs.
8151         (ix86_emit_restore_sse_regs_using_mov): New.
8152         (ix86_expand_epilogue): Save SSE regs if needed.
8153
8154 2009-01-06  Jan Hubicka  <jh@suse.cz>
8155             Kai Tietz  <kai.tietz@onevision.com>
8156
8157         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Enable for MSABI
8158         * config/i386/i386.c (init_cumulative_args): Disallow calls of MSABI
8159         functions when accumulate outgoing args is off.
8160
8161 2009-01-06  H.J. Lu  <hongjiu.lu@intel.com>
8162
8163         PR bootstrap/38742
8164         * ira-color.c (ira_reuse_stack_slot): Check ENABLE_IRA_CHECKING
8165         before using pseudos_have_intersected_live_ranges_p.
8166
8167         * ira-int.h (ira_assert): Always define.
8168
8169 2009-01-06  H.J. Lu  <hongjiu.lu@intel.com>
8170
8171         AVX Programming Reference (December, 2008)
8172         * config/i386/avxintrin.h (_mm_permute2_pd): Removed.
8173         (_mm256_permute2_pd): Likewise.
8174         (_mm_permute2_ps): Likewise.
8175         (_mm256_permute2_ps): Likewise.
8176         * config/i386/i386.md (UNSPEC_VPERMIL2): Likewise.
8177         * config/i386/sse.md (avx_vpermil2<mode>3): Likewise.
8178
8179         * config/i386/i386.c (ix86_builtins): Remove
8180         IX86_BUILTIN_VPERMIL2PD, IX86_BUILTIN_VPERMIL2PS,
8181         IX86_BUILTIN_VPERMIL2PD256 and IX86_BUILTIN_VPERMIL2PS256.
8182         (ix86_builtin_type): Remove V8SF_FTYPE_V8SF_V8SF_V8SI_INT,
8183         V4DF_FTYPE_V4DF_V4DF_V4DI_INT, V4SF_FTYPE_V4SF_V4SF_V4SI_INT
8184         and V2DF_FTYPE_V2DF_V2DF_V2DI_INT.
8185         (bdesc_args): Remove __builtin_ia32_vpermil2pd,
8186         __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256 and
8187         __builtin_ia32_vpermil2ps256.
8188         (ix86_init_mmx_sse_builtins): Updated.
8189         (ix86_expand_args_builtin): Likewise.
8190
8191 2009-01-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8192
8193         * pa.c (output_call): Relocate non-jump insns in the delay slot of
8194         long absolute calls when generating PA 2.0 code.
8195
8196 2009-01-05  Vladimir Makarov  <vmakarov@redhat.com>
8197
8198         PR rtl-optimization/38583
8199         * params.h (IRA_MAX_CONFLICT_TABLE_SIZE): New macro.
8200
8201         * params.def (ira-max-conflict-table-size): New.
8202
8203         * doc/invoke.texi (ira-max-conflict-table-size): Decribe.
8204
8205         * ira.h (ira_conflicts_p): New external definition.
8206
8207         * ira-conflicts.c (build_conflict_bit_table): Do not build too big
8208         table.  Report this.  Return result of building.
8209         (ira_build_conflicts): Use ira_conflicts_p.  Check result of
8210         building conflict table.
8211
8212         * ira-color.c (fast_allocation): Use num instead of ira_allocnos_num.
8213         (ira_color): Use ira_conflicts_p.
8214
8215         * global.c: Include ira.h.
8216         (pseudo_for_reload_consideration_p, build_insn_chain): Use
8217         ira_conflicts_p.
8218
8219         * Makefile.in (global.o): Add ira.h.
8220
8221         * ira-build.c (mark_all_loops_for_removal,
8222         propagate_some_info_from_allocno): New.
8223         (remove_unnecessary_allocnos): Call
8224         propagate_some_info_from_allocno.
8225         (remove_low_level_allocnos): New.
8226         (remove_unnecessary_regions): Add parameter.  Call
8227         mark_all_loops_for_removal and remove_low_level_allocnos.  Pass
8228         parameter to remove_unnecessary_regions.
8229         (ira_build): Remove all regions but root if the conflict table was
8230         not built.  Update conflict hard regs for allocnos crossing calls.
8231
8232         * ira.c (ira_conflicts_p): New global.
8233         (ira): Define and use ira_conflicts_p.
8234
8235         * reload1.c (compute_use_by_pseudos, reload, count_pseudo,
8236         count_spilled_pseudo, find_reg, alter_reg, finish_spills,
8237         emit_input_reload_insns, delete_output_reload): Use ira_conflicts_p.
8238
8239 2009-01-06  Ben Elliston  <bje@au.ibm.com>
8240
8241         * gengtype-lex.l (YY_NO_INPUT): Define.
8242
8243 2009-01-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>
8244
8245         PR c/34911
8246         * c-common.c (handle_vector_size_attribute): Also reject
8247         BOOLEAN_TYPE types.
8248
8249 2009-01-05  Sebastian Pop  <sebastian.pop@amd.com>
8250
8251         PR tree-optimization/38492
8252         * graphite.c (rename_map_elt, debug_rename_elt,
8253         debug_rename_map_1, debug_rename_map, new_rename_map_elt,
8254         rename_map_elt_info, eq_rename_map_elts,
8255         get_new_name_from_old_name, bb_in_sese_p): Moved around.
8256         (sese_find_uses_to_rename_use): Renamed sese_build_livein_liveouts_use.
8257         (sese_find_uses_to_rename_bb): Renamed sese_build_livein_liveouts_bb.
8258         (sese_build_livein_liveouts): New.
8259         (new_sese, free_sese): New.
8260         (new_scop): Call new_sese.
8261         (free_scop): Call free_sese.
8262         (rename_variables_from_edge, rename_phis_end_scop): Removed.
8263         (register_old_new_names): Renamed register_old_and_new_names.
8264         (register_scop_liveout_renames, add_loop_exit_phis,
8265         insert_loop_close_phis, struct igp,
8266         default_liveout_before_guard, add_guard_exit_phis,
8267         insert_guard_phis, copy_renames): New.
8268         (translate_clast): Call insert_loop_close_phis and insert_guard_phis.
8269         (sese_add_exit_phis_edge): Renamed scop_add_exit_phis_edge.
8270         (rewrite_into_sese_closed_ssa): Renamed scop_insert_phis_for_liveouts.
8271         (scop_adjust_phis_for_liveouts): New.
8272         (gloog): Call scop_adjust_phis_for_liveouts.
8273
8274         * graphite.h (struct sese): Documented.  Added fields liveout,
8275         num_ver and livein.
8276         (SESE_LIVEOUT, SESE_LIVEIN, SESE_LIVEIN_VER, SESE_NUM_VER): New.
8277         (new_sese, free_sese, sese_build_livein_liveouts): Declared.
8278         (struct scop): Added field liveout_renames.
8279         (SCOP_LIVEOUT_RENAMES): New.
8280
8281 2009-01-05  Harsha Jagasia  <harsha.jagasia@amd.com>
8282
8283         PR tree-optimization/38510
8284         * graphite.c (recompute_all_dominators): Call mark_irreducible_loops.
8285         (translate_clast): Call recompute_all_dominators before
8286         graphite_verify.
8287         (gloog): Call recompute_all_dominators before graphite_verify.
8288
8289 2009-01-05  Harsha Jagasia  <harsha.jagasia@amd.com>
8290             Jan Sjodin  <jan.sjodin@amd.com>
8291
8292         PR tree-optimization/38500
8293         * graphite.c (create_sese_edges): Call fix_loop_structure after
8294         splitting blocks.
8295
8296 2009-01-05  Joel Sherrill  <joel.sherrill@oarcorp.com>
8297
8298         * config.gcc: Add m32r*-*-rtems*.
8299         * config/m32r/rtems.h: New file.
8300
8301 2009-01-05  Ben Elliston  <bje@au.ibm.com>
8302
8303         * Makefile.in (.po.gmo): Use mkinstalldirs, not test -d || mkdir.
8304         (.po.pox): Likewise.
8305         (po/gcc.pot): Likewise.
8306
8307 2009-01-04  David S. Miller  <davem@davemloft.net>
8308
8309         * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED_RTX): Delete.
8310         (STARTING_FRAME_OFFSET): Always set to zero.
8311
8312 2009-01-04  Richard Sandiford  <rdsandiford@googlemail.com>
8313
8314         * tree.def (LSHIFT_EXPR, RSHIFT_EXPR): Add commentary.
8315         * tree-cfg.c (verify_gimple_assign_binary): Allow shifts of
8316         fixed-point types, and vectors of the same.
8317
8318 2009-01-04  Richard Sandiford  <rdsandiford@googlemail.com>
8319
8320         * config/mips/sync.md (*mb_barrier): Rename to...
8321         (*memory_barrier): ...this.
8322
8323 2009-01-04  Jonathan Wakely  <jwakely.gcc@gmail.com>
8324
8325         * doc/extend.texi (Function Attributes): Move @cindex after @item
8326         for 'artificial' and 'flatten'. Fix grammar for 'externally_visible'
8327         and put in alphabetical order. Fix 'target' name and put in order.
8328         * doc/invoke.texi (-Wstrict-null-sentinel, -fipa-matrix-reorg): Fix
8329         typos.
8330
8331 2009-01-04  Uros Bizjak  <ubizjak@gmail.com>
8332
8333         * config/s390/s390.md (UNSPEC_MB): Rename from UNSPECV_MB.
8334         (memory_barrier): Expand as unspec instead of unspec_volatile.
8335         Remove mem:BLK from insn operands.  Use Pmode scratch register.
8336         (*memory_barrier): Define as unspec instead of unspec_volatile.
8337         Use (match_dup 0) as input operand.
8338
8339         * config/sparc/sparc.md (UNSPEC_MEMBAR): Rename from UNSPECV_MEMBAR.
8340         * config/sparc/sync.md (memory_barrier): Expand as unspec instead of
8341         unspec_volatile.  Remove mem:BLK from insn operands.  Use Pmode
8342         scratch register.  Remove operand 1.
8343         (*stbar): Define as unspec instead of unspec_volatile.
8344         Use (match_dup 0) as input operand, remove (const_int 8).
8345         (*membar): Define as unspec instead of unspec_volatile.
8346         Use (match_dup 0) as input operand, remove input operand 2.
8347
8348         * config/xtensa/xtensa.md (UNSPEC_MEMW): Rename from UNSPECV_MEMW.
8349         (memory_barrier): Expand as unspec instead of unspec_volatile.
8350         Remove mem:BLK from insn operands.  Use Pmode scratch register.
8351         (*memory_barrier): Define as unspec instead of unspec_volatile.
8352         Use (match_dup 0) as input operand.
8353
8354         * config/ia64/sync.md (memory_barrier): Redefine as expander pattern.
8355         Remove mem:BLK from insn operands.  Use Pmode scratch register.
8356         Set volatile flag on operand 0.
8357         (*memory_barrier): New insn pattern.
8358
8359         * config/rs6000/sync.md (memory_barrier): Remove mem:BLK from
8360         insn operands.
8361         (*memory_barrier): Use (match_dup 0) as input operand.
8362
8363         * config/mips/sync.md (memory_barrier): Redefine as expander pattern.
8364         Remove mem:BLK from insn operands.  Use Pmode scratch register.
8365         Set volatile flag on operand 0.
8366         (*mb_internal): New insn pattern.
8367
8368         * config/alpha/sync.md (*memory_barrier): Rename from *mb_internal.
8369
8370 2009-01-04  Steven Bosscher  <steven@gcc.gnu.org>
8371
8372         PR middle-end/38586
8373         * function.c (struct temp_slot): Move to the section of the file
8374         that deals with temp slots.  Remove field 'address'.
8375         (temp_slot_address_table): New hash table of address -> temp slot.
8376         (struct temp_slot_address_entry): New struct, items for the table.
8377         (temp_slot_address_compute_hash, temp_slot_address_hash,
8378         temp_slot_address_eq, insert_temp_slot_address): Support functions
8379         for the new table.
8380         (find_temp_slot_from_address): Rewrite to use the new hash table.
8381         (remove_unused_temp_slot_addresses): Remove addresses of temp
8382         slots that have been made available.
8383         (remove_unused_temp_slot_addresses_1): Call-back for htab_traverse,
8384         worker function for remove_unused_temp_slot_addresses.
8385         (assign_stack_temp_for_type): Don't clear the temp slot address list.
8386         Add the temp slot address to the address -> temp slot map.
8387         (update_temp_slot_address): Update via insert_temp_slot_address.
8388         (free_temp_slots): Call remove_unused_temp_slot_addresses.
8389         (pop_temp_slots): Likewise.
8390         (init_temp_slots): Allocate the address -> temp slot map, or empty
8391         the map if it is already allocated.
8392         (prepare_function_start): Initialize temp slot processing.
8393
8394 2009-01-04  Steven Bosscher  <steven@gcc.gnu.org>
8395
8396         PR middle-end/38584
8397         * cfgexpand.c (estimate_stack_frame_size): Simplify the estimate:
8398         Calculate the size of all stack vars assuming no packing of stack
8399         vars will happen, replacing a quadratic algorithm with a linear one.
8400
8401 2009-01-03  Jakub Jelinek  <jakub@redhat.com>
8402
8403         PR target/38707
8404         * expmed.c (store_bit_field_1): Don't modify op0 if movstrict insn
8405         can't be used.
8406
8407 2009-01-03  Diego Novillo  <dnovillo@google.com>
8408
8409         * doc/contrib.texi: Update contributions.
8410
8411 2009-01-03  Jakub Jelinek  <jakub@redhat.com>
8412
8413         PR c++/38705
8414         * builtins.c (fold_builtin_memory_op): Give up if either operand
8415         is volatile.  Set srctype or desttype to non-qualified version
8416         of the other type.
8417
8418         PR c/38700
8419         * builtins.c (fold_builtin_expect): Only check DECL_WEAK for VAR_DECLs
8420         and FUNCTION_DECLs.
8421
8422 2009-01-02  Kenneth Zadeck  <zadeck@naturalbridge.com>
8423
8424         PR rtl-optimization/35805
8425         * df-problems.c (df_lr_finalize): Add recursive call to resolve lr
8426         problem if fast dce is able to remove any instructions.
8427         * dce.c (dce_process_block): Fix dump message.
8428
8429 2009-01-02  Mark Mitchell  <mark@codesourcery.com>
8430
8431         PR 33649
8432         * tree-ssa-pre.c (compute_antic): Correct loop bounds.
8433
8434 2009-01-02  Jakub Jelinek  <jakub@redhat.com>
8435
8436         PR middle-end/38690
8437         * tree-flow.h (op_code_prio, op_prio): New prototypes.
8438         * tree-pretty-print.c (op_code_prio): New function.
8439         (op_prio): No longer static.  Use op_code_prio.
8440         * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs):
8441         Use op_prio and op_code_prio to determine if () should be
8442         printed around operand(s) or not.
8443
8444         * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs,
8445         dump_gimple_call, dump_gimple_switch, dump_gimple_cond,
8446         dump_gimple_label, dump_gimple_try, dump_symbols, dump_gimple_phi,
8447         dump_gimple_mem_ops, dump_bb_header, dump_bb_end, pp_cfg_jump): Use
8448         pp_character instead of pp_string for single letter printing.
8449
8450 2009-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
8451
8452         * doc/extend.texi: Fix '#pragma GCC option' typo.
8453
8454 2009-01-02  Richard Guenther  <rguenther@suse.de>
8455
8456         * doc/install.texi (--enable-checking): Mention different
8457         default for stage1.
8458         (--enable-stage1-checking): Document.
8459
8460 2009-01-01  Andrew Pinski  <pinskia@gmail.com>
8461
8462         PR middle-end/30142
8463         * tree-cfg.c (verify_expr): Add INDIRECT_REF case.  Change MODIFY_EXPR
8464         case to be an error.
8465
8466 2009-01-02  Ben Elliston  <bje@au.ibm.com>
8467
8468         * config/fp-bit.h (pack_d): Constify argument.
8469         * config/fp-bit.c (makenan): Constify return type. Remove casts.
8470         (isnan): Constify argument.
8471         (isinf): Likewise.
8472         (iszero): Likewise.
8473         (pack_d): Likewise.
8474         (_fpadd_parts): Constify return type.
8475         (_fpmul_parts): Likewise.
8476         (_fpdiv_parts): Likewise.
8477
8478 2009-01-01  Jakub Jelinek  <jakub@redhat.com>
8479
8480         PR c/36489
8481         * c-typeck.c (add_pending_init): Add IMPLICIT argument.  Only
8482         warn about overwriting initializer with side-effects or
8483         -Woverride-init if !IMPLICIT.
8484         (output_init_element): Likewise.  Pass IMPLICIT down to
8485         add_pending_init.
8486         (process_init_element): Add IMPLICIT argument.  Pass it down
8487         to output_init_element.
8488         (push_init_element, pop_init_level, set_designator): Adjust
8489         process_init_element callers.
8490         (set_nonincremental_init, set_nonincremental_init_from_string):
8491         Adjust add_pending_init callers.
8492         (output_pending_init_elements): Adjust output_init_element callers.
8493         * c-tree.h (process_init_element): Adjust prototype.
8494         * c-parser.c (c_parser_initelt, c_parser_initval): Adjust
8495         process_init_element callers.
8496
8497 \f
8498 Copyright (C) 2009 Free Software Foundation, Inc.
8499
8500 Copying and distribution of this file, with or without modification,
8501 are permitted in any medium without royalty provided the copyright
8502 notice and this notice are preserved.