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