OSDN Git Service

gcc/
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2009-04-09  David Ayers  <ayers@fsfe.org>
2
3         PR objc/29200
4         * objc/objc-act.c (warn_with_method): Remove helper function.
5         (check_duplicates): Call warning and inform directly.
6         (really_start_method): Likewise.
7
8 2009-04-09  Paolo Bonzini  <bonzini@gnu.org>
9
10         * expmed.c (expand_divmod): Always use a comparison for a division
11         by a large unsigned integer.
12
13         * fold-const.c (tree_single_nonzero_warnv_p): Always treat decls
14         for things others than variables or functions as nonzero.
15
16 2009-04-09  Nick Clifton  <nickc@redhat.com>
17
18         * unwind-compat.c: Change copyright header to refer to version
19         3 of the GNU General Public License with version 3.1 of the
20         GCC Runtime Library Exception and to point readers at the
21         COPYING3 and COPYING3.RUNTIME files and the FSF's license web page.
22         * config/alpha/crtfastmath.c: Likewise.
23         * config/alpha/linux-unwind.h: Likewise.
24         * config/alpha/qrnnd.asm: Likewise.
25         * config/alpha/vms-crt0-64.c: Likewise.
26         * config/alpha/vms-crt0.c: Likewise.
27         * config/alpha/vms-dwarf2.asm: Likewise.
28         * config/alpha/vms-dwarf2eh.asm: Likewise.
29         * config/alpha/vms-psxcrt0-64.c: Likewise.
30         * config/alpha/vms-psxcrt0.c: Likewise.
31         * config/alpha/vms_tramp.asm: Likewise.
32         * config/arc/initfini.c: Likewise.
33         * config/arc/lib1funcs.asm: Likewise.
34         * config/arm/bpabi-v6m.S: Likewise.
35         * config/arm/bpabi.S: Likewise.
36         * config/arm/bpabi.c: Likewise.
37         * config/arm/crti.asm: Likewise.
38         * config/arm/crtn.asm: Likewise.
39         * config/arm/ieee754-df.S: Likewise.
40         * config/arm/ieee754-sf.S: Likewise.
41         * config/arm/lib1funcs.asm: Likewise.
42         * config/arm/libunwind.S: Likewise.
43         * config/arm/linux-atomic.c: Likewise.
44         * config/arm/mmintrin.h: Likewise.
45         * config/arm/pr-support.c: Likewise.
46         * config/arm/unaligned-funcs.c: Likewise.
47         * config/arm/unwind-arm.c: Likewise.
48         * config/arm/unwind-arm.h: Likewise.
49         * config/avr/libgcc.S: Likewise.
50         * config/bfin/crti.s: Likewise.
51         * config/bfin/crtlibid.s: Likewise.
52         * config/bfin/crtn.s: Likewise.
53         * config/bfin/lib1funcs.asm: Likewise.
54         * config/bfin/linux-unwind.h: Likewise.
55         * config/cris/arit.c: Likewise.
56         * config/cris/cris_abi_symbol.c: Likewise.
57         * config/darwin-64.c: Likewise.
58         * config/darwin-crt2.c: Likewise.
59         * config/darwin-crt3.c: Likewise.
60         * config/darwin.h: Likewise.
61         * config/dbxelf.h: Likewise.
62         * config/dfp-bit.c: Likewise.
63         * config/dfp-bit.h: Likewise.
64         * config/elfos.h: Likewise.
65         * config/fixed-bit.c: Likewise.
66         * config/fixed-bit.h: Likewise.
67         * config/fp-bit.c: Likewise.
68         * config/fp-bit.h: Likewise.
69         * config/fr30/crti.asm: Likewise.
70         * config/fr30/crtn.asm: Likewise.
71         * config/fr30/lib1funcs.asm: Likewise.
72         * config/freebsd-spec.h: Likewise.
73         * config/frv/cmovd.c: Likewise.
74         * config/frv/cmovh.c: Likewise.
75         * config/frv/cmovw.c: Likewise.
76         * config/frv/frvbegin.c: Likewise.
77         * config/frv/frvend.c: Likewise.
78         * config/frv/lib1funcs.asm: Likewise.
79         * config/glibc-stdint.h: Likewise.
80         * config/h8300/clzhi2.c: Likewise.
81         * config/h8300/crti.asm: Likewise.
82         * config/h8300/crtn.asm: Likewise.
83         * config/h8300/ctzhi2.c: Likewise.
84         * config/h8300/fixunssfsi.c: Likewise.
85         * config/h8300/lib1funcs.asm: Likewise.
86         * config/h8300/parityhi2.c: Likewise.
87         * config/h8300/popcounthi2.c: Likewise.
88         * config/i386/ammintrin.h: Likewise.
89         * config/i386/att.h: Likewise.
90         * config/i386/avxintrin.h: Likewise.
91         * config/i386/biarch64.h: Likewise.
92         * config/i386/bmmintrin.h: Likewise.
93         * config/i386/cpuid.h: Likewise.
94         * config/i386/cross-stdarg.h: Likewise.
95         * config/i386/crtfastmath.c: Likewise.
96         * config/i386/crtprec.c: Likewise.
97         * config/i386/cygming-crtbegin.c: Likewise.
98         * config/i386/cygming-crtend.c: Likewise.
99         * config/i386/cygwin.asm: Likewise.
100         * config/i386/emmintrin.h: Likewise.
101         * config/i386/gmm_malloc.h: Likewise.
102         * config/i386/gthr-win32.c: Likewise.
103         * config/i386/i386.h: Likewise.
104         * config/i386/immintrin.h: Likewise.
105         * config/i386/linux-unwind.h: Likewise.
106         * config/i386/linux64.h: Likewise.
107         * config/i386/mm3dnow.h: Likewise.
108         * config/i386/mmintrin-common.h: Likewise.
109         * config/i386/mmintrin.h: Likewise.
110         * config/i386/nmmintrin.h: Likewise.
111         * config/i386/pmm_malloc.h: Likewise.
112         * config/i386/pmmintrin.h: Likewise.
113         * config/i386/smmintrin.h: Likewise.
114         * config/i386/sol2-c1.asm: Likewise.
115         * config/i386/sol2-ci.asm: Likewise.
116         * config/i386/sol2-cn.asm: Likewise.
117         * config/i386/sol2-gc1.asm: Likewise.
118         * config/i386/tmmintrin.h: Likewise.
119         * config/i386/unix.h: Likewise.
120         * config/i386/w32-unwind.h: Likewise.
121         * config/i386/wmmintrin.h: Likewise.
122         * config/i386/x86-64.h: Likewise.
123         * config/i386/x86intrin.h: Likewise.
124         * config/i386/xmmintrin.h: Likewise.
125         * config/ia64/crtbegin.asm: Likewise.
126         * config/ia64/crtend.asm: Likewise.
127         * config/ia64/crtfastmath.c: Likewise.
128         * config/ia64/crti.asm: Likewise.
129         * config/ia64/crtn.asm: Likewise.
130         * config/ia64/fde-glibc.c: Likewise.
131         * config/ia64/lib1funcs.asm: Likewise.
132         * config/ia64/linux-unwind.h: Likewise.
133         * config/ia64/quadlib.c: Likewise.
134         * config/ia64/unwind-ia64.c: Likewise.
135         * config/linux.h: Likewise.
136         * config/m32c/m32c-lib1.S: Likewise.
137         * config/m32c/m32c-lib2-trapv.c: Likewise.
138         * config/m32c/m32c-lib2.c: Likewise.
139         * config/m32r/initfini.c: Likewise.
140         * config/m68hc11/larith.asm: Likewise.
141         * config/m68hc11/m68hc11-crt0.S: Likewise.
142         * config/m68k/cf.md: Likewise.
143         * config/m68k/crti.s: Likewise.
144         * config/m68k/crtn.s: Likewise.
145         * config/m68k/lb1sf68.asm: Likewise.
146         * config/m68k/linux-unwind.h: Likewise.
147         * config/mcore/crti.asm: Likewise.
148         * config/mcore/crtn.asm: Likewise.
149         * config/mcore/lib1.asm: Likewise.
150         * config/mips/linux-unwind.h: Likewise.
151         * config/mips/loongson.h: Likewise.
152         * config/mips/mips16.S: Likewise.
153         * config/mmix/crti.asm: Likewise.
154         * config/mmix/crtn.asm: Likewise.
155         * config/pa/fptr.c: Likewise.
156         * config/pa/hpux-unwind.h: Likewise.
157         * config/pa/lib2funcs.asm: Likewise.
158         * config/pa/linux-atomic.c: Likewise.
159         * config/pa/linux-unwind.h: Likewise.
160         * config/pa/milli64.S: Likewise.
161         * config/pa/quadlib.c: Likewise.
162         * config/pa/stublib.c: Likewise.
163         * config/picochip/libgccExtras/adddi3.asm: Likewise.
164         * config/picochip/libgccExtras/ashlsi3.asm: Likewise.
165         * config/picochip/libgccExtras/ashlsi3.c: Likewise.
166         * config/picochip/libgccExtras/ashrsi3.asm: Likewise.
167         * config/picochip/libgccExtras/ashrsi3.c: Likewise.
168         * config/picochip/libgccExtras/cmpsi2.asm: Likewise.
169         * config/picochip/libgccExtras/divmod15.asm: Likewise.
170         * config/picochip/libgccExtras/divmodhi4.asm: Likewise.
171         * config/picochip/libgccExtras/divmodsi4.asm: Likewise.
172         * config/picochip/libgccExtras/longjmp.asm: Likewise.
173         * config/picochip/libgccExtras/lshrsi3.asm: Likewise.
174         * config/picochip/libgccExtras/lshrsi3.c: Likewise.
175         * config/picochip/libgccExtras/parityhi2.asm: Likewise.
176         * config/picochip/libgccExtras/popcounthi2.asm: Likewise.
177         * config/picochip/libgccExtras/setjmp.asm: Likewise.
178         * config/picochip/libgccExtras/subdi3.asm: Likewise.
179         * config/picochip/libgccExtras/ucmpsi2.asm: Likewise.
180         * config/picochip/libgccExtras/udivmodhi4.asm: Likewise.
181         * config/picochip/libgccExtras/udivmodsi4.asm: Likewise.
182         * config/rs6000/750cl.h: Likewise.
183         * config/rs6000/altivec.h: Likewise.
184         * config/rs6000/biarch64.h: Likewise.
185         * config/rs6000/crtresfpr.asm: Likewise.
186         * config/rs6000/crtresgpr.asm: Likewise.
187         * config/rs6000/crtresxfpr.asm: Likewise.
188         * config/rs6000/crtresxgpr.asm: Likewise.
189         * config/rs6000/crtsavfpr.asm: Likewise.
190         * config/rs6000/crtsavgpr.asm: Likewise.
191         * config/rs6000/darwin-asm.h: Likewise.
192         * config/rs6000/darwin-fallback.c: Likewise.
193         * config/rs6000/darwin-fpsave.asm: Likewise.
194         * config/rs6000/darwin-ldouble.c: Likewise.
195         * config/rs6000/darwin-tramp.asm: Likewise.
196         * config/rs6000/darwin-unwind.h: Likewise.
197         * config/rs6000/darwin-vecsave.asm: Likewise.
198         * config/rs6000/darwin-world.asm: Likewise.
199         * config/rs6000/e500crtres32gpr.asm: Likewise.
200         * config/rs6000/e500crtres64gpr.asm: Likewise.
201         * config/rs6000/e500crtres64gprctr.asm: Likewise.
202         * config/rs6000/e500crtrest32gpr.asm: Likewise.
203         * config/rs6000/e500crtrest64gpr.asm: Likewise.
204         * config/rs6000/e500crtresx32gpr.asm: Likewise.
205         * config/rs6000/e500crtresx64gpr.asm: Likewise.
206         * config/rs6000/e500crtsav32gpr.asm: Likewise.
207         * config/rs6000/e500crtsav64gpr.asm: Likewise.
208         * config/rs6000/e500crtsav64gprctr.asm: Likewise.
209         * config/rs6000/e500crtsavg32gpr.asm: Likewise.
210         * config/rs6000/e500crtsavg64gpr.asm: Likewise.
211         * config/rs6000/e500crtsavg64gprctr.asm: Likewise.
212         * config/rs6000/eabi-ci.asm: Likewise.
213         * config/rs6000/eabi-cn.asm: Likewise.
214         * config/rs6000/eabi.asm: Likewise.
215         * config/rs6000/linux-unwind.h: Likewise.
216         * config/rs6000/linux64.h: Likewise.
217         * config/rs6000/paired.h: Likewise.
218         * config/rs6000/paired.md: Likewise.
219         * config/rs6000/ppc64-fp.c: Likewise.
220         * config/rs6000/ppu_intrinsics.h: Likewise.
221         * config/rs6000/rs6000.h: Likewise.
222         * config/rs6000/si2vmx.h: Likewise.
223         * config/rs6000/sol-ci.asm: Likewise.
224         * config/rs6000/sol-cn.asm: Likewise.
225         * config/rs6000/spe.h: Likewise.
226         * config/rs6000/spu2vmx.h: Likewise.
227         * config/rs6000/sysv4.h: Likewise.
228         * config/rs6000/tramp.asm: Likewise.
229         * config/rs6000/vec_types.h: Likewise.
230         * config/s390/linux-unwind.h: Likewise.
231         * config/s390/tpf-unwind.h: Likewise.
232         * config/score/crti.asm: Likewise.
233         * config/score/crtn.asm: Likewise.
234         * config/sh/crt1.asm: Likewise.
235         * config/sh/crti.asm: Likewise.
236         * config/sh/crtn.asm: Likewise.
237         * config/sh/divtab-sh4-300.c: Likewise.
238         * config/sh/divtab-sh4.c: Likewise.
239         * config/sh/divtab.c: Likewise.
240         * config/sh/lib1funcs-4-300.asm: Likewise.
241         * config/sh/lib1funcs-Os-4-200.asm: Likewise.
242         * config/sh/lib1funcs.asm: Likewise.
243         * config/sh/lib1funcs.h: Likewise.
244         * config/sh/linux-atomic.asm: Likewise.
245         * config/sh/linux-unwind.h: Likewise.
246         * config/sh/shmedia.h: Likewise.
247         * config/sh/sshmedia.h: Likewise.
248         * config/sh/ushmedia.h: Likewise.
249         * config/sparc/crtfastmath.c: Likewise.
250         * config/sparc/linux-unwind.h: Likewise.
251         * config/sparc/sol2-c1.asm: Likewise.
252         * config/sparc/sol2-ci.asm: Likewise.
253         * config/sparc/sol2-cn.asm: Likewise.
254         * config/spu/divmodti4.c: Likewise.
255         * config/spu/divv2df3.c: Likewise.
256         * config/spu/float_disf.c: Likewise.
257         * config/spu/float_unsdidf.c: Likewise.
258         * config/spu/float_unsdisf.c: Likewise.
259         * config/spu/float_unssidf.c: Likewise.
260         * config/spu/mfc_multi_tag_release.c: Likewise.
261         * config/spu/mfc_multi_tag_reserve.c: Likewise.
262         * config/spu/mfc_tag_release.c: Likewise.
263         * config/spu/mfc_tag_reserve.c: Likewise.
264         * config/spu/mfc_tag_table.c: Likewise.
265         * config/spu/multi3.c: Likewise.
266         * config/spu/spu_internals.h: Likewise.
267         * config/spu/spu_intrinsics.h: Likewise.
268         * config/spu/spu_mfcio.h: Likewise.
269         * config/spu/vec_types.h: Likewise.
270         * config/spu/vmx2spu.h: Likewise.
271         * config/stormy16/stormy16-lib2.c: Likewise.
272         * config/svr4.h: Likewise.
273         * config/sync.c: Likewise.
274         * config/v850/lib1funcs.asm: Likewise.
275         * config/vxlib-tls.c: Likewise.
276         * config/vxlib.c: Likewise.
277         * config/vxworks-dummy.h: Likewise.
278         * config/xtensa/crti.asm: Likewise.
279         * config/xtensa/crtn.asm: Likewise.
280         * config/xtensa/ieee754-df.S: Likewise.
281         * config/xtensa/ieee754-sf.S: Likewise.
282         * config/xtensa/lib1funcs.asm: Likewise.
283         * config/xtensa/lib2funcs.S: Likewise.
284         * config/xtensa/linux-unwind.h: Likewise.
285         * config/xtensa/unwind-dw2-xtensa.c: Likewise.
286         * config/xtensa/unwind-dw2-xtensa.h: Likewise.
287         * coretypes.h: Likewise.
288         * crtstuff.c: Likewise.
289         * defaults.h: Likewise.
290         * dwarf2.h: Likewise.
291         * emutls.c: Likewise.
292         * gbl-ctors.h: Likewise.
293         * gcov-io.h: Likewise.
294         * ginclude/float.h: Likewise.
295         * ginclude/iso646.h: Likewise.
296         * ginclude/stdarg.h: Likewise.
297         * ginclude/stdbool.h: Likewise.
298         * ginclude/stddef.h: Likewise.
299         * ginclude/stdfix.h: Likewise.
300         * ginclude/stdint-gcc.h: Likewise.
301         * ginclude/tgmath.h: Likewise.
302         * gthr-aix.h: Likewise.
303         * gthr-dce.h: Likewise.
304         * gthr-gnat.c: Likewise.
305         * gthr-gnat.h: Likewise.
306         * gthr-lynx.h: Likewise.
307         * gthr-mipssde.h: Likewise.
308         * gthr-nks.h: Likewise.
309         * gthr-posix.c: Likewise.
310         * gthr-posix.h: Likewise.
311         * gthr-posix95.h: Likewise.
312         * gthr-rtems.h: Likewise.
313         * gthr-single.h: Likewise.
314         * gthr-solaris.h: Likewise.
315         * gthr-tpf.h: Likewise.
316         * gthr-vxworks.h: Likewise.
317         * gthr-win32.h: Likewise.
318         * gthr.h: Likewise.
319         * libgcc2.c: Likewise.
320         * libgcc2.h: Likewise.
321         * libgcov.c: Likewise.
322         * tsystem.h: Likewise.
323         * typeclass.h: Likewise.
324         * unwind-c.c: Likewise.
325         * unwind-compat.h: Likewise.
326         * unwind-dw2-fde-compat.c: Likewise.
327         * unwind-dw2-fde-darwin.c: Likewise.
328         * unwind-dw2-fde-glibc.c: Likewise.
329         * unwind-dw2-fde.c: Likewise.
330         * unwind-dw2-fde.h: Likewise.
331         * unwind-dw2.c: Likewise.
332         * unwind-dw2.h: Likewise.
333         * unwind-generic.h: Likewise.
334         * unwind-pe.h: Likewise.
335         * unwind-sjlj.c: Likewise.
336         * unwind.inc: Likewise.
337         * config/arm/neon-gen.ml: Change generated copyright header to
338         refer to version 3 of the GNU General Public License with
339         version 3.1 of the GCC Runtime Library Exception and to point
340         readers at the COPYING3 and COPYING3.RUNTIME files and the
341         FSF's license web page.
342         * config/arm/arm_neon.h: Regenerate.
343
344 2009-04-09  Jakub Jelinek  <jakub@redhat.com>
345
346         * config/cris/cris.md: Change copyright header to refer to version
347         3 of the GNU General Public License.
348         * doc/install.texi2html: Change copyright header to refer to version
349         3 of the GNU General Public License and to point readers at the
350         COPYING3 file and the FSF's license web page.
351         * config/vax/linux.h: Likewise.
352
353 2009-04-09  Paolo Bonzini  <bonzini@gnu.org>
354
355         * config/i386/i386.md (cmpcc): New.
356         * config/i386/sync.md (sync_compare_and_swap*): Set FLAGS_REG.
357         (sync_compare_and_swap_cc*): Delete.
358
359         * config/s390/s390.c (s390_compare_emitted): Remove.
360         (s390_emit_compare): Handle MODE_CC s390_compare_op0 like
361         s390_compare_emitted used to be handled.  Assert that modes match.
362         (s390_emit_compare_and_swap): Use s390_emit_compare, do not
363         refer to sync_compare_and_swap_ccsi.
364         * config/s390/s390.h (s390_compare_emitted): Remove.
365         * config/s390/s390.md (seq): Look for MODE_CC s390_compare_op0
366         instead of s390_compare_emitted.
367         (stack_protect_test, sync_compare_and_swap_cc): Set s390_compare_op0
368         instead of s390_compare_emitted.
369         * config/s390/s390.md (cmpcc): New.
370         (sync_compare_and_swapqi, sync_compare_and_swaphi): Clobber
371         CC_REGNUM, do not pretend it's set.
372         (sync_compare_and_swap_cc*): Delete.
373         * config/s390/predicates.md (cc_reg_operand): New.
374
375         * expr.c (sync_compare_and_swap_cc): Delete.
376         * optabs.h (sync_compare_and_swap_cc): Delete.
377         * optabs.c (prepare_cmp_insn): Ignore which specific CCmode
378         is being used with can_compare_p.
379         (emit_cmp_and_jump_insn_1): Likewise when looking in the optab.
380         (find_cc_set): New.
381         (expand_bool_compare_and_swap): Do not use sync_compare_and_swap_cc,
382         look for a MODE_CC set instead.  Use emit_store_flag.
383         (expand_compare_and_swap_loop): Likewise, with some additional
384         complication to avoid a force_reg when useless.  Use
385         emit_cmp_and_jump_insns.
386         * genopinit.c (optabs): Delete sync_compare_and_swap_cc.
387         * doc/md.texi (sync_compare_and_swap_cc): Merge with
388         sync_compare_and_swap documentation.
389
390 2009-04-09  Jan Hubicka  <jh@suse.cz>
391
392         * except.c (find_prev_try): Break out from ....
393         (duplicate_eh_regions): ... here; properly update prev_try pointers
394         when duplication part of tree.
395         (dump_eh_tree): Improve dumping.
396         (verify_eh_region): New.
397         (verify_eh_tree): Use it.
398
399 2009-04-06  Richard Guenther  <rguenther@suse.de>
400
401         * c-gimplify.c (c_gimplify_expr): Fix the invalid GENERIC
402         &ARRAY addresses by adjusting their types and prepending
403         a conversion.
404         * tree-cfg.c (verify_gimple_assign_single): Verify that
405         addresses are correct.
406
407 2009-04-09  Richard Guenther  <rguenther@suse.de>
408
409         * tree-ssa-ccp.c (maybe_fold_stmt_addition): Move non-constant
410         indices into an array reference if possible.
411         * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
412         Fold POINTER_PLUS_EXPR statements with invariant address.
413
414 2009-04-09  Alan Modra  <amodra@bigpond.net.au>
415
416         PR target/39634
417         * config.gcc (powerpc64-*-linux*): Always build biarch.
418
419 2009-04-09  Joseph Myers  <joseph@codesourcery.com>
420
421         PR c/39613
422         * c-typeck.c (do_case): If case label is not an INTEGER_CST, fold
423         it and pedwarn if this results in an INTEGER_CST.
424
425 2009-04-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
426
427         * doc/install.texi: Update minimum GMP version.  Remove obsolete
428         text in MPFR section.
429
430 2009-04-08  Jakub Jelinek  <jakub@redhat.com>
431
432         * dwarf2out.c (class_scope_p): New static inline.
433         (class_or_namespace_scope_p): Use it.
434         (gen_variable_die): Use DW_TAG_member tag for static data member
435         declarations instead of DW_TAG_variable.
436
437         PR middle-end/39573
438         * omp-low.c (expand_omp_taskreg): Finalize taskreg static local_decls
439         variables.
440
441 2009-04-08  Richard Guenther  <rguenther@suse.de>
442
443         * tree-ssa-sccvn.c (valueize_refs): Do not continue to
444         valueize random data.
445
446 2009-04-08  David Edelsohn  <edelsohn@gnu.org>
447
448         * config.gcc (aix tm_file):  Add aix-stdint.h.
449         (aix tm clause use_gcc_stdint):  Set to wrap.
450         * config/rs6000/aix-stdint.h:  New file.
451         
452 2009-04-08  Richard Guenther  <rguenther@suse.de>
453
454         PR middle-end/36291
455         * tree-dfa.c (add_referenced_var): Do not recurse into
456         global initializers.
457         * tree-ssa-ccp.c (get_symbol_constant_value): Add newly
458         exposed variables.
459         (fold_const_aggregate_ref): Likewise.
460
461 2009-04-08  Paolo Bonzini  <bonzini@gnu.org>
462
463         * recog.c (ordered_comparison_operator): New.
464         * gensupport.c (std_preds): Add it.
465         * doc/md.texi (Machine-Independent Predicates): Document it.
466
467 2009-04-08  Jan Hubicka  <jh@suse.cz>
468
469         * tree-eh.c (cleanup_eh): When not optimizing, do not try EH merging.
470         * function.h (rtl_eh): Remove exception_handler_label_map.
471         * except.c (ehl_hash, ehl_eq, add_ehl_entry,
472         remove_exception_handler_label, for_each_eh_label_1): Remove.
473         (rtl_remove_unreachable_regions): Remove.
474         (convert_from_eh_region_ranges): Do not remove unreachable regions.
475         (find_exception_handler_labels): Don't build the hashtable.
476         (maybe_remove_eh_handler): Remove.
477         (for_each_eh_label): Rewrite to walk the tree.
478         (rest_of_handle_eh): Do not cleanup cfg prior EH construction.
479         * except.h (maybe_remove_eh_handler): Remove.
480         * passes.c (init_optimization_passes): Schedule second EH cleanup
481         before out-of-ssa.
482         * cfgrtl.c (rtl_delete_block, rtl_merge_blocks,
483         cfg_layout_merge_blocks): Do not call maybe_remove_eh_handler.
484
485 2009-04-08  Paolo Bonzini  <bonzini@gnu.org>
486
487         * genoutput.c (validate_optab_operands): New.
488         (gen_insn, gen_expand): Call it.
489
490         * genflags.c (gen_insn): Detect misused iterators.
491         (main): Pass line_no to gen_insn, exit with status 1 on error.
492
493         * genextract.c (line_no): Make global.
494         (VEC_safe_set_locstr): Change assertion to error message.
495         (main): Exit with status 1 on error.
496
497 2009-04-08  Joseph Myers  <joseph@codesourcery.com>
498
499         PR c/39614
500         PR c/39673
501         * c-common.h (C_MAYBE_CONST_EXPR_PRE, C_MAYBE_CONST_EXPR_EXPR,
502         C_MAYBE_CONST_EXPR_INT_OPERANDS, C_MAYBE_CONST_EXPR_NON_CONST,
503         EXPR_INT_CONST_OPERANDS): Remove duplicate definitions.
504         * c-convert.c (convert): Do not call fold on results of conversion
505         functions when the result is a C_MAYBE_CONST_EXPR.
506         * c-parser.c (c_parser_postfix_expression): Do not fold condition
507         of __builtin_choose_expr.
508         * c-typeck.c (remove_c_maybe_const_expr): New.
509         (build_unary_op, build_conditional_expr, build_compound_expr,
510         build_binary_op, c_objc_common_truthvalue_conversion): Call
511         remove_c_maybe_const_expr on any input C_MAYBE_CONST_EXPR with
512         integer operands.
513
514 2009-04-08 Bingfeng Mei <bmei@broadcom.com>
515
516         * fold-const.c (const_binop): Combine two VECTOR_CST under operation 
517         CODE to produce a new one. Add a prototype to use fold_convert_const
518
519 2009-04-08  Danny Smith  <dannysmith@users.sourceforge.net>
520
521         PR bootstrap/39660
522         * config/i386/host-mingw32.c (mingw32_gt_pch_use_address): Don't
523         mix declarations and code.
524
525 2009-04-08  Ben Elliston  <bje@au.ibm.com>
526
527         * gcc.c: Replace `CC' with `GCC' throughout.
528
529 2009-04-07  H.J. Lu  <hongjiu.lu@intel.com>
530
531         * doc/invoke.texi: Document Atom support.
532
533 2009-04-07  Jason Merrill  <jason@redhat.com>
534
535         PR c++/25185
536         * c-common.h, c-common.c: Add flag_pretty_templates.
537         * c-opts.c (c_common_handle_option): Set it.
538         * c.opt: Add -fno-pretty-templates.
539         * doc/invoke.texi (C++ Dialect Options): Likewise.
540
541 2009-04-07  Uros Bizjak  <ubizjak@gmail.com>
542
543         * config/ia64/ia64.c (ia64_builtins): Add IA64_BUILTIN_HUGE_VALQ.
544         (ia64_init_builtins): Handle IA64_BUILTIN_HUGE_VALQ.
545         (ia64_expand_builtin): Likewise.
546
547 2009-04-07  Martin Jambor  <mjambor@suse.cz>
548
549         * tree-ssa-alias.c (refs_may_alias_p_1): Check for
550         is_gimple_min_invariant rather than CONSTANT_CLASS_P so that invariant
551         ADDR_EXPRS are include too.
552
553 2009-04-07  Richard Guenther  <rguenther@suse.de>
554
555         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Non-aliased
556         decls are only used if passes as parameters or if they are
557         local statics and the call is not to a builtin.
558         (call_may_clobber_ref_p_1): Likewise.
559
560 2009-04-07  Paolo Bonzini  <bonzini@gnu.org>
561
562         * expr.c (do_store_flag): Remove last argument.  Simplify code
563         to avoid duplication of tests already done by can_compare_p.
564         (expand_expr_real_1): Adjust caller.
565
566 2009-04-07  Paolo Bonzini  <bonzini@gnu.org>
567
568         * optabs.c (can_compare_p): Test the predicate of a
569         cbranch and cstore pattern.
570
571 2009-04-07  Paolo Bonzini  <bonzini@gnu.org>
572
573         * expr.c (convert_move): Use emit_store_flag instead of
574         "emulating" it.
575
576 2009-04-07  Paolo Bonzini  <bonzini@gnu.org>
577
578         * config/i386/i386.c (ix86_compare_emitted): Remove.
579         (ix86_expand_compare, ix86_expand_branch): Handle MODE_CC
580         ix86_compare_op0 like ix86_compare_emitted used to be handled.
581         * config/i386/i386.h (ix86_compare_emitted): Remove.
582         * config/i386/i386.md (stack_protect_test): Set ix86_compare_op0
583         instead of ix86_compare_emitted.
584         * config/i386/sync.md (sync_compare_and_swap_cc): Likewise.
585
586 2009-04-07  Andrew Stubbs  <ams@codesourcery.com>
587
588         * config.gcc (sh-*-*): Add sysroot-suffix.h to tm_file.
589         Add t-sysroot-suffix to tmake_file.
590         * config/print-sysroot-suffix.sh: New file.
591         * config/t-sysroot-suffix: New file.
592
593 2009-04-07  Ben Elliston  <bje@au.ibm.com>
594
595         * libgcc2.c (INFINITY): Use __builtin_huge_val, not __builtin_inf,
596         as the latter produces a warning when the target does not support
597         infinity.
598
599 2009-04-07  Ben Elliston  <bje@au.ibm.com>
600
601         * dfp.c: Replace type punning assignments with memcpy throughout.
602         * Makefile.in (dfp.o-warn): Remove.
603         
604 2009-04-07  Alan Modra  <amodra@bigpond.net.au>
605
606         PR target/39634
607         * config.gcc: Merge powerpc-*-linux* and powerpc64-*-linux*.
608         Include soft-fp/t-softfp after rs6000/t-linux64.
609
610 2009-04-06  Eric Botcazou  <ebotcazou@adacore.com>
611
612         * stor-layout.c (set_sizetype): Use the full precision of their
613         machine mode for bitsize types.
614
615 2009-04-06  H.J. Lu  <hongjiu.lu@intel.com>
616
617         * config/i386/i386.md: Revert 2 accidental checkins.
618
619 2009-04-06  Joey Ye  <joey.ye@intel.com>
620             Xuepeng Guo <xuepeng.guo@intel.com>
621             H.J. Lu  <hongjiu.lu@intel.com>
622
623         Atom pipeline model, tuning and insn selection.
624         * config.gcc (atom): Add atom config options and target.
625
626         * config/i386/atom.md: New.
627
628         * config/i386/i386.c (atom_cost): New cost.
629         (m_ATOM): New macro flag.
630         (initial_ix86_tune_features): Set m_ATOM.
631         (x86_accumulate_outgoing_args): Likewise.
632         (x86_arch_always_fancy_math_387): Likewise.
633         (processor_target): Add Atom cost.
634         (cpu_names): Add Atom cpu name.
635         (override_options): Set Atom ISA.
636         (ix86_issue_rate): New case PROCESSOR_ATOM.
637         (ix86_adjust_cost): Likewise.
638
639         * config/i386/i386.h (TARGET_ATOM): New target macro.
640         (ix86_tune_indices): Add X86_TUNE_OPT_AGU.
641         (TARGET_OPT_AGU): New target option.
642         (target_cpu_default): Add TARGET_CPU_DEFAULT_atom.
643         (processor_type): Add PROCESSOR_ATOM.
644
645         * config/i386/i386.md (cpu): Add new value "atom".
646         (use_carry, movu): New attr.
647         (atom.md): Include atom.md.
648         (adddi3_carry_rex64): Set attr "use_carry".
649         (addqi3_carry): Likewise.
650         (addhi3_carry): Likewise.
651         (addsi3_carry): Likewise.
652         (*addsi3_carry_zext): Likewise.
653         (subdi3_carry_rex64): Likewise.
654         (subqi3_carry): Likewise.
655         (subhi3_carry): Likewise.
656         (subsi3_carry): Likewise.
657         (x86_movdicc_0_m1_rex64): Likewise.
658         (*x86_movdicc_0_m1_se): Likewise.
659         (x86_movsicc_0_m1): Likewise.
660         (*x86_movsicc_0_m1_se): Likewise.
661         (*adddi_1_rex64): Emit add insn as much as possible.
662         (*addsi_1): Likewise.
663         (return_internal): Set atom_unit.
664         (return_internal_long): Likewise.
665         (return_pop_internal): Likewise.
666         (*rcpsf2_sse): Set atom_sse_attr attr.
667         (*qrt<mode>2_sse): Likewise.
668         (*prefetch_sse): Likewise.
669
670         * config/i386/i386-c.c (ix86_target_macros_internal): New case
671         PROCESSOR_ATOM.
672         (ix86_target_macros_internal): Likewise.
673
674         * config/i386/sse.md (cpu): Set attr "atom_sse_attr".
675         (*prefetch_sse_rex): Likewise.
676         (sse_rcpv4sf2): Likewise.
677         (sse_vmrcpv4sf2): Likewise.
678         (sse_sqrtv4sf2): Likewise.
679         (<sse>_vmsqrt<mode>2): Likewise.
680         (sse_ldmxcsr): Likewise.
681         (sse_stmxcsr): Likewise.
682         (*sse_sfence): Likewise.
683         (sse2_clflush): Likewise.
684         (*sse2_mfence): Likewise.
685         (*sse2_lfence): Likewise.
686         (avx_movup<avxmodesuffixf2c><avxmodesuffix>): Set attr "movu".
687         (<sse>_movup<ssemodesuffixf2c>): Likewise.
688         (avx_movdqu<avxmodesuffix>): Likewise.
689         (avx_lddqu<avxmodesuffix>): Likewise.
690         (sse2_movntv2di): Change attr "type" to "ssemov".
691         (sse2_movntsi): Likewise.
692         (rsqrtv8sf2): Change attr "type" to "sseadd".
693         (sse3_addsubv2df3): Set attr "atom_unit".
694         (sse3_h<plusminus_insn>v4sf3): Likewise.
695         (*sse2_pmaddwd): Likewise.
696         (*vec_extractv2di_1_rex64): Likewise.
697         (*vec_extractv2di_1_avx): Likewise.
698         (sse2_psadbw): Likewise.
699         (ssse3_phaddwv8hi3): Likewise.
700         (ssse3_phaddwv4hi3): Likewise.
701         (ssse3_phadddv4si3): Likewise.
702         (ssse3_phadddv2si3): Likewise.
703         (ssse3_phaddswv8hi3): Likewise.
704         (ssse3_phaddswv4hi3): Likewise.
705         (ssse3_phsubwv8hi3): Likewise.
706         (ssse3_phsubwv4hi3): Likewise.
707         (ssse3_phsubdv4si3): Likewise.
708         (ssse3_phsubdv2si3): Likewise.
709         (ssse3_phsubswv8hi3): Likewise.
710         (ssse3_phsubswv4hi3): Likewise.
711         (ssse3_pmaddubsw128): Likewise.
712         (sse3_pmaddubsw: Likewise.
713         (ssse3_palignrti): Likewise.
714         (ssse3_palignrdi): Likewise.
715
716 2009-04-06  Gerald Pfeifer  <gerald@pfeifer.com>
717
718         * doc/install.texi (Specific): Fix two cross-references to MinGW.
719
720 2009-04-06  Richard Guenther  <rguenther@suse.de>
721
722         PR tree-optimization/28868
723         * tree-ssa-pre.c (inserted_phi_names): New bitmap to keep track
724         of which PHI results we inserted.
725         (insert_into_preds_of_block): Record inserted PHIs.
726         (eliminate): Eliminate redundant PHI nodes.
727         (init_pre): Init inserted_phi_names.
728
729 2009-04-06  Richard Guenther  <rguenther@suse.de>
730
731         PR tree-optimization/39643
732         * tree-ssa-ccp.c (ccp_fold): Fold REALPART_EXPRs and
733         IMAGPART_EXPRs of complex constants.
734         (execute_fold_all_builtins): If we folded a call queue
735         TODO_update_address_taken.
736
737 2009-04-06  Jan Hubicka  <jh@suse.cz>
738
739         PR middle-end/39659
740         * except.c (remove_unreachable_regions): Propagate may_contain_throw
741         flag.
742
743 2009-04-06  Andrew Stubbs  <ams@codesourcery.com>
744
745         * config/sh/lib1funcs.asm (ic_invalidate): Move ICBI out of the
746         delay slot.
747         (ic_invalidate_array): Likewise.
748
749 2009-04-06  Hariharan Sandanagobalane <hariharan@picochip.com>
750
751         * calls.c (emit_library_call_value_1): Fix a problem with parameter
752         alignment for library calls.
753
754 2009-04-06  Danny Smith  <dannysmith@users.sourceforge.net>
755
756         * config.gcc (mingw32 tm_file):  Add mingw-stdint.h.
757         (mingw32 tm clause use_gcc_stdint):  Set to wrap.
758         * config/i386/mingw-stdint.h:  New file.
759
760 2009-04-05  Richard Guenther  <rguenther@suse.de>
761
762         PR tree-optimization/39648
763         * tree-ssa-sccvn.c (vn_reference_fold_indirect): Work around
764         our &A vs. &A[0] IL deficiencies.
765
766 2009-04-04  Jan Hubicka  <jh@suse.cz>
767
768         * except.c (sjlj_find_directly_reachable_regions): Be ready for
769         removed toplevel regions.
770         (sjlj_mark_call_sites): Likewise.
771
772 2009-04-04  Dave Korn  <dave.korn.cygwin@gmail.com>
773
774         * config.gcc (cygwin tm_file):  Add cygwin-stdint.h.
775         (cygwin tm clause use_gcc_stdint):  Set to wrap.
776         * config/i386/cygwin-stdint.h:  New file.
777
778 2009-04-04  Richard Guenther  <rguenther@suse.de>
779
780         * Makefile.in (tree-ssa-copy.o): Add $(CFGLOOP_H) dependency.
781         * tree-ssa-copy.c (init_copy_prop): Do not propagate through
782         single-argument PHIs if we are in loop-closed SSA form.
783         * tree-vect-loop-manip.c (slpeel_add_loop_guard): Pass extra guards
784         for the pre-condition.
785         (slpeel_tree_peel_loop_to_edge): Likewise.
786         (vect_build_loop_niters): Take an optional sequence to append stmts.
787         (vect_generate_tmps_on_preheader): Likewise.
788         (vect_do_peeling_for_loop_bound): Take extra guards for the
789         pre-condition.
790         (vect_do_peeling_for_alignment): Adjust.  Unconditionally apply
791         the cost model check.
792         (vect_loop_versioning): Take stmt and stmt list to put pre-condition
793         guards if we are going to peel.  Do not apply versioning in that case.
794         * tree-vectorizer.h (vect_loop_versioning): Adjust declaration.
795         (vect_do_peeling_for_loop_bound): Likewise.
796         * tree-vect-loop.c (vect_transform_loop): If we are peeling for
797         loop bound only record extra pre-conditions, do not apply loop
798         versioning.
799
800 2009-04-04  Richard Guenther  <rguenther@suse.de>
801
802         * tree-ssa-operands.c (pop_stmt_changes): Remove automatic
803         renaming code.
804
805 2009-04-04  Jan Hubicka  <jh@suse.cz>
806
807         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
808         last_basic_block for size of bb->index indexed array.
809         * bt-load.c (compute_defs_uses_and_gen, compute_kill,
810         compute_out, link_btr_uses, build_btr_def_use_webs,
811         build_btr_def_use_webs, migrate_btr_defs): Likewise.
812
813 2009-04-04  Jan Hubicka  <jh@suse.cz>
814
815         * except.c (remove_eh_handler_and_replace): Break out from ...
816         (remove_eh_handler): ... here.
817         (bring_to_root): New function.
818         (remove_unreachable_regions): Collect MUST_NOT_THROW, unify runtime
819         handled ones, bring others to root of tree.
820
821 2009-04-04  Jan Hubicka  <jh@suse.cz>
822
823         * tree-eh.c (tree_empty_eh_handler_p): Pattern match more curefully.
824         (all_phis_safe_to_merge): New function.
825         (update_info): New structure.
826         (make_eh_edge_and_update_phi, update_eh_edges): New functions.
827         (cleanup_empty_eh): Update SSA if possible.
828
829 2009-04-04  Richard Guenther  <rguenther@suse.de>
830
831         * tree-ssa.c (verify_ssa): With -O0 we do not need VOPs.
832         * tree-ssa-operands.c (append_vdef): Do not append VOPs at -O0.
833         (append_vuse): Likewise.
834
835 2009-04-04  Jakub Jelinek  <jakub@redhat.com>
836
837         * unwind-dw2.h (_Unwind_FrameState): Add REG_UNDEFINED enum value.
838         * unwind-dw2.c (execute_cfa_program): Set how to REG_UNDEFINED
839         instead of REG_UNSAVED for DW_CFA_undefined.
840         (uw_update_context_1): Handle REG_UNDEFINED the same as REG_UNSAVED.
841         (uw_update_context): If RA column is REG_UNDEFINED, mark it as
842         outermost frame.
843
844 2009-04-04  Richard Earnshaw  <rearnsha@arm.com>
845
846         PR target/39501
847         * arm.md (movsfcc): Disable if not TARGET_HARD_FLOAT.
848         * testsuite/gcc.c-torture/execute/pr39501.c: New file.
849         * testsuite/gcc.c-torture/execute/pr39501.x: New file.
850
851 2009-04-04  Richard Guenther  <rguenther@suse.de>
852
853         PR tree-optimization/8781
854         PR tree-optimization/37892
855         * tree-ssa-sccvn.h (vn_reference_fold_indirect): Declare.
856         * tree-ssa-sccvn.c (vn_reference_fold_indirect): New function.
857         (valueize_refs): Call it for *& valueizations.
858         (shared_reference_ops_from_ref): Rename to ...
859         (valueize_shared_reference_ops_from_ref): ... this and valueize.
860         (shared_reference_ops_from_call): Rename to ...
861         (valueize_shared_reference_ops_from_call): ... this and valueize.
862         (vn_reference_lookup): Update.
863         (visit_reference_op_call): Likewise.
864         * tree-ssa-pre.c (phi_translate_1): Fold *&.
865         (eliminate): Value-replace the call address in call statements.
866
867 2009-04-04  Richard Guenther  <rguenther@suse.de>
868
869         PR tree-optimization/39636
870         * tree-ssa-forwprop.c
871         (forward_propagate_addr_into_variable_array_index): Check for
872         GIMPLE_ASSIGN before accessing the rhs code.
873
874 2009-04-03  Jason Merrill  <jason@redhat.com>
875
876         * stor-layout.c (set_sizetype): Set TYPE_CANONICAL.
877
878 2009-04-03  Steve Ellcey  <sje@cup.hp.com>
879
880         * config/ia64/ia64.md (extendsfdf2, extendsfxf2, extenddfxf2,
881         truncdfsf2, truncxfsf2, truncxfdf2, floatdixf2, fix_truncsfdi2,
882         fix_truncdfdi2, fix_truncxfdi2, fix_truncxfdi2_alts, floatunsdisf2,
883         floatunsdidf2, floatunsdixf2, fixuns_truncsfdi2, fixuns_truncdfdi2,
884         fixuns_truncxfdi2, fixuns_truncxfdi2_alts, divsi3_internal,
885         smuldi3_highpart, umuldi3_highpart, ctzdi2, *getf_exp_xf,
886         divdi3_internal_lat, divdi3_internal_thr, mulditi3, *mulditi3_internal,
887         umulditi3, *umulditi3_internal, addsf3, mulsf3, abssf2, negsf2,
888         *nabssf2, sminsf3, smaxsf3, *maddsf4, *msubsf4, *nmulsf3, *nmaddsf4,
889         *nmaddsf4_alts, divsf3, *sqrt_approx, sqrtsf2, sqrtsf2_internal_thr,
890         adddf3, *adddf3_trunc, muldf3, *muldf3_trunc, absdf2, negdf2, *nabsdf2,
891         smindf3, smaxdf3, *madddf4, *madddf4_trunc, *msubdf4, *msubdf4_trunc,
892         *nmuldf3, *nmuldf3_trunc, *nmadddf4, *nmadddf4_alts, *nmadddf4_truncsf,
893         *nmadddf4_truncsf_alts, divdf3, sqrtdf2, sqrtdf2_internal_thr, divxf3,
894         sqrtxf2, sqrtxf2_internal_thr, *recip_approx):
895         Use fr_reg_or_fp01_operand instead of fr_register_operand
896
897         * config/ia64/div.md (extend<mode>rf2, truncrf<mode>2,
898         recip_approx_rf, divsf3_internal_thr, divsf3_internal_lat,
899         divdf3_internal_thr, divdf3_internal_lat divxf3_internal): Ditto.
900
901 2009-04-03  Vladimir Makarov  <vmakarov@redhat.com>
902
903         PR rtl-optimization/39607
904         PR rtl-optimization/39631
905
906         Revert:
907         
908         2009-03-30  Vladimir Makarov  <vmakarov@redhat.com>
909         * reload.c (push_reload, find_dummy_reload): Use df_get_live_out
910         instead of DF_LR_OUT.
911         * ira-lives.c (process_bb_node_lives): Ditto.
912         * ira-color.c (ira_loop_edge_freq): Use df_get_live_{out,in}
913         instead of DF_LR_{OUT,IN}.
914         * ira-emit.c (generate_edge_moves, add_ranges_and_copies): Ditto.
915         * ira-build.c (create_bb_allocnos, create_loop_allocnos): Ditto.
916
917 2009-04-03  Steven Bosscher  <steven@gcc.gnu.org>
918
919         * omp-low.c (pass_expand_omp): Don't claim to provide PROP_gimple_lomp.
920         (execute_lower_omp): Always run but take the short way out if -fopenmp
921         is not given.
922         (gate_lower_omp): Remove, forcing the pass manager to always run the
923         pass and always set PROP_gimple_lomp.
924         (pass_lower_omp): Remove gate function.
925         * matrix-reorg.c (pass_ipa_matrix_reorg): Don't claim to provide
926         PROP_trees.  Instead, require it.
927         * ipa-cp.c (pass_ipa_cp): Likewise.
928         * ipa-inline.c (pass_early_inline): Don't claim to provide PROP_cfg.
929         (pass_ipa_early_inline, pass_inline_parameters, pass_ipa_inline): Idem.
930         * tree-profile.c (pass_tree_profile): Don't claim to provide PROP_cfg
931         and PROP_gimple_leh.
932
933 2009-04-03  Richard Guenther  <rguenther@suse.de>
934
935         PR middle-end/13146
936         PR tree-optimization/23940
937         PR tree-optimization/33237
938         PR middle-end/33974
939         PR middle-end/34093
940         PR tree-optimization/36201
941         PR tree-optimization/36230
942         PR tree-optimization/38049
943         PR tree-optimization/38207
944         PR tree-optimization/38230
945         PR tree-optimization/38301
946         PR tree-optimization/38585
947         PR middle-end/38895
948         PR tree-optimization/38985
949         PR tree-optimization/39299
950         * tree-ssa-structalias.h: Remove.
951         * tree-ssa-operands.h (NULL_USE_OPERAND_P): Make of type use_operand_p.
952         (NULL_DEF_OPERAND_P): Make of type def_operand_p.
953         (struct vuse_element_d): Remove.
954         (struct vuse_vec_d): Likewise.
955         (VUSE_VECT_NUM_ELEM, VUSE_VECT_ELEMENT_NC, VUSE_ELEMENT_PTR_NC,
956         VUSE_ELEMENT_VAR_NC, VUSE_VECT_ELEMENT, VUSE_ELEMENT_PTR,
957         SET_VUSE_VECT_ELEMENT, SET_VUSE_ELEMENT_VAR, SET_VUSE_ELEMENT_PTR,
958         VUSE_ELEMENT_VAR): Likewise.
959         (struct voptype_d): Likewise.
960         (NUM_VOP_FREE_BUCKETS): Likewise.
961         (struct ssa_operands): Remove vop_free_buckets and mpt_table fields.
962         (struct stmt_operands_d): Remove.
963         (VUSE_OP_PTR, VUSE_OP, SET_VUSE_OP, VUSE_NUM, VUSE_VECT,
964         VDEF_RESULT_PTR, VDEF_RESULT, VDEF_OP_PTR, VDEF_OP, SET_VDEF_OP,
965         VDEF_NUM, VDEF_VECT): Likewise.
966         (copy_virtual_operands): Remove.
967         (operand_build_cmp): Likewise.
968         (create_ssa_artificial_load_stmt): Likewise.
969         (enum ssa_op_iter_type): Remove ssa_op_iter_vdef.
970         (struct ssa_operand_iterator_d): Remove vuses, vdefs, mayusesm
971         vuse_index and mayuse_index members.  Pack and move done and iter_type
972         members to the front.
973         (SSA_OP_VMAYUSE): Remove.
974         (SSA_OP_VIRTUAL_USES): Adjust.
975         (FOR_EACH_SSA_VDEF_OPERAND): Remove.
976         (unlink_stmt_vdef): Declare.
977         (add_to_addressable_set): Remove.
978         * tree-vrp.c (stmt_interesting_for_vrp): Adjust.
979         (vrp_visit_stmt): Likewise.
980         * doc/tree-ssa.texi (Alias analysis): Update.
981         * doc/invoke.texi (max-aliased-vops): Remove docs.
982         (avg-aliased-vops): Likewise.
983         * tree-into-ssa.c (syms_to_rename): Remove.
984         (need_to_update_vops_p): Likewise.
985         (need_to_initialize_update_ssa_p): Rename to ...
986         (update_ssa_initialized_fn): ... this.  Track function we are
987         initialized for.
988         (symbol_marked_for_renaming): Simplify.
989         (add_new_name_mapping): Do not set need_to_update_vops_p.
990         (dump_currdefs): Use SYMS_TO_RENAME.
991         (rewrite_update_stmt): Always walk all uses/defs.
992         (dump_update_ssa): Adjust.
993         (init_update_ssa): Take function argument.  Track what we are
994         initialized for.
995         (delete_update_ssa): Reset SYMS_TO_RENAME and update_ssa_initialized_fn.
996         (create_new_def_for): Initialize for cfun, assert we are initialized
997         for cfun.
998         (mark_sym_for_renaming): Simplify.
999         (mark_set_for_renaming): Do not initialize update-ssa.
1000         (need_ssa_update_p): Simplify.  Take function argument.
1001         (name_mappings_registered_p): Assert we ask for the correct function.
1002         (name_registered_for_update_p): Likewise.
1003         (ssa_names_to_replace): Likewise.
1004         (release_ssa_name_after_update_ssa): Likewise.
1005         (update_ssa): Likewise.  Use SYMS_TO_RENAME.
1006         (dump_decl_set): Do not print a newline.
1007         (debug_decl_set): Do it here.
1008         (dump_update_ssa): And here.
1009         * tree-ssa-loop-im.c (move_computations): Adjust.
1010         (movement_possibility): Likewise.
1011         (determine_max_movement): Likewise.
1012         (gather_mem_refs_stmt): Likewise.
1013         * tree-dump.c (dequeue_and_dump): Do not handle SYMBOL_MEMORY_TAG
1014         or NAME_MEMORY_TAG.
1015         * tree-complex.c (update_all_vops): Remove.
1016         (expand_complex_move): Adjust.
1017         * tree-ssa-loop-niter.c (chain_of_csts_start): Use NULL_TREE.
1018         Simplify test for memory referencing statement.  Exclude
1019         non-invariant ADDR_EXPRs.
1020         * tree-pretty-print.c (dump_generic_node): Do not handle memory tags.
1021         * tree-loop-distribution.c (generate_memset_zero): Adjust.
1022         (rdg_flag_uses): Likewise.
1023         * tree-tailcall.c (suitable_for_tail_opt_p): Remove memory-tag
1024         related code.
1025         (tree_optimize_tail_calls_1): Also split the
1026         edge from the entry block if we have degenerate PHI nodes in
1027         the first basic block.
1028         * tree.c (init_ttree): Remove memory-tag related code.
1029         (tree_code_size): Likewise.
1030         (tree_node_structure): Likewise.
1031         (build7_stat): Re-write to be build6_stat.
1032         * tree.h (MTAG_P, TREE_MEMORY_TAG_CHECK, TMR_TAG): Remove.
1033         (SSA_VAR_P): Adjust.
1034         (struct tree_memory_tag): Remove.
1035         (struct tree_memory_partition_tag): Likewise.
1036         (union tree_node): Adjust.
1037         (build7): Re-write to be build6.
1038         * tree-pass.h (pass_reset_cc_flags): Remove.
1039         (TODO_update_address_taken): New flag.
1040         (pass_simple_dse): Remove.
1041         * ipa-cp.c (ipcp_update_callgraph): Update SSA form.
1042         * params.h (MAX_ALIASED_VOPS): Remove.
1043         (AVG_ALIASED_VOPS): Likewise.
1044         * omp-low.c (expand_omp_taskreg): Update SSA form.
1045         * tree-ssa-dse.c (dse_optimize_stmt): Properly query if the rhs
1046         aliases the lhs in a copy stmt.
1047         * tree-ssa-dse.c (struct address_walk_data): Remove.
1048         (memory_ssa_name_same): Likewise.
1049         (memory_address_same): Likewise.
1050         (get_kill_of_stmt_lhs): Likewise.
1051         (dse_possible_dead_store_p): Simplify, use the oracle.  Handle
1052         unused stores.  Look through PHI nodes into post-dominated regions.
1053         (dse_optimize_stmt): Simplify.  Properly remove stores.
1054         (tree_ssa_dse): Compute dominators.
1055         (execute_simple_dse): Remove.
1056         (pass_simple_dse): Likewise.
1057         * ipa-reference.c (scan_stmt_for_static_refs): Open-code
1058         gimple_loaded_syms and gimple_stored_syms computation.
1059         * toplev.c (dump_memory_report): Dump alias and pta stats.
1060         * tree-ssa-sccvn.c (vn_reference_compute_hash): Simplify.
1061         (vn_reference_eq): Likewise.
1062         (vuses_to_vec, copy_vuses_from_stmt, vdefs_to_vec,
1063         copy_vdefs_from_stmt, shared_lookup_vops, shared_vuses_from_stmt,
1064         valueize_vuses): Remove.
1065         (get_def_ref_stmt_vuses): Simplify.  Rename to ...
1066         (get_def_ref_stmt_vuse): ... this.
1067         (vn_reference_lookup_2): New function.
1068         (vn_reference_lookup_pieces): Use walk_non_aliased_vuses for
1069         walking equivalent vuses.  Simplify.
1070         (vn_reference_lookup): Likewise.
1071         (vn_reference_insert): Likewise.
1072         (vn_reference_insert_pieces): Likewise.
1073         (visit_reference_op_call): Simplify.
1074         (visit_reference_op_load): Likewise.
1075         (visit_reference_op_store): Likewise.
1076         (init_scc_vn): Remove shared_lookup_vuses initialization.
1077         (free_scc_vn): Remove shared_lookup_vuses freeing.
1078         (sort_vuses, sort_vuses_heap): Remove.
1079         (get_ref_from_reference_ops): Export.
1080         * tree-ssa-sccvn.h (struct vn_reference_s): Replace vuses
1081         vector with single vuse pointer.
1082         (vn_reference_lookup_pieces, vn_reference_lookup,
1083         vn_reference_insert, vn_reference_insert_pieces): Adjust prototypes.
1084         (shared_vuses_from_stmt): Remove.
1085         (get_ref_from_reference_ops): Declare.
1086         * tree-ssa-loop-manip.c (slpeel_can_duplicate_loop_p): Adjust.
1087         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Remove
1088         memory-tag related code.
1089         * tree-ssa-ccp.c (get_symbol_constant_value): Remove memory-tag code.
1090         (likely_value): Add comment, skip static-chain of call statements.
1091         (surely_varying_stmt_p): Adjust.
1092         (gimplify_and_update_call_from_tree): Likewise.
1093         (execute_fold_all_builtins): Do not rebuild alias info.
1094         (gimplify_and_update_call_from_tree): Properly update VOPs.
1095         * tree-ssa-loop-ivopts.c (get_ref_tag): Remove.
1096         (copy_ref_info): Remove memory-tag related code.
1097         * tree-call-cdce.c (tree_call_cdce): Rename the VOP.
1098         * ipa-pure-const.c (check_decl): Remove memory-tag related code.
1099         (check_stmt): Open-code gimple_loaded_syms and gimple_stored_syms
1100         computation.
1101         * tree-ssa-dom.c (gimple_p): Remove typedef.
1102         (eliminate_redundant_computations): Adjust.
1103         (record_equivalences_from_stmt): Likewise.
1104         (avail_expr_hash): Likewise.
1105         (avail_expr_eq): Likewise.
1106         * tree-ssa-propagate.c (update_call_from_tree): Properly update VOPs.
1107         (stmt_makes_single_load): Likewise.
1108         (stmt_makes_single_store): Likewise.
1109         * tree-ssa-alias.c: Rewrite completely.
1110         (debug_memory_partitions, dump_mem_ref_stats, debug_mem_ref_stats,
1111         debug_mem_sym_stats, dump_mem_sym_stats_for_var,
1112         debug_all_mem_sym_stats, debug_mp_info, update_mem_sym_stats_from_stmt,
1113         delete_mem_ref_stats, create_tag_raw, dump_points_to_info,
1114         dump_may_aliases_for, debug_may_aliases_for, new_type_alias):
1115         Remove public functions.
1116         (pass_reset_cc_flags): Remove.
1117         (pass_build_alias): Move ...
1118         * tree-ssa-structalias.c (pass_build_alias): ... here.
1119         * tree-ssa-alias.c (may_be_aliased): Move ...
1120         * tree-flow-inline.h (may_be_aliased): ... here.
1121         tree-ssa-alias.c (struct count_ptr_d, count_ptr_derefs,
1122         count_uses_and_derefs): Move ...
1123         * gimple.c: ... here.
1124         * gimple.h (count_uses_and_derefs): Declare.
1125         * tree-ssa-alias.c (dump_alias_stats, ptr_deref_may_alias_global_p,
1126         ptr_deref_may_alias_decl_p, ptr_derefs_may_alias_p,
1127         same_type_for_tbaa, nonaliasing_component_refs_p, decl_refs_may_alias_p,
1128         indirect_ref_may_alias_decl_p, indirect_refs_may_alias_p,
1129         ref_maybe_used_by_call_p, ref_maybe_used_by_stmt_p,
1130         call_may_clobber_ref_p, stmt_may_clobber_ref_p, maybe_skip_until,
1131         get_continuation_for_phi, walk_non_aliased_vuses, walk_aliased_vdefs):
1132         New functions.
1133         * tree-dfa.c (refs_may_alias_p): Move ...
1134         * tree-ssa-alias.c (refs_may_alias_p): ... here.  Extend.
1135         * tree-ssa-alias.h: New file.
1136         * tree-ssa-sink.c (is_hidden_global_store): Adjust.
1137         (statement_sink_location): Likewise.
1138         * opts.c (decode_options): Do not adjust max-aliased-vops or
1139         avg-aliased-vops values.
1140         * timevar.def (TV_TREE_MAY_ALIAS): Remove.
1141         (TV_CALL_CLOBBER): Likewise.
1142         (TV_FLOW_SENSITIVE): Likewise.
1143         (TV_FLOW_INSENSITIVE): Likewise.
1144         (TV_MEMORY_PARTITIONING): Likewise.
1145         (TV_ALIAS_STMT_WALK): New timevar.
1146         * tree-ssa-loop-ivcanon.c (empty_loop_p): Adjust.
1147         * tree-ssa-address.c (create_mem_ref_raw): Use build6.
1148         (get_address_description): Remove memory-tag related code.
1149         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Adjust.
1150         * treestruct.def (TS_MEMORY_TAG, TS_MEMORY_PARTITION_TAG): Remove.
1151         * tree-eh.c (cleanup_empty_eh): Do not leave stale SSA_NAMEs
1152         and immediate uses in statements.  Document.
1153         * gimple-pretty-print.c (dump_gimple_mem_ops): Adjust.
1154         (dump_symbols): Remove.
1155         (dump_gimple_mem_ops): Do not dump loaded or stored syms.
1156         * alias.c (get_deref_alias_set): New function split out from ...
1157         (get_alias_set): ... here.
1158         * alias.h (get_deref_alias_set): Declare.
1159         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Remove unused
1160         type parameter.  Remove restrict pointer handling.  Create a
1161         ref-all pointer in case type-based alias sets do not conflict.
1162         (vect_analyze_data_refs): Remove SMT related code.
1163         * tree-vect-stmts.c (vectorizable_store): Re-instantiate TBAA assert.
1164         (vectorizable_load): Likewise.
1165         * tree-data-ref.h (struct dr_alias): Remove symbol_tag field.
1166         (DR_SYMBOL_TAG, DR_VOPS): Remove.
1167         * tree-data-ref.c (dr_may_alias_p): Use the alias-oracle.
1168         Ignore vops and SMTs.
1169         (dr_analyze_alias): Likewise..
1170         (free_data_ref): Likewise.
1171         (create_data_ref): Likewise.
1172         (analyze_all_data_dependences): Likewise.
1173         (get_references_in_stmt): Adjust.
1174         * tree-flow-inline.h (gimple_aliases_computed_p,
1175         gimple_addressable_vars, gimple_call_clobbered_vars,
1176         gimple_call_used_vars, gimple_global_var, may_aliases, memory_partition,
1177         factoring_name_p, mark_call_clobbered, clear_call_clobbered,
1178         compare_ssa_operands_equal, symbol_mem_tag, set_symbol_mem_tag,
1179         gimple_mem_ref_stats): Remove.
1180         (gimple_vop): New function.
1181         (op_iter_next_use): Remove vuses and mayuses cases.
1182         (op_iter_next_def): Remove vdefs case.
1183         (op_iter_next_tree): Remove vuses, mayuses and vdefs cases.
1184         (clear_and_done_ssa_iter): Do not set removed fields.
1185         (op_iter_init): Likewise.  Skip vuse and/or vdef if requested.
1186         Assert we are not iterating over vuses or vdefs if not also
1187         iterating over uses or defs.
1188         (op_iter_init_use): Likewise.
1189         (op_iter_init_def): Likewise.
1190         (op_iter_next_vdef): Remove.
1191         (op_iter_next_mustdef): Likewise.
1192         (op_iter_init_vdef): Likewise.
1193         (compare_ssa_operands_equal): Likewise.
1194         (link_use_stmts_after): Handle vuse operand.
1195         (is_call_used): Use is_call_clobbered.
1196         (is_call_clobbered): Global variables are always call clobbered,
1197         query the call-clobbers bitmap.
1198         (mark_call_clobbered): Ignore global variables.
1199         (clear_call_clobbered): Likewise.
1200         * tree-ssa-coalesce.c (create_outofssa_var_map): Adjust
1201         virtual operands sanity check.
1202         * tree.def (NAME_MEMORY_TAG, SYMBOL_MEMORY_TAG, MEMORY_PARTITION_TAG):
1203         Remove.
1204         (TARGET_MEM_REF): Remove TMR_TAG operand.
1205         * tree-dfa.c (add_referenced_var): Initialize call-clobber state.
1206         Remove call-clobber related code.
1207         (remove_referenced_var): Likewise.  Do not clear mpt or symbol_mem_tag.
1208         (dump_variable): Do not dump SMTs, memory stats, may-aliases or
1209         partitions or escape reason.
1210         (get_single_def_stmt, get_single_def_stmt_from_phi,
1211         get_single_def_stmt_with_phi): Remove.
1212         (dump_referenced_vars): Tidy.
1213         (get_ref_base_and_extent): Allow bare decls.
1214         (collect_dfa_stats): Adjust.
1215         * graphite.c (rename_variables_in_stmt): Adjust.
1216         (graphite_copy_stmts_from_block): Likewise.
1217         (translate_clast): Likewise.
1218         * tree-ssa-pre.c (struct bb_bitmap_sets): Add expr_dies bitmap.
1219         (EXPR_DIES): New.
1220         (translate_vuse_through_block): Use the oracle.
1221         (phi_translate_1): Adjust.
1222         (value_dies_in_block_x): Use the oracle.  Cache the outcome
1223         in EXPR_DIES.
1224         (valid_in_sets): Check if the VUSE for
1225         a REFERENCE is available.
1226         (eliminate): Do not remove stmts during elimination,
1227         instead queue and remove them afterwards.
1228         (do_pre): Do not rebuild alias info.
1229         (pass_pre): Run TODO_rebuild_alias before PRE.
1230         * tree-ssa-live.c (remove_unused_locals): Remove memory-tag code.
1231         * tree-sra.c (sra_walk_function): Use gimple_references_memory_p.
1232         (mark_all_v_defs_stmt): Remove.
1233         (mark_all_v_defs_seq): Adjust.
1234         (sra_replace): Likewise.
1235         (scalarize_use): Likewise.
1236         (scalarize_copy): Likewise.
1237         (scalarize_init): Likewise.
1238         (scalarize_ldst): Likewise.
1239         (todoflags): Remove.
1240         (tree_sra): Do not rebuild alias info.
1241         (tree_sra_early): Adjust.
1242         (pass_sra): Run TODO_update_address_taken before SRA.
1243         * tree-predcom.c (set_alias_info): Remove.
1244         (prepare_initializers_chain): Do not call it.
1245         (mark_virtual_ops_for_renaming): Adjust.
1246         (mark_virtual_ops_for_renaming_list): Remove.
1247         (initialize_root_vars): Adjust.
1248         (initialize_root_vars_lm): Likewise.
1249         (prepare_initializers_chain): Likewise.
1250         * tree-ssa-copy.c (may_propagate_copy): Remove memory-tag related code.
1251         (may_propagate_copy_into_stmt): Likewise.
1252         (merge_alias_info): Do nothing for now.
1253         (propagate_tree_value_into_stmt): Adjust.
1254         (stmt_may_generate_copy): Likewise.
1255         * tree-ssa-forwprop.c (tidy_after_forward_propagate_addr): Do
1256         not mark symbols for renaming.
1257         (forward_propagate_addr_expr): Match up push/pop_stmt_changes
1258         with the same statement, make sure to update the new pointed-to one.
1259         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not copy
1260         call statements, do not mark symbols for renaming.
1261         (mark_operand_necessary): Dump something.
1262         (ref_may_be_aliased): New function.
1263         (mark_aliased_reaching_defs_necessary_1): New helper function.
1264         (mark_aliased_reaching_defs_necessary): Likewise.
1265         (mark_all_reaching_defs_necessary_1): Likewise.
1266         (mark_all_reaching_defs_necessary): Likewise.
1267         (propagate_necessity): Do not process virtual PHIs.  For
1268         non-aliased loads mark all reaching definitions as necessary.
1269         For aliased loads and stores mark the immediate dominating
1270         aliased clobbers as necessary.
1271         (visited): New global static.
1272         (perform_tree_ssa_dce): Free visited bitmap after propagating
1273         necessity.
1274         (remove_dead_phis): Perform simple dead virtual PHI removal.
1275         (remove_dead_stmt): Properly unlink virtual operands when
1276         removing stores.
1277         (eliminate_unnecessary_stmts): Schedule PHI removal after
1278         stmt removal.
1279         * tree-ssa-ter.c (is_replaceable_p): Adjust.
1280         (process_replaceable): Likewise.
1281         (find_replaceable_in_bb): Likewise.
1282         * tree-ssa.c (verify_ssa_name): Verify all VOPs are
1283         based on the single gimple vop.
1284         (verify_flow_insensitive_alias_info): Remove.
1285         (verify_flow_sensitive_alias_info): Likewise.
1286         (verify_call_clobbering): Likewise.
1287         (verify_memory_partitions): Likewise.
1288         (verify_alias_info): Likewise.
1289         (verify_ssa): Adjust..
1290         (execute_update_addresses_taken): Export.  Update SSA
1291         manually.  Optimize only when optimizing.  Use a local bitmap.
1292         (pass_update_address_taken): Remove TODO_update_ssa, add
1293         TODO_dump_func.
1294         (pass_update_address_taken): Just use TODO_update_address_taken.
1295         (init_tree_ssa): Do not initialize addressable_vars.
1296         (verify_ssa): Verify new VUSE / VDEF properties.
1297         Verify that all stmts definitions have the stmt as SSA_NAME_DEF_STMT.
1298         Do not call verify_alias_info.
1299         (delete_tree_ssa): Clear the VUSE, VDEF operands.
1300         Do not free the loaded and stored syms bitmaps.  Reset the escaped
1301         and callused solutions.  Do not free addressable_vars.
1302         Remove memory-tag related code.
1303         (warn_uninitialized_var): Aliases are always available.
1304         * tree-ssa-loop-prefetch.c (gather_memory_references): Adjust.
1305         * lambda-code.c (can_put_in_inner_loop): Adjust.
1306         (can_put_after_inner_loop): Likewise.
1307         (perfect_nestify): Likewise.
1308         * tree-vect-stmts.c (vect_stmt_relevant_p): Adjust.
1309         (vect_gen_widened_results_half): Remove CALL_EXPR handling.
1310         (vectorizable_conversion): Do not mark symbols for renaming.
1311         * tree-inline.c (remap_gimple_stmt): Clear VUSE/VDEF.
1312         (expand_call_inline): Unlink the calls virtual operands before
1313         replacing it.
1314         (tree_function_versioning): Do not call update_ssa if we are not
1315         updating clones.  Simplify.
1316         * tree-ssa-phiprop.c (phivn_valid_p): Adjust.
1317         (propagate_with_phi): Likewise..
1318         * tree-outof-ssa.c (create_temp): Remove memory tag and call
1319         clobber code.  Assert we are not aliased or global.
1320         * tree-flow.h: Include tree-ssa-alias.h
1321         (enum escape_type): Remove.
1322         (struct mem_sym_stats_d): Likewise.
1323         (struct mem_ref_stats_d): Likewise.
1324         (struct gimple_df): Add vop member.  Remove global_var,
1325         call_clobbered_vars, call_used_vars, addressable_vars,
1326         aliases_compted_p and mem_ref_stats members.  Add syms_to_rename,
1327         escaped and callused members.
1328         (struct ptr_info_def): Remove all members, add points-to solution
1329         member pt.
1330         (struct var_ann_d): Remove in_vuse_list, in_vdef_list,
1331         call_clobbered, escape_mask, mpt and symbol_mem_tag members.
1332         * Makefile.in (TREE_FLOW_H): Add tree-ssa-alias.h.
1333         (tree-ssa-structalias.o): Remove tree-ssa-structalias.h.
1334         (tree-ssa-alias.o): Likewise.
1335         (toplev.o): Add tree-ssa-alias.h
1336         (GTFILES): Remove tree-ssa-structalias.h, add tree-ssa-alias.h.
1337         * gimple.c (gimple_set_bb): Fix off-by-one error.
1338         (is_gimple_reg): Do not handle memory tags.
1339         (gimple_copy): Also copy virtual operands.
1340         Delay updating the statement.  Do not reset loaded and stored syms.
1341         (gimple_set_stored_syms): Remove.
1342         (gimple_set_loaded_syms): Likewise.
1343         (gimple_call_copy_skip_args): Copy the virtual operands
1344         and mark the new statement modified.
1345         * tree-ssa-structalias.c (may_alias_p): Remove.
1346         (set_uids_in_ptset): Take the alias set to prune with as
1347         parameter.  Fold in the alias test of may_alias_p.
1348         (compute_points_to_sets): Compute whether a ptr is dereferenced
1349         in a local sbitmap.
1350         (process_constraint): Deal with &ANYTHING on the lhs, reject all
1351         other ADDRESSOF constraints on the lhs.
1352         (get_constraint_for_component_ref): Assert that we don't get
1353         ADDRESSOF constraints from the base of the reference.
1354         Properly generate UNKNOWN_OFFSET for DEREF if needed.
1355         (struct variable_info): Remove collapsed_to member.
1356         (get_varinfo_fc): Remove.
1357         (new_var_info): Do not set collapsed_to.
1358         (dump_constraint): Do not follow cycles.
1359         (dump_constraint_graph): Likewise.
1360         (build_pred_graph): Likewise.
1361         (build_succ_graph): Likewise.
1362         (rewrite_constraints): Likewise.
1363         (do_simple_structure_copy): Remove.
1364         (do_rhs_deref_structure_copy): Remove.
1365         (do_lhs_deref_structure_copy): Remove.
1366         (collapse_rest_of_var): Remove.
1367         (do_structure_copy): Re-implement.
1368         (pta_stats): New global variable.
1369         (dump_pta_stats): New function.
1370         (struct constraint_expr): Make offset signed.
1371         (UNKNOWN_OFFSET): Define special value.
1372         (dump_constraint): Dump UNKNOWN_OFFSET as UNKNOWN.
1373         (solution_set_expand): New helper function split out from ...
1374         (do_sd_constraint): ... here.
1375         (solution_set_add): Handle UNKNOWN_OFFSET.  Handle negative offsets.
1376         (do_ds_constraint): Likewise.
1377         (do_sd_constraint): Likewise.  Do not special-case ESCAPED = *ESCAPED
1378         and CALLUSED = *CALLUSED.
1379         (set_union_with_increment): Make inc argument signed.
1380         (type_safe): Remove.
1381         (get_constraint_for_ptr_offset): Handle unknown and negative
1382         constant offsets.
1383         (first_vi_for_offset): Handle offsets before start.  Bail
1384         out early for offsets beyond the variable extent.
1385         (first_or_preceding_vi_for_offset): New function.
1386         (init_base_vars): Add ESCAPED = ESCAPED + UNKNOWN_OFFSET constraint.
1387         Together with ESCAPED = *ESCAPED this properly computes reachability.
1388         (find_what_var_points_to): New function.
1389         (find_what_p_points_to): Implement in terms of find_what_var_points_to.
1390         (pt_solution_reset, pt_solution_empty_p, pt_solution_includes_global,
1391         pt_solution_includes_1, pt_solution_includes, pt_solutions_intersect_1,
1392         pt_solutions_intersect): New functions.
1393         (compute_call_used_vars): Remove.
1394         (compute_may_aliases): New main entry into PTA computation.
1395         * gimple.h (gimple_p): New typedef.
1396         (struct gimple_statement_base): Remove references_memory_p.
1397         (struct gimple_statement_with_memory_ops_base): Remove
1398         vdef_ops, vuse_ops, stores and loads members.  Add vdef and vuse
1399         members.
1400         (gimple_vuse_ops, gimple_set_vuse_ops, gimple_vdef_ops,
1401         gimple_set_vdef_ops, gimple_loaded_syms, gimple_stored_syms,
1402         gimple_set_references_memory): Remove.
1403         (gimple_vuse_op, gimple_vdef_op, gimple_vuse, gimple_vdef,
1404         gimple_vuse_ptr, gimple_vdef_ptri, gimple_set_vuse, gimple_set_vdef):
1405         New functions.
1406         * tree-cfg.c (move_block_to_fn): Fix off-by-one error.
1407         (verify_expr): Allow RESULT_DECL.
1408         (gimple_duplicate_bb): Do not copy virtual operands.
1409         (gimple_duplicate_sese_region): Adjust.
1410         (gimple_duplicate_sese_tail): Likewise.
1411         (mark_virtual_ops_in_region): Remove.
1412         (move_sese_region_to_fn): Do not call it.
1413         * passes.c (init_optimization_passes): Remove pass_reset_cc_flags
1414         and pass_simple_dse.
1415         (execute_function_todo): Handle TODO_update_address_taken,
1416         call execute_update_addresses_taken for TODO_rebuild_alias.
1417         (execute_todo): Adjust.
1418         (execute_one_pass): Init dump files early.
1419         * ipa-struct-reorg.c (finalize_var_creation): Do not mark vars
1420         call-clobbered.
1421         (create_general_new_stmt): Clear vops.
1422         * tree-ssa-reassoc.c (get_rank): Adjust.
1423         * tree-vect-slp.c (vect_create_mask_and_perm): Do not mark
1424         symbols for renaming.
1425         * params.def (PARAM_MAX_ALIASED_VOPS): Remove.
1426         (PARAM_AVG_ALIASED_VOPS): Likewise.
1427         * tree-ssanames.c (init_ssanames): Allocate SYMS_TO_RENAME.
1428         (duplicate_ssa_name_ptr_info): No need to copy the shared bitmaps.
1429         * tree-ssa-operands.c: Simplify for new virtual operand representation.
1430         (operand_build_cmp, copy_virtual_operands,
1431         create_ssa_artificial_load_stmt, add_to_addressable_set,
1432         gimple_add_to_addresses_taken): Remove public functions.
1433         (unlink_stmt_vdef): New function.
1434
1435 2009-04-03  Alan Modra  <amodra@bigpond.net.au>
1436
1437         * config.gcc (powerpc-*-linux*): Merge variants.
1438
1439 2009-04-02  Chao-ying Fu  <fu@mips.com>
1440             James Grosbach <james.grosbach@microchip.com>
1441
1442         * config/mips/mips.c (mips_frame_info): Add acc_mask, num_acc,
1443         num_cop0_regs, acc_save_offset, cop0_save_offset, acc_sp_offset,
1444         cop0_sp_offset.
1445         (machine_function): Add interrupt_handler_p, use_shadow_register_set_p,
1446         keep_interrupts_masked_p, use_debug_exception_return_p.
1447         (mips_attribute_table): Add interrupt, use_shadow_register_set,
1448         keep_interrupts_masked, use_debug_exception_return.
1449         (mips_interrupt_type_p, mips_use_shadow_register_set_p,
1450         mips_keep_interrupts_masked_p, mips_use_debug_exception_return_p):
1451         New functions.
1452         (mips_function_ok_for_sibcall): Return false for interrupt handlers.
1453         (mips_print_operand): Process COP0 registers to print $0 .. $31
1454         correctly for GAS to process.
1455         (mips_interrupt_extra_call_saved_reg_p): New function.
1456         (mips_cfun_call_saved_reg_p): For interrupt handlers, we need to check
1457         extra registers.
1458         (mips_cfun_might_clobber_call_saved_reg_p): Likewise.
1459         (mips_compute_frame_info): Add supports for interrupt context that
1460         includes doubleword accumulators and COP0 registers.
1461         (mips_for_each_saved_acc): New function.
1462         (mips_for_each_saved_gpr_and_fpr): Change the function name from
1463         mips_for_each_saved_reg.
1464         (mips_save_reg): Save accumulators.
1465         (mips_kernel_reg_p): A new for_each_rtx callback.
1466         (mips_expand_prologue): Support interrupt handlers.
1467         (mips_restore_reg): Restore accumulators.
1468         (mips_expand_epilogue): Support interrupt handlers.
1469         (mips_can_use_return_insn): Return false for interrupt handlers.
1470         (mips_epilogue_uses): New function.
1471         * config/mips/mips.md (UNSPEC_ERET, UNSPEC_DERET, UNSPEC_DI,
1472         UNSPEC_EHB, UNSPEC_RDPGPR, UNSPEC_COP0): New UNSPEC.
1473         (mips_eret, mips_deret, mips_di, mips_ehb, mips_rdpgpr,
1474         cop0_move): New instructions.
1475         * config/mips/mips-protos.h (mips_epilogue_uses): Declare.
1476         * config/mips/mips.h (K0_REG_NUM, K1_REG_NUM, KERNEL_REG_P): New
1477         defines.
1478         (COP0_STATUS_REG_NUM, COP0_CAUSE_REG_NUM, COP0_EPC_REG_NUM):
1479         New defines.
1480         (CAUSE_IPL, SR_IPL, SR_EXL, SR_IE): New defines.
1481         (MIPS_PROLOGUE_TEMP_REGNUM, MIPS_EPILOGUE_TEMP_REGNUM): For
1482         interrupt handlers, we use K0 as the temporary register.
1483         (EPILOGUE_USES): Change to a function call.
1484         * config/mips/sde.h (MIPS_EPILOGUE_TEMP_REGNUM): For interrupt
1485         handlers, we use K0 as the temporary register.
1486         
1487         * doc/extend.texi (Function Attributes): Document interrupt,
1488         use_shadow_register_set, keep_interrupts_masked,
1489         use_debug_exception_return for MIPS attributes.
1490
1491 2009-04-03  Alan Modra  <amodra@bigpond.net.au>
1492
1493         * config.gcc (powerpc64-*-gnu*): Add rs6000/default64.h to tm_file.
1494         Remove a number of t-files from tmake_file.
1495         * config/rs6000/sysv4.opt (mprototype): Name variable target_prototype.
1496         * config/rs6000/sysv4.h (TARGET_PROTOTYPE): Define.
1497         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
1498         target_prototype, not TARGET_PROTOTYPE.
1499         (LINK_OS_GNU_SPEC): Define.
1500         * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Delete tramp.S
1501         and darwin-ldoubdle.c.
1502
1503 2009-04-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
1504
1505         PR driver/39293
1506         * gcc.c (save_temps_flag): Add support for -save-temps=obj.
1507         (cpp_options): Ditto.
1508         (default_compilers): Ditto.
1509         (display_help): Ditto.
1510         (process_command): Ditto.
1511         (do_spec_1): Ditto.
1512         (set_input): Use lbasename instead of duplicate code.
1513         (save_temps_prefix): New static for -save-temps=obj.
1514         (save_temps_length): Ditto.
1515         
1516         * doc/invoke.texi (-save-temps=obj): Document new variant to
1517         -save-temps switch.
1518
1519 2009-04-02  Jeff Law  <law@redhat.com>
1520
1521         * reload1.c (fixup_eh_region_notes): Remove write-only "trap_count"
1522         variable.
1523
1524 2009-04-02  H.J. Lu  <hongjiu.lu@intel.com>
1525
1526         * configure.ac: Support -Bstatic/-Bdynamic for linker version > 2.
1527         * configure: Regenerated.
1528
1529 2009-04-02  Rafael Avila de Espindola  <espindola@google.com>
1530
1531         * c-decl.c (merge_decls): Make sure newdecl and olddecl don't
1532         share the argument list.
1533
1534 2009-04-02  Rafael Avila de Espindola  <espindola@google.com>
1535
1536         Merge
1537
1538         2009-02-12  Diego Novillo  <dnovillo@google.com>
1539
1540         * varpool.c (debug_varpool): New.
1541         * cgraph.h (debug_varpool): Declare.
1542
1543 2009-04-02  Jan Hubicka  <jh@suse.cz>
1544
1545         * passes.c (init_optimization_passes): Remove two copies of ehcleanup
1546         pass.
1547
1548 2009-04-02  H.J. Lu  <hongjiu.lu@intel.com>
1549
1550         * config/i386/i386.c (ix86_abi): Move initialization to ...
1551         (override_options): Here.
1552
1553 2009-04-02  Christian Bruel  <christian.bruel@st.com>
1554
1555         * config/sh/sh.c (sh_dwarf_register_span): New function.
1556         (TARGET_DWARF_REGISTER_SPAN): Define.
1557         * config/sh/sh-protos.h (sh_dwarf_register_span): Declare.
1558         
1559 2009-04-02  Ira Rosen  <irar@il.ibm.com>
1560
1561         PR tree-optimization/39595
1562         * tree-vect-slp.c (vect_build_slp_tree): Check that the size of 
1563         interleaved loads group is not  greater than the SLP group size.
1564
1565 2009-04-02  Rafael Avila de Espindola  <espindola@google.com>
1566
1567         * builtins.c (is_builtin_name): New.
1568         (called_as_built_in): Use is_builtin_name.
1569         * tree.h (is_builtin_name): New.
1570         * varasm.c (incorporeal_function_p): Use is_builtin_name
1571
1572 2009-04-02  Andrew Stubbs  <ams@codesourcery.com>
1573
1574         * config/sh/linux-unwind.h: Disable when inhibit_libc is defined.
1575
1576 2009-04-02  Dodji Seketeli  <dodji@redhat.com>
1577
1578         PR c++/26693
1579         * c-decl.c: (clone_underlying_type): Move this ...
1580         * c-common.c (set_underlying_type): ... here.
1581         Also, make sure the function properly sets TYPE_STUB_DECL() on
1582         the newly created typedef variant type.
1583         * c-common.h (is_typedef_decl, set_underlying_type): Declare ...
1584         * c-common.c (is_typedef_decl, set_underlying_type): ... new entry
1585         points.
1586
1587 2009-04-02  Richard Guenther  <rguenther@suse.de>
1588
1589         PR tree-optimization/37221
1590         * tree-flow.h (degenerate_phi_result): Declare.
1591         * tree-ssa-dom.c (degenerate_phi_result): Export.
1592         * tree-scalar-evolution.c (analyze_initial_condition): If
1593         the initial condition is defined by a degenerate PHI node
1594         use the degenerate value.
1595
1596 2009-04-01  Eric Botcazou  <ebotcazou@adacore.com>
1597
1598         PR rtl-optimization/39588
1599         * combine.c (merge_outer_ops): Do not set the constant when this
1600         is not necessary.
1601         (simplify_shift_const_1): Do not modify it either in this case.
1602
1603 2009-04-01  Steven Bosscher  <steven@gcc.gnu.org>
1604
1605         * config/ia64/ia64.c (ia64_handle_option): Inform user that Itanium1
1606         tuning is deprecated if -mtune value is set to an Itanium1 variant.
1607
1608 2009-04-01  Janis Johnson  <janis187@us.ibm.com>
1609
1610         PR c/29027
1611         * c-lex.c (interpret_float): Default (no suffix) is double.
1612
1613 2009-04-1  Xinliang David Li  <davidxl@google.com>
1614
1615         * config/i386/i386.c (legitimate_constant_p): Recognize
1616         all one vector constant.
1617
1618 2009-04-01  Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
1619
1620         * gcc/config/vax/vax.c: Add #includes to silence warnings.
1621         Change #include order to silence two warnings.
1622
1623 2009-04-01  Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
1624
1625         * gcc/config/vax/linux.h (TARGET_DEFAULT): Add the MASK_QMATH flag bit.
1626         (ASM_SPEC): Pass -k to the assembler for PIC code.
1627
1628 2009-04-01  Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
1629
1630         * gcc/config.gcc: Add vax-*-linux* to the switch.
1631         * gcc/config/vax/linux.h: New file. (TARGET_VERSION,
1632         TARGET_OS_CPP_BUILTINS, TARGET_DEFAULT, CPP_SPEC, LINK_SPEC): Define.
1633
1634 2009-04-01  Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
1635
1636         * gcc/config/vax/vax.c (vax_output_int_move, adjacent_operands_p):
1637         Use predicate macros instead of GET_CODE() == foo.
1638         * gcc/config/vax/vax.md (movsi_2, movstrictqi, and<mode>3, ashrsi3,
1639         ashlsi3, rotrsi3, <unnamed>): Likewise.
1640
1641 2009-04-01  Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
1642
1643         * gcc/config/vax/builtins.md (jbbssiqi, jbbssihi, jbbssisi, jbbcciqi,
1644         jbbccihi, jbbccisi): Remova trailing whitespace.
1645         * gcc/config/vax/constraints.md: Likewise.
1646         * gcc/config/vax/elf.h: (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
1647         * gcc/config/vax/openbsd1.h (OBSD_OLD_GAS): Likewise.
1648         * gcc/config/vax/predicates.md: Likewise.
1649         * gcc/config/vax/vax.c (print_operand_address, vax_output_int_move,
1650         vax_expand_addsub_di_operands, adjacent_operands_p): Likewise.
1651         * gcc/config/vax/vax.h: Likewise.
1652         * gcc/config/vax/vax.md (nonlocal_goto): Likewise.
1653
1654 2009-04-01  Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
1655
1656         * gcc/config/vax/vax.c (vax_float_literal, vax_output_int_move)
1657         (indirectable_address_p, adjacent_operands_p): Add spaces around
1658         braces.
1659         * gcc/config/vax/vax-protos.h (adjacent_operands_p): Likewise.
1660
1661 2009-04-01  Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
1662
1663         * gcc/config/vax/vax.c (legitimate_constant_address_p,
1664         legitimate_constant_p, indirectable_address_p, nonindexed_address_p,
1665         index_term_p, reg_plus_index_p, legitimate_address_p,
1666         vax_mode_dependent_address_p): Update comments to match functions
1667         modified by the recent int->bool conversion.
1668
1669 2009-04-01  Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
1670
1671         * gcc/config/vax/builtins.md: Update copyright message.
1672         * gcc/config/vax/constraints.md: Likewise.
1673         * gcc/config/vax/netbsd-elf.h: Likewise.
1674         * gcc/config/vax/predicates.md: Likewise.
1675         * gcc/config/vax/vax-protos.h: Likewise.
1676         * gcc/config/vax/vax.c: Likewise.
1677         * gcc/config/vax/vax.h: Likewise.
1678         * gcc/config/vax/vax.md: Likewise.
1679         * gcc/config/vax/vax.opt: Likewise.
1680
1681 2009-04-01  Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
1682
1683         * gcc/config/vax/builtins.md (ffssi2, ffssi2_internal,
1684         sync_lock_test_and_set<mode>, sync_lock_release<mode>): Fix indention.
1685         * gcc/config/vax/constraints.md (B, R): Likewise.
1686         * gcc/config/vax/predicates.md (external_memory_operand,
1687         nonimmediate_addsub_di_operand): Likewise.
1688         * gcc/config/vax/vax.c (vax_output_int_add): Likewise.
1689         * gcc/config/vax/vax.md (movsi, movsi_2, mov<mode>, call_value,
1690         untyped_call): Likewise.
1691
1692 2009-04-01  Matt Thomas <matt@3am-software.com>
1693
1694         * config/vax/predicates.md: New file.
1695         (symbolic_operand, local_symbolic_operand, external_symbolic_operand,
1696         external_const_operand, nonsymbolic_operand, external_memory_operand,
1697         indirect_memory_operand, indexed_memory_operand,
1698         illegal_blk_memory_operand, illegal_addsub_di_memory_operand,
1699         nonimmediate_addsub_di_operand, general_addsub_di_operand): New
1700         predicate.
1701         * config/vax/constraints.md: New file.
1702         (Z0, U06,  U08, U16, CN6, S08, S16, I, J, K, L, M, N, O, G, Q, B, R, T):
1703         New constraint.
1704         * config/vax/builtins.md: New file.
1705         (ffssi2, ffssi2_internal, sync_lock_test_and_set<mode>, jbbssiqi,
1706         jbbssihi, jbbssisi, sync_lock_release<mode>, jbbcciqi, jbbccihi,
1707         jbbccisi): Define.
1708         * config/vax/vax.opt (mqmath): Add option.
1709         * config/vax/vax.md (isfx): Extend with DI.
1710         (VAXintQH, VAXintQHSD): Define.
1711         (tst<mode>, cmp<mode>, *bit<mode>, movmemhi1, truncsiqi2, truncsihi2,
1712         mulsidi3, add<mode>3, sub<mode>, mul<mode>3, div<mode>3, and<mode>,
1713         and<mode>_const_int, ior<mode>3, xor<mode>3, neg<mode>2,
1714         one_cmpl<mode>2, ashlsi3, lshrsi3, rotlsi3): Update constraints.
1715         (movdi): Update constraints and use vax_output_int_move().
1716         (movsi, movsi_2, pushlclsymreg, pushextsymreg, movlclsymreg,
1717         movextsymreg, adddi3, adcdi3, subdi3, sbcdi3, pushextsym, movextsym,
1718         pushlclsym, movlclsym, movaddr<mode>, pushaddr<mode>,
1719         nonlocal_goto): New.
1720         (mov<mode>): Extend accepted operand types.
1721         (subdi3_old): Rename from subdi3, change update constraints and use
1722         a new implementation.
1723         * gcc/config/vax/vax.h (PCC_BITFIELD_TYPE_MATTERS): Add space.
1724         (FRAME_POINTER_CFA_OFFSET, IRA_COVER_CLASSES, CLASS_MAX_NREGS,
1725         MOVE_RATIO, CLEAR_RATIO): Define.
1726         (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P,
1727         CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Delete.
1728         (PRINT_OPERAND): Redefine using a function instead of inlined code.
1729         * gcc/config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
1730         (split_quadword_operands): Make static and really allow variable
1731         splitting.
1732         (print_operand_address): Update for PIC generation.
1733         (print_operand, vax_builtin_setjmp_frame_value, vax_output_int_subtract,
1734         indexable_address_p, fixup_mathdi_operand,
1735         vax_expand_addsub_di_operands, adjacent_operands_p): New.
1736         (vax_float_literal, legitimate_constant_p,
1737         indirectable_constant_address_p, index_term_p,
1738         reg_plus_index_p): Return bool instead of int.
1739         (vax_rtx_costs): Fix cost for CONST_INT, indent and use HOST_WIDE_INT
1740         where needed.
1741         (vax_output_int_move, vax_output_int_add): Extend to allow PIC
1742         generation.
1743         (vax_output_conditional_branch): Indent.
1744         (legitimate_constant_address_p, indirectable_constant_address_p,
1745         indirectable_address_p, nonindexed_address_p, legitimate_address_p,
1746         vax_mode_dependent_address_p): Return bool instead of int, update for
1747         PIC generation.
1748         * config/vax/vax-protos.h (legitimate_constant_address_p,
1749         legitimate_constant_p, legitimate_address_p,
1750         vax_mode_dependent_address_p): Change declaration to bool.
1751         (legitimate_pic_operand_p, adjacent_operands_p, print_operand,
1752         vax_expand_addsub_di_operands, vax_output_int_subtract,
1753         vax_output_movmemsi): Declare.
1754         (split_quadword_operands, vax_float_literal): Delete declaration.
1755         * config/vax/netbsd-elf.h (CC1_SPEC, CC1PLUS_SPEC) Define.
1756         * config/vax/elf.h (NO_EXTERNAL_INDIRECT_ADDRESS,
1757         VAX_CC1_AND_CC1PLUS_SPEC, ASM_PREFERRED_EH_DATA_FORMAT,
1758         ASM_OUTPUT_DWARF_PCREL): Define.
1759         (ASM_SPEC): Change definition to allow PIC generation.
1760
1761 2009-04-01  Steve Ellcey  <sje@cup.hp.com>
1762
1763         * doc/sourcebuild.texi: Update front-end requirements.
1764
1765 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
1766
1767         PR target/39226
1768         * config/rs6000/rs6000.md (andsi3_internal5_nomc,
1769         anddi3_internal2_nomc, anddi3_internal3_nomc): Removed.
1770         (booldi3_internal3): Use boolean_or_operator instead of
1771         boolean_operator.
1772
1773 2009-04-01  Joseph Myers  <joseph@codesourcery.com>
1774
1775         PR c/39605
1776         * c-decl.c (grokdeclarator): Pedwarn for file-scope array
1777         declarator whose size is not an integer constant expression but
1778         folds to an integer constant, then treat it as a constant
1779         subsequently.
1780
1781 2009-04-01  Richard Guenther  <rguenther@suse.de>
1782
1783         * fold-const.c (fold_plusminus_mult_expr): Do not fold
1784         i * 4 + 2 to (i * 2 + 1) * 2.
1785
1786 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
1787
1788         PR c/37772
1789         * c-parser.c (c_parser_asm_statement): Skip until close paren and
1790         return if c_parser_asm_string_literal returned NULL.
1791
1792 2009-04-01  Nick Clifton  <nickc@redhat.com>
1793
1794         * config/m32c/m32c.h (LIBGCC2_UNITS_PER_WORD): Define if not
1795         already defined.
1796         * config/m32c/t-m32c (LIB2FUNCS_EXTRA): Add m32c-lib2-trapv.c.
1797         * config/m32c/m32c-lib2.c: Remove unused typedefs.  Rename the
1798         other typedefs to avoid conflicts with libgcc2.c.  Define labels
1799         to gain 16-bit bit-manipulation functions from libgcc2.c and then
1800         include it.
1801         * config/m32c/m32c-lib2-trapv.c: New file.  Define labels
1802         to gain 16-bit trapping arithmetic functions from libgcc2.c and
1803         then include it.
1804
1805 2009-04-01  Rafael Avila de Espindola  <espindola@google.com>
1806
1807         * varasm.c (default_function_rodata_section): Declare DOT as
1808         const char*.
1809
1810 2009-04-01  Kai Tietz  <kai.tietz@onevision.com>
1811             Andrey Galkin <agalkin@hypercom.com>
1812
1813         PR/39492
1814         * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
1815         Make object_name unique for each process.
1816
1817 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
1818
1819         PR other/39591
1820         * omp-low.c (remove_exit_barrier): Don't optimize if there are any
1821         addressable variables in the parallel that could go out of scope while
1822         running queued tasks.
1823
1824 2009-04-01  Anatoly Sokolov  <aesok@post.ru>
1825
1826         * config/avr/avr.h (avr_case_values_threshold): Remove declaration.
1827         (CASE_VALUES_THRESHOLD): Redefine.
1828         * config/avr/avr.c (avr_override_options): Remove initialization of
1829         avr_case_values_threshold variable.
1830         (avr_case_values_threshold): Remove variable. Add new function.
1831         * config/avr/avr-protos.h (avr_case_values_threshold): Declare.
1832         * config/avr/avr.opt (mno-tablejump): Remove option.
1833         * doc/invoke.texi (AVR Options): Remove -mno-tablejump.
1834
1835 2009-04-01  DJ Delorie  <dj@redhat.com>
1836
1837         * varasm.c (default_function_rodata_section): Don't assume
1838         anything about where the first '.' in the section name is.
1839
1840 2009-04-01  Alan Modra  <amodra@bigpond.net.au>
1841
1842         * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Delete redundant
1843         rs6000_emit_stack_tie.
1844
1845 2009-03-31  Ian Lance Taylor  <iant@google.com>
1846
1847         * tree-eh.c (tree_remove_unreachable_handlers): Compare
1848         gimple_code with GIMPLE_RESX, not RESX.
1849
1850 2009-03-31  Joseph Myers  <joseph@codesourcery.com>
1851
1852         * c-common.c (c_get_ident): New.
1853         (c_common_nodes_and_builtins): Call it for type names that may be NULL.
1854
1855 2009-04-01  Ben Elliston  <bje@au.ibm.com>
1856
1857         * config/rs6000/sysv4.opt (msdata): Improve option description.
1858
1859 2009-03-31  Steve Ellcey  <sje@cup.hp.com>
1860
1861         * config/ia64/ia64.md (divsf3_internal_lat): Remove.
1862         (divdf3_internal_lat): Remove.
1863         (divxf3_internal_lat): Remove.
1864         (divxf3_internal_thr): Remove.
1865         (divxf): Use divxf3_internal.
1866         * config/ia64/div.md (divsf3_internal_lat): New.
1867         (divdf3_internal_lat): New.
1868         (divxf3_internal): New.
1869
1870 2009-03-31  Joseph Myers  <joseph@codesourcery.com>
1871
1872         PR c/448
1873         * Makefile.in (USE_GCC_STDINT): Define.
1874         (stmp-int-hdrs): Install stdint.h if applicable.
1875         * c-common.c (CHAR16_TYPE): Define in terms of UINT_LEAST16_TYPE
1876         if known.
1877         (CHAR32_TYPE): Define in terms of UINT_LEAST32_TYPE if known.
1878         (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE, INT32_TYPE, INT64_TYPE,
1879         UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE,
1880         INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
1881         INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
1882         UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
1883         INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
1884         UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
1885         UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
1886         (c_common_nodes_and_builtins): Initialize
1887         underlying_wchar_type_node.  Do not initialize
1888         signed_wchar_type_node or unsigned_wchar_type_node.  Initialize
1889         nodes for new types.
1890         (c_stddef_cpp_builtins): Define macros for new types.
1891         * c-common.h (CTI_SIGNED_WCHAR_TYPE, CTI_UNSIGNED_WCHAR_TYPE):
1892         Remove.
1893         (CTI_UNDERLYING_WCHAR_TYPE, CTI_SIG_ATOMIC_TYPE, CTI_INT8_TYPE,
1894         CTI_INT16_TYPE, CTI_INT32_TYPE, CTI_INT64_TYPE, CTI_UINT8_TYPE,
1895         CTI_UINT16_TYPE, CTI_UINT32_TYPE, CTI_UINT64_TYPE,
1896         CTI_INT_LEAST8_TYPE, CTI_INT_LEAST16_TYPE, CTI_INT_LEAST32_TYPE,
1897         CTI_INT_LEAST64_TYPE, CTI_UINT_LEAST8_TYPE, CTI_UINT_LEAST16_TYPE,
1898         CTI_UINT_LEAST32_TYPE, CTI_UINT_LEAST64_TYPE, CTI_INT_FAST8_TYPE,
1899         CTI_INT_FAST16_TYPE, CTI_INT_FAST32_TYPE, CTI_INT_FAST64_TYPE,
1900         CTI_UINT_FAST8_TYPE, CTI_UINT_FAST16_TYPE, CTI_UINT_FAST32_TYPE,
1901         CTI_UINT_FAST64_TYPE, CTI_INTPTR_TYPE, CTI_UINTPTR_TYPE): Define.
1902         (signed_wchar_type_node, unsigned_wchar_type_node): Remove.
1903         (underlying_wchar_type_node, sig_atomic_type_node, int8_type_node,
1904         int16_type_node, int32_type_node, int64_type_node,
1905         uint8_type_node, uint16_type_node, c_uint32_type_node,
1906         c_uint64_type_node, int_least8_type_node, int_least16_type_node,
1907         int_least32_type_node, int_least64_type_node,
1908         uint_least8_type_node, uint_least16_type_node,
1909         uint_least32_type_node, uint_least64_type_node,
1910         int_fast8_type_node, int_fast16_type_node, int_fast32_type_node,
1911         int_fast64_type_node, uint_fast8_type_node, uint_fast16_type_node,
1912         uint_fast32_type_node, uint_fast64_type_node, intptr_type_node,
1913         uintptr_type_node): Define.
1914         * c-cppbuiltin.c (builtin_define_constants,
1915         builtin_define_type_minmax): New.
1916         (builtin_define_stdint_macros): Define more macros.
1917         (c_cpp_builtins): Define more limit macros.
1918         (type_suffix): New.
1919         (builtin_define_type_max): Define in terms of
1920         builtin_define_type_minmax.  Remove is_long parameter.  All
1921         callers changed.
1922         * config.gcc (use_gcc_stdint): Define.
1923         (tm_file): Add glibc-stdint.h for targets using glibc or uClibc.
1924         Add newlib-stdint.h for generic targets.
1925         * config/glibc-stdint.h, config/newlib-stdint.h,
1926         ginclude/stdint-gcc.h, ginclude/stdint-wrap.h: New.
1927         * config/m32c/m32c.h (UINTPTR_TYPE): Define.
1928         * config/score/score.h (UINTPTR_TYPE): Define.
1929         * config/sol2.h (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE,
1930         INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE,
1931         UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
1932         INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
1933         UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
1934         INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
1935         UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
1936         UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
1937         * config/spu/spu.h (STDINT_LONG32): Define.
1938         * configure.ac (use_gcc_stdint): Substitute.
1939         * configure: Regenerate.
1940         * doc/cpp.texi (__SIG_ATOMIC_TYPE__, __INT8_TYPE__,
1941         __INT16_TYPE__, __INT32_TYPE__, __INT64_TYPE__, __UINT8_TYPE__,
1942         __UINT16_TYPE__, __UINT32_TYPE__, __UINT64_TYPE__,
1943         __INT_LEAST8_TYPE__, __INT_LEAST16_TYPE__, __INT_LEAST32_TYPE__,
1944         __INT_LEAST64_TYPE__, __UINT_LEAST8_TYPE__, __UINT_LEAST16_TYPE__,
1945         __UINT_LEAST32_TYPE_, __UINT_LEAST64_TYPE__, __INT_FAST8_TYPE__,
1946         __INT_FAST16_TYPE__, __INT_FAST32_TYPE__, __INT_FAST64_TYPE__,
1947         __UINT_FAST8_TYPE__, __UINT_FAST16_TYPE__, __UINT_FAST32_TYPE__,
1948         __UINT_FAST64_TYPE__, __INTPTR_TYPE__, __UINTPTR_TYPE__,
1949         __WINT_MAX__, __SIZE_MAX__, __PTRDIFF_MAX__, __UINTMAX_MAX__,
1950         __SIG_ATOMIC_MAX__, __INT8_MAX__, __INT16_MAX__, __INT32_MAX__,
1951         __INT64_MAX__, __UINT8_MAX__, __UINT16_MAX__, __UINT32_MAX__,
1952         __UINT64_MAX__, __INT_LEAST8_MAX__, __INT_LEAST16_MAX__,
1953         __INT_LEAST32_MAX__, __INT_LEAST64_MAX__, __UINT_LEAST8_MAX__,
1954         __UINT_LEAST16_MAX__, __UINT_LEAST32_MAX__, __UINT_LEAST64_MAX__,
1955         __INT_FAST8_MAX__, __INT_FAST16_MAX__, __INT_FAST32_MAX__,
1956         __INT_FAST64_MAX__, __UINT_FAST8_MAX__, __UINT_FAST16_MAX__,
1957         __UINT_FAST32_MAX__, __UINT_FAST64_MAX__, __INTPTR_MAX__,
1958         __UINTPTR_MAX__, __WCHAR_MIN__, __WINT_MIN__, __SIG_ATOMIC_MIN__,
1959         __INT8_C, __INT16_C, __INT32_C, __INT64_C, __UINT8_C, __UINT16_C,
1960         __UINT32_C, __UINT64_C, __INTMAX_C, __UINTMAX_C): Document.
1961         * doc/tm.texi (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE, INT32_TYPE,
1962         INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE,
1963         INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
1964         INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
1965         UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
1966         INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
1967         UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
1968         UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Document.
1969
1970 2009-03-31  Bernd Schmidt  <bernd.schmidt@analog.com>
1971
1972         * loop-iv.c (suitable_set_for_replacement): Renamed from
1973         simplify_using_assignment; changed to return bool and to accept new
1974         args DEST and SRC.  Return true iff we find a source/destination pair
1975         that can be used to make a replacement, and fill SRC and DEST if so.
1976         Remove arg ALTERED.  Don't deal with altered regs here.  All callers
1977         changed.
1978         (simplify_using_initial_values): Deal with altered regs here and track
1979         more precisely the effect they have on the validity of our expression.
1980
1981         * loop-iv.c (simplify_using_condition): A condition of the form
1982         (EQ REG CONST) can be used to simply make a substitution.
1983         (simplify_using_initial_values): Keep track of conditions we have seen
1984         and keep using them to simplify new expressions, while applying the
1985         same substitutions to them as to the expression.
1986
1987         * simplify-rtx.c (simplify_relational_operation_1): Simplify
1988         (LTU (PLUS a C) C) or (LTU (PLUS a C) a) to (GEU a -C); likewise with
1989         GEU/LTU reversed.
1990
1991         * loop-iv.c (determine_max_iter): New arg OLD_NITER.  All callers
1992         changed.  Use this when trying to improve the upper bound.
1993         Generate the comparison by using simplify_gen_relational.
1994
1995         * loop-iv.c (simple_rhs_p): Allow more kinds of expressions.
1996
1997         * loop-iv.c (replace_single_def_regs, replace_in_expr): New static
1998         functions.
1999         (simplify_using_assignment, simplify_using_initial_values): Call 
2000         replace_in_expr to make replacements.  Call replace_single_def_regs
2001         once on the initial version of the expression.
2002
2003 2009-03-31  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2004
2005         PR target/27237
2006         * doc/invoke.texi (ARM Options): Update documentation for -mthumb.
2007         
2008 2009-03-31  Richard Guenther  <rguenther@suse.de>
2009
2010         PR middle-end/31029
2011         * fold-const.c (fold_binary): Fold X +- Y CMP X to Y CMP 0 for
2012         equality comparisons.  Fold C - X CMP X if C % 2 == 1.
2013
2014 2009-03-31  Richard Guenther  <rguenther@suse.de>
2015
2016         * tree.h (div_if_zero_remainder): Declare.
2017         * fold-const.c (div_if_zero_remainder): Export.
2018         * tree-ssa-forwprop.c
2019         (forward_propagate_addr_into_variable_array_index): Handle
2020         constant array index addition outside of the variable index.
2021
2022 2009-03-31  Joseph Myers  <joseph@codesourcery.com>
2023
2024         PR target/39592
2025         * config/i386/i386.md (*floatunssi<mode>2_1, two unnamed
2026         define_splits, floatunssi<mode>2): Require x87 conversions from
2027         DImode to be permitted.
2028
2029 2009-03-31  Joseph Myers  <joseph@codesourcery.com>
2030
2031         PR preprocessor/15638
2032         * c-common.c (c_cpp_error): Handle CPP_DL_FATAL.
2033
2034 2009-03-31  Richard Guenther  <rguenther@suse.de>
2035
2036         PR middle-end/23401
2037         PR middle-end/27810
2038         * tree.h (DECL_GIMPLE_FORMAL_TEMP_P): Remove.
2039         (struct tree_decl_with_vis): Remove gimple_formal_temp member.
2040         * tree-eh.c (lower_eh_constructs_2): Move LHS assignment to
2041         a separate statement.
2042         * gimplify.c (pop_gimplify_context): Remove formal temp handling.
2043         (lookup_tmp_var): Likewise.
2044         (is_gimple_formal_tmp_or_call_rhs): Remove.
2045         (is_gimple_reg_or_call_rhs): Rename to ...
2046         (is_gimple_reg_rhs_or_call): ... this.
2047         (is_gimple_mem_or_call_rhs): Rename to ...
2048         (is_gimple_mem_rhs_or_call): ... this.
2049         (internal_get_tmp_var): Use is_gimple_reg_rhs_or_call.  Set
2050         DECL_GIMPLE_REG_P only if is_formal is true.
2051         (gimplify_compound_lval): Use is_gimple_reg.  Remove workaround
2052         for non-proper post-modify expression gimplification.
2053         (gimplify_self_mod_expr): For post-modify expressions gimplify
2054         the lvalue to a minimal lvalue.
2055         (rhs_predicate_for): Remove formal temp case.
2056         (gimplify_modify_expr_rhs): Likewise.
2057         (gimplify_addr_expr): Use is_gimple_reg.
2058         (gimplify_expr): Remove formal temp cases.
2059         (gimple_regimplify_operands): Likewise.
2060         * tree-ssa-pre.c (get_or_alloc_expr_for): Treat EXC_PTR_EXPR
2061         and FILTER_EXPR like constants.
2062         * gimple.c (walk_gimple_op): Fix val_only initialization, use
2063         is_gimple_reg.
2064         (is_gimple_formal_tmp_rhs): Remove.
2065         (is_gimple_reg_rhs): Remove special casing.
2066         (is_gimple_mem_rhs): Fix.
2067         (is_gimple_reg): Move DECL_GIMPLE_REG_P handling earlier.
2068         (is_gimple_formal_tmp_var): Remove.
2069         (is_gimple_formal_tmp_reg): Likewise.
2070         (is_gimple_min_lval): Allow invariant component ref parts.
2071         * gimple.h (is_gimple_formal_tmp_rhs, is_gimple_formal_tmp_var,
2072         is_gimple_formal_tmp_reg): Remove declarations.
2073         * tree-cfg.c (verify_expr): Verify that variables with address
2074         taken do not have DECL_GIMPLE_REG_P set.
2075         * tree-mudflap.c (mf_build_check_statement_for): Use
2076         force_gimple_operand instead of gimplify_expr.
2077
2078 2009-03-31  Ayal Zaks  <zaks@il.ibm.com>
2079
2080         * modulo-sched.c (sms_schedule_by_order): Pass the actual
2081         schedulable rows to compute_split_row.
2082
2083 2009-03-31  Ben Elliston  <bje@au.ibm.com>
2084
2085         PR target/31635
2086         * config/rs6000/rs6000.c (rs6000_handle_option): Handle
2087         OPT_mvrsave.
2088
2089 2009-03-31  Alan Modra  <amodra@bigpond.net.au>
2090
2091         * doc/invoke.texi (RS/6000 and PowerPC Options):Document mtls-markers.
2092         * configure.ac (HAVE_AS_TLS_MARKERS): New gas feature check.
2093         * configure: Regenerate.
2094         * config.in: Regenerate.
2095         * config/rs6000/rs6000.opt (mtls-markers): Add.
2096         * config/rs6000/rs6000.h (TARGET_TLS_MARKERS): Define.
2097         * config/rs6000/rs6000.md (tls_gd_aix, tls_gd_sysv): Add splitter.
2098         (tls_ld_aix, tls_ld_sysv): Likewise.
2099         (tls_gd, tls_gd_call_aix, tls_gd_call_sysv): New insns.
2100         (tls_ld, tls_ld_call_aix, tls_ld_call_sysv): Likewise.
2101
2102 2009-03-31  Alan Modra  <amodra@bigpond.net.au>
2103
2104         * config/spu/spu.c (spu_expand_prologue): Delete redundant code.
2105
2106 2009-03-30  Jan Hubicka  <jh@suse.cz>
2107
2108         * tree-eh.c (make_eh_edges): Set probability 100% to first edge
2109         out of RESX.
2110         (tree_remove_unreachable_handlers): Cleanup EH predecestor
2111         detection and label handling.
2112
2113 2009-03-30  Vladimir Makarov  <vmakarov@redhat.com>
2114
2115         * ira-int.h (ira_allocno): Rename left_conflicts_num to
2116         left_conflicts_size.
2117         (ALLOCNO_LEFT_CONFLICTS_NUM): Rename to
2118         ALLOCNO_LEFT_CONFLICTS_SIZE.
2119
2120         * ira-color.c (allocno_spill_priority, push_allocno_to_stack,
2121         remove_allocno_from_bucket_and_push,
2122         allocno_spill_priority_compare, push_allocnos_to_stack,
2123         setup_allocno_available_regs_num): Use ALLOCNO_LEFT_CONFLICTS_SIZE
2124         instead of ALLOCNO_LEFT_CONFLICTS_NUM.
2125         (setup_allocno_left_conflicts_num): Ditto.  Rename to
2126         setup_allocno_left_conflicts_size.
2127         (put_allocno_into_bucket): Use ALLOCNO_LEFT_CONFLICTS_SIZE
2128         instead of ALLOCNO_LEFT_CONFLICTS_NUM and
2129         setup_allocno_left_conflicts_size instead of
2130         setup_allocno_left_conflicts_num.
2131
2132         * ira-build.c (ira_create_allocno): Use
2133         ALLOCNO_LEFT_CONFLICTS_SIZE instead of
2134         ALLOCNO_LEFT_CONFLICTS_NUM.
2135                 
2136 2009-03-30  Vladimir Makarov  <vmakarov@redhat.com>
2137
2138         * reload.c (push_reload, find_dummy_reload): Use df_get_live_out
2139         instead of DF_LR_OUT.
2140
2141         * ira-lives.c (process_bb_node_lives): Ditto.
2142
2143         * ira-color.c (ira_loop_edge_freq): Use df_get_live_{out,in}
2144         instead of DF_LR_{OUT,IN}.
2145
2146         * ira-emit.c (generate_edge_moves, add_ranges_and_copies): Ditto.
2147
2148         * ira-build.c (create_bb_allocnos, create_loop_allocnos): Ditto.
2149
2150 2009-03-30  Jan Hubicka  <jh@suse.cz>
2151
2152         * except.c (label_to_region_map): Fix thinko.
2153
2154 2009-03-30  Steve Ellcey  <sje@cup.hp.com>
2155
2156         PR middle-end/38237
2157         * tree.h (tree_find_value): New declaration.
2158         * tree.c (tree_find_value): New function.
2159         * varasm.c (assemble_external): Avoid duplicate entries on lists.
2160
2161 2009-03-30  Jakub Jelinek  <jakub@redhat.com>
2162
2163         PR debug/39563
2164         * c-decl.c (struct c_binding): Add locus field.
2165         (bind): Add locus argument, set locus field from it.
2166         (pop_scope): For b->nested VAR_DECL or FUNCTION_DECL,
2167         add a DECL_EXTERNAL copy of b->decl to current BLOCK_VARS.
2168         (push_file_scope, pushtag, pushdecl, pushdecl_top_level,
2169         implicitly_declare, undeclared_variable, lookup_label,
2170         declare_label, c_make_fname_decl, c_builtin_function,
2171         c_builtin_function_ext_scope, store_parm_decls_newstyle): Adjust
2172         bind callers.
2173
2174 2008-03-30  H.J. Lu  <hongjiu.lu@intel.com>
2175
2176         PR target/38781
2177         * config/i386/i386.c (classify_argument): Check total size of
2178         structure.
2179
2180 2009-03-30  Martin Jambor  <mjambor@suse.cz>
2181
2182         * ipa-prop.h (jump_func_type): Rename IPA_UNKNOWN, IPA_CONST,
2183         IPA_CONST_MEMBER_PTR, and IPA_PASS_THROUGH to IPA_JF_UNKNOWN,
2184         IPA_JF_CONST, IPA_JF_CONST_MEMBER_PTR, and IPA_JF_PASS_THROUGH
2185         respectively.
2186
2187         * tree-dfa.c (get_ref_base_and_extent): Return -1 maxsize if
2188         seen_variable_array_ref while also traversing a union.
2189
2190         * tree-inline.c (optimize_inline_calls): Do not call
2191         cgraph_node_remove_callees.
2192         * cgraphbuild.c (remove_cgraph_callee_edges): New function.
2193         (pass_remove_cgraph_callee_edges): New variable.
2194         * passes.c (init_optimization_passes): Add
2195         pass_remove_cgraph_callee_edges after early inlining and before all
2196         late intraprocedural passes.
2197
2198         * omp-low.c (expand_omp_taskreg): Always set current_function_decl.
2199
2200 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
2201
2202         * config/sparc/sparc.md (*nand<V64mode>_vis, *nand<V32mode>_vis):
2203         Fix typos in names.
2204
2205 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
2206
2207         * combine.c (simplify_comparison): Use have_insn_for.
2208         * dojump.c (do_jump): Likewise.
2209
2210 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
2211
2212         * config/sparc/sparc.c (sparc_compare_emitted): Remove.
2213         (gen_compare_reg, emit_v9_brxx_insn): Handle MODE_CC
2214         sparc_compare_op0 like sparc_compare_emitted used to be handled.
2215         (sparc_expand_compare_and_swap_12): Set sparc_compare_op0
2216         instead of sparc_compare_emitted.
2217         * config/sparc/sparc.h (sparc_compare_emitted): Remove.
2218         * config/sparc/sparc.md (stack_protect_test): Set sparc_compare_op0
2219         instead of sparc_compare_emitted.
2220
2221 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
2222
2223         * bb-reorder.c (partition_hot_cold_basic_blocks): Do not
2224         enter/exit cfglayout mode.
2225         (pass_partition_block): Require it.
2226         * combine.c (find_single_use, reg_dead_at_p): Use CFG.
2227         (combine_instructions): Track basic blocks instead of labels.
2228         (update_cfg_for_uncondjump): New.
2229         (try_combine): Use it.  Update jumps after rescanning.
2230         (pass_combine): Require PROP_cfglayout.
2231         * passes.c (pass_outof_cfg_layout_mode): Move after regmove.
2232
2233 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
2234
2235         * cfglayout.c (pass_into_cfg_layout_mode, pass_outof_cfg_layout_mode):
2236         Provide/destroy PROP_cfglayout respectively.
2237         * gcse.c (pass_jump_bypass, pass_gcse): Require it.
2238         * tree-pass.h (PROP_cfglayout): New.
2239
2240 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
2241
2242         * fold-const.c (const_binop, fold_convert_const_real_from_fixed,
2243         fold_convert_const_fixed_from_fixed,
2244         fold_convert_const_fixed_from_int,
2245         fold_convert_const_fixed_from_real, fold_negate_const): Do not
2246         set TREE_CONSTANT_OVERFLOW.
2247         * tree.def: Remove mention of TREE_CONSTANT_OVERFLOW.
2248         * tree.h (TREE_CONSTANT_OVERFLOW): Delete.
2249
2250 2009-03-30  Ira Rosen  <irar@il.ibm.com>
2251
2252         * tree-vect-loop-manip.c: New file.
2253         * tree-vectorizer.c: Update documentation and included files.
2254         (vect_loop_location): Make extern.
2255         (rename_use_op): Move to tree-vect-loop-manip.c
2256         (rename_variables_in_bb, rename_variables_in_loop, 
2257         slpeel_update_phis_for_duplicate_loop, 
2258         slpeel_update_phi_nodes_for_guard1,
2259         slpeel_update_phi_nodes_for_guard2, slpeel_make_loop_iterate_ntimes,
2260         slpeel_tree_duplicate_loop_to_edge_cfg, slpeel_add_loop_guard,
2261         slpeel_can_duplicate_loop_p, slpeel_verify_cfg_after_peeling,
2262         set_prologue_iterations, slpeel_tree_peel_loop_to_edge, 
2263         find_loop_location): Likewise.
2264         (new_stmt_vec_info): Move to tree-vect-stmts.c.
2265         (init_stmt_vec_info_vec, free_stmt_vec_info_vec, free_stmt_vec_info,
2266         get_vectype_for_scalar_type, vect_is_simple_use,
2267         supportable_widening_operation, supportable_narrowing_operation):
2268         Likewise.
2269         (bb_in_loop_p): Move to tree-vect-loop.c.
2270         (new_loop_vec_info, destroy_loop_vec_info, 
2271         reduction_code_for_scalar_code, report_vect_op, 
2272         vect_is_simple_reduction, vect_is_simple_iv_evolution): Likewise.
2273         (vect_can_force_dr_alignment_p): Move to tree-vect-data-refs.c.
2274         (vect_supportable_dr_alignment): Likewise.
2275         * tree-vectorizer.h (tree-data-ref.h): Include.
2276         (vect_loop_location): Declare.
2277         Reorganize function declarations according to the new file structure.
2278         * tree-vect-loop.c: New file.
2279         * tree-vect-analyze.c: Remove. Move functions to tree-vect-data-refs.c, 
2280         tree-vect-stmts.c, tree-vect-slp.c, tree-vect-loop.c.
2281         * tree-vect-data-refs.c: New file.
2282         * tree-vect-patterns.c (timevar.h): Don't include.
2283         * tree-vect-stmts.c: New file.
2284         * tree-vect-transform.c: Remove. Move functions to tree-vect-stmts.c, 
2285         tree-vect-slp.c, tree-vect-loop.c.
2286         * Makefile.in (OBJS-common): Remove tree-vect-analyze.o and 
2287         tree-vect-transform.o. Add tree-vect-data-refs.o, tree-vect-stmts.o, 
2288         tree-vect-loop.o, tree-vect-loop-manip.o, tree-vect-slp.o.
2289         (tree-vect-analyze.o): Remove.
2290         (tree-vect-transform.o): Likewise.
2291         (tree-vect-data-refs.o): Add rule.
2292         (tree-vect-stmts.o, tree-vect-loop.o, tree-vect-loop-manip.o, 
2293         tree-vect-slp.o): Likewise.
2294         (tree-vect-patterns.o): Remove redundant dependencies.
2295         (tree-vectorizer.o): Likewise.
2296         * tree-vect-slp.c: New file.
2297
2298 2009-03-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2299
2300         * optc-gen.awk: Warn if an option flag has multiple different
2301         help strings.
2302
2303 2009-03-30  Sebastian Pop  <sebastian.pop@amd.com>
2304
2305         * doc/invoke.texi (-floop-interchange, -floop-strip-mine,
2306         -floop-block): Document dependences on PPL, CLooG and Graphite.
2307
2308 2009-03-30  Joseph Myers  <joseph@codesourcery.com>
2309
2310         PR rtl-optimization/323
2311         * c-common.c (c_fully_fold, convert_and_check,
2312         c_common_truthvalue_conversion): Handle EXCESS_PRECISION_EXPR.
2313         (c_fully_fold_internal): Disallow EXCESS_PRECISION_EXPR.
2314         * c-common.def (EXCESS_PRECISION_EXPR): New.
2315         * c-cppbuiltin.c (builtin_define_float_constants): Define
2316         constants with enough digits for long double.
2317         * c-lex.c (interpret_float): Interpret constant with excess
2318         precision where appropriate.
2319         * c-opts.c (c_common_post_options): Set
2320         flag_excess_precision_cmdline.  Give an error for
2321         -fexcess-precision=standard for C++ for processors where the
2322         option is significant.
2323         * c-parser.c (c_parser_conditional_expression): Handle excess
2324         precision in condition.
2325         * c-typeck.c (convert_arguments): Handle arguments with excess
2326         precision.
2327         (build_unary_op): Move excess precision outside operation.
2328         (build_conditional_expr): Likewise.
2329         (build_compound_expr): Likewise.
2330         (build_c_cast): Do cast on operand of EXCESS_PRECISION_EXPR.
2331         (build_modify_expr): Handle excess precision in RHS.
2332         (convert_for_assignment): Handle excess precision in converted
2333         value.
2334         (digest_init, output_init_element, process_init_element): Handle
2335         excess precision in initializer.
2336         (c_finish_return): Handle excess precision in return value.
2337         (build_binary_op): Handle excess precision in operands and add
2338         excess precision as needed for operation.
2339         * common.opt (-fexcess-precision=): New option.
2340         * config/i386/i386.h (X87_ENABLE_ARITH, X87_ENABLE_FLOAT): New.
2341         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
2342         For standard excess precision, output explicit conversion to and
2343         truncation from XFmode.
2344         (*float<SSEMODEI24:mode><X87MODEF:mode>2_1,
2345         *float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp,
2346         *float<SSEMODEI24:mode><X87MODEF:mode>2_i387, two unnamed
2347         define_splits, floatdi<X87MODEF:mode>2_i387_with_xmm, two unnamed
2348         define_splits, *floatunssi<mode>2_1, two unnamed define_splits,
2349         floatunssi<mode>2, add<mode>3, sub<mode>3, mul<mode>3, divdf3,
2350         divsf3, *fop_<mode>_comm_i387, *fop_<mode>_1_i387,
2351         *fop_<MODEF:mode>_2_i387, *fop_<MODEF:mode>_3_i387,
2352         *fop_df_4_i387, *fop_df_5_i387, *fop_df_6_i387, two unnamed
2353         define_splits, sqrt<mode>2): Disable where appropriate for
2354         standard excess precision.
2355         * convert.c (convert_to_real): Do not shorten arithmetic to type
2356         for which excess precision would be used.
2357         * defaults.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Define.
2358         * doc/invoke.texi (-fexcess-precision=): Document option.
2359         (-mfpmath=): Correct index entry.
2360         * flags.h (enum excess_precision, flag_excess_precision_cmdline,
2361         flag_excess_precision): New.
2362         * langhooks.c (lhd_post_options): Set
2363         flag_excess_precision_cmdline.
2364         * opts.c (common_handle_option): Handle -fexcess-precision=.
2365         * toplev.c (flag_excess_precision_cmdline, flag_excess_precision,
2366         init_excess_precision): New.
2367         (lang_dependent_init_target): Call init_excess_precision.
2368         * tree.c (excess_precision_type): New.
2369         * tree.h (excess_precision_type): Declare.
2370
2371 2009-03-30  Joseph Myers  <joseph@codesourcery.com>
2372
2373         PR c/35235
2374         * c-typeck.c (build_component_ref): Do not copy qualifiers from
2375         non-lvalue to component.
2376
2377 2009-03-29  Joseph Myers  <joseph@codesourcery.com>
2378
2379         PR preprocessor/34695
2380         * Makefile.in (c-opts.o): Depend on c-tree.h.
2381         * c-common.c: Move down include of diagnostic.h.
2382         (done_lexing, c_cpp_error): New.
2383         * c-common.h (done_lexing): Declare.
2384         * c-decl.c (c_write_global_declarations): Don't check cpp_errors
2385         (parse_in).
2386         * c-opts.c: Include c-tree.h.
2387         (c_common_init_options): Set preprocessor error callback.
2388         (c_common_handle_option): Do not set preprocessor
2389         inhibit_warnings, warnings_are_errors, warn_system_headers,
2390         pedantic_errors or inhibit_warnings flags.
2391         (c_common_post_options): Do not check cpp_errors (parse_in).
2392         (c_common_finish): Do not output dependencies if there were
2393         errors.  Do not check return value of cpp_finish.
2394         * c-ppoutput.c (pp_file_change): Set input_location.
2395         * c-tree.h (c_cpp_error): Declare.
2396         * diagnostic.c (diagnostic_set_info_translated): Also initialize
2397         override_column.
2398         (diagnostic_build_prefix): Check override_column.
2399         * diagnostic.h (diagnostic_info): Add override_column field.
2400         (diagnostic_override_column): Define.
2401
2402 2009-03-28  Paolo Bonzini  <bonzini@gnu.org>
2403
2404         * c-common.c (c_expand_expr, c_staticp): Remove.
2405         * c-common.def (COMPOUND_LITERAL_EXPR): Delete.
2406         * c-common.h (emit_local_var, c_staticp, COMPOUND_LITERAL_EXPR_DECL,
2407         COMPOUND_LITERAL_EXPR_DECL_EXPR): Remove.
2408         * c-gimplify.c (gimplify_compound_literal_expr,
2409         optimize_compound_literals_in_ctor): Remove.
2410         (c_gimplify_expr): Remove COMPOUND_LITERAL_EXPR handling.
2411         * c-objc-common.h (LANG_HOOKS_STATICP): Remove.
2412         * c-semantics.c (emit_local_var): Remove.
2413
2414         * langhooks-def.h (lhd_expand_expr): Remove.
2415         * langhooks.c (lhd_expand_expr): Remove.
2416         * langhooks.h (LANG_HOOKS_DEF): Remove LANG_HOOKS_EXPAND_EXPR.
2417
2418         * expr.c (expand_expr_real_1): Move COMPOUND_LITERAL_EXPR
2419         handling from c-semantics.c; don't call into langhook.
2420         (expand_expr_addr_expr_1): Check that we don't get non-GENERIC trees.
2421         * gimplify.c (gimplify_compound_literal_expr,
2422         optimize_compound_literals_in_ctor): Move from c-gimplify.c.
2423         (gimplify_init_constructor): Call optimize_compound_literals_in_ctor.
2424         (gimplify_modify_expr_rhs, gimplify_expr): Handle COMPOUND_LITERAL_EXPR
2425         as was done in c-gimplify.c.
2426         * tree.c (staticp): Move COMPOUND_LITERAL_EXPR handling from c_staticp.
2427         * tree.h (COMPOUND_LITERAL_EXPR_DECL, COMPOUND_LITERAL_EXPR_DECL_EXPR):
2428         Move from c-common.h.
2429         * tree.def (COMPOUND_LITERAL_EXPR): Move from c-common.def.
2430
2431         * tree.c (staticp): Do not call langhook.
2432         * langhooks.c (lhd_staticp): Delete.
2433         * langhooks-def.h (lhd_staticp): Delete prototype.
2434         (LANG_HOOKS_STATICP): Delete.
2435         (LANG_HOOKS_INITIALIZER): Delete LANG_HOOKS_STATICP.
2436
2437         * doc/c-tree.texi (Expression nodes): Refer to DECL_EXPRs
2438         instead of DECL_STMTs.
2439
2440 2009-03-29  Joseph Myers  <joseph@codesourcery.com>
2441
2442         PR c/456
2443         PR c/5675
2444         PR c/19976
2445         PR c/29116
2446         PR c/31871
2447         PR c/35198
2448         * builtins.c (fold_builtin_sincos): Build COMPOUND_EXPR in
2449         void_type_node.
2450         (fold_call_expr): Return a NOP_EXPR from folding rather than the
2451         contained expression.
2452         * c-common.c (c_fully_fold, c_fully_fold_internal, c_save_expr): New.
2453         (c_common_truthvalue_conversion): Use c_save_expr.  Do not fold
2454         conditional expressions for C.
2455         (decl_constant_value_for_optimization): Move from
2456         decl_constant_value_for_broken_optimization in c-typeck.c.  Check
2457         whether optimizing and that the expression is a VAR_DECL not of
2458         array type instead of doing such checks in the caller.  Do not
2459         check pedantic.  Call gcc_unreachable for C++.
2460         * c-common.def (C_MAYBE_CONST_EXPR): New.
2461         * c-common.h (c_fully_fold, c_save_expr,
2462         decl_constant_value_for_optimization): New prototypes.
2463         (C_MAYBE_CONST_EXPR_PRE, C_MAYBE_CONST_EXPR_EXPR,
2464         C_MAYBE_CONST_EXPR_INT_OPERANDS, C_MAYBE_CONST_EXPR_NON_CONST,
2465         EXPR_INT_CONST_OPERANDS): Define.
2466         * c-convert.c (convert): Strip nops from expression.
2467         * c-decl.c (groktypename): Take extra parameters expr and
2468         expr_const_operands.  Update call to grokdeclarator.
2469         (start_decl): Update call to grokdeclarator.  Add statement for
2470         expressions used in type of decl.
2471         (grokparm): Update call to grokdeclarator.
2472         (push_parm_decl): Update call to grokdeclarator.
2473         (build_compound_literal): Add parameter non_const and build a
2474         C_MAYBE_COSNT_EXPR if applicable.
2475         (grokdeclarator): Take extra parameters expr and
2476         expr_const_operands.  Track expressions used in declaration
2477         specifiers and declarators.  Fold array sizes and track whether
2478         they are constant expressions and whether they are integer
2479         constant expressions.
2480         (parser_xref_tag): Set expr and expr_const_operands fields in
2481         return value.
2482         (grokfield): Update call to grokdeclarator.
2483         (start_function): Update call to grokdeclarator.
2484         (build_null_declspecs): Set expr and expr_const_operands fields in
2485         return value.
2486         (declspecs_add_type): Handle expressions in typeof specifiers.
2487         * c-parser.c (c_parser_declspecs): Set expr and
2488         expr_const_operands fields for declaration specifiers.
2489         (c_parser_enum_specifier): Likewise.
2490         (c_parser_struct_or_union_specifier): Likewise.
2491         (c_parser_typeof_specifier): Likewise.  Update call to
2492         groktypename.  Fold expression as needed.  Return expressions with
2493         type instead of adding statements.
2494         (c_parser_attributes): Update calls to c_parser_expr_list.
2495         (c_parser_statement_after_labels): Fold expression before passing
2496         to objc_build_throw_stmt.
2497         (c_parser_condition): Fold expression.
2498         (c_parser_asm_operands): Fold expression.
2499         (c_parser_conditional_expression): Use c_save_expr.  Update call
2500         to build_conditional_expr.
2501         (c_parser_alignof_expression): Update call to groktypename.
2502         (c_parser_postfix_expression): Preserve C_MAYBE_CONST_EXPR as
2503         original_code.  Fold expression argument of va_arg.  Create
2504         C_MAYBE_CONST_EXPR to preserve side effects of expressions in type
2505         argument to va_arg.  Update calls to groktypename.  Fold array
2506         index for offsetof.  Verify that first argument to
2507         __builtin_choose_expr has integer type.
2508         (c_parser_postfix_expression_after_paren_type): Update calls to
2509         groktypename and build_compound_literal.  Handle expressions with
2510         side effects in type name.
2511         (c_parser_postfix_expression_after_primary): Update call to
2512         c_parser_expr_list.  Set original_code for calls to
2513         __builtin_constant_p.
2514         (c_parser_expr_list): Take extra parameter fold_p.  Fold
2515         expressions if requested.
2516         (c_parser_objc_type_name): Update call to groktypename.
2517         (c_parser_objc_synchronized_statement): Fold expression.
2518         (c_parser_objc_receiver): Fold expression.
2519         (c_parser_objc_keywordexpr): Update call to c_parser_expr_list.
2520         (c_parser_omp_clause_num_threads, c_parser_omp_clause_schedule,
2521         c_parser_omp_atomic, c_parser_omp_for_loop): Fold expressions.
2522         * c-tree.h (CONSTRUCTOR_NON_CONST): Define.
2523         (struct c_typespec): Add elements expr and expr_const_operands.
2524         (struct c_declspecs): Add elements expr and expr_const_operands.
2525         (groktypename, build_conditional_expr, build_compound_literal):
2526         Update prototypes.
2527         (in_late_binary_op): Declare.
2528         * c-typeck.c (note_integer_operands): New function.
2529         (in_late_binary_op): New variable.
2530         (decl_constant_value_for_broken_optimization): Move to c-common.c
2531         and rename to decl_constant_value_for_optimization.
2532         (default_function_array_conversion): Do not strip nops.
2533         (default_conversion): Do not call
2534         decl_constant_value_for_broken_optimization.
2535         (build_array_ref): Do not fold result.
2536         (c_expr_sizeof_expr): Fold operand.  Use C_MAYBE_CONST_EXPR for
2537         result when operand is a VLA.
2538         (c_expr_sizeof_type): Update call to groktypename.  Handle
2539         expressions included in type name.  Use C_MAYBE_CONST_EXPR for
2540         result when operand names a VLA type.
2541         (build_function_call): Update call to build_compound_literal.
2542         Only fold result for calls to __builtin_* functions.  Strip
2543         NOP_EXPR from INTEGER_CST returned from such functions.  Fold
2544         the function designator.
2545         (convert_arguments): Fold arguments.  Update call to
2546         convert_for_assignment.
2547         (build_unary_op): Handle increment and decrement of
2548         C_MAYBE_CONST_EXPR.  Move lvalue checks for increment and
2549         decrement earlier.  Fold operand of increment and decrement.
2550         Handle address of C_MAYBE_CONST_EXPR.  Only fold expression being
2551         built for integer operand.  Wrap returns that are INTEGER_CSTs
2552         without being integer constant expressions or that have integer
2553         constant operands without being INTEGER_CSTs.
2554         (lvalue_p): Handle C_MAYBE_CONST_EXPR.
2555         (build_conditional_expr): Add operand ifexp_bcp.  Track whether
2556         result is an integer constant expression or can be used in
2557         unevaluated parts of one and avoid folding and wrap as
2558         appropriate.  Fold operands before possibly doing -Wsign-compare
2559         warnings.
2560         (build_compound_expr): Wrap result for C99 if operands can be used
2561         in integer constant expressions.
2562         (build_c_cast): Update call to digest_init.  Do not ignore
2563         overflow from casting floating-point constants to integers.  Wrap
2564         results that could be confused with integer constant expressions,
2565         null pointer constants or floating-point constants.
2566         (c_cast_expr): Update call to groktypename.  Handle expressions
2567         included in type name.
2568         (build_modify_expr): Handle modifying a C_MAYBE_CONST_EXPR.  Fold
2569         lhs inside possible SAVE_EXPR.  Fold RHS before assignment.
2570         Update calls to convert_for_assignment.
2571         (convert_for_assignment): Take new parameter
2572         null_pointer_constant.  Do not strip nops or call
2573         decl_constant_value_for_broken_optimization.  Set
2574         in_late_binary_op for conversions to boolean.
2575         (store_init_value): Update call to digest_init.
2576         (digest_init): Take new parameter null_pointer_constant.  Do not
2577         call decl_constant_value_for_broken_optimization.  pedwarn for
2578         initializers not constant expressions.  Update calls to
2579         convert_for_assignment.
2580         (constructor_nonconst): New.
2581         (struct constructor_stack): Add nonconst element.
2582         (really_start_incremental_init, push_init_level, pop_init_level):
2583         Handle constructor_nonconst and nonconst element.
2584         (set_init_index): Call constant_expression_warning for array
2585         designators.
2586         (output_init_element): Fold value.  Set constructor_nonconst as
2587         applicable.  pedwarn for initializers not constant expressions.
2588         Update call to digest_init.  Call constant_expression_warning
2589         where constant initializers are required.
2590         (process_init_element): Use c_save_expr.
2591         (c_finish_goto_ptr): Fold expression.
2592         (c_finish_return): Fold return value.  Update call to
2593         convert_for_assignment.
2594         (c_start_case): Fold switch expression.
2595         (c_process_expr_stmt): Fold expression.
2596         (c_finish_stmt_expr): Create C_MAYBE_CONST_EXPR as needed to
2597         ensure statement expression is not evaluated in constant expression.
2598         (build_binary_op): Track whether results are integer constant
2599         expressions or may occur in such, disable folding and wrap results
2600         as applicable.  Fold operands for -Wsign-compare warnings unless
2601         in_late_binary_op.
2602         (c_objc_common_truthvalue_conversion): Handle results folded to
2603         integer constants that are not integer constant expressions.
2604         * doc/extend.texi: Document when typeof operands are evaluated,
2605         that condition of __builtin_choose_expr is an integer constant
2606         expression, and more about use of __builtin_constant_p in
2607         initializers.
2608
2609 2009-03-29  Richard Guenther  <rguenther@suse.de>
2610
2611         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Properly
2612         propagate addresses of array references.
2613
2614 2009-03-29  Steven Bosscher  <steven@gcc.gnu.org>
2615
2616         * regmove.c (perhaps_ends_bb_p): Remove.
2617         (optimize_reg_copy_1): Don't call perhaps_ends_bb_p.  Get basic block
2618         from INSN and check that the main loop stays within that basic block.
2619         (optimize_reg_copy_1, optimize_reg_copy_3, fixup_match_2): Likewise.
2620         (regmove_forward_pass): Split out from regmove_optimize.  Use
2621         FOR_EACH_BB and FOR_BB_INSNS instead of traversing the insns stream.
2622         (regmove_backward_pass): Split out from regmove_optimize.  Use
2623         FOR_EACH_BB_REVERSE and FOR_BB_INSNS_REVERS_SAFE.
2624         (regmove_optimize): Simplify.
2625
2626 2009-03-29  H.J. Lu  <hongjiu.lu@intel.com>
2627
2628         PR target/39545
2629         * config/i386/i386.c (classify_argument): Ignore flexible array
2630         member in struct and warn ABI change.
2631
2632 2009-03-29  H.J. Lu  <hongjiu.lu@intel.com>
2633
2634         * config/i386/i386-protos.h (ix86_agi_dependent): New.
2635
2636         * config/i386/i386.c (ix86_agi_dependent): Rewrite.
2637         (ix86_adjust_cost): Updated.
2638
2639 2009-03-29  Jan Hubicka  <jh@suse.cz>
2640
2641         PR middle-end/28850
2642         * tree-pass.h (pass_cleanup_eh): New function.
2643         (remove_unreachable_regions): Break code handling RTL
2644         to rtl_remove_unreachable_regions; remove ERT_MUST_NOT_THROW
2645         that can not be reached by runtime.
2646         (can_be_reached_by_runtime): New function.
2647         (label_to_region_map): New function.
2648         (num_eh_regions): New function.
2649         (rtl_remove_unreachable_regions): New function.
2650         (convert_from_eh_region_ranges): Call rtl_remove_unreachable_regions.
2651         (remove_eh_region): New function.
2652         * except.h: Include sbitmap and vecprim.
2653         (remove_eh_region, remove_unreachable_regions, label_to_region_map,
2654         num_eh_regions): Declare.
2655         * passes.c (init_optimization_passes): Schedule cleanup_eh.
2656         * Makefile.in (EXCEPT_H): New; replace all uses of except.h by it.
2657         * tree-eh.c (tree_remove_unreachable_handlers): New function.
2658         (tree_empty_eh_handler_p): New function.
2659         (cleanup_empty_eh): New function.
2660         (cleanup_eh): New function.
2661         (pass_cleanup_eh): New function.
2662
2663 2009-03-29  Jan Hubicka  <jh@suse.cz>
2664
2665         * except.c (verify_eh_tree): Fix handling of fun!=cfun; be ready
2666         for removed regions.
2667
2668 2009-03-29  Jan Hubicka  <jh@suse.cz>
2669
2670         * except.c (dump_eh_tree): Dump all datastructures.
2671
2672 2009-03-29  Jan Hubicka  <jh@suse.cz>
2673
2674         * except.c (duplicate_eh_regions_0): Handle AKA bitmap.
2675         (duplicate_eh_regions_1): Likewise.
2676         (duplicate_eh_regions): Likewise; cleanup code gorwing the region
2677         vector; call EH verification.
2678         (foreach_reachable_handler, can_throw_internal_1, can_throw_external_1):
2679         Be ready for region being removed.
2680
2681 2009-03-29  Jan Hubicka  <jh@suse.cz>
2682
2683         * bitmap.c (bitmap_last_set_bit): New function.
2684         * bitmap.h (bitmap_last_set_bit): Declare.
2685
2686 2009-03-29  David Ayers  <ayers@fsfe.org>
2687
2688         PR objc/27377
2689         * c-typeck.c (build_conditional_expr): Emit ObjC warnings
2690         by calling objc_compare_types and surpress warnings about
2691         incompatible C pointers that are compatible ObjC pointers.
2692         
2693 2009-03-29  Adam Nemet  <anemet@caviumnetworks.com>
2694
2695         * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Don't
2696         call initialize_inline_failed.
2697         (initialize_inline_failed): Move it from here ...
2698         * cgraph.c (initialize_inline_failed): ... to here.
2699         (cgraph_create_edge): Call initialize_inline_failed rather than
2700         setting inline_failed directly.
2701
2702 2009-03-29  Ben Elliston  <bje@au.ibm.com>
2703
2704         PR target/32542
2705         * sysv4.opt (msdata): Improve comment.
2706         * linux64.h (ASM_SPEC32): Do not pass -memb when -msdata is given.
2707         * sysv4.h (SVR4_ASM_SPEC): Likewise.
2708
2709 2009-03-29  Ben Elliston  <bje@au.ibm.com>
2710
2711         PR target/30451
2712         * config/rs6000/rs6000.md (*movti_ppc64): Correct the order of
2713         load and store attributes.
2714
2715 2009-03-29  Ben Elliston  <bje@au.ibm.com>
2716
2717         * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_HUGE_VALQ.
2718         (ix86_init_builtins): Add built-in function __builtin_huge_valq.
2719         (ix86_expand_builtin): Handle IX86_BUILTIN_HUGE_VALQ.
2720         * doc/extend.texi (X86 Built-in Functions): Add index entries for
2721         __builtin_infq and __builtin_huge_valq.
2722
2723 2009-03-28  Anatoly Sokolov  <aesok@post.ru>
2724
2725         * config/avr/avr.c (avr_mcu_t): Add atmega8c1, atmega16c1 and
2726         atmega8m1 devices.
2727         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
2728         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.)
2729
2730 2009-03-28  Xinliang David Li  <davidxl@google.com>
2731
2732         * tree-ssa-ccp.c (ccp_finalize): Add dbg_count support. 
2733         (do_dbg_cnt): New function.
2734
2735 2009-03-28  Jan Hubicka  <jh@suse.cz>
2736
2737         Merge from pretty-ipa:
2738
2739         2009-03-27  Jan Hubicka  <jh@suse.cz>
2740
2741         * cgraph.c (dump_cgraph_node): Add replace output flag by process.
2742         * tree-pass.h (function_called_by_processed_nodes_p): Declare.
2743         * passes.c (function_called_by_processed_nodes_p): New.
2744         * ipa-pure-const.c (check_call): Fix handling of operands.
2745         (analyze_function): Dump debug output for skipped bodies.
2746         (local_pure_const): Use function_called_by_processed_nodes_p.
2747         * dwarf2out.c (reference_to_unused): Use output.
2748         * passes.c (do_per_function_toporder): Likewise.
2749
2750         2008-11-12  Jan Hubicka  <jh@suse.cz>
2751
2752         * tree-pass.h (pass_fixup_cfg, pass_local_pure_const): Declare.
2753         * ipa-pure-const.c (funct_state_d): Add can throw field; make
2754         state_set_in_source enum
2755         (check_decl): Ignore memory tags; do not set fake looping flags;
2756         dump diagnostics.
2757         (check_operand, check_tree, check_rhs_var, check_lhs_var,
2758         get_asm_expr_operands, scan_function_op, scan_function_stmt): Remove.
2759         (check_call, analyze_function): Rewrite.
2760         (check_stmt): New.
2761         (add_new_function): Update call of analyze_function.
2762         (generate_summary): Add call of analyze_function.
2763         (propagate): Propagate can_throw; handle state_set_in_source correctly.
2764         (local_pure_const): New function.
2765         (pass_local_pure_const): New pass.
2766         * ipa-inline.c (inline_transform): Set after_inlining.
2767         * tree-eh.c (stmt_can_throw_external): New.
2768         * tree-optimize.c (execute_fixup_cfg): Do not set after_inlining;
2769         work with aliasing built.
2770         * tree-flow.h (stmt_can_throw_external): New.
2771         * passes.c (init_optimization_passes): Schedule fixup_cfg pass early;
2772         and local pure/const pass in early and late optimization queue.
2773
2774 2009-03-28  Martin Jambor  <mjambor@suse.cz>
2775
2776         * fold-const.c (get_pointer_modulus_and_residue): New parameter
2777         allow_func_align.
2778         (fold_binary): Allow function decl aligment consideration is the
2779         second argument is integer constant one.
2780         * tree-ssa-forwprop.c (simplify_bitwise_and): New function.
2781         (tree_ssa_forward_propagate_single_use_vars): Handle assing statements
2782         with BIT_AND_EXPR on the RHS by calling simplify_bitwise_and.
2783
2784 2009-03-28  Jan Hubicka  <jh@suse.cz>
2785
2786         * dwarf2out.c (dwarf2out_begin_prologue): Use crtl->nothrow
2787         * tree-eh.c (stmt_could_throw_p): Remove check for WEAK decls.
2788         * function.h (rtl_data): Add nothrow flag.
2789         * except.c (set_nothrow_function_flags): Use crtl->nothrow;
2790         set DECL_NOTHROW for AVAILABLE functions.
2791
2792 2009-03-28  Jakub Jelinek  <jakub@redhat.com>
2793
2794         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If macro
2795         following vector keyword has expansion starting with pixel or bool
2796         keyword, expand vector to __vector and pixel or bool to __pixel or
2797         __bool.
2798
2799         PR c++/39554
2800         * opts.c (warning_disallowed_functions, warn_disallowed_functions,
2801         warn_if_disallowed_function_p): Removed.
2802         (common_handle_option): Don't handle OPT_Wdisallowed_function_list_.
2803         * c-parser.c (c_parser_postfix_expression_after_primary): Don't call
2804         warning_if_disallowed_function_p.
2805         * flags.h (warn_if_disallowed_function_p,
2806         warn_disallowed_functions): Removed.
2807         * common.opt (Wdisallowed-function-list=): Removed.
2808         * doc/invoke.texi (-Wdisallowed-function-list=): Removed.
2809
2810 2009-03-28  Richard Guenther  <rguenther@suse.de>
2811
2812         PR tree-optimization/38723
2813         * tree-ssa-pre.c (compute_avail): Add all default definitions to
2814         the entry block.
2815
2816 2009-03-28  Jan Hubicka  <jh@suse.cz>
2817
2818         * tree-ssa-structalias.c (ipa_pta_execute): Fix bogus node->analyzed
2819         test introduced by my previous patch.
2820
2821 2009-03-28  Richard Guenther  <rguenther@suse.de>
2822
2823         * tree-ssa-copy.c (copy_prop_visit_phi_node): Do not leave
2824         the PHIs value undefined.
2825
2826 2009-03-28  Jan Hubicka  <jh@suse.cz>
2827
2828         * tree-pass.h (pass_fixup_cfg): New pass.
2829         * ipa-inline.c (inline_transform): Set
2830         always_inline_functions_inlined/after_inlining.
2831         * tree-optimize.c (execute_fixup_cfg): Do not set them here.
2832         (pass_fixup_cfg): New pass.
2833         * passes.c (init_optimization_passes): Add fixup_cfg.
2834
2835 2009-03-28  Richard Guenther  <rguenther@suse.de>
2836
2837         PR tree-optimization/38458
2838         * tree-ssa-copy.c (copy_prop_visit_phi_node): For the first
2839         argument use the arguments copy-of value.
2840
2841 2009-03-28  Richard Guenther  <rguenther@suse.de>
2842
2843         PR tree-optimization/38180
2844         * tree-ssa-ccp.c (get_default_value): Simplify.
2845         (likely_value): Likewise.
2846         (surely_varying_stmt_p): Properly handle VOP case.
2847         (ccp_initialize): Likewise.
2848         (ccp_fold): Handle propagating through *&.
2849         (fold_const_aggregate_ref): Also handle decls.
2850
2851 2009-03-28  Jan Hubicka  <jh@suse.cz>
2852
2853         * cgraph.c (dump_cgraph_node): Add replace output flag by process.
2854         * cgraph.h (cgraph_node): Likewise.
2855         * cgraphunit.c (cgraph_process_new_functions): Set process flag.
2856         (cgraph_reset_node): Use process flag.
2857         (cgraph_mark_functions_to_output): Likewise.
2858         (cgraph_expand_function): Likewise.
2859         (cgraph_expand_all_functions): Likewise.
2860         (cgraph_output_in_order): Likewise.
2861         * dwarf2out.c (reference_to_unused): Likewise.
2862         * passes.c do_per_function_toporder): Likewise.
2863
2864 2009-03-28  Jan Hubicka  <jh@suse.cz>
2865
2866         Bring from lto-branch:
2867
2868         2008-09-03  Doug Kwan  <dougkwan@google.com>
2869
2870         * cgraphbuild.c (initialize_inline_failed): Use cgraph_inline_failed_t
2871         enums instead of reason strings.
2872         * cgraph.c (cgraph_create_edge): Same.
2873         (cgraph_inline_failed_string): New function.
2874         * cgraph.h (cgraph_inline_failed_t): New enum type.
2875         (cgraph_inline_failed_string): New prototype.
2876         (struct cgraph_edge): Change type of INLINED_FAILED from constant
2877         char pointer to cgraph_inline_failed_t.
2878         (cgraph_inline_p): Adjust prototype to use cgraph_inline_failed_t.
2879         (cgraph_default_inline_p): Ditto.
2880         * gcc/cgraphunit.c (cgraph_inline_p): Change type of parameter REASON
2881         to cgraph_inline_failed_t pointer.
2882         * cif-code.def: New file.
2883         * ipa-inline.c (cgraph_mark_inline_edge): Use an enum instead of a
2884         reason string.
2885         (cgraph_check_inline_limits): Change type of REASON to pointer to
2886         cgraph_inline_failed_t.  Replace reason strings with enums.
2887         (cgraph_default_inline_p): Ditto.
2888         (cgraph_recursive_inlining_p): Ditto.
2889         (update_caller_keys): Change type of FAILED_REASON to
2890         cgraph_inline_failed_t.
2891         (cgraph_set_inline_failed): Change type of REASON to pointer to
2892         cgraph_inline_failed_t.  Call cgraph_inline_failed_string to
2893         convert enums to strings for text output.
2894         (cgraph_decide_inlining_of_small_function): Change FAILED_REASON
2895         to be of type cgraph_inline_failed_t.  Replace reason strings with
2896         enums.  Call cgraph_inline_failed_string to covert enums
2897         to strings for text output.
2898         (cgraph_decide_inlining): Replace reason strings with enums.
2899         (cgraph_decide_inlining_incrementally): Change type of FAILED_REASON
2900         to cgraph_inline_failed_t type.  Call cgraph_inline_failed_string
2901         for text output.
2902         * tree-inline.c (expand_call_inline): Change type of REASON
2903         to cgraph_inline_failed_t.  Replace reason strings with enums.
2904         Call cgraph_inline_failed_string for text output.
2905         * Makefile.in (CGRAPH_H): Add cif-code.def to dependencies.
2906         (cgraph.o): Ditto.
2907
2908 2009-03-28  Jan Hubicka  <jh@suse.cz>
2909
2910         * cgraph.c (cgraph_node, cgraph_remove_node, dump_cgraph_node,
2911         cgraph_clone_node): Remove master clone handling.
2912         (cgraph_is_master_clone, cgraph_master_clone): Remove.
2913         * cgraph.h (master_clone): Remove.
2914         (cgraph_is_master_clone, cgraph_master_clone): Remove.
2915         * ipa-type-escape.c (type_escape_execute): Remove use of master clone.
2916         (tree-ssa-structalias.c (ipa_pta_execute): Likewise.
2917
2918 2009-03-28  Jan Hubicka  <jh@suse.cz>
2919
2920         * cgraph.c (cgraph_function_body_availability): Functions declared
2921         inline are always safe to assume that it is not going to be replaced.
2922
2923 2009-03-28  Richard Guenther  <rguenther@suse.de>
2924
2925         PR tree-optimization/38513
2926         * tree-ssa-pre.c (eliminate): Remove redundant stores.
2927         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
2928         EXC_PTR_EXPR and FILTER_EXPR.
2929         (get_ref_from_reference_ops): Likewise.
2930
2931 2009-03-28  Richard Guenther  <rguenther@suse.de>
2932
2933         PR tree-optimization/38968
2934         * tree-vect-analyze.c (vect_compute_data_ref_alignment):
2935         Use FLOOR_MOD_EXPR to compute misalignment.
2936
2937 2009-03-28  Richard Guenther  <rguenther@suse.de>
2938
2939         PR tree-optimization/37795
2940         * tree.h (combine_comparisons): Declare.
2941         * fold-const.c (combine_comparisons): Export.
2942         * tree-ssa-ifcombine.c (ifcombine_ifandif): Optimize two successive
2943         comparisons.
2944         (ifcombine_iforif): Use combine_comparisons.
2945
2946 2009-03-28  Jan Hubicka  <jh@suse.cz>
2947
2948         * tree-eh.c (inlinable_call_p): New function.
2949         (make_eh_edges): Use it.
2950         (verify_eh_edges): Use it.
2951         (stmt_can_throw_external, stmt_can_throw_internal): Use it.
2952         * except.c (reachable_next_level): Add inlinable_function argument
2953         (sjlj_find_directly_reachable_regions): Update.
2954         (add_reachable_handler): Do not set saw_any_handlers.
2955         (reachable_next_level): Handle MUST_NOT_THROW more curefully.
2956         (foreach_reachable_handler, can_throw_internal_1, can_throw_external_1):
2957         Add new inlinable call parameter.
2958         (can_throw_internal, can_throw_external): Update.
2959         * except.h (can_throw_internal_1, can_throw_external_1,
2960         foreach_reachable_handler): Update declaration.
2961
2962 2009-03-28  Joseph Myers  <joseph@codesourcery.com>
2963
2964         * config/arm/t-arm-coff, config/h8300/coff.h,
2965         config/i386/i386-aout.h, config/i386/i386-coff.h,
2966         config/libgloss.h, config/m68k/coff.h, config/m68k/m68k-aout.h,
2967         config/pdp11/2bsd.h, config/rs6000/aix41.h,
2968         config/rs6000/aix41.opt, config/rs6000/t-newas, config/sh/coff.h,
2969         fix-header.c, fixproto, gen-protos.c, protoize.c, scan-decls.c,
2970         scan-types.sh, scan.c, scan.h, sort-protos, sys-protos.h,
2971         sys-types.h: Remove.
2972         * Makefile.in: Remove protoize and fixproto support and references
2973         in comments.
2974         (SYSCALLS.c.X-warn, TARGET_GETGROUPS_T, STMP_FIXPROTO,
2975         PROTOIZE_INSTALL_NAME, UNPROTOIZE_INSTALL_NAME, FIXPROTO_DEFINES):
2976         Remove.
2977         (ALL_HOST_OBJS): Remove $(PROTO_OBJS).
2978         (MOSTLYCLEANFILES): Remove protoize$(exeext) and
2979         unprotoize$(exeext).
2980         (rest.encap): Don't depend on $(STMP_FIXPROTO)
2981         (.PHONY): Don't depend on proto.
2982         (libgcc-support): Don't depend on $(STMP_FIXPROTO).
2983         (proto, PROTO_OBJS, protoize$(exeext), unprotoize$(exeext),
2984         protoize.o, unprotoize.o, SYSCALLS.c.X, test-protoize-simple,
2985         deduced.h, GEN_PROTOS_OBJS, build/gen-protos$(build_exeext),
2986         build/gen-protos.o, build/scan.o, xsys-protos.h,
2987         build/fix-header$(build_exeext), build/fix-header.o,
2988         build/scan-decls.o, fixhdr.ready, stmp-fixproto,
2989         stmp-install-fixproto): Remove.
2990         (mostlyclean): Don't remove xsys-protos.hT, SYSCALLS.c.X,
2991         SYSCALLS.c or fixproto files.
2992         (install-common): Don't install protoize.
2993         (install-headers-tar, install-headers-cpio, install-headers-cp):
2994         Don't depend on $(STMP_FIXPROTO).
2995         (install-mkheaders): Don't depend on $(STMP_FIXPROTO).  Don't
2996         install fixproto files or write out fixproto settings.
2997         (uninstall): Don't uninstall protoize.
2998         * config.gcc (use_fixproto): Remove.
2999         (arm-*-coff*, armel-*-coff*, h8300-*-*, i[34567]86-*-aout*,
3000         i[34567]86-*-coff*, m68k-*-aout*, m68k-*-coff*, pdp11-*-bsd,
3001         rs6000-ibm-aix4.[12]*, powerpc-ibm-aix4.[12]*, sh-*-*): Remove.
3002         * config/m32r/t-linux (STMP_FIXPROTO): Remove.
3003         * config/m68k/m68k.c: Remove M68K_TARGET_COFF-conditional code.
3004         * config/mips/t-iris (FIXPROTO_DEFINES): Remove.
3005         * config/pa/t-pa-hpux (FIXPROTO_DEFINES): Remove.
3006         * config/pdp11/pdp11.c: Remove TWO_BSD-conditional code.
3007         * config/t-svr4 (FIXPROTO_DEFINES): Remove.
3008         * config/t-vxworks (STMP_FIXPROTO): Remove.
3009         * configure.ac (AC_TYPE_GETGROUPS, TARGET_GETGROUPS_T,
3010         STMP_FIXPROTO): Remove.
3011         * config.in, configure: Regenerate.
3012         * crtstuff.c (gid_t, uid_t): Don't undefine.
3013         * doc/install.texi: Change m68k-coff to m68k-elf in example.
3014         (arm-*-coff, arm-*-aout: Remove target entries.
3015         (*-ibm-aix*): Mention removal of support for AIX 4.2 and older.
3016         Remove mention of AIX 4.1.
3017         (m68k-*-*): Remove mention of m68k-*-aout and m68k-*-coff*.
3018         * doc/invoke.texi (Running Protoize): Remove.
3019         * doc/trouble.texi (Actual Bugs): Remove mention of fixproto.
3020         (Protoize Caveats): Remove.
3021         * tsystem.h: Update comments on headers assumed to exist.
3022
3023 2009-03-27  Vladimir Makarov  <vmakarov@redhat.com>
3024
3025         * genautomata.c: Add a new year to the copyright.  Add a new
3026         reference.
3027         (struct insn_reserv_decl): Add comments for member bypass_list.
3028         (find_bypass): Remove.
3029         (insert_bypass): New.
3030         (process_decls): Use insert_bypass.
3031         (output_internal_insn_latency_func): Output all bypasses with the
3032         same input insn in one switch case.
3033
3034         * rtl.def (define_bypass): Describe bypass choice.
3035         * doc/md.texi (define_bypass): Ditto.
3036
3037 2009-03-27  Richard Guenther  <rguenther@suse.de>
3038
3039         * gimplify.c (mark_addressable): Export.
3040         * tree-flow.h (mark_addressable): Declare.
3041         * tree-ssa-loop-manip.c (create_iv): Mark the base addressable.
3042         * tree-ssa.c (verify_phi_args): Verify that address taken
3043         variables have TREE_ADDRESSABLE set.
3044
3045 2009-03-27  Richard Guenther  <rguenther@suse.de>
3046
3047         * fold-const.c (build_fold_addr_expr_with_type_1): Rename back to ...
3048         (build_fold_addr_expr_with_type): ... this.  Remove in_fold handling.
3049         Do not mark decls TREE_ADDRESSABLE.
3050         (build_fold_addr_expr): Adjust.
3051         (fold_addr_expr): Remove.
3052         (fold_unary): Use build_fold_addr_expr.
3053         (fold_comparison): Likewise.
3054         (split_address_to_core_and_offset): Likewise.
3055         * coverage.c (tree_coverage_counter_addr): Mark the array decl
3056         TREE_ADDRESSABLE.
3057         * gimplify.c (mark_addressable): Do not exclude RESULT_DECLs.
3058         (gimplify_modify_expr_to_memcpy): Mark source and destination
3059         addressable.
3060         * omp-low.c (create_omp_child_function): Mark the object decl
3061         TREE_ADDRESSABLE.
3062         (lower_rec_input_clauses): Mark the var we take the address of
3063         TREE_ADDRESSABLE.
3064         (lower_omp_taskreg): Mark the sender decl TREE_ADDRESSABLE.
3065
3066 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
3067
3068         PR middle-end/39315
3069         * cfgexpand.c (expand_one_stack_var_at): Change alignment
3070         limit to MAX_SUPPORTED_STACK_ALIGNMENT.
3071
3072 2009-03-27  Richard Guenther  <rguenther@suse.de>
3073
3074         PR tree-optimization/39120
3075         * tree-ssa-structalias.c (handle_rhs_call): Fill out return
3076         constraints.
3077         (handle_lhs_call): Process return constraints.  Add escape
3078         constraints if necessary.
3079         (handle_const_call): Fill out return constraints.  Make nested
3080         case more precise.  Avoid consttmp if possible.
3081         (handle_pure_call): Fill out return constraints.  Avoid
3082         callused if possible.
3083         (find_func_aliases): Simplify call handling.
3084
3085 2009-03-27  Richard Guenther  <rguenther@suse.de>
3086
3087         PR tree-optimization/39120
3088         * tree-ssa-structalias.c (do_sd_constraint): Do not use CALLUSED
3089         as a representative.
3090         (solve_graph): Do propagate CALLUSED.
3091         (handle_pure_call): Use a scalar constraint from CALLUSED for
3092         the return value.
3093         (find_what_p_points_to): CALLUSED shall not appear in poins-to
3094         solutions.
3095
3096 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
3097
3098         PR c/39323
3099         * c-common.c (handle_aligned_attribute): Properly check alignment
3100         overflow.  Use (1U << i) instead of (1 << i).
3101
3102         * emit-rtl.c (get_mem_align_offset): Use "unsigned int" for align.
3103
3104         * expr.h (get_mem_align_offset): Updated.
3105
3106         * tree.h (tree_decl_common): Change align to "unsigned int" and
3107         move it before pointer_alias_set.
3108
3109 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
3110             Jakub Jelinek  <jakub@redhat.com>
3111
3112         PR target/38034
3113         * config/ia64/sync.md (cmpxchg_rel_<mode>): Replace input
3114         gr_register_operand with gr_reg_or_0_operand.
3115         (cmpxchg_rel_di): Likewise.
3116         (sync_lock_test_and_set<mode>): Likewise.
3117
3118 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
3119
3120         * jump.c (rtx_renumbered_equal_p): Use subreg_get_info.
3121         (true_regnum): Likewise.
3122
3123         * rtlanal.c (subreg_info): Moved to ...
3124         * rtl.h (subreg_info): Here.  New.
3125         (subreg_get_info): New.
3126
3127         * rtlanal.c (subreg_get_info): Make it extern.
3128
3129 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
3130
3131         PR target/39472
3132         * config/i386/i386.c (ix86_abi): New.
3133         (override_options): Handle -mabi=.
3134         (ix86_function_arg_regno_p): Replace DEFAULT_ABI with ix86_abi.
3135         (ix86_call_abi_override): Likewise.
3136         (init_cumulative_args): Likewise.
3137         (function_arg_advance): Likewise.
3138         (function_arg_64): Likewise.
3139         (function_arg): Likewise.
3140         (ix86_pass_by_reference): Likewise.
3141         (ix86_function_value_regno_p): Likewise.
3142         (ix86_build_builtin_va_list_abi): Likewise.
3143         (setup_incoming_varargs_64): Likewise.
3144         (is_va_list_char_pointer): Likewise.
3145         (ix86_init_machine_status): Likewise.
3146         (ix86_reg_parm_stack_space): Use enum calling_abi on call_abi.
3147         (ix86_function_type_abi): Return enum calling_abi.  Rewrite
3148         for 64bit.  Replace DEFAULT_ABI with ix86_abi.
3149         (ix86_function_abi): Make it static and return enum calling_abi.
3150         (ix86_cfun_abi): Return enum calling_abi.  Replace DEFAULT_ABI
3151         with ix86_abi.
3152         (ix86_fn_abi_va_list): Updated.
3153
3154         * config/i386/i386.h (ix86_abi): New.
3155         (STACK_BOUNDARY): Replace DEFAULT_ABI with ix86_abi.
3156         (CONDITIONAL_REGISTER_USAGE): Likewise.
3157         (CUMULATIVE_ARGS): Change call_abi type to enum calling_abi.
3158         (machine_function): Likewise.
3159
3160         * config/i386/i386.md (untyped_call): Replace DEFAULT_ABI
3161         with ix86_abi.
3162         * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Likewise.
3163         (STACK_BOUNDARY): Likewise.
3164         * config/i386/mingw32.h (EXTRA_OS_CPP_BUILTINS): Likewise.
3165
3166         * config/i386/i386.opt (mabi=): New.
3167
3168         * config/i386/i386-protos.h (ix86_cfun_abi): Changed to
3169         return enum calling_abi.
3170         (ix86_function_type_abi): Likewise.
3171         (ix86_function_abi): Removed.
3172
3173         * doc/invoke.texi: Document -mabi= option for x86.
3174
3175 2009-03-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3176
3177         * builtins.c (real_dconstp): Delete.
3178         (fold_builtin_logarithm): Remove inaccurate log(e) special case.
3179
3180 2009-03-27  Dodji Seketeli  <dodji@redhat.com>
3181             Jakub Jelinek  <jakub@redhat.com>
3182
3183         PR debug/37959
3184         * dwarf2out.c (dwarf_attr_name): Handle DW_AT_explicit attribute.
3185         (gen_subprogram_die): When a function is explicit, generate the
3186         DW_AT_explicit attribute.
3187         * langhooks.h (struct lang_hooks_for_decls): Add
3188         function_decl_explicit_p langhook.
3189         * langhooks-def.h (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P): Define.
3190         (LANG_HOOKS_DECLS): Add LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P.
3191
3192 2009-03-27  Jakub Jelinek  <jakub@redhat.com>
3193
3194         * builtins.c (fold_builtin_memory_op): Optimize memmove
3195         into memcpy if we can prove source and destination don't overlap.
3196
3197         * tree-inline.c: Include gt-tree-inline.h.
3198         (clone_fn_id_num): New variable.
3199         (clone_function_name): New function.
3200         (tree_function_versioning): Use it.
3201         * Makefile.in (GTFILES): Add tree-inline.c.
3202
3203 2009-03-27  Mark Mitchell  <mark@codesourcery.com>
3204
3205         * BASE-VER: Change to 4.5.0.
3206
3207 2009-03-27  Xinliang David Li  <davidxl@google.com>
3208
3209         PR tree-optimization/39557
3210         * tree-ssa.c (warn_uninitialized_vars): free postdom info.
3211
3212 2009-03-27  Xinliang David Li  <davidxl@google.com>
3213
3214         PR tree-optimization/39548
3215         * tree-ssa-copy.c (copy_prop_visit_phi_node): Add copy 
3216         candidate check.
3217
3218 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
3219
3220         * c-common.c (pointer_int_sum): Use %wd on return from
3221         tree_low_cst.
3222
3223 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
3224
3225         * c-common.c (pointer_int_sum): Use HOST_WIDE_INT_PRINT_DEC
3226         on return from tree_low_cst.
3227
3228 2009-03-27  Andrew Pinski  <andrew_pinski@playstation.sony.com>
3229
3230         PR c++/36799
3231         * ginclude/stdarg.h (va_copy): Define also for
3232         __GXX_EXPERIMENTAL_CXX0X__.
3233
3234 2009-03-27  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
3235
3236         PR c++/35652
3237         * builtins.h (c_strlen): Do not warn here.
3238         * c-typeck.c (build_binary_op): Adjust calls to pointer_int_sum.
3239         * c-common.c (pointer_int_sum): Take an explicit location.
3240         Warn about offsets out of bounds.
3241         * c-common.h (pointer_int_sum): Adjust declaration.
3242
3243 2009-03-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3244
3245         * doc/invoke.texi (i386 and x86-64 Windows Options): Fix texinfo
3246         markup glitch.
3247
3248 2009-03-26  Jakub Jelinek  <jakub@redhat.com>
3249
3250         PR c++/39554
3251         * opts.c (warn_if_disallowed_function_p): Don't assume
3252         get_callee_fndecl must return non-NULL.
3253
3254 2009-03-26  Vladimir Makarov  <vmakarov@redhat.com>
3255
3256         PR rtl-optimization/39522
3257         * reload1.c (reload_as_needed): Invalidate reg_last_reload_reg too
3258         when reg_reloaded_valid is set.
3259
3260 2009-03-26  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3261
3262         * config/spu/divv2df3.c: New file.
3263         * config/spu/t-spu-elf (LIB2FUNCS_STATIC_EXTRA): Add it.
3264         (DPBIT_FUNCS): Filter out _div_df.
3265
3266 2009-03-26  Bernd Schmidt  <bernd.schmidt@analog.com>
3267
3268         * config/bfin/bfin.c (bfin_optimize_loop): If the LSETUP goes before
3269         a jump insn, count that jump in the distance to the loop start.
3270
3271 2009-03-25  Kaz Kojima  <kkojima@gcc.gnu.org>
3272
3273         PR target/39523
3274         * config/sh/sh.c (calc_live_regs): Fix condition for global
3275         registers except PIC_OFFSET_TABLE_REGNUM.
3276
3277 2009-03-25  Kai Tietz  <kai.tietz@onevision.com>
3278
3279         PR/39518
3280         * doc/invoke.texi (-mconsole): New.
3281         (-mcygwin): New.
3282         (-mno-cygwin): New.
3283         (-mdll): New.
3284         (-mnop-fun-dllimport): New.
3285         (-mthread): New.
3286         (-mwin32): New.
3287         (-mwindows): New.
3288         (sub section "i386 and x86-64 Windows Options"): New.
3289
3290 2009-03-25  Ralf Cors├ępius <ralf.corsepius@rtems.org>
3291
3292         * config/arm/rtems-elf.h: Remove LINK_GCC_C_SEQUENCE_SPEC.
3293         * config/rs6000/t-rtems: Remove MULTILIB_EXTRA_OPTS.
3294
3295 2009-03-25  Richard Guenther  <rguenther@suse.de>
3296
3297         PR middle-end/39497
3298         * Makefile.in (dfp.o-warn): Use -fno-strict-aliasing instead
3299         of -Wno-error.
3300
3301 2009-03-25  Andrey Belevantsev  <abel@ispras.ru>
3302
3303         * config/ia64/ia64.c (ia64_set_sched_flags): Zero spec_info->mask when
3304         neither of haifa/selective schedulers are working.
3305
3306 2009-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3307
3308         * doc/invoke.texi (Debugging Options): Fix description of
3309         -fno-merge-debug-strings.
3310
3311 2009-03-24  Hans-Peter Nilsson  <hp@axis.com>
3312
3313         * config/cris/libgcc.ver: New version-script.
3314         * config/cris/t-linux (SHLIB_MAPFILES): Use it.
3315
3316         * configure.ac <GAS features, nop mnemonic>: Add pattern
3317         crisv32-*-* for "nop".
3318         <GAS features, Thread-local storage>: Add item for CRIS and CRIS v32.
3319         * configure: Regenerate.
3320
3321 2009-03-24  Ira Rosen  <irar@il.ibm.com>
3322
3323         PR tree-optimization/39529
3324         * tree-vect-transform.c (vect_create_data_ref_ptr): Call
3325         mark_sym_for_renaming for the tag copied to the new vector
3326         pointer.
3327
3328 2009-03-24  Arthur Loiret  <aloiret@debian.org>
3329
3330         * config.host (alpha*-*-linux*): Use driver-alpha.o and alpha/x-alpha.
3331         * config/alpha/linux.h (host_detect_local_cpu): Declare, add to
3332         EXTRA_SPEC_FUNCTIONS.
3333         (MCPU_MTUNE_NATIVE_SPECS, DRIVER_SELF_SPECS): New macros.
3334         * config/alpha/driver-alpha.c, config/alpha/x-alpha: New.
3335         * doc/invoke.texi (DEC Alpha Options): Document 'native' value for
3336         -march and -mtune options.
3337
3338 2009-03-24  Ralf Cors├ępius <ralf.corsepius@rtems.org>
3339
3340         * config/m68k/t-rtems: Add m5329 multilib.
3341
3342 2009-03-24  Dodji Seketeli  <dodji@redhat.com>
3343             Jakub Jelinek  <jakub@redhat.com>
3344
3345         PR debug/39524
3346         * dwarf2out.c (gen_variable_die): Avoid adding duplicate declaration
3347         nodes.
3348
3349 2009-03-23  Jakub Jelinek  <jakub@redhat.com>
3350
3351         PR c/39495
3352         * c-parser.c (c_parser_omp_for_loop): Call c_parser_binary_expression
3353         instead of c_parser_expression_conv, if original_code isn't one of the
3354         4 allowed comparison codes, fail.
3355
3356 2009-03-23  Richard Guenther  <rguenther@suse.de>
3357
3358         * cgraph.h (struct cgraph_node): Reorder fields for 64-bit hosts.
3359         * tree.h (struct tree_type): Likewise.
3360         * reload.h (struct insn_chain): Likewise.
3361         * dwarf2out.c (struct dw_loc_descr_struct): Likewise.
3362         * function.h (struct function): Likewise.
3363         * tree-ssa-structalias.c (struct equiv_class_label): Likewise.
3364
3365 2009-03-23  Jakub Jelinek  <jakub@redhat.com>
3366
3367         PR tree-optimization/39516
3368         * lambda-code.c (perfect_nestify): Fix type of the uboundvar variable.
3369